/*
 Highmaps JS v5.0.11 (2017-05-04)

 (c) 2011-2016 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(I,T){"object"===typeof module&&module.exports?module.exports=I.document?T(I):T:I.Highcharts=T(I)})("undefined"!==typeof window?window:this,function(I){I=function(){var a=window,w=a.document,C=a.navigator&&a.navigator.userAgent||"",y=w&&w.createElementNS&&!!w.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,x=/(edge|msie|trident)/i.test(C)&&!window.opera,g=!y,f=/Firefox/.test(C),k=f&&4>parseInt(C.split("Firefox/")[1],10);return a.Highcharts?a.Highcharts.error(16,!0):{product:"Highmaps",
version:"5.0.11",deg2rad:2*Math.PI/360,doc:w,hasBidiBug:k,hasTouch:w&&void 0!==w.documentElement.ontouchstart,isMS:x,isWebKit:/AppleWebKit/.test(C),isFirefox:f,isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:y,vml:g,win:a,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}();(function(a){var w=[],C=a.charts,y=a.doc,x=a.win;a.error=function(g,f){g=a.isNumber(g)?"Highcharts error #"+
g+": www.highcharts.com/errors/"+g:g;if(f)throw Error(g);x.console&&console.log(g)};a.Fx=function(a,f,k){this.options=f;this.elem=a;this.prop=k};a.Fx.prototype={dSetter:function(){var a=this.paths[0],f=this.paths[1],k=[],r=this.now,m=a.length,e;if(1===r)k=this.toD;else if(m===f.length&&1>r)for(;m--;)e=parseFloat(a[m]),k[m]=isNaN(e)?a[m]:r*parseFloat(f[m]-e)+e;else k=f;this.elem.attr("d",k,null,!0)},update:function(){var a=this.elem,f=this.prop,k=this.now,r=this.options.step;if(this[f+"Setter"])this[f+
"Setter"]();else a.attr?a.element&&a.attr(f,k,null,!0):a.style[f]=k+this.unit;r&&r.call(a,k,this)},run:function(a,f,k){var g=this,m=function(a){return m.stopped?!1:g.step(a)},e;this.startTime=+new Date;this.start=a;this.end=f;this.unit=k;this.now=this.start;this.pos=0;m.elem=this.elem;m.prop=this.prop;m()&&1===w.push(m)&&(m.timerId=setInterval(function(){for(e=0;e<w.length;e++)w[e]()||w.splice(e--,1);w.length||clearInterval(m.timerId)},13))},step:function(g){var f=+new Date,k,r=this.options,m=this.elem,
e=r.complete,d=r.duration,p=r.curAnim;m.attr&&!m.element?g=!1:g||f>=d+this.startTime?(this.now=this.end,this.pos=1,this.update(),k=p[this.prop]=!0,a.objectEach(p,function(a){!0!==a&&(k=!1)}),k&&e&&e.call(m),g=!1):(this.pos=r.easing((f-this.startTime)/d),this.now=this.start+(this.end-this.start)*this.pos,this.update(),g=!0);return g},initPath:function(g,f,k){function r(a){var b,c;for(l=a.length;l--;)b="M"===a[l]||"L"===a[l],c=/[a-zA-Z]/.test(a[l+3]),b&&c&&a.splice(l+1,0,a[l+1],a[l+2],a[l+1],a[l+2])}
function m(a,h){for(;a.length<b;){a[0]=h[b-a.length];var e=a.slice(0,c);[].splice.apply(a,[0,0].concat(e));E&&(e=a.slice(a.length-c),[].splice.apply(a,[a.length,0].concat(e)),l--)}a[0]="M"}function e(a,l){for(var e=(b-a.length)/c;0<e&&e--;)h=a.slice().splice(a.length/G-c,c*G),h[0]=l[b-c-e*c],n&&(h[c-6]=h[c-2],h[c-5]=h[c-1]),[].splice.apply(a,[a.length/G,0].concat(h)),E&&e--}f=f||"";var d,p=g.startX,u=g.endX,n=-1<f.indexOf("C"),c=n?7:3,b,h,l;f=f.split(" ");k=k.slice();var E=g.isArea,G=E?2:1,A;n&&(r(f),
r(k));if(p&&u){for(l=0;l<p.length;l++)if(p[l]===u[0]){d=l;break}else if(p[0]===u[u.length-p.length+l]){d=l;A=!0;break}void 0===d&&(f=[])}f.length&&a.isNumber(d)&&(b=k.length+d*G*c,A?(m(f,k),e(k,f)):(m(k,f),e(f,k)));return[f,k]}};a.extend=function(a,f){var g;a||(a={});for(g in f)a[g]=f[g];return a};a.merge=function(){var g,f=arguments,k,r={},m=function(e,d){"object"!==typeof e&&(e={});a.objectEach(d,function(g,f){!a.isObject(g,!0)||a.isClass(g)||a.isDOMElement(g)?e[f]=d[f]:e[f]=m(e[f]||{},g)});return e};
!0===f[0]&&(r=f[1],f=Array.prototype.slice.call(f,2));k=f.length;for(g=0;g<k;g++)r=m(r,f[g]);return r};a.pInt=function(a,f){return parseInt(a,f||10)};a.isString=function(a){return"string"===typeof a};a.isArray=function(a){a=Object.prototype.toString.call(a);return"[object Array]"===a||"[object Array Iterator]"===a};a.isObject=function(g,f){return!!g&&"object"===typeof g&&(!f||!a.isArray(g))};a.isDOMElement=function(g){return a.isObject(g)&&"number"===typeof g.nodeType};a.isClass=function(g){var f=
g&&g.constructor;return!(!a.isObject(g,!0)||a.isDOMElement(g)||!f||!f.name||"Object"===f.name)};a.isNumber=function(a){return"number"===typeof a&&!isNaN(a)};a.erase=function(a,f){for(var g=a.length;g--;)if(a[g]===f){a.splice(g,1);break}};a.defined=function(a){return void 0!==a&&null!==a};a.attr=function(g,f,k){var r;a.isString(f)?a.defined(k)?g.setAttribute(f,k):g&&g.getAttribute&&(r=g.getAttribute(f)):a.defined(f)&&a.isObject(f)&&a.objectEach(f,function(a,e){g.setAttribute(e,a)});return r};a.splat=
function(g){return a.isArray(g)?g:[g]};a.syncTimeout=function(a,f,k){if(f)return setTimeout(a,f,k);a.call(0,k)};a.pick=function(){var a=arguments,f,k,r=a.length;for(f=0;f<r;f++)if(k=a[f],void 0!==k&&null!==k)return k};a.css=function(g,f){a.isMS&&!a.svg&&f&&void 0!==f.opacity&&(f.filter="alpha(opacity\x3d"+100*f.opacity+")");a.extend(g.style,f)};a.createElement=function(g,f,k,r,m){g=y.createElement(g);var e=a.css;f&&a.extend(g,f);m&&e(g,{padding:0,border:"none",margin:0});k&&e(g,k);r&&r.appendChild(g);
return g};a.extendClass=function(g,f){var k=function(){};k.prototype=new g;a.extend(k.prototype,f);return k};a.pad=function(a,f,k){return Array((f||2)+1-String(a).length).join(k||0)+a};a.relativeLength=function(a,f){return/%$/.test(a)?f*parseFloat(a)/100:parseFloat(a)};a.wrap=function(a,f,k){var g=a[f];a[f]=function(){var a=Array.prototype.slice.call(arguments),e=arguments,d=this;d.proceed=function(){g.apply(d,arguments.length?arguments:e)};a.unshift(g);a=k.apply(this,a);d.proceed=null;return a}};
a.getTZOffset=function(g){var f=a.Date;return 6E4*(f.hcGetTimezoneOffset&&f.hcGetTimezoneOffset(g)||f.hcTimezoneOffset||0)};a.dateFormat=function(g,f,k){if(!a.defined(f)||isNaN(f))return a.defaultOptions.lang.invalidDate||"";g=a.pick(g,"%Y-%m-%d %H:%M:%S");var r=a.Date,m=new r(f-a.getTZOffset(f)),e=m[r.hcGetHours](),d=m[r.hcGetDay](),p=m[r.hcGetDate](),u=m[r.hcGetMonth](),n=m[r.hcGetFullYear](),c=a.defaultOptions.lang,b=c.weekdays,h=c.shortWeekdays,l=a.pad,r=a.extend({a:h?h[d]:b[d].substr(0,3),A:b[d],
d:l(p),e:l(p,2," "),w:d,b:c.shortMonths[u],B:c.months[u],m:l(u+1),y:n.toString().substr(2,2),Y:n,H:l(e),k:e,I:l(e%12||12),l:e%12||12,M:l(m[r.hcGetMinutes]()),p:12>e?"AM":"PM",P:12>e?"am":"pm",S:l(m.getSeconds()),L:l(Math.round(f%1E3),3)},a.dateFormats);a.objectEach(r,function(a,b){for(;-1!==g.indexOf("%"+b);)g=g.replace("%"+b,"function"===typeof a?a(f):a)});return k?g.substr(0,1).toUpperCase()+g.substr(1):g};a.formatSingle=function(g,f){var k=/\.([0-9])/,r=a.defaultOptions.lang;/f$/.test(g)?(k=(k=
g.match(k))?k[1]:-1,null!==f&&(f=a.numberFormat(f,k,r.decimalPoint,-1<g.indexOf(",")?r.thousandsSep:""))):f=a.dateFormat(g,f);return f};a.format=function(g,f){for(var k="{",r=!1,m,e,d,p,u=[],n;g;){k=g.indexOf(k);if(-1===k)break;m=g.slice(0,k);if(r){m=m.split(":");e=m.shift().split(".");p=e.length;n=f;for(d=0;d<p;d++)n=n[e[d]];m.length&&(n=a.formatSingle(m.join(":"),n));u.push(n)}else u.push(m);g=g.slice(k+1);k=(r=!r)?"}":"{"}u.push(g);return u.join("")};a.getMagnitude=function(a){return Math.pow(10,
Math.floor(Math.log(a)/Math.LN10))};a.normalizeTickInterval=function(g,f,k,r,m){var e,d=g;k=a.pick(k,1);e=g/k;f||(f=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(1===k?f=a.grep(f,function(a){return 0===a%1}):.1>=k&&(f=[1/k])));for(r=0;r<f.length&&!(d=f[r],m&&d*k>=g||!m&&e<=(f[r]+(f[r+1]||f[r]))/2);r++);return d=a.correctFloat(d*k,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,f){var k=a.length,g,m;for(m=0;m<k;m++)a[m].safeI=m;a.sort(function(a,d){g=f(a,d);return 0===g?
a.safeI-d.safeI:g});for(m=0;m<k;m++)delete a[m].safeI};a.arrayMin=function(a){for(var f=a.length,k=a[0];f--;)a[f]<k&&(k=a[f]);return k};a.arrayMax=function(a){for(var f=a.length,k=a[0];f--;)a[f]>k&&(k=a[f]);return k};a.destroyObjectProperties=function(g,f){a.objectEach(g,function(a,r){a&&a!==f&&a.destroy&&a.destroy();delete g[r]})};a.discardElement=function(g){var f=a.garbageBin;f||(f=a.createElement("div"));g&&f.appendChild(g);f.innerHTML=""};a.correctFloat=function(a,f){return parseFloat(a.toPrecision(f||
14))};a.setAnimation=function(g,f){f.renderer.globalAnimation=a.pick(g,f.options.chart.animation,!0)};a.animObject=function(g){return a.isObject(g)?a.merge(g):{duration:g?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5};a.numberFormat=function(g,f,k,r){g=+g||0;f=+f;var m=a.defaultOptions.lang,e=(g.toString().split(".")[1]||"").length,d,p;-1===f?f=Math.min(e,20):a.isNumber(f)||(f=2);p=(Math.abs(g)+Math.pow(10,-Math.max(f,e)-1)).toFixed(f);
e=String(a.pInt(p));d=3<e.length?e.length%3:0;k=a.pick(k,m.decimalPoint);r=a.pick(r,m.thousandsSep);g=(0>g?"-":"")+(d?e.substr(0,d)+r:"");g+=e.substr(d).replace(/(\d{3})(?=\d)/g,"$1"+r);f&&(g+=k+p.slice(-f));return g};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(g,f,k){if("width"===f)return Math.min(g.offsetWidth,g.scrollWidth)-a.getStyle(g,"padding-left")-a.getStyle(g,"padding-right");if("height"===f)return Math.min(g.offsetHeight,g.scrollHeight)-a.getStyle(g,
"padding-top")-a.getStyle(g,"padding-bottom");if(g=x.getComputedStyle(g,void 0))g=g.getPropertyValue(f),a.pick(k,!0)&&(g=a.pInt(g));return g};a.inArray=function(a,f){return f.indexOf?f.indexOf(a):[].indexOf.call(f,a)};a.grep=function(a,f){return[].filter.call(a,f)};a.find=function(a,f){return[].find.call(a,f)};a.map=function(a,f){for(var k=[],g=0,m=a.length;g<m;g++)k[g]=f.call(a[g],a[g],g,a);return k};a.offset=function(a){var f=y.documentElement;a=a.getBoundingClientRect();return{top:a.top+(x.pageYOffset||
f.scrollTop)-(f.clientTop||0),left:a.left+(x.pageXOffset||f.scrollLeft)-(f.clientLeft||0)}};a.stop=function(a,f){for(var k=w.length;k--;)w[k].elem!==a||f&&f!==w[k].prop||(w[k].stopped=!0)};a.each=function(a,f,k){return Array.prototype.forEach.call(a,f,k)};a.objectEach=function(a,f,k){for(var g in a)a.hasOwnProperty(g)&&f.call(k,a[g],g,a)};a.addEvent=function(g,f,k){function r(a){a.target=a.srcElement||x;k.call(g,a)}var m=g.hcEvents=g.hcEvents||{};g.addEventListener?g.addEventListener(f,k,!1):g.attachEvent&&
(g.hcEventsIE||(g.hcEventsIE={}),g.hcEventsIE[k.toString()]=r,g.attachEvent("on"+f,r));m[f]||(m[f]=[]);m[f].push(k);return function(){a.removeEvent(g,f,k)}};a.removeEvent=function(g,f,k){function r(a,e){g.removeEventListener?g.removeEventListener(a,e,!1):g.attachEvent&&(e=g.hcEventsIE[e.toString()],g.detachEvent("on"+a,e))}function m(){var e,n;g.nodeName&&(f?(e={},e[f]=!0):e=d,a.objectEach(e,function(a,b){if(d[b])for(n=d[b].length;n--;)r(b,d[b][n])}))}var e,d=g.hcEvents,p;d&&(f?(e=d[f]||[],k?(p=a.inArray(k,
e),-1<p&&(e.splice(p,1),d[f]=e),r(f,k)):(m(),d[f]=[])):(m(),g.hcEvents={}))};a.fireEvent=function(g,f,k,r){var m;m=g.hcEvents;var e,d;k=k||{};if(y.createEvent&&(g.dispatchEvent||g.fireEvent))m=y.createEvent("Events"),m.initEvent(f,!0,!0),a.extend(m,k),g.dispatchEvent?g.dispatchEvent(m):g.fireEvent(f,m);else if(m)for(m=m[f]||[],e=m.length,k.target||a.extend(k,{preventDefault:function(){k.defaultPrevented=!0},target:g,type:f}),f=0;f<e;f++)(d=m[f])&&!1===d.call(g,k)&&k.preventDefault();r&&!k.defaultPrevented&&
r(k)};a.animate=function(g,f,k){var r,m="",e,d,p;a.isObject(k)||(p=arguments,k={duration:p[2],easing:p[3],complete:p[4]});a.isNumber(k.duration)||(k.duration=400);k.easing="function"===typeof k.easing?k.easing:Math[k.easing]||Math.easeInOutSine;k.curAnim=a.merge(f);a.objectEach(f,function(p,n){a.stop(g,n);d=new a.Fx(g,k,n);e=null;"d"===n?(d.paths=d.initPath(g,g.d,f.d),d.toD=f.d,r=0,e=1):g.attr?r=g.attr(n):(r=parseFloat(a.getStyle(g,n))||0,"opacity"!==n&&(m="px"));e||(e=p);e&&e.match&&e.match("px")&&
(e=e.replace(/px/g,""));d.run(r,e,m)})};a.seriesType=function(g,f,k,r,m){var e=a.getOptions(),d=a.seriesTypes;e.plotOptions[g]=a.merge(e.plotOptions[f],k);d[g]=a.extendClass(d[f]||function(){},r);d[g].prototype.type=g;m&&(d[g].prototype.pointClass=a.extendClass(a.Point,m));return d[g]};a.uniqueKey=function(){var a=Math.random().toString(36).substring(2,9),f=0;return function(){return"highcharts-"+a+"-"+f++}}();x.jQuery&&(x.jQuery.fn.highcharts=function(){var g=[].slice.call(arguments);if(this[0])return g[0]?
(new (a[a.isString(g[0])?g.shift():"Chart"])(this[0],g[0],g[1]),this):C[a.attr(this[0],"data-highcharts-chart")]});y&&!y.defaultView&&(a.getStyle=function(g,f){var k={width:"clientWidth",height:"clientHeight"}[f];if(g.style[f])return a.pInt(g.style[f]);"opacity"===f&&(f="filter");if(k)return g.style.zoom=1,Math.max(g[k]-2*a.getStyle(g,"padding"),0);g=g.currentStyle[f.replace(/\-(\w)/g,function(a,f){return f.toUpperCase()})];"filter"===f&&(g=g.replace(/alpha\(opacity=([0-9]+)\)/,function(a,f){return f/
100}));return""===g?1:a.pInt(g)});Array.prototype.forEach||(a.each=function(a,f,k){for(var g=0,m=a.length;g<m;g++)if(!1===f.call(k,a[g],g,a))return g});Array.prototype.indexOf||(a.inArray=function(a,f){var k,g=0;if(f)for(k=f.length;g<k;g++)if(f[g]===a)return g;return-1});Array.prototype.filter||(a.grep=function(a,f){for(var k=[],g=0,m=a.length;g<m;g++)f(a[g],g)&&k.push(a[g]);return k});Array.prototype.find||(a.find=function(a,f){var k,g=a.length;for(k=0;k<g;k++)if(f(a[k],k))return a[k]})})(I);(function(a){var w=
a.each,C=a.isNumber,y=a.map,x=a.merge,g=a.pInt;a.Color=function(f){if(!(this instanceof a.Color))return new a.Color(f);this.init(f)};a.Color.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(a){return[g(a[1]),g(a[2]),g(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[g(a[1]),g(a[2]),g(a[3]),1]}}],names:{white:"#ffffff",black:"#000000"},
init:function(f){var k,g,m,e;if((this.input=f=this.names[f&&f.toLowerCase?f.toLowerCase():""]||f)&&f.stops)this.stops=y(f.stops,function(e){return new a.Color(e[1])});else if(f&&"#"===f[0]&&(k=f.length,f=parseInt(f.substr(1),16),7===k?g=[(f&16711680)>>16,(f&65280)>>8,f&255,1]:4===k&&(g=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!g)for(m=this.parsers.length;m--&&!g;)e=this.parsers[m],(k=e.regex.exec(f))&&(g=e.parse(k));this.rgba=g||[]},get:function(a){var f=this.input,g=this.rgba,
m;this.stops?(m=x(f),m.stops=[].concat(m.stops),w(this.stops,function(e,d){m.stops[d]=[m.stops[d][0],e.get(a)]})):m=g&&C(g[0])?"rgb"===a||!a&&1===g[3]?"rgb("+g[0]+","+g[1]+","+g[2]+")":"a"===a?g[3]:"rgba("+g.join(",")+")":f;return m},brighten:function(a){var f,r=this.rgba;if(this.stops)w(this.stops,function(f){f.brighten(a)});else if(C(a)&&0!==a)for(f=0;3>f;f++)r[f]+=g(255*a),0>r[f]&&(r[f]=0),255<r[f]&&(r[f]=255);return this},setOpacity:function(a){this.rgba[3]=a;return this}};a.color=function(f){return new a.Color(f)}})(I);
(function(a){function w(){var f=a.defaultOptions.global,g=k.moment;if(f.timezone){if(g)return function(a){return-g.tz(a,f.timezone).utcOffset()};a.error(25)}return f.useUTC&&f.getTimezoneOffset}function C(){var g=a.defaultOptions.global,m,e=g.useUTC,d=e?"getUTC":"get",p=e?"setUTC":"set";a.Date=m=g.Date||k.Date;m.hcTimezoneOffset=e&&g.timezoneOffset;m.hcGetTimezoneOffset=w();m.hcMakeTime=function(a,d,c,b,h,l){var n;e?(n=m.UTC.apply(0,arguments),n+=x(n)):n=(new m(a,d,f(c,1),f(b,0),f(h,0),f(l,0))).getTime();
return n};y("Minutes Hours Day Date Month FullYear".split(" "),function(a){m["hcGet"+a]=d+a});y("Milliseconds Seconds Minutes Hours Date Month FullYear".split(" "),function(a){m["hcSet"+a]=p+a})}var y=a.each,x=a.getTZOffset,g=a.merge,f=a.pick,k=a.win;a.defaultOptions={symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{useUTC:!0},chart:{borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}},width:null,height:null},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",
align:"center",widthAdjust:-44},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{}},loading:{},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",
second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:a.isTouchDevice?25:10,headerFormat:'\x3cspan class\x3d"highcharts-header"\x3e{point.key}\x3c/span\x3e\x3cbr/\x3e',pointFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cspan class\x3d"highcharts-strong"\x3e{point.y}\x3c/span\x3e\x3cbr/\x3e'},credits:{enabled:!0,
href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},text:"Highcharts.com"}};a.setOptions=function(f){a.defaultOptions=g(!0,a.defaultOptions,f);C();return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;C()})(I);(function(a){var w,C,y=a.addEvent,x=a.animate,g=a.attr,f=a.charts,k=a.color,r=a.css,m=a.createElement,e=a.defined,d=a.deg2rad,p=a.destroyObjectProperties,u=a.doc,n=a.each,c=a.extend,
b=a.erase,h=a.grep,l=a.hasTouch,E=a.inArray,G=a.isArray,A=a.isFirefox,K=a.isMS,v=a.isObject,F=a.isString,B=a.isWebKit,z=a.merge,D=a.noop,H=a.objectEach,q=a.pick,t=a.pInt,O=a.removeEvent,L=a.splat,R=a.stop,M=a.svg,P=a.SVG_NS,Q=a.symbolSizes,N=a.win;w=a.SVGElement=function(){return this};w.prototype={opacity:1,SVG_NS:P,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline".split(" "),init:function(a,b){this.element="span"===
b?m(b):u.createElementNS(this.SVG_NS,b);this.renderer=a},animate:function(b,c,t){c=a.animObject(q(c,this.renderer.globalAnimation,!0));0!==c.duration?(t&&(c.complete=t),x(this,b,c)):(this.attr(b,null,t),c.step&&c.step.call(this));return this},colorGradient:function(b,c,q){var J=this.renderer,t,h,l,d,f,B,g,p,k,L,S=[],D;b.radialGradient?h="radialGradient":b.linearGradient&&(h="linearGradient");h&&(l=b[h],f=J.gradients,g=b.stops,L=q.radialReference,G(l)&&(b[h]=l={x1:l[0],y1:l[1],x2:l[2],y2:l[3],gradientUnits:"userSpaceOnUse"}),
"radialGradient"===h&&L&&!e(l.gradientUnits)&&(d=l,l=z(l,J.getRadialAttr(L,d),{gradientUnits:"userSpaceOnUse"})),H(l,function(a,b){"id"!==b&&S.push(b,a)}),H(g,function(a){S.push(a)}),S=S.join(","),f[S]?L=f[S].attr("id"):(l.id=L=a.uniqueKey(),f[S]=B=J.createElement(h).attr(l).add(J.defs),B.radAttr=d,B.stops=[],n(g,function(b){0===b[1].indexOf("rgba")?(t=a.color(b[1]),p=t.get("rgb"),k=t.get("a")):(p=b[1],k=1);b=J.createElement("stop").attr({offset:b[0],"stop-color":p,"stop-opacity":k}).add(B);B.stops.push(b)})),
D="url("+J.url+"#"+L+")",q.setAttribute(c,D),q.gradient=S,b.toString=function(){return D})},applyTextOutline:function(c){var J=this.element,q,t,h,l,e;-1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(J.style.fill)));c=c.split(" ");t=c[c.length-1];if((h=c[0])&&"none"!==h&&a.svg){this.fakeTS=!0;c=[].slice.call(J.getElementsByTagName("tspan"));this.ySetter=this.xSetter;h=h.replace(/(^[\d\.]+)(.*?)$/g,function(a,b,c){return 2*b+c});for(e=c.length;e--;)q=c[e],"highcharts-text-outline"===
q.getAttribute("class")&&b(c,J.removeChild(q));l=J.firstChild;n(c,function(a,b){0===b&&(a.setAttribute("x",J.getAttribute("x")),b=J.getAttribute("y"),a.setAttribute("y",b||0),null===b&&J.setAttribute("y",0));a=a.cloneNode(1);g(a,{"class":"highcharts-text-outline",fill:t,stroke:t,"stroke-width":h,"stroke-linejoin":"round"});J.insertBefore(a,l)})}},attr:function(a,b,c,q){var J,t=this.element,h,l=this,e,d;"string"===typeof a&&void 0!==b&&(J=a,a={},a[J]=b);"string"===typeof a?l=(this[a+"Getter"]||this._defaultGetter).call(this,
a,t):(H(a,function(b,c){e=!1;q||R(this,c);this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(c)&&(h||(this.symbolAttr(a),h=!0),e=!0);!this.rotation||"x"!==c&&"y"!==c||(this.doTransform=!0);e||(d=this[c+"Setter"]||this._defaultSetter,d.call(this,b,c,t))},this),this.doTransform&&(this.updateTransform(),this.doTransform=!1));c&&c();return l},addClass:function(a,b){var c=this.attr("class")||"";-1===c.indexOf(a)&&(b||(a=(c+(c?" ":"")+a).replace("  "," ")),this.attr("class",
a));return this},hasClass:function(a){return-1!==g(this.element,"class").indexOf(a)},removeClass:function(a){g(this.element,"class",(g(this.element,"class")||"").replace(a,""));return this},symbolAttr:function(a){var b=this;n("x y r start end width height innerR anchorX anchorY".split(" "),function(c){b[c]=q(a[c],b[c])});b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a,
b){var c=this,q={},t;b=b||a.strokeWidth||0;t=Math.round(b)%2/2;a.x=Math.floor(a.x||c.x||0)+t;a.y=Math.floor(a.y||c.y||0)+t;a.width=Math.floor((a.width||c.width||0)-2*t);a.height=Math.floor((a.height||c.height||0)-2*t);e(a.strokeWidth)&&(a.strokeWidth=b);H(a,function(a,b){c[b]!==a&&(c[b]=q[b]=a)});return q},css:function(a){var b=this.styles,q={},J=this.element,h,l="",e,d=!b,n=["textOutline","textOverflow","width"];a&&a.color&&(a.fill=a.color);b&&H(a,function(a,c){a!==b[c]&&(q[c]=a,d=!0)});d&&(b&&(a=
c(b,q)),h=this.textWidth=a&&a.width&&"auto"!==a.width&&"text"===J.nodeName.toLowerCase()&&t(a.width),this.styles=a,h&&!M&&this.renderer.forExport&&delete a.width,K&&!M?r(this.element,a):(e=function(a,b){return"-"+b.toLowerCase()},H(a,function(a,b){-1===E(b,n)&&(l+=b.replace(/([A-Z])/g,e)+":"+a+";")}),l&&g(J,"style",l)),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline)));return this},getStyle:function(a){return N.getComputedStyle(this.element||
this,"").getPropertyValue(a)},strokeWidth:function(){var a=this.getStyle("stroke-width"),b;a.indexOf("px")===a.length-2?a=t(a):(b=u.createElementNS(P,"rect"),g(b,{width:a,"stroke-width":0}),this.element.parentNode.appendChild(b),a=b.getBBox().width,b.parentNode.removeChild(b));return a},on:function(a,b){var c=this,q=c.element;l&&"click"===a?(q.ontouchstart=function(a){c.touchEventFired=Date.now();a.preventDefault();b.call(q,a)},q.onclick=function(a){(-1===N.navigator.userAgent.indexOf("Android")||
1100<Date.now()-(c.touchEventFired||0))&&b.call(q,a)}):q["on"+a]=b;return this},setRadialReference:function(a){var b=this.renderer.gradients[this.element.gradient];this.element.radialReference=a;b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(a,b.radAttr));return this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(a){this.inverted=a;this.updateTransform();return this},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.scaleX,
t=this.scaleY,h=this.inverted,l=this.rotation,d=this.element;h&&(a+=this.width,b+=this.height);a=["translate("+a+","+b+")"];h?a.push("rotate(90) scale(-1,1)"):l&&a.push("rotate("+l+" "+(d.getAttribute("x")||0)+" "+(d.getAttribute("y")||0)+")");(e(c)||e(t))&&a.push("scale("+q(c,1)+" "+q(t,1)+")");a.length&&d.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,c,t){var h,J,l,e,d={};J=this.renderer;l=J.alignedObjects;
var n,f;if(a){if(this.alignOptions=a,this.alignByTranslate=c,!t||F(t))this.alignTo=h=t||"renderer",b(l,this),l.push(this),t=null}else a=this.alignOptions,c=this.alignByTranslate,h=this.alignTo;t=q(t,J[h],J);h=a.align;J=a.verticalAlign;l=(t.x||0)+(a.x||0);e=(t.y||0)+(a.y||0);"right"===h?n=1:"center"===h&&(n=2);n&&(l+=(t.width-(a.width||0))/n);d[c?"translateX":"x"]=Math.round(l);"bottom"===J?f=1:"middle"===J&&(f=2);f&&(e+=(t.height-(a.height||0))/f);d[c?"translateY":"y"]=Math.round(e);this[this.placed?
"animate":"attr"](d);this.placed=!0;this.alignAttr=d;return this},getBBox:function(a,b){var t,h=this.renderer,J,l=this.element,e=this.styles,f,B=this.textStr,z,g=h.cache,p=h.cacheKeys,k;b=q(b,this.rotation);J=b*d;f=l&&w.prototype.getStyle.call(l,"font-size");void 0!==B&&(k=B.toString(),-1===k.indexOf("\x3c")&&(k=k.replace(/[0-9]/g,"0")),k+=["",b||0,f,e&&e.width,e&&e.textOverflow].join());k&&!a&&(t=g[k]);if(!t){if(l.namespaceURI===this.SVG_NS||h.forExport){try{(z=this.fakeTS&&function(a){n(l.querySelectorAll(".highcharts-text-outline"),
function(b){b.style.display=a})})&&z("none"),t=l.getBBox?c({},l.getBBox()):{width:l.offsetWidth,height:l.offsetHeight},z&&z("")}catch(U){}if(!t||0>t.width)t={width:0,height:0}}else t=this.htmlGetBBox();h.isSVG&&(a=t.width,h=t.height,e&&"11px"===e.fontSize&&17===Math.round(h)&&(t.height=h=14),b&&(t.width=Math.abs(h*Math.sin(J))+Math.abs(a*Math.cos(J)),t.height=Math.abs(h*Math.cos(J))+Math.abs(a*Math.sin(J))));if(k&&0<t.height){for(;250<p.length;)delete g[p.shift()];g[k]||p.push(k);g[k]=t}}return t},
show:function(a){return this.attr({visibility:a?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var b=this;b.animate({opacity:0},{duration:a||150,complete:function(){b.attr({y:-9999})}})},add:function(a){var b=this.renderer,c=this.element,t;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;void 0!==this.textStr&&b.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)t=this.zIndexSetter();t||(a?a.element:b.box).appendChild(c);if(this.onAdd)this.onAdd();
return this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a=this,c=a.element||{},t=a.renderer.isSVG&&"SPAN"===c.nodeName&&a.parentGroup,q=c.ownerSVGElement;c.onclick=c.onmouseout=c.onmouseover=c.onmousemove=c.point=null;R(a);a.clipPath&&q&&(n(q.querySelectorAll("[clip-path]"),function(b){-1<b.getAttribute("clip-path").indexOf(a.clipPath.element.id+")")&&b.removeAttribute("clip-path")}),a.clipPath=a.clipPath.destroy());if(a.stops){for(q=0;q<a.stops.length;q++)a.stops[q]=
a.stops[q].destroy();a.stops=null}for(a.safeRemoveChild(c);t&&t.div&&0===t.div.childNodes.length;)c=t.parentGroup,a.safeRemoveChild(t.div),delete t.div,t=c;a.alignTo&&b(a.renderer.alignedObjects,a);H(a,function(b,c){delete a[c]});return null},xGetter:function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)},_defaultGetter:function(a){a=q(this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a},
dSetter:function(a,b,c){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");c.setAttribute(b,a);this[b]=a},alignSetter:function(a){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[a])},opacitySetter:function(a,b,c){this[b]=a;c.setAttribute(b,a)},titleSetter:function(a){var b=this.element.getElementsByTagName("title")[0];b||(b=u.createElementNS(this.SVG_NS,"title"),this.element.appendChild(b));b.firstChild&&b.removeChild(b.firstChild);b.appendChild(u.createTextNode(String(q(a),
"").replace(/<[^>]*>/g,"")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,b,c){"string"===typeof a?c.setAttribute(b,a):a&&this.colorGradient(a,b,c)},visibilitySetter:function(a,b,c){"inherit"===a?c.removeAttribute(b):c.setAttribute(b,a)},zIndexSetter:function(a,b){var c=this.renderer,q=this.parentGroup,h=(q||c).element||c.box,l,d=this.element,J;l=this.added;var f;e(a)&&(d.zIndex=a,a=+a,this[b]===a&&(l=
!1),this[b]=a);if(l){(a=this.zIndex)&&q&&(q.handleZ=!0);b=h.childNodes;for(f=0;f<b.length&&!J;f++)q=b[f],l=q.zIndex,q!==d&&(t(l)>a||!e(a)&&e(l)||0>a&&!e(l)&&h!==c.box)&&(h.insertBefore(d,q),J=!0);J||h.appendChild(d)}return J},_defaultSetter:function(a,b,c){c.setAttribute(b,a)}};w.prototype.yGetter=w.prototype.xGetter;w.prototype.translateXSetter=w.prototype.translateYSetter=w.prototype.rotationSetter=w.prototype.verticalAlignSetter=w.prototype.scaleXSetter=w.prototype.scaleYSetter=function(a,b){this[b]=
a;this.doTransform=!0};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};C.prototype={Element:w,SVG_NS:P,init:function(a,b,c,q,t,h){var l;q=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"});l=q.element;a.appendChild(l);-1===a.innerHTML.indexOf("xmlns")&&g(l,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=l;this.boxWrapper=q;this.alignedObjects=[];this.url=(A||B)&&u.getElementsByTagName("base").length?N.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,
"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(u.createTextNode("Created with Highmaps 5.0.11"));this.defs=this.createElement("defs").add();this.allowHTML=h;this.forExport=t;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(b,c,!1);var e;A&&a.getBoundingClientRect&&(b=function(){r(a,{left:0,top:0});e=a.getBoundingClientRect();r(a,{left:Math.ceil(e.left)-e.left+"px",top:Math.ceil(e.top)-e.top+"px"})},b(),this.unSubPixelFix=y(N,"resize",
b))},definition:function(a){function b(a,q){var t;n(L(a),function(a){var h=c.createElement(a.tagName),l={};H(a,function(a,b){"tagName"!==b&&"children"!==b&&"textContent"!==b&&(l[b]=a)});h.attr(l);h.add(q||c.defs);a.textContent&&h.element.appendChild(u.createTextNode(a.textContent));b(a.children||[],h);t=h});return t}var c=this;return b(a)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();p(this.gradients||
{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var b=new this.Element;b.init(this,a);return b},draw:D,getRadialAttr:function(a,b){return{cx:a[0]-a[2]/2+b.cx*a[2],cy:a[1]-a[2]/2+b.cy*a[2],r:b.r*a[2]}},getSpanWidth:function(a,b){var c=a.getBBox(!0).width;!M&&this.forExport&&(c=this.measureSpanWidth(b.firstChild.data,a.styles));return c},applyEllipsis:function(a,b,c,q){var t=this.getSpanWidth(a,b),
h=t>q,t=c,l,e=0,d=c.length,J=function(a){b.removeChild(b.firstChild);a&&b.appendChild(u.createTextNode(a))};if(h){for(;e<=d;)l=Math.ceil((e+d)/2),t=c.substring(0,l)+"\u2026",J(t),t=this.getSpanWidth(a,b),e===d?e=d+1:t>q?d=l-1:e=l;0===d&&J("")}return h},buildText:function(a){var b=a.element,c=this,l=c.forExport,e=q(a.textStr,"").toString(),d=-1!==e.indexOf("\x3c"),f=b.childNodes,J,B,z,k,p=g(b,"x"),L=a.styles,D=a.textWidth,v=L&&L.lineHeight,A=L&&L.textOutline,m=L&&"ellipsis"===L.textOverflow,K=L&&"nowrap"===
L.whiteSpace,O,E=f.length,F=D&&!a.added&&this.box,R=function(a){return v?t(v):c.fontMetrics(void 0,a.getAttribute("style")?a:b).h},L=[e,m,K,v,A,L&&L.fontSize,D].join();if(L!==a.textCache){for(a.textCache=L;E--;)b.removeChild(f[E]);d||A||m||D||-1!==e.indexOf(" ")?(J=/<.*class="([^"]+)".*>/,B=/<.*style="([^"]+)".*>/,z=/<.*href="(http[^"]+)".*>/,F&&F.appendChild(b),e=d?e.replace(/<(b|strong)>/g,'\x3cspan class\x3d"highcharts-strong"\x3e').replace(/<(i|em)>/g,'\x3cspan class\x3d"highcharts-emphasized"\x3e').replace(/<a/g,
"\x3cspan").replace(/<\/(b|strong|i|em|a)>/g,"\x3c/span\x3e").split(/<br.*?>/g):[e],e=h(e,function(a){return""!==a}),n(e,function(t,q){var h,e=0;t=t.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||\x3cspan").replace(/<\/span>/g,"\x3c/span\x3e|||");h=t.split("|||");n(h,function(t){if(""!==t||1===h.length){var d={},f=u.createElementNS(c.SVG_NS,"tspan"),n,L;J.test(t)&&(n=t.match(J)[1],g(f,"class",n));B.test(t)&&(L=t.match(B)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),g(f,"style",L));z.test(t)&&!l&&(g(f,
"onclick",'location.href\x3d"'+t.match(z)[1]+'"'),r(f,{cursor:"pointer"}));t=(t.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"\x3c").replace(/&gt;/g,"\x3e");if(" "!==t){f.appendChild(u.createTextNode(t));e?d.dx=0:q&&null!==p&&(d.x=p);g(f,d);b.appendChild(f);!e&&O&&(!M&&l&&r(f,{display:"block"}),g(f,"dy",R(f)));if(D){d=t.replace(/([^\^])-/g,"$1- ").split(" ");n=1<h.length||q||1<d.length&&!K;var v=[],A,E=R(f),F=a.rotation;for(m&&(k=c.applyEllipsis(a,f,t,D));!m&&n&&(d.length||v.length);)a.rotation=
0,A=c.getSpanWidth(a,f),t=A>D,void 0===k&&(k=t),t&&1!==d.length?(f.removeChild(f.firstChild),v.unshift(d.pop())):(d=v,v=[],d.length&&!K&&(f=u.createElementNS(P,"tspan"),g(f,{dy:E,x:p}),L&&g(f,"style",L),b.appendChild(f)),A>D&&(D=A)),d.length&&f.appendChild(u.createTextNode(d.join(" ").replace(/- /g,"-")));a.rotation=F}e++}}});O=O||b.childNodes.length}),k&&a.attr("title",a.textStr),F&&F.removeChild(b),A&&a.applyTextOutline&&a.applyTextOutline(A)):b.appendChild(u.createTextNode(e.replace(/&lt;/g,"\x3c").replace(/&gt;/g,
"\x3e")))}},getContrast:function(a){a=k(a).rgba;return 510<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"},button:function(a,b,c,t,q,h,l,e,d){var f=this.label(a,b,c,d,null,null,null,null,"button"),n=0;f.attr(z({padding:8,r:2},q));y(f.element,K?"mouseover":"mouseenter",function(){3!==n&&f.setState(1)});y(f.element,K?"mouseout":"mouseleave",function(){3!==n&&f.setState(n)});f.setState=function(a){1!==a&&(f.state=n=a);f.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+
["normal","hover","pressed","disabled"][a||0])};return f.on("click",function(a){3!==n&&t.call(f,a)})},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=Math.round(a[1])-b%2/2);a[2]===a[5]&&(a[2]=a[5]=Math.round(a[2])+b%2/2);return a},path:function(a){var b={};G(a)?b.d=a:v(a)&&c(b,a);return this.createElement("path").attr(b)},circle:function(a,b,c){a=v(a)?a:{x:a,y:b,r:c};b=this.createElement("circle");b.xSetter=b.ySetter=function(a,b,c){c.setAttribute("c"+b,a)};return b.attr(a)},arc:function(a,b,c,t,
q,h){v(a)?(t=a,b=t.y,c=t.r,a=t.x):t={innerR:t,start:q,end:h};a=this.symbol("arc",a,b,c,c,t);a.r=c;return a},rect:function(a,b,c,t,q,h){q=v(a)?a.r:q;h=this.createElement("rect");a=v(a)?a:void 0===a?{}:{x:a,y:b,width:Math.max(c,0),height:Math.max(t,0)};q&&(a.r=q);h.rSetter=function(a,b,c){g(c,{rx:a,ry:a})};return h.attr(a)},setSize:function(a,b,c){var t=this.alignedObjects,h=t.length;this.width=a;this.height=b;for(this.boxWrapper.animate({width:a,height:b},{step:function(){this.attr({viewBox:"0 0 "+
this.attr("width")+" "+this.attr("height")})},duration:q(c,!0)?void 0:0});h--;)t[h].align()},g:function(a){var b=this.createElement("g");return a?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,t,q,h){var l={preserveAspectRatio:"none"};1<arguments.length&&c(l,{x:b,y:t,width:q,height:h});l=this.createElement("image").attr(l);l.element.setAttributeNS?l.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):l.element.setAttribute("hc-svg-href",a);return l},symbol:function(a,b,t,h,l,
d){var B=this,z,L=/^url\((.*?)\)$/,g=L.test(a),k=!g&&(this.symbols[a]?a:"circle"),p=k&&this.symbols[k],D=e(b)&&p&&p.call(this.symbols,Math.round(b),Math.round(t),h,l,d),v,J;p?(z=this.path(D),c(z,{symbolName:k,x:b,y:t,width:h,height:l}),d&&c(z,d)):g&&(v=a.match(L)[1],z=this.image(v),z.imgwidth=q(Q[v]&&Q[v].width,d&&d.width),z.imgheight=q(Q[v]&&Q[v].height,d&&d.height),J=function(){z.attr({width:z.width,height:z.height})},n(["width","height"],function(a){z[a+"Setter"]=function(a,b){var c={},t=this["img"+
b],q="width"===b?"translateX":"translateY";this[b]=a;e(t)&&(this.element&&this.element.setAttribute(b,t),this.alignByTranslate||(c[q]=((this[b]||0)-t)/2,this.attr(c)))}}),e(b)&&z.attr({x:b,y:t}),z.isImg=!0,e(z.imgwidth)&&e(z.imgheight)?J():(z.attr({width:0,height:0}),m("img",{onload:function(){var a=f[B.chartIndex];0===this.width&&(r(this,{position:"absolute",top:"-999em"}),u.body.appendChild(this));Q[v]={width:this.width,height:this.height};z.imgwidth=this.width;z.imgheight=this.height;z.element&&
J();this.parentNode&&this.parentNode.removeChild(this);B.imgCount--;if(!B.imgCount&&a&&a.onload)a.onload()},src:v}),this.imgCount++));return z},symbols:{circle:function(a,b,c,t){return this.arc(a+c/2,b+t/2,c/2,t/2,{start:0,end:2*Math.PI,open:!1})},square:function(a,b,c,t){return["M",a,b,"L",a+c,b,a+c,b+t,a,b+t,"Z"]},triangle:function(a,b,c,t){return["M",a+c/2,b,"L",a+c,b+t,a,b+t,"Z"]},"triangle-down":function(a,b,c,t){return["M",a,b,"L",a+c,b,a+c/2,b+t,"Z"]},diamond:function(a,b,c,t){return["M",a+
c/2,b,"L",a+c,b+t/2,a+c/2,b+t,a,b+t/2,"Z"]},arc:function(a,b,c,t,q){var h=q.start,l=q.r||c,d=q.r||t||c,f=q.end-.001;c=q.innerR;t=q.open;var n=Math.cos(h),z=Math.sin(h),B=Math.cos(f),f=Math.sin(f);q=q.end-h<Math.PI?0:1;l=["M",a+l*n,b+d*z,"A",l,d,0,q,1,a+l*B,b+d*f];e(c)&&l.push(t?"M":"L",a+c*B,b+c*f,"A",c,c,0,q,0,a+c*n,b+c*z);l.push(t?"":"Z");return l},callout:function(a,b,c,t,q){var h=Math.min(q&&q.r||0,c,t),l=h+6,e=q&&q.anchorX;q=q&&q.anchorY;var d;d=["M",a+h,b,"L",a+c-h,b,"C",a+c,b,a+c,b,a+c,b+h,
"L",a+c,b+t-h,"C",a+c,b+t,a+c,b+t,a+c-h,b+t,"L",a+h,b+t,"C",a,b+t,a,b+t,a,b+t-h,"L",a,b+h,"C",a,b,a,b,a+h,b];e&&e>c?q>b+l&&q<b+t-l?d.splice(13,3,"L",a+c,q-6,a+c+6,q,a+c,q+6,a+c,b+t-h):d.splice(13,3,"L",a+c,t/2,e,q,a+c,t/2,a+c,b+t-h):e&&0>e?q>b+l&&q<b+t-l?d.splice(33,3,"L",a,q+6,a-6,q,a,q-6,a,b+h):d.splice(33,3,"L",a,t/2,e,q,a,t/2,a,b+h):q&&q>t&&e>a+l&&e<a+c-l?d.splice(23,3,"L",e+6,b+t,e,b+t+6,e-6,b+t,a+h,b+t):q&&0>q&&e>a+l&&e<a+c-l&&d.splice(3,3,"L",e-6,b,e,b-6,e+6,b,c-h,b);return d}},clipRect:function(b,
c,t,q){var h=a.uniqueKey(),l=this.createElement("clipPath").attr({id:h}).add(this.defs);b=this.rect(b,c,t,q,0).add(l);b.id=h;b.clipPath=l;b.count=0;return b},text:function(a,b,c,t){var q=!M&&this.forExport,h={};if(t&&(this.allowHTML||!this.forExport))return this.html(a,b,c);h.x=Math.round(b||0);c&&(h.y=Math.round(c));if(a||0===a)h.text=a;a=this.createElement("text").attr(h);q&&a.css({position:"absolute"});t||(a.xSetter=function(a,b,c){var t=c.getElementsByTagName("tspan"),q,h=c.getAttribute(b),l;
for(l=0;l<t.length;l++)q=t[l],q.getAttribute(b)===h&&q.setAttribute(b,a);c.setAttribute(b,a)});return a},fontMetrics:function(a,b){a=b&&w.prototype.getStyle.call(b,"font-size");a=/px/.test(a)?t(a):/em/.test(a)?parseFloat(a)*(b?this.fontMetrics(null,b.parentNode).f:16):12;b=24>a?a+3:Math.round(1.2*a);return{h:b,b:Math.round(.8*b),f:a}},rotCorr:function(a,b,c){var t=a;b&&c&&(t=Math.max(t*Math.cos(b*d),4));return{x:-a/3*Math.sin(b*d),y:t}},label:function(b,t,q,h,l,d,f,B,L){var g=this,k=g.g("button"!==
L&&"label"),p=k.text=g.text("",0,0,f).attr({zIndex:1}),D,v,P=0,A=3,m=0,u,K,E,F,J,r={},R,H=/^url\((.*?)\)$/.test(h),Q=H,G,M,N,x;L&&k.addClass("highcharts-"+L);Q=!0;G=function(){return D.strokeWidth()%2/2};M=function(){var a=p.element.style,b={};v=(void 0===u||void 0===K||J)&&e(p.textStr)&&p.getBBox();k.width=(u||v.width||0)+2*A+m;k.height=(K||v.height||0)+2*A;R=A+g.fontMetrics(a&&a.fontSize,p).b;Q&&(D||(k.box=D=g.symbols[h]||H?g.symbol(h):g.rect(),D.addClass(("button"===L?"":"highcharts-label-box")+
(L?" highcharts-"+L+"-box":"")),D.add(k),a=G(),b.x=a,b.y=(B?-R:0)+a),b.width=Math.round(k.width),b.height=Math.round(k.height),D.attr(c(b,r)),r={})};N=function(){var a=m+A,b;b=B?0:R;e(u)&&v&&("center"===J||"right"===J)&&(a+={center:.5,right:1}[J]*(u-v.width));if(a!==p.x||b!==p.y)p.attr("x",a),void 0!==b&&p.attr("y",b);p.x=a;p.y=b};x=function(a,b){D?D.attr(a,b):r[a]=b};k.onAdd=function(){p.add(k);k.attr({text:b||0===b?b:"",x:t,y:q});D&&e(l)&&k.attr({anchorX:l,anchorY:d})};k.widthSetter=function(b){u=
a.isNumber(b)?b:null};k.heightSetter=function(a){K=a};k["text-alignSetter"]=function(a){J=a};k.paddingSetter=function(a){e(a)&&a!==A&&(A=k.padding=a,N())};k.paddingLeftSetter=function(a){e(a)&&a!==m&&(m=a,N())};k.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==P&&(P=a,v&&k.attr({x:E}))};k.textSetter=function(a){void 0!==a&&p.textSetter(a);M();N()};k["stroke-widthSetter"]=function(a,b){a&&(Q=!0);this["stroke-width"]=a;x(b,a)};k.rSetter=function(a,b){x(b,a)};k.anchorXSetter=function(a,b){l=
k.anchorX=a;x(b,Math.round(a)-G()-E)};k.anchorYSetter=function(a,b){d=k.anchorY=a;x(b,a-F)};k.xSetter=function(a){k.x=a;P&&(a-=P*((u||v.width)+2*A));E=Math.round(a);k.attr("translateX",E)};k.ySetter=function(a){F=k.y=Math.round(a);k.attr("translateY",F)};var S=k.css;return c(k,{css:function(a){if(a){var b={};a=z(a);n(k.textProps,function(c){void 0!==a[c]&&(b[c]=a[c],delete a[c])});p.css(b)}return S.call(k,a)},getBBox:function(){return{width:v.width+2*A,height:v.height+2*A,x:v.x-A,y:v.y-A}},destroy:function(){O(k.element,
"mouseenter");O(k.element,"mouseleave");p&&(p=p.destroy());D&&(D=D.destroy());w.prototype.destroy.call(k);k=g=M=N=x=null}})}};a.Renderer=C})(I);(function(a){var w=a.attr,C=a.createElement,y=a.css,x=a.defined,g=a.each,f=a.extend,k=a.isFirefox,r=a.isMS,m=a.isWebKit,e=a.pInt,d=a.SVGRenderer,p=a.win,u=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var c=this.element;if(c=a&&"SPAN"===c.tagName&&a.width)delete a.width,this.textWidth=c,this.updateTransform();a&&"ellipsis"===a.textOverflow&&(a.whiteSpace=
"nowrap",a.overflow="hidden");this.styles=f(this.styles,a);y(this.element,a);return this},htmlGetBBox:function(){var a=this.element;"text"===a.nodeName&&(a.style.position="absolute");return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,c=this.element,b=this.x||0,h=this.y||0,l=this.textAlign||"left",d={left:0,center:.5,right:1}[l],f=this.styles;y(c,{marginLeft:this.translateX||0,marginTop:this.translateY||
0});this.inverted&&g(c.childNodes,function(b){a.invertChild(b,c)});if("SPAN"===c.tagName){var k=this.rotation,p=e(this.textWidth),v=f&&f.whiteSpace,u=[k,l,c.innerHTML,this.textWidth,this.textAlign].join();u!==this.cTT&&(f=a.fontMetrics(c.style.fontSize).b,x(k)&&this.setSpanRotation(k,d,f),y(c,{width:"",whiteSpace:v||"nowrap"}),c.offsetWidth>p&&/[ \-]/.test(c.textContent||c.innerText)&&y(c,{width:p+"px",display:"block",whiteSpace:v||"normal"}),this.getSpanCorrection(c.offsetWidth,f,d,k,l));y(c,{left:b+
(this.xCorr||0)+"px",top:h+(this.yCorr||0)+"px"});m&&(f=c.offsetHeight);this.cTT=u}}else this.alignOnAdd=!0},setSpanRotation:function(a,c,b){var h={},l=r?"-ms-transform":m?"-webkit-transform":k?"MozTransform":p.opera?"-o-transform":"";h[l]=h.transform="rotate("+a+"deg)";h[l+(k?"Origin":"-origin")]=h.transformOrigin=100*c+"% "+b+"px";y(this.element,h)},getSpanCorrection:function(a,c,b){this.xCorr=-a*b;this.yCorr=-c}});f(d.prototype,{html:function(a,c,b){var h=this.createElement("span"),l=h.element,
e=h.renderer,d=e.isSVG,k=function(a,b){g(["opacity","visibility"],function(c){u(a,c+"Setter",function(a,c,h,l){a.call(this,c,h,l);b[h]=c})})};h.textSetter=function(a){a!==l.innerHTML&&delete this.bBox;l.innerHTML=this.textStr=a;h.htmlUpdateTransform()};d&&k(h,h.element.style);h.xSetter=h.ySetter=h.alignSetter=h.rotationSetter=function(a,b){"align"===b&&(b="textAlign");h[b]=a;h.htmlUpdateTransform()};h.attr({text:a,x:Math.round(c),y:Math.round(b)}).css({position:"absolute"});l.style.whiteSpace="nowrap";
h.css=h.htmlCss;d&&(h.add=function(a){var b,c=e.box.parentNode,d=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)d.push(a),a=a.parentGroup;g(d.reverse(),function(a){var l,e=w(a.element,"class");e&&(e={className:e});b=a.div=a.div||C("div",e,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);l=b.style;f(a,{on:function(){h.on.apply({element:d[0].div},arguments);return a},translateXSetter:function(b,
c){l.left=b+"px";a[c]=b;a.doTransform=!0},translateYSetter:function(b,c){l.top=b+"px";a[c]=b;a.doTransform=!0}});k(a,l)})}}else b=c;b.appendChild(l);h.added=!0;h.alignOnAdd&&h.htmlUpdateTransform();return h});return h}})})(I);(function(a){var w=a.correctFloat,C=a.defined,y=a.destroyObjectProperties,x=a.isNumber,g=a.pick,f=a.deg2rad;a.Tick=function(a,f,g,e){this.axis=a;this.pos=f;this.type=g||"";this.isNew=!0;g||e||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,f=a.options,
m=a.chart,e=a.categories,d=a.names,p=this.pos,u=f.labels,n=a.tickPositions,c=p===n[0],b=p===n[n.length-1],d=e?g(e[p],d[p],p):p,e=this.label,n=n.info,h;a.isDatetimeAxis&&n&&(h=f.dateTimeLabelFormats[n.higherRanks[p]||n.unitName]);this.isFirst=c;this.isLast=b;f=a.labelFormatter.call({axis:a,chart:m,isFirst:c,isLast:b,dateTimeLabelFormat:h,value:a.isLog?w(a.lin2log(d)):d});C(e)?e&&e.attr({text:f}):(this.labelLength=(this.label=e=C(f)&&u.enabled?m.renderer.text(f,0,0,u.useHTML).add(a.labelGroup):null)&&
e.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(a){var k=this.axis,m=a.x,e=k.chart.chartWidth,d=k.chart.spacing,p=g(k.labelLeft,Math.min(k.pos,d[3])),d=g(k.labelRight,Math.max(k.pos+k.len,e-d[1])),u=this.label,n=this.rotation,c={left:0,center:.5,right:1}[k.labelAlign],b=u.getBBox().width,h=k.getSlotWidth(),l=h,E=1,G,A={};if(n)0>n&&m-c*b<p?G=Math.round(m/Math.cos(n*f)-p):0<n&&m+c*b>d&&(G=
Math.round((e-m)/Math.cos(n*f)));else if(e=m+(1-c)*b,m-c*b<p?l=a.x+l*(1-c)-p:e>d&&(l=d-a.x+l*c,E=-1),l=Math.min(h,l),l<h&&"center"===k.labelAlign&&(a.x+=E*(h-l-c*(h-Math.min(b,l)))),b>l||k.autoRotation&&(u.styles||{}).width)G=l;G&&(A.width=G,(k.options.labels.style||{}).textOverflow||(A.textOverflow="ellipsis"),u.css(A))},getPosition:function(a,f,g,e){var d=this.axis,k=d.chart,m=e&&k.oldChartHeight||k.chartHeight;return{x:a?d.translate(f+g,null,null,e)+d.transB:d.left+d.offset+(d.opposite?(e&&k.oldChartWidth||
k.chartWidth)-d.right-d.left:0),y:a?m-d.bottom+d.offset-(d.opposite?d.height:0):m-d.translate(f+g,null,null,e)-d.transB}},getLabelPosition:function(a,g,m,e,d,p,u,n){var c=this.axis,b=c.transA,h=c.reversed,l=c.staggerLines,k=c.tickRotCorr||{x:0,y:0},r=d.y;C(r)||(r=0===c.side?m.rotation?-8:-m.getBBox().height:2===c.side?k.y+8:Math.cos(m.rotation*f)*(k.y-m.getBBox(!1,0).height/2));a=a+d.x+k.x-(p&&e?p*b*(h?-1:1):0);g=g+r-(p&&!e?p*b*(h?1:-1):0);l&&(m=u/(n||1)%l,c.opposite&&(m=l-m-1),g+=c.labelOffset/l*
m);return{x:a,y:Math.round(g)}},getMarkPath:function(a,f,g,e,d,p){return p.crispLine(["M",a,f,"L",a+(d?0:-g),f+(d?g:0)],e)},renderGridLine:function(a,f,g){var e=this.axis,d=this.gridLine,k={},m=this.pos,n=this.type,c=e.tickmarkOffset,b=e.chart.renderer;d||(n||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=d=b.path().attr(k).addClass("highcharts-"+(n?n+"-":"")+"grid-line").add(e.gridGroup));if(!a&&d&&(a=e.getPlotLinePath(m+c,d.strokeWidth()*g,a,!0)))d[this.isNew?"attr":"animate"]({d:a,opacity:f})},renderMark:function(a,
f,g){var e=this.axis,d=e.chart.renderer,k=this.type,m=e.tickSize(k?k+"Tick":"tick"),n=this.mark,c=!n,b=a.x;a=a.y;m&&(e.opposite&&(m[0]=-m[0]),c&&(this.mark=n=d.path().addClass("highcharts-"+(k?k+"-":"")+"tick").add(e.axisGroup)),n[c?"attr":"animate"]({d:this.getMarkPath(b,a,m[0],n.strokeWidth()*g,e.horiz,d),opacity:f}))},renderLabel:function(a,f,m,e){var d=this.axis,k=d.horiz,u=d.options,n=this.label,c=u.labels,b=c.step,h=d.tickmarkOffset,l=!0,E=a.x;a=a.y;n&&x(E)&&(n.xy=a=this.getLabelPosition(E,
a,n,k,c,h,e,b),this.isFirst&&!this.isLast&&!g(u.showFirstLabel,1)||this.isLast&&!this.isFirst&&!g(u.showLastLabel,1)?l=!1:!k||d.isRadial||c.step||c.rotation||f||0===m||this.handleOverflow(a),b&&e%b&&(l=!1),l&&x(a.y)?(a.opacity=m,n[this.isNew?"attr":"animate"](a)):n.attr("y",-9999),this.isNew=!1)},render:function(a,f,m){var e=this.axis,d=e.horiz,k=this.getPosition(d,this.pos,e.tickmarkOffset,f),u=k.x,n=k.y,e=d&&u===e.pos+e.len||!d&&n===e.pos?-1:1;m=g(m,1);this.isActive=!0;this.renderGridLine(f,m,e);
this.renderMark(k,m,e);this.renderLabel(k,f,m,a)},destroy:function(){y(this,this.axis)}}})(I);var T=function(a){var w=a.addEvent,C=a.animObject,y=a.arrayMax,x=a.arrayMin,g=a.correctFloat,f=a.defaultOptions,k=a.defined,r=a.deg2rad,m=a.destroyObjectProperties,e=a.each,d=a.extend,p=a.fireEvent,u=a.format,n=a.getMagnitude,c=a.grep,b=a.inArray,h=a.isArray,l=a.isNumber,E=a.isString,G=a.merge,A=a.normalizeTickInterval,K=a.objectEach,v=a.pick,F=a.removeEvent,B=a.splat,z=a.syncTimeout,D=a.Tick,H=function(){this.init.apply(this,
arguments)};a.extend(H.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,labels:{enabled:!0,x:0},minPadding:.01,maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle"},type:"linear"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,
showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)}}},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,c){var t=c.isX,
q=this;q.chart=a;q.horiz=a.inverted?!t:t;q.isXAxis=t;q.coll=q.coll||(t?"xAxis":"yAxis");q.opposite=c.opposite;q.side=c.side||(q.horiz?q.opposite?0:2:q.opposite?1:3);q.setOptions(c);var h=this.options,l=h.type;q.labelFormatter=h.labels.formatter||q.defaultLabelFormatter;q.userOptions=c;q.minPixelPadding=0;q.reversed=h.reversed;q.visible=!1!==h.visible;q.zoomEnabled=!1!==h.zoomEnabled;q.hasNames="category"===l||!0===h.categories;q.categories=h.categories||q.hasNames;q.names=q.names||[];q.plotLinesAndBandsGroups=
{};q.isLog="logarithmic"===l;q.isDatetimeAxis="datetime"===l;q.positiveValuesOnly=q.isLog&&!q.allowNegativeLog;q.isLinked=k(h.linkedTo);q.ticks={};q.labelEdge=[];q.minorTicks={};q.plotLinesAndBands=[];q.alternateBands={};q.len=0;q.minRange=q.userMinRange=h.minRange||h.maxZoom;q.range=h.range;q.offset=h.offset||0;q.stacks={};q.oldStacks={};q.stacksTouched=0;q.max=null;q.min=null;q.crosshair=v(h.crosshair,B(a.options.tooltip.crosshairs)[t?0:1],!1);c=q.options.events;-1===b(q,a.axes)&&(t?a.axes.splice(a.xAxis.length,
0,q):a.axes.push(q),a[q.coll].push(q));q.series=q.series||[];a.inverted&&t&&void 0===q.reversed&&(q.reversed=!0);K(c,function(a,b){w(q,b,a)});q.lin2log=h.linearToLogConverter||q.lin2log;q.isLog&&(q.val2lin=q.log2lin,q.lin2val=q.lin2log)},setOptions:function(a){this.options=G(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],G(f[this.coll],a))},defaultLabelFormatter:function(){var b=
this.axis,c=this.value,h=b.categories,l=this.dateTimeLabelFormat,e=f.lang,d=e.numericSymbols,e=e.numericSymbolMagnitude||1E3,k=d&&d.length,g,n=b.options.labels.format,b=b.isLog?Math.abs(c):b.tickInterval;if(n)g=u(n,this);else if(h)g=c;else if(l)g=a.dateFormat(l,c);else if(k&&1E3<=b)for(;k--&&void 0===g;)h=Math.pow(e,k+1),b>=h&&0===10*c%h&&null!==d[k]&&0!==c&&(g=a.numberFormat(c/h,-1)+d[k]);void 0===g&&(g=1E4<=Math.abs(c)?a.numberFormat(c,-1):a.numberFormat(c,-1,void 0,""));return g},getSeriesExtremes:function(){var a=
this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();e(a.series,function(t){if(t.visible||!b.options.chart.ignoreHiddenSeries){var q=t.options,h=q.threshold,e;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=h&&(h=null);if(a.isXAxis)q=t.xData,q.length&&(t=x(q),l(t)||t instanceof Date||(q=c(q,function(a){return l(a)}),t=x(q)),a.dataMin=Math.min(v(a.dataMin,q[0]),t),a.dataMax=Math.max(v(a.dataMax,q[0]),y(q)));else if(t.getExtremes(),
e=t.dataMax,t=t.dataMin,k(t)&&k(e)&&(a.dataMin=Math.min(v(a.dataMin,t),t),a.dataMax=Math.max(v(a.dataMax,e),e)),k(h)&&(a.threshold=h),!q.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})},translate:function(a,b,c,h,e,d){var t=this.linkedParent||this,q=1,f=0,k=h?t.oldTransA:t.transA;h=h?t.oldMin:t.min;var g=t.minPixelPadding;e=(t.isOrdinal||t.isBroken||t.isLog&&e)&&t.lin2val;k||(k=t.transA);c&&(q*=-1,f=t.len);t.reversed&&(q*=-1,f-=q*(t.sector||t.len));b?(a=(a*q+f-g)/k+h,e&&(a=t.lin2val(a))):
(e&&(a=t.val2lin(a)),a=q*(a-h)*k+f+q*g+(l(d)?k*d:0));return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,h,e){var t=this.chart,q=this.left,d=this.top,f,k,g=c&&t.oldChartHeight||t.chartHeight,n=c&&t.oldChartWidth||t.chartWidth,B;f=this.transB;var z=function(a,b,c){if(a<b||a>c)h?a=Math.min(Math.max(b,a),c):B=!0;return a};e=v(e,this.translate(a,
null,null,c));a=c=Math.round(e+f);f=k=Math.round(g-e-f);l(e)?this.horiz?(f=d,k=g-this.bottom,a=c=z(a,q,q+this.width)):(a=q,c=n-this.right,f=k=z(f,d,d+this.height)):B=!0;return B&&!h?null:t.renderer.crispLine(["M",a,f,"L",c,k],b||1)},getLinearTickPositions:function(a,b,c){var t,q=g(Math.floor(b/a)*a);c=g(Math.ceil(c/a)*a);var h=[];if(this.single)return[b];for(b=q;b<=c;){h.push(b);b=g(b+a);if(b===t)break;t=b}return h},getMinorTickPositions:function(){var a=this,b=a.options,c=a.tickPositions,h=a.minorTickInterval,
l=[],d=a.pointRangePadding||0,f=a.min-d,d=a.max+d,k=d-f;if(k&&k/h<a.len/3)if(a.isLog)e(this.paddedTicks,function(b,c,t){c&&l.push.apply(l,a.getLogTickPositions(h,t[c-1],t[c],!0))});else if(a.isDatetimeAxis&&"auto"===b.minorTickInterval)l=l.concat(a.getTimeTicks(a.normalizeTimeTickInterval(h),f,d,b.startOfWeek));else for(b=f+(c[0]-f)%h;b<=d&&b!==l[0];b+=h)l.push(b);0!==l.length&&a.trimTicks(l);return l},adjustForMinRange:function(){var a=this.options,b=this.min,c=this.max,h,l=this.dataMax-this.dataMin>=
this.minRange,d,f,g,n,B,z;this.isXAxis&&void 0===this.minRange&&!this.isLog&&(k(a.min)||k(a.max)?this.minRange=null:(e(this.series,function(a){n=a.xData;for(f=B=a.xIncrement?1:n.length-1;0<f;f--)if(g=n[f]-n[f-1],void 0===d||g<d)d=g}),this.minRange=Math.min(5*d,this.dataMax-this.dataMin)));c-b<this.minRange&&(z=this.minRange,h=(z-c+b)/2,h=[b-h,v(a.min,b-h)],l&&(h[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=y(h),c=[b+z,v(a.max,b+z)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),
c=x(c),c-b<z&&(h[0]=c-z,h[1]=v(a.min,c-z),b=y(h)));this.min=b;this.max=c},getClosest:function(){var a;this.categories?a=1:e(this.series,function(b){var c=b.closestPointRange,t=b.visible||!b.chart.options.chart.ignoreHiddenSeries;!b.noSharedTooltip&&k(c)&&t&&(a=k(a)?Math.min(a,c):c)});return a},nameToX:function(a){var c=h(this.categories),q=c?this.categories:this.names,l=a.options.x,e;a.series.requireSorting=!1;k(l)||(l=!1===this.options.uniqueNames?a.series.autoIncrement():b(a.name,q));-1===l?c||
(e=q.length):e=l;void 0!==e&&(this.names[e]=a.name);return e},updateNames:function(){var a=this;0<this.names.length&&(this.names.length=0,this.minRange=void 0,e(this.series||[],function(b){b.xIncrement=null;if(!b.points||b.isDirtyData)b.processData(),b.generatePoints();e(b.points,function(c,t){var h;c.options&&(h=a.nameToX(c),void 0!==h&&h!==c.x&&(c.x=h,b.xData[t]=h))})}))},setAxisTranslation:function(a){var b=this,c=b.max-b.min,h=b.axisPointRange||0,q,l=0,d=0,f=b.linkedParent,k=!!b.categories,g=
b.transA,n=b.isXAxis;if(n||k||h)q=b.getClosest(),f?(l=f.minPointOffset,d=f.pointRangePadding):e(b.series,function(a){var c=k?1:n?v(a.options.pointRange,q,0):b.axisPointRange||0;a=a.options.pointPlacement;h=Math.max(h,c);b.single||(l=Math.max(l,E(a)?0:c/2),d=Math.max(d,"on"===a?0:c))}),f=b.ordinalSlope&&q?b.ordinalSlope/q:1,b.minPointOffset=l*=f,b.pointRangePadding=d*=f,b.pointRange=Math.min(h,c),n&&(b.closestPointRange=q);a&&(b.oldTransA=g);b.translationSlope=b.transA=g=b.options.staticScale||b.len/
(c+d||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=g*l},minFromRange:function(){return this.max-this.range},setTickInterval:function(b){var c=this,h=c.chart,q=c.options,d=c.isLog,f=c.log2lin,z=c.isDatetimeAxis,B=c.isXAxis,D=c.isLinked,m=q.maxPadding,u=q.minPadding,K=q.tickInterval,F=q.tickPixelInterval,E=c.categories,H=c.threshold,r=c.softThreshold,G,x,w,y;z||E||D||this.getTickAmount();w=v(c.userMin,q.min);y=v(c.userMax,q.max);D?(c.linkedParent=h[c.coll][q.linkedTo],h=c.linkedParent.getExtremes(),
c.min=v(h.min,h.dataMin),c.max=v(h.max,h.dataMax),q.type!==c.linkedParent.options.type&&a.error(11,1)):(!r&&k(H)&&(c.dataMin>=H?(G=H,u=0):c.dataMax<=H&&(x=H,m=0)),c.min=v(w,G,c.dataMin),c.max=v(y,x,c.dataMax));d&&(c.positiveValuesOnly&&!b&&0>=Math.min(c.min,v(c.dataMin,c.min))&&a.error(10,1),c.min=g(f(c.min),15),c.max=g(f(c.max),15));c.range&&k(c.max)&&(c.userMin=c.min=w=Math.max(c.min,c.minFromRange()),c.userMax=y=c.max,c.range=null);p(c,"foundExtremes");c.beforePadding&&c.beforePadding();c.adjustForMinRange();
!(E||c.axisPointRange||c.usePercentage||D)&&k(c.min)&&k(c.max)&&(f=c.max-c.min)&&(!k(w)&&u&&(c.min-=f*u),!k(y)&&m&&(c.max+=f*m));l(q.softMin)&&(c.min=Math.min(c.min,q.softMin));l(q.softMax)&&(c.max=Math.max(c.max,q.softMax));l(q.floor)&&(c.min=Math.max(c.min,q.floor));l(q.ceiling)&&(c.max=Math.min(c.max,q.ceiling));r&&k(c.dataMin)&&(H=H||0,!k(w)&&c.min<H&&c.dataMin>=H?c.min=H:!k(y)&&c.max>H&&c.dataMax<=H&&(c.max=H));c.tickInterval=c.min===c.max||void 0===c.min||void 0===c.max?1:D&&!K&&F===c.linkedParent.options.tickPixelInterval?
K=c.linkedParent.tickInterval:v(K,this.tickAmount?(c.max-c.min)/Math.max(this.tickAmount-1,1):void 0,E?1:(c.max-c.min)*F/Math.max(c.len,F));B&&!b&&e(c.series,function(a){a.processData(c.min!==c.oldMin||c.max!==c.oldMax)});c.setAxisTranslation(!0);c.beforeSetTickPositions&&c.beforeSetTickPositions();c.postProcessTickInterval&&(c.tickInterval=c.postProcessTickInterval(c.tickInterval));c.pointRange&&!K&&(c.tickInterval=Math.max(c.pointRange,c.tickInterval));b=v(q.minTickInterval,c.isDatetimeAxis&&c.closestPointRange);
!K&&c.tickInterval<b&&(c.tickInterval=b);z||d||K||(c.tickInterval=A(c.tickInterval,null,n(c.tickInterval),v(q.allowDecimals,!(.5<c.tickInterval&&5>c.tickInterval&&1E3<c.max&&9999>c.max)),!!this.tickAmount));this.tickAmount||(c.tickInterval=c.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions,h=a.tickPositioner,l=a.startOnTick,e=a.endOnTick;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=
"auto"===a.minorTickInterval&&this.tickInterval?this.tickInterval/5:a.minorTickInterval;this.single=this.min===this.max&&k(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,
this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()]),this.tickPositions=b,h&&(h=h.apply(this,[this.min,this.max])))&&(this.tickPositions=b=h);this.paddedTicks=b.slice(0);this.trimTicks(b,l,e);this.isLinked||(this.single&&(this.min-=.5,this.max+=.5),c||h||this.adjustTickAmount())},trimTicks:function(a,b,c){var h=a[0],q=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==h)this.min=h;else for(;this.min-l>a[0];)a.shift();if(c)this.max=q;else for(;this.max+l<a[a.length-1];)a.pop();
0===a.length&&k(h)&&a.push((q+h)/2)}},alignToOthers:function(){var a={},b,c=this.options;!1===this.chart.options.chart.alignTicks||!1===c.alignTicks||this.isLog||e(this.chart[this.coll],function(c){var h=c.options,h=[c.horiz?h.left:h.top,h.width,h.height,h.pane].join();c.series.length&&(a[h]?b=!0:a[h]=1)});return b},getTickAmount:function(){var a=this.options,b=a.tickAmount,c=a.tickPixelInterval;!k(a.tickInterval)&&this.len<c&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&(b=2);!b&&this.alignToOthers()&&
(b=Math.ceil(this.len/c)+1);4>b&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,h=this.finalTickAmt,l=b&&b.length;if(l<c){for(;b.length<c;)b.push(g(b[b.length-1]+a));this.transA*=(l-1)/(c-1);this.max=b[b.length-1]}else l>c&&(this.tickInterval*=2,this.setTickPositions());if(k(h)){for(a=c=b.length;a--;)(3===h&&1===a%2||2>=h&&0<a&&a<c-1)&&b.splice(a,1);this.finalTickAmt=void 0}},setScale:function(){var a,b;this.oldMin=
this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();b=this.len!==this.oldAxisLength;e(this.series,function(b){if(b.isDirtyData||b.isDirty||b.xAxis.isDirty)a=!0});b||a||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=
b||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks()},setExtremes:function(a,b,c,h,l){var q=this,t=q.chart;c=v(c,!0);e(q.series,function(a){delete a.kdTree});l=d(l,{min:a,max:b});p(q,"setExtremes",l,function(){q.userMin=a;q.userMax=b;q.eventArgs=l;c&&t.redraw(h)})},zoom:function(a,b){var c=this.dataMin,h=this.dataMax,q=this.options,l=Math.min(c,v(q.min,c)),q=Math.max(h,v(q.max,h));if(a!==this.min||b!==this.max)this.allowZoomOutside||(k(c)&&(a<l&&(a=l),a>q&&(a=q)),
k(h)&&(b<l&&(b=l),b>q&&(b=q))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:"zoom"});return!0},setAxisSize:function(){var a=this.chart,b=this.options,c=b.offsets||[0,0,0,0],h=this.horiz,l=v(b.width,a.plotWidth-c[3]+c[1]),e=v(b.height,a.plotHeight-c[0]+c[2]),d=v(b.top,a.plotTop+c[0]),b=v(b.left,a.plotLeft+c[3]),c=/%$/;c.test(e)&&(e=Math.round(parseFloat(e)/100*a.plotHeight));c.test(d)&&(d=Math.round(parseFloat(d)/100*a.plotHeight+a.plotTop));this.left=b;this.top=d;
this.width=l;this.height=e;this.bottom=a.chartHeight-e-d;this.right=a.chartWidth-l-b;this.len=Math.max(h?l:e,0);this.pos=h?b:d},getExtremes:function(){var a=this.isLog,b=this.lin2log;return{min:a?g(b(this.min)):this.min,max:a?g(b(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,c=this.lin2log,h=b?c(this.min):this.min,b=b?c(this.max):this.max;null===a?a=h:h>a?a=h:b<a&&(a=b);return this.translate(a,0,
1,0,1)},autoLabelAlign:function(a){a=(v(a,0)-90*this.side+720)%360;return 15<a&&165>a?"right":195<a&&345>a?"left":"center"},tickSize:function(a){var b=this.options,c=b[a+"Length"],h=v(b[a+"Width"],"tick"===a&&this.isXAxis?1:0);if(h&&c)return"inside"===b[a+"Position"]&&(c=-c),[c,h]},labelMetrics:function(){return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[0]&&this.ticks[0].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,
c=this.tickInterval,h=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),d,f=a.rotation,g=this.labelMetrics(),n,z=Number.MAX_VALUE,B,p=function(a){a/=l||1;a=1<a?Math.ceil(a):1;return a*c};b?(B=!a.staggerLines&&!a.step&&(k(f)?[f]:l<v(a.autoRotationLimit,80)&&a.autoRotation))&&e(B,function(a){var b;if(a===f||a&&-90<=a&&90>=a)n=p(Math.abs(g.h/Math.sin(r*a))),b=n+Math.abs(a/360),b<z&&(z=b,d=a,h=n)}):a.step||(h=p(g.h));this.autoRotation=B;this.labelRotation=v(d,f);return h},getSlotWidth:function(){var a=
this.chart,b=this.horiz,c=this.options.labels,h=Math.max(this.tickPositions.length-(this.categories?0:1),1),l=a.margin[3];return b&&2>(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/h||!b&&(l&&l-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,h=this.ticks,l=this.options.labels,d=this.horiz,f=this.getSlotWidth(),k=Math.max(1,Math.round(f-2*(l.padding||5))),g={},n=this.labelMetrics(),z=l.style&&l.style.textOverflow,B,p=0,D,v;E(l.rotation)||
(g.rotation=l.rotation||0);e(c,function(a){(a=h[a])&&a.labelLength>p&&(p=a.labelLength)});this.maxLabelLength=p;if(this.autoRotation)p>k&&p>n.h?g.rotation=this.labelRotation:this.labelRotation=0;else if(f&&(B={width:k+"px"},!z))for(B.textOverflow="clip",D=c.length;!d&&D--;)if(v=c[D],k=h[v].label)k.styles&&"ellipsis"===k.styles.textOverflow?k.css({textOverflow:"clip"}):h[v].labelLength>f&&k.css({width:f+"px"}),k.getBBox().height>this.len/c.length-(n.h-n.f)&&(k.specCss={textOverflow:"ellipsis"});g.rotation&&
(B={width:(p>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight)+"px"},z||(B.textOverflow="ellipsis"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))g.align=this.labelAlign;e(c,function(a){var b=(a=h[a])&&a.label;b&&(b.attr(g),B&&b.css(G(B,b.specCss)),delete b.specCss,a.rotation=g.rotation)});this.tickRotCorr=b.rotCorr(n.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||k(this.min)&&k(this.max)&&!!this.tickPositions},addTitle:function(a){var b=
this.chart.renderer,c=this.horiz,h=this.opposite,l=this.options.title,q;this.axisTitle||((q=l.textAlign)||(q=(c?{low:"left",middle:"center",high:"right"}:{low:h?"right":"left",middle:"center",high:h?"left":"right"})[l.align]),this.axisTitle=b.text(l.text,0,0,l.useHTML).attr({zIndex:7,rotation:l.rotation||0,align:q}).addClass("highcharts-axis-title").add(this.axisGroup),this.axisTitle.isNew=!0);this.axisTitle[a?"show":"hide"](!0)},generateTick:function(a){var b=this.ticks;b[a]?b[a].addLabel():b[a]=
new D(this,a)},getOffset:function(){var a=this,b=a.chart,c=b.renderer,h=a.options,l=a.tickPositions,d=a.ticks,f=a.horiz,g=a.side,n=b.inverted?[1,0,3,2][g]:g,B,z,p=0,D,A=0,m=h.title,u=h.labels,F=0,E=b.axisOffset,b=b.clipOffset,H=[-1,1,1,-1][g],r=h.className,G=a.axisParent,x=this.tickSize("tick");B=a.hasData();a.showAxis=z=B||v(h.showEmpty,!0);a.staggerLines=a.horiz&&u.staggerLines;a.axisGroup||(a.gridGroup=c.g("grid").attr({zIndex:h.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+
(r||"")).add(G),a.axisGroup=c.g("axis").attr({zIndex:h.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(r||"")).add(G),a.labelGroup=c.g("axis-labels").attr({zIndex:u.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels "+(r||"")).add(G));B||a.isLinked?(e(l,function(b,c){a.generateTick(b,c)}),a.renderUnsquish(),!1===u.reserveSpace||0!==g&&2!==g&&{1:"left",3:"right"}[g]!==a.labelAlign&&"center"!==a.labelAlign||e(l,function(a){F=Math.max(d[a].getLabelSize(),F)}),a.staggerLines&&
(F*=a.staggerLines,a.labelOffset=F*(a.opposite?-1:1))):K(d,function(a,b){a.destroy();delete d[b]});m&&m.text&&!1!==m.enabled&&(a.addTitle(z),z&&!1!==m.reserveSpace&&(a.titleOffset=p=a.axisTitle.getBBox()[f?"height":"width"],D=m.offset,A=k(D)?0:v(m.margin,f?5:10)));a.renderLine();a.offset=H*v(h.offset,E[g]);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};c=0===g?-a.labelMetrics().h:2===g?a.tickRotCorr.y:0;A=Math.abs(F)+A;F&&(A=A-c+H*(f?v(u.y,a.tickRotCorr.y+8*H):u.x));a.axisTitleMargin=v(D,A);E[g]=Math.max(E[g],
a.axisTitleMargin+p+H*a.offset,A,B&&l.length&&x?x[0]+H*a.offset:0);h=h.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2);b[n]=Math.max(b[n],h)},getLinePath:function(a){var b=this.chart,c=this.opposite,h=this.offset,l=this.horiz,d=this.left+(c?this.width:0)+h,h=b.chartHeight-this.bottom-(c?this.height:0)+h;c&&(a*=-1);return b.renderer.crispLine(["M",l?this.left:d,l?h:this.top,"L",l?b.chartWidth-this.right:d,l?h:b.chartHeight-this.bottom],a)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup))},
getTitlePosition:function(){var a=this.horiz,b=this.left,c=this.top,h=this.len,l=this.options.title,d=a?b:c,e=this.opposite,f=this.offset,g=l.x||0,k=l.y||0,n=this.chart.renderer.fontMetrics(l.style&&l.style.fontSize,this.axisTitle).f,h={low:d+(a?0:h),middle:d+h/2,high:d+(a?h:0)}[l.align],b=(a?c+this.height:b)+(a?1:-1)*(e?-1:1)*this.axisTitleMargin+(2===this.side?n:0);return{x:a?h+g:b+(e?this.width:0)+f+g,y:a?b+k-(e?this.height:0)+f:h+k}},renderMinorTick:function(a){var b=this.chart.hasRendered&&l(this.oldMin),
c=this.minorTicks;c[a]||(c[a]=new D(this,a,"minor"));b&&c[a].isNew&&c[a].render(null,!0);c[a].render(null,!1,1)},renderTick:function(a,b){var c=this.isLinked,h=this.ticks,d=this.chart.hasRendered&&l(this.oldMin);if(!c||a>=this.min&&a<=this.max)h[a]||(h[a]=new D(this,a)),d&&h[a].isNew&&h[a].render(b,!0,.1),h[a].render(b)},render:function(){var b=this,c=b.chart,h=b.options,l=b.isLog,d=b.lin2log,f=b.isLinked,g=b.tickPositions,k=b.axisTitle,n=b.ticks,B=b.minorTicks,p=b.alternateBands,v=h.stackLabels,
A=h.alternateGridColor,m=b.tickmarkOffset,u=b.axisLine,F=b.showAxis,E=C(c.renderer.globalAnimation),H,r;b.labelEdge.length=0;b.overlap=!1;e([n,B,p],function(a){K(a,function(a){a.isActive=!1})});if(b.hasData()||f)b.minorTickInterval&&!b.categories&&e(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),g.length&&(e(g,function(a,c){b.renderTick(a,c)}),m&&(0===b.min||b.single)&&(n[-1]||(n[-1]=new D(b,-1,null,!0)),n[-1].render(-1))),A&&e(g,function(h,e){r=void 0!==g[e+1]?g[e+1]+m:b.max-m;0===
e%2&&h<b.max&&r<=b.max+(c.polar?-m:m)&&(p[h]||(p[h]=new a.PlotLineOrBand(b)),H=h+m,p[h].options={from:l?d(H):H,to:l?d(r):r,color:A},p[h].render(),p[h].isActive=!0)}),b._addedPlotLB||(e((h.plotLines||[]).concat(h.plotBands||[]),function(a){b.addPlotBandOrLine(a)}),b._addedPlotLB=!0);e([n,B,p],function(a){var b,h=[],l=E.duration;K(a,function(a,b){a.isActive||(a.render(b,!1,0),a.isActive=!1,h.push(b))});z(function(){for(b=h.length;b--;)a[h[b]]&&!a[h[b]].isActive&&(a[h[b]].destroy(),delete a[h[b]])},
a!==p&&c.hasRendered&&l?l:0)});u&&(u[u.isPlaced?"animate":"attr"]({d:this.getLinePath(u.strokeWidth())}),u.isPlaced=!0,u[F?"show":"hide"](!0));k&&F&&(k[k.isNew?"attr":"animate"](b.getTitlePosition()),k.isNew=!1);v&&v.enabled&&b.renderStackTotals();b.isDirty=!1},redraw:function(){this.visible&&(this.render(),e(this.plotLinesAndBands,function(a){a.render()}));e(this.series,function(a){a.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(a){var c=this,
h=c.stacks,l=c.plotLinesAndBands,d;a||F(c);K(h,function(a,b){m(a);h[b]=null});e([c.ticks,c.minorTicks,c.alternateBands],function(a){m(a)});if(l)for(a=l.length;a--;)l[a].destroy();e("stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross".split(" "),function(a){c[a]&&(c[a]=c[a].destroy())});for(d in c.plotLinesAndBandsGroups)c.plotLinesAndBandsGroups[d]=c.plotLinesAndBandsGroups[d].destroy();K(c,function(a,h){-1===b(h,c.keepProps)&&delete c[h]})},drawCrosshair:function(a,b){var c,
h=this.crosshair,l=v(h.snap,!0),d,e=this.cross;a||(a=this.cross&&this.cross.e);this.crosshair&&!1!==(k(b)||!l)?(l?k(b)&&(d=this.isXAxis?b.plotX:this.len-b.plotY):d=a&&(this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos),k(d)&&(c=this.getPlotLinePath(b&&(this.isXAxis?b.x:v(b.stackY,b.y)),null,null,null,d)||null),k(c)?(b=this.categories&&!this.isRadial,e||(this.cross=e=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(b?"category ":"thin ")+h.className).attr({zIndex:v(h.zIndex,
2)}).add()),e.show().attr({d:c}),b&&!h.width&&e.attr({"stroke-width":this.transA}),this.cross.e=a):this.hideCrosshair()):this.hideCrosshair()},hideCrosshair:function(){this.cross&&this.cross.hide()}});return a.Axis=H}(I);(function(a){var w=a.Axis,C=a.getMagnitude,y=a.map,x=a.normalizeTickInterval,g=a.pick;w.prototype.getLogTickPositions=function(a,k,r,m){var e=this.options,d=this.len,f=this.lin2log,u=this.log2lin,n=[];m||(this._minorAutoInterval=null);if(.5<=a)a=Math.round(a),n=this.getLinearTickPositions(a,
k,r);else if(.08<=a)for(var d=Math.floor(k),c,b,h,l,E,e=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];d<r+1&&!E;d++)for(b=e.length,c=0;c<b&&!E;c++)h=u(f(d)*e[c]),h>k&&(!m||l<=r)&&void 0!==l&&n.push(l),l>r&&(E=!0),l=h;else k=f(k),r=f(r),a=e[m?"minorTickInterval":"tickInterval"],a=g("auto"===a?null:a,this._minorAutoInterval,e.tickPixelInterval/(m?5:1)*(r-k)/((m?d/this.tickPositions.length:d)||1)),a=x(a,null,C(a)),n=y(this.getLinearTickPositions(a,k,r),u),m||(this._minorAutoInterval=a/5);m||(this.tickInterval=
a);return n};w.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};w.prototype.lin2log=function(a){return Math.pow(10,a)}})(I);(function(a,w){var C=a.arrayMax,y=a.arrayMin,x=a.defined,g=a.destroyObjectProperties,f=a.each,k=a.erase,r=a.merge,m=a.pick;a.PlotLineOrBand=function(a,d){this.axis=a;d&&(this.options=d,this.id=d.id)};a.PlotLineOrBand.prototype={render:function(){var e=this,d=e.axis,f=d.horiz,g=e.options,k=g.label,c=e.label,b=g.to,h=g.from,l=g.value,E=x(h)&&x(b),G=x(l),A=e.svgElem,
K=!A,v=[],F=m(g.zIndex,0),B=g.events,v={"class":"highcharts-plot-"+(E?"band ":"line ")+(g.className||"")},z={},D=d.chart.renderer,H=E?"bands":"lines",q;q=d.log2lin;d.isLog&&(h=q(h),b=q(b),l=q(l));z.zIndex=F;H+="-"+F;(q=d.plotLinesAndBandsGroups[H])||(d.plotLinesAndBandsGroups[H]=q=D.g("plot-"+H).attr(z).add());K&&(e.svgElem=A=D.path().attr(v).add(q));if(G)v=d.getPlotLinePath(l,A.strokeWidth());else if(E)v=d.getPlotBandPath(h,b,g);else return;K&&v&&v.length?(A.attr({d:v}),B&&a.objectEach(B,function(a,
b){A.on(b,function(a){B[b].apply(e,[a])})})):A&&(v?(A.show(),A.animate({d:v})):(A.hide(),c&&(e.label=c=c.destroy())));k&&x(k.text)&&v&&v.length&&0<d.width&&0<d.height&&!v.flat?(k=r({align:f&&E&&"center",x:f?!E&&4:10,verticalAlign:!f&&E&&"middle",y:f?E?16:10:E?6:-4,rotation:f&&!E&&90},k),this.renderLabel(k,v,E,F)):c&&c.hide();return e},renderLabel:function(a,d,f,g){var e=this.label,c=this.axis.chart.renderer;e||(e={align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(f?"band":
"line")+"-label "+(a.className||"")},e.zIndex=g,this.label=e=c.text(a.text,0,0,a.useHTML).attr(e).add());g=[d[1],d[4],f?d[6]:d[1]];d=[d[2],d[5],f?d[7]:d[2]];f=y(g);c=y(d);e.align(a,!1,{x:f,y:c,width:C(g)-f,height:C(d)-c});e.show()},destroy:function(){k(this.axis.plotLinesAndBands,this);delete this.axis;g(this)}};a.extend(w.prototype,{getPlotBandPath:function(a,d){var e=this.getPlotLinePath(d,null,null,!0),f=this.getPlotLinePath(a,null,null,!0),g=this.horiz,c=1;a=a<this.min&&d<this.min||a>this.max&&
d>this.max;f&&e?(a&&(f.flat=f.toString()===e.toString(),c=0),f.push(g&&e[4]===f[4]?e[4]+c:e[4],g||e[5]!==f[5]?e[5]:e[5]+c,g&&e[1]===f[1]?e[1]+c:e[1],g||e[2]!==f[2]?e[2]:e[2]+c)):f=null;return f},addPlotBand:function(a){return this.addPlotBandOrLine(a,"plotBands")},addPlotLine:function(a){return this.addPlotBandOrLine(a,"plotLines")},addPlotBandOrLine:function(e,d){var f=(new a.PlotLineOrBand(this,e)).render(),g=this.userOptions;f&&(d&&(g[d]=g[d]||[],g[d].push(e)),this.plotLinesAndBands.push(f));return f},
removePlotBandOrLine:function(a){for(var d=this.plotLinesAndBands,e=this.options,g=this.userOptions,n=d.length;n--;)d[n].id===a&&d[n].destroy();f([e.plotLines||[],g.plotLines||[],e.plotBands||[],g.plotBands||[]],function(c){for(n=c.length;n--;)c[n].id===a&&k(c,c[n])})},removePlotBand:function(a){this.removePlotBandOrLine(a)},removePlotLine:function(a){this.removePlotBandOrLine(a)}})})(I,T);(function(a){var w=a.dateFormat,C=a.each,y=a.extend,x=a.format,g=a.isNumber,f=a.map,k=a.merge,r=a.pick,m=a.splat,
e=a.syncTimeout,d=a.timeUnits;a.Tooltip=function(){this.init.apply(this,arguments)};a.Tooltip.prototype={init:function(a,d){this.chart=a;this.options=d;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=d.split&&!a.inverted;this.shared=d.shared||this.split},cleanSplit:function(a){C(this.chart.series,function(d){var e=d&&d.tt;e&&(!e.isActive||a?d.tt=e.destroy():e.isActive=!1)})},applyFilter:function(){var a=this.chart;a.renderer.definition({tagName:"filter",id:"drop-shadow-"+a.index,
opacity:.5,children:[{tagName:"feGaussianBlur",in:"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",in:"SourceGraphic"}]}]});a.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+a.index+"{filter:url(#drop-shadow-"+a.index+")}"})},getLabel:function(){var a=this.chart.renderer,d=this.options;this.label||(this.label=
this.split?a.g("tooltip"):a.label("",0,0,d.shape||"callout",null,null,d.useHTML,null,"tooltip").attr({padding:d.padding,r:d.borderRadius}),this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index),this.label.attr({zIndex:8}).add());return this.label},update:function(a){this.destroy();k(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,k(!0,this.options,a))},destroy:function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,
!0),this.tt=this.tt.destroy());clearTimeout(this.hideTimer);clearTimeout(this.tooltipTimeout)},move:function(a,d,e,c){var b=this,h=b.now,l=!1!==b.options.animation&&!b.isHidden&&(1<Math.abs(a-h.x)||1<Math.abs(d-h.y)),f=b.followPointer||1<b.len;y(h,{x:l?(2*h.x+a)/3:a,y:l?(h.y+d)/2:d,anchorX:f?void 0:l?(2*h.anchorX+e)/3:e,anchorY:f?void 0:l?(h.anchorY+c)/2:c});b.getLabel().attr(h);l&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){b&&b.move(a,d,e,c)},32))},hide:function(a){var d=
this;clearTimeout(this.hideTimer);a=r(a,this.options.hideDelay,500);this.isHidden||(this.hideTimer=e(function(){d.getLabel()[a?"fadeOut":"hide"]();d.isHidden=!0},a))},getAnchor:function(a,d){var e,c=this.chart,b=c.inverted,h=c.plotTop,l=c.plotLeft,g=0,k=0,A,p;a=m(a);e=a[0].tooltipPos;this.followPointer&&d&&(void 0===d.chartX&&(d=c.pointer.normalize(d)),e=[d.chartX-c.plotLeft,d.chartY-h]);e||(C(a,function(a){A=a.series.yAxis;p=a.series.xAxis;g+=a.plotX+(!b&&p?p.left-l:0);k+=(a.plotLow?(a.plotLow+a.plotHigh)/
2:a.plotY)+(!b&&A?A.top-h:0)}),g/=a.length,k/=a.length,e=[b?c.plotWidth-k:g,this.shared&&!b&&1<a.length&&d?d.chartY-h:b?c.plotHeight-g:k]);return f(e,Math.round)},getPosition:function(a,d,e){var c=this.chart,b=this.distance,h={},l=e.h||0,f,g=["y",c.chartHeight,d,e.plotY+c.plotTop,c.plotTop,c.plotTop+c.plotHeight],k=["x",c.chartWidth,a,e.plotX+c.plotLeft,c.plotLeft,c.plotLeft+c.plotWidth],n=!this.followPointer&&r(e.ttBelow,!c.inverted===!!e.negative),v=function(a,c,d,e,f,g){var q=d<e-b,k=e+b+d<c,t=
e-b-d;e+=b;if(n&&k)h[a]=e;else if(!n&&q)h[a]=t;else if(q)h[a]=Math.min(g-d,0>t-l?t:t-l);else if(k)h[a]=Math.max(f,e+l+d>c?e:e+l);else return!1},m=function(a,c,l,d){var e;d<b||d>c-b?e=!1:h[a]=d<l/2?1:d>c-l/2?c-l-2:d-l/2;return e},B=function(a){var b=g;g=k;k=b;f=a},z=function(){!1!==v.apply(0,g)?!1!==m.apply(0,k)||f||(B(!0),z()):f?h.x=h.y=0:(B(!0),z())};(c.inverted||1<this.len)&&B();z();return h},defaultFormatter:function(a){var d=this.points||m(this),e;e=[a.tooltipFooterHeaderFormatter(d[0])];e=e.concat(a.bodyFormatter(d));
e.push(a.tooltipFooterHeaderFormatter(d[0],!0));return e},refresh:function(a,d){var e,c,b=a,h,l={},f=[];e=this.options.formatter||this.defaultFormatter;var l=this.shared,g;clearTimeout(this.hideTimer);this.followPointer=m(b)[0].series.tooltipOptions.followPointer;h=this.getAnchor(b,d);d=h[0];c=h[1];!l||b.series&&b.series.noSharedTooltip?l=b.getLabelConfig():(C(b,function(a){a.setState("hover");f.push(a.getLabelConfig())}),l={x:b[0].category,y:b[0].y},l.points=f,b=b[0]);this.len=f.length;l=e.call(l,
this);g=b.series;this.distance=r(g.tooltipOptions.distance,16);!1===l?this.hide():(e=this.getLabel(),this.isHidden&&e.attr({opacity:1}).show(),this.split?this.renderSplit(l,a):(e.attr({text:l&&l.join?l.join(""):l}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+r(b.colorIndex,g.colorIndex)),this.updatePosition({plotX:d,plotY:c,negative:b.negative,ttBelow:b.ttBelow,h:h[2]||0})),this.isHidden=!1)},renderSplit:function(d,e){var f=this,c=[],b=this.chart,h=b.renderer,l=!0,g=this.options,
k,A=this.getLabel();C(d.slice(0,e.length+1),function(a,d){d=e[d-1]||{isHeader:!0,plotX:e[0].plotX};var n=d.series||f,B=n.tt,z="highcharts-color-"+r(d.colorIndex,(d.series||{}).colorIndex,"none");B||(n.tt=B=h.label(null,null,null,"callout").addClass("highcharts-tooltip-box "+z).attr({padding:g.padding,r:g.borderRadius}).add(A));B.isActive=!0;B.attr({text:a});a=B.getBBox();z=a.width+B.strokeWidth();d.isHeader?(k=a.height,z=Math.max(0,Math.min(d.plotX+b.plotLeft-z/2,b.chartWidth-z))):z=d.plotX+b.plotLeft-
r(g.distance,16)-z;0>z&&(l=!1);a=(d.series&&d.series.yAxis&&d.series.yAxis.pos)+(d.plotY||0);a-=b.plotTop;c.push({target:d.isHeader?b.plotHeight+k:a,rank:d.isHeader?1:0,size:n.tt.getBBox().height+1,point:d,x:z,tt:B})});this.cleanSplit();a.distribute(c,b.plotHeight+k);C(c,function(a){var c=a.point,h=c.series;a.tt.attr({visibility:void 0===a.pos?"hidden":"inherit",x:l||c.isHeader?a.x:c.plotX+b.plotLeft+r(g.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+h.xAxis.pos,anchorY:c.isHeader?
a.pos+b.plotTop-15:c.plotY+h.yAxis.pos})})},updatePosition:function(a){var d=this.chart,e=this.getLabel(),e=(this.options.positioner||this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+d.plotLeft,a.plotY+d.plotTop)},getDateFormat:function(a,e,f,c){var b=w("%m-%d %H:%M:%S.%L",e),h,l,g={millisecond:15,second:12,minute:9,hour:6,day:3},k="millisecond";for(l in d){if(a===d.week&&+w("%w",e)===f&&"00:00:00.000"===b.substr(6)){l="week";break}if(d[l]>a){l=
k;break}if(g[l]&&b.substr(g[l])!=="01-01 00:00:00.000".substr(g[l]))break;"week"!==l&&(k=l)}l&&(h=c[l]);return h},getXDateFormat:function(a,d,e){d=d.dateTimeLabelFormats;var c=e&&e.closestPointRange;return(c?this.getDateFormat(c,a.x,e.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){var e=d?"footer":"header";d=a.series;var c=d.tooltipOptions,b=c.xDateFormat,h=d.xAxis,l=h&&"datetime"===h.options.type&&g(a.key),e=c[e+"Format"];l&&!b&&(b=this.getXDateFormat(a,c,h));l&&
b&&(e=e.replace("{point.key}","{point.key:"+b+"}"));return x(e,{point:a,series:d})},bodyFormatter:function(a){return f(a,function(a){var d=a.series.tooltipOptions;return(d.pointFormatter||a.point.tooltipFormatter).call(a.point,d.pointFormat)})}}})(I);(function(a){var w=a.addEvent,C=a.attr,y=a.charts,x=a.css,g=a.defined,f=a.doc,k=a.each,r=a.extend,m=a.fireEvent,e=a.offset,d=a.pick,p=a.removeEvent,u=a.splat,n=a.Tooltip,c=a.win;a.Pointer=function(a,c){this.init(a,c)};a.Pointer.prototype={init:function(a,
c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};n&&c.tooltip.enabled&&(a.tooltip=new n(a,c.tooltip),this.followTouchMove=d(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||"",b=b.inverted;/touch/.test(a.type)&&(e=d(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=
a||e},normalize:function(a,h){var b,d;a=a||c.event;a.target||(a.target=a.srcElement);d=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;h||(this.chartPosition=h=e(this.chart.container));void 0===d.pageX?(b=Math.max(a.x,a.clientX-h.left),h=a.y):(b=d.pageX-h.left,h=d.pageY-h.top);return r(a,{chartX:Math.round(b),chartY:Math.round(h)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};k(this.chart.axes,function(c){b[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?
"chartX":"chartY"])})});return b},getKDPoints:function(a,c,l){var b=[],h,e,f;k(a,function(a){h=a.noSharedTooltip&&c;e=!c&&a.directTouch;a.visible&&!e&&d(a.options.enableMouseTracking,!0)&&(f=a.searchPoint(l,!h&&0>a.options.findNearestPointBy.indexOf("y")))&&f.series&&b.push(f)});b.sort(function(a,b){var h=a.distX-b.distX,l=a.dist-b.dist,d=(b.series.group&&b.series.group.zIndex)-(a.series.group&&a.series.group.zIndex);return 0!==h&&c?h:0!==l?l:0!==d?d:a.series.index>b.series.index?-1:1});if(c&&b[0]&&
!b[0].series.noSharedTooltip)for(a=b.length;a--;)(b[a].x!==b[0].x||b[a].series.noSharedTooltip)&&b.splice(a,1);return b},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getHoverData:function(b,c,l,e,f,g){var h=b,n=c,m;e?f?(m=[],k(l,function(a){var b=a.noSharedTooltip&&f,c=!f&&a.directTouch;a.visible&&!b&&!c&&d(a.options.enableMouseTracking,!0)&&(a=a.searchKDTree({clientX:h.clientX,plotY:h.plotY},!b&&1===a.kdDimensions))&&a.series&&m.push(a)}),0===m.length&&
(m=[h])):m=[h]:n&&!n.stickyTracking?(f||(l=[n]),m=this.getKDPoints(l,f,g),h=a.find(m,function(a){return a.series===n})):(b=a.grep(l,function(a){return a.stickyTracking}),m=this.getKDPoints(b,f,g),n=(h=m[0])&&h.series,f&&(m=this.getKDPoints(l,f,g)));m.sort(function(a,b){return a.series.index-b.series.index});return{hoverPoint:h,hoverSeries:n,hoverPoints:m}},runPointActions:function(b,c){var h=this.chart,e=h.tooltip,g=e?e.shared:!1,n=c||h.hoverPoint,m=n&&n.series||h.hoverSeries;c=this.getHoverData(n,
m,h.series,!!c||m&&m.directTouch,g,b);var v,p,n=c.hoverPoint;v=(m=c.hoverSeries)&&m.tooltipOptions.followPointer;p=(g=g&&n&&!n.series.noSharedTooltip)?c.hoverPoints:n?[n]:[];if(n&&(n!==h.hoverPoint||e&&e.isHidden)){k(h.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});k(p||[],function(a){a.setState("hover")});if(h.hoverSeries!==m)m.onMouseOver();m&&!m.directTouch&&(h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),n.firePointEvent("mouseOver"));h.hoverPoints=p;h.hoverPoint=n;e&&
e.refresh(g?p:n,b)}else v&&e&&!e.isHidden&&(m=e.getAnchor([{}],b),e.updatePosition({plotX:m[0],plotY:m[1]}));this.unDocMouseMove||(this.unDocMouseMove=w(f,"mousemove",function(b){var c=y[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));k(h.axes,function(c){d(c.crosshair.snap,!0)?a.find(p,function(a){return a.series[c.coll]===c})?c.drawCrosshair(b,n):c.hideCrosshair():c.drawCrosshair(b)})},reset:function(a,c){var b=this.chart,h=b.hoverSeries,d=b.hoverPoint,e=b.hoverPoints,f=b.tooltip,g=
f&&f.shared?e:d;a&&g&&k(u(g),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)f&&g&&(f.refresh(g),d&&(d.setState(d.state,!0),k(b.axes,function(a){a.crosshair&&a.drawCrosshair(null,d)})));else{if(d)d.onMouseOut();e&&k(e,function(a){a.setState()});if(h)h.onMouseOut();f&&f.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());k(b.axes,function(a){a.hideCrosshair()});this.hoverX=b.hoverPoints=b.hoverPoint=null}},scaleGroups:function(a,c){var b=this.chart,h;k(b.series,
function(d){h=a||d.getPlotBox();d.xAxis&&d.xAxis.zoomEnabled&&d.group&&(d.group.attr(h),d.markerGroup&&(d.markerGroup.attr(h),d.markerGroup.clip(c?b.clipRect:null)),d.dataLabelsGroup&&d.dataLabelsGroup.attr(h))});b.clipRect.attr(c||b.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,d=a.chartX,e=a.chartY,f=this.zoomHor,g=this.zoomVert,
k=b.plotLeft,n=b.plotTop,B=b.plotWidth,z=b.plotHeight,D,m=this.selectionMarker,q=this.mouseDownX,t=this.mouseDownY,p=c.panKey&&a[c.panKey+"Key"];m&&m.touch||(d<k?d=k:d>k+B&&(d=k+B),e<n?e=n:e>n+z&&(e=n+z),this.hasDragged=Math.sqrt(Math.pow(q-d,2)+Math.pow(t-e,2)),10<this.hasDragged&&(D=b.isInsidePlot(q-k,t-n),b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&D&&!p&&!m&&(this.selectionMarker=m=b.renderer.rect(k,n,f?1:B,g?1:z,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add()),m&&f&&(d-=q,
m.attr({width:Math.abs(d),x:(0<d?0:d)+q})),m&&g&&(d=e-t,m.attr({height:Math.abs(d),y:(0<d?0:d)+t})),D&&!m&&c.panning&&b.pan(a,c.panning)))},drop:function(a){var b=this,c=this.chart,d=this.hasPinched;if(this.selectionMarker){var e={originalEvent:a,xAxis:[],yAxis:[]},f=this.selectionMarker,n=f.attr?f.attr("x"):f.x,p=f.attr?f.attr("y"):f.y,F=f.attr?f.attr("width"):f.width,B=f.attr?f.attr("height"):f.height,z;if(this.hasDragged||d)k(c.axes,function(c){if(c.zoomEnabled&&g(c.min)&&(d||b[{xAxis:"zoomX",
yAxis:"zoomY"}[c.coll]])){var h=c.horiz,l="touchend"===a.type?c.minPixelPadding:0,f=c.toValue((h?n:p)+l),h=c.toValue((h?n+F:p+B)-l);e[c.coll].push({axis:c,min:Math.min(f,h),max:Math.max(f,h)});z=!0}}),z&&m(c,"selection",e,function(a){c.zoom(r(a,d?{animation:!1}:null))});this.selectionMarker=this.selectionMarker.destroy();d&&this.scaleGroups()}c&&(x(c.container,{cursor:c._cursor}),c.cancelClick=10<this.hasDragged,c.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(a){a=
this.normalize(a);this.zoomOption(a);a.preventDefault&&a.preventDefault();this.dragStart(a)},onDocumentMouseUp:function(b){y[a.hoverChartIndex]&&y[a.hoverChartIndex].pointer.drop(b)},onDocumentMouseMove:function(a){var b=this.chart,c=this.chartPosition;a=this.normalize(a,c);!c||this.inClass(a.target,"highcharts-tracker")||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)||this.reset()},onContainerMouseLeave:function(b){var c=y[a.hoverChartIndex];c&&(b.relatedTarget||b.toElement)&&(c.pointer.reset(),
c.pointer.chartPosition=null)},onContainerMouseMove:function(b){var c=this.chart;g(a.hoverChartIndex)&&y[a.hoverChartIndex]&&y[a.hoverChartIndex].mouseIsDown||(a.hoverChartIndex=c.index);b=this.normalize(b);b.returnValue=!1;"mousedown"===c.mouseIsDown&&this.drag(b);!this.inClass(b.target,"highcharts-tracker")&&!c.isInsidePlot(b.chartX-c.plotLeft,b.chartY-c.plotTop)||c.openMenu||this.runPointActions(b)},inClass:function(a,c){for(var b;a;){if(b=C(a,"class")){if(-1!==b.indexOf(c))return!0;if(-1!==b.indexOf("highcharts-container"))return!1}a=
a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries;a=a.relatedTarget||a.toElement;if(!(!b||!a||b.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+b.index)&&this.inClass(a,"highcharts-tracker")))b.onMouseOut()},onContainerClick:function(a){var b=this.chart,c=b.hoverPoint,d=b.plotLeft,e=b.plotTop;a=this.normalize(a);b.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(m(c.series,"click",r(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",
a)):(r(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-d,a.chartY-e)&&m(b,"click",a)))},setDOMEvents:function(){var b=this,c=b.chart.container;c.onmousedown=function(a){b.onContainerMouseDown(a)};c.onmousemove=function(a){b.onContainerMouseMove(a)};c.onclick=function(a){b.onContainerClick(a)};w(c,"mouseleave",b.onContainerMouseLeave);1===a.chartCount&&w(f,"mouseup",b.onDocumentMouseUp);a.hasTouch&&(c.ontouchstart=function(a){b.onContainerTouchStart(a)},c.ontouchmove=function(a){b.onContainerTouchMove(a)},
1===a.chartCount&&w(f,"touchend",b.onDocumentTouchEnd))},destroy:function(){var b=this;b.unDocMouseMove&&b.unDocMouseMove();p(b.chart.container,"mouseleave",b.onContainerMouseLeave);a.chartCount||(p(f,"mouseup",b.onDocumentMouseUp),p(f,"touchend",b.onDocumentTouchEnd));clearInterval(b.tooltipTimeout);a.objectEach(b,function(a,c){b[c]=null})}}})(I);(function(a){var w=a.charts,C=a.each,y=a.extend,x=a.map,g=a.noop,f=a.pick;y(a.Pointer.prototype,{pinchTranslate:function(a,f,g,e,d,p){this.zoomHor&&this.pinchTranslateDirection(!0,
a,f,g,e,d,p);this.zoomVert&&this.pinchTranslateDirection(!1,a,f,g,e,d,p)},pinchTranslateDirection:function(a,f,g,e,d,p,u,n){var c=this.chart,b=a?"x":"y",h=a?"X":"Y",l="chart"+h,k=a?"width":"height",m=c["plot"+(a?"Left":"Top")],A,K,v=n||1,F=c.inverted,B=c.bounds[a?"h":"v"],z=1===f.length,D=f[0][l],H=g[0][l],q=!z&&f[1][l],t=!z&&g[1][l],r;g=function(){!z&&20<Math.abs(D-q)&&(v=n||Math.abs(H-t)/Math.abs(D-q));K=(m-H)/v+D;A=c["plot"+(a?"Width":"Height")]/v};g();f=K;f<B.min?(f=B.min,r=!0):f+A>B.max&&(f=
B.max-A,r=!0);r?(H-=.8*(H-u[b][0]),z||(t-=.8*(t-u[b][1])),g()):u[b]=[H,t];F||(p[b]=K-m,p[k]=A);p=F?1/v:v;d[k]=A;d[b]=f;e[F?a?"scaleY":"scaleX":"scale"+h]=v;e["translate"+h]=p*m+(H-p*D)},pinch:function(a){var k=this,m=k.chart,e=k.pinchDown,d=a.touches,p=d.length,u=k.lastValidTouch,n=k.hasZoom,c=k.selectionMarker,b={},h=1===p&&(k.inClass(a.target,"highcharts-tracker")&&m.runTrackerClick||k.runChartClick),l={};1<p&&(k.initiated=!0);n&&k.initiated&&!h&&a.preventDefault();x(d,function(a){return k.normalize(a)});
"touchstart"===a.type?(C(d,function(a,b){e[b]={chartX:a.chartX,chartY:a.chartY}}),u.x=[e[0].chartX,e[1]&&e[1].chartX],u.y=[e[0].chartY,e[1]&&e[1].chartY],C(m.axes,function(a){if(a.zoomEnabled){var b=m.bounds[a.horiz?"h":"v"],c=a.minPixelPadding,h=a.toPixels(f(a.options.min,a.dataMin)),d=a.toPixels(f(a.options.max,a.dataMax)),e=Math.max(h,d);b.min=Math.min(a.pos,Math.min(h,d)-c);b.max=Math.max(a.pos+a.len,e+c)}}),k.res=!0):k.followTouchMove&&1===p?this.runPointActions(k.normalize(a)):e.length&&(c||
(k.selectionMarker=c=y({destroy:g,touch:!0},m.plotBox)),k.pinchTranslate(e,d,b,c,l,u),k.hasPinched=n,k.scaleGroups(b,l),k.res&&(k.res=!1,this.reset(!1,0)))},touch:function(g,r){var k=this.chart,e,d;if(k.index!==a.hoverChartIndex)this.onContainerMouseLeave({relatedTarget:!0});a.hoverChartIndex=k.index;1===g.touches.length?(g=this.normalize(g),(d=k.isInsidePlot(g.chartX-k.plotLeft,g.chartY-k.plotTop))&&!k.openMenu?(r&&this.runPointActions(g),"touchmove"===g.type&&(r=this.pinchDown,e=r[0]?4<=Math.sqrt(Math.pow(r[0].chartX-
g.chartX,2)+Math.pow(r[0].chartY-g.chartY,2)):!1),f(e,!0)&&this.pinch(g)):r&&this.reset()):2===g.touches.length&&this.pinch(g)},onContainerTouchStart:function(a){this.zoomOption(a);this.touch(a,!0)},onContainerTouchMove:function(a){this.touch(a)},onDocumentTouchEnd:function(f){w[a.hoverChartIndex]&&w[a.hoverChartIndex].pointer.drop(f)}})})(I);(function(a){var w=a.addEvent,C=a.charts,y=a.css,x=a.doc,g=a.extend,f=a.noop,k=a.Pointer,r=a.removeEvent,m=a.win,e=a.wrap;if(!a.hasTouch&&(m.PointerEvent||m.MSPointerEvent)){var d=
{},p=!!m.PointerEvent,u=function(){var c=[];c.item=function(a){return this[a]};a.objectEach(d,function(a){c.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return c},n=function(c,b,h,d){"touch"!==c.pointerType&&c.pointerType!==c.MSPOINTER_TYPE_TOUCH||!C[a.hoverChartIndex]||(d(c),d=C[a.hoverChartIndex].pointer,d[b]({type:h,target:c.currentTarget,preventDefault:f,touches:u()}))};g(k.prototype,{onContainerPointerDown:function(a){n(a,"onContainerTouchStart","touchstart",function(a){d[a.pointerId]=
{pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(a){n(a,"onContainerTouchMove","touchmove",function(a){d[a.pointerId]={pageX:a.pageX,pageY:a.pageY};d[a.pointerId].target||(d[a.pointerId].target=a.currentTarget)})},onDocumentPointerUp:function(a){n(a,"onDocumentTouchEnd","touchend",function(a){delete d[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,p?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,p?"pointermove":
"MSPointerMove",this.onContainerPointerMove);a(x,p?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});e(k.prototype,"init",function(a,b,h){a.call(this,b,h);this.hasZoom&&y(b.container,{"-ms-touch-action":"none","touch-action":"none"})});e(k.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(w)});e(k.prototype,"destroy",function(a){this.batchMSEvents(r);a.call(this)})}})(I);(function(a){var w,C=a.addEvent,y=a.css,x=a.discardElement,g=a.defined,
f=a.each,k=a.isFirefox,r=a.marginNames,m=a.merge,e=a.pick,d=a.setAnimation,p=a.stableSort,u=a.win,n=a.wrap;w=a.Legend=function(a,b){this.init(a,b)};w.prototype={init:function(a,b){this.chart=a;this.setOptions(b);b.enabled&&(this.render(),C(this.chart,"endResize",function(){this.legend.positionCheckboxes()}))},setOptions:function(a){var b=e(a.padding,8);this.options=a;this.itemMarginTop=a.itemMarginTop||0;this.padding=b;this.initialItemY=b-5;this.itemHeight=this.maxItemWidth=0;this.symbolWidth=e(a.symbolWidth,
16);this.pages=[]},update:function(a,b){var c=this.chart;this.setOptions(m(!0,this.options,a));this.destroy();c.isDirtyLegend=c.isDirtyBox=!0;e(b,!0)&&c.redraw()},colorizeItem:function(a,b){a.legendGroup[b?"removeClass":"addClass"]("highcharts-legend-item-hidden")},positionItem:function(a){var b=this.options,c=b.symbolPadding,b=!b.rtl,d=a._legendItemPos,e=d[0],d=d[1],f=a.checkbox;(a=a.legendGroup)&&a.element&&a.translate(b?e:this.legendWidth-e-2*c-4,d);f&&(f.x=e,f.y=d)},destroyItem:function(a){var b=
a.checkbox;f(["legendItem","legendLine","legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())});b&&x(a.checkbox)},destroy:function(){function a(a){this[a]&&(this[a]=this[a].destroy())}f(this.getAllItems(),function(b){f(["legendItem","legendGroup"],a,b)});f("clipRect up down pager nav box title group".split(" "),a,this);this.display=null},positionCheckboxes:function(a){var b=this.group&&this.group.alignAttr,c,d=this.clipHeight||this.legendHeight,e=this.titleHeight;b&&(c=b.translateY,
f(this.allItems,function(h){var f=h.checkbox,l;f&&(l=c+e+f.y+(a||0)+3,y(f,{left:b.translateX+h.checkboxOffset+f.x-20+"px",top:l+"px",display:l>c-6&&l<c+d-6?"":"none"}))}))},renderTitle:function(){var a=this.options,b=this.padding,h=a.title,d=0;h.text&&(this.title||(this.title=this.chart.renderer.label(h.text,b-3,b-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}).add(this.group)),a=this.title.getBBox(),d=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:d}));this.titleHeight=
d},setText:function(c){var b=this.options;c.legendItem.attr({text:b.labelFormat?a.format(b.labelFormat,c):b.labelFormatter.call(c)})},renderItem:function(a){var b=this.chart,c=b.renderer,d=this.options,f="horizontal"===d.layout,g=this.symbolWidth,k=d.symbolPadding,n=this.padding,m=f?e(d.itemDistance,20):0,p=!d.rtl,B=d.width,z=d.itemMarginBottom||0,D=this.itemMarginTop,H=a.legendItem,q=!a.series,t=!q&&a.series.drawLegendSymbol?a.series:a,u=t.options,u=this.createCheckboxForItem&&u&&u.showCheckbox,
r=d.useHTML,x=a.options.className;H||(a.legendGroup=c.g("legend-item").addClass("highcharts-"+t.type+"-series highcharts-color-"+a.colorIndex+(x?" "+x:"")+(q?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=H=c.text("",p?g+k:-k,this.baseline||0,r).attr({align:p?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=c.fontMetrics(12,H),this.baseline=this.fontMetrics.f+3+D,H.attr("y",this.baseline)),this.symbolHeight=d.symbolHeight||this.fontMetrics.f,
t.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,H,r),u&&this.createCheckboxForItem(a));this.colorizeItem(a,a.visible);this.setText(a);c=H.getBBox();g=a.checkboxOffset=d.itemWidth||a.legendItemWidth||g+k+c.width+m+(u?20:0);this.itemHeight=k=Math.round(a.legendItemHeight||c.height||this.symbolHeight);f&&this.itemX-n+g>(B||b.spacingBox.width-2*n-d.x)&&(this.itemX=n,this.itemY+=D+this.lastLineHeight+z,this.lastLineHeight=0);this.maxItemWidth=Math.max(this.maxItemWidth,g);this.lastItemY=
D+this.itemY+z;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];f?this.itemX+=g:(this.itemY+=D+k+z,this.lastLineHeight=k);this.offsetWidth=B||Math.max((f?this.itemX-n-m:g)+n,this.offsetWidth)},getAllItems:function(){var a=[];f(this.chart.series,function(b){var c=b&&b.options;b&&e(c.showInLegend,g(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||("point"===c.legendType?b.data:b)))});return a},adjustMargins:function(a,b){var c=this.chart,d=this.options,
k=d.align.charAt(0)+d.verticalAlign.charAt(0)+d.layout.charAt(0);d.floating||f([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,f){h.test(k)&&!g(a[f])&&(c[r[f]]=Math.max(c[r[f]],c.legend[(f+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][f]*d[f%2?"x":"y"]+e(d.margin,12)+b[f]))})},render:function(){var a=this,b=a.chart,d=b.renderer,e=a.group,g,k,n,u,v=a.box,F=a.options,B=a.padding;a.itemX=B;a.itemY=a.initialItemY;a.offsetWidth=0;a.lastItemY=0;e||(a.group=e=d.g("legend").attr({zIndex:7}).add(),
a.contentGroup=d.g().attr({zIndex:1}).add(e),a.scrollGroup=d.g().add(a.contentGroup));a.renderTitle();g=a.getAllItems();p(g,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});F.reversed&&g.reverse();a.allItems=g;a.display=k=!!g.length;a.lastLineHeight=0;f(g,function(b){a.renderItem(b)});n=(F.width||a.offsetWidth)+B;u=a.lastItemY+a.lastLineHeight+a.titleHeight;u=a.handleOverflow(u);u+=B;v||(a.box=v=d.rect().addClass("highcharts-legend-box").attr({r:F.borderRadius}).add(e),
v.isNew=!0);0<n&&0<u&&(v[v.isNew?"attr":"animate"](v.crisp({x:0,y:0,width:n,height:u},v.strokeWidth())),v.isNew=!1);v[k?"show":"hide"]();"none"===e.getStyle("display")&&(n=u=0);a.legendWidth=n;a.legendHeight=u;f(g,function(b){a.positionItem(b)});k&&e.align(m(F,{width:n,height:u}),!0,"spacingBox");b.isResizing||this.positionCheckboxes()},handleOverflow:function(a){var b=this,c=this.chart,d=c.renderer,g=this.options,k=g.y,n=this.padding,c=c.spacingBox.height+("top"===g.verticalAlign?-k:k)-n,k=g.maxHeight,
m,p=this.clipRect,u=g.navigation,B=e(u.animation,!0),z=u.arrowSize||12,D=this.nav,H=this.pages,q,t=this.allItems,r=function(a){"number"===typeof a?p.attr({height:a}):p&&(b.clipRect=p.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=a?"rect("+n+"px,9999px,"+(n+a)+"px,0)":"auto")};"horizontal"!==g.layout||"middle"===g.verticalAlign||g.floating||(c/=2);k&&(c=Math.min(c,k));H.length=0;a>c&&!1!==u.enabled?(this.clipHeight=m=Math.max(c-20-this.titleHeight-n,0),this.currentPage=
e(this.currentPage,1),this.fullHeight=a,f(t,function(a,b){var c=a._legendItemPos[1];a=Math.round(a.legendItem.getBBox().height);var d=H.length;if(!d||c-H[d-1]>m&&(q||c)!==H[d-1])H.push(q||c),d++;b===t.length-1&&c+a-H[d-1]>m&&H.push(c);c!==q&&(q=c)}),p||(p=b.clipRect=d.clipRect(0,n,9999,0),b.contentGroup.clip(p)),r(m),D||(this.nav=D=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,z,z).on("click",function(){b.scroll(-1,B)}).add(D),this.pager=d.text("",15,10).addClass("highcharts-legend-navigation").add(D),
this.down=d.symbol("triangle-down",0,0,z,z).on("click",function(){b.scroll(1,B)}).add(D)),b.scroll(0),a=c):D&&(r(),this.nav=D.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,e=c.length;a=this.currentPage+a;var f=this.clipHeight,g=this.pager,k=this.padding;a>e&&(a=e);0<a&&(void 0!==b&&d(b,this.chart),this.nav.attr({translateX:k,translateY:f+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({"class":1===a?"highcharts-legend-nav-inactive":
"highcharts-legend-nav-active"}),g.attr({text:a+"/"+e}),this.down.attr({x:18+this.pager.getBBox().width,"class":a===e?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),b=-c[a-1]+this.initialItemY,this.scrollGroup.animate({translateY:b}),this.currentPage=a,this.positionCheckboxes(b))}};a.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.symbolHeight,d=a.options.squareSymbol;b.legendSymbol=this.chart.renderer.rect(d?(a.symbolWidth-c)/2:0,a.baseline-c+1,d?c:a.symbolWidth,c,e(a.options.symbolRadius,
c/2)).addClass("highcharts-point").attr({zIndex:3}).add(b.legendGroup)},drawLineMarker:function(a){var b=this.options.marker,c,d=a.symbolWidth,f=a.symbolHeight;c=f/2;var g=this.chart.renderer,k=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);this.legendLine=g.path(["M",0,a,"L",d,a]).addClass("highcharts-graph").attr({}).add(k);b&&!1!==b.enabled&&(c=Math.min(e(b.radius,c),c),0===this.symbol.indexOf("url")&&(b=m(b,{width:f,height:f}),c=0),this.legendSymbol=b=g.symbol(this.symbol,d/2-c,
a-c,2*c,2*c,b).addClass("highcharts-point").add(k),b.isMarker=!0)}};(/Trident\/7\.0/.test(u.navigator.userAgent)||k)&&n(w.prototype,"positionItem",function(a,b){var c=this,d=function(){b._legendItemPos&&a.call(c,b)};d();setTimeout(d)})})(I);(function(a){var w=a.addEvent,C=a.animObject,y=a.attr,x=a.doc,g=a.Axis,f=a.createElement,k=a.defaultOptions,r=a.discardElement,m=a.charts,e=a.defined,d=a.each,p=a.extend,u=a.find,n=a.fireEvent,c=a.getStyle,b=a.grep,h=a.isNumber,l=a.isObject,E=a.isString,G=a.Legend,
A=a.marginNames,K=a.merge,v=a.objectEach,F=a.Pointer,B=a.pick,z=a.pInt,D=a.removeEvent,H=a.seriesTypes,q=a.splat,t=a.svg,O=a.syncTimeout,L=a.win,R=a.Renderer,M=a.Chart=function(){this.getArgs.apply(this,arguments)};a.chart=function(a,b,c){return new M(a,b,c)};p(M.prototype,{callbacks:[],getArgs:function(){var a=[].slice.call(arguments);if(E(a[0])||a[0].nodeName)this.renderTo=a.shift();this.init(a[0],a[1])},init:function(b,c){var d,h,e=b.series,f=b.plotOptions||{};b.series=null;d=K(k,b);for(h in d.plotOptions)d.plotOptions[h].tooltip=
f[h]&&K(f[h].tooltip)||void 0;d.tooltip.userOptions=b.chart&&b.chart.forExport&&b.tooltip.userOptions||b.tooltip;d.series=b.series=e;this.userOptions=b;b=d.chart;h=b.events;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.callback=c;this.isResizing=0;this.options=d;this.axes=[];this.series=[];this.hasCartesianSeries=b.showAxes;var g=this;g.index=m.length;m.push(g);a.chartCount++;h&&v(h,function(a,b){w(g,b,a)});g.xAxis=[];g.yAxis=[];g.pointCount=g.colorCounter=g.symbolCounter=0;g.firstRender()},
initSeries:function(b){var c=this.options.chart;(c=H[b.type||c.type||c.defaultSeriesType])||a.error(17,!0);c=new c;c.init(this,b);return c},orderSeries:function(a){var b=this.series;for(a=a||0;a<b.length;a++)b[a]&&(b[a].index=a,b[a].name=b[a].name||"Series "+(b[a].index+1))},isInsidePlot:function(a,b,c){var d=c?b:a;a=c?a:b;return 0<=d&&d<=this.plotWidth&&0<=a&&a<=this.plotHeight},redraw:function(b){var c=this.axes,h=this.series,e=this.pointer,f=this.legend,g=this.isDirtyLegend,l,k,q=this.hasCartesianSeries,
t=this.isDirtyBox,z,B=this.renderer,m=B.isHidden(),D=[];this.setResponsive&&this.setResponsive(!1);a.setAnimation(b,this);m&&this.temporaryDisplay();this.layOutTitles();for(b=h.length;b--;)if(z=h[b],z.options.stacking&&(l=!0,z.isDirty)){k=!0;break}if(k)for(b=h.length;b--;)z=h[b],z.options.stacking&&(z.isDirty=!0);d(h,function(a){a.isDirty&&"point"===a.options.legendType&&(a.updateTotals&&a.updateTotals(),g=!0);a.isDirtyData&&n(a,"updatedData")});g&&f.options.enabled&&(f.render(),this.isDirtyLegend=
!1);l&&this.getStacks();q&&d(c,function(a){a.updateNames();a.setScale()});this.getMargins();q&&(d(c,function(a){a.isDirty&&(t=!0)}),d(c,function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,D.push(function(){n(a,"afterSetExtremes",p(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(t||l)&&a.redraw()}));t&&this.drawChartBox();n(this,"predraw");d(h,function(a){(t||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});e&&e.reset(!0);B.draw();n(this,"redraw");n(this,"render");m&&this.temporaryDisplay(!0);
d(D,function(a){a.call()})},get:function(a){function b(b){return b.id===a||b.options&&b.options.id===a}var c,d=this.series,h;c=u(this.axes,b)||u(this.series,b);for(h=0;!c&&h<d.length;h++)c=u(d[h].points||[],b);return c},getAxes:function(){var a=this,b=this.options,c=b.xAxis=q(b.xAxis||{}),b=b.yAxis=q(b.yAxis||{});d(c,function(a,b){a.index=b;a.isX=!0});d(b,function(a,b){a.index=b});c=c.concat(b);d(c,function(b){new g(a,b)})},getSelectedPoints:function(){var a=[];d(this.series,function(c){a=a.concat(b(c.data||
[],function(a){return a.selected}))});return a},getSelectedSeries:function(){return b(this.series,function(a){return a.selected})},setTitle:function(a,b,c){var h=this,e=h.options,f;f=e.title=K(e.title,a);e=e.subtitle=K(e.subtitle,b);d([["title",a,f],["subtitle",b,e]],function(a,b){var c=a[0],d=h[c],e=a[1];a=a[2];d&&e&&(h[c]=d=d.destroy());a&&a.text&&!d&&(h[c]=h.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+c,zIndex:a.zIndex||4}).add(),h[c].update=function(a){h.setTitle(!b&&
a,b&&a)})});h.layOutTitles(c)},layOutTitles:function(a){var b=0,c,h=this.renderer,e=this.spacingBox;d(["title","subtitle"],function(a){var c=this[a],d=this.options[a];a="title"===a?-3:d.verticalAlign?0:b+2;var f;c&&(f=h.fontMetrics(f,c).b,c.css({width:(d.width||e.width+d.widthAdjust)+"px"}).align(p({y:a+f},d),!1,"spacingBox"),d.floating||d.verticalAlign||(b=Math.ceil(b+c.getBBox(d.useHTML).height)))},this);c=this.titleOffset!==b;this.titleOffset=b;!this.isDirtyBox&&c&&(this.isDirtyBox=c,this.hasRendered&&
B(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var b=this.options.chart,d=b.width,b=b.height,h=this.renderTo;e(d)||(this.containerWidth=c(h,"width"));e(b)||(this.containerHeight=c(h,"height"));this.chartWidth=Math.max(0,d||this.containerWidth||600);this.chartHeight=Math.max(0,a.relativeLength(b,this.chartWidth)||this.containerHeight||400)},temporaryDisplay:function(b){var d=this.renderTo;if(b)for(;d&&d.style;)d.hcOrigStyle&&(a.css(d,d.hcOrigStyle),delete d.hcOrigStyle),d=d.parentNode;
else for(;d&&d.style;)"none"===c(d,"display",!1)&&(d.hcOrigStyle={display:d.style.display,height:d.style.height,overflow:d.style.overflow},a.css(d,{display:"block",height:0,overflow:"hidden"}),d.style.setProperty&&d.style.setProperty("display","block","important")),d=d.parentNode},setClassName:function(a){this.container.className="highcharts-container "+(a||"")},getContainer:function(){var b,c=this.options,d=c.chart,e,g;b=this.renderTo;var l=a.uniqueKey(),k;b||(this.renderTo=b=d.renderTo);E(b)&&(this.renderTo=
b=x.getElementById(b));b||a.error(13,!0);e=z(y(b,"data-highcharts-chart"));h(e)&&m[e]&&m[e].hasRendered&&m[e].destroy();y(b,"data-highcharts-chart",this.index);b.innerHTML="";d.skipClone||b.offsetWidth||this.temporaryDisplay();this.getChartSize();e=this.chartWidth;g=this.chartHeight;this.container=b=f("div",{id:l},void 0,b);this._cursor=b.style.cursor;this.renderer=new (a[d.renderer]||R)(b,e,g,null,d.forExport,c.exporting&&c.exporting.allowHTML);this.setClassName(d.className);for(k in c.defs)this.renderer.definition(c.defs[k]);
this.renderer.chartIndex=this.index},getMargins:function(a){var b=this.spacing,c=this.margin,d=this.titleOffset;this.resetMargins();d&&!e(c[0])&&(this.plotTop=Math.max(this.plotTop,d+this.options.title.margin+b[0]));this.legend.display&&this.legend.adjustMargins(c,b);this.extraMargin&&(this[this.extraMargin.type]=(this[this.extraMargin.type]||0)+this.extraMargin.value);this.extraTopMargin&&(this.plotTop+=this.extraTopMargin);a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=
[0,0,0,0],c=a.margin;a.hasCartesianSeries&&d(a.axes,function(a){a.visible&&a.getOffset()});d(A,function(d,h){e(c[h])||(a[d]+=b[h])});a.setChartSize()},reflow:function(a){var b=this,d=b.options.chart,h=b.renderTo,f=e(d.width),g=d.width||c(h,"width"),d=d.height||c(h,"height"),h=a?a.target:L;if(!f&&!b.isPrinting&&g&&d&&(h===L||h===x)){if(g!==b.containerWidth||d!==b.containerHeight)clearTimeout(b.reflowTimeout),b.reflowTimeout=O(function(){b.container&&b.setSize(void 0,void 0,!1)},a?100:0);b.containerWidth=
g;b.containerHeight=d}},initReflow:function(){var a=this,b;b=w(L,"resize",function(b){a.reflow(b)});w(a,"destroy",b)},setSize:function(b,c,h){var e=this,f=e.renderer;e.isResizing+=1;a.setAnimation(h,e);e.oldChartHeight=e.chartHeight;e.oldChartWidth=e.chartWidth;void 0!==b&&(e.options.chart.width=b);void 0!==c&&(e.options.chart.height=c);e.getChartSize();e.setChartSize(!0);f.setSize(e.chartWidth,e.chartHeight,h);d(e.axes,function(a){a.isDirty=!0;a.setScale()});e.isDirtyLegend=!0;e.isDirtyBox=!0;e.layOutTitles();
e.getMargins();e.redraw(h);e.oldChartHeight=null;n(e,"resize");O(function(){e&&n(e,"endResize",null,function(){--e.isResizing})},C(void 0).duration)},setChartSize:function(a){var b=this.inverted,c=this.renderer,e=this.chartWidth,h=this.chartHeight,f=this.options.chart,g=this.spacing,l=this.clipOffset,k,q,t,n;this.plotLeft=k=Math.round(this.plotLeft);this.plotTop=q=Math.round(this.plotTop);this.plotWidth=t=Math.max(0,Math.round(e-k-this.marginRight));this.plotHeight=n=Math.max(0,Math.round(h-q-this.marginBottom));
this.plotSizeX=b?n:t;this.plotSizeY=b?t:n;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:g[3],y:g[0],width:e-g[3]-g[1],height:h-g[0]-g[2]};this.plotBox=c.plotBox={x:k,y:q,width:t,height:n};e=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(e,l[3])/2);c=Math.ceil(Math.max(e,l[0])/2);this.clipBox={x:b,y:c,width:Math.floor(this.plotSizeX-Math.max(e,l[1])/2-b),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(e,l[2])/2-c))};a||d(this.axes,function(a){a.setAxisSize();
a.setAxisTranslation()})},resetMargins:function(){var a=this,b=a.options.chart;d(["margin","spacing"],function(c){var e=b[c],h=l(e)?e:[e,e,e,e];d(["Top","Right","Bottom","Left"],function(d,e){a[c][e]=B(b[c+d],h[e])})});d(A,function(b,c){a[b]=B(a.margin[c],a.spacing[c])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]},drawChartBox:function(){var a=this.options.chart,b=this.renderer,c=this.chartWidth,d=this.chartHeight,e=this.chartBackground,h=this.plotBackground,f=this.plotBorder,g,l,k=this.plotLeft,
q=this.plotTop,t=this.plotWidth,n=this.plotHeight,z=this.plotBox,B=this.clipRect,m=this.clipBox,D="animate";e||(this.chartBackground=e=b.rect().addClass("highcharts-background").add(),D="attr");g=l=e.strokeWidth();e[D]({x:l/2,y:l/2,width:c-l-g%2,height:d-l-g%2,r:a.borderRadius});D="animate";h||(D="attr",this.plotBackground=h=b.rect().addClass("highcharts-plot-background").add());h[D](z);B?B.animate({width:m.width,height:m.height}):this.clipRect=b.clipRect(m);D="animate";f||(D="attr",this.plotBorder=
f=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());f[D](f.crisp({x:k,y:q,width:t,height:n},-f.strokeWidth()));this.isDirtyBox=!1},propFromSeries:function(){var a=this,b=a.options.chart,c,e=a.options.series,h,f;d(["inverted","angular","polar"],function(d){c=H[b.type||b.defaultSeriesType];f=b[d]||c&&c.prototype[d];for(h=e&&e.length;!f&&h--;)(c=H[e[h].type])&&c.prototype[d]&&(f=!0);a[d]=f})},linkSeries:function(){var a=this,b=a.series;d(b,function(a){a.linkedSeries.length=0});d(b,
function(b){var c=b.options.linkedTo;E(c)&&(c=":previous"===c?a.series[b.index-1]:a.get(c))&&c.linkedParent!==b&&(c.linkedSeries.push(b),b.linkedParent=c,b.visible=B(b.options.visible,c.options.visible,b.visible))})},renderSeries:function(){d(this.series,function(a){a.translate();a.render()})},renderLabels:function(){var a=this,b=a.options.labels;b.items&&d(b.items,function(c){var d=p(b.style,c.style),e=z(d.left)+a.plotLeft,h=z(d.top)+a.plotTop+12;delete d.left;delete d.top;a.renderer.text(c.html,
e,h).attr({zIndex:2}).css(d).add()})},render:function(){var a=this.axes,b=this.renderer,c=this.options,e,h,f;this.setTitle();this.legend=new G(this,c.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();c=this.plotWidth;e=this.plotHeight-=21;d(a,function(a){a.setScale()});this.getAxisMargins();h=1.1<c/this.plotWidth;f=1.05<e/this.plotHeight;if(h||f)d(a,function(a){(a.horiz&&h||!a.horiz&&f)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries&&
d(a,function(a){a.visible&&a.render()});this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0},addCredits:function(a){var b=this;a=K(!0,this.options.credits,a);a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){a.href&&(L.location.href=a.href)}).attr({align:a.position.align,
zIndex:8}).add().align(a.position),this.credits.update=function(a){b.credits=b.credits.destroy();b.addCredits(a)})},destroy:function(){var b=this,c=b.axes,e=b.series,h=b.container,f,g=h&&h.parentNode;n(b,"destroy");b.renderer.forExport?a.erase(m,b):m[b.index]=void 0;a.chartCount--;b.renderTo.removeAttribute("data-highcharts-chart");D(b);for(f=c.length;f--;)c[f]=c[f].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(f=e.length;f--;)e[f]=e[f].destroy();d("title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" "),
function(a){var c=b[a];c&&c.destroy&&(b[a]=c.destroy())});h&&(h.innerHTML="",D(h),g&&r(h));v(b,function(a,c){delete b[c]})},isReadyToRender:function(){var a=this;return t||L!=L.top||"complete"===x.readyState?!0:(x.attachEvent("onreadystatechange",function(){x.detachEvent("onreadystatechange",a.firstRender);"complete"===x.readyState&&a.firstRender()}),!1)},firstRender:function(){var a=this,b=a.options;if(a.isReadyToRender()){a.getContainer();n(a,"init");a.resetMargins();a.setChartSize();a.propFromSeries();
a.getAxes();d(b.series||[],function(b){a.initSeries(b)});a.linkSeries();n(a,"beforeRender");F&&(a.pointer=new F(a,b));a.render();if(!a.renderer.imgCount&&a.onload)a.onload();a.temporaryDisplay(!0)}},onload:function(){d([this.callback].concat(this.callbacks),function(a){a&&void 0!==this.index&&a.apply(this,[this])},this);n(this,"load");n(this,"render");e(this.index)&&!1!==this.options.chart.reflow&&this.initReflow();this.onload=null}})})(I);(function(a){var w,C=a.each,y=a.extend,x=a.erase,g=a.fireEvent,
f=a.format,k=a.isArray,r=a.isNumber,m=a.pick,e=a.removeEvent;w=a.Point=function(){};w.prototype={init:function(a,e,f){var d=a.chart.options.chart.colorCount;this.series=a;this.applyOptions(e,f);a.options.colorByPoint?(e=a.colorCounter,a.colorCounter++,a.colorCounter===d&&(a.colorCounter=0)):e=a.colorIndex;this.colorIndex=m(this.colorIndex,e);a.chart.pointCount++;return this},applyOptions:function(a,e){var d=this.series,f=d.options.pointValKey||d.pointValKey;a=w.prototype.optionsToObject.call(this,
a);y(this,a);this.options=this.options?y(this.options,a):a;a.group&&delete this.group;f&&(this.y=this[f]);this.isNull=m(this.isValid&&!this.isValid(),null===this.x||!r(this.y,!0));this.selected&&(this.state="select");"name"in this&&void 0===e&&d.xAxis&&d.xAxis.hasNames&&(this.x=d.xAxis.nameToX(this));void 0===this.x&&d&&(this.x=void 0===e?d.autoIncrement(this):e);return this},optionsToObject:function(a){var d={},e=this.series,f=e.options.keys,c=f||e.pointArrayMap||["y"],b=c.length,h=0,g=0;if(r(a)||
null===a)d[c[0]]=a;else if(k(a))for(!f&&a.length>b&&(e=typeof a[0],"string"===e?d.name=a[0]:"number"===e&&(d.x=a[0]),h++);g<b;)f&&void 0===a[h]||(d[c[g]]=a[h]),h++,g++;else"object"===typeof a&&(d=a,a.dataLabels&&(e._hasPointLabels=!0),a.marker&&(e._hasPointMarkers=!0));return d},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+
this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var a=this.series,e=a.zones,a=a.zoneAxis||"y",f=0,g;for(g=e[f];this[a]>=g.value;)g=e[++f];g&&g.color&&!this.options.color&&(this.color=g.color);return g},destroy:function(){var a=this.series.chart,f=a.hoverPoints,g;a.pointCount--;f&&(this.setState(),x(f,this),f.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();
if(this.graphic||this.dataLabel)e(this),this.destroyElements();this.legendItem&&a.legend.destroyItem(this);for(g in this)this[g]=null},destroyElements:function(){for(var a=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],e,f=6;f--;)e=a[f],this[e]&&(this[e]=this[e].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||
this.stackTotal}},tooltipFormatter:function(a){var d=this.series,e=d.tooltipOptions,g=m(e.valueDecimals,""),c=e.valuePrefix||"",b=e.valueSuffix||"";C(d.pointArrayMap||["y"],function(d){d="{point."+d;if(c||b)a=a.replace(d+"}",c+d+"}"+b);a=a.replace(d+"}",d+":,."+g+"f}")});return f(a,{point:this,series:this.series})},firePointEvent:function(a,e,f){var d=this,c=this.series.options;(c.point.events[a]||d.options&&d.options.events&&d.options.events[a])&&this.importEvents();"click"===a&&c.allowPointSelect&&
(f=function(a){d.select&&d.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});g(this,a,e,f)},visible:!0}})(I);(function(a){var w=a.addEvent,C=a.animObject,y=a.arrayMax,x=a.arrayMin,g=a.correctFloat,f=a.Date,k=a.defaultOptions,r=a.defined,m=a.each,e=a.erase,d=a.extend,p=a.fireEvent,u=a.grep,n=a.isArray,c=a.isNumber,b=a.isString,h=a.merge,l=a.objectEach,E=a.pick,G=a.removeEvent,A=a.splat,K=a.SVGElement,v=a.syncTimeout,F=a.win;a.Series=a.seriesType("line",null,{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},
events:{},marker:{radius:4,states:{hover:{animation:{duration:50},enabled:!0,radiusPlus:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":a.numberFormat(this.y,-1)},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:a.Point,sorted:!0,
requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(a,b){var c=this,e,h=a.series,f;c.chart=a;c.options=b=c.setOptions(b);c.linkedSeries=[];c.bindAxes();d(c,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;l(e,function(a,b){w(c,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;c.getColor();c.getSymbol();m(c.parallelArrays,function(a){c[a+
"Data"]=[]});c.setData(b.data,!1);c.isCartesian&&(a.hasCartesianSeries=!0);h.length&&(f=h[h.length-1]);c._i=E(f&&f._i,-1)+1;a.orderSeries(this.insert(h))},insert:function(a){var b=this.options.index,d;if(c(b)){for(d=a.length;d--;)if(b>=E(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return E(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,e;m(b.axisTypes||[],function(h){m(d[h],function(a){e=a.options;if(c[h]===e.index||void 0!==
c[h]&&c[h]===e.id||void 0===c[h]&&0===e.index)b.insert(a.series),b[h]=a,a.isDirty=!0});b[h]||b.optionalAxis===h||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,e=arguments,h=c(b)?function(c){var e="y"===c&&d.toYData?d.toYData(a):a[c];d[c+"Data"][b]=e}:function(a){Array.prototype[b].apply(d[a+"Data"],Array.prototype.slice.call(e,2))};m(d.parallelArrays,h)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,d=a.pointIntervalUnit,b=E(b,a.pointStart,0);this.pointInterval=
c=E(this.pointInterval,a.pointInterval,1);d&&(a=new f(b),"day"===d?a=+a[f.hcSetDate](a[f.hcGetDate]()+c):"month"===d?a=+a[f.hcSetMonth](a[f.hcGetMonth]()+c):"year"===d&&(a=+a[f.hcSetFullYear](a[f.hcGetFullYear]()+c)),c=a-b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,c=b.options,d=c.plotOptions,e=(b.userOptions||{}).plotOptions||{},f=d[this.type];this.userOptions=a;b=h(f,d.series,a);this.tooltipOptions=h(k.tooltip,k.plotOptions.series&&k.plotOptions.series.tooltip,k.plotOptions[this.type].tooltip,
c.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=E(a.stickyTracking,e[this.type]&&e[this.type].stickyTracking,e.series&&e.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===f.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+"Threshold"]||b.threshold||0,className:"highcharts-negative"});
a.length&&r(a[a.length-1].value)&&a.push({});return b},getCyclic:function(a,b,c){var d,e=this.chart,h=this.userOptions,f=a+"Index",g=a+"Counter",l=c?c.length:E(e.options.chart[a+"Count"],e[a+"Count"]);b||(d=E(h[f],h["_"+f]),r(d)||(e.series.length||(e[g]=0),h["_"+f]=d=e[g]%l,e[g]+=1),c&&(b=c[d]));void 0!==d&&(this[f]=d);this[a]=b},getColor:function(){this.getCyclic("color")},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,
setData:function(d,e,h,f){var g=this,l=g.points,k=l&&l.length||0,z,B=g.options,p=g.chart,v=null,D=g.xAxis,A=B.turboThreshold,F=this.xData,u=this.yData,K=(z=g.pointArrayMap)&&z.length;d=d||[];z=d.length;e=E(e,!0);if(!1!==f&&z&&k===z&&!g.cropped&&!g.hasGroupedData&&g.visible)m(d,function(a,b){l[b].update&&a!==B.data[b]&&l[b].update(a,!1,null,!1)});else{g.xIncrement=null;g.colorCounter=0;m(this.parallelArrays,function(a){g[a+"Data"].length=0});if(A&&z>A){for(h=0;null===v&&h<z;)v=d[h],h++;if(c(v))for(h=
0;h<z;h++)F[h]=this.autoIncrement(),u[h]=d[h];else if(n(v))if(K)for(h=0;h<z;h++)v=d[h],F[h]=v[0],u[h]=v.slice(1,K+1);else for(h=0;h<z;h++)v=d[h],F[h]=v[0],u[h]=v[1];else a.error(12)}else for(h=0;h<z;h++)void 0!==d[h]&&(v={series:g},g.pointClass.prototype.applyOptions.apply(v,[d[h]]),g.updateParallelArrays(v,h));b(u[0])&&a.error(14,!0);g.data=[];g.options.data=g.userOptions.data=d;for(h=k;h--;)l[h]&&l[h].destroy&&l[h].destroy();D&&(D.minRange=D.userMinRange);g.isDirty=p.isDirtyBox=!0;g.isDirtyData=
!!l;h=!1}"point"===B.legendType&&(this.processData(),this.generatePoints());e&&p.redraw(h)},processData:function(b){var c=this.xData,d=this.yData,e=c.length,h;h=0;var f,g,l=this.xAxis,k,n=this.options;k=n.cropThreshold;var m=this.getExtremesFromAll||n.getExtremesFromAll,B=this.isCartesian,n=l&&l.val2lin,v=l&&l.isLog,p,A;if(B&&!this.isDirty&&!l.isDirty&&!this.yAxis.isDirty&&!b)return!1;l&&(b=l.getExtremes(),p=b.min,A=b.max);if(B&&this.sorted&&!m&&(!k||e>k||this.forceCrop))if(c[e-1]<p||c[0]>A)c=[],
d=[];else if(c[0]<p||c[e-1]>A)h=this.cropData(this.xData,this.yData,p,A),c=h.xData,d=h.yData,h=h.start,f=!0;for(k=c.length||1;--k;)e=v?n(c[k])-n(c[k-1]):c[k]-c[k-1],0<e&&(void 0===g||e<g)?g=e:0>e&&this.requireSorting&&a.error(15);this.cropped=f;this.cropStart=h;this.processedXData=c;this.processedYData=d;this.closestPointRange=g},cropData:function(a,b,c,d){var e=a.length,h=0,f=e,g=E(this.cropShoulder,1),l;for(l=0;l<e;l++)if(a[l]>=c){h=Math.max(0,l-g);break}for(c=l;c<e;c++)if(a[c]>d){f=c+g;break}return{xData:a.slice(h,
f),yData:b.slice(h,f),start:h,end:f}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,d,e=this.processedXData,h=this.processedYData,f=this.pointClass,g=e.length,l=this.cropStart||0,k,n=this.hasGroupedData,a=a.keys,m,v=[],p;c||n||(c=[],c.length=b.length,c=this.data=c);a&&n&&(this.options.keys=!1);for(p=0;p<g;p++)k=l+p,n?(m=(new f).init(this,[e[p]].concat(A(h[p]))),m.dataGroup=this.groupMap[p]):(m=c[k])||void 0===b[k]||(c[k]=m=(new f).init(this,b[k],e[p])),m&&(m.index=k,v[p]=m);this.options.keys=
a;if(c&&(g!==(d=c.length)||n))for(p=0;p<d;p++)p!==l||n||(p+=g),c[p]&&(c[p].destroyElements(),c[p].plotX=void 0);this.data=c;this.points=v},getExtremes:function(a){var b=this.yAxis,d=this.processedXData,e,h=[],f=0;e=this.xAxis.getExtremes();var g=e.min,l=e.max,k,m,p,B;a=a||this.stackedYData||this.processedYData||[];e=a.length;for(B=0;B<e;B++)if(m=d[B],p=a[B],k=(c(p,!0)||n(p))&&(!b.positiveValuesOnly||p.length||0<p),m=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(d[B]||m)>=
g&&(d[B]||m)<=l,k&&m)if(k=p.length)for(;k--;)null!==p[k]&&(h[f++]=p[k]);else h[f++]=p;this.dataMin=x(h);this.dataMax=y(h)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,d=this.xAxis,e=d.categories,h=this.yAxis,f=this.points,l=f.length,k=!!this.modifyValue,n=a.pointPlacement,m="between"===n||c(n),p=a.threshold,v=a.startFromThreshold?p:0,A,F,u,K,x=Number.MAX_VALUE;"between"===n&&(n=.5);c(n)&&(n*=E(a.pointRange||d.pointRange));for(a=
0;a<l;a++){var G=f[a],w=G.x,y=G.y;F=G.low;var C=b&&h.stacks[(this.negStacks&&y<(v?0:p)?"-":"")+this.stackKey],I;h.positiveValuesOnly&&null!==y&&0>=y&&(G.isNull=!0);G.plotX=A=g(Math.min(Math.max(-1E5,d.translate(w,0,0,0,1,n,"flags"===this.type)),1E5));b&&this.visible&&!G.isNull&&C&&C[w]&&(K=this.getStackIndicator(K,w,this.index),I=C[w],y=I.points[K.key],F=y[0],y=y[1],F===v&&K.key===C[w].base&&(F=E(p,h.min)),h.positiveValuesOnly&&0>=F&&(F=null),G.total=G.stackTotal=I.total,G.percentage=I.total&&G.y/
I.total*100,G.stackY=y,I.setOffset(this.pointXOffset||0,this.barW||0));G.yBottom=r(F)?h.translate(F,0,1,0,1):null;k&&(y=this.modifyValue(y,G));G.plotY=F="number"===typeof y&&Infinity!==y?Math.min(Math.max(-1E5,h.translate(y,0,1,0,1)),1E5):void 0;G.isInside=void 0!==F&&0<=F&&F<=h.len&&0<=A&&A<=d.len;G.clientX=m?g(d.translate(w,0,0,0,1,n)):A;G.negative=G.y<(p||0);G.category=e&&void 0!==e[G.x]?e[G.x]:G.x;G.isNull||(void 0!==u&&(x=Math.min(x,Math.abs(A-u))),u=A);G.zone=this.zones.length&&G.getZone()}this.closestPointRangePx=
x},getValidPoints:function(a,b){var c=this.chart;return u(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,d=b.renderer,e=b.inverted,h=this.clipBox,f=h||b.clipBox,g=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,f.height,c.xAxis,c.yAxis].join(),l=b[g],k=b[g+"m"];l||(a&&(f.width=0,b[g+"m"]=k=d.clipRect(-99,e?-b.plotLeft:-b.plotTop,99,e?b.chartWidth:b.chartHeight)),b[g]=l=d.clipRect(f),
l.count={length:0});a&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1);!1!==c.clip&&(this.group.clip(a||h?l:b.clipRect),this.markerGroup.clip(k),this.sharedClipKey=g);a||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&g&&b[g]&&(h||(b[g]=b[g].destroy()),b[g+"m"]&&(b[g+"m"]=b[g+"m"].destroy())))},animate:function(a){var b=this.chart,c=C(this.options.animation),d;a?this.setClip(c):(d=this.sharedClipKey,(a=b[d])&&a.animate({width:b.plotSizeX},c),
b[d+"m"]&&b[d+"m"].animate({width:b.plotSizeX+99},c),this.animate=null)},afterAnimate:function(){this.setClip();p(this,"afterAnimate")},drawPoints:function(){var a=this.points,b=this.chart,d,e,h,f,g=this.options.marker,l,k,n,m,p=this[this.specialGroup]||this.markerGroup,v=E(g.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=2*g.radius);if(!1!==g.enabled||this._hasPointMarkers)for(e=0;e<a.length;e++)h=a[e],d=h.plotY,f=h.graphic,l=h.marker||{},k=!!h.marker,n=v&&void 0===l.enabled||l.enabled,
m=h.isInside,n&&c(d)&&null!==h.y?(d=E(l.symbol,this.symbol),h.hasImage=0===d.indexOf("url"),n=this.markerAttribs(h,h.selected&&"select"),f?f[m?"show":"hide"](!0).animate(n):m&&(0<n.width||h.hasImage)&&(h.graphic=f=b.renderer.symbol(d,n.x,n.y,n.width,n.height,k?l:g).add(p)),f&&f.addClass(h.getClassName(),!0)):f&&(h.graphic=f.destroy())},markerAttribs:function(a,b){var c=this.options.marker,d=a.marker||{},e=E(d.radius,c.radius);b&&(c=c.states[b],b=d.states&&d.states[b],e=E(b&&b.radius,c&&c.radius,e+
(c&&c.radiusPlus||0)));a.hasImage&&(e=0);a={x:Math.floor(a.plotX)-e,y:a.plotY-e};e&&(a.width=a.height=2*e);return a},destroy:function(){var a=this,b=a.chart,c=/AppleWebKit\/533/.test(F.navigator.userAgent),d,h,f=a.data||[],g,k;p(a,"destroy");G(a);m(a.axisTypes||[],function(b){(k=a[b])&&k.series&&(e(k.series,a),k.isDirty=k.forceRedraw=!0)});a.legendItem&&a.chart.legend.destroyItem(a);for(h=f.length;h--;)(g=f[h])&&g.destroy&&g.destroy();a.points=null;clearTimeout(a.animationTimeout);l(a,function(a,
b){a instanceof K&&!a.survive&&(d=c&&"group"===b?"hide":"destroy",a[d]())});b.hoverSeries===a&&(b.hoverSeries=null);e(b.series,a);b.orderSeries();l(a,function(b,c){delete a[c]})},getGraphPath:function(a,b,c){var d=this,e=d.options,h=e.step,f,g=[],l=[],k;a=a||d.points;(f=a.reversed)&&a.reverse();(h={right:1,center:2}[h]||h&&3)&&f&&(h=4-h);!e.connectNulls||b||c||(a=this.getValidPoints(a));m(a,function(f,n){var m=f.plotX,q=f.plotY,t=a[n-1];(f.leftCliff||t&&t.rightCliff)&&!c&&(k=!0);f.isNull&&!r(b)&&
0<n?k=!e.connectNulls:f.isNull&&!b?k=!0:(0===n||k?n=["M",f.plotX,f.plotY]:d.getPointSpline?n=d.getPointSpline(a,f,n):h?(n=1===h?["L",t.plotX,q]:2===h?["L",(t.plotX+m)/2,t.plotY,"L",(t.plotX+m)/2,q]:["L",m,t.plotY],n.push("L",m,q)):n=["L",m,q],l.push(f.x),h&&l.push(f.x),g.push.apply(g,n),k=!1)});g.xMap=l;return d.graphPath=g},drawGraph:function(){var a=this,b=(this.gappedPath||this.getGraphPath).call(this),c=[["graph","highcharts-graph"]];m(this.zones,function(a,b){c.push(["zone-graph-"+b,"highcharts-graph highcharts-zone-graph-"+
b+" "+(a.className||"")])});m(c,function(c,d){d=c[0];var e=a[d];e?(e.endX=b.xMap,e.animate({d:b})):b.length&&(a[d]=a.chart.renderer.path(b).addClass(c[1]).attr({zIndex:1}).add(a.group));e&&(e.startX=b.xMap,e.isArea=b.isArea)})},applyZones:function(){var a=this,b=this.chart,c=b.renderer,d=this.zones,e,h,f=this.clips||[],g,l=this.graph,k=this.area,n=Math.max(b.chartWidth,b.chartHeight),p=this[(this.zoneAxis||"y")+"Axis"],v,A,F=b.inverted,u,K,r,x,G=!1;d.length&&(l||k)&&p&&void 0!==p.min&&(A=p.reversed,
u=p.horiz,l&&l.hide(),k&&k.hide(),v=p.getExtremes(),m(d,function(d,m){e=A?u?b.plotWidth:0:u?0:p.toPixels(v.min);e=Math.min(Math.max(E(h,e),0),n);h=Math.min(Math.max(Math.round(p.toPixels(E(d.value,v.max),!0)),0),n);G&&(e=h=p.toPixels(v.max));K=Math.abs(e-h);r=Math.min(e,h);x=Math.max(e,h);p.isXAxis?(g={x:F?x:r,y:0,width:K,height:n},u||(g.x=b.plotHeight-g.x)):(g={x:0,y:F?x:r,width:n,height:K},u&&(g.y=b.plotWidth-g.y));f[m]?f[m].animate(g):(f[m]=c.clipRect(g),l&&a["zone-graph-"+m].clip(f[m]),k&&a["zone-area-"+
m].clip(f[m]));G=d.value>v.max}),this.clips=f)},invertGroups:function(a){function b(){m(["group","markerGroup"],function(b){c[b]&&(d.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,d=c.chart,e;c.xAxis&&(e=w(d,"resize",b),w(c,"destroy",e),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,d,e){var h=this[a],f=!h;f&&(this[a]=h=this.chart.renderer.g().attr({zIndex:d||.1}).add(e));h.addClass("highcharts-"+b+" highcharts-series-"+
this.index+" highcharts-"+this.type+"-series highcharts-color-"+this.colorIndex+" "+(this.options.className||""),!0);h.attr({visibility:c})[f?"attr":"animate"](this.getPlotBox());return h},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,c,d=a.options,e=!!a.animate&&b.renderer.isSVG&&C(d.animation).duration,h=a.visible?"inherit":
"hidden",f=d.zIndex,g=a.hasRendered,l=b.seriesGroup,k=b.inverted;c=a.plotGroup("group","series",h,f,l);a.markerGroup=a.plotGroup("markerGroup","markers",h,f,l);e&&a.animate(!0);c.inverted=a.isCartesian?k:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(k);!1===d.clip||a.sharedClipKey||g||c.clip(b.clipRect);e&&a.animate();g||(a.animationTimeout=v(function(){a.afterAnimate()},
e));a.isDirty=!1;a.hasRendered=!0},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,d=this.xAxis,e=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:E(d&&d.left,a.plotLeft),translateY:E(e&&e.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(a,b){var c=this.xAxis,d=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?c.len-a.chartY+
c.pos:a.chartX-c.pos,plotY:e?d.len-a.chartX+d.pos:a.chartY-d.pos},b)},buildKDTree:function(){function a(c,d,e){var h,f;if(f=c&&c.length)return h=b.kdAxisArray[d%e],c.sort(function(a,b){return a[h]-b[h]}),f=Math.floor(f/2),{point:c[f],left:a(c.slice(0,f),d+1,e),right:a(c.slice(f+1),d+1,e)}}this.buildingKdTree=!0;var b=this,c=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;v(function(){b.kdTree=a(b.getValidPoints(null,!b.directTouch),c,c);b.buildingKdTree=!1},b.options.kdNow?0:1)},
searchKDTree:function(a,b){function c(a,b,g,l){var k=b.point,n=d.kdAxisArray[g%l],m,q,p=k;q=r(a[e])&&r(k[e])?Math.pow(a[e]-k[e],2):null;m=r(a[h])&&r(k[h])?Math.pow(a[h]-k[h],2):null;m=(q||0)+(m||0);k.dist=r(m)?Math.sqrt(m):Number.MAX_VALUE;k.distX=r(q)?Math.sqrt(q):Number.MAX_VALUE;n=a[n]-k[n];m=0>n?"left":"right";q=0>n?"right":"left";b[m]&&(m=c(a,b[m],g+1,l),p=m[f]<p[f]?m:k);b[q]&&Math.sqrt(n*n)<p[f]&&(a=c(a,b[q],g+1,l),p=a[f]<p[f]?a:p);return p}var d=this,e=this.kdAxisArray[0],h=this.kdAxisArray[1],
f=b?"distX":"dist";b=-1<d.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree();if(this.kdTree)return c(a,this.kdTree,b,b)}})})(I);(function(a){var w=a.addEvent,C=a.Axis,y=a.createElement,x=a.css,g=a.defined,f=a.each,k=a.erase,r=a.extend,m=a.fireEvent,e=a.inArray,d=a.isNumber,p=a.isObject,u=a.isArray,n=a.merge,c=a.objectEach,b=a.pick,h=a.Point,l=a.Series,E=a.seriesTypes,G=a.setAnimation,A=a.splat;r(a.Chart.prototype,{addSeries:function(a,c,d){var e,h=this;
a&&(c=b(c,!0),m(h,"addSeries",{options:a},function(){e=h.initSeries(a);h.isDirtyLegend=!0;h.linkSeries();c&&h.redraw(d)}));return e},addAxis:function(a,c,d,e){var h=c?"xAxis":"yAxis",f=this.options;a=n(a,{index:this[h].length,isX:c});new C(this,a);f[h]=A(f[h]||{});f[h].push(a);b(d,!0)&&this.redraw(e)},showLoading:function(a){var b=this,c=b.options,d=b.loadingDiv,e=function(){d&&x(d,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};d||(b.loadingDiv=d=y("div",
{className:"highcharts-loading highcharts-loading-hidden"},null,b.container),b.loadingSpan=y("span",{className:"highcharts-loading-inner"},null,d),w(b,"redraw",e));d.className="highcharts-loading";b.loadingSpan.innerHTML=a||c.lang.loading;b.loadingShown=!0;e()},hideLoading:function(){var a=this.loadingDiv;a&&(a.className="highcharts-loading highcharts-loading-hidden");this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions tooltip".split(" "),update:function(a,h){var l=this,k={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle"},m=a.chart,p,v;if(m){n(!0,l.options.chart,m);"className"in m&&l.setClassName(m.className);if("inverted"in m||"polar"in m)l.propFromSeries(),p=!0;"alignTicks"in m&&(p=!0);c(m,function(a,b){-1!==e("chart."+b,l.propsRequireUpdateSeries)&&(v=!0);-1!==e(b,l.propsRequireDirtyBox)&&(l.isDirtyBox=
!0)})}a.plotOptions&&n(!0,this.options.plotOptions,a.plotOptions);c(a,function(a,b){if(l[b]&&"function"===typeof l[b].update)l[b].update(a,!1);else if("function"===typeof l[k[b]])l[k[b]](a);"chart"!==b&&-1!==e(b,l.propsRequireUpdateSeries)&&(v=!0)});f("xAxis yAxis zAxis series colorAxis pane".split(" "),function(b){a[b]&&f(A(a[b]),function(a,c){(c=g(a.id)&&l.get(a.id)||l[b][c])&&c.coll===b&&c.update(a,!1)})});p&&f(l.axes,function(a){a.update({},!1)});v&&f(l.series,function(a){a.update({},!1)});a.loading&&
n(!0,l.options.loading,a.loading);p=m&&m.width;m=m&&m.height;d(p)&&p!==l.chartWidth||d(m)&&m!==l.chartHeight?l.setSize(p,m):b(h,!0)&&l.redraw()},setSubtitle:function(a){this.setTitle(void 0,a)}});r(h.prototype,{update:function(a,c,d,e){function h(){f.applyOptions(a);null===f.y&&l&&(f.graphic=l.destroy());p(a,!0)&&(l&&l.element&&a&&a.marker&&a.marker.symbol&&(f.graphic=l.destroy()),a&&a.dataLabels&&f.dataLabel&&(f.dataLabel=f.dataLabel.destroy()));k=f.index;g.updateParallelArrays(f,k);m.data[k]=p(m.data[k],
!0)||p(a,!0)?f.options:a;g.isDirty=g.isDirtyData=!0;!g.fixedBox&&g.hasCartesianSeries&&(n.isDirtyBox=!0);"point"===m.legendType&&(n.isDirtyLegend=!0);c&&n.redraw(d)}var f=this,g=f.series,l=f.graphic,k,n=g.chart,m=g.options;c=b(c,!0);!1===e?h():f.firePointEvent("update",{options:a},h)},remove:function(a,b){this.series.removePoint(e(this,this.series.data),a,b)}});r(l.prototype,{addPoint:function(a,c,d,e){var h=this.options,f=this.data,g=this.chart,l=this.xAxis,l=l&&l.hasNames&&l.names,k=h.data,n,m,
p=this.xData,v,A;c=b(c,!0);n={series:this};this.pointClass.prototype.applyOptions.apply(n,[a]);A=n.x;v=p.length;if(this.requireSorting&&A<p[v-1])for(m=!0;v&&p[v-1]>A;)v--;this.updateParallelArrays(n,"splice",v,0,0);this.updateParallelArrays(n,v);l&&n.name&&(l[A]=n.name);k.splice(v,0,a);m&&(this.data.splice(v,0,null),this.processData());"point"===h.legendType&&this.generatePoints();d&&(f[0]&&f[0].remove?f[0].remove(!1):(f.shift(),this.updateParallelArrays(n,"shift"),k.shift()));this.isDirtyData=this.isDirty=
!0;c&&g.redraw(e)},removePoint:function(a,c,d){var e=this,h=e.data,f=h[a],g=e.points,l=e.chart,k=function(){g&&g.length===h.length&&g.splice(a,1);h.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(f||{series:e},"splice",a,1);f&&f.destroy();e.isDirty=!0;e.isDirtyData=!0;c&&l.redraw()};G(d,l);c=b(c,!0);f?f.firePointEvent("remove",null,k):k()},remove:function(a,c,d){function e(){h.destroy();f.isDirtyLegend=f.isDirtyBox=!0;f.linkSeries();b(a,!0)&&f.redraw(c)}var h=this,f=h.chart;!1!==d?m(h,
"remove",null,e):e()},update:function(a,c){var d=this,e=d.chart,h=d.userOptions,g=d.oldType||d.type,l=a.type||h.type||e.options.chart.type,k=E[g].prototype,m=["group","markerGroup","dataLabelsGroup"],p;if(l&&l!==g||void 0!==a.zIndex)m.length=0;f(m,function(a){m[a]=d[a];delete d[a]});a=n(h,{animation:!1,index:d.index,pointStart:d.xData[0]},{data:d.options.data},a);d.remove(!1,null,!1);for(p in k)d[p]=void 0;r(d,E[l||g].prototype);f(m,function(a){d[a]=m[a]});d.init(e,a);d.oldType=g;e.linkSeries();b(c,
!0)&&e.redraw(!1)}});r(C.prototype,{update:function(a,c){var d=this.chart;a=d.options[this.coll][this.options.index]=n(this.userOptions,a);this.destroy(!0);this.init(d,r(a,{events:void 0}));d.isDirtyBox=!0;b(c,!0)&&d.redraw()},remove:function(a){for(var c=this.chart,d=this.coll,e=this.series,h=e.length;h--;)e[h]&&e[h].remove(!1);k(c.axes,this);k(c[d],this);u(c.options[d])?c.options[d].splice(this.options.index,1):delete c.options[d];f(c[d],function(a,b){a.options.index=b});this.destroy();c.isDirtyBox=
!0;b(a,!0)&&c.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,b){this.update({categories:a},b)}})})(I);(function(a){var w=a.animObject,C=a.each,y=a.extend,x=a.isNumber,g=a.merge,f=a.pick,k=a.Series,r=a.seriesType,m=a.svg;r("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,
stickyTracking:!1,tooltip:{distance:6},threshold:0},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){k.prototype.init.apply(this,arguments);var a=this,d=a.chart;d.hasRendered&&C(d.series,function(d){d.type===a.type&&(d.isDirty=!0)})},getColumnMetrics:function(){var a=this,d=a.options,g=a.xAxis,k=a.yAxis,n=g.reversed,c,b={},h=0;!1===d.grouping?h=1:C(a.chart.series,function(d){var e=d.options,f=d.yAxis,g;d.type===a.type&&d.visible&&k.len===f.len&&
k.pos===f.pos&&(e.stacking?(c=d.stackKey,void 0===b[c]&&(b[c]=h++),g=b[c]):!1!==e.grouping&&(g=h++),d.columnIndex=g)});var l=Math.min(Math.abs(g.transA)*(g.ordinalSlope||d.pointRange||g.closestPointRange||g.tickInterval||1),g.len),m=l*d.groupPadding,r=(l-2*m)/(h||1),d=Math.min(d.maxPointWidth||g.len,f(d.pointWidth,r*(1-2*d.pointPadding)));a.columnMetrics={width:d,offset:(r-d)/2+(m+((a.columnIndex||0)+(n?1:0))*r-l/2)*(n?-1:1)};return a.columnMetrics},crispCol:function(a,d,f,g){var e=this.chart,c=this.borderWidth,
b=-(c%2?.5:0),c=c%2?.5:1;e.inverted&&e.renderer.isVML&&(c+=1);this.options.crisp&&(f=Math.round(a+f)+b,a=Math.round(a)+b,f-=a);g=Math.round(d+g)+c;b=.5>=Math.abs(d)&&.5<g;d=Math.round(d)+c;g-=d;b&&g&&(--d,g+=1);return{x:a,y:d,width:f,height:g}},translate:function(){var a=this,d=a.chart,g=a.options,m=a.dense=2>a.closestPointRange*a.xAxis.transA,m=a.borderWidth=f(g.borderWidth,m?0:1),n=a.yAxis,c=a.translatedThreshold=n.getThreshold(g.threshold),b=f(g.minPointLength,5),h=a.getColumnMetrics(),l=h.width,
r=a.barW=Math.max(l,1+2*m),x=a.pointXOffset=h.offset;d.inverted&&(c-=.5);g.pointPadding&&(r=Math.ceil(r));k.prototype.translate.apply(a);C(a.points,function(h){var e=f(h.yBottom,c),g=999+Math.abs(e),g=Math.min(Math.max(-g,h.plotY),n.len+g),k=h.plotX+x,m=r,p=Math.min(g,e),A,u=Math.max(g,e)-p;Math.abs(u)<b&&b&&(u=b,A=!n.reversed&&!h.negative||n.reversed&&h.negative,p=Math.abs(p-c)>b?e-b:c-(A?b:0));h.barX=k;h.pointWidth=l;h.tooltipPos=d.inverted?[n.len+n.pos-d.plotLeft-g,a.xAxis.len-k-m/2,u]:[k+m/2,
g+n.pos-d.plotTop,u];h.shapeType="rect";h.shapeArgs=a.crispCol.apply(a,h.isNull?[k,c,m,0]:[k,p,m,u])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},drawPoints:function(){var a=this,d=this.chart,f=d.renderer,k=a.options.animationLimit||250,m;C(a.points,function(c){var b=c.graphic;if(x(c.plotY)&&null!==c.y){m=c.shapeArgs;if(b)b[d.pointCount<k?"animate":"attr"](g(m));else c.graphic=
b=f[c.shapeType](m).add(c.group||a.group);b.addClass(c.getClassName(),!0)}else b&&(c.graphic=b.destroy())})},animate:function(a){var d=this,e=this.yAxis,f=d.options,g=this.chart.inverted,c={};m&&(a?(c.scaleY=.001,a=Math.min(e.pos+e.len,Math.max(e.pos,e.toPixels(f.threshold))),g?c.translateX=a-e.len:c.translateY=a,d.group.attr(c)):(c[g?"translateX":"translateY"]=e.pos,d.group.animate(c,y(w(d.options.animation),{step:function(a,c){d.group.attr({scaleY:Math.max(.001,c.pos)})}})),d.animate=null))},remove:function(){var a=
this,d=a.chart;d.hasRendered&&C(d.series,function(d){d.type===a.type&&(d.isDirty=!0)});k.prototype.remove.apply(a,arguments)}})})(I);(function(a){var w=a.Series;a=a.seriesType;a("scatter","line",{lineWidth:0,findNearestPointBy:"xy",marker:{enabled:!0},tooltip:{headerFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e \x3cspan class\x3d"highcharts-header"\x3e {series.name}\x3c/span\x3e\x3cbr/\x3e',pointFormat:"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3e"}},
{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&w.prototype.drawGraph.call(this)}})})(I);(function(a){var w=a.addEvent,C=a.arrayMax,y=a.defined,x=a.each,g=a.extend,f=a.format,k=a.map,r=a.merge,m=a.noop,e=a.pick,d=a.relativeLength,p=a.Series,u=a.seriesTypes,n=a.stableSort;a.distribute=function(a,b){function c(a,b){return a.target-b.target}var d,e=!0,f=a,g=[],m;m=0;for(d=a.length;d--;)m+=
a[d].size;if(m>b){n(a,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=d=0;m<=b;)m+=a[d].size,d++;g=a.splice(d-1,a.length)}n(a,c);for(a=k(a,function(a){return{size:a.size,targets:[a.target]}});e;){for(d=a.length;d--;)e=a[d],m=(Math.min.apply(0,e.targets)+Math.max.apply(0,e.targets))/2,e.pos=Math.min(Math.max(0,m-e.size/2),b-e.size);d=a.length;for(e=!1;d--;)0<d&&a[d-1].pos+a[d-1].size>a[d].pos&&(a[d-1].size+=a[d].size,a[d-1].targets=a[d-1].targets.concat(a[d].targets),a[d-1].pos+a[d-1].size>b&&
(a[d-1].pos=b-a[d-1].size),a.splice(d,1),e=!0)}d=0;x(a,function(a){var b=0;x(a.targets,function(){f[d].pos=a.pos+b;b+=f[d].size;d++})});f.push.apply(f,g);n(f,c)};p.prototype.drawDataLabels=function(){var c=this,b=c.options,d=b.dataLabels,g=c.points,k,m,n=c.hasRendered||0,p,v,u=e(d.defer,!0),B=c.chart.renderer;if(d.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(d),v=c.plotGroup("dataLabelsGroup","data-labels",u&&!n?"hidden":"visible",d.zIndex||6),u&&(v.attr({opacity:+n}),n||w(c,
"afterAnimate",function(){c.visible&&v.show(!0);v[b.animation?"animate":"attr"]({opacity:1},{duration:200})})),m=d,x(g,function(b){var h,g=b.dataLabel,l,n,A=b.connector,u=!g;k=b.dlOptions||b.options&&b.options.dataLabels;if(h=e(k&&k.enabled,m.enabled)&&null!==b.y)d=r(m,k),l=b.getLabelConfig(),p=d.format?f(d.format,l):d.formatter.call(l,d),l=d.rotation,n={r:d.borderRadius||0,rotation:l,padding:d.padding,zIndex:1},a.objectEach(n,function(a,b){void 0===a&&delete n[b]});!g||h&&y(p)?h&&y(p)&&(g?n.text=
p:(g=b.dataLabel=B[l?"text":"label"](p,0,-9999,d.shape,null,null,d.useHTML,null,"data-label"),g.addClass("highcharts-data-label-color-"+b.colorIndex+" "+(d.className||"")+(d.useHTML?"highcharts-tracker":""))),g.attr(n),g.added||g.add(v),c.alignDataLabel(b,g,d,null,u)):(b.dataLabel=g=g.destroy(),A&&(b.connector=A.destroy()))})};p.prototype.alignDataLabel=function(a,b,d,f,k){var c=this.chart,h=c.inverted,l=e(a.plotX,-9999),m=e(a.plotY,-9999),n=b.getBBox(),p,u=d.rotation,r=d.align,x=this.visible&&(a.series.forceDL||
c.isInsidePlot(l,Math.round(m),h)||f&&c.isInsidePlot(l,h?f.x+1:f.y+f.height-1,h)),q="justify"===e(d.overflow,"justify");if(x&&(p=c.renderer.fontMetrics(void 0,b).b,f=g({x:h?c.plotWidth-m:l,y:Math.round(h?c.plotHeight-l:m),width:0,height:0},f),g(d,{width:n.width,height:n.height}),u?(q=!1,l=c.renderer.rotCorr(p,u),l={x:f.x+d.x+f.width/2+l.x,y:f.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*f.height},b[k?"attr":"animate"](l).attr({align:r}),m=(u+720)%360,m=180<m&&360>m,"left"===r?l.y-=m?n.height:
0:"center"===r?(l.x-=n.width/2,l.y-=n.height/2):"right"===r&&(l.x-=n.width,l.y-=m?0:n.height)):(b.align(d,null,f),l=b.alignAttr),q?a.isLabelJustified=this.justifyDataLabel(b,d,l,n,f,k):e(d.crop,!0)&&(x=c.isInsidePlot(l.x,l.y)&&c.isInsidePlot(l.x+n.width,l.y+n.height)),d.shape&&!u))b[k?"attr":"animate"]({anchorX:h?c.plotWidth-a.plotY:a.plotX,anchorY:h?c.plotHeight-a.plotX:a.plotY});x||(b.attr({y:-9999}),b.placed=!1)};p.prototype.justifyDataLabel=function(a,b,d,e,f,g){var c=this.chart,h=b.align,l=b.verticalAlign,
k,m,n=a.box?0:a.padding||0;k=d.x+n;0>k&&("right"===h?b.align="left":b.x=-k,m=!0);k=d.x+e.width-n;k>c.plotWidth&&("left"===h?b.align="right":b.x=c.plotWidth-k,m=!0);k=d.y+n;0>k&&("bottom"===l?b.verticalAlign="top":b.y=-k,m=!0);k=d.y+e.height-n;k>c.plotHeight&&("top"===l?b.verticalAlign="bottom":b.y=c.plotHeight-k,m=!0);m&&(a.placed=!g,a.align(b,null,f));return m};u.pie&&(u.pie.prototype.drawDataLabels=function(){var c=this,b=c.data,d,f=c.chart,g=c.options.dataLabels,k=e(g.connectorPadding,10),m=e(g.connectorWidth,
1),n=f.plotWidth,v=f.plotHeight,u,r=c.center,z=r[2]/2,D=r[1],w,q,t,O,L=[[],[]],I,M,P,Q,N=[0,0,0,0];c.visible&&(g.enabled||c._hasPointLabels)&&(x(b,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),p.prototype.drawDataLabels.apply(c),x(b,function(a){a.dataLabel&&a.visible&&(L[a.half].push(a),a.dataLabel._pos=null)}),x(L,function(b,e){var h,l,m=b.length,p=[],A;if(m)for(c.sortByAngle(b,e-.5),
0<c.maxLabelDistance&&(h=Math.max(0,D-z-c.maxLabelDistance),l=Math.min(D+z+c.maxLabelDistance,f.plotHeight),x(b,function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,D-z-a.labelDistance),a.bottom=Math.min(D+z+a.labelDistance,f.plotHeight),A=a.dataLabel.getBBox().height||21,a.positionsIndex=p.push({target:a.labelPos[1]-a.top+A/2,size:A,rank:a.y})-1)}),a.distribute(p,l+A-h)),Q=0;Q<m;Q++)d=b[Q],l=d.positionsIndex,t=d.labelPos,w=d.dataLabel,P=!1===d.visible?"hidden":"inherit",h=t[1],p&&y(p[l])?
void 0===p[l].pos?P="hidden":(O=p[l].size,M=d.top+p[l].pos):M=h,delete d.positionIndex,I=g.justify?r[0]+(e?-1:1)*(z+d.labelDistance):c.getX(M<d.top+2||M>d.bottom-2?h:M,e,d),w._attr={visibility:P,align:t[6]},w._pos={x:I+g.x+({left:k,right:-k}[t[6]]||0),y:M+g.y-10},t.x=I,t.y=M,null===c.options.size&&(q=w.getBBox().width,h=null,I-q<k?(h=Math.round(q-I+k),N[3]=Math.max(h,N[3])):I+q>n-k&&(h=Math.round(I+q-n+k),N[1]=Math.max(h,N[1])),0>M-O/2?N[0]=Math.max(Math.round(-M+O/2),N[0]):M+O/2>v&&(N[2]=Math.max(Math.round(M+
O/2-v),N[2])),w.sideOverflow=h)}),0===C(N)||this.verifyDataLabelOverflow(N))&&(this.placeDataLabels(),m&&x(this.points,function(a){var b;u=a.connector;if((w=a.dataLabel)&&w._pos&&a.visible&&0<a.labelDistance){P=w._attr.visibility;if(b=!u)a.connector=u=f.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+a.colorIndex).add(c.dataLabelsGroup);u[b?"attr":"animate"]({d:c.connectorPath(a.labelPos)});u.attr("visibility",P)}else u&&(a.connector=u.destroy())}))},u.pie.prototype.connectorPath=
function(a){var b=a.x,c=a.y;return e(this.options.dataLabels.softConnector,!0)?["M",b+("left"===a[6]?5:-5),c,"C",b,c,2*a[2]-a[4],2*a[3]-a[5],a[2],a[3],"L",a[4],a[5]]:["M",b+("left"===a[6]?5:-5),c,"L",a[2],a[3],"L",a[4],a[5]]},u.pie.prototype.placeDataLabels=function(){x(this.points,function(a){var b=a.dataLabel;b&&a.visible&&((a=b._pos)?(b.sideOverflow&&(b._attr.width=b.getBBox().width-b.sideOverflow,b.css({width:b._attr.width+"px",textOverflow:"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?
"animate":"attr"](a),b.moved=!0):b&&b.attr({y:-9999}))},this)},u.pie.prototype.alignDataLabel=m,u.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,c=this.options,e=c.center,f=c.minSize||80,g,k;null!==e[0]?g=Math.max(b[2]-Math.max(a[1],a[3]),f):(g=Math.max(b[2]-a[1]-a[3],f),b[0]+=(a[3]-a[1])/2);null!==e[1]?g=Math.max(Math.min(g,b[2]-Math.max(a[0],a[2])),f):(g=Math.max(Math.min(g,b[2]-a[0]-a[2]),f),b[1]+=(a[0]-a[2])/2);g<b[2]?(b[2]=g,b[3]=Math.min(d(c.innerSize||0,g),g),this.translate(b),
this.drawDataLabels&&this.drawDataLabels()):k=!0;return k});u.column&&(u.column.prototype.alignDataLabel=function(a,b,d,f,g){var c=this.chart.inverted,h=a.series,l=a.dlBox||a.shapeArgs,k=e(a.below,a.plotY>e(this.translatedThreshold,h.yAxis.len)),m=e(d.inside,!!this.options.stacking);l&&(f=r(l),0>f.y&&(f.height+=f.y,f.y=0),l=f.y+f.height-h.yAxis.len,0<l&&(f.height-=l),c&&(f={x:h.yAxis.len-f.y-f.height,y:h.xAxis.len-f.x-f.width,width:f.height,height:f.width}),m||(c?(f.x+=k?0:f.width,f.width=0):(f.y+=
k?f.height:0,f.height=0)));d.align=e(d.align,!c||m?"center":k?"right":"left");d.verticalAlign=e(d.verticalAlign,c||m?"middle":k?"top":"bottom");p.prototype.alignDataLabel.call(this,a,b,d,f,g);a.isLabelJustified&&a.contrastColor&&a.dataLabel.css({color:a.contrastColor})})})(I);(function(a){var w=a.Chart,C=a.each,y=a.pick,x=a.addEvent;w.prototype.callbacks.push(function(a){function f(){var f=[];C(a.series||[],function(a){var g=a.options.dataLabels,e=a.dataLabelCollections||["dataLabel"];(g.enabled||
a._hasPointLabels)&&!g.allowOverlap&&a.visible&&C(e,function(d){C(a.points,function(a){a[d]&&(a[d].labelrank=y(a.labelrank,a.shapeArgs&&a.shapeArgs.height),f.push(a[d]))})})});a.hideOverlappingLabels(f)}f();x(a,"redraw",f)});w.prototype.hideOverlappingLabels=function(a){var f=a.length,g,r,m,e,d,p,u,n,c,b=function(a,b,c,d,e,f,g,k){return!(e>a+c||e+g<a||f>b+d||f+k<b)};for(r=0;r<f;r++)if(g=a[r])g.oldOpacity=g.opacity,g.newOpacity=1;a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(r=
0;r<f;r++)for(m=a[r],g=r+1;g<f;++g)if(e=a[g],m&&e&&m!==e&&m.placed&&e.placed&&0!==m.newOpacity&&0!==e.newOpacity&&(d=m.alignAttr,p=e.alignAttr,u=m.parentGroup,n=e.parentGroup,c=2*(m.box?0:m.padding),d=b(d.x+u.translateX,d.y+u.translateY,m.width-c,m.height-c,p.x+n.translateX,p.y+n.translateY,e.width-c,e.height-c)))(m.labelrank<e.labelrank?m:e).newOpacity=0;C(a,function(a){var b,c;a&&(c=a.newOpacity,a.oldOpacity!==c&&a.placed&&(c?a.show(!0):b=function(){a.hide()},a.alignAttr.opacity=c,a[a.isOld?"animate":
"attr"](a.alignAttr,null,b)),a.isOld=!0)})}})(I);(function(a){var w=a.addEvent,C=a.Chart,y=a.createElement,x=a.css,g=a.defaultOptions,f=a.defaultPlotOptions,k=a.each,r=a.extend,m=a.fireEvent,e=a.hasTouch,d=a.inArray,p=a.isObject,u=a.Legend,n=a.merge,c=a.pick,b=a.Point,h=a.Series,l=a.seriesTypes,E=a.svg,G;G=a.TrackerMixin={drawTrackerPoint:function(){var a=this,b=a.chart.pointer,c=function(a){var c=b.getPointFromEvent(a);if(void 0!==c)c.onMouseOver(a)};k(a.points,function(a){a.graphic&&(a.graphic.element.point=
a);a.dataLabel&&(a.dataLabel.div?a.dataLabel.div.point=a:a.dataLabel.element.point=a)});a._hasTracking||(k(a.trackerGroups,function(d){if(a[d]&&(a[d].addClass("highcharts-tracker").on("mouseover",c).on("mouseout",function(a){b.onTrackerMouseOut(a)}),e))a[d].on("touchstart",c)}),a._hasTracking=!0)},drawTrackerGraph:function(){var a=this,b=a.options.trackByArea,c=[].concat(b?a.areaPath:a.graphPath),d=c.length,f=a.chart,h=f.pointer,g=f.renderer,l=f.options.tooltip.snap,m=a.tracker,n,p=function(){if(f.hoverSeries!==
a)a.onMouseOver()},u="rgba(192,192,192,"+(E?.0001:.002)+")";if(d&&!b)for(n=d+1;n--;)"M"===c[n]&&c.splice(n+1,0,c[n+1]-l,c[n+2],"L"),(n&&"M"===c[n]||n===d)&&c.splice(n,0,"L",c[n-2]+l,c[n-1]);m?m.attr({d:c}):a.graph&&(a.tracker=g.path(c).attr({"stroke-linejoin":"round",visibility:a.visible?"visible":"hidden",stroke:u,fill:b?u:"none","stroke-width":a.graph.strokeWidth()+(b?0:2*l),zIndex:2}).add(a.group),k([a.tracker,a.markerGroup],function(a){a.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",
function(a){h.onTrackerMouseOut(a)});if(e)a.on("touchstart",p)}))}};l.column&&(l.column.prototype.drawTracker=G.drawTrackerPoint);l.pie&&(l.pie.prototype.drawTracker=G.drawTrackerPoint);l.scatter&&(l.scatter.prototype.drawTracker=G.drawTrackerPoint);r(u.prototype,{setItemEvents:function(a,b,c){var d=this.chart.renderer.boxWrapper,e="highcharts-legend-"+(a.series?"point":"series")+"-active";(c?b:a.legendGroup).on("mouseover",function(){a.setState("hover");d.addClass(e)}).on("mouseout",function(){d.removeClass(e);
a.setState()}).on("click",function(b){var c=function(){a.setVisible&&a.setVisible()};b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):m(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=y("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);w(a.checkbox,"click",function(b){m(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}});r(C.prototype,
{showResetZoom:function(){var a=this,b=g.lang,c=a.options.chart.resetZoomButton,d=c.theme,e=d.states,f="chart"===c.relativeTo?null:"plotBox";this.resetZoomButton=a.renderer.button(b.resetZoom,null,null,function(){a.zoomOut()},d,e&&e.hover).attr({align:c.position.align,title:b.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(c.position,!1,f)},zoomOut:function(){var a=this;m(a,"selection",{resetSelection:!0},function(){a.zoom()})},zoom:function(a){var b,d=this.pointer,e=!1,f;!a||a.resetSelection?
k(this.axes,function(a){b=a.zoom()}):k(a.xAxis.concat(a.yAxis),function(a){var c=a.axis;d[c.isXAxis?"zoomX":"zoomY"]&&(b=c.zoom(a.min,a.max),c.displayBtn&&(e=!0))});f=this.resetZoomButton;e&&!f?this.showResetZoom():!e&&p(f)&&(this.resetZoomButton=f.destroy());b&&this.redraw(c(this.options.chart.animation,a&&a.animation,100>this.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&k(d,function(a){a.setState()});k("xy"===b?[1,0]:[1],function(b){b=c[b?"xAxis":"yAxis"][0];var d=b.horiz,f=a[d?
"chartX":"chartY"],d=d?"mouseDownX":"mouseDownY",h=c[d],g=(b.pointRange||0)/2,l=b.getExtremes(),k=b.toValue(h-f,!0)+g,g=b.toValue(h+b.len-f,!0)-g,m=g<k,h=m?g:k,k=m?k:g,g=Math.min(l.dataMin,b.toValue(b.toPixels(l.min)-b.minPixelPadding)),m=Math.max(l.dataMax,b.toValue(b.toPixels(l.max)+b.minPixelPadding)),n;n=g-h;0<n&&(k+=n,h=g);n=k-m;0<n&&(k=m,h-=n);b.series.length&&h!==l.min&&k!==l.max&&(b.setExtremes(h,k,!1,!1,{trigger:"pan"}),e=!0);c[d]=f});e&&c.redraw(!1);x(c.container,{cursor:"move"})}});r(b.prototype,
{select:function(a,b){var e=this,f=e.series,h=f.chart;a=c(a,!e.selected);e.firePointEvent(a?"select":"unselect",{accumulate:b},function(){e.selected=e.options.selected=a;f.options.data[d(e,f.data)]=e.options;e.setState(a&&"select");b||k(h.getSelectedPoints(),function(a){a.selected&&a!==e&&(a.selected=a.options.selected=!1,f.options.data[d(a,f.data)]=a.options,a.setState(""),a.firePointEvent("unselect"))})})},onMouseOver:function(a){var b=this.series.chart.pointer;this.firePointEvent("mouseOver");
b.runPointActions(a,this)},onMouseOut:function(){var a=this.series.chart;this.firePointEvent("mouseOut");k(a.hoverPoints||[],function(a){a.setState()});a.hoverPoints=a.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var b=this,c=n(b.series.options.point,b.options).events;b.events=c;a.objectEach(c,function(a,c){w(b,c,a)});this.hasImportedEvents=!0}},setState:function(a,b){var d=Math.floor(this.plotX),e=this.plotY,h=this.series,g=h.options.states[a]||{},l=f[h.type].marker&&h.options.marker,
k=l&&!1===l.enabled,m=l&&l.states&&l.states[a]||{},n=!1===m.enabled,p=h.stateMarkerGraphic,u=this.marker||{},r=h.chart,x=h.halo,A,w=l&&h.markerAttribs;a=a||"";if(!(a===this.state&&!b||this.selected&&"select"!==a||!1===g.enabled||a&&(n||k&&!1===m.enabled)||a&&u.states&&u.states[a]&&!1===u.states[a].enabled)){w&&(A=h.markerAttribs(this,a));if(this.graphic)this.state&&this.graphic.removeClass("highcharts-point-"+this.state),a&&this.graphic.addClass("highcharts-point-"+a),A&&this.graphic.animate(A,c(r.options.chart.animation,
m.animation,l.animation)),p&&p.hide();else{if(a&&m)if(l=u.symbol||h.symbol,p&&p.currentSymbol!==l&&(p=p.destroy()),p)p[b?"animate":"attr"]({x:A.x,y:A.y});else l&&(h.stateMarkerGraphic=p=r.renderer.symbol(l,A.x,A.y,A.width,A.height).add(h.markerGroup),p.currentSymbol=l);p&&(p[a&&r.isInsidePlot(d,e,r.inverted)?"show":"hide"](),p.element.point=this)}(d=g.halo)&&d.size?(x||(h.halo=x=r.renderer.path().add(w?h.markerGroup:h.group)),x[b?"animate":"attr"]({d:this.haloPath(d.size)}),x.attr({"class":"highcharts-halo highcharts-color-"+
c(this.colorIndex,h.colorIndex)}),x.point=this):x&&x.point&&x.point.haloPath&&x.animate({d:x.point.haloPath(0)});this.state=a}},haloPath:function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-a,this.plotY-a,2*a,2*a)}});r(h.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&m(this,"mouseOver");this.setState("hover");a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,
d=b.hoverPoint;b.hoverSeries=null;if(d)d.onMouseOut();this&&a.events.mouseOut&&m(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();this.setState()},setState:function(a){var b=this;a=a||"";b.state!==a&&(k([b.group,b.markerGroup,b.dataLabelsGroup],function(c){c&&(b.state&&c.removeClass("highcharts-series-"+b.state),a&&c.addClass("highcharts-series-"+a))}),b.state=a)},setVisible:function(a,b){var c=this,d=c.chart,e=c.legendItem,h,f=d.options.chart.ignoreHiddenSeries,
g=c.visible;h=(c.visible=a=c.options.visible=c.userOptions.visible=void 0===a?!g:a)?"show":"hide";k(["group","dataLabelsGroup","markerGroup","tracker","tt"],function(a){if(c[a])c[a][h]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();e&&d.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&k(d.series,function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});k(c.linkedSeries,function(b){b.setVisible(a,!1)});f&&(d.isDirtyBox=!0);!1!==b&&d.redraw();m(c,h)},show:function(){this.setVisible(!0)},
hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=void 0===a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);m(this,a?"select":"unselect")},drawTracker:G.drawTrackerGraph})})(I);(function(a){var w=a.Chart,C=a.each,y=a.inArray,x=a.isArray,g=a.isObject,f=a.pick,k=a.splat;w.prototype.setResponsive=function(f){var g=this.options.responsive,e=[],d=this.currentResponsive;g&&g.rules&&C(g.rules,function(d){void 0===d._id&&(d._id=a.uniqueKey());this.matchResponsiveRule(d,e,
f)},this);var k=a.merge.apply(0,a.map(e,function(d){return a.find(g.rules,function(a){return a._id===d}).chartOptions})),e=e.toString()||void 0;e!==(d&&d.ruleIds)&&(d&&this.update(d.undoOptions,f),e?(this.currentResponsive={ruleIds:e,mergedOptions:k,undoOptions:this.currentOptions(k)},this.update(k,f)):this.currentResponsive=void 0)};w.prototype.matchResponsiveRule=function(a,g){var e=a.condition;(e.callback||function(){return this.chartWidth<=f(e.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=f(e.maxHeight,
Number.MAX_VALUE)&&this.chartWidth>=f(e.minWidth,0)&&this.chartHeight>=f(e.minHeight,0)}).call(this)&&g.push(a._id)};w.prototype.currentOptions=function(f){function m(d,e,f,n){var c;a.objectEach(d,function(a,h){if(!n&&-1<y(h,["series","xAxis","yAxis"]))for(d[h]=k(d[h]),f[h]=[],c=0;c<d[h].length;c++)e[h][c]&&(f[h][c]={},m(a[c],e[h][c],f[h][c],n+1));else g(a)?(f[h]=x(a)?[]:{},m(a,e[h]||{},f[h],n+1)):f[h]=e[h]||null})}var e={};m(f,this.options,e,0);return e}})(I);(function(a){var w=a.Axis,C=a.each,y=
a.pick;a=a.wrap;a(w.prototype,"getSeriesExtremes",function(a){var g=this.isXAxis,f,k,r=[],m;g&&C(this.series,function(a,d){a.useMapGeometry&&(r[d]=a.xData,a.xData=[])});a.call(this);g&&(f=y(this.dataMin,Number.MAX_VALUE),k=y(this.dataMax,-Number.MAX_VALUE),C(this.series,function(a,d){a.useMapGeometry&&(f=Math.min(f,y(a.minX,f)),k=Math.max(k,y(a.maxX,f)),a.xData=r[d],m=!0)}),m&&(this.dataMin=f,this.dataMax=k))});a(w.prototype,"setAxisTranslation",function(a){var g=this.chart,f=g.plotWidth/g.plotHeight,
g=g.xAxis[0],k;a.call(this);"yAxis"===this.coll&&void 0!==g.transA&&C(this.series,function(a){a.preserveAspectRatio&&(k=!0)});if(k&&(this.transA=g.transA=Math.min(this.transA,g.transA),a=f/((g.max-g.min)/(this.max-this.min)),a=1>a?this:g,f=(a.max-a.min)*a.transA,a.pixelPadding=a.len-f,a.minPixelPadding=a.pixelPadding/2,f=a.fixTo)){f=f[1]-a.toValue(f[0],!0);f*=a.transA;if(Math.abs(f)>a.minPixelPadding||a.min===a.dataMin&&a.max===a.dataMax)f=0;a.minPixelPadding-=f}});a(w.prototype,"render",function(a){a.call(this);
this.fixTo=null})})(I);(function(a){var w=a.Axis,C=a.Chart,y=a.color,x,g=a.each,f=a.extend,k=a.isNumber,r=a.Legend,m=a.LegendSymbolMixin,e=a.noop,d=a.merge,p=a.pick,u=a.wrap;x=a.ColorAxis=function(){this.init.apply(this,arguments)};f(x.prototype,w.prototype);f(x.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",
maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(w.prototype.keepProps),init:function(a,c){var b="vertical"!==a.options.legend.layout,e;this.coll="colorAxis";e=d(this.defaultColorAxisOptions,{side:b?2:1,reversed:!b},c,{opposite:!b,showEmpty:!1,title:null});w.prototype.init.call(this,a,e);c.dataClasses&&this.initDataClasses(c);this.initStops(c);this.horiz=b;this.zoomEnabled=!1;this.defaultLegendLength=
200},tweenColors:function(a,c,b){var d;c.rgba.length&&a.rgba.length?(a=a.rgba,c=c.rgba,d=1!==c[3]||1!==a[3],a=(d?"rgba(":"rgb(")+Math.round(c[0]+(a[0]-c[0])*(1-b))+","+Math.round(c[1]+(a[1]-c[1])*(1-b))+","+Math.round(c[2]+(a[2]-c[2])*(1-b))+(d?","+(c[3]+(a[3]-c[3])*(1-b)):"")+")"):a=c.input||"none";return a},initDataClasses:function(a){var c=this,b,e=0,f=this.chart.options.chart.colorCount,k=this.options,m=a.dataClasses.length;this.dataClasses=b=[];this.legendItems=[];g(a.dataClasses,function(a,
h){a=d(a);b.push(a);a.color||("category"===k.dataClassColor?(a.colorIndex=e,e++,e===f&&(e=0)):a.color=c.tweenColors(y(k.minColor),y(k.maxColor),2>m?.5:h/(m-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=y(a[1])})},setOptions:function(a){w.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,c=this.chart,b=c.options.legend||{},d,e;a?(this.left=
b=a.attr("x"),this.top=d=a.attr("y"),this.width=e=a.attr("width"),this.height=a=a.attr("height"),this.right=c.chartWidth-b-e,this.bottom=c.chartHeight-d-a,this.len=this.horiz?e:a,this.pos=this.horiz?b:d):this.len=(this.horiz?b.symbolWidth:b.symbolHeight)||this.defaultLegendLength},toColor:function(a,c){var b=this.stops,d,e,f=this.dataClasses,g,k;if(f)for(k=f.length;k--;){if(g=f[k],d=g.from,b=g.to,(void 0===d||a>=d)&&(void 0===b||a<=b)){e=g.color;c&&(c.dataClass=k,c.colorIndex=g.colorIndex);break}}else{this.isLog&&
(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(k=b.length;k--&&!(a>b[k][0]););d=b[k]||b[k+1];b=b[k+1]||d;a=1-(b[0]-a)/(b[0]-d[0]||1);e=this.tweenColors(d.color,b.color,a)}return e},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,w.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.options,b=this.reversed;
a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:c.stops||[[0,c.minColor],[1,c.maxColor]]}},drawLegendSymbol:function(a,c){var b=a.padding,d=a.options,e=this.horiz,f=p(d.symbolWidth,e?this.defaultLegendLength:12),g=p(d.symbolHeight,e?12:this.defaultLegendLength),k=p(d.labelPadding,e?16:30),d=p(d.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,f,g).attr({zIndex:1}).add(c.legendGroup);
this.legendItemWidth=f+b+(e?d:k);this.legendItemHeight=g+b+(e?k:0)},setState:e,visible:!0,setVisible:e,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var b=c&&c.plotX,d=c&&c.plotY,e,f=this.pos,g=this.len;c&&(e=this.toPixels(c[c.series.colorKey]),e<f?e=f-2:e>f+g&&(e=f+g+2),c.plotX=
e,c.plotY=this.len-e,w.prototype.drawCrosshair.call(this,a,c),c.plotX=b,c.plotY=d,this.cross&&this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup))},getPlotLinePath:function(a,c,b,d,e){return k(e)?this.horiz?["M",e-4,this.top-6,"L",e+4,this.top-6,e,this.top,"Z"]:["M",this.left,e,"L",this.left-6,e+6,this.left-6,e-6,"Z"]:w.prototype.getPlotLinePath.call(this,a,c,b,d)},update:function(a,c){var b=this.chart,e=b.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&e.allItems&&
(g(e.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),b.isDirtyLegend=!0);b.options[this.coll]=d(this.userOptions,a);w.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),e.colorizeItem(this,!0))},remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);w.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var d=this,c=this.chart,b=this.legendItems,h=c.options.legend,k=h.valueDecimals,p=h.valueSuffix||"",u;b.length||g(this.dataClasses,
function(h,l){var n=!0,r=h.from,x=h.to;u="";void 0===r?u="\x3c ":void 0===x&&(u="\x3e ");void 0!==r&&(u+=a.numberFormat(r,k)+p);void 0!==r&&void 0!==x&&(u+=" - ");void 0!==x&&(u+=a.numberFormat(x,k)+p);b.push(f({chart:c,name:u,options:{},drawLegendSymbol:m.drawRectangle,visible:!0,setState:e,isDataClass:!0,setVisible:function(){n=this.visible=!n;g(d.series,function(a){g(a.points,function(a){a.dataClass===l&&a.setVisible(n)})});c.legend.colorizeItem(this,n)}},h))});return b},name:""});g(["fill","stroke"],
function(d){a.Fx.prototype[d+"Setter"]=function(){this.elem.attr(d,x.prototype.tweenColors(y(this.start),y(this.end),this.pos),null,!0)}});u(C.prototype,"getAxes",function(a){var c=this.options.colorAxis;a.call(this);this.colorAxis=[];c&&new x(this,c)});u(r.prototype,"getAllItems",function(a){var c=[],b=this.chart.colorAxis[0];b&&b.options&&(b.options.showInLegend&&(b.options.dataClasses?c=c.concat(b.getDataClassLegendSymbols()):c.push(b)),g(b.series,function(a){a.options.showInLegend=!1}));return c.concat(a.call(this))});
u(r.prototype,"colorizeItem",function(a,c,b){a.call(this,c,b);b&&c.legendColor&&c.legendSymbol.attr({fill:c.legendColor})})})(I);(function(a){var w=a.defined,C=a.each,y=a.noop;a.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(a){var g=this,f=a?"show":"hide";C(["graphic","dataLabel"],function(a){if(g[a])g[a][f]()})},setState:function(x){a.Point.prototype.setState.call(this,x);this.graphic&&this.graphic.attr({zIndex:"hover"===x?1:0})}};a.colorSeriesMixin={pointArrayMap:["value"],
axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:y,parallelArrays:["x","y","value"],colorKey:"value",translateColors:function(){var a=this,g=this.options.nullColor,f=this.colorAxis,k=this.colorKey;C(this.data,function(r){var m=r[k];if(m=r.options.color||(r.isNull?g:f&&void 0!==m?f.toColor(m,r):r.color||a.color))r.color=m})},colorAttribs:function(a){var g={};w(a.color)&&(g[this.colorProp||"fill"]=a.color);return g}}})(I);
(function(a){function w(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function C(a){this.init(a)}var y=a.addEvent,x=a.Chart,g=a.doc,f=a.each,k=a.extend,r=a.merge,m=a.pick,e=a.wrap;C.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};C.prototype.update=function(d){var e=this.chart,f=e.options.mapNavigation,g,c=function(a){this.handler.call(e,a);w(a)},b=e.mapNavButtons;d&&(f=e.options.mapNavigation=r(e.options.mapNavigation,d));for(;b.length;)b.pop().destroy();
m(f.enableButtons,f.enabled)&&!e.renderer.forExport&&a.objectEach(f.buttons,function(a,d){g=r(f.buttonOptions,a);a=e.renderer.button(g.text,0,0,c,void 0,void 0,void 0,0,"zoomIn"===d?"topbutton":"bottombutton").addClass("highcharts-map-navigation").attr({width:g.width,height:g.height,title:e.options.lang[d],padding:g.padding,zIndex:5}).add();a.handler=g.onclick;a.align(k(g,{width:a.width,height:2*a.height}),null,g.alignTo);y(a.element,"dblclick",w);b.push(a)});this.updateEvents(f)};C.prototype.updateEvents=
function(a){var d=this.chart;m(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||y(d.container,"dblclick",function(a){d.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());m(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||y(d.container,void 0===g.onmousewheel?"DOMMouseScroll":"mousewheel",function(a){d.pointer.onContainerMouseWheel(a);w(a);return!1}):this.unbindMouseWheel&&
(this.unbindMouseWheel=this.unbindMouseWheel())};k(x.prototype,{fitToBox:function(a,e){f([["x","width"],["y","height"]],function(d){var f=d[0];d=d[1];a[f]+a[d]>e[f]+e[d]&&(a[d]>e[d]?(a[d]=e[d],a[f]=e[f]):a[f]=e[f]+e[d]-a[d]);a[d]>e[d]&&(a[d]=e[d]);a[f]<e[f]&&(a[f]=e[f])});return a},mapZoom:function(a,e,f,g,c){var b=this.xAxis[0],d=b.max-b.min,k=m(e,b.min+d/2),n=d*a,d=this.yAxis[0],p=d.max-d.min,r=m(f,d.min+p/2),p=p*a,k=this.fitToBox({x:k-n*(g?(g-b.pos)/b.len:.5),y:r-p*(c?(c-d.pos)/d.len:.5),width:n,
height:p},{x:b.dataMin,y:d.dataMin,width:b.dataMax-b.dataMin,height:d.dataMax-d.dataMin}),n=k.x<=b.dataMin&&k.width>=b.dataMax-b.dataMin&&k.y<=d.dataMin&&k.height>=d.dataMax-d.dataMin;g&&(b.fixTo=[g-b.pos,e]);c&&(d.fixTo=[c-d.pos,f]);void 0===a||n?(b.setExtremes(void 0,void 0,!1),d.setExtremes(void 0,void 0,!1)):(b.setExtremes(k.x,k.x+k.width,!1),d.setExtremes(k.y,k.y+k.height,!1));this.redraw()}});e(x.prototype,"render",function(a){this.mapNavigation=new C(this);this.mapNavigation.update();a.call(this)})})(I);
(function(a){var w=a.extend,C=a.pick,y=a.Pointer;a=a.wrap;w(y.prototype,{onContainerDblClick:function(a){var g=this.chart;a=this.normalize(a);g.options.mapNavigation.enableDoubleClickZoomTo?g.pointer.inClass(a.target,"highcharts-tracker")&&g.hoverPoint&&g.hoverPoint.zoomTo():g.isInsidePlot(a.chartX-g.plotLeft,a.chartY-g.plotTop)&&g.mapZoom(.5,g.xAxis[0].toValue(a.chartX),g.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var g=this.chart,f;a=this.normalize(a);f=a.detail||
-(a.wheelDelta/120);g.isInsidePlot(a.chartX-g.plotLeft,a.chartY-g.plotTop)&&g.mapZoom(Math.pow(g.options.mapNavigation.mouseWheelSensitivity,f),g.xAxis[0].toValue(a.chartX),g.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(y.prototype,"zoomOption",function(a){var g=this.chart.options.mapNavigation;C(g.enableTouchZoom,g.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});a(y.prototype,"pinchTranslate",function(a,g,f,k,r,m,e){a.call(this,g,f,k,r,m,e);"map"===
this.chart.options.chart.type&&this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,g,f,k,r,m,e,a?k.scaleX:k.scaleY))})})(I);(function(a){var w=a.colorPointMixin,C=a.each,y=a.extend,x=a.isNumber,g=a.map,f=a.merge,k=a.noop,r=a.pick,m=a.isArray,e=a.Point,d=a.Series,p=a.seriesType,u=a.seriesTypes,n=a.splat,c=void 0!==a.doc.documentElement.style.vectorEffect;p("map","scatter",{allAreas:!0,animation:!1,nullColor:"#f7f7f7",borderColor:"#cccccc",borderWidth:1,marker:null,stickyTracking:!1,
joinBy:"hc-key",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{brightness:.2,halo:null},select:{color:"#cccccc"}}},f(a.colorSeriesMixin,{type:"map",supportsDrilldown:!0,getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:k,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:["value"],
getBox:function(b){var c=Number.MAX_VALUE,d=-c,e=c,f=-c,g=c,k=c,m=this.xAxis,n=this.yAxis,p;C(b||[],function(b){if(b.path){"string"===typeof b.path&&(b.path=a.splitPath(b.path));var h=b.path||[],l=h.length,m=!1,n=-c,u=c,v=-c,w=c,A=b.properties;if(!b._foundBox){for(;l--;)x(h[l])&&(m?(n=Math.max(n,h[l]),u=Math.min(u,h[l])):(v=Math.max(v,h[l]),w=Math.min(w,h[l])),m=!m);b._midX=u+(n-u)*(b.middleX||A&&A["hc-middle-x"]||.5);b._midY=w+(v-w)*(b.middleY||A&&A["hc-middle-y"]||.5);b._maxX=n;b._minX=u;b._maxY=
v;b._minY=w;b.labelrank=r(b.labelrank,(n-u)*(v-w));b._foundBox=!0}d=Math.max(d,b._maxX);e=Math.min(e,b._minX);f=Math.max(f,b._maxY);g=Math.min(g,b._minY);k=Math.min(b._maxX-b._minX,b._maxY-b._minY,k);p=!0}});p&&(this.minY=Math.min(g,r(this.minY,c)),this.maxY=Math.max(f,r(this.maxY,-c)),this.minX=Math.min(e,r(this.minX,c)),this.maxX=Math.max(d,r(this.maxX,-c)),m&&void 0===m.options.minRange&&(m.minRange=Math.min(5*k,(this.maxX-this.minX)/5,m.minRange||c)),n&&void 0===n.options.minRange&&(n.minRange=
Math.min(5*k,(this.maxY-this.minY)/5,n.minRange||c)))},getExtremes:function(){d.prototype.getExtremes.call(this,this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var b=!1,c=this.xAxis,d=this.yAxis,e=c.min,f=c.transA,c=c.minPixelPadding,g=d.min,k=d.transA,d=d.minPixelPadding,m,n=[];if(a)for(m=a.length;m--;)x(a[m])?(n[m]=b?(a[m]-e)*f+c:
(a[m]-g)*k+d,b=!b):n[m]=a[m];return n},setData:function(b,c,e,k){var h=this.options,l=this.chart.options.chart,p=l&&l.map,r=h.mapData,u=h.joinBy,w=null===u,z=h.keys||this.pointArrayMap,y=[],E={},q=this.chart.mapTransforms;!r&&p&&(r="string"===typeof p?a.maps[p]:p);w&&(u="_i");u=this.joinBy=n(u);u[1]||(u[1]=u[0]);b&&C(b,function(a,c){var d=0;if(x(a))b[c]={value:a};else if(m(a)){b[c]={};!h.keys&&a.length>z.length&&"string"===typeof a[0]&&(b[c]["hc-key"]=a[0],++d);for(var e=0;e<z.length;++e,++d)z[e]&&
(b[c][z[e]]=a[d])}w&&(b[c]._i=c)});this.getBox(b);(this.chart.mapTransforms=q=l&&l.mapTransforms||r&&r["hc-transform"]||q)&&a.objectEach(q,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(r){"FeatureCollection"===r.type&&(this.mapTitle=r.title,r=a.geojson(r,this.type,this));this.mapData=r;this.mapMap={};for(q=0;q<r.length;q++)l=r[q],p=l.properties,l._i=q,u[0]&&p&&p[u[0]]&&(l[u[0]]=p[u[0]]),E[l[u[0]]]=l;this.mapMap=E;b&&u[1]&&C(b,function(a){E[a[u[1]]]&&
y.push(E[a[u[1]]])});h.allAreas?(this.getBox(r),b=b||[],u[1]&&C(b,function(a){y.push(a[u[1]])}),y="|"+g(y,function(a){return a&&a[u[0]]}).join("|")+"|",C(r,function(a){u[0]&&-1!==y.indexOf("|"+a[u[0]]+"|")||(b.push(f(a,{value:null})),k=!1)})):this.getBox(y)}d.prototype.setData.call(this,b,c,e,k)},drawGraph:k,drawDataLabels:k,doFullTranslate:function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans},translate:function(){var a=this,c=a.xAxis,d=a.yAxis,e=a.doFullTranslate();
a.generatePoints();C(a.data,function(b){b.plotX=c.toPixels(b._midX,!0);b.plotY=d.toPixels(b._midY,!0);e&&(b.shapeType="path",b.shapeArgs={d:a.translatePath(b.path)})});a.translateColors()},pointAttribs:function(a,d){d=this.colorAttribs(a);a.isFading&&delete d.fill;c?d["vector-effect"]="non-scaling-stroke":d["stroke-width"]="inherit";return d},drawPoints:function(){var a=this,d=a.xAxis,e=a.yAxis,f=a.group,g=a.chart,k=g.renderer,m,n,p,r,w=this.baseTrans,x,y,q,t,I;a.transformGroup||(a.transformGroup=
k.g().attr({scaleX:1,scaleY:1}).add(f),a.transformGroup.survive=!0);a.doFullTranslate()?(a.group=a.transformGroup,u.column.prototype.drawPoints.apply(a),a.group=f,C(a.points,function(b){b.graphic&&(b.name&&b.graphic.addClass("highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase()),b.properties&&b.properties["hc-key"]&&b.graphic.addClass("highcharts-key-"+b.properties["hc-key"].toLowerCase()),b.graphic.css(a.pointAttribs(b,b.selected&&"select")))}),this.baseTrans={originX:d.min-d.minPixelPadding/
d.transA,originY:e.min-e.minPixelPadding/e.transA+(e.reversed?0:e.len/e.transA),transAX:d.transA,transAY:e.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1})):(m=d.transA/w.transAX,n=e.transA/w.transAY,p=d.toPixels(w.originX,!0),r=e.toPixels(w.originY,!0),.99<m&&1.01>m&&.99<n&&1.01>n&&(n=m=1,p=Math.round(p),r=Math.round(r)),x=this.transformGroup,g.renderer.globalAnimation?(y=x.attr("translateX"),q=x.attr("translateY"),t=x.attr("scaleX"),I=x.attr("scaleY"),x.attr({animator:0}).animate({animator:1},
{step:function(a,b){x.attr({translateX:y+(p-y)*b.pos,translateY:q+(r-q)*b.pos,scaleX:t+(m-t)*b.pos,scaleY:I+(n-I)*b.pos})}})):x.attr({translateX:p,translateY:r,scaleX:m,scaleY:n}));c||a.group.element.setAttribute("stroke-width",a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"]/(m||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=
this,c=d.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){c.call(a)}):c.call(a)},animate:function(a){var b=this.options.animation,c=this.group,d=this.xAxis,e=this.yAxis,f=d.pos,g=e.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?c.attr({translateX:f+d.len/2,translateY:g+e.len/2,scaleX:.001,scaleY:.001}):(c.animate({translateX:f,translateY:g,scaleX:1,scaleY:1},b),this.animate=null))},animateDrilldown:function(a){var b=this.chart.plotBox,c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-
1],d=c.bBox,e=this.chart.options.drilldown.animation;a||(a=Math.min(d.width/b.width,d.height/b.height),c.shapeArgs={scaleX:a,scaleY:a,translateX:d.x,translateY:d.y},C(this.points,function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},e)}),this.animate=null)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,animateDrillupFrom:function(a){u.column.prototype.animateDrillupFrom.call(this,a)},animateDrillupTo:function(a){u.column.prototype.animateDrillupTo.call(this,
a)}}),y({applyOptions:function(a,c){a=e.prototype.applyOptions.call(this,a,c);c=this.series;var b=c.joinBy;c.mapData&&((b=void 0!==a[b[1]]&&c.mapMap[a[b[1]]])?(c.xyFromShape&&(a.x=b._midX,a.y=b._midY),y(a,b)):a.value=a.value||null);return a},onMouseOver:function(a){clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)e.prototype.onMouseOver.call(this,a);else this.series.onMouseOut(a)},zoomTo:function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,
!1);a.yAxis.setExtremes(this._minY,this._maxY,!1);a.chart.redraw()}},w))})(I);(function(a){var w=a.seriesType;w("mapline","map",{},{type:"mapline",colorProp:"stroke",drawLegendSymbol:a.seriesTypes.line.prototype.drawLegendSymbol})})(I);(function(a){var w=a.merge,C=a.Point;a=a.seriesType;a("mappoint","scatter",{dataLabels:{enabled:!0,formatter:function(){return this.point.name},crop:!1,defer:!1,overflow:!1,style:{color:"#000000"}}},{type:"mappoint",forceDL:!0},{applyOptions:function(a,x){a=void 0!==
a.lat&&void 0!==a.lon?w(a,this.series.chart.fromLatLonToPoint(a)):a;return C.prototype.applyOptions.call(this,a,x)}})})(I);(function(a){var w=a.arrayMax,C=a.arrayMin,y=a.Axis,x=a.each,g=a.isNumber,f=a.noop,k=a.pick,r=a.pInt,m=a.Point,e=a.seriesType,d=a.seriesTypes;e("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},
tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,getRadii:function(a,d,e,c){var b,f,g,k=this.zData,m=[],n=this.options,p="width"!==n.sizeBy,r=n.zThreshold,u=d-a;f=0;for(b=k.length;f<b;f++)g=k[f],n.sizeByAbsoluteValue&&null!==g&&(g=Math.abs(g-r),d=Math.max(d-r,Math.abs(a-r)),a=0),
null===g?g=null:g<a?g=e/2-1:(g=0<u?(g-a)/u:.5,p&&0<=g&&(g=Math.sqrt(g)),g=Math.ceil(e+g*(c-e))/2),m.push(g);this.radii=m},animate:function(a){var d=this.options.animation;a||(x(this.points,function(a){var c=a.graphic,b;c&&c.width&&(b={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:a.plotX,y:a.plotY,width:1,height:1}),c.animate(b,d))}),this.animate=null)},translate:function(){var e,f=this.data,k,c,b=this.radii;d.scatter.prototype.translate.call(this);for(e=f.length;e--;)k=f[e],c=b?b[e]:0,g(c)&&
c>=this.minPxSize/2?(k.marker=a.extend(k.marker,{radius:c,width:2*c,height:2*c}),k.dlBox={x:k.plotX-c,y:k.plotY-c,width:2*c,height:2*c}):k.shapeArgs=k.plotY=k.dlBox=void 0},alignDataLabel:d.column.prototype.alignDataLabel,buildKDTree:f,applyZones:f},{haloPath:function(a){return m.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});y.prototype.beforePadding=function(){var a=this,d=this.len,e=this.chart,c=0,b=d,f=this.isXAxis,l=f?"xData":"yData",m=this.min,y=
{},A=Math.min(e.plotWidth,e.plotHeight),I=Number.MAX_VALUE,v=-Number.MAX_VALUE,F=this.max-m,B=d/F,z=[];x(this.series,function(b){var c=b.options;!b.bubblePadding||!b.visible&&e.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,z.push(b),f&&(x(["minSize","maxSize"],function(a){var b=c[a],d=/%$/.test(b),b=r(b);y[a]=d?A*b/100:b}),b.minPxSize=y.minSize,b.maxPxSize=Math.max(y.maxSize,y.minSize),b=b.zData,b.length&&(I=k(c.zMin,Math.min(I,Math.max(C(b),!1===c.displayNegative?c.zThreshold:-Number.MAX_VALUE))),
v=k(c.zMax,Math.max(v,w(b))))))});x(z,function(d){var e=d[l],h=e.length,k;f&&d.getRadii(I,v,d.minPxSize,d.maxPxSize);if(0<F)for(;h--;)g(e[h])&&a.dataMin<=e[h]&&e[h]<=a.dataMax&&(k=d.radii[h],c=Math.min((e[h]-m)*B-k,c),b=Math.max((e[h]-m)*B+k,b))});z.length&&0<F&&!this.isLog&&(b-=d,B*=(d+c-b)/d,x([["min","userMin",c],["max","userMax",b]],function(b){void 0===k(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/B)}))}})(I);(function(a){var w=a.merge,C=a.Point,y=a.seriesType,x=a.seriesTypes;x.bubble&&y("mapbubble",
"bubble",{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}},{xyFromShape:!0,type:"mapbubble",pointArrayMap:["z"],getMapData:x.map.prototype.getMapData,getBox:x.map.prototype.getBox,setData:x.map.prototype.setData},{applyOptions:function(a,f){return a&&void 0!==a.lat&&void 0!==a.lon?C.prototype.applyOptions.call(this,w(a,this.series.chart.fromLatLonToPoint(a)),f):x.map.prototype.pointClass.prototype.applyOptions.call(this,a,f)},ttBelow:!1})})(I);(function(a){var w=a.colorPointMixin,
C=a.each,y=a.merge,x=a.noop,g=a.pick,f=a.Series,k=a.seriesType,r=a.seriesTypes;k("heatmap","scatter",{animation:!1,borderWidth:0,dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},y(a.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,
getExtremesFromAll:!0,directTouch:!0,init:function(){var a;r.scatter.prototype.init.apply(this,arguments);a=this.options;a.pointRange=g(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1},translate:function(){var a=this.options,e=this.xAxis,d=this.yAxis,f=function(a,d,c){return Math.min(Math.max(d,a),c)};this.generatePoints();C(this.points,function(g){var k=(a.colsize||1)/2,c=(a.rowsize||1)/2,b=f(Math.round(e.len-e.translate(g.x-k,0,1,0,1)),-e.len,2*e.len),k=f(Math.round(e.len-e.translate(g.x+
k,0,1,0,1)),-e.len,2*e.len),h=f(Math.round(d.translate(g.y-c,0,1,0,1)),-d.len,2*d.len),c=f(Math.round(d.translate(g.y+c,0,1,0,1)),-d.len,2*d.len);g.plotX=g.clientX=(b+k)/2;g.plotY=(h+c)/2;g.shapeType="rect";g.shapeArgs={x:Math.min(b,k),y:Math.min(h,c),width:Math.abs(k-b),height:Math.abs(c-h)}});this.translateColors()},drawPoints:function(){r.column.prototype.drawPoints.call(this);C(this.points,function(a){a.graphic.css(this.colorAttribs(a))},this)},animate:x,getBox:x,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,
alignDataLabel:r.column.prototype.alignDataLabel,getExtremes:function(){f.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;f.prototype.getExtremes.call(this)}}),w)})(I);(function(a){function w(a,e){var d,f,g,k=!1,c=a.x,b=a.y;a=0;for(d=e.length-1;a<e.length;d=a++)f=e[a][1]>b,g=e[d][1]>b,f!==g&&c<(e[d][0]-e[a][0])*(b-e[a][1])/(e[d][1]-e[a][1])+e[a][0]&&(k=!k);return k}var C=a.Chart,y=a.each,x=a.extend,g=a.format,f=a.merge,k=a.win,r=a.wrap;C.prototype.transformFromLatLon=
function(f,e){if(void 0===k.proj4)return a.error(21),{x:0,y:null};f=k.proj4(e.crs,[f.lon,f.lat]);var d=e.cosAngle||e.rotation&&Math.cos(e.rotation),g=e.sinAngle||e.rotation&&Math.sin(e.rotation);f=e.rotation?[f[0]*d+f[1]*g,-f[0]*g+f[1]*d]:f;return{x:((f[0]-(e.xoffset||0))*(e.scale||1)+(e.xpan||0))*(e.jsonres||1)+(e.jsonmarginX||0),y:(((e.yoffset||0)-f[1])*(e.scale||1)+(e.ypan||0))*(e.jsonres||1)-(e.jsonmarginY||0)}};C.prototype.transformToLatLon=function(f,e){if(void 0===k.proj4)a.error(21);else{f=
{x:((f.x-(e.jsonmarginX||0))/(e.jsonres||1)-(e.xpan||0))/(e.scale||1)+(e.xoffset||0),y:((-f.y-(e.jsonmarginY||0))/(e.jsonres||1)+(e.ypan||0))/(e.scale||1)+(e.yoffset||0)};var d=e.cosAngle||e.rotation&&Math.cos(e.rotation),g=e.sinAngle||e.rotation&&Math.sin(e.rotation);e=k.proj4(e.crs,"WGS84",e.rotation?{x:f.x*d+f.y*-g,y:f.x*g+f.y*d}:f);return{lat:e.y,lon:e.x}}};C.prototype.fromPointToLatLon=function(f){var e=this.mapTransforms,d;if(e){for(d in e)if(e.hasOwnProperty(d)&&e[d].hitZone&&w({x:f.x,y:-f.y},
e[d].hitZone.coordinates[0]))return this.transformToLatLon(f,e[d]);return this.transformToLatLon(f,e["default"])}a.error(22)};C.prototype.fromLatLonToPoint=function(f){var e=this.mapTransforms,d,g;if(!e)return a.error(22),{x:0,y:null};for(d in e)if(e.hasOwnProperty(d)&&e[d].hitZone&&(g=this.transformFromLatLon(f,e[d]),w({x:g.x,y:-g.y},e[d].hitZone.coordinates[0])))return g;return this.transformFromLatLon(f,e["default"])};a.geojson=function(a,e,d){var f=[],k=[],m=function(a){var b,c=a.length;k.push("M");
for(b=0;b<c;b++)1===b&&k.push("L"),k.push(a[b][0],-a[b][1])};e=e||"map";y(a.features,function(a){var b=a.geometry,c=b.type,b=b.coordinates;a=a.properties;var d;k=[];"map"===e||"mapbubble"===e?("Polygon"===c?(y(b,m),k.push("Z")):"MultiPolygon"===c&&(y(b,function(a){y(a,m)}),k.push("Z")),k.length&&(d={path:k})):"mapline"===e?("LineString"===c?m(b):"MultiLineString"===c&&y(b,m),k.length&&(d={path:k})):"mappoint"===e&&"Point"===c&&(d={x:b[0],y:-b[1]});d&&f.push(x(d,{name:a.name||a.NAME,properties:a}))});
d&&a.copyrightShort&&(d.chart.mapCredits=g(d.chart.options.credits.mapText,{geojson:a}),d.chart.mapCreditsFull=g(d.chart.options.credits.mapTextFull,{geojson:a}));return f};r(C.prototype,"addCredits",function(a,e){e=f(!0,this.options.credits,e);this.mapCredits&&(e.href=null);a.call(this,e);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})})(I);(function(a){function w(a,e,f,g,c,b,h,k){return["M",a+c,e,"L",a+f-b,e,"C",a+f-b/2,e,a+f,e+b/2,a+f,e+b,"L",a+f,e+g-h,"C",a+
f,e+g-h/2,a+f-h/2,e+g,a+f-h,e+g,"L",a+k,e+g,"C",a+k/2,e+g,a,e+g-k/2,a,e+g-k,"L",a,e+c,"C",a,e+c/2,a+c/2,e,a+c,e,"Z"]}var C=a.Chart,y=a.defaultOptions,x=a.each,g=a.extend,f=a.merge,k=a.pick,r=a.Renderer,m=a.SVGRenderer,e=a.VMLRenderer;g(y.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});y.mapNavigation={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},
text:"-",y:28}},mouseWheelSensitivity:1.1};a.splitPath=function(a){var d;a=a.replace(/([A-Za-z])/g," $1 ");a=a.replace(/^\s*/,"").replace(/\s*$/,"");a=a.split(/[ ,]+/);for(d=0;d<a.length;d++)/[a-zA-Z]/.test(a[d])||(a[d]=parseFloat(a[d]));return a};a.maps={};m.prototype.symbols.topbutton=function(a,e,f,g,c){return w(a-1,e-1,f,g,c.r,c.r,0,0)};m.prototype.symbols.bottombutton=function(a,e,f,g,c){return w(a-1,e-1,f,g,0,0,c.r,c.r)};r===e&&x(["topbutton","bottombutton"],function(a){e.prototype.symbols[a]=
m.prototype.symbols[a]});a.Map=a.mapChart=function(d,e,g){var m="string"===typeof d||d.nodeName,c=arguments[m?1:0],b={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},h,l=a.getOptions().credits;h=c.series;c.series=null;c=f({chart:{panning:"xy",type:"map"},credits:{mapText:k(l.mapText,' \u00a9 \x3ca href\x3d"{geojson.copyrightUrl}"\x3e{geojson.copyrightShort}\x3c/a\x3e'),mapTextFull:k(l.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:b,yAxis:f(b,{reversed:!0})},
c,{chart:{inverted:!1,alignTicks:!1}});c.series=h;return m?new C(d,c,g):new C(c,e)}})(I);return I});
