/*
 Highcharts JS v6.1.3 (2018-09-12)

 (c) 2009-2016 Torstein Honsi

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