/*
 Highcharts JS v6.1.4 (2018-09-25)

 (c) 2009-2016 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(T,K){"object"===typeof module&&module.exports?module.exports=T.document?K(T):K:"function"===typeof define&&define.amd?define(function(){return K(T)}):T.Highcharts=K(T)})("undefined"!==typeof window?window:this,function(T){var K=function(){var a="undefined"===typeof T?window:T,A=a.document,C=a.navigator&&a.navigator.userAgent||"",E=A&&A.createElementNS&&!!A.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,m=/(edge|msie|trident)/i.test(C)&&!a.opera,g=-1!==C.indexOf("Firefox"),
d=-1!==C.indexOf("Chrome"),q=g&&4>parseInt(C.split("Firefox/")[1],10);return a.Highcharts?a.Highcharts.error(16,!0):{product:"Highcharts",version:"6.1.4",deg2rad:2*Math.PI/360,doc:A,hasBidiBug:q,hasTouch:A&&void 0!==A.documentElement.ontouchstart,isMS:m,isWebKit:-1!==C.indexOf("AppleWebKit"),isFirefox:g,isChrome:d,isSafari:!d&&-1!==C.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:["plotTop",
"marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}();(function(a){a.timers=[];var A=a.charts,C=a.doc,E=a.win;a.error=function(m,g){m=a.isNumber(m)?"Highcharts error #"+m+": www.highcharts.com/errors/"+m:m;if(g)throw Error(m);E.console&&console.log(m)};a.Fx=function(a,g,d){this.options=g;this.elem=a;this.prop=d};a.Fx.prototype={dSetter:function(){var a=this.paths[0],g=this.paths[1],d=[],q=this.now,v=a.length,u;if(1===q)d=this.toD;else if(v===g.length&&1>q)for(;v--;)u=parseFloat(a[v]),
d[v]=isNaN(u)?g[v]:q*parseFloat(g[v]-u)+u;else d=g;this.elem.attr("d",d,null,!0)},update:function(){var a=this.elem,g=this.prop,d=this.now,q=this.options.step;if(this[g+"Setter"])this[g+"Setter"]();else a.attr?a.element&&a.attr(g,d,null,!0):a.style[g]=d+this.unit;q&&q.call(a,d,this)},run:function(m,g,d){var q=this,v=q.options,u=function(a){return u.stopped?!1:q.step(a)},l=E.requestAnimationFrame||function(a){setTimeout(a,13)},e=function(){for(var c=0;c<a.timers.length;c++)a.timers[c]()||a.timers.splice(c--,
1);a.timers.length&&l(e)};m!==g||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=m,this.end=g,this.unit=d,this.now=this.start,this.pos=0,u.elem=this.elem,u.prop=this.prop,u()&&1===a.timers.push(u)&&l(e)):(delete v.curAnim[this.prop],v.complete&&0===a.keys(v.curAnim).length&&v.complete.call(this.elem))},step:function(m){var g=+new Date,d,q=this.options,v=this.elem,u=q.complete,l=q.duration,e=q.curAnim;v.attr&&!v.element?m=!1:m||g>=l+this.startTime?(this.now=this.end,this.pos=
1,this.update(),d=e[this.prop]=!0,a.objectEach(e,function(a){!0!==a&&(d=!1)}),d&&u&&u.call(v),m=!1):(this.pos=q.easing((g-this.startTime)/l),this.now=this.start+(this.end-this.start)*this.pos,this.update(),m=!0);return m},initPath:function(m,g,d){function q(a){var b,c;for(f=a.length;f--;)b="M"===a[f]||"L"===a[f],c=/[a-zA-Z]/.test(a[f+3]),b&&c&&a.splice(f+1,0,a[f+1],a[f+2],a[f+1],a[f+2])}function v(a,b){for(;a.length<n;){a[0]=b[n-a.length];var c=a.slice(0,p);[].splice.apply(a,[0,0].concat(c));t&&(c=
a.slice(a.length-p),[].splice.apply(a,[a.length,0].concat(c)),f--)}a[0]="M"}function u(a,c){for(var f=(n-a.length)/p;0<f&&f--;)b=a.slice().splice(a.length/G-p,p*G),b[0]=c[n-p-f*p],w&&(b[p-6]=b[p-2],b[p-5]=b[p-1]),[].splice.apply(a,[a.length/G,0].concat(b)),t&&f--}g=g||"";var l,e=m.startX,c=m.endX,w=-1<g.indexOf("C"),p=w?7:3,n,b,f;g=g.split(" ");d=d.slice();var t=m.isArea,G=t?2:1,z;w&&(q(g),q(d));if(e&&c){for(f=0;f<e.length;f++)if(e[f]===c[0]){l=f;break}else if(e[0]===c[c.length-e.length+f]){l=f;z=
!0;break}void 0===l&&(g=[])}g.length&&a.isNumber(l)&&(n=d.length+l*G*p,z?(v(g,d),u(d,g)):(v(d,g),u(g,d)));return[g,d]},fillSetter:function(){a.Fx.prototype.strokeSetter.apply(this,arguments)},strokeSetter:function(){this.elem.attr(this.prop,a.color(this.start).tweenTo(a.color(this.end),this.pos),null,!0)}};a.merge=function(){var m,g=arguments,d,q={},v=function(d,l){"object"!==typeof d&&(d={});a.objectEach(l,function(e,c){!a.isObject(e,!0)||a.isClass(e)||a.isDOMElement(e)?d[c]=l[c]:d[c]=v(d[c]||{},
e)});return d};!0===g[0]&&(q=g[1],g=Array.prototype.slice.call(g,2));d=g.length;for(m=0;m<d;m++)q=v(q,g[m]);return q};a.pInt=function(a,g){return parseInt(a,g||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(m,g){return!!m&&"object"===typeof m&&(!g||!a.isArray(m))};a.isDOMElement=function(m){return a.isObject(m)&&"number"===typeof m.nodeType};a.isClass=function(m){var g=
m&&m.constructor;return!(!a.isObject(m,!0)||a.isDOMElement(m)||!g||!g.name||"Object"===g.name)};a.isNumber=function(a){return"number"===typeof a&&!isNaN(a)&&Infinity>a&&-Infinity<a};a.erase=function(a,g){for(var d=a.length;d--;)if(a[d]===g){a.splice(d,1);break}};a.defined=function(a){return void 0!==a&&null!==a};a.attr=function(m,g,d){var q;a.isString(g)?a.defined(d)?m.setAttribute(g,d):m&&m.getAttribute&&((q=m.getAttribute(g))||"class"!==g||(q=m.getAttribute(g+"Name"))):a.defined(g)&&a.isObject(g)&&
a.objectEach(g,function(a,d){m.setAttribute(d,a)});return q};a.splat=function(m){return a.isArray(m)?m:[m]};a.syncTimeout=function(a,g,d){if(g)return setTimeout(a,g,d);a.call(0,d)};a.clearTimeout=function(m){a.defined(m)&&clearTimeout(m)};a.extend=function(a,g){var d;a||(a={});for(d in g)a[d]=g[d];return a};a.pick=function(){var a=arguments,g,d,q=a.length;for(g=0;g<q;g++)if(d=a[g],void 0!==d&&null!==d)return d};a.css=function(m,g){a.isMS&&!a.svg&&g&&void 0!==g.opacity&&(g.filter="alpha(opacity\x3d"+
100*g.opacity+")");a.extend(m.style,g)};a.createElement=function(m,g,d,q,v){m=C.createElement(m);var u=a.css;g&&a.extend(m,g);v&&u(m,{padding:0,border:"none",margin:0});d&&u(m,d);q&&q.appendChild(m);return m};a.extendClass=function(m,g){var d=function(){};d.prototype=new m;a.extend(d.prototype,g);return d};a.pad=function(a,g,d){return Array((g||2)+1-String(a).replace("-","").length).join(d||0)+a};a.relativeLength=function(a,g,d){return/%$/.test(a)?g*parseFloat(a)/100+(d||0):parseFloat(a)};a.wrap=
function(a,g,d){var m=a[g];a[g]=function(){var a=Array.prototype.slice.call(arguments),g=arguments,l=this;l.proceed=function(){m.apply(l,arguments.length?arguments:g)};a.unshift(m);a=d.apply(this,a);l.proceed=null;return a}};a.formatSingle=function(m,g,d){var q=/\.([0-9])/,v=a.defaultOptions.lang;/f$/.test(m)?(d=(d=m.match(q))?d[1]:-1,null!==g&&(g=a.numberFormat(g,d,v.decimalPoint,-1<m.indexOf(",")?v.thousandsSep:""))):g=(d||a.time).dateFormat(m,g);return g};a.format=function(m,g,d){for(var q="{",
v=!1,u,l,e,c,w=[],p;m;){q=m.indexOf(q);if(-1===q)break;u=m.slice(0,q);if(v){u=u.split(":");l=u.shift().split(".");c=l.length;p=g;for(e=0;e<c;e++)p&&(p=p[l[e]]);u.length&&(p=a.formatSingle(u.join(":"),p,d));w.push(p)}else w.push(u);m=m.slice(q+1);q=(v=!v)?"}":"{"}w.push(m);return w.join("")};a.getMagnitude=function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))};a.normalizeTickInterval=function(m,g,d,q,v){var u,l=m;d=a.pick(d,1);u=m/d;g||(g=v?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],
!1===q&&(1===d?g=a.grep(g,function(a){return 0===a%1}):.1>=d&&(g=[1/d])));for(q=0;q<g.length&&!(l=g[q],v&&l*d>=m||!v&&u<=(g[q]+(g[q+1]||g[q]))/2);q++);return l=a.correctFloat(l*d,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,g){var d=a.length,m,v;for(v=0;v<d;v++)a[v].safeI=v;a.sort(function(a,d){m=g(a,d);return 0===m?a.safeI-d.safeI:m});for(v=0;v<d;v++)delete a[v].safeI};a.arrayMin=function(a){for(var g=a.length,d=a[0];g--;)a[g]<d&&(d=a[g]);return d};a.arrayMax=function(a){for(var g=
a.length,d=a[0];g--;)a[g]>d&&(d=a[g]);return d};a.destroyObjectProperties=function(m,g){a.objectEach(m,function(a,q){a&&a!==g&&a.destroy&&a.destroy();delete m[q]})};a.discardElement=function(m){var g=a.garbageBin;g||(g=a.createElement("div"));m&&g.appendChild(m);g.innerHTML=""};a.correctFloat=function(a,g){return parseFloat(a.toPrecision(g||14))};a.setAnimation=function(m,g){g.renderer.globalAnimation=a.pick(m,g.options.chart.animation,!0)};a.animObject=function(m){return a.isObject(m)?a.merge(m):
{duration:m?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5};a.numberFormat=function(m,g,d,q){m=+m||0;g=+g;var v=a.defaultOptions.lang,u=(m.toString().split(".")[1]||"").split("e")[0].length,l,e,c=m.toString().split("e");-1===g?g=Math.min(u,20):a.isNumber(g)?g&&c[1]&&0>c[1]&&(l=g+ +c[1],0<=l?(c[0]=(+c[0]).toExponential(l).split("e")[0],g=l):(c[0]=c[0].split(".")[0]||0,m=20>g?(c[0]*Math.pow(10,c[1])).toFixed(g):0,c[1]=0)):g=2;e=(Math.abs(c[1]?
c[0]:m)+Math.pow(10,-Math.max(g,u)-1)).toFixed(g);u=String(a.pInt(e));l=3<u.length?u.length%3:0;d=a.pick(d,v.decimalPoint);q=a.pick(q,v.thousandsSep);m=(0>m?"-":"")+(l?u.substr(0,l)+q:"");m+=u.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+q);g&&(m+=d+e.slice(-g));c[1]&&0!==+m&&(m+="e"+c[1]);return m};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(m,g,d){if("width"===g)return Math.max(0,Math.min(m.offsetWidth,m.scrollWidth)-a.getStyle(m,"padding-left")-a.getStyle(m,
"padding-right"));if("height"===g)return Math.max(0,Math.min(m.offsetHeight,m.scrollHeight)-a.getStyle(m,"padding-top")-a.getStyle(m,"padding-bottom"));E.getComputedStyle||a.error(27,!0);if(m=E.getComputedStyle(m,void 0))m=m.getPropertyValue(g),a.pick(d,"opacity"!==g)&&(m=a.pInt(m));return m};a.inArray=function(m,g,d){return(a.indexOfPolyfill||Array.prototype.indexOf).call(g,m,d)};a.grep=function(m,g){return(a.filterPolyfill||Array.prototype.filter).call(m,g)};a.find=Array.prototype.find?function(a,
g){return a.find(g)}:function(a,g){var d,q=a.length;for(d=0;d<q;d++)if(g(a[d],d))return a[d]};a.some=function(m,g,d){return(a.somePolyfill||Array.prototype.some).call(m,g,d)};a.map=function(a,g){for(var d=[],q=0,v=a.length;q<v;q++)d[q]=g.call(a[q],a[q],q,a);return d};a.keys=function(m){return(a.keysPolyfill||Object.keys).call(void 0,m)};a.reduce=function(m,g,d){return(a.reducePolyfill||Array.prototype.reduce).apply(m,2<arguments.length?[g,d]:[g])};a.offset=function(a){var g=C.documentElement;a=a.parentElement||
a.parentNode?a.getBoundingClientRect():{top:0,left:0};return{top:a.top+(E.pageYOffset||g.scrollTop)-(g.clientTop||0),left:a.left+(E.pageXOffset||g.scrollLeft)-(g.clientLeft||0)}};a.stop=function(m,g){for(var d=a.timers.length;d--;)a.timers[d].elem!==m||g&&g!==a.timers[d].prop||(a.timers[d].stopped=!0)};a.each=function(m,g,d){return(a.forEachPolyfill||Array.prototype.forEach).call(m,g,d)};a.objectEach=function(a,g,d){for(var q in a)a.hasOwnProperty(q)&&g.call(d||a[q],a[q],q,a)};a.addEvent=function(m,
g,d,q){var v,u=m.addEventListener||a.addEventListenerPolyfill;v="function"===typeof m&&m.prototype?m.prototype.protoEvents=m.prototype.protoEvents||{}:m.hcEvents=m.hcEvents||{};a.Point&&m instanceof a.Point&&m.series&&m.series.chart&&(m.series.chart.runTrackerClick=!0);u&&u.call(m,g,d,!1);v[g]||(v[g]=[]);v[g].push(d);q&&a.isNumber(q.order)&&(d.order=q.order,v[g].sort(function(a,e){return a.order-e.order}));return function(){a.removeEvent(m,g,d)}};a.removeEvent=function(m,g,d){function q(e,c){var d=
m.removeEventListener||a.removeEventListenerPolyfill;d&&d.call(m,e,c,!1)}function v(e){var c,d;m.nodeName&&(g?(c={},c[g]=!0):c=e,a.objectEach(c,function(a,c){if(e[c])for(d=e[c].length;d--;)q(c,e[c][d])}))}var u,l;a.each(["protoEvents","hcEvents"],function(e){var c=m[e];c&&(g?(u=c[g]||[],d?(l=a.inArray(d,u),-1<l&&(u.splice(l,1),c[g]=u),q(g,d)):(v(c),c[g]=[])):(v(c),m[e]={}))})};a.fireEvent=function(m,g,d,q){var v,u,l,e,c;d=d||{};C.createEvent&&(m.dispatchEvent||m.fireEvent)?(v=C.createEvent("Events"),
v.initEvent(g,!0,!0),a.extend(v,d),m.dispatchEvent?m.dispatchEvent(v):m.fireEvent(g,v)):a.each(["protoEvents","hcEvents"],function(w){if(m[w])for(u=m[w][g]||[],l=u.length,d.target||a.extend(d,{preventDefault:function(){d.defaultPrevented=!0},target:m,type:g}),e=0;e<l;e++)(c=u[e])&&!1===c.call(m,d)&&d.preventDefault()});q&&!d.defaultPrevented&&q.call(m,d)};a.animate=function(m,g,d){var q,v="",u,l,e;a.isObject(d)||(e=arguments,d={duration:e[2],easing:e[3],complete:e[4]});a.isNumber(d.duration)||(d.duration=
400);d.easing="function"===typeof d.easing?d.easing:Math[d.easing]||Math.easeInOutSine;d.curAnim=a.merge(g);a.objectEach(g,function(c,e){a.stop(m,e);l=new a.Fx(m,d,e);u=null;"d"===e?(l.paths=l.initPath(m,m.d,g.d),l.toD=g.d,q=0,u=1):m.attr?q=m.attr(e):(q=parseFloat(a.getStyle(m,e))||0,"opacity"!==e&&(v="px"));u||(u=c);u&&u.match&&u.match("px")&&(u=u.replace(/px/g,""));l.run(q,u,v)})};a.seriesType=function(m,g,d,q,v){var u=a.getOptions(),l=a.seriesTypes;u.plotOptions[m]=a.merge(u.plotOptions[g],d);
l[m]=a.extendClass(l[g]||function(){},q);l[m].prototype.type=m;v&&(l[m].prototype.pointClass=a.extendClass(a.Point,v));return l[m]};a.uniqueKey=function(){var a=Math.random().toString(36).substring(2,9),g=0;return function(){return"highcharts-"+a+"-"+g++}}();E.jQuery&&(E.jQuery.fn.highcharts=function(){var m=[].slice.call(arguments);if(this[0])return m[0]?(new (a[a.isString(m[0])?m.shift():"Chart"])(this[0],m[0],m[1]),this):A[a.attr(this[0],"data-highcharts-chart")]})})(K);(function(a){var A=a.each,
C=a.isNumber,E=a.map,m=a.merge,g=a.pInt;a.Color=function(d){if(!(this instanceof a.Color))return new a.Color(d);this.init(d)};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(d){var g,
v,u,l;if((this.input=d=this.names[d&&d.toLowerCase?d.toLowerCase():""]||d)&&d.stops)this.stops=E(d.stops,function(e){return new a.Color(e[1])});else if(d&&d.charAt&&"#"===d.charAt()&&(g=d.length,d=parseInt(d.substr(1),16),7===g?v=[(d&16711680)>>16,(d&65280)>>8,d&255,1]:4===g&&(v=[(d&3840)>>4|(d&3840)>>8,(d&240)>>4|d&240,(d&15)<<4|d&15,1])),!v)for(u=this.parsers.length;u--&&!v;)l=this.parsers[u],(g=l.regex.exec(d))&&(v=l.parse(g));this.rgba=v||[]},get:function(a){var d=this.input,g=this.rgba,u;this.stops?
(u=m(d),u.stops=[].concat(u.stops),A(this.stops,function(d,e){u.stops[e]=[u.stops[e][0],d.get(a)]})):u=g&&C(g[0])?"rgb"===a||!a&&1===g[3]?"rgb("+g[0]+","+g[1]+","+g[2]+")":"a"===a?g[3]:"rgba("+g.join(",")+")":d;return u},brighten:function(a){var d,v=this.rgba;if(this.stops)A(this.stops,function(d){d.brighten(a)});else if(C(a)&&0!==a)for(d=0;3>d;d++)v[d]+=g(255*a),0>v[d]&&(v[d]=0),255<v[d]&&(v[d]=255);return this},setOpacity:function(a){this.rgba[3]=a;return this},tweenTo:function(a,g){var d=this.rgba,
u=a.rgba;u.length&&d&&d.length?(a=1!==u[3]||1!==d[3],g=(a?"rgba(":"rgb(")+Math.round(u[0]+(d[0]-u[0])*(1-g))+","+Math.round(u[1]+(d[1]-u[1])*(1-g))+","+Math.round(u[2]+(d[2]-u[2])*(1-g))+(a?","+(u[3]+(d[3]-u[3])*(1-g)):"")+")"):g=a.input||"none";return g}};a.color=function(d){return new a.Color(d)}})(K);(function(a){var A,C,E=a.addEvent,m=a.animate,g=a.attr,d=a.charts,q=a.color,v=a.css,u=a.createElement,l=a.defined,e=a.deg2rad,c=a.destroyObjectProperties,w=a.doc,p=a.each,n=a.extend,b=a.erase,f=a.grep,
t=a.hasTouch,G=a.inArray,z=a.isArray,J=a.isFirefox,D=a.isMS,B=a.isObject,r=a.isString,y=a.isWebKit,F=a.merge,I=a.noop,M=a.objectEach,h=a.pick,x=a.pInt,O=a.removeEvent,k=a.splat,H=a.stop,S=a.svg,R=a.SVG_NS,N=a.symbolSizes,Q=a.win;A=a.SVGElement=function(){return this};n(A.prototype,{opacity:1,SVG_NS:R,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline cursor".split(" "),init:function(a,b){this.element="span"===b?u(b):
w.createElementNS(this.SVG_NS,b);this.renderer=a},animate:function(b,k,x){k=a.animObject(h(k,this.renderer.globalAnimation,!0));0!==k.duration?(x&&(k.complete=x),m(this,b,k)):(this.attr(b,null,x),k.step&&k.step.call(this));return this},complexColor:function(b,h,k){var L=this.renderer,x,c,f,e,n,r,t,d,H,y,O,P=[],g;a.fireEvent(this.renderer,"complexColor",{args:arguments},function(){b.radialGradient?c="radialGradient":b.linearGradient&&(c="linearGradient");c&&(f=b[c],n=L.gradients,t=b.stops,y=k.radialReference,
z(f)&&(b[c]=f={x1:f[0],y1:f[1],x2:f[2],y2:f[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===c&&y&&!l(f.gradientUnits)&&(e=f,f=F(f,L.getRadialAttr(y,e),{gradientUnits:"userSpaceOnUse"})),M(f,function(a,b){"id"!==b&&P.push(b,a)}),M(t,function(a){P.push(a)}),P=P.join(","),n[P]?O=n[P].attr("id"):(f.id=O=a.uniqueKey(),n[P]=r=L.createElement(c).attr(f).add(L.defs),r.radAttr=e,r.stops=[],p(t,function(b){0===b[1].indexOf("rgba")?(x=a.color(b[1]),d=x.get("rgb"),H=x.get("a")):(d=b[1],H=1);b=L.createElement("stop").attr({offset:b[0],
"stop-color":d,"stop-opacity":H}).add(r);r.stops.push(b)})),g="url("+L.url+"#"+O+")",k.setAttribute(h,g),k.gradient=P,b.toString=function(){return g})})},applyTextOutline:function(h){var k=this.element,x,L,c,f,e;-1!==h.indexOf("contrast")&&(h=h.replace(/contrast/g,this.renderer.getContrast(k.style.fill)));h=h.split(" ");L=h[h.length-1];if((c=h[0])&&"none"!==c&&a.svg){this.fakeTS=!0;h=[].slice.call(k.getElementsByTagName("tspan"));this.ySetter=this.xSetter;c=c.replace(/(^[\d\.]+)(.*?)$/g,function(a,
b,h){return 2*b+h});for(e=h.length;e--;)x=h[e],"highcharts-text-outline"===x.getAttribute("class")&&b(h,k.removeChild(x));f=k.firstChild;p(h,function(a,b){0===b&&(a.setAttribute("x",k.getAttribute("x")),b=k.getAttribute("y"),a.setAttribute("y",b||0),null===b&&k.setAttribute("y",0));a=a.cloneNode(1);g(a,{"class":"highcharts-text-outline",fill:L,stroke:L,"stroke-width":c,"stroke-linejoin":"round"});k.insertBefore(a,f)})}},attr:function(a,b,h,k){var x,L=this.element,c,f=this,e,n;"string"===typeof a&&
void 0!==b&&(x=a,a={},a[x]=b);"string"===typeof a?f=(this[a+"Getter"]||this._defaultGetter).call(this,a,L):(M(a,function(b,h){e=!1;k||H(this,h);this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(h)&&(c||(this.symbolAttr(a),c=!0),e=!0);!this.rotation||"x"!==h&&"y"!==h||(this.doTransform=!0);e||(n=this[h+"Setter"]||this._defaultSetter,n.call(this,b,h,L))},this),this.afterSetters());h&&h.call(this);return f},afterSetters:function(){this.doTransform&&(this.updateTransform(),
this.doTransform=!1)},addClass:function(a,b){var h=this.attr("class")||"";-1===h.indexOf(a)&&(b||(a=(h+(h?" ":"")+a).replace("  "," ")),this.attr("class",a));return this},hasClass:function(a){return-1!==G(a,(this.attr("class")||"").split(" "))},removeClass:function(a){return this.attr("class",(this.attr("class")||"").replace(a,""))},symbolAttr:function(a){var b=this;p("x y r start end width height innerR anchorX anchorY".split(" "),function(k){b[k]=h(a[k],b[k])});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 h;b=b||a.strokeWidth||0;h=Math.round(b)%2/2;a.x=Math.floor(a.x||this.x||0)+h;a.y=Math.floor(a.y||this.y||0)+h;a.width=Math.floor((a.width||this.width||0)-2*h);a.height=Math.floor((a.height||this.height||0)-2*h);l(a.strokeWidth)&&(a.strokeWidth=b);return a},css:function(a){var b=this.styles,h={},k=this.element,c,f="",e,L=!b,r=["textOutline","textOverflow",
"width"];a&&a.color&&(a.fill=a.color);b&&M(a,function(a,k){a!==b[k]&&(h[k]=a,L=!0)});L&&(b&&(a=n(b,h)),a&&(null===a.width||"auto"===a.width?delete this.textWidth:"text"===k.nodeName.toLowerCase()&&a.width&&(c=this.textWidth=x(a.width))),this.styles=a,c&&!S&&this.renderer.forExport&&delete a.width,k.namespaceURI===this.SVG_NS?(e=function(a,b){return"-"+b.toLowerCase()},M(a,function(a,b){-1===G(b,r)&&(f+=b.replace(/([A-Z])/g,e)+":"+a+";")}),f&&g(k,"style",f)):v(k,a),this.added&&("text"===this.element.nodeName&&
this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline)));return this},getStyle:function(a){return Q.getComputedStyle(this.element||this,"").getPropertyValue(a)},strokeWidth:function(){var a=this.getStyle("stroke-width"),b;a.indexOf("px")===a.length-2?a=x(a):(b=w.createElementNS(R,"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 h=this,k=h.element;t&&"click"===
a?(k.ontouchstart=function(a){h.touchEventFired=Date.now();a.preventDefault();b.call(k,a)},k.onclick=function(a){(-1===Q.navigator.userAgent.indexOf("Android")||1100<Date.now()-(h.touchEventFired||0))&&b.call(k,a)}):k["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,k=this.scaleX,x=this.scaleY,c=this.inverted,f=this.rotation,e=this.matrix,n=this.element;c&&(a+=this.width,b+=this.height);a=["translate("+a+","+b+")"];l(e)&&a.push("matrix("+e.join(",")+")");c?a.push("rotate(90) scale(-1,1)"):f&&a.push("rotate("+f+" "+h(this.rotationOriginX,n.getAttribute("x"),0)+" "+h(this.rotationOriginY,n.getAttribute("y")||0)+")");(l(k)||
l(x))&&a.push("scale("+h(k,1)+" "+h(x,1)+")");a.length&&n.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,k,x){var c,f,e,n,t={};f=this.renderer;e=f.alignedObjects;var L,d;if(a){if(this.alignOptions=a,this.alignByTranslate=k,!x||r(x))this.alignTo=c=x||"renderer",b(e,this),e.push(this),x=null}else a=this.alignOptions,k=this.alignByTranslate,c=this.alignTo;x=h(x,f[c],f);c=a.align;f=a.verticalAlign;e=(x.x||0)+(a.x||
0);n=(x.y||0)+(a.y||0);"right"===c?L=1:"center"===c&&(L=2);L&&(e+=(x.width-(a.width||0))/L);t[k?"translateX":"x"]=Math.round(e);"bottom"===f?d=1:"middle"===f&&(d=2);d&&(n+=(x.height-(a.height||0))/d);t[k?"translateY":"y"]=Math.round(n);this[this.placed?"animate":"attr"](t);this.placed=!0;this.alignAttr=t;return this},getBBox:function(a,b){var k,x=this.renderer,c,f=this.element,r=this.styles,t,L=this.textStr,d,H=x.cache,F=x.cacheKeys,y;b=h(b,this.rotation);c=b*e;t=f&&A.prototype.getStyle.call(f,"font-size");
l(L)&&(y=L.toString(),-1===y.indexOf("\x3c")&&(y=y.replace(/[0-9]/g,"0")),y+=["",b||0,t,this.textWidth,r&&r.textOverflow].join());y&&!a&&(k=H[y]);if(!k){if(f.namespaceURI===this.SVG_NS||x.forExport){try{(d=this.fakeTS&&function(a){p(f.querySelectorAll(".highcharts-text-outline"),function(b){b.style.display=a})})&&d("none"),k=f.getBBox?n({},f.getBBox()):{width:f.offsetWidth,height:f.offsetHeight},d&&d("")}catch(V){}if(!k||0>k.width)k={width:0,height:0}}else k=this.htmlGetBBox();x.isSVG&&(a=k.width,
x=k.height,r&&"11px"===r.fontSize&&17===Math.round(x)&&(k.height=x=14),b&&(k.width=Math.abs(x*Math.sin(c))+Math.abs(a*Math.cos(c)),k.height=Math.abs(x*Math.cos(c))+Math.abs(a*Math.sin(c))));if(y&&0<k.height){for(;250<F.length;)delete H[F.shift()];H[y]||F.push(y);H[y]=k}}return k},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,h=this.element,k;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)k=this.zIndexSetter();k||(a?a.element:b.box).appendChild(h);if(this.onAdd)this.onAdd();return this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a=this,h=a.element||{},k=a.renderer.isSVG&&"SPAN"===h.nodeName&&a.parentGroup,x=h.ownerSVGElement,c=a.clipPath;h.onclick=
h.onmouseout=h.onmouseover=h.onmousemove=h.point=null;H(a);c&&x&&(p(x.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){var b=a.getAttribute("clip-path"),h=c.element.id;(-1<b.indexOf("(#"+h+")")||-1<b.indexOf('("#'+h+'")'))&&a.removeAttribute("clip-path")}),a.clipPath=c.destroy());if(a.stops){for(x=0;x<a.stops.length;x++)a.stops[x]=a.stops[x].destroy();a.stops=null}for(a.safeRemoveChild(h);k&&k.div&&0===k.div.childNodes.length;)h=k.parentGroup,a.safeRemoveChild(k.div),delete k.div,k=h;a.alignTo&&
b(a.renderer.alignedObjects,a);M(a,function(b,h){delete a[h]});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=h(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a},dSetter:function(a,b,h){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[b]!==a&&(h.setAttribute(b,a),this[b]=a)},alignSetter:function(a){this.alignValue=
a;this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[a])},opacitySetter:function(a,b,h){this[b]=a;h.setAttribute(b,a)},titleSetter:function(a){var b=this.element.getElementsByTagName("title")[0];b||(b=w.createElementNS(this.SVG_NS,"title"),this.element.appendChild(b));b.firstChild&&b.removeChild(b.firstChild);b.appendChild(w.createTextNode(String(h(a),"").replace(/<[^>]*>/g,"").replace(/&lt;/g,"\x3c").replace(/&gt;/g,"\x3e")))},textSetter:function(a){a!==this.textStr&&
(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,b,h){"string"===typeof a?h.setAttribute(b,a):a&&this.complexColor(a,b,h)},visibilitySetter:function(a,b,h){"inherit"===a?h.removeAttribute(b):this[b]!==a&&h.setAttribute(b,a);this[b]=a},zIndexSetter:function(a,b){var h=this.renderer,k=this.parentGroup,c=(k||h).element||h.box,f,e=this.element,n,r,h=c===h.box;f=this.added;var t;l(a)?(e.setAttribute("data-z-index",a),a=+a,this[b]===a&&(f=!1)):l(this[b])&&
e.removeAttribute("data-z-index");this[b]=a;if(f){(a=this.zIndex)&&k&&(k.handleZ=!0);b=c.childNodes;for(t=b.length-1;0<=t&&!n;t--)if(k=b[t],f=k.getAttribute("data-z-index"),r=!l(f),k!==e)if(0>a&&r&&!h&&!t)c.insertBefore(e,b[t]),n=!0;else if(x(f)<=a||r&&(!l(a)||0<=a))c.insertBefore(e,b[t+1]||null),n=!0;n||(c.insertBefore(e,b[h?3:0]||null),n=!0)}return n},_defaultSetter:function(a,b,h){h.setAttribute(b,a)}});A.prototype.yGetter=A.prototype.xGetter;A.prototype.translateXSetter=A.prototype.translateYSetter=
A.prototype.rotationSetter=A.prototype.verticalAlignSetter=A.prototype.rotationOriginXSetter=A.prototype.rotationOriginYSetter=A.prototype.scaleXSetter=A.prototype.scaleYSetter=A.prototype.matrixSetter=function(a,b){this[b]=a;this.doTransform=!0};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:A,SVG_NS:R,init:function(a,b,h,k,x,c){var f;k=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"});f=k.element;a.appendChild(f);g(a,"dir","ltr");-1===
a.innerHTML.indexOf("xmlns")&&g(f,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=k;this.alignedObjects=[];this.url=(J||y)&&w.getElementsByTagName("base").length?Q.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(w.createTextNode("Created with Highcharts 6.1.4"));this.defs=this.createElement("defs").add();this.allowHTML=c;this.forExport=x;this.gradients={};this.cache={};this.cacheKeys=
[];this.imgCount=0;this.setSize(b,h,!1);var e;J&&a.getBoundingClientRect&&(b=function(){v(a,{left:0,top:0});e=a.getBoundingClientRect();v(a,{left:Math.ceil(e.left)-e.left+"px",top:Math.ceil(e.top)-e.top+"px"})},b(),this.unSubPixelFix=E(Q,"resize",b))},definition:function(a){function b(a,x){var c;p(k(a),function(a){var k=h.createElement(a.tagName),f={};M(a,function(a,b){"tagName"!==b&&"children"!==b&&"textContent"!==b&&(f[b]=a)});k.attr(f);k.add(x||h.defs);a.textContent&&k.element.appendChild(w.createTextNode(a.textContent));
b(a.children||[],k);c=k});return c}var h=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();c(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:I,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]}},truncate:function(a,b,h,k,x,c,f){var e=this,n=a.rotation,r,t=k?1:0,d=(h||k).length,H=d,p=[],y=function(a){b.firstChild&&b.removeChild(b.firstChild);a&&b.appendChild(w.createTextNode(a))},F=function(c,n){n=n||c;if(void 0===p[n])if(b.getSubStringLength)try{p[n]=x+b.getSubStringLength(0,k?n+1:n)}catch(W){}else y(f(h||k,c)),p[n]=x+e.getSpanWidth(a,b);return p[n]},l,z;a.rotation=0;l=F(b.textContent.length);if(z=x+l>c){for(;t<=d;)H=Math.ceil((t+d)/2),k&&(r=f(k,H)),l=F(H,r&&
r.length-1),t===d?t=d+1:l>c?d=H-1:t=H;0===d?y(""):h&&d===h.length-1||y(r||f(h||k,H))}k&&k.splice(0,H);a.actualWidth=l;a.rotation=n;return z},escapes:{"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;","'":"\x26#39;",'"':"\x26quot;"},buildText:function(a){var b=a.element,k=this,c=k.forExport,e=h(a.textStr,"").toString(),n=-1!==e.indexOf("\x3c"),r=b.childNodes,t,d=g(b,"x"),H=a.styles,y=a.textWidth,l=H&&H.lineHeight,F=H&&H.textOutline,z=H&&"ellipsis"===H.textOverflow,O=H&&"nowrap"===H.whiteSpace,B=
H&&H.fontSize,D,I,L=r.length,H=y&&!a.added&&this.box,u=function(a){return l?x(l):k.fontMetrics(void 0,a.getAttribute("style")?a:b).h},J=function(a,b){M(k.escapes,function(h,k){b&&-1!==G(h,b)||(a=a.toString().replace(new RegExp(h,"g"),k))});return a},q=function(a,b){var h;h=a.indexOf("\x3c");a=a.substring(h,a.indexOf("\x3e")-h);h=a.indexOf(b+"\x3d");if(-1!==h&&(h=h+b.length+1,b=a.charAt(h),'"'===b||"'"===b))return a=a.substring(h+1),a.substring(0,a.indexOf(b))};D=[e,z,O,l,F,B,y].join();if(D!==a.textCache){for(a.textCache=
D;L--;)b.removeChild(r[L]);n||F||z||y||-1!==e.indexOf(" ")?(H&&H.appendChild(b),e=n?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=f(e,function(a){return""!==a}),p(e,function(h,x){var f,e=0,n=0;h=h.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||\x3cspan").replace(/<\/span>/g,"\x3c/span\x3e|||");f=h.split("|||");
p(f,function(h){if(""!==h||1===f.length){var r={},H=w.createElementNS(k.SVG_NS,"tspan"),p,F;(p=q(h,"class"))&&g(H,"class",p);if(p=q(h,"style"))p=p.replace(/(;| |^)color([ :])/,"$1fill$2"),g(H,"style",p);(F=q(h,"href"))&&!c&&(g(H,"onclick",'location.href\x3d"'+F+'"'),g(H,"class","highcharts-anchor"));h=J(h.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" ");if(" "!==h){H.appendChild(w.createTextNode(h));e?r.dx=0:x&&null!==d&&(r.x=d);g(H,r);b.appendChild(H);!e&&I&&(!S&&c&&v(H,{display:"block"}),g(H,"dy",u(H)));
if(y){var l=h.replace(/([^\^])-/g,"$1- ").split(" "),r=!O&&(1<f.length||x||1<l.length);F=0;var G=u(H);if(z)t=k.truncate(a,H,h,void 0,0,Math.max(0,y-parseInt(B||12,10)),function(a,b){return a.substring(0,b)+"\u2026"});else if(r)for(;l.length;)l.length&&!O&&0<F&&(H=w.createElementNS(R,"tspan"),g(H,{dy:G,x:d}),p&&g(H,"style",p),H.appendChild(w.createTextNode(l.join(" ").replace(/- /g,"-"))),b.appendChild(H)),k.truncate(a,H,null,l,0===F?n:0,y,function(a,b){return l.slice(0,b).join(" ").replace(/- /g,
"-")}),n=a.actualWidth,F++}e++}}});I=I||b.childNodes.length}),z&&t&&a.attr("title",J(a.textStr,["\x26lt;","\x26gt;"])),H&&H.removeChild(b),F&&a.applyTextOutline&&a.applyTextOutline(F)):b.appendChild(w.createTextNode(J(e)))}},getContrast:function(a){a=q(a).rgba;a[0]*=1;a[1]*=1.2;a[2]*=.5;return 459<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"},button:function(a,b,h,k,x,c,f,e,n){var r=this.label(a,b,h,n,null,null,null,null,"button"),t=0;r.attr(F({padding:8,r:2},x));E(r.element,D?"mouseover":"mouseenter",function(){3!==
t&&r.setState(1)});E(r.element,D?"mouseout":"mouseleave",function(){3!==t&&r.setState(t)});r.setState=function(a){1!==a&&(r.state=t=a);r.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0])};return r.on("click",function(a){3!==t&&k.call(r,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={};z(a)?b.d=a:
B(a)&&n(b,a);return this.createElement("path").attr(b)},circle:function(a,b,h){a=B(a)?a:{x:a,y:b,r:h};b=this.createElement("circle");b.xSetter=b.ySetter=function(a,b,h){h.setAttribute("c"+b,a)};return b.attr(a)},arc:function(a,b,h,k,x,c){B(a)?(k=a,b=k.y,h=k.r,a=k.x):k={innerR:k,start:x,end:c};a=this.symbol("arc",a,b,h,h,k);a.r=h;return a},rect:function(a,b,h,k,x,c){x=B(a)?a.r:x;c=this.createElement("rect");a=B(a)?a:void 0===a?{}:{x:a,y:b,width:Math.max(h,0),height:Math.max(k,0)};x&&(a.r=x);c.rSetter=
function(a,b,h){g(h,{rx:a,ry:a})};return c.attr(a)},setSize:function(a,b,k){var x=this.alignedObjects,c=x.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:h(k,!0)?void 0:0});c--;)x[c].align()},g:function(a){var b=this.createElement("g");return a?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,h,k,x,c){var f={preserveAspectRatio:"none"},e,r=function(a,b){a.setAttributeNS?
a.setAttributeNS("http://www.w3.org/1999/xlink","href",b):a.setAttribute("hc-svg-href",b)},t=function(b){r(e.element,a);c.call(e,b)};1<arguments.length&&n(f,{x:b,y:h,width:k,height:x});e=this.createElement("image").attr(f);c?(r(e.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw\x3d\x3d"),f=new Q.Image,E(f,"load",t),f.src=a,f.complete&&t({})):r(e.element,a);return e},symbol:function(a,b,k,x,c,f){var e=this,r,t=/^url\((.*?)\)$/,H=t.test(a),F=!H&&(this.symbols[a]?a:"circle"),
y=F&&this.symbols[F],z=l(b)&&y&&y.call(this.symbols,Math.round(b),Math.round(k),x,c,f),O,g;y?(r=this.path(z),n(r,{symbolName:F,x:b,y:k,width:x,height:c}),f&&n(r,f)):H&&(O=a.match(t)[1],r=this.image(O),r.imgwidth=h(N[O]&&N[O].width,f&&f.width),r.imgheight=h(N[O]&&N[O].height,f&&f.height),g=function(){r.attr({width:r.width,height:r.height})},p(["width","height"],function(a){r[a+"Setter"]=function(a,b){var h={},k=this["img"+b],x="width"===b?"translateX":"translateY";this[b]=a;l(k)&&(this.element&&this.element.setAttribute(b,
k),this.alignByTranslate||(h[x]=((this[b]||0)-k)/2,this.attr(h)))}}),l(b)&&r.attr({x:b,y:k}),r.isImg=!0,l(r.imgwidth)&&l(r.imgheight)?g():(r.attr({width:0,height:0}),u("img",{onload:function(){var a=d[e.chartIndex];0===this.width&&(v(this,{position:"absolute",top:"-999em"}),w.body.appendChild(this));N[O]={width:this.width,height:this.height};r.imgwidth=this.width;r.imgheight=this.height;r.element&&g();this.parentNode&&this.parentNode.removeChild(this);e.imgCount--;if(!e.imgCount&&a&&a.onload)a.onload()},
src:O}),this.imgCount++));return r},symbols:{circle:function(a,b,h,k){return this.arc(a+h/2,b+k/2,h/2,k/2,{start:0,end:2*Math.PI,open:!1})},square:function(a,b,h,k){return["M",a,b,"L",a+h,b,a+h,b+k,a,b+k,"Z"]},triangle:function(a,b,h,k){return["M",a+h/2,b,"L",a+h,b+k,a,b+k,"Z"]},"triangle-down":function(a,b,h,k){return["M",a,b,"L",a+h,b,a+h/2,b+k,"Z"]},diamond:function(a,b,h,k){return["M",a+h/2,b,"L",a+h,b+k/2,a+h/2,b+k,a,b+k/2,"Z"]},arc:function(a,b,k,x,c){var f=c.start,e=c.r||k,r=c.r||x||k,n=c.end-
.001;k=c.innerR;x=h(c.open,.001>Math.abs(c.end-c.start-2*Math.PI));var t=Math.cos(f),H=Math.sin(f),d=Math.cos(n),n=Math.sin(n);c=.001>c.end-f-Math.PI?0:1;e=["M",a+e*t,b+r*H,"A",e,r,0,c,1,a+e*d,b+r*n];l(k)&&e.push(x?"M":"L",a+k*d,b+k*n,"A",k,k,0,c,0,a+k*t,b+k*H);e.push(x?"":"Z");return e},callout:function(a,b,h,k,x){var c=Math.min(x&&x.r||0,h,k),f=c+6,e=x&&x.anchorX;x=x&&x.anchorY;var r;r=["M",a+c,b,"L",a+h-c,b,"C",a+h,b,a+h,b,a+h,b+c,"L",a+h,b+k-c,"C",a+h,b+k,a+h,b+k,a+h-c,b+k,"L",a+c,b+k,"C",a,b+
k,a,b+k,a,b+k-c,"L",a,b+c,"C",a,b,a,b,a+c,b];e&&e>h?x>b+f&&x<b+k-f?r.splice(13,3,"L",a+h,x-6,a+h+6,x,a+h,x+6,a+h,b+k-c):r.splice(13,3,"L",a+h,k/2,e,x,a+h,k/2,a+h,b+k-c):e&&0>e?x>b+f&&x<b+k-f?r.splice(33,3,"L",a,x+6,a-6,x,a,x-6,a,b+c):r.splice(33,3,"L",a,k/2,e,x,a,k/2,a,b+c):x&&x>k&&e>a+f&&e<a+h-f?r.splice(23,3,"L",e+6,b+k,e,b+k+6,e-6,b+k,a+c,b+k):x&&0>x&&e>a+f&&e<a+h-f&&r.splice(3,3,"L",e-6,b,e,b-6,e+6,b,h-c,b);return r}},clipRect:function(b,h,k,x){var c=a.uniqueKey(),f=this.createElement("clipPath").attr({id:c}).add(this.defs);
b=this.rect(b,h,k,x,0).add(f);b.id=c;b.clipPath=f;b.count=0;return b},text:function(a,b,h,k){var x={};if(k&&(this.allowHTML||!this.forExport))return this.html(a,b,h);x.x=Math.round(b||0);h&&(x.y=Math.round(h));if(a||0===a)x.text=a;a=this.createElement("text").attr(x);k||(a.xSetter=function(a,b,h){var k=h.getElementsByTagName("tspan"),x,c=h.getAttribute(b),f;for(f=0;f<k.length;f++)x=k[f],x.getAttribute(b)===c&&x.setAttribute(b,a);h.setAttribute(b,a)});return a},fontMetrics:function(a,b){a=b&&A.prototype.getStyle.call(b,
"font-size");a=/px/.test(a)?x(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,h){var k=a;b&&h&&(k=Math.max(k*Math.cos(b*e),4));return{x:-a/3*Math.sin(b*e),y:k}},label:function(b,h,k,x,c,f,e,r,t){var H=this,d=H.g("button"!==t&&"label"),y=d.text=H.text("",0,0,e).attr({zIndex:1}),z,g,G=0,w=3,B=0,D,v,I,S,u,J={},R,M=/^url\((.*?)\)$/.test(x),q=M,m,N,Q,L;t&&d.addClass("highcharts-"+t);q=!0;
m=function(){return z.strokeWidth()%2/2};N=function(){var a=y.element.style,b={};g=(void 0===D||void 0===v||u)&&l(y.textStr)&&y.getBBox();d.width=(D||g.width||0)+2*w+B;d.height=(v||g.height||0)+2*w;R=w+H.fontMetrics(a&&a.fontSize,y).b;q&&(z||(d.box=z=H.symbols[x]||M?H.symbol(x):H.rect(),z.addClass(("button"===t?"":"highcharts-label-box")+(t?" highcharts-"+t+"-box":"")),z.add(d),a=m(),b.x=a,b.y=(r?-R:0)+a),b.width=Math.round(d.width),b.height=Math.round(d.height),z.attr(n(b,J)),J={})};Q=function(){var a=
B+w,b;b=r?0:R;l(D)&&g&&("center"===u||"right"===u)&&(a+={center:.5,right:1}[u]*(D-g.width));if(a!==y.x||b!==y.y)y.attr("x",a),y.hasBoxWidthChanged&&(g=y.getBBox(!0),N()),void 0!==b&&y.attr("y",b);y.x=a;y.y=b};L=function(a,b){z?z.attr(a,b):J[a]=b};d.onAdd=function(){y.add(d);d.attr({text:b||0===b?b:"",x:h,y:k});z&&l(c)&&d.attr({anchorX:c,anchorY:f})};d.widthSetter=function(b){D=a.isNumber(b)?b:null};d.heightSetter=function(a){v=a};d["text-alignSetter"]=function(a){u=a};d.paddingSetter=function(a){l(a)&&
a!==w&&(w=d.padding=a,Q())};d.paddingLeftSetter=function(a){l(a)&&a!==B&&(B=a,Q())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==G&&(G=a,g&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&y.textSetter(a);N();Q()};d["stroke-widthSetter"]=function(a,b){a&&(q=!0);this["stroke-width"]=a;L(b,a)};d.rSetter=function(a,b){L(b,a)};d.anchorXSetter=function(a,b){c=d.anchorX=a;L(b,Math.round(a)-m()-I)};d.anchorYSetter=function(a,b){f=d.anchorY=a;L(b,a-S)};d.xSetter=function(a){d.x=a;G&&
(a-=G*((D||g.width)+2*w),d["forceAnimate:x"]=!0);I=Math.round(a);d.attr("translateX",I)};d.ySetter=function(a){S=d.y=Math.round(a);d.attr("translateY",S)};var P=d.css;return n(d,{css:function(a){if(a){var b={};a=F(a);p(d.textProps,function(h){void 0!==a[h]&&(b[h]=a[h],delete a[h])});y.css(b);"width"in b&&N()}return P.call(d,a)},getBBox:function(){return{width:g.width+2*w,height:g.height+2*w,x:g.x-w,y:g.y-w}},destroy:function(){O(d.element,"mouseenter");O(d.element,"mouseleave");y&&(y=y.destroy());
z&&(z=z.destroy());A.prototype.destroy.call(d);d=H=N=Q=L=null}})}});a.Renderer=C})(K);(function(a){var A=a.attr,C=a.createElement,E=a.css,m=a.defined,g=a.each,d=a.extend,q=a.isFirefox,v=a.isMS,u=a.isWebKit,l=a.pick,e=a.pInt,c=a.SVGRenderer,w=a.win,p=a.wrap;d(a.SVGElement.prototype,{htmlCss:function(a){var b="SPAN"===this.element.tagName&&a&&"width"in a,c=l(b&&a.width,void 0);b&&(delete a.width,this.textWidth=c,this.htmlUpdateTransform());a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow=
"hidden");this.styles=d(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.x||0,d=this.y||0,p=this.textAlign||"left",l={left:0,center:.5,right:1}[p],w=this.styles,D=w&&w.whiteSpace;E(b,{marginLeft:this.translateX||0,marginTop:this.translateY||0});this.inverted&&g(b.childNodes,function(c){a.invertChild(c,
b)});if("SPAN"===b.tagName){var w=this.rotation,B=this.textWidth&&e(this.textWidth),r=[w,p,b.innerHTML,this.textWidth,this.textAlign].join(),y;(y=B!==this.oldTextWidth)&&!(y=B>this.oldTextWidth)&&((y=this.textPxLength)||(E(b,{width:"",whiteSpace:D||"nowrap"}),y=b.offsetWidth),y=y>B);y&&/[ \-]/.test(b.textContent||b.innerText)?(E(b,{width:B+"px",display:"block",whiteSpace:D||"normal"}),this.oldTextWidth=B,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;r!==this.cTT&&(D=a.fontMetrics(b.style.fontSize).b,
!m(w)||w===(this.oldRotation||0)&&p===this.oldAlign||this.setSpanRotation(w,l,D),this.getSpanCorrection(!m(w)&&this.textPxLength||b.offsetWidth,D,l,w,p));E(b,{left:c+(this.xCorr||0)+"px",top:d+(this.yCorr||0)+"px"});this.cTT=r;this.oldRotation=w;this.oldAlign=p}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();f[e]=f.transform="rotate("+a+"deg)";f[e+(q?"Origin":"-origin")]=f.transformOrigin=100*b+"% "+c+"px";E(this.element,f)},getSpanCorrection:function(a,
b,c){this.xCorr=-a*c;this.yCorr=-b}});d(c.prototype,{getTransformKey:function(){return v&&!/Edge/.test(w.navigator.userAgent)?"-ms-transform":u?"-webkit-transform":q?"MozTransform":w.opera?"-o-transform":""},html:function(a,b,c){var f=this.createElement("span"),e=f.element,n=f.renderer,w=n.isSVG,D=function(a,b){g(["opacity","visibility"],function(c){p(a,c+"Setter",function(a,c,f,h){a.call(this,c,f,h);b[f]=c})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=
a;e.innerHTML=l(a,"");f.doTransform=!0};w&&D(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){"align"===b&&(b="textAlign");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({position:"absolute"});e.style.whiteSpace="nowrap";f.css=f.htmlCss;w&&(f.add=function(a){var b,c=n.box.parentNode,t=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)t.push(a),
a=a.parentGroup;g(t.reverse(),function(a){function e(b,k){a[k]=b;"translateX"===k?h.left=b+"px":h.top=b+"px";a.doTransform=!0}var h,x=A(a.element,"class");x&&(x={className:x});b=a.div=a.div||C("div",x,{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);h=b.style;d(a,{classSetter:function(a){return function(b){this.element.setAttribute("class",b);a.className=b}}(b),on:function(){t[0].div&&
f.on.apply({element:t[0].div},arguments);return a},translateXSetter:e,translateYSetter:e});a.addedSetters||D(a,h)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(K);(function(a){var A=a.defined,C=a.each,E=a.extend,m=a.merge,g=a.pick,d=a.timeUnits,q=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(a){var d=g(a&&a.useUTC,!0),l=this;this.options=a=m(!0,this.options||{},a);this.Date=a.Date||q.Date;this.timezoneOffset=
(this.useUTC=d)&&a.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(d&&!a.getTimezoneOffset&&!a.timezone))||this.timezoneOffset?(this.get=function(a,c){var e=c.getTime(),d=e-l.getTimezoneOffset(c);c.setTime(d);a=c["getUTC"+a]();c.setTime(e);return a},this.set=function(a,c,d){var e;if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===c.getTimezoneOffset()%60)c["set"+a](d);else e=l.getTimezoneOffset(c),e=c.getTime()-e,c.setTime(e),c["setUTC"+a](d),a=l.getTimezoneOffset(c),
e=c.getTime()+a,c.setTime(e)}):d?(this.get=function(a,c){return c["getUTC"+a]()},this.set=function(a,c,d){return c["setUTC"+a](d)}):(this.get=function(a,c){return c["get"+a]()},this.set=function(a,c,d){return c["set"+a](d)})},makeTime:function(d,u,l,e,c,w){var p,n,b;this.useUTC?(p=this.Date.UTC.apply(0,arguments),n=this.getTimezoneOffset(p),p+=n,b=this.getTimezoneOffset(p),n!==b?p+=b-n:n-36E5!==this.getTimezoneOffset(p-36E5)||a.isSafari||(p-=36E5)):p=(new this.Date(d,u,g(l,1),g(e,0),g(c,0),g(w,0))).getTime();
return p},timezoneOffsetFunction:function(){var d=this,g=this.options,l=q.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(g.timezone){if(l)return function(a){return 6E4*-l.tz(a,g.timezone).utcOffset()};a.error(25)}return this.useUTC&&g.getTimezoneOffset?function(a){return 6E4*g.getTimezoneOffset(a)}:function(){return 6E4*(d.timezoneOffset||0)}},dateFormat:function(d,g,l){if(!a.defined(g)||isNaN(g))return a.defaultOptions.lang.invalidDate||"";d=a.pick(d,"%Y-%m-%d %H:%M:%S");
var e=this,c=new this.Date(g),w=this.get("Hours",c),p=this.get("Day",c),n=this.get("Date",c),b=this.get("Month",c),f=this.get("FullYear",c),t=a.defaultOptions.lang,G=t.weekdays,z=t.shortWeekdays,u=a.pad,c=a.extend({a:z?z[p]:G[p].substr(0,3),A:G[p],d:u(n),e:u(n,2," "),w:p,b:t.shortMonths[b],B:t.months[b],m:u(b+1),o:b+1,y:f.toString().substr(2,2),Y:f,H:u(w),k:w,I:u(w%12||12),l:w%12||12,M:u(e.get("Minutes",c)),p:12>w?"AM":"PM",P:12>w?"am":"pm",S:u(c.getSeconds()),L:u(Math.floor(g%1E3),3)},a.dateFormats);
a.objectEach(c,function(a,b){for(;-1!==d.indexOf("%"+b);)d=d.replace("%"+b,"function"===typeof a?a.call(e,g):a)});return l?d.substr(0,1).toUpperCase()+d.substr(1):d},getTimeTicks:function(a,u,l,e){var c=this,w=[],p,n={},b;p=new c.Date(u);var f=a.unitRange,t=a.count||1,G;e=g(e,1);if(A(u)){c.set("Milliseconds",p,f>=d.second?0:t*Math.floor(c.get("Milliseconds",p)/t));f>=d.second&&c.set("Seconds",p,f>=d.minute?0:t*Math.floor(c.get("Seconds",p)/t));f>=d.minute&&c.set("Minutes",p,f>=d.hour?0:t*Math.floor(c.get("Minutes",
p)/t));f>=d.hour&&c.set("Hours",p,f>=d.day?0:t*Math.floor(c.get("Hours",p)/t));f>=d.day&&c.set("Date",p,f>=d.month?1:t*Math.floor(c.get("Date",p)/t));f>=d.month&&(c.set("Month",p,f>=d.year?0:t*Math.floor(c.get("Month",p)/t)),b=c.get("FullYear",p));f>=d.year&&c.set("FullYear",p,b-b%t);f===d.week&&(b=c.get("Day",p),c.set("Date",p,c.get("Date",p)-b+e+(b<e?-7:0)));b=c.get("FullYear",p);e=c.get("Month",p);var z=c.get("Date",p),v=c.get("Hours",p);u=p.getTime();c.variableTimezone&&(G=l-u>4*d.month||c.getTimezoneOffset(u)!==
c.getTimezoneOffset(l));u=p.getTime();for(p=1;u<l;)w.push(u),u=f===d.year?c.makeTime(b+p*t,0):f===d.month?c.makeTime(b,e+p*t):!G||f!==d.day&&f!==d.week?G&&f===d.hour&&1<t?c.makeTime(b,e,z,v+p*t):u+f*t:c.makeTime(b,e,z+p*t*(f===d.day?1:7)),p++;w.push(u);f<=d.hour&&1E4>w.length&&C(w,function(a){0===a%18E5&&"000000000"===c.dateFormat("%H%M%S%L",a)&&(n[a]="day")})}w.info=E(a,{higherRanks:n,totalRange:f*t});return w}}})(K);(function(a){var A=a.merge;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:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,
colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},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",alignColumns:!0,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:"https://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},text:"Highcharts.com"}};a.setOptions=function(C){a.defaultOptions=A(!0,a.defaultOptions,C);a.time.update(A(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};
a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(A(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(A,E,m){return a.time.dateFormat(A,E,m)}})(K);(function(a){var A=a.correctFloat,C=a.defined,E=a.destroyObjectProperties,m=a.fireEvent,g=a.isNumber,d=a.pick,q=a.deg2rad;a.Tick=function(a,d,l,e){this.axis=a;this.pos=d;this.type=l||"";this.isNewLabel=this.isNew=!0;l||e||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,g=a.options,l=a.chart,e=
a.categories,c=a.names,w=this.pos,p=g.labels,n=a.tickPositions,b=w===n[0],f=w===n[n.length-1],c=e?d(e[w],c[w],w):w,e=this.label,n=n.info,t;a.isDatetimeAxis&&n&&(t=g.dateTimeLabelFormats[n.higherRanks[w]||n.unitName]);this.isFirst=b;this.isLast=f;g={axis:a,chart:l,isFirst:b,isLast:f,dateTimeLabelFormat:t,value:a.isLog?A(a.lin2log(c)):c,pos:w};g=a.labelFormatter.call(g,g);if(C(e))e&&e.textStr!==g&&(!e.textWidth||p.style&&p.style.width||e.styles.width||e.css({width:null}),e.attr({text:g}));else{if(this.label=
e=C(g)&&p.enabled?l.renderer.text(g,0,0,p.useHTML).add(a.labelGroup):null)e.textPxLength=e.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,e=a.x,c=g.chart.chartWidth,w=g.chart.spacing,p=d(g.labelLeft,Math.min(g.pos,w[3])),w=d(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,c-w[1])),n=this.label,b=this.rotation,f={left:0,center:.5,right:1}[g.labelAlign||
n.attr("align")],t=n.getBBox().width,G=g.getSlotWidth(this),z=G,v=1,D,B={};if(b||"justify"!==d(l.overflow,"justify"))0>b&&e-f*t<p?D=Math.round(e/Math.cos(b*q)-p):0<b&&e+f*t>w&&(D=Math.round((c-e)/Math.cos(b*q)));else if(c=e+(1-f)*t,e-f*t<p?z=a.x+z*(1-f)-p:c>w&&(z=w-a.x+z*f,v=-1),z=Math.min(G,z),z<G&&"center"===g.labelAlign&&(a.x+=v*(G-z-f*(G-Math.min(t,z)))),t>z||g.autoRotation&&(n.styles||{}).width)D=z;D&&(B.width=D,(l.style||{}).textOverflow||(B.textOverflow="ellipsis"),n.css(B))},getPosition:function(d,
g,l,e){var c=this.axis,w=c.chart,p=e&&w.oldChartHeight||w.chartHeight;d={x:d?a.correctFloat(c.translate(g+l,null,null,e)+c.transB):c.left+c.offset+(c.opposite?(e&&w.oldChartWidth||w.chartWidth)-c.right-c.left:0),y:d?p-c.bottom+c.offset-(c.opposite?c.height:0):a.correctFloat(p-c.translate(g+l,null,null,e)-c.transB)};m(this,"afterGetPosition",{pos:d});return d},getLabelPosition:function(a,d,l,e,c,g,p,n){var b=this.axis,f=b.transA,t=b.reversed,w=b.staggerLines,z=b.tickRotCorr||{x:0,y:0},u=c.y,D=e||b.reserveSpaceDefault?
0:-b.labelOffset*("center"===b.labelAlign?.5:1),B={};C(u)||(u=0===b.side?l.rotation?-8:-l.getBBox().height:2===b.side?z.y+8:Math.cos(l.rotation*q)*(z.y-l.getBBox(!1,0).height/2));a=a+c.x+D+z.x-(g&&e?g*f*(t?-1:1):0);d=d+u-(g&&!e?g*f*(t?1:-1):0);w&&(l=p/(n||1)%w,b.opposite&&(l=w-l-1),d+=b.labelOffset/w*l);B.x=a;B.y=Math.round(d);m(this,"afterGetLabelPosition",{pos:B});return B},getMarkPath:function(a,d,g,e,c,w){return w.crispLine(["M",a,d,"L",a+(c?0:-g),d+(c?g:0)],e)},renderGridLine:function(a,d,g){var e=
this.axis,c=this.gridLine,l={},p=this.pos,n=this.type,b=e.tickmarkOffset,f=e.chart.renderer;c||(n||(l.zIndex=1),a&&(l.opacity=0),this.gridLine=c=f.path().attr(l).addClass("highcharts-"+(n?n+"-":"")+"grid-line").add(e.gridGroup));if(!a&&c&&(a=e.getPlotLinePath(p+b,c.strokeWidth()*g,a,!0)))c[this.isNew?"attr":"animate"]({d:a,opacity:d})},renderMark:function(a,d,g){var e=this.axis,c=e.chart.renderer,l=this.type,p=e.tickSize(l?l+"Tick":"tick"),n=this.mark,b=!n,f=a.x;a=a.y;p&&(e.opposite&&(p[0]=-p[0]),
b&&(this.mark=n=c.path().addClass("highcharts-"+(l?l+"-":"")+"tick").add(e.axisGroup)),n[b?"attr":"animate"]({d:this.getMarkPath(f,a,p[0],n.strokeWidth()*g,e.horiz,c),opacity:d}))},renderLabel:function(a,q,l,e){var c=this.axis,w=c.horiz,p=c.options,n=this.label,b=p.labels,f=b.step,c=c.tickmarkOffset,t=!0,G=a.x;a=a.y;n&&g(G)&&(n.xy=a=this.getLabelPosition(G,a,n,w,b,c,e,f),this.isFirst&&!this.isLast&&!d(p.showFirstLabel,1)||this.isLast&&!this.isFirst&&!d(p.showLastLabel,1)?t=!1:!w||b.step||b.rotation||
q||0===l||this.handleOverflow(a),f&&e%f&&(t=!1),t&&g(a.y)?(a.opacity=l,n[this.isNewLabel?"attr":"animate"](a),this.isNewLabel=!1):(n.attr("y",-9999),this.isNewLabel=!0))},render:function(g,q,l){var e=this.axis,c=e.horiz,w=this.getPosition(c,this.pos,e.tickmarkOffset,q),p=w.x,n=w.y,e=c&&p===e.pos+e.len||!c&&n===e.pos?-1:1;l=d(l,1);this.isActive=!0;this.renderGridLine(q,l,e);this.renderMark(w,l,e);this.renderLabel(w,q,l,g);this.isNew=!1;a.fireEvent(this,"afterRender")},destroy:function(){E(this,this.axis)}}})(K);
var U=function(a){var A=a.addEvent,C=a.animObject,E=a.arrayMax,m=a.arrayMin,g=a.correctFloat,d=a.defaultOptions,q=a.defined,v=a.deg2rad,u=a.destroyObjectProperties,l=a.each,e=a.extend,c=a.fireEvent,w=a.format,p=a.getMagnitude,n=a.grep,b=a.inArray,f=a.isArray,t=a.isNumber,G=a.isString,z=a.merge,J=a.normalizeTickInterval,D=a.objectEach,B=a.pick,r=a.removeEvent,y=a.splat,F=a.syncTimeout,I=a.Tick,M=function(){this.init.apply(this,arguments)};a.extend(M.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},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle"},type:"linear"},defaultYAxisOptions:{endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,
text:"Values"},stackLabels:{allowOverlap:!1,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,x){var h=x.isX,k=this;k.chart=a;k.horiz=a.inverted&&!k.isZAxis?!h:h;k.isXAxis=h;k.coll=k.coll||
(h?"xAxis":"yAxis");c(this,"init",{userOptions:x});k.opposite=x.opposite;k.side=x.side||(k.horiz?k.opposite?0:2:k.opposite?1:3);k.setOptions(x);var f=this.options,e=f.type;k.labelFormatter=f.labels.formatter||k.defaultLabelFormatter;k.userOptions=x;k.minPixelPadding=0;k.reversed=f.reversed;k.visible=!1!==f.visible;k.zoomEnabled=!1!==f.zoomEnabled;k.hasNames="category"===e||!0===f.categories;k.categories=f.categories||k.hasNames;k.names||(k.names=[],k.names.keys={});k.plotLinesAndBandsGroups={};k.isLog=
"logarithmic"===e;k.isDatetimeAxis="datetime"===e;k.positiveValuesOnly=k.isLog&&!k.allowNegativeLog;k.isLinked=q(f.linkedTo);k.ticks={};k.labelEdge=[];k.minorTicks={};k.plotLinesAndBands=[];k.alternateBands={};k.len=0;k.minRange=k.userMinRange=f.minRange||f.maxZoom;k.range=f.range;k.offset=f.offset||0;k.stacks={};k.oldStacks={};k.stacksTouched=0;k.max=null;k.min=null;k.crosshair=B(f.crosshair,y(a.options.tooltip.crosshairs)[h?0:1],!1);x=k.options.events;-1===b(k,a.axes)&&(h?a.axes.splice(a.xAxis.length,
0,k):a.axes.push(k),a[k.coll].push(k));k.series=k.series||[];a.inverted&&!k.isZAxis&&h&&void 0===k.reversed&&(k.reversed=!0);D(x,function(a,b){A(k,b,a)});k.lin2log=f.linearToLogConverter||k.lin2log;k.isLog&&(k.val2lin=k.log2lin,k.lin2val=k.lin2log);c(this,"afterInit")},setOptions:function(a){this.options=z(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],
z(d[this.coll],a));c(this,"afterSetOptions",{userOptions:a})},defaultLabelFormatter:function(){var b=this.axis,x=this.value,c=b.chart.time,k=b.categories,f=this.dateTimeLabelFormat,e=d.lang,r=e.numericSymbols,e=e.numericSymbolMagnitude||1E3,n=r&&r.length,t,y=b.options.labels.format,b=b.isLog?Math.abs(x):b.tickInterval;if(y)t=w(y,this,c);else if(k)t=x;else if(f)t=c.dateFormat(f,x);else if(n&&1E3<=b)for(;n--&&void 0===t;)c=Math.pow(e,n+1),b>=c&&0===10*x%c&&null!==r[n]&&0!==x&&(t=a.numberFormat(x/c,
-1)+r[n]);void 0===t&&(t=1E4<=Math.abs(x)?a.numberFormat(x,-1):a.numberFormat(x,-1,void 0,""));return t},getSeriesExtremes:function(){var a=this,b=a.chart;c(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(h){if(h.visible||!b.options.chart.ignoreHiddenSeries){var k=h.options,c=k.threshold,x;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=c&&(c=null);if(a.isXAxis)k=h.xData,
k.length&&(h=m(k),x=E(k),t(h)||h instanceof Date||(k=n(k,t),h=m(k),x=E(k)),k.length&&(a.dataMin=Math.min(B(a.dataMin,k[0],h),h),a.dataMax=Math.max(B(a.dataMax,k[0],x),x)));else if(h.getExtremes(),x=h.dataMax,h=h.dataMin,q(h)&&q(x)&&(a.dataMin=Math.min(B(a.dataMin,h),h),a.dataMax=Math.max(B(a.dataMax,x),x)),q(c)&&(a.threshold=c),!k.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});c(this,"afterGetSeriesExtremes")},translate:function(a,b,c,k,f,e){var h=this.linkedParent||this,x=1,d=0,r=k?
h.oldTransA:h.transA;k=k?h.oldMin:h.min;var n=h.minPixelPadding;f=(h.isOrdinal||h.isBroken||h.isLog&&f)&&h.lin2val;r||(r=h.transA);c&&(x*=-1,d=h.len);h.reversed&&(x*=-1,d-=x*(h.sector||h.len));b?(a=(a*x+d-n)/r+k,f&&(a=h.lin2val(a))):(f&&(a=h.val2lin(a)),a=t(k)?x*(a-k)*r+d+x*n+(t(e)?r*e:0):void 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,k,f){var h=this.chart,x=this.left,e=this.top,d,r,n=c&&h.oldChartHeight||h.chartHeight,H=c&&h.oldChartWidth||h.chartWidth,y;d=this.transB;var g=function(a,b,h){if(a<b||a>h)k?a=Math.min(Math.max(b,a),h):y=!0;return a};f=B(f,this.translate(a,null,null,c));f=Math.min(Math.max(-1E5,f),1E5);a=c=Math.round(f+d);d=r=Math.round(n-f-d);t(f)?this.horiz?(d=e,r=n-this.bottom,a=c=g(a,x,x+this.width)):(a=x,c=H-this.right,d=r=g(d,e,e+this.height)):(y=!0,k=!1);return y&&!k?null:h.renderer.crispLine(["M",a,d,"L",
c,r],b||1)},getLinearTickPositions:function(a,b,c){var h,f=g(Math.floor(b/a)*a);c=g(Math.ceil(c/a)*a);var x=[],e;g(f+a)===f&&(e=20);if(this.single)return[b];for(b=f;b<=c;){x.push(b);b=g(b+a,e);if(b===h)break;h=b}return x},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?B(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,b=a.options,c=a.tickPositions,k=a.minorTickInterval,f=[],e=a.pointRangePadding||0,d=a.min-
e,e=a.max+e,r=e-d;if(r&&r/k<a.len/3)if(a.isLog)l(this.paddedTicks,function(b,h,c){h&&f.push.apply(f,a.getLogTickPositions(k,c[h-1],c[h],!0))});else if(a.isDatetimeAxis&&"auto"===this.getMinorTickInterval())f=f.concat(a.getTimeTicks(a.normalizeTimeTickInterval(k),d,e,b.startOfWeek));else for(b=d+(c[0]-d)%k;b<=e&&b!==f[0];b+=k)f.push(b);0!==f.length&&a.trimTicks(f);return f},adjustForMinRange:function(){var a=this.options,b=this.min,c=this.max,k,f,e,d,r,n,t,y;this.isXAxis&&void 0===this.minRange&&!this.isLog&&
(q(a.min)||q(a.max)?this.minRange=null:(l(this.series,function(a){n=a.xData;for(d=t=a.xIncrement?1:n.length-1;0<d;d--)if(r=n[d]-n[d-1],void 0===e||r<e)e=r}),this.minRange=Math.min(5*e,this.dataMax-this.dataMin)));c-b<this.minRange&&(f=this.dataMax-this.dataMin>=this.minRange,y=this.minRange,k=(y-c+b)/2,k=[b-k,B(a.min,b-k)],f&&(k[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(k),c=[b+y,B(a.max,b+y)],f&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=m(c),c-b<y&&(k[0]=c-y,k[1]=
B(a.min,c-y),b=E(k)));this.min=b;this.max=c},getClosest:function(){var a;this.categories?a=1:l(this.series,function(b){var h=b.closestPointRange,k=b.visible||!b.chart.options.chart.ignoreHiddenSeries;!b.noSharedTooltip&&q(h)&&k&&(a=q(a)?Math.min(a,h):h)});return a},nameToX:function(a){var h=f(this.categories),c=h?this.categories:this.names,k=a.options.x,e;a.series.requireSorting=!1;q(k)||(k=!1===this.options.uniqueNames?a.series.autoIncrement():h?b(a.name,c):B(c.keys[a.name],-1));-1===k?h||(e=c.length):
e=k;void 0!==e&&(this.names[e]=a.name,this.names.keys[a.name]=e);return e},updateNames:function(){var b=this,c=this.names;0<c.length&&(l(a.keys(c.keys),function(a){delete c.keys[a]}),c.length=0,this.minRange=this.userMinRange,l(this.series||[],function(a){a.xIncrement=null;if(!a.points||a.isDirtyData)a.processData(),a.generatePoints();l(a.points,function(k,h){var c;k.options&&(c=b.nameToX(k),void 0!==c&&c!==k.x&&(k.x=c,a.xData[h]=c))})}))},setAxisTranslation:function(a){var b=this,h=b.max-b.min,k=
b.axisPointRange||0,f,e=0,d=0,r=b.linkedParent,n=!!b.categories,t=b.transA,y=b.isXAxis;if(y||n||k)f=b.getClosest(),r?(e=r.minPointOffset,d=r.pointRangePadding):l(b.series,function(a){var h=n?1:y?B(a.options.pointRange,f,0):b.axisPointRange||0;a=a.options.pointPlacement;k=Math.max(k,h);b.single||(e=Math.max(e,G(a)?0:h/2),d=Math.max(d,"on"===a?0:h))}),r=b.ordinalSlope&&f?b.ordinalSlope/f:1,b.minPointOffset=e*=r,b.pointRangePadding=d*=r,b.pointRange=Math.min(k,h),y&&(b.closestPointRange=f);a&&(b.oldTransA=
t);b.translationSlope=b.transA=t=b.options.staticScale||b.len/(h+d||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=t*e;c(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(b){var h=this,f=h.chart,k=h.options,e=h.isLog,d=h.isDatetimeAxis,r=h.isXAxis,n=h.isLinked,y=k.maxPadding,F=k.minPadding,z=k.tickInterval,w=k.tickPixelInterval,G=h.categories,D=t(h.threshold)?h.threshold:null,I=h.softThreshold,M,m,u,v;d||G||n||this.getTickAmount();
u=B(h.userMin,k.min);v=B(h.userMax,k.max);n?(h.linkedParent=f[h.coll][k.linkedTo],f=h.linkedParent.getExtremes(),h.min=B(f.min,f.dataMin),h.max=B(f.max,f.dataMax),k.type!==h.linkedParent.options.type&&a.error(11,1)):(!I&&q(D)&&(h.dataMin>=D?(M=D,F=0):h.dataMax<=D&&(m=D,y=0)),h.min=B(u,M,h.dataMin),h.max=B(v,m,h.dataMax));e&&(h.positiveValuesOnly&&!b&&0>=Math.min(h.min,B(h.dataMin,h.min))&&a.error(10,1),h.min=g(h.log2lin(h.min),15),h.max=g(h.log2lin(h.max),15));h.range&&q(h.max)&&(h.userMin=h.min=
u=Math.max(h.dataMin,h.minFromRange()),h.userMax=v=h.max,h.range=null);c(h,"foundExtremes");h.beforePadding&&h.beforePadding();h.adjustForMinRange();!(G||h.axisPointRange||h.usePercentage||n)&&q(h.min)&&q(h.max)&&(f=h.max-h.min)&&(!q(u)&&F&&(h.min-=f*F),!q(v)&&y&&(h.max+=f*y));t(k.softMin)&&!t(h.userMin)&&(h.min=Math.min(h.min,k.softMin));t(k.softMax)&&!t(h.userMax)&&(h.max=Math.max(h.max,k.softMax));t(k.floor)&&(h.min=Math.max(h.min,k.floor));t(k.ceiling)&&(h.max=Math.min(h.max,k.ceiling));I&&q(h.dataMin)&&
(D=D||0,!q(u)&&h.min<D&&h.dataMin>=D?h.min=D:!q(v)&&h.max>D&&h.dataMax<=D&&(h.max=D));h.tickInterval=h.min===h.max||void 0===h.min||void 0===h.max?1:n&&!z&&w===h.linkedParent.options.tickPixelInterval?z=h.linkedParent.tickInterval:B(z,this.tickAmount?(h.max-h.min)/Math.max(this.tickAmount-1,1):void 0,G?1:(h.max-h.min)*w/Math.max(h.len,w));r&&!b&&l(h.series,function(a){a.processData(h.min!==h.oldMin||h.max!==h.oldMax)});h.setAxisTranslation(!0);h.beforeSetTickPositions&&h.beforeSetTickPositions();
h.postProcessTickInterval&&(h.tickInterval=h.postProcessTickInterval(h.tickInterval));h.pointRange&&!z&&(h.tickInterval=Math.max(h.pointRange,h.tickInterval));b=B(k.minTickInterval,h.isDatetimeAxis&&h.closestPointRange);!z&&h.tickInterval<b&&(h.tickInterval=b);d||e||z||(h.tickInterval=J(h.tickInterval,null,p(h.tickInterval),B(k.allowDecimals,!(.5<h.tickInterval&&5>h.tickInterval&&1E3<h.max&&9999>h.max)),!!this.tickAmount));this.tickAmount||(h.tickInterval=h.unsquish());this.setTickPositions()},setTickPositions:function(){var b=
this.options,f,e=b.tickPositions;f=this.getMinorTickInterval();var k=b.tickPositioner,d=b.startOnTick,r=b.endOnTick;this.tickmarkOffset=this.categories&&"between"===b.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===f&&this.tickInterval?this.tickInterval/5:f;this.single=this.min===this.max&&q(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==b.allowDecimals);this.tickPositions=f=e&&e.slice();!f&&(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>
Math.max(2*this.len,200)?(f=[this.min,this.max],a.error(19)):f=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,b.units),this.min,this.max,b.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),f.length>this.len&&(f=[f[0],f.pop()],f[0]===f[1]&&(f.length=1)),this.tickPositions=f,k&&(k=k.apply(this,[this.min,this.max])))&&
(this.tickPositions=f=k);this.paddedTicks=f.slice(0);this.trimTicks(f,d,r);this.isLinked||(this.single&&2>f.length&&(this.min-=.5,this.max+=.5),e||k||this.adjustTickAmount());c(this,"afterSetTickPositions")},trimTicks:function(a,b,f){var h=a[0],c=a[a.length-1],e=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==h)this.min=h;else for(;this.min-e>a[0];)a.shift();if(f)this.max=c;else for(;this.max+e<a[a.length-1];)a.pop();0===a.length&&q(h)&&!this.options.tickPositions&&a.push((c+h)/2)}},alignToOthers:function(){var a=
{},b,f=this.options;!1===this.chart.options.chart.alignTicks||!1===f.alignTicks||!1===f.startOnTick||!1===f.endOnTick||this.isLog||l(this.chart[this.coll],function(h){var k=h.options,k=[h.horiz?k.left:k.top,k.width,k.height,k.pane].join();h.series.length&&(a[k]?b=!0:a[k]=1)});return b},getTickAmount:function(){var a=this.options,b=a.tickAmount,f=a.tickPixelInterval;!q(a.tickInterval)&&this.len<f&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&(b=2);!b&&this.alignToOthers()&&(b=Math.ceil(this.len/
f)+1);4>b&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,f=this.tickAmount,k=this.finalTickAmt,c=b&&b.length,e=B(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(c<f){for(;b.length<f;)b.length%2||this.min===e?b.push(g(b[b.length-1]+a)):b.unshift(g(b[0]-a));this.transA*=(c-1)/(f-1);this.min=b[0];this.max=b[b.length-1]}else c>f&&(this.tickInterval*=2,this.setTickPositions());if(q(k)){for(a=f=b.length;a--;)(3===k&&
1===a%2||2>=k&&0<a&&a<f-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;l(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();c(this,"afterSetScale")},setExtremes:function(a,b,f,k,d){var h=this,r=h.chart;f=B(f,!0);l(h.series,function(a){delete a.kdTree});d=e(d,{min:a,max:b});c(h,"setExtremes",d,function(){h.userMin=a;h.userMax=b;h.eventArgs=d;f&&r.redraw(k)})},zoom:function(a,b){var h=this.dataMin,k=this.dataMax,f=this.options,
c=Math.min(h,B(f.min,h)),f=Math.max(k,B(f.max,k));if(a!==this.min||b!==this.max)this.allowZoomOutside||(q(h)&&(a<c&&(a=c),a>f&&(a=f)),q(k)&&(b<c&&(b=c),b>f&&(b=f))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:"zoom"});return!0},setAxisSize:function(){var b=this.chart,f=this.options,c=f.offsets||[0,0,0,0],k=this.horiz,e=this.width=Math.round(a.relativeLength(B(f.width,b.plotWidth-c[3]+c[1]),b.plotWidth)),d=this.height=Math.round(a.relativeLength(B(f.height,b.plotHeight-
c[0]+c[2]),b.plotHeight)),r=this.top=Math.round(a.relativeLength(B(f.top,b.plotTop+c[0]),b.plotHeight,b.plotTop)),f=this.left=Math.round(a.relativeLength(B(f.left,b.plotLeft+c[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-d-r;this.right=b.chartWidth-e-f;this.len=Math.max(k?e:d,0);this.pos=k?f:r},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},
getThreshold:function(a){var b=this.isLog,h=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=h:Infinity===a?a=b:h>a?a=h:b<a&&(a=b);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){a=(B(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,h=b[a+"Length"],k=B(b[a+"Width"],"tick"===a&&this.isXAxis?1:0);if(k&&h)return"inside"===b[a+"Position"]&&(h=-h),[h,k]},labelMetrics:function(){var a=
this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,f=this.tickInterval,k=f,c=this.len/(((this.categories?1:0)+this.max-this.min)/f),e,d=a.rotation,r=this.labelMetrics(),n,t=Number.MAX_VALUE,y,p=function(a){a/=c||1;a=1<a?Math.ceil(a):1;return g(a*f)};b?(y=!a.staggerLines&&!a.step&&(q(d)?[d]:c<B(a.autoRotationLimit,
80)&&a.autoRotation))&&l(y,function(a){var b;if(a===d||a&&-90<=a&&90>=a)n=p(Math.abs(r.h/Math.sin(v*a))),b=n+Math.abs(a/360),b<t&&(t=b,e=a,k=n)}):a.step||(k=p(r.h));this.autoRotation=y;this.labelRotation=B(e,d);return k},getSlotWidth:function(){var a=this.chart,b=this.horiz,f=this.options.labels,k=Math.max(this.tickPositions.length-(this.categories?0:1),1),c=a.margin[3];return b&&2>(f.step||0)&&!f.rotation&&(this.staggerLines||1)*this.len/k||!b&&(f.style&&parseInt(f.style.width,10)||c&&c-a.spacing[3]||
.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,f=this.tickPositions,k=this.ticks,c=this.options.labels,e=c&&c.style||{},d=this.horiz,r=this.getSlotWidth(),n=Math.max(1,Math.round(r-2*(c.padding||5))),t={},y=this.labelMetrics(),g=c.style&&c.style.textOverflow,p,F,z=0,w;G(c.rotation)||(t.rotation=c.rotation||0);l(f,function(a){(a=k[a])&&a.label&&a.label.textPxLength>z&&(z=a.label.textPxLength)});this.maxLabelLength=z;if(this.autoRotation)z>n&&z>y.h?t.rotation=this.labelRotation:
this.labelRotation=0;else if(r&&(p=n,!g))for(F="clip",n=f.length;!d&&n--;)if(w=f[n],w=k[w].label)w.styles&&"ellipsis"===w.styles.textOverflow?w.css({textOverflow:"clip"}):w.textPxLength>r&&w.css({width:r+"px"}),w.getBBox().height>this.len/f.length-(y.h-y.f)&&(w.specificTextOverflow="ellipsis");t.rotation&&(p=z>.5*a.chartHeight?.33*a.chartHeight:z,g||(F="ellipsis"));if(this.labelAlign=c.align||this.autoLabelAlign(this.labelRotation))t.align=this.labelAlign;l(f,function(a){var b=(a=k[a])&&a.label,h=
e.width,f={};b&&(b.attr(t),p&&!h&&"nowrap"!==e.whiteSpace&&(p<b.textPxLength||"SPAN"===b.element.tagName)?(f.width=p,g||(f.textOverflow=b.specificTextOverflow||F),b.css(f)):b.styles&&b.styles.width&&!f.width&&!h&&b.css({width:null}),delete b.specificTextOverflow,a.rotation=t.rotation)});this.tickRotCorr=b.rotCorr(y.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||q(this.min)&&q(this.max)&&this.tickPositions&&0<this.tickPositions.length},addTitle:function(a){var b=
this.chart.renderer,h=this.horiz,k=this.opposite,f=this.options.title,c;this.axisTitle||((c=f.textAlign)||(c=(h?{low:"left",middle:"center",high:"right"}:{low:k?"right":"left",middle:"center",high:k?"left":"right"})[f.align]),this.axisTitle=b.text(f.text,0,0,f.useHTML).attr({zIndex:7,rotation:f.rotation||0,align:c}).addClass("highcharts-axis-title").add(this.axisGroup),this.axisTitle.isNew=!0);this.axisTitle.css({width:this.len});this.axisTitle[a?"show":"hide"](!0)},generateTick:function(a){var b=
this.ticks;b[a]?b[a].addLabel():b[a]=new I(this,a)},getOffset:function(){var a=this,b=a.chart,f=b.renderer,k=a.options,e=a.tickPositions,d=a.ticks,r=a.horiz,n=a.side,t=b.inverted&&!a.isZAxis?[1,0,3,2][n]:n,y,g,p=0,F,z=0,w=k.title,G=k.labels,I=0,M=b.axisOffset,b=b.clipOffset,m=[-1,1,1,-1][n],u=k.className,J=a.axisParent,v=this.tickSize("tick");y=a.hasData();a.showAxis=g=y||B(k.showEmpty,!0);a.staggerLines=a.horiz&&G.staggerLines;a.axisGroup||(a.gridGroup=f.g("grid").attr({zIndex:k.gridZIndex||1}).addClass("highcharts-"+
this.coll.toLowerCase()+"-grid "+(u||"")).add(J),a.axisGroup=f.g("axis").attr({zIndex:k.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(u||"")).add(J),a.labelGroup=f.g("axis-labels").attr({zIndex:G.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels "+(u||"")).add(J));y||a.isLinked?(l(e,function(b,f){a.generateTick(b,f)}),a.renderUnsquish(),a.reserveSpaceDefault=0===n||2===n||{1:"left",3:"right"}[n]===a.labelAlign,B(G.reserveSpace,"center"===a.labelAlign?!0:null,a.reserveSpaceDefault)&&
l(e,function(a){I=Math.max(d[a].getLabelSize(),I)}),a.staggerLines&&(I*=a.staggerLines),a.labelOffset=I*(a.opposite?-1:1)):D(d,function(a,b){a.destroy();delete d[b]});w&&w.text&&!1!==w.enabled&&(a.addTitle(g),g&&!1!==w.reserveSpace&&(a.titleOffset=p=a.axisTitle.getBBox()[r?"height":"width"],F=w.offset,z=q(F)?0:B(w.margin,r?5:10)));a.renderLine();a.offset=m*B(k.offset,M[n]);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};f=0===n?-a.labelMetrics().h:2===n?a.tickRotCorr.y:0;z=Math.abs(I)+z;I&&(z=z-f+m*(r?B(G.y,
a.tickRotCorr.y+8*m):G.x));a.axisTitleMargin=B(F,z);M[n]=Math.max(M[n],a.axisTitleMargin+p+m*a.offset,z,y&&e.length&&v?v[0]+m*a.offset:0);k=k.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2);b[t]=Math.max(b[t],k);c(this,"afterGetOffset")},getLinePath:function(a){var b=this.chart,f=this.opposite,k=this.offset,h=this.horiz,c=this.left+(f?this.width:0)+k,k=b.chartHeight-this.bottom-(f?this.height:0)+k;f&&(a*=-1);return b.renderer.crispLine(["M",h?this.left:c,h?k:this.top,"L",h?b.chartWidth-this.right:
c,h?k: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,f=this.top,k=this.len,c=this.options.title,e=a?b:f,d=this.opposite,r=this.offset,n=c.x||0,t=c.y||0,y=this.axisTitle,g=this.chart.renderer.fontMetrics(c.style&&c.style.fontSize,y),y=Math.max(y.getBBox(null,0).height-g.h-1,0),k={low:e+(a?0:k),middle:e+k/2,high:e+(a?k:0)}[c.align],
b=(a?f+this.height:b)+(a?1:-1)*(d?-1:1)*this.axisTitleMargin+[-y,y,g.f,-y][this.side];return{x:a?k+n:b+(d?this.width:0)+r+n,y:a?b+t-(d?this.height:0)+r:k+t}},renderMinorTick:function(a){var b=this.chart.hasRendered&&t(this.oldMin),f=this.minorTicks;f[a]||(f[a]=new I(this,a,"minor"));b&&f[a].isNew&&f[a].render(null,!0);f[a].render(null,!1,1)},renderTick:function(a,b){var f=this.isLinked,k=this.ticks,c=this.chart.hasRendered&&t(this.oldMin);if(!f||a>=this.min&&a<=this.max)k[a]||(k[a]=new I(this,a)),
c&&k[a].isNew&&k[a].render(b,!0,.1),k[a].render(b)},render:function(){var b=this,f=b.chart,e=b.options,k=b.isLog,d=b.isLinked,r=b.tickPositions,n=b.axisTitle,y=b.ticks,g=b.minorTicks,p=b.alternateBands,z=e.stackLabels,w=e.alternateGridColor,G=b.tickmarkOffset,B=b.axisLine,M=b.showAxis,q=C(f.renderer.globalAnimation),m,u;b.labelEdge.length=0;b.overlap=!1;l([y,g,p],function(a){D(a,function(a){a.isActive=!1})});if(b.hasData()||d)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),
r.length&&(l(r,function(a,f){b.renderTick(a,f)}),G&&(0===b.min||b.single)&&(y[-1]||(y[-1]=new I(b,-1,null,!0)),y[-1].render(-1))),w&&l(r,function(c,h){u=void 0!==r[h+1]?r[h+1]+G:b.max-G;0===h%2&&c<b.max&&u<=b.max+(f.polar?-G:G)&&(p[c]||(p[c]=new a.PlotLineOrBand(b)),m=c+G,p[c].options={from:k?b.lin2log(m):m,to:k?b.lin2log(u):u,color:w},p[c].render(),p[c].isActive=!0)}),b._addedPlotLB||(l((e.plotLines||[]).concat(e.plotBands||[]),function(a){b.addPlotBandOrLine(a)}),b._addedPlotLB=!0);l([y,g,p],function(a){var b,
k=[],c=q.duration;D(a,function(a,b){a.isActive||(a.render(b,!1,0),a.isActive=!1,k.push(b))});F(function(){for(b=k.length;b--;)a[k[b]]&&!a[k[b]].isActive&&(a[k[b]].destroy(),delete a[k[b]])},a!==p&&f.hasRendered&&c?c:0)});B&&(B[B.isPlaced?"animate":"attr"]({d:this.getLinePath(B.strokeWidth())}),B.isPlaced=!0,B[M?"show":"hide"](!0));n&&M&&(e=b.getTitlePosition(),t(e.y)?(n[n.isNew?"attr":"animate"](e),n.isNew=!1):(n.attr("y",-9999),n.isNew=!0));z&&z.enabled&&b.renderStackTotals();b.isDirty=!1;c(this,
"afterRender")},redraw:function(){this.visible&&(this.render(),l(this.plotLinesAndBands,function(a){a.render()}));l(this.series,function(a){a.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(a){var f=this,h=f.stacks,k=f.plotLinesAndBands,e;c(this,"destroy",{keepEvents:a});a||r(f);D(h,function(a,b){u(a);h[b]=null});l([f.ticks,f.minorTicks,f.alternateBands],function(a){u(a)});if(k)for(a=k.length;a--;)k[a].destroy();l("stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" "),
function(a){f[a]&&(f[a]=f[a].destroy())});for(e in f.plotLinesAndBandsGroups)f.plotLinesAndBandsGroups[e]=f.plotLinesAndBandsGroups[e].destroy();D(f,function(a,k){-1===b(k,f.keepProps)&&delete f[k]})},drawCrosshair:function(a,b){var f,k=this.crosshair,h=B(k.snap,!0),e,d=this.cross;c(this,"drawCrosshair",{e:a,point:b});a||(a=this.cross&&this.cross.e);if(this.crosshair&&!1!==(q(b)||!h)){h?q(b)&&(e=B(b.crosshairPos,this.isXAxis?b.plotX:this.len-b.plotY)):e=a&&(this.horiz?a.chartX-this.pos:this.len-a.chartY+
this.pos);q(e)&&(f=this.getPlotLinePath(b&&(this.isXAxis?b.x:B(b.stackY,b.y)),null,null,null,e)||null);if(!q(f)){this.hideCrosshair();return}h=this.categories&&!this.isRadial;d||(this.cross=d=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(h?"category ":"thin ")+k.className).attr({zIndex:B(k.zIndex,2)}).add());d.show().attr({d:f});h&&!k.width&&d.attr({"stroke-width":this.transA});this.cross.e=a}else this.hideCrosshair();c(this,"afterDrawCrosshair",{e:a,point:b})},
hideCrosshair:function(){this.cross&&this.cross.hide()}});return a.Axis=M}(K);(function(a){var A=a.Axis,C=a.getMagnitude,E=a.normalizeTickInterval,m=a.timeUnits;A.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)};A.prototype.normalizeTimeTickInterval=function(a,d){var g=d||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,
3,4,6]],["year",null]];d=g[g.length-1];var v=m[d[0]],u=d[1],l;for(l=0;l<g.length&&!(d=g[l],v=m[d[0]],u=d[1],g[l+1]&&a<=(v*u[u.length-1]+m[g[l+1][0]])/2);l++);v===m.year&&a<5*v&&(u=[1,2,5]);a=E(a/v,u,"year"===d[0]?Math.max(C(a/v),1):1);return{unitRange:v,count:a,unitName:d[0]}}})(K);(function(a){var A=a.Axis,C=a.getMagnitude,E=a.map,m=a.normalizeTickInterval,g=a.pick;A.prototype.getLogTickPositions=function(a,q,v,u){var d=this.options,e=this.len,c=[];u||(this._minorAutoInterval=null);if(.5<=a)a=Math.round(a),
c=this.getLinearTickPositions(a,q,v);else if(.08<=a)for(var e=Math.floor(q),w,p,n,b,f,d=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];e<v+1&&!f;e++)for(p=d.length,w=0;w<p&&!f;w++)n=this.log2lin(this.lin2log(e)*d[w]),n>q&&(!u||b<=v)&&void 0!==b&&c.push(b),b>v&&(f=!0),b=n;else q=this.lin2log(q),v=this.lin2log(v),a=u?this.getMinorTickInterval():d.tickInterval,a=g("auto"===a?null:a,this._minorAutoInterval,d.tickPixelInterval/(u?5:1)*(v-q)/((u?e/this.tickPositions.length:e)||1)),a=m(a,null,C(a)),
c=E(this.getLinearTickPositions(a,q,v),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return c};A.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};A.prototype.lin2log=function(a){return Math.pow(10,a)}})(K);(function(a,A){var C=a.arrayMax,E=a.arrayMin,m=a.defined,g=a.destroyObjectProperties,d=a.each,q=a.erase,v=a.merge,u=a.pick;a.PlotLineOrBand=function(a,e){this.axis=a;e&&(this.options=e,this.id=e.id)};a.PlotLineOrBand.prototype={render:function(){var d=this,e=
d.axis,c=e.horiz,g=d.options,p=g.label,n=d.label,b=g.to,f=g.from,t=g.value,G=m(f)&&m(b),z=m(t),q=d.svgElem,D=!q,B=[],r=u(g.zIndex,0),y=g.events,B={"class":"highcharts-plot-"+(G?"band ":"line ")+(g.className||"")},F={},I=e.chart.renderer,M=G?"bands":"lines",h;e.isLog&&(f=e.log2lin(f),b=e.log2lin(b),t=e.log2lin(t));F.zIndex=r;M+="-"+r;(h=e.plotLinesAndBandsGroups[M])||(e.plotLinesAndBandsGroups[M]=h=I.g("plot-"+M).attr(F).add());D&&(d.svgElem=q=I.path().attr(B).add(h));if(z)B=e.getPlotLinePath(t,q.strokeWidth());
else if(G)B=e.getPlotBandPath(f,b,g);else return;D&&B&&B.length?(q.attr({d:B}),y&&a.objectEach(y,function(a,b){q.on(b,function(a){y[b].apply(d,[a])})})):q&&(B?(q.show(),q.animate({d:B})):(q.hide(),n&&(d.label=n=n.destroy())));p&&m(p.text)&&B&&B.length&&0<e.width&&0<e.height&&!B.isFlat?(p=v({align:c&&G&&"center",x:c?!G&&4:10,verticalAlign:!c&&G&&"middle",y:c?G?16:10:G?6:-4,rotation:c&&!G&&90},p),this.renderLabel(p,B,G,r)):n&&n.hide();return d},renderLabel:function(a,e,c,d){var g=this.label,n=this.axis.chart.renderer;
g||(g={align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(c?"band":"line")+"-label "+(a.className||"")},g.zIndex=d,this.label=g=n.text(a.text,0,0,a.useHTML).attr(g).add());d=e.xBounds||[e[1],e[4],c?e[6]:e[1]];e=e.yBounds||[e[2],e[5],c?e[7]:e[2]];c=E(d);n=E(e);g.align(a,!1,{x:c,y:n,width:C(d)-c,height:C(e)-n});g.show()},destroy:function(){q(this.axis.plotLinesAndBands,this);delete this.axis;g(this)}};a.extend(A.prototype,{getPlotBandPath:function(a,e){var c=this.getPlotLinePath(e,
null,null,!0),d=this.getPlotLinePath(a,null,null,!0),g=[],n=this.horiz,b=1,f;a=a<this.min&&e<this.min||a>this.max&&e>this.max;if(d&&c)for(a&&(f=d.toString()===c.toString(),b=0),a=0;a<d.length;a+=6)n&&c[a+1]===d[a+1]?(c[a+1]+=b,c[a+4]+=b):n||c[a+2]!==d[a+2]||(c[a+2]+=b,c[a+5]+=b),g.push("M",d[a+1],d[a+2],"L",d[a+4],d[a+5],c[a+4],c[a+5],c[a+1],c[a+2],"z"),g.isFlat=f;return g},addPlotBand:function(a){return this.addPlotBandOrLine(a,"plotBands")},addPlotLine:function(a){return this.addPlotBandOrLine(a,
"plotLines")},addPlotBandOrLine:function(d,e){var c=(new a.PlotLineOrBand(this,d)).render(),g=this.userOptions;c&&(e&&(g[e]=g[e]||[],g[e].push(d)),this.plotLinesAndBands.push(c));return c},removePlotBandOrLine:function(a){for(var e=this.plotLinesAndBands,c=this.options,g=this.userOptions,p=e.length;p--;)e[p].id===a&&e[p].destroy();d([c.plotLines||[],g.plotLines||[],c.plotBands||[],g.plotBands||[]],function(c){for(p=c.length;p--;)c[p].id===a&&q(c,c[p])})},removePlotBand:function(a){this.removePlotBandOrLine(a)},
removePlotLine:function(a){this.removePlotBandOrLine(a)}})})(K,U);(function(a){var A=a.doc,C=a.each,E=a.extend,m=a.format,g=a.isNumber,d=a.map,q=a.merge,v=a.pick,u=a.splat,l=a.syncTimeout,e=a.timeUnits;a.Tooltip=function(){this.init.apply(this,arguments)};a.Tooltip.prototype={init:function(a,e){this.chart=a;this.options=e;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=e.split&&!a.inverted;this.shared=e.shared||this.split;this.outside=e.outside&&!this.split},cleanSplit:function(a){C(this.chart.series,
function(c){var e=c&&c.tt;e&&(!e.isActive||a?c.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 c=this.chart.renderer,e=this.options,d;this.label||(this.outside&&(this.container=d=a.doc.createElement("div"),d.className="highcharts-tooltip-container",a.css(d,{position:"absolute",top:"1px",pointerEvents:e.style&&e.style.pointerEvents}),a.doc.body.appendChild(d),this.renderer=c=new a.Renderer(d,0,0)),this.label=this.split?c.g("tooltip"):c.label("",0,0,e.shape||"callout",null,null,e.useHTML,
null,"tooltip").attr({padding:e.padding,r:e.borderRadius}),this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index),this.outside&&(this.label.attr({x:this.distance,y:this.distance}),this.label.xSetter=function(a){d.style.left=a+"px"},this.label.ySetter=function(a){d.style.top=a+"px"}),this.label.attr({zIndex:8}).add());return this.label},update:function(a){this.destroy();q(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,q(!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());this.renderer&&(this.renderer=this.renderer.destroy(),a.discardElement(this.container));a.clearTimeout(this.hideTimer);a.clearTimeout(this.tooltipTimeout)},move:function(c,e,d,n){var b=this,f=b.now,t=!1!==b.options.animation&&!b.isHidden&&(1<Math.abs(c-f.x)||1<Math.abs(e-f.y)),g=b.followPointer||1<b.len;E(f,{x:t?(2*f.x+c)/3:c,y:t?(f.y+e)/2:e,anchorX:g?void 0:t?(2*f.anchorX+d)/3:d,anchorY:g?
void 0:t?(f.anchorY+n)/2:n});b.getLabel().attr(f);t&&(a.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){b&&b.move(c,e,d,n)},32))},hide:function(c){var e=this;a.clearTimeout(this.hideTimer);c=v(c,this.options.hideDelay,500);this.isHidden||(this.hideTimer=l(function(){e.getLabel()[c?"fadeOut":"hide"]();e.isHidden=!0},c))},getAnchor:function(a,e){var c=this.chart,n=c.pointer,b=c.inverted,f=c.plotTop,t=c.plotLeft,g=0,z=0,l,D;a=u(a);this.followPointer&&e?(void 0===e.chartX&&
(e=n.normalize(e)),a=[e.chartX-c.plotLeft,e.chartY-f]):a[0].tooltipPos?a=a[0].tooltipPos:(C(a,function(a){l=a.series.yAxis;D=a.series.xAxis;g+=a.plotX+(!b&&D?D.left-t:0);z+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!b&&l?l.top-f:0)}),g/=a.length,z/=a.length,a=[b?c.plotWidth-z:g,this.shared&&!b&&1<a.length&&e?e.chartY-f:b?c.plotHeight-g:z]);return d(a,Math.round)},getPosition:function(a,e,d){var c=this.chart,b=this.distance,f={},t=c.inverted&&d.h||0,g,z=this.outside,p=z?A.documentElement.clientWidth-
2*b:c.chartWidth,l=z?Math.max(A.body.scrollHeight,A.documentElement.scrollHeight,A.body.offsetHeight,A.documentElement.offsetHeight,A.documentElement.clientHeight):c.chartHeight,B=c.pointer.chartPosition,r=["y",l,e,(z?B.top-b:0)+d.plotY+c.plotTop,z?0:c.plotTop,z?l:c.plotTop+c.plotHeight],y=["x",p,a,(z?B.left-b:0)+d.plotX+c.plotLeft,z?0:c.plotLeft,z?p:c.plotLeft+c.plotWidth],F=!this.followPointer&&v(d.ttBelow,!c.inverted===!!d.negative),w=function(a,k,c,e,h,d){var r=c<e-b,n=e+b+c<k,g=e-b-c;e+=b;if(F&&
n)f[a]=e;else if(!F&&r)f[a]=g;else if(r)f[a]=Math.min(d-c,0>g-t?g:g-t);else if(n)f[a]=Math.max(h,e+t+c>k?e:e+t);else return!1},M=function(a,k,c,e){var h;e<b||e>k-b?h=!1:f[a]=e<c/2?1:e>k-c/2?k-c-2:e-c/2;return h},h=function(a){var b=r;r=y;y=b;g=a},x=function(){!1!==w.apply(0,r)?!1!==M.apply(0,y)||g||(h(!0),x()):g?f.x=f.y=0:(h(!0),x())};(c.inverted||1<this.len)&&h();x();return f},defaultFormatter:function(a){var c=this.points||u(this),e;e=[a.tooltipFooterHeaderFormatter(c[0])];e=e.concat(a.bodyFormatter(c));
e.push(a.tooltipFooterHeaderFormatter(c[0],!0));return e},refresh:function(c,e){var d,n=this.options,b=c,f,t={},g=[];d=n.formatter||this.defaultFormatter;var t=this.shared,z;n.enabled&&(a.clearTimeout(this.hideTimer),this.followPointer=u(b)[0].series.tooltipOptions.followPointer,f=this.getAnchor(b,e),e=f[0],n=f[1],!t||b.series&&b.series.noSharedTooltip?t=b.getLabelConfig():(C(b,function(a){a.setState("hover");g.push(a.getLabelConfig())}),t={x:b[0].category,y:b[0].y},t.points=g,b=b[0]),this.len=g.length,
t=d.call(t,this),z=b.series,this.distance=v(z.tooltipOptions.distance,16),!1===t?this.hide():(d=this.getLabel(),this.isHidden&&d.attr({opacity:1}).show(),this.split?this.renderSplit(t,u(c)):(d.css({width:this.chart.spacingBox.width}),d.attr({text:t&&t.join?t.join(""):t}),d.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+v(b.colorIndex,z.colorIndex)),this.updatePosition({plotX:e,plotY:n,negative:b.negative,ttBelow:b.ttBelow,h:f[2]||0})),this.isHidden=!1))},renderSplit:function(c,
e){var d=this,n=[],b=this.chart,f=b.renderer,t=!0,g=this.options,z=0,l,D=this.getLabel(),B=b.plotTop;a.isString(c)&&(c=[!1,c]);C(c.slice(0,e.length+1),function(a,c){if(!1!==a){c=e[c-1]||{isHeader:!0,plotX:e[0].plotX};var r=c.series||d,y=r.tt,p="highcharts-color-"+v(c.colorIndex,(c.series||{}).colorIndex,"none");y||(r.tt=y=f.label(null,null,null,"callout",null,null,g.useHTML).addClass("highcharts-tooltip-box "+p+(c.isHeader?" highcharts-tooltip-header":"")).attr({padding:g.padding,r:g.borderRadius}).add(D));
y.isActive=!0;y.attr({text:a});a=y.getBBox();p=a.width+y.strokeWidth();c.isHeader?(z=a.height,b.xAxis[0].opposite&&(l=!0,B-=z),p=Math.max(0,Math.min(c.plotX+b.plotLeft-p/2,b.chartWidth+(b.scrollablePixels?b.scrollablePixels-b.marginRight:0)-p))):p=c.plotX+b.plotLeft-v(g.distance,16)-p;0>p&&(t=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=B;c.isHeader&&(a=l?-z:b.plotHeight+z);n.push({target:a,rank:c.isHeader?1:0,size:r.tt.getBBox().height+1,point:c,x:p,tt:y})}});this.cleanSplit();
a.distribute(n,b.plotHeight+z);C(n,function(a){var f=a.point,c=f.series;a.tt.attr({visibility:void 0===a.pos?"hidden":"inherit",x:t||f.isHeader?a.x:f.plotX+b.plotLeft+v(g.distance,16),y:a.pos+B,anchorX:f.isHeader?f.plotX+b.plotLeft:f.plotX+c.xAxis.pos,anchorY:f.isHeader?b.plotTop+b.plotHeight/2:f.plotY+c.yAxis.pos})})},updatePosition:function(a){var c=this.chart,e=this.getLabel(),d=(this.options.positioner||this.getPosition).call(this,e.width,e.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;var f;
this.outside&&(f=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(e.width+f,e.height+f,!1),b+=c.pointer.chartPosition.left-d.x,a+=c.pointer.chartPosition.top-d.y);this.move(Math.round(d.x),Math.round(d.y||0),b,a)},getDateFormat:function(a,d,g,n){var b=this.chart.time,f=b.dateFormat("%m-%d %H:%M:%S.%L",d),c,p,z={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond";for(p in e){if(a===e.week&&+b.dateFormat("%w",d)===g&&"00:00:00.000"===f.substr(6)){p="week";break}if(e[p]>
a){p=l;break}if(z[p]&&f.substr(z[p])!=="01-01 00:00:00.000".substr(z[p]))break;"week"!==p&&(l=p)}p&&(c=n[p]);return c},getXDateFormat:function(a,e,d){e=e.dateTimeLabelFormats;var c=d&&d.closestPointRange;return(c?this.getDateFormat(c,a.x,d.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(a,e){e=e?"footer":"header";var c=a.series,d=c.tooltipOptions,b=d.xDateFormat,f=c.xAxis,t=f&&"datetime"===f.options.type&&g(a.key),l=d[e+"Format"];t&&!b&&(b=this.getXDateFormat(a,d,f));
t&&b&&C(a.point&&a.point.tooltipDateKeys||["key"],function(a){l=l.replace("{point."+a+"}","{point."+a+":"+b+"}")});return m(l,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return d(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||"point")+"Formatter"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||"point")+"Format"])})}}})(K);(function(a){var A=a.addEvent,C=a.attr,E=a.charts,m=a.css,g=a.defined,d=a.each,q=a.extend,v=a.find,u=a.fireEvent,
l=a.isNumber,e=a.isObject,c=a.offset,w=a.pick,p=a.splat,n=a.Tooltip;a.Pointer=function(a,f){this.init(a,f)};a.Pointer.prototype={init:function(a,f){this.options=f;this.chart=a;this.runChartClick=f.chart.events&&!!f.chart.events.click;this.pinchDown=[];this.lastValidTouch={};n&&(a.tooltip=new n(a,f.tooltip),this.followTouchMove=w(f.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=w(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,f){var b;b=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;f||(this.chartPosition=f=c(this.chart.container));return q(a,{chartX:Math.round(b.pageX-f.left),chartY:Math.round(b.pageY-f.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};d(this.chart.axes,function(f){b[f.isXAxis?"xAxis":"yAxis"].push({axis:f,value:f.toValue(a[f.horiz?
"chartX":"chartY"])})});return b},findNearestKDPoint:function(a,f,c){var b;d(a,function(a){var d=!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(c,d);if((d=e(a,!0))&&!(d=!e(b,!0)))var d=b.distX-a.distX,n=b.dist-a.dist,g=(a.series.group&&a.series.group.zIndex)-(b.series.group&&b.series.group.zIndex),d=0<(0!==d&&f?d:0!==n?n:0!==g?g:b.series.index>a.series.index?-1:1);d&&(b=a)});return b},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;
return b},getChartCoordinatesFromPoint:function(a,f){var b=a.series,c=b.xAxis,b=b.yAxis,e=w(a.clientX,a.plotX),d=a.shapeArgs;if(c&&b)return f?{chartX:c.len+c.pos-e,chartY:b.len+b.pos-a.plotY}:{chartX:e+c.pos,chartY:a.plotY+b.pos};if(d&&d.x&&d.y)return{chartX:d.x,chartY:d.y}},getHoverData:function(b,f,c,n,g,p,l){var t,r=[],y=l&&l.isBoosting;n=!(!n||!b);l=f&&!f.stickyTracking?[f]:a.grep(c,function(a){return a.visible&&!(!g&&a.directTouch)&&w(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(t=
n?b:this.findNearestKDPoint(l,g,p))&&t.series;t&&(g&&!f.noSharedTooltip?(l=a.grep(c,function(a){return a.visible&&!(!g&&a.directTouch)&&w(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),d(l,function(a){var b=v(a.points,function(a){return a.x===t.x&&!a.isNull});e(b)&&(y&&(b=a.getPoint(b)),r.push(b))})):r.push(t));return{hoverPoint:t,hoverSeries:f,hoverPoints:r}},runPointActions:function(b,f){var c=this.chart,e=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,n=e?e.shared:!1,g=f||c.hoverPoint,
p=g&&g.series||c.hoverSeries,p=this.getHoverData(g,p,c.series,"touchmove"!==b.type&&(!!f||p&&p.directTouch&&this.isDirectTouch),n,b,{isBoosting:c.isBoosting}),l,g=p.hoverPoint;l=p.hoverPoints;f=(p=p.hoverSeries)&&p.tooltipOptions.followPointer;n=n&&p&&!p.noSharedTooltip;if(g&&(g!==c.hoverPoint||e&&e.isHidden)){d(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});d(l||[],function(a){a.setState("hover")});if(c.hoverSeries!==p)p.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent("mouseOut");
if(!g.series)return;g.firePointEvent("mouseOver");c.hoverPoints=l;c.hoverPoint=g;e&&e.refresh(n?l:g,b)}else f&&e&&!e.isHidden&&(g=e.getAnchor([{}],b),e.updatePosition({plotX:g[0],plotY:g[1]}));this.unDocMouseMove||(this.unDocMouseMove=A(c.container.ownerDocument,"mousemove",function(b){var f=E[a.hoverChartIndex];if(f)f.pointer.onDocumentMouseMove(b)}));d(c.axes,function(f){var c=w(f.crosshair.snap,!0),e=c?a.find(l,function(a){return a.series[f.coll]===f}):void 0;e||!c?f.drawCrosshair(b,e):f.hideCrosshair()})},
reset:function(a,f){var b=this.chart,c=b.hoverSeries,e=b.hoverPoint,n=b.hoverPoints,g=b.tooltip,l=g&&g.shared?n:e;a&&l&&d(p(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)g&&l&&(g.refresh(l),g.shared&&n?d(n,function(a){a.setState(a.state,!0);a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a);a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a)}):e&&(e.setState(e.state,!0),d(b.axes,function(a){a.crosshair&&a.drawCrosshair(null,e)})));else{if(e)e.onMouseOut();
n&&d(n,function(a){a.setState()});if(c)c.onMouseOut();g&&g.hide(f);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());d(b.axes,function(a){a.hideCrosshair()});this.hoverX=b.hoverPoints=b.hoverPoint=null}},scaleGroups:function(a,f){var b=this.chart,c;d(b.series,function(e){c=a||e.getPlotBox();e.xAxis&&e.xAxis.zoomEnabled&&e.group&&(e.group.attr(c),e.markerGroup&&(e.markerGroup.attr(c),e.markerGroup.clip(f?b.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(c))});b.clipRect.attr(f||
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,e=a.chartX,d=a.chartY,n=this.zoomHor,g=this.zoomVert,p=b.plotLeft,r=b.plotTop,y=b.plotWidth,F=b.plotHeight,l,q=this.selectionMarker,h=this.mouseDownX,x=this.mouseDownY,m=c.panKey&&a[c.panKey+"Key"];q&&q.touch||(e<p?e=p:e>p+y&&(e=p+y),d<r?d=r:d>r+F&&(d=r+F),this.hasDragged=Math.sqrt(Math.pow(h-
e,2)+Math.pow(x-d,2)),10<this.hasDragged&&(l=b.isInsidePlot(h-p,x-r),b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&l&&!m&&!q&&(this.selectionMarker=q=b.renderer.rect(p,r,n?1:y,g?1:F,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add()),q&&n&&(e-=h,q.attr({width:Math.abs(e),x:(0<e?0:e)+h})),q&&g&&(e=d-x,q.attr({height:Math.abs(e),y:(0<e?0:e)+x})),l&&!q&&c.panning&&b.pan(a,c.panning)))},drop:function(a){var b=this,c=this.chart,e=this.hasPinched;if(this.selectionMarker){var n={originalEvent:a,
xAxis:[],yAxis:[]},p=this.selectionMarker,D=p.attr?p.attr("x"):p.x,B=p.attr?p.attr("y"):p.y,r=p.attr?p.attr("width"):p.width,y=p.attr?p.attr("height"):p.height,F;if(this.hasDragged||e)d(c.axes,function(c){if(c.zoomEnabled&&g(c.min)&&(e||b[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])){var f=c.horiz,h="touchend"===a.type?c.minPixelPadding:0,d=c.toValue((f?D:B)+h),f=c.toValue((f?D+r:B+y)-h);n[c.coll].push({axis:c,min:Math.min(d,f),max:Math.max(d,f)});F=!0}}),F&&u(c,"selection",n,function(a){c.zoom(q(a,e?
{animation:!1}:null))});l(c.index)&&(this.selectionMarker=this.selectionMarker.destroy());e&&this.scaleGroups()}c&&l(c.index)&&(m(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);2!==a.button&&(this.zoomOption(a),a.preventDefault&&a.preventDefault(),this.dragStart(a))},onDocumentMouseUp:function(b){E[a.hoverChartIndex]&&E[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=E[a.hoverChartIndex];c&&(b.relatedTarget||b.toElement)&&(c.pointer.reset(),c.pointer.chartPosition=null)},onContainerMouseMove:function(b){var c=this.chart;g(a.hoverChartIndex)&&E[a.hoverChartIndex]&&E[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;this.isDirectTouch=!1;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,e=b.plotLeft,d=b.plotTop;a=this.normalize(a);b.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(u(c.series,"click",q(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",a)):(q(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-e,a.chartY-d)&&u(b,"click",a)))},setDOMEvents:function(){var b=this,c=b.chart.container,e=c.ownerDocument;
c.onmousedown=function(a){b.onContainerMouseDown(a)};c.onmousemove=function(a){b.onContainerMouseMove(a)};c.onclick=function(a){b.onContainerClick(a)};this.unbindContainerMouseLeave=A(c,"mouseleave",b.onContainerMouseLeave);a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=A(e,"mouseup",b.onDocumentMouseUp));a.hasTouch&&(c.ontouchstart=function(a){b.onContainerTouchStart(a)},c.ontouchmove=function(a){b.onContainerTouchMove(a)},a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=A(e,"touchend",b.onDocumentTouchEnd)))},
destroy:function(){var b=this;b.unDocMouseMove&&b.unDocMouseMove();this.unbindContainerMouseLeave();a.chartCount||(a.unbindDocumentMouseUp&&(a.unbindDocumentMouseUp=a.unbindDocumentMouseUp()),a.unbindDocumentTouchEnd&&(a.unbindDocumentTouchEnd=a.unbindDocumentTouchEnd()));clearInterval(b.tooltipTimeout);a.objectEach(b,function(a,c){b[c]=null})}}})(K);(function(a){var A=a.charts,C=a.each,E=a.extend,m=a.map,g=a.noop,d=a.pick;E(a.Pointer.prototype,{pinchTranslate:function(a,d,g,l,e,c){this.zoomHor&&
this.pinchTranslateDirection(!0,a,d,g,l,e,c);this.zoomVert&&this.pinchTranslateDirection(!1,a,d,g,l,e,c)},pinchTranslateDirection:function(a,d,g,l,e,c,m,p){var n=this.chart,b=a?"x":"y",f=a?"X":"Y",t="chart"+f,q=a?"width":"height",z=n["plot"+(a?"Left":"Top")],w,D,B=p||1,r=n.inverted,y=n.bounds[a?"h":"v"],F=1===d.length,I=d[0][t],u=g[0][t],h=!F&&d[1][t],x=!F&&g[1][t],v;g=function(){!F&&20<Math.abs(I-h)&&(B=p||Math.abs(u-x)/Math.abs(I-h));D=(z-u)/B+I;w=n["plot"+(a?"Width":"Height")]/B};g();d=D;d<y.min?
(d=y.min,v=!0):d+w>y.max&&(d=y.max-w,v=!0);v?(u-=.8*(u-m[b][0]),F||(x-=.8*(x-m[b][1])),g()):m[b]=[u,x];r||(c[b]=D-z,c[q]=w);c=r?1/B:B;e[q]=w;e[b]=d;l[r?a?"scaleY":"scaleX":"scale"+f]=B;l["translate"+f]=c*z+(u-c*I)},pinch:function(a){var q=this,u=q.chart,l=q.pinchDown,e=a.touches,c=e.length,w=q.lastValidTouch,p=q.hasZoom,n=q.selectionMarker,b={},f=1===c&&(q.inClass(a.target,"highcharts-tracker")&&u.runTrackerClick||q.runChartClick),t={};1<c&&(q.initiated=!0);p&&q.initiated&&!f&&a.preventDefault();
m(e,function(a){return q.normalize(a)});"touchstart"===a.type?(C(e,function(a,b){l[b]={chartX:a.chartX,chartY:a.chartY}}),w.x=[l[0].chartX,l[1]&&l[1].chartX],w.y=[l[0].chartY,l[1]&&l[1].chartY],C(u.axes,function(a){if(a.zoomEnabled){var b=u.bounds[a.horiz?"h":"v"],c=a.minPixelPadding,e=a.toPixels(d(a.options.min,a.dataMin)),f=a.toPixels(d(a.options.max,a.dataMax)),r=Math.max(e,f);b.min=Math.min(a.pos,Math.min(e,f)-c);b.max=Math.max(a.pos+a.len,r+c)}}),q.res=!0):q.followTouchMove&&1===c?this.runPointActions(q.normalize(a)):
l.length&&(n||(q.selectionMarker=n=E({destroy:g,touch:!0},u.plotBox)),q.pinchTranslate(l,e,b,n,t,w),q.hasPinched=p,q.scaleGroups(b,t),q.res&&(q.res=!1,this.reset(!1,0)))},touch:function(g,m){var q=this.chart,l,e;if(q.index!==a.hoverChartIndex)this.onContainerMouseLeave({relatedTarget:!0});a.hoverChartIndex=q.index;1===g.touches.length?(g=this.normalize(g),(e=q.isInsidePlot(g.chartX-q.plotLeft,g.chartY-q.plotTop))&&!q.openMenu?(m&&this.runPointActions(g),"touchmove"===g.type&&(m=this.pinchDown,l=m[0]?
4<=Math.sqrt(Math.pow(m[0].chartX-g.chartX,2)+Math.pow(m[0].chartY-g.chartY,2)):!1),d(l,!0)&&this.pinch(g)):m&&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(d){A[a.hoverChartIndex]&&A[a.hoverChartIndex].pointer.drop(d)}})})(K);(function(a){var A=a.addEvent,C=a.charts,E=a.css,m=a.doc,g=a.extend,d=a.noop,q=a.Pointer,v=a.removeEvent,u=a.win,l=a.wrap;
if(!a.hasTouch&&(u.PointerEvent||u.MSPointerEvent)){var e={},c=!!u.PointerEvent,w=function(){var c=[];c.item=function(a){return this[a]};a.objectEach(e,function(a){c.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return c},p=function(c,b,e,g){"touch"!==c.pointerType&&c.pointerType!==c.MSPOINTER_TYPE_TOUCH||!C[a.hoverChartIndex]||(g(c),g=C[a.hoverChartIndex].pointer,g[b]({type:e,target:c.currentTarget,preventDefault:d,touches:w()}))};g(q.prototype,{onContainerPointerDown:function(a){p(a,"onContainerTouchStart",
"touchstart",function(a){e[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(a){p(a,"onContainerTouchMove","touchmove",function(a){e[a.pointerId]={pageX:a.pageX,pageY:a.pageY};e[a.pointerId].target||(e[a.pointerId].target=a.currentTarget)})},onDocumentPointerUp:function(a){p(a,"onDocumentTouchEnd","touchend",function(a){delete e[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,c?"pointerdown":"MSPointerDown",this.onContainerPointerDown);
a(this.chart.container,c?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(m,c?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});l(q.prototype,"init",function(a,b,c){a.call(this,b,c);this.hasZoom&&E(b.container,{"-ms-touch-action":"none","touch-action":"none"})});l(q.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(A)});l(q.prototype,"destroy",function(a){this.batchMSEvents(v);a.call(this)})}})(K);(function(a){var A=a.addEvent,
C=a.css,E=a.discardElement,m=a.defined,g=a.each,d=a.fireEvent,q=a.isFirefox,v=a.marginNames,u=a.merge,l=a.pick,e=a.setAnimation,c=a.stableSort,w=a.win,p=a.wrap;a.Legend=function(a,b){this.init(a,b)};a.Legend.prototype={init:function(a,b){this.chart=a;this.setOptions(b);b.enabled&&(this.render(),A(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=A(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&
this.unchartrender())},setOptions:function(a){var b=l(a.padding,8);this.options=a;this.itemMarginTop=a.itemMarginTop||0;this.padding=b;this.initialItemY=b-5;this.symbolWidth=l(a.symbolWidth,16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted},update:function(a,b){var c=this.chart;this.setOptions(u(!0,this.options,a));this.destroy();c.isDirtyLegend=c.isDirtyBox=!0;l(b,!0)&&c.redraw();d(this,"afterUpdate")},colorizeItem:function(a,b){a.legendGroup[b?"removeClass":"addClass"]("highcharts-legend-item-hidden");
d(this,"afterColorizeItem",{item:a,visible:b})},positionItems:function(){g(this.allItems,this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()},positionItem:function(a){var b=this.options,c=b.symbolPadding,b=!b.rtl,e=a._legendItemPos,d=e[0],e=e[1],g=a.checkbox;if((a=a.legendGroup)&&a.element)a[m(a.translateY)?"animate":"attr"]({translateX:b?d:this.legendWidth-d-2*c-4,translateY:e});g&&(g.x=d,g.y=e)},destroyItem:function(a){var b=a.checkbox;g(["legendItem","legendLine","legendSymbol",
"legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())});b&&E(a.checkbox)},destroy:function(){function a(a){this[a]&&(this[a]=this[a].destroy())}g(this.getAllItems(),function(b){g(["legendItem","legendGroup"],a,b)});g("clipRect up down pager nav box title group".split(" "),a,this);this.display=null},positionCheckboxes:function(){var a=this.group&&this.group.alignAttr,b,c=this.clipHeight||this.legendHeight,e=this.titleHeight;a&&(b=a.translateY,g(this.allItems,function(f){var d=f.checkbox,g;d&&(g=b+
e+d.y+(this.scrollOffset||0)+3,C(d,{left:a.translateX+f.checkboxOffset+d.x-20+"px",top:g+"px",display:g>b-6&&g<b+c-6?"":"none"}))},this))},renderTitle:function(){var a=this.options,b=this.padding,c=a.title,e=0;c.text&&(this.title||(this.title=this.chart.renderer.label(c.text,b-3,b-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}).add(this.group)),a=this.title.getBBox(),e=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:e}));this.titleHeight=e},setText:function(c){var b=
this.options;c.legendItem.attr({text:b.labelFormat?a.format(b.labelFormat,c,this.chart.time):b.labelFormatter.call(c)})},renderItem:function(a){var b=this.chart,c=b.renderer,e=this.options,d=this.symbolWidth,g=e.symbolPadding,n="horizontal"===e.layout?l(e.itemDistance,20):0,p=!e.rtl,m=a.legendItem,r=!a.series,y=!r&&a.series.drawLegendSymbol?a.series:a,F=y.options,F=this.createCheckboxForItem&&F&&F.showCheckbox,n=d+g+n+(F?20:0),q=e.useHTML,w=a.options.className;m||(a.legendGroup=c.g("legend-item").addClass("highcharts-"+
y.type+"-series highcharts-color-"+a.colorIndex+(w?" "+w:"")+(r?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=m=c.text("",p?d+g:-g,this.baseline||0,q).attr({align:p?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=c.fontMetrics(12,m),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,m.attr("y",this.baseline)),this.symbolHeight=e.symbolHeight||this.fontMetrics.f,y.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,
m,q),F&&this.createCheckboxForItem(a));this.colorizeItem(a,a.visible);m.css({width:(e.itemWidth||e.width||b.spacingBox.width)-n});this.setText(a);b=m.getBBox();a.itemWidth=a.checkboxOffset=e.itemWidth||a.legendItemWidth||b.width+n;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||b.height||this.symbolHeight)},layoutItem:function(a){var b=this.options,c=this.padding,e="horizontal"===b.layout,d=a.itemHeight,
g=b.itemMarginBottom||0,n=this.itemMarginTop,p=e?l(b.itemDistance,20):0,m=b.width,r=m||this.chart.spacingBox.width-2*c-b.x,b=b.alignColumns&&this.totalItemWidth>r?this.maxItemWidth:a.itemWidth;e&&this.itemX-c+b>r&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+g,this.lastLineHeight=0);this.lastItemY=n+this.itemY+g;this.lastLineHeight=Math.max(d,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=b:(this.itemY+=n+d+g,this.lastLineHeight=d);this.offsetWidth=m||Math.max((e?this.itemX-
c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];g(this.chart.series,function(b){var c=b&&b.options;b&&l(c.showInLegend,m(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||("point"===c.legendType?b.data:b)))});d(this,"afterGetAllItems",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,
e=this.options,d=this.getAlignment();d&&g([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(f,g){f.test(d)&&!m(a[g])&&(c[v[g]]=Math.max(c[v[g]],c.legend[(g+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][g]*e[g%2?"x":"y"]+l(e.margin,12)+b[g]+(0===g&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e="left"===this.options.align;g(this.allItems,function(f){var d,g;d=e;f.xAxis&&f.points&&(f.xAxis.options.reversed&&
(d=!d),d=a.find(d?f.points:f.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),g=f.legendGroup.getBBox().height,b.push({target:f.visible?(d?d.plotY:f.xAxis.height)-.3*g:c.plotHeight,size:g,item:f}))},this);a.distribute(b,c.plotHeight);g(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,p,l,m=this.box,D=this.options,q=this.padding;this.itemX=q;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=
0;e||(this.group=e=b.g("legend").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});D.reversed&&d.reverse();this.allItems=d;this.display=p=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;g(d,this.renderItem,this);g(d,this.layoutItem,this);d=(D.width||this.offsetWidth)+
q;l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l);l+=q;m||(this.box=m=b.rect().addClass("highcharts-legend-box").attr({r:D.borderRadius}).add(e),m.isNew=!0);0<d&&0<l&&(m[m.isNew?"attr":"animate"](m.crisp.call({},{x:0,y:0,width:d,height:l},m.strokeWidth())),m.isNew=!1);m[p?"show":"hide"]();"none"===e.getStyle("display")&&(d=l=0);this.legendWidth=d;this.legendHeight=l;p&&(b=a.spacingBox,/(lth|ct|rth)/.test(this.getAlignment())&&(b=u(b,{y:b.y+a.titleOffset+a.options.title.margin})),
e.align(u(D,{width:d,height:l,verticalAlign:this.proximate?"top":D.verticalAlign}),!0,b));this.proximate||this.positionItems()},handleOverflow:function(a){var b=this,c=this.chart,e=c.renderer,d=this.options,p=d.y,n=this.padding,c=c.spacingBox.height+("top"===d.verticalAlign?-p:p)-n,p=d.maxHeight,m,q=this.clipRect,r=d.navigation,y=l(r.animation,!0),F=r.arrowSize||12,w=this.nav,u=this.pages,h,x=this.allItems,v=function(a){"number"===typeof a?q.attr({height:a}):q&&(b.clipRect=q.destroy(),b.contentGroup.clip());
b.contentGroup.div&&(b.contentGroup.div.style.clip=a?"rect("+n+"px,9999px,"+(n+a)+"px,0)":"auto")};"horizontal"!==d.layout||"middle"===d.verticalAlign||d.floating||(c/=2);p&&(c=Math.min(c,p));u.length=0;a>c&&!1!==r.enabled?(this.clipHeight=m=Math.max(c-20-this.titleHeight-n,0),this.currentPage=l(this.currentPage,1),this.fullHeight=a,g(x,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),k=u.length;if(!k||c-u[k-1]>m&&(h||c)!==u[k-1])u.push(h||c),k++;a.pageIx=k-1;h&&
(x[b-1].pageIx=k-1);b===x.length-1&&c+e-u[k-1]>m&&(u.push(c),a.pageIx=k);c!==h&&(h=c)}),q||(q=b.clipRect=e.clipRect(0,n,9999,0),b.contentGroup.clip(q)),v(m),w||(this.nav=w=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,F,F).on("click",function(){b.scroll(-1,y)}).add(w),this.pager=e.text("",15,10).addClass("highcharts-legend-navigation").add(w),this.down=e.symbol("triangle-down",0,0,F,F).on("click",function(){b.scroll(1,y)}).add(w)),b.scroll(0),a=c):w&&(v(),this.nav=w.destroy(),
this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,d=c.length;a=this.currentPage+a;var g=this.clipHeight,p=this.pager,n=this.padding;a>d&&(a=d);0<a&&(void 0!==b&&e(b,this.chart),this.nav.attr({translateX:n,translateY:g+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({"class":1===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),p.attr({text:a+"/"+d}),this.down.attr({x:18+this.pager.getBBox().width,"class":a===
d?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),this.scrollOffset=-c[a-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=a,this.positionCheckboxes())}};a.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.symbolHeight,e=a.options.squareSymbol;b.legendSymbol=this.chart.renderer.rect(e?(a.symbolWidth-c)/2:0,a.baseline-c+1,e?c:a.symbolWidth,c,l(a.options.symbolRadius,c/2)).addClass("highcharts-point").attr({zIndex:3}).add(b.legendGroup)},
drawLineMarker:function(a){var b=this.options.marker,c,e=a.symbolWidth,d=a.symbolHeight;c=d/2;var g=this.chart.renderer,p=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);this.legendLine=g.path(["M",0,a,"L",e,a]).addClass("highcharts-graph").attr({}).add(p);b&&!1!==b.enabled&&e&&(c=Math.min(l(b.radius,c),c),0===this.symbol.indexOf("url")&&(b=u(b,{width:d,height:d}),c=0),this.legendSymbol=b=g.symbol(this.symbol,e/2-c,a-c,2*c,2*c,b).addClass("highcharts-point").add(p),b.isMarker=!0)}};(/Trident\/7\.0/.test(w.navigator.userAgent)||
q)&&p(a.Legend.prototype,"positionItem",function(a,b){var c=this,e=function(){b._legendItemPos&&a.call(c,b)};e();setTimeout(e)})})(K);(function(a){var A=a.addEvent,C=a.animObject,E=a.attr,m=a.doc,g=a.Axis,d=a.createElement,q=a.defaultOptions,v=a.discardElement,u=a.charts,l=a.defined,e=a.each,c=a.extend,w=a.find,p=a.fireEvent,n=a.grep,b=a.isNumber,f=a.isObject,t=a.isString,G=a.Legend,z=a.marginNames,J=a.merge,D=a.objectEach,B=a.Pointer,r=a.pick,y=a.pInt,F=a.removeEvent,I=a.seriesTypes,M=a.splat,h=
a.syncTimeout,x=a.win,O=a.Chart=function(){this.getArgs.apply(this,arguments)};a.chart=function(a,b,c){return new O(a,b,c)};c(O.prototype,{callbacks:[],getArgs:function(){var a=[].slice.call(arguments);if(t(a[0])||a[0].nodeName)this.renderTo=a.shift();this.init(a[0],a[1])},init:function(b,c){var e,d,k=b.series,f=b.plotOptions||{};p(this,"init",{args:arguments},function(){b.series=null;e=J(q,b);for(d in e.plotOptions)e.plotOptions[d].tooltip=f[d]&&J(f[d].tooltip)||void 0;e.tooltip.userOptions=b.chart&&
b.chart.forExport&&b.tooltip.userOptions||b.tooltip;e.series=b.series=k;this.userOptions=b;var h=e.chart,g=h.events;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=c;this.isResizing=0;this.options=e;this.axes=[];this.series=[];this.time=b.time&&a.keys(b.time).length?new a.Time(b.time):a.time;this.hasCartesianSeries=h.showAxes;var r=this;r.index=u.length;u.push(r);a.chartCount++;g&&D(g,function(a,b){A(r,b,a)});r.xAxis=[];r.yAxis=[];r.pointCount=r.colorCounter=
r.symbolCounter=0;p(r,"afterInit");r.firstRender()})},initSeries:function(b){var c=this.options.chart;(c=I[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].getName())},isInsidePlot:function(a,b,c){var e=c?b:a;a=c?a:b;return 0<=e&&e<=this.plotWidth&&0<=a&&a<=this.plotHeight},redraw:function(b){p(this,"beforeRedraw");var d=this.axes,k=this.series,f=this.pointer,
h=this.legend,g=this.userOptions.legend,r=this.isDirtyLegend,y,l,F=this.hasCartesianSeries,n=this.isDirtyBox,t,x=this.renderer,z=x.isHidden(),m=[];this.setResponsive&&this.setResponsive(!1);a.setAnimation(b,this);z&&this.temporaryDisplay();this.layOutTitles();for(b=k.length;b--;)if(t=k[b],t.options.stacking&&(y=!0,t.isDirty)){l=!0;break}if(l)for(b=k.length;b--;)t=k[b],t.options.stacking&&(t.isDirty=!0);e(k,function(a){a.isDirty&&("point"===a.options.legendType?(a.updateTotals&&a.updateTotals(),r=
!0):g&&(g.labelFormatter||g.labelFormat)&&(r=!0));a.isDirtyData&&p(a,"updatedData")});r&&h&&h.options.enabled&&(h.render(),this.isDirtyLegend=!1);y&&this.getStacks();F&&e(d,function(a){a.updateNames();a.setScale()});this.getMargins();F&&(e(d,function(a){a.isDirty&&(n=!0)}),e(d,function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,m.push(function(){p(a,"afterSetExtremes",c(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(n||y)&&a.redraw()}));n&&this.drawChartBox();p(this,"predraw");e(k,function(a){(n||
a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});f&&f.reset(!0);x.draw();p(this,"redraw");p(this,"render");z&&this.temporaryDisplay(!0);e(m,function(a){a.call()})},get:function(a){function b(b){return b.id===a||b.options&&b.options.id===a}var c,e=this.series,d;c=w(this.axes,b)||w(this.series,b);for(d=0;!c&&d<e.length;d++)c=w(e[d].points||[],b);return c},getAxes:function(){var a=this,b=this.options,c=b.xAxis=M(b.xAxis||{}),b=b.yAxis=M(b.yAxis||{});p(this,"getAxes");e(c,function(a,b){a.index=b;
a.isX=!0});e(b,function(a,b){a.index=b});c=c.concat(b);e(c,function(b){new g(a,b)});p(this,"afterGetAxes")},getSelectedPoints:function(){var a=[];e(this.series,function(b){a=a.concat(n(b.data||[],function(a){return a.selected}))});return a},getSelectedSeries:function(){return n(this.series,function(a){return a.selected})},setTitle:function(a,b,c){var d=this,k=d.options,f;f=k.title=J(k.title,a);k=k.subtitle=J(k.subtitle,b);e([["title",a,f],["subtitle",b,k]],function(a,b){var c=a[0],e=d[c],k=a[1];a=
a[2];e&&k&&(d[c]=e=e.destroy());a&&!e&&(d[c]=d.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+c,zIndex:a.zIndex||4}).add(),d[c].update=function(a){d.setTitle(!b&&a,b&&a)})});d.layOutTitles(c)},layOutTitles:function(a){var b=0,d,k=this.renderer,f=this.spacingBox;e(["title","subtitle"],function(a){var e=this[a],d=this.options[a];a="title"===a?-3:d.verticalAlign?0:b+2;var h;e&&(h=k.fontMetrics(h,e).b,e.css({width:(d.width||f.width+d.widthAdjust)+"px"}).align(c({y:a+h},
d),!1,"spacingBox"),d.floating||d.verticalAlign||(b=Math.ceil(b+e.getBBox(d.useHTML).height)))},this);d=this.titleOffset!==b;this.titleOffset=b;!this.isDirtyBox&&d&&(this.isDirtyBox=this.isDirtyLegend=d,this.hasRendered&&r(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var b=this.options.chart,c=b.width,b=b.height,e=this.renderTo;l(c)||(this.containerWidth=a.getStyle(e,"width"));l(b)||(this.containerHeight=a.getStyle(e,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||
600);this.chartHeight=Math.max(0,a.relativeLength(b,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},temporaryDisplay:function(b){var c=this.renderTo;if(b)for(;c&&c.style;)c.hcOrigStyle&&(a.css(c,c.hcOrigStyle),delete c.hcOrigStyle),c.hcOrigDetached&&(m.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){m.body.contains(c)||c.parentNode||(c.hcOrigDetached=!0,m.body.appendChild(c));if("none"===a.getStyle(c,"display",!1)||c.hcOricDetached)c.hcOrigStyle=
{display:c.style.display,height:c.style.height,overflow:c.style.overflow},b={display:"block",overflow:"hidden"},c!==this.renderTo&&(b.height=0),a.css(c,b),c.offsetWidth||c.style.setProperty("display","block","important");c=c.parentNode;if(c===m.body)break}},setClassName:function(a){this.container.className="highcharts-container "+(a||"")},getContainer:function(){var c,e=this.options,f=e.chart,h,g;c=this.renderTo;var r=a.uniqueKey(),l;c||(this.renderTo=c=f.renderTo);t(c)&&(this.renderTo=c=m.getElementById(c));
c||a.error(13,!0);h=y(E(c,"data-highcharts-chart"));b(h)&&u[h]&&u[h].hasRendered&&u[h].destroy();E(c,"data-highcharts-chart",this.index);c.innerHTML="";f.skipClone||c.offsetWidth||this.temporaryDisplay();this.getChartSize();h=this.chartWidth;g=this.chartHeight;this.container=c=d("div",{id:r},void 0,c);this._cursor=c.style.cursor;this.renderer=new (a[f.renderer]||a.Renderer)(c,h,g,null,f.forExport,e.exporting&&e.exporting.allowHTML);this.setClassName(f.className);for(l in e.defs)this.renderer.definition(e.defs[l]);
this.renderer.chartIndex=this.index;p(this,"afterGetContainer")},getMargins:function(a){var b=this.spacing,c=this.margin,e=this.titleOffset;this.resetMargins();e&&!l(c[0])&&(this.plotTop=Math.max(this.plotTop,e+this.options.title.margin+b[0]));this.legend&&this.legend.display&&this.legend.adjustMargins(c,b);p(this,"getMargins");a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=[0,0,0,0],c=a.margin;a.hasCartesianSeries&&e(a.axes,function(a){a.visible&&a.getOffset()});e(z,
function(e,d){l(c[d])||(a[e]+=b[d])});a.setChartSize()},reflow:function(b){var c=this,e=c.options.chart,d=c.renderTo,f=l(e.width)&&l(e.height),k=e.width||a.getStyle(d,"width"),e=e.height||a.getStyle(d,"height"),d=b?b.target:x;if(!f&&!c.isPrinting&&k&&e&&(d===x||d===m)){if(k!==c.containerWidth||e!==c.containerHeight)a.clearTimeout(c.reflowTimeout),c.reflowTimeout=h(function(){c.container&&c.setSize(void 0,void 0,!1)},b?100:0);c.containerWidth=k;c.containerHeight=e}},setReflow:function(a){var b=this;
!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=A(x,"resize",function(a){b.reflow(a)}),A(this,"destroy",this.unbindReflow))},setSize:function(b,c,d){var f=this,k=f.renderer;f.isResizing+=1;a.setAnimation(d,f);f.oldChartHeight=f.chartHeight;f.oldChartWidth=f.chartWidth;void 0!==b&&(f.options.chart.width=b);void 0!==c&&(f.options.chart.height=c);f.getChartSize();f.setChartSize(!0);k.setSize(f.chartWidth,f.chartHeight,d);e(f.axes,function(a){a.isDirty=
!0;a.setScale()});f.isDirtyLegend=!0;f.isDirtyBox=!0;f.layOutTitles();f.getMargins();f.redraw(d);f.oldChartHeight=null;p(f,"resize");h(function(){f&&p(f,"endResize",null,function(){--f.isResizing})},C(void 0).duration)},setChartSize:function(a){var b=this.inverted,c=this.renderer,d=this.chartWidth,f=this.chartHeight,h=this.options.chart,k=this.spacing,g=this.clipOffset,r,y,l,n;this.plotLeft=r=Math.round(this.plotLeft);this.plotTop=y=Math.round(this.plotTop);this.plotWidth=l=Math.max(0,Math.round(d-
r-this.marginRight));this.plotHeight=n=Math.max(0,Math.round(f-y-this.marginBottom));this.plotSizeX=b?n:l;this.plotSizeY=b?l:n;this.plotBorderWidth=h.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:k[3],y:k[0],width:d-k[3]-k[1],height:f-k[0]-k[2]};this.plotBox=c.plotBox={x:r,y:y,width:l,height:n};d=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(d,g[3])/2);c=Math.ceil(Math.max(d,g[0])/2);this.clipBox={x:b,y:c,width:Math.floor(this.plotSizeX-Math.max(d,g[1])/2-b),height:Math.max(0,Math.floor(this.plotSizeY-
Math.max(d,g[2])/2-c))};a||e(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()});p(this,"afterSetChartSize",{skipAxes:a})},resetMargins:function(){var a=this,b=a.options.chart;e(["margin","spacing"],function(c){var d=b[c],h=f(d)?d:[d,d,d,d];e(["Top","Right","Bottom","Left"],function(e,d){a[c][d]=r(b[c+e],h[d])})});e(z,function(b,c){a[b]=r(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,
e=this.chartHeight,d=this.chartBackground,f=this.plotBackground,h=this.plotBorder,g,r,y=this.plotLeft,l=this.plotTop,n=this.plotWidth,F=this.plotHeight,t=this.plotBox,x=this.clipRect,z=this.clipBox,m="animate";d||(this.chartBackground=d=b.rect().addClass("highcharts-background").add(),m="attr");g=r=d.strokeWidth();d[m]({x:r/2,y:r/2,width:c-r-g%2,height:e-r-g%2,r:a.borderRadius});m="animate";f||(m="attr",this.plotBackground=f=b.rect().addClass("highcharts-plot-background").add());f[m](t);x?x.animate({width:z.width,
height:z.height}):this.clipRect=b.clipRect(z);m="animate";h||(m="attr",this.plotBorder=h=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());h[m](h.crisp({x:y,y:l,width:n,height:F},-h.strokeWidth()));this.isDirtyBox=!1;p(this,"afterDrawChartBox")},propFromSeries:function(){var a=this,b=a.options.chart,c,d=a.options.series,f,h;e(["inverted","angular","polar"],function(e){c=I[b.type||b.defaultSeriesType];h=b[e]||c&&c.prototype[e];for(f=d&&d.length;!h&&f--;)(c=I[d[f].type])&&c.prototype[e]&&
(h=!0);a[e]=h})},linkSeries:function(){var a=this,b=a.series;e(b,function(a){a.linkedSeries.length=0});e(b,function(b){var c=b.options.linkedTo;t(c)&&(c=":previous"===c?a.series[b.index-1]:a.get(c))&&c.linkedParent!==b&&(c.linkedSeries.push(b),b.linkedParent=c,b.visible=r(b.options.visible,c.options.visible,b.visible))});p(this,"afterLinkSeries")},renderSeries:function(){e(this.series,function(a){a.translate();a.render()})},renderLabels:function(){var a=this,b=a.options.labels;b.items&&e(b.items,
function(e){var d=c(b.style,e.style),f=y(d.left)+a.plotLeft,h=y(d.top)+a.plotTop+12;delete d.left;delete d.top;a.renderer.text(e.html,f,h).attr({zIndex:2}).css(d).add()})},render:function(){var a=this.axes,b=this.renderer,c=this.options,d,f,h;this.setTitle();this.legend=new G(this,c.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();c=this.plotWidth;d=this.plotHeight=Math.max(this.plotHeight-21,0);e(a,function(a){a.setScale()});this.getAxisMargins();f=1.1<c/this.plotWidth;
h=1.05<d/this.plotHeight;if(f||h)e(a,function(a){(a.horiz&&f||!a.horiz&&h)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries&&e(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=J(!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&&(x.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,d=b.series,f=b.container,h,g=f&&f.parentNode;p(b,"destroy");b.renderer.forExport?a.erase(u,b):u[b.index]=void 0;a.chartCount--;b.renderTo.removeAttribute("data-highcharts-chart");
F(b);for(h=c.length;h--;)c[h]=c[h].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(h=d.length;h--;)d[h]=d[h].destroy();e("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())});f&&(f.innerHTML="",F(f),g&&v(f));D(b,function(a,c){delete b[c]})},firstRender:function(){var a=this,b=a.options;if(!a.isReadyToRender||
a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();e(b.series||[],function(b){a.initSeries(b)});a.linkSeries();p(a,"beforeRender");B&&(a.pointer=new B(a,b));a.render();if(!a.renderer.imgCount&&a.onload)a.onload();a.temporaryDisplay(!0)}},onload:function(){e([this.callback].concat(this.callbacks),function(a){a&&void 0!==this.index&&a.apply(this,[this])},this);p(this,"load");p(this,"render");l(this.index)&&this.setReflow(this.options.chart.reflow);
this.onload=null}})})(K);(function(a){var A=a.addEvent,C=a.Chart,E=a.each;A(C,"afterSetChartSize",function(m){var g=this.options.chart.scrollablePlotArea;(g=g&&g.minWidth)&&!this.renderer.forExport&&(this.scrollablePixels=g=Math.max(0,g-this.chartWidth))&&(this.plotWidth+=g,this.clipBox.width+=g,m.skipAxes||E(this.axes,function(d){1===d.side?d.getPlotLinePath=function(){var g=this.right,m;this.right=g-d.chart.scrollablePixels;m=a.Axis.prototype.getPlotLinePath.apply(this,arguments);this.right=g;return m}:
(d.setAxisSize(),d.setAxisTranslation())}))});A(C,"render",function(){this.scrollablePixels?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});C.prototype.setUpScrolling=function(){this.scrollingContainer=a.createElement("div",{className:"highcharts-scrolling"},{overflowX:"auto",WebkitOverflowScrolling:"touch"},this.renderTo);this.innerContainer=a.createElement("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);
this.setUpScrolling=null};C.prototype.applyFixed=function(){var m=this.container,g,d,q=!this.fixedDiv;q&&(this.fixedDiv=a.createElement("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2},null,!0),this.renderTo.insertBefore(this.fixedDiv,this.renderTo.firstChild),this.fixedRenderer=g=new a.Renderer(this.fixedDiv,0,0),this.scrollableMask=g.path().attr({fill:a.color(this.options.chart.backgroundColor||"#fff").setOpacity(.85).get(),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),
a.each([this.inverted?".highcharts-xaxis":".highcharts-yaxis",this.inverted?".highcharts-xaxis-labels":".highcharts-yaxis-labels",".highcharts-contextbutton",".highcharts-credits",".highcharts-legend",".highcharts-subtitle",".highcharts-title",".highcharts-legend-checkbox"],function(d){a.each(m.querySelectorAll(d),function(a){(a.namespaceURI===g.SVG_NS?g.box:g.box.parentNode).appendChild(a);a.style.pointerEvents="auto"})}));this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);d=this.chartWidth+
this.scrollablePixels;a.stop(this.container);this.container.style.width=d+"px";this.renderer.boxWrapper.attr({width:d,height:this.chartHeight,viewBox:[0,0,d,this.chartHeight].join(" ")});this.chartBackground.attr({width:d});q&&(d=this.options.chart.scrollablePlotArea,d.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixels*d.scrollPositionX));q=this.axisOffset;d=this.plotTop-q[0]-1;var q=this.plotTop+this.plotHeight+q[2],v=this.plotLeft+this.plotWidth-this.scrollablePixels;this.scrollableMask.attr({d:this.scrollablePixels?
["M",0,d,"L",this.plotLeft-1,d,"L",this.plotLeft-1,q,"L",0,q,"Z","M",v,d,"L",this.chartWidth,d,"L",this.chartWidth,q,"L",v,q,"Z"]:["M",0,0]})}})(K);(function(a){var A,C=a.each,E=a.extend,m=a.erase,g=a.fireEvent,d=a.format,q=a.isArray,v=a.isNumber,u=a.pick,l=a.removeEvent;a.Point=A=function(){};a.Point.prototype={init:function(a,c,d){var e=a.chart.options.chart.colorCount;this.series=a;this.applyOptions(c,d);a.options.colorByPoint?(c=a.colorCounter,a.colorCounter++,a.colorCounter===e&&(a.colorCounter=
0)):c=a.colorIndex;this.colorIndex=u(this.colorIndex,c);a.chart.pointCount++;g(this,"afterInit");return this},applyOptions:function(a,c){var e=this.series,d=e.options.pointValKey||e.pointValKey;a=A.prototype.optionsToObject.call(this,a);E(this,a);this.options=this.options?E(this.options,a):a;a.group&&delete this.group;d&&(this.y=this[d]);this.isNull=u(this.isValid&&!this.isValid(),null===this.x||!v(this.y,!0));this.selected&&(this.state="select");"name"in this&&void 0===c&&e.xAxis&&e.xAxis.hasNames&&
(this.x=e.xAxis.nameToX(this));void 0===this.x&&e&&(this.x=void 0===c?e.autoIncrement(this):c);return this},setNestedProperty:function(e,c,d){d=d.split(".");a.reduce(d,function(e,d,b,f){e[d]=f.length-1===b?c:a.isObject(e[d],!0)?e[d]:{};return e[d]},e);return e},optionsToObject:function(e){var c={},d=this.series,g=d.options.keys,l=g||d.pointArrayMap||["y"],b=l.length,f=0,t=0;if(v(e)||null===e)c[l[0]]=e;else if(q(e))for(!g&&e.length>b&&(d=typeof e[0],"string"===d?c.name=e[0]:"number"===d&&(c.x=e[0]),
f++);t<b;)g&&void 0===e[f]||(0<l[t].indexOf(".")?a.Point.prototype.setNestedProperty(c,e[f],l[t]):c[l[t]]=e[f]),f++,t++;else"object"===typeof e&&(c=e,e.dataLabels&&(d._hasPointLabels=!0),e.marker&&(d._hasPointMarkers=!0));return c},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,c=a.zones,a=a.zoneAxis||"y",d=0,g;for(g=c[d];this[a]>=g.value;)g=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=g&&g.color&&!this.options.color?g.color:this.nonZonedColor;return g},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),m(c,this),c.length||(a.hoverPoints=null));
if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)l(this),this.destroyElements();this.legendItem&&a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].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 c=this.series,e=c.tooltipOptions,g=u(e.valueDecimals,""),l=e.valuePrefix||"",b=e.valueSuffix||"";C(c.pointArrayMap||["y"],function(c){c="{point."+c;if(l||b)a=a.replace(RegExp(c+"}","g"),l+c+"}"+b);a=a.replace(RegExp(c+"}","g"),c+":,."+g+"f}")});return d(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var e=this,l=this.series.options;(l.point.events[a]||e.options&&e.options.events&&e.options.events[a])&&
this.importEvents();"click"===a&&l.allowPointSelect&&(d=function(a){e.select&&e.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});g(this,a,c,d)},visible:!0}})(K);(function(a){var A=a.addEvent,C=a.animObject,E=a.arrayMax,m=a.arrayMin,g=a.correctFloat,d=a.defaultOptions,q=a.defined,v=a.each,u=a.erase,l=a.extend,e=a.fireEvent,c=a.grep,w=a.isArray,p=a.isNumber,n=a.isString,b=a.merge,f=a.objectEach,t=a.pick,G=a.removeEvent,z=a.splat,J=a.SVGElement,D=a.syncTimeout,B=a.win;a.Series=a.seriesType("line",null,
{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,radius:4,states:{normal:{animation:!0},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:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10}},
select:{}},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,d,g=a.series,h;c.chart=a;c.options=b=c.setOptions(b);c.linkedSeries=[];c.bindAxes();l(c,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});d=b.events;f(d,function(a,b){A(c,b,a)});if(d&&d.click||b.point&&b.point.events&&
b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;c.getColor();c.getSymbol();v(c.parallelArrays,function(a){c[a+"Data"]=[]});c.setData(b.data,!1);c.isCartesian&&(a.hasCartesianSeries=!0);g.length&&(h=g[g.length-1]);c._i=t(h&&h._i,-1)+1;a.orderSeries(this.insert(g));e(this,"afterInit")},insert:function(a){var b=this.options.index,c;if(p(b)){for(c=a.length;c--;)if(b>=t(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return t(c,a.length-
1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;v(b.axisTypes||[],function(f){v(e[f],function(a){d=a.options;if(c[f]===d.index||void 0!==c[f]&&c[f]===d.id||void 0===c[f]&&0===d.index)b.insert(a.series),b[f]=a,a.isDirty=!0});b[f]||b.optionalAxis===f||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,e=arguments,d=p(b)?function(e){var d="y"===e&&c.toYData?c.toYData(a):a[e];c[e+"Data"][b]=d}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(e,2))};
v(c.parallelArrays,d)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=t(b,a.pointStart,0);this.pointInterval=c=t(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),"day"===e?d.set("Date",a,d.get("Date",a)+c):"month"===e?d.set("Month",a,d.get("Month",a)+c):"year"===e&&d.set("FullYear",a,d.get("FullYear",a)+c),c=a.getTime()-b);this.xIncrement=b+c;return b},setOptions:function(a){var c=this.chart,f=c.options,g=f.plotOptions,r=(c.userOptions||
{}).plotOptions||{},h=g[this.type];this.userOptions=a;c=b(h,g.series,a);this.tooltipOptions=b(d.tooltip,d.plotOptions.series&&d.plotOptions.series.tooltip,d.plotOptions[this.type].tooltip,f.tooltip.userOptions,g.series&&g.series.tooltip,g[this.type].tooltip,a.tooltip);this.stickyTracking=t(a.stickyTracking,r[this.type]&&r[this.type].stickyTracking,r.series&&r.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:c.stickyTracking);null===h.marker&&delete c.marker;this.zoneAxis=
c.zoneAxis;a=this.zones=(c.zones||[]).slice();!c.negativeColor&&!c.negativeFillColor||c.zones||a.push({value:c[this.zoneAxis+"Threshold"]||c.threshold||0,className:"highcharts-negative"});a.length&&q(a[a.length-1].value)&&a.push({});e(this,"afterSetOptions",{options:c});return c},getName:function(){return this.name||"Series "+(this.index+1)},getCyclic:function(a,b,c){var e,d=this.chart,f=this.userOptions,g=a+"Index",r=a+"Counter",k=c?c.length:t(d.options.chart[a+"Count"],d[a+"Count"]);b||(e=t(f[g],
f["_"+g]),q(e)||(d.series.length||(d[r]=0),f["_"+g]=e=d[r]%k,d[r]+=1),c&&(b=c[e]));void 0!==e&&(this[g]=e);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,updateData:function(b){var c=this.options,e=this.points,d=[],f,h,g,r=this.requireSorting;v(b,function(b){var h;h=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},
b).x;p(h)&&(h=a.inArray(h,this.xData,g),-1===h||e[h].touched?d.push(b):b!==c.data[h]?(e[h].update(b,!1,null,!1),e[h].touched=!0,r&&(g=h+1)):e[h]&&(e[h].touched=!0),f=!0)},this);if(f)for(b=e.length;b--;)h=e[b],h.touched||h.remove(!1),h.touched=!1;else if(b.length===e.length)v(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;v(d,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,e,d){var f=this,h=f.points,g=h&&h.length||0,r,k=f.options,l=f.chart,
y=null,m=f.xAxis,z=k.turboThreshold,F=this.xData,q=this.yData,D=(r=f.pointArrayMap)&&r.length,u;b=b||[];r=b.length;c=t(c,!0);!1!==d&&r&&g&&!f.cropped&&!f.hasGroupedData&&f.visible&&!f.isSeriesBoosting&&(u=this.updateData(b));if(!u){f.xIncrement=null;f.colorCounter=0;v(this.parallelArrays,function(a){f[a+"Data"].length=0});if(z&&r>z){for(e=0;null===y&&e<r;)y=b[e],e++;if(p(y))for(e=0;e<r;e++)F[e]=this.autoIncrement(),q[e]=b[e];else if(w(y))if(D)for(e=0;e<r;e++)y=b[e],F[e]=y[0],q[e]=y.slice(1,D+1);else for(e=
0;e<r;e++)y=b[e],F[e]=y[0],q[e]=y[1];else a.error(12)}else for(e=0;e<r;e++)void 0!==b[e]&&(y={series:f},f.pointClass.prototype.applyOptions.apply(y,[b[e]]),f.updateParallelArrays(y,e));q&&n(q[0])&&a.error(14,!0);f.data=[];f.options.data=f.userOptions.data=b;for(e=g;e--;)h[e]&&h[e].destroy&&h[e].destroy();m&&(m.minRange=m.userMinRange);f.isDirty=l.isDirtyBox=!0;f.isDirtyData=!!h;e=!1}"point"===k.legendType&&(this.processData(),this.generatePoints());c&&l.redraw(e)},processData:function(b){var c=this.xData,
e=this.yData,d=c.length,f;f=0;var h,g,r=this.xAxis,k,l=this.options;k=l.cropThreshold;var p=this.getExtremesFromAll||l.getExtremesFromAll,n=this.isCartesian,l=r&&r.val2lin,t=r&&r.isLog,m=this.requireSorting,z,q;if(n&&!this.isDirty&&!r.isDirty&&!this.yAxis.isDirty&&!b)return!1;r&&(b=r.getExtremes(),z=b.min,q=b.max);n&&this.sorted&&!p&&(!k||d>k||this.forceCrop)&&(c[d-1]<z||c[0]>q?(c=[],e=[]):this.yData&&(c[0]<z||c[d-1]>q)&&(f=this.cropData(this.xData,this.yData,z,q),c=f.xData,e=f.yData,f=f.start,h=
!0));for(k=c.length||1;--k;)d=t?l(c[k])-l(c[k-1]):c[k]-c[k-1],0<d&&(void 0===g||d<g)?g=d:0>d&&m&&(a.error(15),m=!1);this.cropped=h;this.cropStart=f;this.processedXData=c;this.processedYData=e;this.closestPointRange=g},cropData:function(a,b,c,e,d){var f=a.length,g=0,r=f,k;d=t(d,this.cropShoulder,1);for(k=0;k<f;k++)if(a[k]>=c){g=Math.max(0,k-d);break}for(c=k;c<f;c++)if(a[c]>e){r=c+d;break}return{xData:a.slice(g,r),yData:b.slice(g,r),start:g,end:r}},generatePoints:function(){var a=this.options,b=a.data,
c=this.data,e,d=this.processedXData,f=this.processedYData,g=this.pointClass,p=d.length,k=this.cropStart||0,n,t=this.hasGroupedData,a=a.keys,m,q=[],D;c||t||(c=[],c.length=b.length,c=this.data=c);a&&t&&(this.options.keys=!1);for(D=0;D<p;D++)n=k+D,t?(m=(new g).init(this,[d[D]].concat(z(f[D]))),m.dataGroup=this.groupMap[D],m.dataGroup.options&&(m.options=m.dataGroup.options,l(m,m.dataGroup.options))):(m=c[n])||void 0===b[n]||(c[n]=m=(new g).init(this,b[n],d[D])),m&&(m.index=n,q[D]=m);this.options.keys=
a;if(c&&(p!==(e=c.length)||t))for(D=0;D<e;D++)D!==k||t||(D+=p),c[D]&&(c[D].destroyElements(),c[D].plotX=void 0);this.data=c;this.points=q},getExtremes:function(a){var b=this.yAxis,c=this.processedXData,e,d=[],f=0;e=this.xAxis.getExtremes();var g=e.min,r=e.max,k,l,n=this.requireSorting?1:0,t,z;a=a||this.stackedYData||this.processedYData||[];e=a.length;for(z=0;z<e;z++)if(l=c[z],t=a[z],k=(p(t,!0)||w(t))&&(!b.positiveValuesOnly||t.length||0<t),l=this.getExtremesFromAll||this.options.getExtremesFromAll||
this.cropped||(c[z+n]||l)>=g&&(c[z-n]||l)<=r,k&&l)if(k=t.length)for(;k--;)"number"===typeof t[k]&&(d[f++]=t[k]);else d[f++]=t;this.dataMin=m(d);this.dataMax=E(d)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,c=this.xAxis,d=c.categories,f=this.yAxis,h=this.points,l=h.length,n=!!this.modifyValue,k=a.pointPlacement,m="between"===k||p(k),z=a.threshold,D=a.startFromThreshold?z:0,u,B,w,v,G=Number.MAX_VALUE;"between"===k&&(k=.5);p(k)&&
(k*=t(a.pointRange||c.pointRange));for(a=0;a<l;a++){var J=h[a],A=J.x,C=J.y;B=J.low;var E=b&&f.stacks[(this.negStacks&&C<(D?0:z)?"-":"")+this.stackKey],K;f.positiveValuesOnly&&null!==C&&0>=C&&(J.isNull=!0);J.plotX=u=g(Math.min(Math.max(-1E5,c.translate(A,0,0,0,1,k,"flags"===this.type)),1E5));b&&this.visible&&!J.isNull&&E&&E[A]&&(v=this.getStackIndicator(v,A,this.index),K=E[A],C=K.points[v.key],B=C[0],C=C[1],B===D&&v.key===E[A].base&&(B=t(p(z)&&z,f.min)),f.positiveValuesOnly&&0>=B&&(B=null),J.total=
J.stackTotal=K.total,J.percentage=K.total&&J.y/K.total*100,J.stackY=C,K.setOffset(this.pointXOffset||0,this.barW||0));J.yBottom=q(B)?Math.min(Math.max(-1E5,f.translate(B,0,1,0,1)),1E5):null;n&&(C=this.modifyValue(C,J));J.plotY=B="number"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,f.translate(C,0,1,0,1)),1E5):void 0;J.isInside=void 0!==B&&0<=B&&B<=f.len&&0<=u&&u<=c.len;J.clientX=m?g(c.translate(A,0,0,0,1,k)):u;J.negative=J.y<(z||0);J.category=d&&void 0!==d[J.x]?d[J.x]:J.x;J.isNull||(void 0!==
w&&(G=Math.min(G,Math.abs(u-w))),w=u);J.zone=this.zones.length&&J.getZone()}this.closestPointRangePx=G;e(this,"afterTranslate")},getValidPoints:function(a,b){var e=this.chart;return c(a||this.points||[],function(a){return b&&!e.isInsidePlot(a.plotX,a.plotY,e.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,f=this.clipBox,g=f||b.clipBox,r=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,g.height,c.xAxis,c.yAxis].join(),k=b[r],l=b[r+
"m"];k||(a&&(g.width=0,d&&(g.x=b.plotSizeX),b[r+"m"]=l=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[r]=k=e.clipRect(g),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||f?k:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=r);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),0===k.count.length&&r&&b[r]&&(f||(b[r]=b[r].destroy()),b[r+"m"]&&(b[r+"m"]=b[r+
"m"].destroy())))},animate:function(a){var b=this.chart,c=C(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+"m"]&&b[e+"m"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();e(this,"afterAnimate");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,f,g=this.options.marker,l,k,p,n=this[this.specialGroup]||this.markerGroup,m,z=t(g.enabled,this.xAxis.isRadial?
!0:null,this.closestPointRangePx>=g.enabledThreshold*g.radius);if(!1!==g.enabled||this._hasPointMarkers)for(c=0;c<a.length;c++)e=a[c],f=e.graphic,l=e.marker||{},k=!!e.marker,d=z&&void 0===l.enabled||l.enabled,p=e.isInside,d&&!e.isNull?(d=t(l.symbol,this.symbol),m=this.markerAttribs(e,e.selected&&"select"),f?f[p?"show":"hide"](!0).animate(m):p&&(0<m.width||e.hasImage)&&(e.graphic=f=b.renderer.symbol(d,m.x,m.y,m.width,m.height,k?l:g).add(n)),f&&f.addClass(e.getClassName(),!0)):f&&(e.graphic=f.destroy())},
markerAttribs:function(a,b){var c=this.options.marker,e=a.marker||{},d=e.symbol||c.symbol,f=t(e.radius,c.radius);b&&(c=c.states[b],b=e.states&&e.states[b],f=t(b&&b.radius,c&&c.radius,f+(c&&c.radiusPlus||0)));a.hasImage=d&&0===d.indexOf("url");a.hasImage&&(f=0);a={x:Math.floor(a.plotX)-f,y:a.plotY-f};f&&(a.width=a.height=2*f);return a},destroy:function(){var b=this,c=b.chart,d=/AppleWebKit\/533/.test(B.navigator.userAgent),g,l,h=b.data||[],p,n;e(b,"destroy");G(b);v(b.axisTypes||[],function(a){(n=b[a])&&
n.series&&(u(n.series,b),n.isDirty=n.forceRedraw=!0)});b.legendItem&&b.chart.legend.destroyItem(b);for(l=h.length;l--;)(p=h[l])&&p.destroy&&p.destroy();b.points=null;a.clearTimeout(b.animationTimeout);f(b,function(a,b){a instanceof J&&!a.survive&&(g=d&&"group"===b?"hide":"destroy",a[g]())});c.hoverSeries===b&&(c.hoverSeries=null);u(c.series,b);c.orderSeries();f(b,function(a,c){delete b[c]})},getGraphPath:function(a,b,c){var e=this,d=e.options,f=d.step,g,r=[],k=[],l;a=a||e.points;(g=a.reversed)&&a.reverse();
(f={right:1,center:2}[f]||f&&3)&&g&&(f=4-f);!d.connectNulls||b||c||(a=this.getValidPoints(a));v(a,function(h,g){var p=h.plotX,n=h.plotY,m=a[g-1];(h.leftCliff||m&&m.rightCliff)&&!c&&(l=!0);h.isNull&&!q(b)&&0<g?l=!d.connectNulls:h.isNull&&!b?l=!0:(0===g||l?g=["M",h.plotX,h.plotY]:e.getPointSpline?g=e.getPointSpline(a,h,g):f?(g=1===f?["L",m.plotX,n]:2===f?["L",(m.plotX+p)/2,m.plotY,"L",(m.plotX+p)/2,n]:["L",p,m.plotY],g.push("L",p,n)):g=["L",p,n],k.push(h.x),f&&(k.push(h.x),2===f&&k.push(h.x)),r.push.apply(r,
g),l=!1)});r.xMap=k;return e.graphPath=r},drawGraph:function(){var a=this,b=(this.gappedPath||this.getGraphPath).call(this),c=[["graph","highcharts-graph"]],c=a.getZonesGraphs(c);v(c,function(c,e){e=c[0];var d=a[e];d?(d.endX=a.preventGraphAnimation?null:b.xMap,d.animate({d:b})):b.length&&(a[e]=a.chart.renderer.path(b).addClass(c[1]).attr({zIndex:1}).add(a.group));d&&(d.startX=b.xMap,d.isArea=b.isArea)})},getZonesGraphs:function(a){v(this.zones,function(b,c){a.push(["zone-graph-"+c,"highcharts-graph highcharts-zone-graph-"+
c+" "+(b.className||"")])},this);return a},applyZones:function(){var a=this,b=this.chart,c=b.renderer,e=this.zones,d,f,g=this.clips||[],l,k=this.graph,p=this.area,n=Math.max(b.chartWidth,b.chartHeight),m=this[(this.zoneAxis||"y")+"Axis"],z,q,D=b.inverted,u,B,w,G,J=!1;e.length&&(k||p)&&m&&void 0!==m.min&&(q=m.reversed,u=m.horiz,k&&!this.showLine&&k.hide(),p&&p.hide(),z=m.getExtremes(),v(e,function(e,h){d=q?u?b.plotWidth:0:u?0:m.toPixels(z.min);d=Math.min(Math.max(t(f,d),0),n);f=Math.min(Math.max(Math.round(m.toPixels(t(e.value,
z.max),!0)),0),n);J&&(d=f=m.toPixels(z.max));B=Math.abs(d-f);w=Math.min(d,f);G=Math.max(d,f);m.isXAxis?(l={x:D?G:w,y:0,width:B,height:n},u||(l.x=b.plotHeight-l.x)):(l={x:0,y:D?G:w,width:n,height:B},u&&(l.y=b.plotWidth-l.y));g[h]?g[h].animate(l):(g[h]=c.clipRect(l),k&&a["zone-graph-"+h].clip(g[h]),p&&a["zone-area-"+h].clip(g[h]));J=e.value>z.max;a.resetZones&&0===f&&(f=void 0)}),this.clips=g)},invertGroups:function(a){function b(){v(["group","markerGroup"],function(b){c[b]&&(e.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,e=c.chart,d;c.xAxis&&(d=A(e,"resize",b),A(c,"destroy",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var f=this[a],g=!f;g&&(this[a]=f=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));f.addClass("highcharts-"+b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(q(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(f.hasClass("highcharts-tracker")?
" highcharts-tracker":""),!0);f.attr({visibility:c})[g?"attr":"animate"](this.getPlotBox());return f},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,f=!!a.animate&&b.renderer.isSVG&&C(d.animation).duration,g=a.visible?"inherit":"hidden",l=d.zIndex,p=a.hasRendered,k=b.seriesGroup,n=b.inverted;c=a.plotGroup("group",
"series",g,l,k);a.markerGroup=a.plotGroup("markerGroup","markers",g,l,k);f&&a.animate(!0);c.inverted=a.isCartesian?n:!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(n);!1===d.clip||a.sharedClipKey||p||c.clip(b.clipRect);f&&a.animate();p||(a.animationTimeout=D(function(){a.afterAnimate()},f));a.isDirty=!1;a.hasRendered=!0;e(a,"afterRender")},redraw:function(){var a=
this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:t(e&&e.left,a.plotLeft),translateY:t(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-
e.pos},b)},buildKDTree:function(){function a(c,e,d){var f,g;if(g=c&&c.length)return f=b.kdAxisArray[e%d],c.sort(function(a,b){return a[f]-b[f]}),g=Math.floor(g/2),{point:c[g],left:a(c.slice(0,g),e+1,d),right:a(c.slice(g+1),e+1,d)}}this.buildingKdTree=!0;var b=this,c=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;D(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,h,l){var k=b.point,
p=e.kdAxisArray[h%l],n,r,m=k;r=q(a[d])&&q(k[d])?Math.pow(a[d]-k[d],2):null;n=q(a[f])&&q(k[f])?Math.pow(a[f]-k[f],2):null;n=(r||0)+(n||0);k.dist=q(n)?Math.sqrt(n):Number.MAX_VALUE;k.distX=q(r)?Math.sqrt(r):Number.MAX_VALUE;p=a[p]-k[p];n=0>p?"left":"right";r=0>p?"right":"left";b[n]&&(n=c(a,b[n],h+1,l),m=n[g]<m[g]?n:k);b[r]&&Math.sqrt(p*p)<m[g]&&(a=c(a,b[r],h+1,l),m=a[g]<m[g]?a:m);return m}var e=this,d=this.kdAxisArray[0],f=this.kdAxisArray[1],g=b?"distX":"dist";b=-1<e.options.findNearestPointBy.indexOf("y")?
2:1;this.kdTree||this.buildingKdTree||this.buildKDTree();if(this.kdTree)return c(a,this.kdTree,b,b)}})})(K);(function(a){var A=a.Axis,C=a.Chart,E=a.correctFloat,m=a.defined,g=a.destroyObjectProperties,d=a.each,q=a.format,v=a.objectEach,u=a.pick,l=a.Series;a.StackItem=function(a,c,d,g,l){var b=a.chart.inverted;this.axis=a;this.isNegative=d;this.options=c;this.x=g;this.total=null;this.points={};this.stack=l;this.rightCliff=this.leftCliff=0;this.alignOptions={align:c.align||(b?d?"left":"right":"center"),
verticalAlign:c.verticalAlign||(b?"middle":d?"bottom":"top"),y:u(c.y,b?4:d?14:-6),x:u(c.x,b?d?-6:6:0)};this.textAlign=c.textAlign||(b?d?"right":"left":"center")};a.StackItem.prototype={destroy:function(){g(this,this.axis)},render:function(a){var c=this.axis.chart,e=this.options,d=e.format,d=d?q(d,this,c.time):e.formatter.call(this);this.label?this.label.attr({text:d,visibility:"hidden"}):this.label=c.renderer.text(d,null,null,e.useHTML).css(e.style).attr({align:this.textAlign,rotation:e.rotation,
visibility:"hidden"}).add(a);this.label.labelrank=c.plotHeight},setOffset:function(a,c){var e=this.axis,d=e.chart,g=e.translate(e.usePercentage?100:this.total,0,0,0,1),b=e.translate(0),b=m(g)&&Math.abs(g-b);a=d.xAxis[0].translate(this.x)+a;e=m(g)&&this.getStackBox(d,this,a,g,c,b,e);(c=this.label)&&e&&(c.align(this.alignOptions,null,e),e=c.alignAttr,c[!1===this.options.crop||d.isInsidePlot(e.x,e.y)?"show":"hide"](!0))},getStackBox:function(a,c,d,g,l,b,f){var e=c.axis.reversed,n=a.inverted;a=f.height+
f.pos-(n?a.plotLeft:a.plotTop);c=c.isNegative&&!e||!c.isNegative&&e;return{x:n?c?g:g-b:d,y:n?a-d-l:c?a-g-b:a-g,width:n?b:l,height:n?l:b}}};C.prototype.getStacks=function(){var a=this;d(a.yAxis,function(a){a.stacks&&a.hasVisibleSeries&&(a.oldStacks=a.stacks)});d(a.series,function(c){!c.options.stacking||!0!==c.visible&&!1!==a.options.chart.ignoreHiddenSeries||(c.stackKey=c.type+u(c.options.stack,""))})};A.prototype.buildStacks=function(){var a=this.series,c=u(this.options.reversedStacks,!0),d=a.length,
g;if(!this.isXAxis){this.usePercentage=!1;for(g=d;g--;)a[c?g:d-g-1].setStackedPoints();for(g=0;g<d;g++)a[g].modifyStacks()}};A.prototype.renderStackTotals=function(){var a=this.chart,c=a.renderer,d=this.stacks,g=this.stackTotalGroup;g||(this.stackTotalGroup=g=c.g("stack-labels").attr({visibility:"visible",zIndex:6}).add());g.translate(a.plotLeft,a.plotTop);v(d,function(a){v(a,function(a){a.render(g)})})};A.prototype.resetStacks=function(){var a=this,c=a.stacks;a.isXAxis||v(c,function(c){v(c,function(e,
d){e.touched<a.stacksTouched?(e.destroy(),delete c[d]):(e.total=null,e.cumulative=null)})})};A.prototype.cleanStacks=function(){var a;this.isXAxis||(this.oldStacks&&(a=this.stacks=this.oldStacks),v(a,function(a){v(a,function(a){a.cumulative=a.total})}))};l.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e=this.processedXData,c=this.processedYData,d=[],g=c.length,l=this.options,b=l.threshold,f=u(l.startFromThreshold&&
b,0),t=l.stack,l=l.stacking,q=this.stackKey,z="-"+q,v=this.negStacks,D=this.yAxis,B=D.stacks,r=D.oldStacks,y,F,I,A,h,x,C;D.stacksTouched+=1;for(h=0;h<g;h++)x=e[h],C=c[h],y=this.getStackIndicator(y,x,this.index),A=y.key,I=(F=v&&C<(f?0:b))?z:q,B[I]||(B[I]={}),B[I][x]||(r[I]&&r[I][x]?(B[I][x]=r[I][x],B[I][x].total=null):B[I][x]=new a.StackItem(D,D.options.stackLabels,F,x,t)),I=B[I][x],null!==C?(I.points[A]=I.points[this.index]=[u(I.cumulative,f)],m(I.cumulative)||(I.base=A),I.touched=D.stacksTouched,
0<y.index&&!1===this.singleStacks&&(I.points[A][0]=I.points[this.index+","+x+",0"][0])):I.points[A]=I.points[this.index]=null,"percent"===l?(F=F?q:z,v&&B[F]&&B[F][x]?(F=B[F][x],I.total=F.total=Math.max(F.total,I.total)+Math.abs(C)||0):I.total=E(I.total+(Math.abs(C)||0))):I.total=E(I.total+(C||0)),I.cumulative=u(I.cumulative,f)+(C||0),null!==C&&(I.points[A].push(I.cumulative),d[h]=I.cumulative);"percent"===l&&(D.usePercentage=!0);this.stackedYData=d;D.oldStacks={}}};l.prototype.modifyStacks=function(){var a=
this,c=a.stackKey,g=a.yAxis.stacks,l=a.processedXData,n,b=a.options.stacking;a[b+"Stacker"]&&d([c,"-"+c],function(c){for(var d=l.length,e,f;d--;)if(e=l[d],n=a.getStackIndicator(n,e,a.index,c),f=(e=g[c]&&g[c][e])&&e.points[n.key])a[b+"Stacker"](f,e,d)})};l.prototype.percentStacker=function(a,c,d){c=c.total?100/c.total:0;a[0]=E(a[0]*c);a[1]=E(a[1]*c);this.stackedYData[d]=a[1]};l.prototype.getStackIndicator=function(a,c,d,g){!m(a)||a.x!==c||g&&a.key!==g?a={x:c,index:0,key:g}:a.index++;a.key=[d,c,a.index].join();
return a}})(K);(function(a){var A=a.addEvent,C=a.Axis,E=a.createElement,m=a.css,g=a.defined,d=a.each,q=a.erase,v=a.extend,u=a.fireEvent,l=a.inArray,e=a.isNumber,c=a.isObject,w=a.isArray,p=a.merge,n=a.objectEach,b=a.pick,f=a.Point,t=a.Series,G=a.seriesTypes,z=a.setAnimation,J=a.splat;v(a.Chart.prototype,{addSeries:function(a,c,d){var e,f=this;a&&(c=b(c,!0),u(f,"addSeries",{options:a},function(){e=f.initSeries(a);f.isDirtyLegend=!0;f.linkSeries();u(f,"afterAddSeries");c&&f.redraw(d)}));return e},addAxis:function(a,
c,d,e){var f=c?"xAxis":"yAxis",g=this.options;a=p(a,{index:this[f].length,isX:c});c=new C(this,a);g[f]=J(g[f]||{});g[f].push(a);b(d,!0)&&this.redraw(e);return c},showLoading:function(a){var b=this,c=b.options,d=b.loadingDiv,e=function(){d&&m(d,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};d||(b.loadingDiv=d=E("div",{className:"highcharts-loading highcharts-loading-hidden"},null,b.container),b.loadingSpan=E("span",{className:"highcharts-loading-inner"},
null,d),A(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 time tooltip".split(" "),update:function(a,c,f,m){var r=this,z={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle"},t=a.chart,h,q,D=[];u(r,"update",{options:a});if(t){p(!0,r.options.chart,t);"className"in t&&r.setClassName(t.className);"reflow"in t&&r.setReflow(t.reflow);if("inverted"in t||"polar"in t||"type"in t)r.propFromSeries(),h=!0;"alignTicks"in t&&(h=!0);n(t,function(a,b){-1!==
l("chart."+b,r.propsRequireUpdateSeries)&&(q=!0);-1!==l(b,r.propsRequireDirtyBox)&&(r.isDirtyBox=!0)})}a.plotOptions&&p(!0,this.options.plotOptions,a.plotOptions);n(a,function(a,b){if(r[b]&&"function"===typeof r[b].update)r[b].update(a,!1);else if("function"===typeof r[z[b]])r[z[b]](a);"chart"!==b&&-1!==l(b,r.propsRequireUpdateSeries)&&(q=!0)});d("xAxis yAxis zAxis series colorAxis pane".split(" "),function(b){var c;a[b]&&("series"===b&&(c=[],d(r[b],function(a,b){a.options.isInternal||c.push(b)})),
d(J(a[b]),function(a,d){(d=g(a.id)&&r.get(a.id)||r[b][c?c[d]:d])&&d.coll===b&&(d.update(a,!1),f&&(d.touched=!0));if(!d&&f)if("series"===b)r.addSeries(a,!1).touched=!0;else if("xAxis"===b||"yAxis"===b)r.addAxis(a,"xAxis"===b,!1).touched=!0}),f&&d(r[b],function(a){a.touched||a.options.isInternal?delete a.touched:D.push(a)}))});d(D,function(a){a.remove(!1)});h&&d(r.axes,function(a){a.update({},!1)});q&&d(r.series,function(a){a.update({},!1)});a.loading&&p(!0,r.options.loading,a.loading);h=t&&t.width;
t=t&&t.height;e(h)&&h!==r.chartWidth||e(t)&&t!==r.chartHeight?r.setSize(h,t,m):b(c,!0)&&r.redraw(m);u(r,"afterUpdate",{options:a})},setSubtitle:function(a){this.setTitle(void 0,a)}});v(f.prototype,{update:function(a,d,e,f){function g(){l.applyOptions(a);null===l.y&&h&&(l.graphic=h.destroy());c(a,!0)&&(h&&h.element&&a&&a.marker&&void 0!==a.marker.symbol&&(l.graphic=h.destroy()),a&&a.dataLabels&&l.dataLabel&&(l.dataLabel=l.dataLabel.destroy()),l.connector&&(l.connector=l.connector.destroy()));r=l.index;
n.updateParallelArrays(l,r);k.data[r]=c(k.data[r],!0)||c(a,!0)?l.options:b(a,k.data[r]);n.isDirty=n.isDirtyData=!0;!n.fixedBox&&n.hasCartesianSeries&&(p.isDirtyBox=!0);"point"===k.legendType&&(p.isDirtyLegend=!0);d&&p.redraw(e)}var l=this,n=l.series,h=l.graphic,r,p=n.chart,k=n.options;d=b(d,!0);!1===f?g():l.firePointEvent("update",{options:a},g)},remove:function(a,b){this.series.removePoint(l(this,this.series.data),a,b)}});v(t.prototype,{addPoint:function(a,c,d,e){var f=this.options,g=this.data,l=
this.chart,h=this.xAxis,h=h&&h.hasNames&&h.names,n=f.data,r,k,p=this.xData,m,t;c=b(c,!0);r={series:this};this.pointClass.prototype.applyOptions.apply(r,[a]);t=r.x;m=p.length;if(this.requireSorting&&t<p[m-1])for(k=!0;m&&p[m-1]>t;)m--;this.updateParallelArrays(r,"splice",m,0,0);this.updateParallelArrays(r,m);h&&r.name&&(h[t]=r.name);n.splice(m,0,a);k&&(this.data.splice(m,0,null),this.processData());"point"===f.legendType&&this.generatePoints();d&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(r,
"shift"),n.shift()));this.isDirtyData=this.isDirty=!0;c&&l.redraw(e)},removePoint:function(a,c,d){var e=this,f=e.data,g=f[a],l=e.points,h=e.chart,n=function(){l&&l.length===f.length&&l.splice(a,1);f.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(g||{series:e},"splice",a,1);g&&g.destroy();e.isDirty=!0;e.isDirtyData=!0;c&&h.redraw()};z(d,h);c=b(c,!0);g?g.firePointEvent("remove",null,n):n()},remove:function(a,c,d){function e(){f.destroy();g.isDirtyLegend=g.isDirtyBox=!0;g.linkSeries();
b(a,!0)&&g.redraw(c)}var f=this,g=f.chart;!1!==d?u(f,"remove",null,e):e()},update:function(c,e){var f=this,g=f.chart,n=f.userOptions,m=f.oldType||f.type,t=c.type||n.type||g.options.chart.type,h=G[m].prototype,z,q=["group","markerGroup","dataLabelsGroup"],k=["navigatorSeries","baseSeries"],D=f.finishedAnimating&&{animation:!1},B=["data","name","turboThreshold"],w=a.keys(c),J=0<w.length;d(w,function(a){-1===l(a,B)&&(J=!1)});if(J)c.data&&this.setData(c.data,!1),c.name&&this.setName(c.name,!1);else{k=
q.concat(k);d(k,function(a){k[a]=f[a];delete f[a]});c=p(n,D,{index:f.index,pointStart:b(n.pointStart,f.xData[0])},{data:f.options.data},c);f.remove(!1,null,!1);for(z in h)f[z]=void 0;G[t||m]?v(f,G[t||m].prototype):a.error(17,!0);d(k,function(a){f[a]=k[a]});f.init(g,c);c.zIndex!==n.zIndex&&d(q,function(a){f[a]&&f[a].attr({zIndex:c.zIndex})});f.oldType=m;g.linkSeries()}u(this,"afterUpdate");b(e,!0)&&g.redraw(J?void 0:!1)},setName:function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=
!0}});v(C.prototype,{update:function(a,c){var d=this.chart,e=a&&a.events||{};a=p(this.userOptions,a);d.options[this.coll].indexOf&&(d.options[this.coll][d.options[this.coll].indexOf(this.userOptions)]=a);n(d.options[this.coll].events,function(a,b){"undefined"===typeof e[b]&&(e[b]=void 0)});this.destroy(!0);this.init(d,v(a,{events:e}));d.isDirtyBox=!0;b(c,!0)&&d.redraw()},remove:function(a){for(var c=this.chart,e=this.coll,f=this.series,g=f.length;g--;)f[g]&&f[g].remove(!1);q(c.axes,this);q(c[e],this);
w(c.options[e])?c.options[e].splice(this.options.index,1):delete c.options[e];d(c[e],function(a,b){a.options.index=a.userOptions.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)}})})(K);(function(a){var A=a.each,C=a.map,E=a.pick,m=a.Series,g=a.seriesType;g("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(d){var g=[],m=[],u=this.xAxis,l=this.yAxis,
e=l.stacks[this.stackKey],c={},w=this.index,p=l.series,n=p.length,b,f=E(l.options.reversedStacks,!0)?1:-1,t;d=d||this.points;if(this.options.stacking){for(t=0;t<d.length;t++)d[t].leftNull=d[t].rightNull=null,c[d[t].x]=d[t];a.objectEach(e,function(a,b){null!==a.total&&m.push(b)});m.sort(function(a,b){return a-b});b=C(p,function(){return this.visible});A(m,function(a,d){var p=0,z,q;if(c[a]&&!c[a].isNull)g.push(c[a]),A([-1,1],function(g){var l=1===g?"rightNull":"leftNull",p=0,r=e[m[d+g]];if(r)for(t=
w;0<=t&&t<n;)z=r.points[t],z||(t===w?c[a][l]=!0:b[t]&&(q=e[a].points[t])&&(p-=q[1]-q[0])),t+=f;c[a][1===g?"rightCliff":"leftCliff"]=p});else{for(t=w;0<=t&&t<n;){if(z=e[a].points[t]){p=z[1];break}t+=f}p=l.translate(p,0,1,0,1);g.push({isNull:!0,plotX:u.translate(a,0,0,0,1),x:a,plotY:p,yBottom:p})}})}return g},getGraphPath:function(a){var d=m.prototype.getGraphPath,g=this.options,u=g.stacking,l=this.yAxis,e,c,w=[],p=[],n=this.index,b,f=l.stacks[this.stackKey],t=g.threshold,G=l.getThreshold(g.threshold),
z,g=g.connectNulls||"percent"===u,J=function(c,d,e){var g=a[c];c=u&&f[g.x].points[n];var m=g[e+"Null"]||0;e=g[e+"Cliff"]||0;var r,z,g=!0;e||m?(r=(m?c[0]:c[1])+e,z=c[0]+e,g=!!m):!u&&a[d]&&a[d].isNull&&(r=z=t);void 0!==r&&(p.push({plotX:b,plotY:null===r?G:l.getThreshold(r),isNull:g,isCliff:!0}),w.push({plotX:b,plotY:null===z?G:l.getThreshold(z),doCurve:!1}))};a=a||this.points;u&&(a=this.getStackPoints(a));for(e=0;e<a.length;e++)if(c=a[e].isNull,b=E(a[e].rectPlotX,a[e].plotX),z=E(a[e].yBottom,G),!c||
g)g||J(e,e-1,"left"),c&&!u&&g||(p.push(a[e]),w.push({x:e,plotX:b,plotY:z})),g||J(e,e+1,"right");e=d.call(this,p,!0,!0);w.reversed=!0;c=d.call(this,w,!0,!0);c.length&&(c[0]="L");c=e.concat(c);d=d.call(this,p,!1,g);c.xMap=e.xMap;this.areaPath=c;return d},drawGraph:function(){this.areaPath=[];m.prototype.drawGraph.apply(this);var a=this,g=this.areaPath,v=this.options,u=[["area","highcharts-area"]];A(this.zones,function(a,d){u.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+a.className])});
A(u,function(d){var e=d[0],c=a[e];c?(c.endX=a.preventGraphAnimation?null:g.xMap,c.animate({d:g})):(c=a[e]=a.chart.renderer.path(g).addClass(d[1]).attr({zIndex:0}).add(a.group),c.isArea=!0);c.startX=g.xMap;c.shiftUnit=v.step?2:1})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle})})(K);(function(a){var A=a.pick;a=a.seriesType;a("spline","line",{},{getPointSpline:function(a,E,m){var g=E.plotX,d=E.plotY,q=a[m-1];m=a[m+1];var v,u,l,e;if(q&&!q.isNull&&!1!==q.doCurve&&!E.isCliff&&m&&!m.isNull&&!1!==
m.doCurve&&!E.isCliff){a=q.plotY;l=m.plotX;m=m.plotY;var c=0;v=(1.5*g+q.plotX)/2.5;u=(1.5*d+a)/2.5;l=(1.5*g+l)/2.5;e=(1.5*d+m)/2.5;l!==v&&(c=(e-u)*(l-g)/(l-v)+d-e);u+=c;e+=c;u>a&&u>d?(u=Math.max(a,d),e=2*d-u):u<a&&u<d&&(u=Math.min(a,d),e=2*d-u);e>m&&e>d?(e=Math.max(m,d),u=2*d-e):e<m&&e<d&&(e=Math.min(m,d),u=2*d-e);E.rightContX=l;E.rightContY=e}E=["C",A(q.rightContX,q.plotX),A(q.rightContY,q.plotY),A(v,g),A(u,d),g,d];q.rightContX=q.rightContY=null;return E}})})(K);(function(a){var A=a.seriesTypes.area.prototype,
C=a.seriesType;C("areaspline","spline",a.defaultPlotOptions.area,{getStackPoints:A.getStackPoints,getGraphPath:A.getGraphPath,drawGraph:A.drawGraph,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle})})(K);(function(a){var A=a.animObject,C=a.each,E=a.extend,m=a.isNumber,g=a.merge,d=a.pick,q=a.Series,v=a.seriesType,u=a.svg;v("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(){q.prototype.init.apply(this,arguments);var a=this,d=a.chart;d.hasRendered&&C(d.series,function(c){c.type===a.type&&(c.isDirty=!0)})},getColumnMetrics:function(){var a=this,e=a.options,c=a.xAxis,g=a.yAxis,p=c.options.reversedStacks,p=c.reversed&&!p||!c.reversed&&p,n,b={},f=0;!1===e.grouping?
f=1:C(a.chart.series,function(c){var d=c.options,e=c.yAxis,l;c.type!==a.type||!c.visible&&a.chart.options.chart.ignoreHiddenSeries||g.len!==e.len||g.pos!==e.pos||(d.stacking?(n=c.stackKey,void 0===b[n]&&(b[n]=f++),l=b[n]):!1!==d.grouping&&(l=f++),c.columnIndex=l)});var m=Math.min(Math.abs(c.transA)*(c.ordinalSlope||e.pointRange||c.closestPointRange||c.tickInterval||1),c.len),q=m*e.groupPadding,z=(m-2*q)/(f||1),e=Math.min(e.maxPointWidth||c.len,d(e.pointWidth,z*(1-2*e.pointPadding)));a.columnMetrics=
{width:e,offset:(z-e)/2+(q+((a.columnIndex||0)+(p?1:0))*z-m/2)*(p?-1:1)};return a.columnMetrics},crispCol:function(a,d,c,g){var e=this.chart,l=this.borderWidth,b=-(l%2?.5:0),l=l%2?.5:1;e.inverted&&e.renderer.isVML&&(l+=1);this.options.crisp&&(c=Math.round(a+c)+b,a=Math.round(a)+b,c-=a);g=Math.round(d+g)+l;b=.5>=Math.abs(d)&&.5<g;d=Math.round(d)+l;g-=d;b&&g&&(--d,g+=1);return{x:a,y:d,width:c,height:g}},translate:function(){var a=this,e=a.chart,c=a.options,g=a.dense=2>a.closestPointRange*a.xAxis.transA,
g=a.borderWidth=d(c.borderWidth,g?0:1),m=a.yAxis,n=c.threshold,b=a.translatedThreshold=m.getThreshold(n),f=d(c.minPointLength,5),t=a.getColumnMetrics(),u=t.width,z=a.barW=Math.max(u,1+2*g),v=a.pointXOffset=t.offset;e.inverted&&(b-=.5);c.pointPadding&&(z=Math.ceil(z));q.prototype.translate.apply(a);C(a.points,function(c){var g=d(c.yBottom,b),l=999+Math.abs(g),l=Math.min(Math.max(-l,c.plotY),m.len+l),p=c.plotX+v,t=z,q=Math.min(l,g),D,h=Math.max(l,g)-q;f&&Math.abs(h)<f&&(h=f,D=!m.reversed&&!c.negative||
m.reversed&&c.negative,c.y===n&&a.dataMax<=n&&m.min<n&&(D=!D),q=Math.abs(q-b)>f?g-f:b-(D?f:0));c.barX=p;c.pointWidth=u;c.tooltipPos=e.inverted?[m.len+m.pos-e.plotLeft-l,a.xAxis.len-p-t/2,h]:[p+t/2,l+m.pos-e.plotTop,h];c.shapeType="rect";c.shapeArgs=a.crispCol.apply(a,c.isNull?[p,b,t,0]:[p,q,t,h])})},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,
c=a.options,q=d.renderer,p=c.animationLimit||250,n;C(a.points,function(b){var e=b.graphic,l=e&&d.pointCount<p?"animate":"attr";if(m(b.plotY)&&null!==b.y){n=b.shapeArgs;if(e)e[l](g(n));else b.graphic=e=q[b.shapeType](n).add(b.group||a.group);c.borderRadius&&e.attr({r:c.borderRadius});e.addClass(b.getClassName(),!0)}else e&&(b.graphic=e.destroy())})},animate:function(a){var d=this,c=this.yAxis,g=d.options,l=this.chart.inverted,n={},b=l?"translateX":"translateY",f;u&&(a?(n.scaleY=.001,a=Math.min(c.pos+
c.len,Math.max(c.pos,c.toPixels(g.threshold))),l?n.translateX=a-c.len:n.translateY=a,d.group.attr(n)):(f=d.group.attr(b),d.group.animate({scaleY:1},E(A(d.options.animation),{step:function(a,e){n[b]=f+e.pos*(c.pos-f);d.group.attr(n)}})),d.animate=null))},remove:function(){var a=this,d=a.chart;d.hasRendered&&C(d.series,function(c){c.type===a.type&&(c.isDirty=!0)});q.prototype.remove.apply(a,arguments)}})})(K);(function(a){a=a.seriesType;a("bar","column",null,{inverted:!0})})(K);(function(a){var A=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&&A.prototype.drawGraph.call(this)}})})(K);(function(a){var A=a.deg2rad,C=a.isNumber,E=a.pick,m=a.relativeLength;a.CenteredSeriesMixin={getCenter:function(){var a=this.options,d=this.chart,q=2*(a.slicedOffset||0),v=d.plotWidth-2*q,d=d.plotHeight-2*q,u=a.center,u=[E(u[0],"50%"),E(u[1],"50%"),a.size||"100%",a.innerSize||0],l=Math.min(v,d),e,c;for(e=0;4>e;++e)c=u[e],a=2>e||2===e&&/%$/.test(c),u[e]=m(c,[v,d,l,u[2]][e])+(a?q:0);u[3]>u[2]&&(u[3]=u[2]);return u},
getStartAndEndRadians:function(a,d){a=C(a)?a:0;d=C(d)&&d>a&&360>d-a?d:a+360;return{start:A*(a+-90),end:A*(d+-90)}}}})(K);(function(a){var A=a.addEvent,C=a.CenteredSeriesMixin,E=a.defined,m=a.each,g=a.extend,d=C.getStartAndEndRadians,q=a.inArray,v=a.noop,u=a.pick,l=a.Point,e=a.Series,c=a.seriesType,w=a.setAnimation;c("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},
ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,d=c.startAngleRad;a||(m(b,function(a){var b=a.graphic,e=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:d,end:d}),b.animate({r:e.r,
start:e.start,end:e.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,d=b.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a<d;a++)e=b[a],c+=g&&!e.visible?0:e.isNull?0:e.y;this.total=c;for(a=0;a<d;a++)e=b[a],e.percentage=0<c&&(e.visible||!g)?e.y/c*100:0,e.total=c},generatePoints:function(){e.prototype.generatePoints.call(this);this.updateTotals()},translate:function(a){this.generatePoints();var c=0,b=this.options,e=b.slicedOffset,g=e+(b.borderWidth||0),
l,m,p,q=d(b.startAngle,b.endAngle),B=this.startAngleRad=q.start,q=(this.endAngleRad=q.end)-B,r=this.points,y,v=b.dataLabels.distance,b=b.ignoreHiddenPoint,w,A=r.length,h;a||(this.center=a=this.getCenter());this.getX=function(b,c,d){p=Math.asin(Math.min((b-a[1])/(a[2]/2+d.labelDistance),1));return a[0]+(c?-1:1)*Math.cos(p)*(a[2]/2+d.labelDistance)};for(w=0;w<A;w++){h=r[w];h.labelDistance=u(h.options.dataLabels&&h.options.dataLabels.distance,v);this.maxLabelDistance=Math.max(this.maxLabelDistance||
0,h.labelDistance);l=B+c*q;if(!b||h.visible)c+=h.percentage/100;m=B+c*q;h.shapeType="arc";h.shapeArgs={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*l)/1E3,end:Math.round(1E3*m)/1E3};p=(m+l)/2;p>1.5*Math.PI?p-=2*Math.PI:p<-Math.PI/2&&(p+=2*Math.PI);h.slicedTranslation={translateX:Math.round(Math.cos(p)*e),translateY:Math.round(Math.sin(p)*e)};m=Math.cos(p)*a[2]/2;y=Math.sin(p)*a[2]/2;h.tooltipPos=[a[0]+.7*m,a[1]+.7*y];h.half=p<-Math.PI/2||p>Math.PI/2?1:0;h.angle=p;l=Math.min(g,h.labelDistance/
5);h.labelPos=[a[0]+m+Math.cos(p)*h.labelDistance,a[1]+y+Math.sin(p)*h.labelDistance,a[0]+m+Math.cos(p)*l,a[1]+y+Math.sin(p)*l,a[0]+m,a[1]+y,0>h.labelDistance?"center":h.half?"right":"left",p]}},drawGraph:null,drawPoints:function(){var a=this,c=a.chart.renderer,b,d,e;m(a.points,function(f){d=f.graphic;f.isNull?d&&(f.graphic=d.destroy()):(e=f.shapeArgs,b=f.getTranslate(),d?d.setRadialReference(a.center).animate(g(e,b)):f.graphic=d=c[f.shapeType](e).setRadialReference(a.center).attr(b).add(a.group),
d.attr({visibility:f.visible?"inherit":"hidden"}),d.addClass(f.getClassName()))})},searchPoint:v,sortByAngle:function(a,c){a.sort(function(a,d){return void 0!==a.angle&&(d.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:v},{init:function(){l.prototype.init.apply(this,arguments);var a=this,c;a.name=u(a.name,"Slice");c=function(b){a.slice("select"===b.type)};A(a,"select",c);A(a,"unselect",c);return a},isValid:function(){return a.isNumber(this.y,
!0)&&0<=this.y},setVisible:function(a,c){var b=this,d=b.series,e=d.chart,g=d.options.ignoreHiddenPoint;c=u(c,g);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,d.options.data[q(b,d.data)]=b.options,m(["graphic","dataLabel","connector","shadowGroup"],function(c){if(b[c])b[c][a?"show":"hide"](!0)}),b.legendItem&&e.legend.colorizeItem(b,a),a||"hover"!==b.state||b.setState(""),g&&(d.isDirty=!0),c&&e.redraw())},slice:function(a,c,b){var d=this.series;w(b,d.chart);u(c,!0);this.sliced=
this.options.sliced=E(a)?a:!this.sliced;d.options.data[q(this,d.data)]=this.options;this.graphic.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-1,start:c.start,end:c.end})}})})(K);(function(a){var A=a.addEvent,C=a.arrayMax,E=a.defined,m=a.each,g=a.extend,d=a.format,
q=a.map,v=a.merge,u=a.noop,l=a.pick,e=a.relativeLength,c=a.Series,w=a.seriesTypes,p=a.some,n=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var f,g=!0,t=b,u=[],r;r=0;var y=t.reducedLen||c;for(f=b.length;f--;)r+=b[f].size;if(r>y){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(r=f=0;r<=y;)r+=b[f].size,f++;u=b.splice(f-1,b.length)}n(b,e);for(b=q(b,function(a){return{size:a.size,targets:[a.target],align:l(a.align,.5)}});g;){for(f=b.length;f--;)g=b[f],r=(Math.min.apply(0,
g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,r-g.size*g.align),c-g.size);f=b.length;for(g=!1;f--;)0<f&&b[f-1].pos+b[f-1].size>b[f].pos&&(b[f-1].size+=b[f].size,b[f-1].targets=b[f-1].targets.concat(b[f].targets),b[f-1].align=.5,b[f-1].pos+b[f-1].size>c&&(b[f-1].pos=c-b[f-1].size),b.splice(f,1),g=!0)}t.push.apply(t,u);f=0;p(b,function(b){var e=0;if(p(b.targets,function(){t[f].pos=b.pos+e;if(Math.abs(t[f].pos-t[f].target)>d)return m(t.slice(0,f+1),function(a){delete a.pos}),t.reducedLen=
(t.reducedLen||c)-.1*c,t.reducedLen>.1*c&&a.distribute(t,c,d),!0;e+=t[f].size;f++}))return!0});n(t,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,"\x3e"===b&&a>c||"\x3c"===b&&a<c||"\x3e\x3d"===b&&a>=c||"\x3c\x3d"===b&&a<=c||"\x3d\x3d"===b&&a==c||"\x3d\x3d\x3d"===b&&a===c?!0:!1):!0}var c=this,e=c.chart,g=c.options,n=g.dataLabels,p=c.points,q,u,r=c.hasRendered||0,y,w,C=l(n.defer,!!g.animation),M=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&
c.dlProcessOptions(n),w=c.plotGroup("dataLabelsGroup","data-labels",C&&!r?"hidden":"visible",n.zIndex||6),C&&(w.attr({opacity:+r}),r||A(c,"afterAnimate",function(){c.visible&&w.show(!0);w[g.animation?"animate":"attr"]({opacity:1},{duration:200})})),u=n,m(p,function(f){var g,h=f.dataLabel,k,m,r=f.connector,p=!h,t;q=f.dlOptions||f.options&&f.options.dataLabels;(g=l(q&&q.enabled,u.enabled)&&!f.isNull)&&(g=!0===b(f,q||n));g&&(n=v(u,q),k=f.getLabelConfig(),t=n[f.formatPrefix+"Format"]||n.format,y=E(t)?
d(t,k,e.time):(n[f.formatPrefix+"Formatter"]||n.formatter).call(k,n),k=n.rotation,m={r:n.borderRadius||0,rotation:k,padding:n.padding,zIndex:1},a.objectEach(m,function(a,b){void 0===a&&delete m[b]}));!h||g&&E(y)?g&&E(y)&&(h?m.text=y:(h=f.dataLabel=k?M.text(y,0,-9999,n.useHTML).addClass("highcharts-data-label"):M.label(y,0,-9999,n.shape,null,null,n.useHTML,null,"data-label"),h.addClass(" highcharts-data-label-color-"+f.colorIndex+" "+(n.className||"")+(n.useHTML?" highcharts-tracker":""))),h.attr(m),
h.added||h.add(w),c.alignDataLabel(f,h,n,null,p)):(f.dataLabel=h=h.destroy(),r&&(f.connector=r.destroy()))});a.fireEvent(this,"afterDrawDataLabels")};c.prototype.alignDataLabel=function(a,c,d,e,m){var b=this.chart,f=b.inverted,n=l(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),r=l(a.plotY,-9999),p=c.getBBox(),t,q=d.rotation,u=d.align,h=this.visible&&(a.series.forceDL||b.isInsidePlot(n,Math.round(r),f)||e&&b.isInsidePlot(n,f?e.x+1:e.y+e.height-1,f)),z="justify"===l(d.overflow,"justify");if(h&&(t=b.renderer.fontMetrics(void 0,
c).b,e=g({x:f?this.yAxis.len-r:n,y:Math.round(f?this.xAxis.len-n:r),width:0,height:0},e),g(d,{width:p.width,height:p.height}),q?(z=!1,n=b.renderer.rotCorr(t,q),n={x:e.x+d.x+e.width/2+n.x,y:e.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*e.height},c[m?"attr":"animate"](n).attr({align:u}),r=(q+720)%360,r=180<r&&360>r,"left"===u?n.y-=r?p.height:0:"center"===u?(n.x-=p.width/2,n.y-=p.height/2):"right"===u&&(n.x-=p.width,n.y-=r?0:p.height),c.placed=!0,c.alignAttr=n):(c.align(d,null,e),n=c.alignAttr),
z&&0<=e.height?a.isLabelJustified=this.justifyDataLabel(c,d,n,p,e,m):l(d.crop,!0)&&(h=b.isInsidePlot(n.x,n.y)&&b.isInsidePlot(n.x+p.width,n.y+p.height)),d.shape&&!q))c[m?"attr":"animate"]({anchorX:f?b.plotWidth-a.plotY:a.plotX,anchorY:f?b.plotHeight-a.plotX:a.plotY});h||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,e,g,l){var b=this.chart,f=c.align,n=c.verticalAlign,m,p,t=a.box?0:a.padding||0;m=d.x+t;0>m&&("right"===f?c.align="left":c.x=-m,p=!0);m=d.x+e.width-t;m>b.plotWidth&&
("left"===f?c.align="right":c.x=b.plotWidth-m,p=!0);m=d.y+t;0>m&&("bottom"===n?c.verticalAlign="top":c.y=-m,p=!0);m=d.y+e.height-t;m>b.plotHeight&&("top"===n?c.verticalAlign="bottom":c.y=b.plotHeight-m,p=!0);p&&(a.placed=!l,a.align(c,null,g));return p};w.pie&&(w.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,e,g=b.chart,n=b.options.dataLabels,p=l(n.connectorPadding,10),q=l(n.connectorWidth,1),u=g.plotWidth,r=g.plotHeight,y=Math.round(g.chartWidth/3),v,w=b.center,A=w[2]/2,h=w[1],x,K,k,
H,S=[[],[]],R,N,Q,L,P=[0,0,0,0];b.visible&&(n.enabled||b._hasPointLabels)&&(m(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),m(d,function(a){a.dataLabel&&(a.visible?(S[a.half].push(a),a.dataLabel._pos=null,a.dataLabel.getBBox().width>y&&(a.dataLabel.css({width:.7*y}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),m(S,function(c,d){var f,
t,q=c.length,z=[],v;if(q)for(b.sortByAngle(c,d-.5),0<b.maxLabelDistance&&(f=Math.max(0,h-A-b.maxLabelDistance),t=Math.min(h+A+b.maxLabelDistance,g.plotHeight),m(c,function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,h-A-a.labelDistance),a.bottom=Math.min(h+A+a.labelDistance,g.plotHeight),v=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPos[1]-a.top+v/2,size:v,rank:a.y},z.push(a.distributeBox))}),f=t+v-f,a.distribute(z,f,f/5)),L=0;L<q;L++)e=c[L],k=e.labelPos,x=e.dataLabel,
Q=!1===e.visible?"hidden":"inherit",N=f=k[1],z&&E(e.distributeBox)&&(void 0===e.distributeBox.pos?Q="hidden":(H=e.distributeBox.size,N=e.top+e.distributeBox.pos)),delete e.positionIndex,R=n.justify?w[0]+(d?-1:1)*(A+e.labelDistance):b.getX(N<e.top+2||N>e.bottom-2?f:N,d,e),x._attr={visibility:Q,align:k[6]},x._pos={x:R+n.x+({left:p,right:-p}[k[6]]||0),y:N+n.y-10},k.x=R,k.y=N,l(n.crop,!0)&&(K=x.getBBox().width,f=null,R-K<p&&1===d?(f=Math.round(K-R+p),P[3]=Math.max(f,P[3])):R+K>u-p&&0===d&&(f=Math.round(R+
K-u+p),P[1]=Math.max(f,P[1])),0>N-H/2?P[0]=Math.max(Math.round(-N+H/2),P[0]):N+H/2>r&&(P[2]=Math.max(Math.round(N+H/2-r),P[2])),x.sideOverflow=f)}),0===C(P)||this.verifyDataLabelOverflow(P))&&(this.placeDataLabels(),q&&m(this.points,function(a){var c;v=a.connector;if((x=a.dataLabel)&&x._pos&&a.visible&&0<a.labelDistance){Q=x._attr.visibility;if(c=!v)a.connector=v=g.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+a.colorIndex+(a.className?" "+a.className:"")).add(b.dataLabelsGroup);
v[c?"attr":"animate"]({d:b.connectorPath(a.labelPos)});v.attr("visibility",Q)}else v&&(a.connector=v.destroy())}))},w.pie.prototype.connectorPath=function(a){var b=a.x,c=a.y;return l(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]]},w.pie.prototype.placeDataLabels=function(){m(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:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?"animate":"attr"](a),b.moved=!0):b&&b.attr({y:-9999}))},this)},w.pie.prototype.alignDataLabel=u,w.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,c=this.options,d=c.center,g=c.minSize||80,l,m=null!==c.size;m||(null!==d[0]?l=Math.max(b[2]-Math.max(a[1],a[3]),g):(l=Math.max(b[2]-a[1]-
a[3],g),b[0]+=(a[3]-a[1])/2),null!==d[1]?l=Math.max(Math.min(l,b[2]-Math.max(a[0],a[2])),g):(l=Math.max(Math.min(l,b[2]-a[0]-a[2]),g),b[1]+=(a[0]-a[2])/2),l<b[2]?(b[2]=l,b[3]=Math.min(e(c.innerSize||0,l),l),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):m=!0);return m});w.column&&(w.column.prototype.alignDataLabel=function(a,d,e,g,m){var b=this.chart.inverted,f=a.series,n=a.dlBox||a.shapeArgs,p=l(a.below,a.plotY>l(this.translatedThreshold,f.yAxis.len)),q=l(e.inside,!!this.options.stacking);
n&&(g=v(n),0>g.y&&(g.height+=g.y,g.y=0),n=g.y+g.height-f.yAxis.len,0<n&&(g.height-=n),b&&(g={x:f.yAxis.len-g.y-g.height,y:f.xAxis.len-g.x-g.width,width:g.height,height:g.width}),q||(b?(g.x+=p?0:g.width,g.width=0):(g.y+=p?g.height:0,g.height=0)));e.align=l(e.align,!b||q?"center":p?"right":"left");e.verticalAlign=l(e.verticalAlign,b||q?"middle":p?"top":"bottom");c.prototype.alignDataLabel.call(this,a,d,e,g,m);a.isLabelJustified&&a.contrastColor&&a.dataLabel.css({color:a.contrastColor})})})(K);(function(a){var A=
a.Chart,C=a.each,E=a.objectEach,m=a.pick;a=a.addEvent;a(A,"render",function(){var a=[];C(this.labelCollectors||[],function(d){a=a.concat(d())});C(this.yAxis||[],function(d){d.options.stackLabels&&!d.options.stackLabels.allowOverlap&&E(d.stacks,function(d){E(d,function(d){a.push(d.label)})})});C(this.series||[],function(d){var g=d.options.dataLabels,v=d.dataLabelCollections||["dataLabel"];(g.enabled||d._hasPointLabels)&&!g.allowOverlap&&d.visible&&C(v,function(g){C(d.points,function(d){d[g]&&d.visible&&
(d[g].labelrank=m(d.labelrank,d.shapeArgs&&d.shapeArgs.height),a.push(d[g]))})})});this.hideOverlappingLabels(a)});A.prototype.hideOverlappingLabels=function(a){var d=a.length,g=this.renderer,m,u,l,e,c,w,p=function(a,b,c,d,e,g,l,m){return!(e>a+c||e+l<a||g>b+d||g+m<b)};l=function(a){var b,c,d,e=2*(a.box?0:a.padding||0);d=0;if(a&&(!a.alignAttr||a.placed))return b=a.alignAttr||{x:a.attr("x"),y:a.attr("y")},c=a.parentGroup,a.width||(d=a.getBBox(),a.width=d.width,a.height=d.height,d=g.fontMetrics(null,
a.element).h),{x:b.x+(c.translateX||0),y:b.y+(c.translateY||0)-d,width:a.width-e,height:a.height-e}};for(u=0;u<d;u++)if(m=a[u])m.oldOpacity=m.opacity,m.newOpacity=1,m.absoluteBox=l(m);a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(u=0;u<d;u++)for(w=(l=a[u])&&l.absoluteBox,m=u+1;m<d;++m)if(c=(e=a[m])&&e.absoluteBox,w&&c&&l!==e&&0!==l.newOpacity&&0!==e.newOpacity&&(c=p(w.x,w.y,w.width,w.height,c.x,c.y,c.width,c.height)))(l.labelrank<e.labelrank?l:e).newOpacity=0;C(a,function(a){var b,
c;a&&(c=a.newOpacity,a.oldOpacity!==c&&(a.alignAttr&&a.placed?(c?a.show(!0):b=function(){a.hide()},a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,b)):a.attr({opacity:c})),a.isOld=!0)})}})(K);(function(a){var A=a.addEvent,C=a.Chart,E=a.createElement,m=a.css,g=a.defaultOptions,d=a.defaultPlotOptions,q=a.each,v=a.extend,u=a.fireEvent,l=a.hasTouch,e=a.inArray,c=a.isObject,w=a.Legend,p=a.merge,n=a.pick,b=a.Point,f=a.Series,t=a.seriesTypes,G;G=a.TrackerMixin={drawTrackerPoint:function(){var a=
this,b=a.chart.pointer,c=function(a){var c=b.getPointFromEvent(a);void 0!==c&&(b.isDirectTouch=!0,c.onMouseOver(a))};q(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||(q(a.trackerGroups,function(d){if(a[d]&&(a[d].addClass("highcharts-tracker").on("mouseover",c).on("mouseout",function(a){b.onTrackerMouseOut(a)}),l))a[d].on("touchstart",c)}),a._hasTracking=!0);u(this,"afterDrawTracker")},
drawTrackerGraph:function(){var a=this,b=a.options.trackByArea,c=[].concat(b?a.areaPath:a.graphPath),d=c.length,e=a.chart,f=e.pointer,g=e.renderer,m=e.options.tooltip.snap,n=a.tracker,h,p=function(){if(e.hoverSeries!==a)a.onMouseOver()};if(d&&!b)for(h=d+1;h--;)"M"===c[h]&&c.splice(h+1,0,c[h+1]-m,c[h+2],"L"),(h&&"M"===c[h]||h===d)&&c.splice(h,0,"L",c[h-2]+m,c[h-1]);n?n.attr({d:c}):a.graph&&(a.tracker=g.path(c).attr({visibility:a.visible?"visible":"hidden",zIndex:2}).addClass(b?"highcharts-tracker-area":
"highcharts-tracker-line").add(a.group),q([a.tracker,a.markerGroup],function(a){a.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",function(a){f.onTrackerMouseOut(a)});if(l)a.on("touchstart",p)}));u(this,"afterDrawTracker")}};t.column&&(t.column.prototype.drawTracker=G.drawTrackerPoint);t.pie&&(t.pie.prototype.drawTracker=G.drawTrackerPoint);t.scatter&&(t.scatter.prototype.drawTracker=G.drawTrackerPoint);v(w.prototype,{setItemEvents:function(a,c,d){var e=this.chart.renderer.boxWrapper,
f="highcharts-legend-"+(a instanceof b?"point":"series")+"-active";(d?c:a.legendGroup).on("mouseover",function(){a.setState("hover");e.addClass(f)}).on("mouseout",function(){e.removeClass(f);a.setState()}).on("click",function(b){var c=function(){a.setVisible&&a.setVisible()};e.removeClass(f);b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):u(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=E("input",{type:"checkbox",className:"highcharts-legend-checkbox",
checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);A(a.checkbox,"click",function(b){u(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}});v(C.prototype,{showResetZoom:function(){function a(){b.zoomOut()}var b=this,c=g.lang,d=b.options.chart.resetZoomButton,e=d.theme,f=e.states,l="chart"===d.relativeTo?null:"plotBox";u(this,"beforeShowResetZoom",null,function(){b.resetZoomButton=b.renderer.button(c.resetZoom,null,
null,a,e,f&&f.hover).attr({align:d.position.align,title:c.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d.position,!1,l)})},zoomOut:function(){u(this,"selection",{resetSelection:!0},this.zoom)},zoom:function(a){var b,d=this.pointer,e=!1,f;!a||a.resetSelection?(q(this.axes,function(a){b=a.zoom()}),d.initiated=!1):q(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&&c(f)&&(this.resetZoomButton=f.destroy());b&&this.redraw(n(this.options.chart.animation,a&&a.animation,100>this.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&q(d,function(a){a.setState()});q("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",g=c[d],h=(b.pointRange||0)/2,l=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,m=b.getExtremes(),k=b.toValue(g-f,!0)+h*l,l=b.toValue(g+b.len-f,!0)-h*l,n=l<k,
g=n?l:k,k=n?k:l,l=Math.min(m.dataMin,h?m.min:b.toValue(b.toPixels(m.min)-b.minPixelPadding)),h=Math.max(m.dataMax,h?m.max:b.toValue(b.toPixels(m.max)+b.minPixelPadding)),n=l-g;0<n&&(k+=n,g=l);n=k-h;0<n&&(k=h,g-=n);b.series.length&&g!==m.min&&k!==m.max&&(b.setExtremes(g,k,!1,!1,{trigger:"pan"}),e=!0);c[d]=f});e&&c.redraw(!1);m(c.container,{cursor:"move"})}});v(b.prototype,{select:function(a,b){var c=this,d=c.series,f=d.chart;a=n(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},
function(){c.selected=c.options.selected=a;d.options.data[e(c,d.data)]=c.options;c.setState(a&&"select");b||q(f.getSelectedPoints(),function(a){a.selected&&a!==c&&(a.selected=a.options.selected=!1,d.options.data[e(a,d.data)]=a.options,a.setState(""),a.firePointEvent("unselect"))})})},onMouseOver:function(a){var b=this.series.chart,c=b.pointer;a=a?c.normalize(a):c.getChartCoordinatesFromPoint(this,b.inverted);c.runPointActions(a,this)},onMouseOut:function(){var a=this.series.chart;this.firePointEvent("mouseOut");
q(a.hoverPoints||[],function(a){a.setState()});a.hoverPoints=a.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var b=this,c=p(b.series.options.point,b.options).events;b.events=c;a.objectEach(c,function(a,c){A(b,c,a)});this.hasImportedEvents=!0}},setState:function(a,b){var c=Math.floor(this.plotX),e=this.plotY,f=this.series,g=f.options.states[a||"normal"]||{},l=d[f.type].marker&&f.options.marker,m=l&&!1===l.enabled,p=l&&l.states&&l.states[a||"normal"]||{},h=!1===p.enabled,q=f.stateMarkerGraphic,
t=this.marker||{},k=f.chart,w=f.halo,v,z=l&&f.markerAttribs;a=a||"";if(!(a===this.state&&!b||this.selected&&"select"!==a||!1===g.enabled||a&&(h||m&&!1===p.enabled)||a&&t.states&&t.states[a]&&!1===t.states[a].enabled)){z&&(v=f.markerAttribs(this,a));if(this.graphic)this.state&&this.graphic.removeClass("highcharts-point-"+this.state),a&&this.graphic.addClass("highcharts-point-"+a),v&&this.graphic.animate(v,n(k.options.chart.animation,p.animation,l.animation)),q&&q.hide();else{if(a&&p)if(l=t.symbol||
f.symbol,q&&q.currentSymbol!==l&&(q=q.destroy()),q)q[b?"animate":"attr"]({x:v.x,y:v.y});else l&&(f.stateMarkerGraphic=q=k.renderer.symbol(l,v.x,v.y,v.width,v.height).add(f.markerGroup),q.currentSymbol=l);q&&(q[a&&k.isInsidePlot(c,e,k.inverted)?"show":"hide"](),q.element.point=this)}(c=g.halo)&&c.size?(w||(f.halo=w=k.renderer.path().add((this.graphic||q).parentGroup)),w.show()[b?"animate":"attr"]({d:this.haloPath(c.size)}),w.attr({"class":"highcharts-halo highcharts-color-"+n(this.colorIndex,f.colorIndex)+
(this.className?" "+this.className:""),zIndex:-1}),w.point=this):w&&w.point&&w.point.haloPath&&w.animate({d:w.point.haloPath(0)},null,w.hide);this.state=a;u(this,"afterSetState")}},haloPath:function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-a,this.plotY-a,2*a,2*a)}});v(f.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&u(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&&u(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();this.setState()},setState:function(a){var b=this;a=a||"";b.state!==a&&(q([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,
f,g=d.options.chart.ignoreHiddenSeries,l=c.visible;f=(c.visible=a=c.options.visible=c.userOptions.visible=void 0===a?!l:a)?"show":"hide";q(["group","dataLabelsGroup","markerGroup","tracker","tt"],function(a){if(c[a])c[a][f]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();e&&d.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&q(d.series,function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});q(c.linkedSeries,function(b){b.setVisible(a,!1)});g&&(d.isDirtyBox=
!0);u(c,f);!1!==b&&d.redraw()},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);u(this,a?"select":"unselect")},drawTracker:G.drawTrackerGraph})})(K);(function(a){var A=a.Chart,C=a.each,E=a.inArray,m=a.isArray,g=a.isObject,d=a.pick,q=a.splat;A.prototype.setResponsive=function(d){var g=this.options.responsive,l=[],e=this.currentResponsive;g&&g.rules&&C(g.rules,function(c){void 0===
c._id&&(c._id=a.uniqueKey());this.matchResponsiveRule(c,l,d)},this);var c=a.merge.apply(0,a.map(l,function(c){return a.find(g.rules,function(a){return a._id===c}).chartOptions})),l=l.toString()||void 0;l!==(e&&e.ruleIds)&&(e&&this.update(e.undoOptions,d),l?(this.currentResponsive={ruleIds:l,mergedOptions:c,undoOptions:this.currentOptions(c)},this.update(c,d)):this.currentResponsive=void 0)};A.prototype.matchResponsiveRule=function(a,g){var l=a.condition;(l.callback||function(){return this.chartWidth<=
d(l.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=d(l.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=d(l.minWidth,0)&&this.chartHeight>=d(l.minHeight,0)}).call(this)&&g.push(a._id)};A.prototype.currentOptions=function(d){function u(d,c,l,p){var e;a.objectEach(d,function(a,d){if(!p&&-1<E(d,["series","xAxis","yAxis"]))for(a=q(a),l[d]=[],e=0;e<a.length;e++)c[d][e]&&(l[d][e]={},u(a[e],c[d][e],l[d][e],p+1));else g(a)?(l[d]=m(a)?[]:{},u(a,c[d]||{},l[d],p+1)):l[d]=c[d]||null})}var l={};u(d,this.options,l,
0);return l}})(K);return K});
//# sourceMappingURL=highcharts.js.map
