text: (function(Q,K){"object"===typeof module&&module.exports?module.exports=Q.document?K(Q):K:"function"===typeof define&&define.amd?define(function(){return K(Q)}):Q.Highcharts=K(Q)})("undefined"!==typeof window?window:this,function(Q){var K=function(){var a="undefined"===typeof Q?window:Q,C=a.document,H=a.navigator&&a.navigator.userAgent||"",G=C&&C.createElementNS&&!!C.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,t=/(edge|msie|trident)/i.test(H)&&!a.opera,f=-1!==H.indexOf("Firefox"),
      d=-1!==H.indexOf("Chrome"),r=f&&4>parseInt(H.split("Firefox/")[1],10);return a.Highcharts?a.Highcharts.error(16,!0):{product:"Highcharts",version:"6.2.0",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:t,isWebKit:-1!==H.indexOf("AppleWebKit"),isFirefox:f,isChrome:d,isSafari:!d&&-1!==H.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(H),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:["plotTop",
          "marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}();(function(a){a.timers=[];var C=a.charts,H=a.doc,G=a.win;a.error=function(t,f){t=a.isNumber(t)?"Highcharts error #"+t+": www.highcharts.com/errors/"+t:t;if(f)throw Error(t);G.console&&console.log(t)};a.Fx=function(a,f,d){this.options=f;this.elem=a;this.prop=d};a.Fx.prototype={dSetter:function(){var a=this.paths[0],f=this.paths[1],d=[],r=this.now,v=a.length,q;if(1===r)d=this.toD;else if(v===f.length&&1>r)for(;v--;)q=parseFloat(a[v]),
          d[v]=isNaN(q)?f[v]:r*parseFloat(f[v]-q)+q;else d=f;this.elem.attr("d",d,null,!0)},update:function(){var a=this.elem,f=this.prop,d=this.now,r=this.options.step;if(this[f+"Setter"])this[f+"Setter"]();else a.attr?a.element&&a.attr(f,d,null,!0):a.style[f]=d+this.unit;r&&r.call(a,d,this)},run:function(t,f,d){var r=this,v=r.options,q=function(a){return q.stopped?!1:r.step(a)},x=G.requestAnimationFrame||function(a){setTimeout(a,13)},y=function(){for(var b=0;b<a.timers.length;b++)a.timers[b]()||a.timers.splice(b--,
          1);a.timers.length&&x(y)};t!==f||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=f,this.unit=d,this.now=this.start,this.pos=0,q.elem=this.elem,q.prop=this.prop,q()&&1===a.timers.push(q)&&x(y)):(delete v.curAnim[this.prop],v.complete&&0===a.keys(v.curAnim).length&&v.complete.call(this.elem))},step:function(t){var f=+new Date,d,r=this.options,v=this.elem,q=r.complete,x=r.duration,y=r.curAnim;v.attr&&!v.element?t=!1:t||f>=x+this.startTime?(this.now=this.end,this.pos=
          1,this.update(),d=y[this.prop]=!0,a.objectEach(y,function(a){!0!==a&&(d=!1)}),d&&q&&q.call(v),t=!1):(this.pos=r.easing((f-this.startTime)/x),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0);return t},initPath:function(t,f,d){function r(a){var e,l;for(c=a.length;c--;)e="M"===a[c]||"L"===a[c],l=/[a-zA-Z]/.test(a[c+3]),e&&l&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function v(a,g){for(;a.length<l;){a[0]=g[l-a.length];var b=a.slice(0,m);[].splice.apply(a,[0,0].concat(b));e&&(b=
          a.slice(a.length-m),[].splice.apply(a,[a.length,0].concat(b)),c--)}a[0]="M"}function q(a,c){for(var b=(l-a.length)/m;0<b&&b--;)n=a.slice().splice(a.length/u-m,m*u),n[0]=c[l-m-b*m],g&&(n[m-6]=n[m-2],n[m-5]=n[m-1]),[].splice.apply(a,[a.length/u,0].concat(n)),e&&b--}f=f||"";var x,y=t.startX,b=t.endX,g=-1<f.indexOf("C"),m=g?7:3,l,n,c;f=f.split(" ");d=d.slice();var e=t.isArea,u=e?2:1,D;g&&(r(f),r(d));if(y&&b){for(c=0;c<y.length;c++)if(y[c]===b[0]){x=c;break}else if(y[0]===b[b.length-y.length+c]){x=c;D=
          !0;break}void 0===x&&(f=[])}f.length&&a.isNumber(x)&&(l=d.length+x*u*m,D?(v(f,d),q(d,f)):(v(d,f),q(f,d)));return[f,d]},fillSetter:function(){a.Fx.prototype.strokeSetter.apply(this,arguments)},strokeSetter:function(){this.elem.attr(this.prop,a.color(this.start).tweenTo(a.color(this.end),this.pos),null,!0)}};a.merge=function(){var t,f=arguments,d,r={},v=function(d,t){"object"!==typeof d&&(d={});a.objectEach(t,function(y,b){!a.isObject(y,!0)||a.isClass(y)||a.isDOMElement(y)?d[b]=t[b]:d[b]=v(d[b]||{},
      y)});return d};!0===f[0]&&(r=f[1],f=Array.prototype.slice.call(f,2));d=f.length;for(t=0;t<d;t++)r=v(r,f[t]);return r};a.pInt=function(a,f){return parseInt(a,f||10)};a.isString=function(a){return"string"===typeof a};a.isArray=function(a){a=Object.prototype.toString.call(a);return"[object Array]"===a||"[object Array Iterator]"===a};a.isObject=function(t,f){return!!t&&"object"===typeof t&&(!f||!a.isArray(t))};a.isDOMElement=function(t){return a.isObject(t)&&"number"===typeof t.nodeType};a.isClass=function(t){var f=
      t&&t.constructor;return!(!a.isObject(t,!0)||a.isDOMElement(t)||!f||!f.name||"Object"===f.name)};a.isNumber=function(a){return"number"===typeof a&&!isNaN(a)&&Infinity>a&&-Infinity<a};a.erase=function(a,f){for(var d=a.length;d--;)if(a[d]===f){a.splice(d,1);break}};a.defined=function(a){return void 0!==a&&null!==a};a.attr=function(t,f,d){var r;a.isString(f)?a.defined(d)?t.setAttribute(f,d):t&&t.getAttribute&&((r=t.getAttribute(f))||"class"!==f||(r=t.getAttribute(f+"Name"))):a.defined(f)&&a.isObject(f)&&
      a.objectEach(f,function(a,d){t.setAttribute(d,a)});return r};a.splat=function(t){return a.isArray(t)?t:[t]};a.syncTimeout=function(a,f,d){if(f)return setTimeout(a,f,d);a.call(0,d)};a.clearTimeout=function(t){a.defined(t)&&clearTimeout(t)};a.extend=function(a,f){var d;a||(a={});for(d in f)a[d]=f[d];return a};a.pick=function(){var a=arguments,f,d,r=a.length;for(f=0;f<r;f++)if(d=a[f],void 0!==d&&null!==d)return d};a.css=function(t,f){a.isMS&&!a.svg&&f&&void 0!==f.opacity&&(f.filter="alpha(opacity="+
      100*f.opacity+")");a.extend(t.style,f)};a.createElement=function(t,f,d,r,v){t=H.createElement(t);var q=a.css;f&&a.extend(t,f);v&&q(t,{padding:0,border:"none",margin:0});d&&q(t,d);r&&r.appendChild(t);return t};a.extendClass=function(t,f){var d=function(){};d.prototype=new t;a.extend(d.prototype,f);return d};a.pad=function(a,f,d){return Array((f||2)+1-String(a).replace("-","").length).join(d||0)+a};a.relativeLength=function(a,f,d){return/%$/.test(a)?f*parseFloat(a)/100+(d||0):parseFloat(a)};a.wrap=
      function(a,f,d){var r=a[f];a[f]=function(){var a=Array.prototype.slice.call(arguments),q=arguments,x=this;x.proceed=function(){r.apply(x,arguments.length?arguments:q)};a.unshift(r);a=d.apply(this,a);x.proceed=null;return a}};a.datePropsToTimestamps=function(t){a.objectEach(t,function(f,d){a.isObject(f)&&"function"===typeof f.getTime?t[d]=f.getTime():(a.isObject(f)||a.isArray(f))&&a.datePropsToTimestamps(f)})};a.formatSingle=function(t,f,d){var r=/\.([0-9])/,v=a.defaultOptions.lang;/f$/.test(t)?(d=
      (d=t.match(r))?d[1]:-1,null!==f&&(f=a.numberFormat(f,d,v.decimalPoint,-1<t.indexOf(",")?v.thousandsSep:""))):f=(d||a.time).dateFormat(t,f);return f};a.format=function(t,f,d){for(var r="{",v=!1,q,x,y,b,g=[],m;t;){r=t.indexOf(r);if(-1===r)break;q=t.slice(0,r);if(v){q=q.split(":");x=q.shift().split(".");b=x.length;m=f;for(y=0;y<b;y++)m&&(m=m[x[y]]);q.length&&(m=a.formatSingle(q.join(":"),m,d));g.push(m)}else g.push(q);t=t.slice(r+1);r=(v=!v)?"}":"{"}g.push(t);return g.join("")};a.getMagnitude=function(a){return Math.pow(10,
      Math.floor(Math.log(a)/Math.LN10))};a.normalizeTickInterval=function(t,f,d,r,v){var q,x=t;d=a.pick(d,1);q=t/d;f||(f=v?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(1===d?f=a.grep(f,function(a){return 0===a%1}):.1>=d&&(f=[1/d])));for(r=0;r<f.length&&!(x=f[r],v&&x*d>=t||!v&&q<=(f[r]+(f[r+1]||f[r]))/2);r++);return x=a.correctFloat(x*d,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,f){var d=a.length,r,v;for(v=0;v<d;v++)a[v].safeI=v;a.sort(function(a,d){r=f(a,d);return 0===r?
      a.safeI-d.safeI:r});for(v=0;v<d;v++)delete a[v].safeI};a.arrayMin=function(a){for(var f=a.length,d=a[0];f--;)a[f]<d&&(d=a[f]);return d};a.arrayMax=function(a){for(var f=a.length,d=a[0];f--;)a[f]>d&&(d=a[f]);return d};a.destroyObjectProperties=function(t,f){a.objectEach(t,function(a,r){a&&a!==f&&a.destroy&&a.destroy();delete t[r]})};a.discardElement=function(t){var f=a.garbageBin;f||(f=a.createElement("div"));t&&f.appendChild(t);f.innerHTML=""};a.correctFloat=function(a,f){return parseFloat(a.toPrecision(f||
      14))};a.setAnimation=function(t,f){f.renderer.globalAnimation=a.pick(t,f.options.chart.animation,!0)};a.animObject=function(t){return a.isObject(t)?a.merge(t):{duration:t?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5};a.numberFormat=function(t,f,d,r){t=+t||0;f=+f;var v=a.defaultOptions.lang,q=(t.toString().split(".")[1]||"").split("e")[0].length,x,y,b=t.toString().split("e");-1===f?f=Math.min(q,20):a.isNumber(f)?f&&b[1]&&0>b[1]&&
      (x=f+ +b[1],0<=x?(b[0]=(+b[0]).toExponential(x).split("e")[0],f=x):(b[0]=b[0].split(".")[0]||0,t=20>f?(b[0]*Math.pow(10,b[1])).toFixed(f):0,b[1]=0)):f=2;y=(Math.abs(b[1]?b[0]:t)+Math.pow(10,-Math.max(f,q)-1)).toFixed(f);q=String(a.pInt(y));x=3<q.length?q.length%3:0;d=a.pick(d,v.decimalPoint);r=a.pick(r,v.thousandsSep);t=(0>t?"-":"")+(x?q.substr(0,x)+r:"");t+=q.substr(x).replace(/(\d{3})(?=\d)/g,"$1"+r);f&&(t+=d+y.slice(-f));b[1]&&0!==+t&&(t+="e"+b[1]);return t};Math.easeInOutSine=function(a){return-.5*
      (Math.cos(Math.PI*a)-1)};a.getStyle=function(t,f,d){if("width"===f)return Math.max(0,Math.min(t.offsetWidth,t.scrollWidth)-a.getStyle(t,"padding-left")-a.getStyle(t,"padding-right"));if("height"===f)return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-a.getStyle(t,"padding-top")-a.getStyle(t,"padding-bottom"));G.getComputedStyle||a.error(27,!0);if(t=G.getComputedStyle(t,void 0))t=t.getPropertyValue(f),a.pick(d,"opacity"!==f)&&(t=a.pInt(t));return t};a.inArray=function(t,f,d){return(a.indexOfPolyfill||
      Array.prototype.indexOf).call(f,t,d)};a.grep=function(t,f){return(a.filterPolyfill||Array.prototype.filter).call(t,f)};a.find=Array.prototype.find?function(a,f){return a.find(f)}:function(a,f){var d,r=a.length;for(d=0;d<r;d++)if(f(a[d],d))return a[d]};a.some=function(t,f,d){return(a.somePolyfill||Array.prototype.some).call(t,f,d)};a.map=function(a,f){for(var d=[],r=0,v=a.length;r<v;r++)d[r]=f.call(a[r],a[r],r,a);return d};a.keys=function(t){return(a.keysPolyfill||Object.keys).call(void 0,t)};a.reduce=
      function(t,f,d){return(a.reducePolyfill||Array.prototype.reduce).apply(t,2<arguments.length?[f,d]:[f])};a.offset=function(a){var f=H.documentElement;a=a.parentElement||a.parentNode?a.getBoundingClientRect():{top:0,left:0};return{top:a.top+(G.pageYOffset||f.scrollTop)-(f.clientTop||0),left:a.left+(G.pageXOffset||f.scrollLeft)-(f.clientLeft||0)}};a.stop=function(t,f){for(var d=a.timers.length;d--;)a.timers[d].elem!==t||f&&f!==a.timers[d].prop||(a.timers[d].stopped=!0)};a.each=function(t,f,d){return(a.forEachPolyfill||
      Array.prototype.forEach).call(t,f,d)};a.objectEach=function(a,f,d){for(var r in a)a.hasOwnProperty(r)&&f.call(d||a[r],a[r],r,a)};a.addEvent=function(t,f,d,r){var v,q=t.addEventListener||a.addEventListenerPolyfill;v="function"===typeof t&&t.prototype?t.prototype.protoEvents=t.prototype.protoEvents||{}:t.hcEvents=t.hcEvents||{};a.Point&&t instanceof a.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);q&&q.call(t,f,d,!1);v[f]||(v[f]=[]);v[f].push(d);r&&a.isNumber(r.order)&&(d.order=
      r.order,v[f].sort(function(a,d){return a.order-d.order}));return function(){a.removeEvent(t,f,d)}};a.removeEvent=function(t,f,d){function r(d,b){var g=t.removeEventListener||a.removeEventListenerPolyfill;g&&g.call(t,d,b,!1)}function v(d){var b,g;t.nodeName&&(f?(b={},b[f]=!0):b=d,a.objectEach(b,function(a,l){if(d[l])for(g=d[l].length;g--;)r(l,d[l][g])}))}var q,x;a.each(["protoEvents","hcEvents"],function(y){var b=t[y];b&&(f?(q=b[f]||[],d?(x=a.inArray(d,q),-1<x&&(q.splice(x,1),b[f]=q),r(f,d)):(v(b),
      b[f]=[])):(v(b),t[y]={}))})};a.fireEvent=function(t,f,d,r){var v,q,x,y,b;d=d||{};H.createEvent&&(t.dispatchEvent||t.fireEvent)?(v=H.createEvent("Events"),v.initEvent(f,!0,!0),a.extend(v,d),t.dispatchEvent?t.dispatchEvent(v):t.fireEvent(f,v)):a.each(["protoEvents","hcEvents"],function(g){if(t[g])for(q=t[g][f]||[],x=q.length,d.target||a.extend(d,{preventDefault:function(){d.defaultPrevented=!0},target:t,type:f}),y=0;y<x;y++)(b=q[y])&&!1===b.call(t,d)&&d.preventDefault()});r&&!d.defaultPrevented&&r.call(t,
      d)};a.animate=function(t,f,d){var r,v="",q,x,y;a.isObject(d)||(y=arguments,d={duration:y[2],easing:y[3],complete:y[4]});a.isNumber(d.duration)||(d.duration=400);d.easing="function"===typeof d.easing?d.easing:Math[d.easing]||Math.easeInOutSine;d.curAnim=a.merge(f);a.objectEach(f,function(b,g){a.stop(t,g);x=new a.Fx(t,d,g);q=null;"d"===g?(x.paths=x.initPath(t,t.d,f.d),x.toD=f.d,r=0,q=1):t.attr?r=t.attr(g):(r=parseFloat(a.getStyle(t,g))||0,"opacity"!==g&&(v="px"));q||(q=b);q&&q.match&&q.match("px")&&
  (q=q.replace(/px/g,""));x.run(r,q,v)})};a.seriesType=function(t,f,d,r,v){var q=a.getOptions(),x=a.seriesTypes;q.plotOptions[t]=a.merge(q.plotOptions[f],d);x[t]=a.extendClass(x[f]||function(){},r);x[t].prototype.type=t;v&&(x[t].prototype.pointClass=a.extendClass(a.Point,v));return x[t]};a.uniqueKey=function(){var a=Math.random().toString(36).substring(2,9),f=0;return function(){return"highcharts-"+a+"-"+f++}}();G.jQuery&&(G.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?
      (new (a[a.isString(t[0])?t.shift():"Chart"])(this[0],t[0],t[1]),this):C[a.attr(this[0],"data-highcharts-chart")]})})(K);(function(a){var C=a.each,H=a.isNumber,G=a.map,t=a.merge,f=a.pInt;a.Color=function(d){if(!(this instanceof a.Color))return new a.Color(d);this.init(d)};a.Color.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(a){return[f(a[1]),f(a[2]),f(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[f(a[1]),f(a[2]),f(a[3]),1]}}],names:{white:"#ffffff",black:"#000000"},init:function(d){var f,v,q,x;if((this.input=d=this.names[d&&d.toLowerCase?d.toLowerCase():""]||d)&&d.stops)this.stops=G(d.stops,function(d){return new a.Color(d[1])});else if(d&&d.charAt&&"#"===d.charAt()&&(f=d.length,d=parseInt(d.substr(1),16),7===f?v=[(d&16711680)>>16,(d&65280)>>8,d&255,1]:4===f&&(v=[(d&3840)>>4|(d&3840)>>8,(d&240)>>4|d&240,(d&15)<<4|d&15,1])),!v)for(q=this.parsers.length;q--&&!v;)x=this.parsers[q],
      (f=x.regex.exec(d))&&(v=x.parse(f));this.rgba=v||[]},get:function(a){var f=this.input,v=this.rgba,q;this.stops?(q=t(f),q.stops=[].concat(q.stops),C(this.stops,function(f,y){q.stops[y]=[q.stops[y][0],f.get(a)]})):q=v&&H(v[0])?"rgb"===a||!a&&1===v[3]?"rgb("+v[0]+","+v[1]+","+v[2]+")":"a"===a?v[3]:"rgba("+v.join(",")+")":f;return q},brighten:function(a){var r,v=this.rgba;if(this.stops)C(this.stops,function(q){q.brighten(a)});else if(H(a)&&0!==a)for(r=0;3>r;r++)v[r]+=f(255*a),0>v[r]&&(v[r]=0),255<v[r]&&
      (v[r]=255);return this},setOpacity:function(a){this.rgba[3]=a;return this},tweenTo:function(a,f){var v=this.rgba,q=a.rgba;q.length&&v&&v.length?(a=1!==q[3]||1!==v[3],f=(a?"rgba(":"rgb(")+Math.round(q[0]+(v[0]-q[0])*(1-f))+","+Math.round(q[1]+(v[1]-q[1])*(1-f))+","+Math.round(q[2]+(v[2]-q[2])*(1-f))+(a?","+(q[3]+(v[3]-q[3])*(1-f)):"")+")"):f=a.input||"none";return f}};a.color=function(d){return new a.Color(d)}})(K);(function(a){var C,H,G=a.addEvent,t=a.animate,f=a.attr,d=a.charts,r=a.color,v=a.css,
      q=a.createElement,x=a.defined,y=a.deg2rad,b=a.destroyObjectProperties,g=a.doc,m=a.each,l=a.extend,n=a.erase,c=a.grep,e=a.hasTouch,u=a.inArray,D=a.isArray,w=a.isFirefox,O=a.isMS,z=a.isObject,B=a.isString,p=a.isWebKit,E=a.merge,A=a.noop,M=a.objectEach,I=a.pick,k=a.pInt,h=a.removeEvent,J=a.stop,N=a.svg,F=a.SVG_NS,P=a.symbolSizes,R=a.win;C=a.SVGElement=function(){return this};l(C.prototype,{opacity:1,SVG_NS:F,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline cursor".split(" "),
      init:function(a,k){this.element="span"===k?q(k):g.createElementNS(this.SVG_NS,k);this.renderer=a},animate:function(L,k,h){k=a.animObject(I(k,this.renderer.globalAnimation,!0));0!==k.duration?(h&&(k.complete=h),t(this,L,k)):(this.attr(L,null,h),k.step&&k.step.call(this));return this},complexColor:function(L,k,h){var e=this.renderer,l,p,c,F,b,g,n,A,u,w,N,J=[],z;a.fireEvent(this.renderer,"complexColor",{args:arguments},function(){L.radialGradient?p="radialGradient":L.linearGradient&&(p="linearGradient");
          p&&(c=L[p],b=e.gradients,n=L.stops,w=h.radialReference,D(c)&&(L[p]=c={x1:c[0],y1:c[1],x2:c[2],y2:c[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===p&&w&&!x(c.gradientUnits)&&(F=c,c=E(c,e.getRadialAttr(w,F),{gradientUnits:"userSpaceOnUse"})),M(c,function(a,L){"id"!==L&&J.push(L,a)}),M(n,function(a){J.push(a)}),J=J.join(","),b[J]?N=b[J].attr("id"):(c.id=N=a.uniqueKey(),b[J]=g=e.createElement(p).attr(c).add(e.defs),g.radAttr=F,g.stops=[],m(n,function(L){0===L[1].indexOf("rgba")?(l=a.color(L[1]),
              A=l.get("rgb"),u=l.get("a")):(A=L[1],u=1);L=e.createElement("stop").attr({offset:L[0],"stop-color":A,"stop-opacity":u}).add(g);g.stops.push(L)})),z="url("+e.url+"#"+N+")",h.setAttribute(k,z),h.gradient=J,L.toString=function(){return z})})},applyTextOutline:function(L){var k=this.element,h,e,c,p,l;-1!==L.indexOf("contrast")&&(L=L.replace(/contrast/g,this.renderer.getContrast(k.style.fill)));L=L.split(" ");e=L[L.length-1];if((c=L[0])&&"none"!==c&&a.svg){this.fakeTS=!0;L=[].slice.call(k.getElementsByTagName("tspan"));
          this.ySetter=this.xSetter;c=c.replace(/(^[\d\.]+)(.*?)$/g,function(a,L,k){return 2*L+k});for(l=L.length;l--;)h=L[l],"highcharts-text-outline"===h.getAttribute("class")&&n(L,k.removeChild(h));p=k.firstChild;m(L,function(a,L){0===L&&(a.setAttribute("x",k.getAttribute("x")),L=k.getAttribute("y"),a.setAttribute("y",L||0),null===L&&k.setAttribute("y",0));a=a.cloneNode(1);f(a,{"class":"highcharts-text-outline",fill:e,stroke:e,"stroke-width":c,"stroke-linejoin":"round"});k.insertBefore(a,p)})}},attr:function(a,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     k,h,e){var c,p=this.element,l,b=this,F,g;"string"===typeof a&&void 0!==k&&(c=a,a={},a[c]=k);"string"===typeof a?b=(this[a+"Getter"]||this._defaultGetter).call(this,a,p):(M(a,function(k,h){F=!1;e||J(this,h);this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(h)&&(l||(this.symbolAttr(a),l=!0),F=!0);!this.rotation||"x"!==h&&"y"!==h||(this.doTransform=!0);F||(g=this[h+"Setter"]||this._defaultSetter,g.call(this,k,h,p),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(h)&&
      this.updateShadows(h,k,g))},this),this.afterSetters());h&&h.call(this);return b},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(a,k,h){for(var c=this.shadows,e=c.length;e--;)h.call(c[e],"height"===a?Math.max(k-(c[e].cutHeight||0),0):"d"===a?this.d:k,a,c[e])},addClass:function(a,k){var h=this.attr("class")||"";-1===h.indexOf(a)&&(k||(a=(h+(h?" ":"")+a).replace("  "," ")),this.attr("class",a));return this},hasClass:function(a){return-1!==
          u(a,(this.attr("class")||"").split(" "))},removeClass:function(a){return this.attr("class",(this.attr("class")||"").replace(a,""))},symbolAttr:function(a){var k=this;m("x y r start end width height innerR anchorX anchorY".split(" "),function(h){k[h]=I(a[h],k[h])});k.attr({d:k.renderer.symbols[k.symbolName](k.x,k.y,k.width,k.height,k)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a,k){var h;k=k||a.strokeWidth||0;h=Math.round(k)%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);x(a.strokeWidth)&&(a.strokeWidth=k);return a},css:function(a){var h=this.styles,c={},e=this.element,p,F="",b,g=!h,n=["textOutline","textOverflow","width"];a&&a.color&&(a.fill=a.color);h&&M(a,function(a,k){a!==h[k]&&(c[k]=a,g=!0)});g&&(h&&(a=l(h,c)),a&&(null===a.width||"auto"===a.width?delete this.textWidth:"text"===e.nodeName.toLowerCase()&&
          a.width&&(p=this.textWidth=k(a.width))),this.styles=a,p&&!N&&this.renderer.forExport&&delete a.width,e.namespaceURI===this.SVG_NS?(b=function(a,k){return"-"+k.toLowerCase()},M(a,function(a,k){-1===u(k,n)&&(F+=k.replace(/([A-Z])/g,b)+":"+a+";")}),F&&f(e,"style",F)):v(e,a),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline)));return this},strokeWidth:function(){return this["stroke-width"]||0},on:function(a,k){var h=this,c=
          h.element;e&&"click"===a?(c.ontouchstart=function(a){h.touchEventFired=Date.now();a.preventDefault();k.call(c,a)},c.onclick=function(a){(-1===R.navigator.userAgent.indexOf("Android")||1100<Date.now()-(h.touchEventFired||0))&&k.call(c,a)}):c["on"+a]=k;return this},setRadialReference:function(a){var k=this.renderer.gradients[this.element.gradient];this.element.radialReference=a;k&&k.radAttr&&k.animate(this.renderer.getRadialAttr(a,k.radAttr));return this},translate:function(a,k){return this.attr({translateX:a,
          translateY:k})},invert:function(a){this.inverted=a;this.updateTransform();return this},updateTransform:function(){var a=this.translateX||0,k=this.translateY||0,h=this.scaleX,c=this.scaleY,e=this.inverted,p=this.rotation,l=this.matrix,F=this.element;e&&(a+=this.width,k+=this.height);a=["translate("+a+","+k+")"];x(l)&&a.push("matrix("+l.join(",")+")");e?a.push("rotate(90) scale(-1,1)"):p&&a.push("rotate("+p+" "+I(this.rotationOriginX,F.getAttribute("x"),0)+" "+I(this.rotationOriginY,F.getAttribute("y")||
          0)+")");(x(h)||x(c))&&a.push("scale("+I(h,1)+" "+I(c,1)+")");a.length&&F.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,k,h){var c,e,p,l,F={};e=this.renderer;p=e.alignedObjects;var b,g;if(a){if(this.alignOptions=a,this.alignByTranslate=k,!h||B(h))this.alignTo=c=h||"renderer",n(p,this),p.push(this),h=null}else a=this.alignOptions,k=this.alignByTranslate,c=this.alignTo;h=I(h,e[c],e);c=a.align;e=a.verticalAlign;p=
          (h.x||0)+(a.x||0);l=(h.y||0)+(a.y||0);"right"===c?b=1:"center"===c&&(b=2);b&&(p+=(h.width-(a.width||0))/b);F[k?"translateX":"x"]=Math.round(p);"bottom"===e?g=1:"middle"===e&&(g=2);g&&(l+=(h.height-(a.height||0))/g);F[k?"translateY":"y"]=Math.round(l);this[this.placed?"animate":"attr"](F);this.placed=!0;this.alignAttr=F;return this},getBBox:function(a,k){var h,c=this.renderer,e,p=this.element,F=this.styles,b,g=this.textStr,n,A=c.cache,u=c.cacheKeys,w=p.namespaceURI===this.SVG_NS,E;k=I(k,this.rotation);
          e=k*y;b=F&&F.fontSize;x(g)&&(E=g.toString(),-1===E.indexOf("<")&&(E=E.replace(/[0-9]/g,"0")),E+=["",k||0,b,this.textWidth,F&&F.textOverflow].join());E&&!a&&(h=A[E]);if(!h){if(w||c.forExport){try{(n=this.fakeTS&&function(a){m(p.querySelectorAll(".highcharts-text-outline"),function(k){k.style.display=a})})&&n("none"),h=p.getBBox?l({},p.getBBox()):{width:p.offsetWidth,height:p.offsetHeight},n&&n("")}catch(J){}if(!h||0>h.width)h={width:0,height:0}}else h=this.htmlGetBBox();c.isSVG&&(a=h.width,c=h.height,
          w&&(h.height=c={"11px,17":14,"13px,20":16}[F&&F.fontSize+","+Math.round(c)]||c),k&&(h.width=Math.abs(c*Math.sin(e))+Math.abs(a*Math.cos(e)),h.height=Math.abs(c*Math.cos(e))+Math.abs(a*Math.sin(e))));if(E&&0<h.height){for(;250<u.length;)delete A[u.shift()];A[E]||u.push(E);A[E]=h}}return h},show:function(a){return this.attr({visibility:a?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var k=this;k.animate({opacity:0},{duration:a||150,complete:function(){k.attr({y:-9999})}})},
      add:function(a){var k=this.renderer,h=this.element,c;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;void 0!==this.textStr&&k.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)c=this.zIndexSetter();c||(a?a.element:k.box).appendChild(h);if(this.onAdd)this.onAdd();return this},safeRemoveChild:function(a){var k=a.parentNode;k&&k.removeChild(a)},destroy:function(){var a=this,k=a.element||{},h=a.renderer.isSVG&&"SPAN"===k.nodeName&&a.parentGroup,c=k.ownerSVGElement,e=a.clipPath;k.onclick=
          k.onmouseout=k.onmouseover=k.onmousemove=k.point=null;J(a);e&&c&&(m(c.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){var k=a.getAttribute("clip-path"),h=e.element.id;(-1<k.indexOf("(#"+h+")")||-1<k.indexOf('("#'+h+'")'))&&a.removeAttribute("clip-path")}),a.clipPath=e.destroy());if(a.stops){for(c=0;c<a.stops.length;c++)a.stops[c]=a.stops[c].destroy();a.stops=null}a.safeRemoveChild(k);for(a.destroyShadows();h&&h.div&&0===h.div.childNodes.length;)k=h.parentGroup,a.safeRemoveChild(h.div),delete h.div,
          h=k;a.alignTo&&n(a.renderer.alignedObjects,a);M(a,function(k,h){delete a[h]});return null},shadow:function(a,k,h){var c=[],e,p,l=this.element,F,b,g,n;if(!a)this.destroyShadows();else if(!this.shadows){b=I(a.width,3);g=(a.opacity||.15)/b;n=this.parentInverted?"(-1,-1)":"("+I(a.offsetX,1)+", "+I(a.offsetY,1)+")";for(e=1;e<=b;e++)p=l.cloneNode(0),F=2*b+1-2*e,f(p,{stroke:a.color||"#000000","stroke-opacity":g*e,"stroke-width":F,transform:"translate"+n,fill:"none"}),p.setAttribute("class",(p.getAttribute("class")||
          "")+" highcharts-shadow"),h&&(f(p,"height",Math.max(f(p,"height")-F,0)),p.cutHeight=F),k?k.element.appendChild(p):l.parentNode&&l.parentNode.insertBefore(p,l),c.push(p);this.shadows=c}return this},destroyShadows:function(){m(this.shadows||[],function(a){this.safeRemoveChild(a)},this);this.shadows=void 0},xGetter:function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)},_defaultGetter:function(a){a=I(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,k,h){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[k]!==a&&(h.setAttribute(k,a),this[k]=a)},dashstyleSetter:function(a){var h,c=this["stroke-width"];"inherit"===c&&(c=1);if(a=a&&a.toLowerCase()){a=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,
          "").split(",");for(h=a.length;h--;)a[h]=k(a[h])*c;a=a.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a)}},alignSetter:function(a){this.alignValue=a;this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[a])},opacitySetter:function(a,k,h){this[k]=a;h.setAttribute(k,a)},titleSetter:function(a){var k=this.element.getElementsByTagName("title")[0];k||(k=g.createElementNS(this.SVG_NS,"title"),this.element.appendChild(k));k.firstChild&&k.removeChild(k.firstChild);
          k.appendChild(g.createTextNode(String(I(a),"").replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,h){"string"===typeof a?h.setAttribute(k,a):a&&this.complexColor(a,k,h)},visibilitySetter:function(a,k,h){"inherit"===a?h.removeAttribute(k):this[k]!==a&&h.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,h){var c=this.renderer,e=this.parentGroup,
          p=(e||c).element||c.box,l,F=this.element,b,g,c=p===c.box;l=this.added;var n;x(a)?(F.setAttribute("data-z-index",a),a=+a,this[h]===a&&(l=!1)):x(this[h])&&F.removeAttribute("data-z-index");this[h]=a;if(l){(a=this.zIndex)&&e&&(e.handleZ=!0);h=p.childNodes;for(n=h.length-1;0<=n&&!b;n--)if(e=h[n],l=e.getAttribute("data-z-index"),g=!x(l),e!==F)if(0>a&&g&&!c&&!n)p.insertBefore(F,h[n]),b=!0;else if(k(l)<=a||g&&(!x(a)||0<=a))p.insertBefore(F,h[n+1]||null),b=!0;b||(p.insertBefore(F,h[c?3:0]||null),b=!0)}return b},
      _defaultSetter:function(a,k,h){h.setAttribute(k,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};C.prototype["stroke-widthSetter"]=C.prototype.strokeSetter=function(a,k,h){this[k]=a;this.stroke&&this["stroke-width"]?
      (C.prototype.fillSetter.call(this,this.stroke,"stroke",h),h.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===k&&0===a&&this.hasStroke&&(h.removeAttribute("stroke"),this.hasStroke=!1)};H=a.SVGRenderer=function(){this.init.apply(this,arguments)};l(H.prototype,{Element:C,SVG_NS:F,init:function(a,k,h,c,e,l){var F;c=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}).css(this.getStyle(c));F=c.element;a.appendChild(F);f(a,"dir","ltr");-1===a.innerHTML.indexOf("xmlns")&&
      f(F,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=F;this.boxWrapper=c;this.alignedObjects=[];this.url=(w||p)&&g.getElementsByTagName("base").length?R.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(g.createTextNode("Created with Highcharts 6.2.0"));this.defs=this.createElement("defs").add();this.allowHTML=l;this.forExport=e;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,
          h,!1);var b;w&&a.getBoundingClientRect&&(k=function(){v(a,{left:0,top:0});b=a.getBoundingClientRect();v(a,{left:Math.ceil(b.left)-b.left+"px",top:Math.ceil(b.top)-b.top+"px"})},k(),this.unSubPixelFix=G(R,"resize",k))},getStyle:function(a){return this.style=l({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=
          this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:A,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},truncate:function(a,k,h,c,e,p,F){var l=this,b=a.rotation,n,A=c?1:0,u=(h||c).length,m=u,w=[],E=function(a){k.firstChild&&
      k.removeChild(k.firstChild);a&&k.appendChild(g.createTextNode(a))},J=function(p,b){b=b||p;if(void 0===w[b])if(k.getSubStringLength)try{w[b]=e+k.getSubStringLength(0,c?b+1:b)}catch(g){}else l.getSpanWidth&&(E(F(h||c,p)),w[b]=e+l.getSpanWidth(a,k));return w[b]},N,z;a.rotation=0;N=J(k.textContent.length);if(z=e+N>p){for(;A<=u;)m=Math.ceil((A+u)/2),c&&(n=F(c,m)),N=J(m,n&&n.length-1),A===u?A=u+1:N>p?u=m-1:A=m;0===u?E(""):h&&u===h.length-1||E(n||F(h||c,m))}c&&c.splice(0,m);a.actualWidth=N;a.rotation=b;
          return z},escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},buildText:function(a){var h=a.element,e=this,p=e.forExport,b=I(a.textStr,"").toString(),l=-1!==b.indexOf("<"),n=h.childNodes,A,w=f(h,"x"),E=a.styles,J=a.textWidth,z=E&&E.lineHeight,d=E&&E.textOutline,P=E&&"ellipsis"===E.textOverflow,y=E&&"nowrap"===E.whiteSpace,q=E&&E.fontSize,B,D,x=n.length,E=J&&!a.added&&this.box,r=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:q||e.style.fontSize||12;return z?
          k(z):e.fontMetrics(c,a.getAttribute("style")?a:h).h},R=function(a,k){M(e.escapes,function(h,c){k&&-1!==u(h,k)||(a=a.toString().replace(new RegExp(h,"g"),c))});return a},O=function(a,k){var h;h=a.indexOf("<");a=a.substring(h,a.indexOf(">")-h);h=a.indexOf(k+"=");if(-1!==h&&(h=h+k.length+1,k=a.charAt(h),'"'===k||"'"===k))return a=a.substring(h+1),a.substring(0,a.indexOf(k))};B=[b,P,y,z,d,q,J].join();if(B!==a.textCache){for(a.textCache=B;x--;)h.removeChild(n[x]);l||d||P||J||-1!==b.indexOf(" ")?(E&&E.appendChild(h),
          b=l?b.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g):[b],b=c(b,function(a){return""!==a}),m(b,function(k,c){var b,l=0,n=0;k=k.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");b=k.split("|||");m(b,function(k){if(""!==k||1===b.length){var u={},m=g.createElementNS(e.SVG_NS,"tspan"),E,z;(E=O(k,"class"))&&f(m,"class",
          E);if(E=O(k,"style"))E=E.replace(/(;| |^)color([ :])/,"$1fill$2"),f(m,"style",E);(z=O(k,"href"))&&!p&&(f(m,"onclick",'location.href="'+z+'"'),f(m,"class","highcharts-anchor"),v(m,{cursor:"pointer"}));k=R(k.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" ");if(" "!==k){m.appendChild(g.createTextNode(k));l?u.dx=0:c&&null!==w&&(u.x=w);f(m,u);h.appendChild(m);!l&&D&&(!N&&p&&v(m,{display:"block"}),f(m,"dy",r(m)));if(J){var d=k.replace(/([^\^])-/g,"$1- ").split(" "),u=!y&&(1<b.length||c||1<d.length);z=0;var B=r(m);
          if(P)A=e.truncate(a,m,k,void 0,0,Math.max(0,J-parseInt(q||12,10)),function(a,k){return a.substring(0,k)+"\u2026"});else if(u)for(;d.length;)d.length&&!y&&0<z&&(m=g.createElementNS(F,"tspan"),f(m,{dy:B,x:w}),E&&f(m,"style",E),m.appendChild(g.createTextNode(d.join(" ").replace(/- /g,"-"))),h.appendChild(m)),e.truncate(a,m,null,d,0===z?n:0,J,function(a,k){return d.slice(0,k).join(" ").replace(/- /g,"-")}),n=a.actualWidth,z++}l++}}});D=D||h.childNodes.length}),P&&A&&a.attr("title",R(a.textStr,["&lt;",
          "&gt;"])),E&&E.removeChild(h),d&&a.applyTextOutline&&a.applyTextOutline(d)):h.appendChild(g.createTextNode(R(b)))}},getContrast:function(a){a=r(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,k,h,c,e,p,b,F,g){var n=this.label(a,k,h,g,null,null,null,null,"button"),u=0;n.attr(E({padding:8,r:2},e));var A,m,w,J;e=E({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},e);A=e.style;delete e.style;
          p=E(e,{fill:"#e6e6e6"},p);m=p.style;delete p.style;b=E(e,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},b);w=b.style;delete b.style;F=E(e,{style:{color:"#cccccc"}},F);J=F.style;delete F.style;G(n.element,O?"mouseover":"mouseenter",function(){3!==u&&n.setState(1)});G(n.element,O?"mouseout":"mouseleave",function(){3!==u&&n.setState(u)});n.setState=function(a){1!==a&&(n.state=u=a);n.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover",
              "pressed","disabled"][a||0]);n.attr([e,p,b,F][a||0]).css([A,m,w,J][a||0])};n.attr(e).css(l({cursor:"default"},A));return n.on("click",function(a){3!==u&&c.call(n,a)})},crispLine:function(a,k){a[1]===a[4]&&(a[1]=a[4]=Math.round(a[1])-k%2/2);a[2]===a[5]&&(a[2]=a[5]=Math.round(a[2])+k%2/2);return a},path:function(a){var k={fill:"none"};D(a)?k.d=a:z(a)&&l(k,a);return this.createElement("path").attr(k)},circle:function(a,k,h){a=z(a)?a:{x:a,y:k,r:h};k=this.createElement("circle");k.xSetter=k.ySetter=function(a,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          k,h){h.setAttribute("c"+k,a)};return k.attr(a)},arc:function(a,k,h,c,e,p){z(a)?(c=a,k=c.y,h=c.r,a=c.x):c={innerR:c,start:e,end:p};a=this.symbol("arc",a,k,h,h,c);a.r=h;return a},rect:function(a,k,h,c,e,p){e=z(a)?a.r:e;var b=this.createElement("rect");a=z(a)?a:void 0===a?{}:{x:a,y:k,width:Math.max(h,0),height:Math.max(c,0)};void 0!==p&&(a.strokeWidth=p,a=b.crisp(a));a.fill="none";e&&(a.r=e);b.rSetter=function(a,k,h){f(h,{rx:a,ry:a})};return b.attr(a)},setSize:function(a,k,h){var c=this.alignedObjects,
          e=c.length;this.width=a;this.height=k;for(this.boxWrapper.animate({width:a,height:k},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:I(h,!0)?void 0:0});e--;)c[e].align()},g:function(a){var k=this.createElement("g");return a?k.attr({"class":"highcharts-"+a}):k},image:function(a,k,h,c,e,p){var b={preserveAspectRatio:"none"},F,n=function(a,k){a.setAttributeNS?a.setAttributeNS("http://www.w3.org/1999/xlink","href",k):a.setAttribute("hc-svg-href",k)},g=
          function(k){n(F.element,a);p.call(F,k)};1<arguments.length&&l(b,{x:k,y:h,width:c,height:e});F=this.createElement("image").attr(b);p?(n(F.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),b=new R.Image,G(b,"load",g),b.src=a,b.complete&&g({})):n(F.element,a);return F},symbol:function(a,k,h,c,e,p){var b=this,F,n=/^url\((.*?)\)$/,u=n.test(a),A=!u&&(this.symbols[a]?a:"circle"),E=A&&this.symbols[A],w=x(k)&&E&&E.call(this.symbols,Math.round(k),Math.round(h),c,e,p),J,N;
          E?(F=this.path(w),F.attr("fill","none"),l(F,{symbolName:A,x:k,y:h,width:c,height:e}),p&&l(F,p)):u&&(J=a.match(n)[1],F=this.image(J),F.imgwidth=I(P[J]&&P[J].width,p&&p.width),F.imgheight=I(P[J]&&P[J].height,p&&p.height),N=function(){F.attr({width:F.width,height:F.height})},m(["width","height"],function(a){F[a+"Setter"]=function(a,k){var h={},c=this["img"+k],e="width"===k?"translateX":"translateY";this[k]=a;x(c)&&(this.element&&this.element.setAttribute(k,c),this.alignByTranslate||(h[e]=((this[k]||
              0)-c)/2,this.attr(h)))}}),x(k)&&F.attr({x:k,y:h}),F.isImg=!0,x(F.imgwidth)&&x(F.imgheight)?N():(F.attr({width:0,height:0}),q("img",{onload:function(){var a=d[b.chartIndex];0===this.width&&(v(this,{position:"absolute",top:"-999em"}),g.body.appendChild(this));P[J]={width:this.width,height:this.height};F.imgwidth=this.width;F.imgheight=this.height;F.element&&N();this.parentNode&&this.parentNode.removeChild(this);b.imgCount--;if(!b.imgCount&&a&&a.onload)a.onload()},src:J}),this.imgCount++));return F},
      symbols:{circle:function(a,k,h,c){return this.arc(a+h/2,k+c/2,h/2,c/2,{start:0,end:2*Math.PI,open:!1})},square:function(a,k,h,c){return["M",a,k,"L",a+h,k,a+h,k+c,a,k+c,"Z"]},triangle:function(a,k,h,c){return["M",a+h/2,k,"L",a+h,k+c,a,k+c,"Z"]},"triangle-down":function(a,k,h,c){return["M",a,k,"L",a+h,k,a+h/2,k+c,"Z"]},diamond:function(a,k,h,c){return["M",a+h/2,k,"L",a+h,k+c/2,a+h/2,k+c,a,k+c/2,"Z"]},arc:function(a,k,h,c,e){var p=e.start,b=e.r||h,F=e.r||c||h,l=e.end-.001;h=e.innerR;c=I(e.open,.001>
              Math.abs(e.end-e.start-2*Math.PI));var n=Math.cos(p),g=Math.sin(p),u=Math.cos(l),l=Math.sin(l);e=.001>e.end-p-Math.PI?0:1;b=["M",a+b*n,k+F*g,"A",b,F,0,e,1,a+b*u,k+F*l];x(h)&&b.push(c?"M":"L",a+h*u,k+h*l,"A",h,h,0,e,0,a+h*n,k+h*g);b.push(c?"":"Z");return b},callout:function(a,k,h,c,e){var p=Math.min(e&&e.r||0,h,c),b=p+6,F=e&&e.anchorX;e=e&&e.anchorY;var l;l=["M",a+p,k,"L",a+h-p,k,"C",a+h,k,a+h,k,a+h,k+p,"L",a+h,k+c-p,"C",a+h,k+c,a+h,k+c,a+h-p,k+c,"L",a+p,k+c,"C",a,k+c,a,k+c,a,k+c-p,"L",a,k+p,"C",a,
              k,a,k,a+p,k];F&&F>h?e>k+b&&e<k+c-b?l.splice(13,3,"L",a+h,e-6,a+h+6,e,a+h,e+6,a+h,k+c-p):l.splice(13,3,"L",a+h,c/2,F,e,a+h,c/2,a+h,k+c-p):F&&0>F?e>k+b&&e<k+c-b?l.splice(33,3,"L",a,e+6,a-6,e,a,e-6,a,k+p):l.splice(33,3,"L",a,c/2,F,e,a,c/2,a,k+p):e&&e>c&&F>a+b&&F<a+h-b?l.splice(23,3,"L",F+6,k+c,F,k+c+6,F-6,k+c,a+p,k+c):e&&0>e&&F>a+b&&F<a+h-b&&l.splice(3,3,"L",F-6,k,F,k-6,F+6,k,h-p,k);return l}},clipRect:function(k,h,c,e){var p=a.uniqueKey(),F=this.createElement("clipPath").attr({id:p}).add(this.defs);
          k=this.rect(k,h,c,e,0).add(F);k.id=p;k.clipPath=F;k.count=0;return k},text:function(a,k,h,c){var e={};if(c&&(this.allowHTML||!this.forExport))return this.html(a,k,h);e.x=Math.round(k||0);h&&(e.y=Math.round(h));x(a)&&(e.text=a);a=this.createElement("text").attr(e);c||(a.xSetter=function(a,k,h){var c=h.getElementsByTagName("tspan"),e,p=h.getAttribute(k),F;for(F=0;F<c.length;F++)e=c[F],e.getAttribute(k)===p&&e.setAttribute(k,a);h.setAttribute(k,a)});return a},fontMetrics:function(a,h){a=a||h&&h.style&&
          h.style.fontSize||this.style&&this.style.fontSize;a=/px/.test(a)?k(a):/em/.test(a)?parseFloat(a)*(h?this.fontMetrics(null,h.parentNode).f:16):12;h=24>a?a+3:Math.round(1.2*a);return{h:h,b:Math.round(.8*h),f:a}},rotCorr:function(a,k,h){var c=a;k&&h&&(c=Math.max(c*Math.cos(k*y),4));return{x:-a/3*Math.sin(k*y),y:c}},label:function(k,c,e,p,F,b,n,g,u){var A=this,w=A.g("button"!==u&&"label"),J=w.text=A.text("",0,0,n).attr({zIndex:1}),N,z,d=0,P=3,y=0,f,q,B,D,I,M={},v,r,R=/^url\((.*?)\)$/.test(p),O=R,t,H,
          G,K;u&&w.addClass("highcharts-"+u);O=R;t=function(){return(v||0)%2/2};H=function(){var a=J.element.style,k={};z=(void 0===f||void 0===q||I)&&x(J.textStr)&&J.getBBox();w.width=(f||z.width||0)+2*P+y;w.height=(q||z.height||0)+2*P;r=P+A.fontMetrics(a&&a.fontSize,J).b;O&&(N||(w.box=N=A.symbols[p]||R?A.symbol(p):A.rect(),N.addClass(("button"===u?"":"highcharts-label-box")+(u?" highcharts-"+u+"-box":"")),N.add(w),a=t(),k.x=a,k.y=(g?-r:0)+a),k.width=Math.round(w.width),k.height=Math.round(w.height),N.attr(l(k,
          M)),M={})};G=function(){var a=y+P,k;k=g?0:r;x(f)&&z&&("center"===I||"right"===I)&&(a+={center:.5,right:1}[I]*(f-z.width));if(a!==J.x||k!==J.y)J.attr("x",a),J.hasBoxWidthChanged&&(z=J.getBBox(!0),H()),void 0!==k&&J.attr("y",k);J.x=a;J.y=k};K=function(a,k){N?N.attr(a,k):M[a]=k};w.onAdd=function(){J.add(w);w.attr({text:k||0===k?k:"",x:c,y:e});N&&x(F)&&w.attr({anchorX:F,anchorY:b})};w.widthSetter=function(k){f=a.isNumber(k)?k:null};w.heightSetter=function(a){q=a};w["text-alignSetter"]=function(a){I=a};
          w.paddingSetter=function(a){x(a)&&a!==P&&(P=w.padding=a,G())};w.paddingLeftSetter=function(a){x(a)&&a!==y&&(y=a,G())};w.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==d&&(d=a,z&&w.attr({x:B}))};w.textSetter=function(a){void 0!==a&&J.textSetter(a);H();G()};w["stroke-widthSetter"]=function(a,k){a&&(O=!0);v=this["stroke-width"]=a;K(k,a)};w.strokeSetter=w.fillSetter=w.rSetter=function(a,k){"r"!==k&&("fill"===k&&a&&(O=!0),w[k]=a);K(k,a)};w.anchorXSetter=function(a,k){F=w.anchorX=a;K(k,Math.round(a)-
              t()-B)};w.anchorYSetter=function(a,k){b=w.anchorY=a;K(k,a-D)};w.xSetter=function(a){w.x=a;d&&(a-=d*((f||z.width)+2*P),w["forceAnimate:x"]=!0);B=Math.round(a);w.attr("translateX",B)};w.ySetter=function(a){D=w.y=Math.round(a);w.attr("translateY",D)};var Q=w.css;return l(w,{css:function(a){if(a){var k={};a=E(a);m(w.textProps,function(h){void 0!==a[h]&&(k[h]=a[h],delete a[h])});J.css(k);"width"in k&&H()}return Q.call(w,a)},getBBox:function(){return{width:z.width+2*P,height:z.height+2*P,x:z.x-P,y:z.y-
                      P}},shadow:function(a){a&&(H(),N&&N.shadow(a));return w},destroy:function(){h(w.element,"mouseenter");h(w.element,"mouseleave");J&&(J=J.destroy());N&&(N=N.destroy());C.prototype.destroy.call(w);w=A=H=G=K=null}})}});a.Renderer=H})(K);(function(a){var C=a.attr,H=a.createElement,G=a.css,t=a.defined,f=a.each,d=a.extend,r=a.isFirefox,v=a.isMS,q=a.isWebKit,x=a.pick,y=a.pInt,b=a.SVGRenderer,g=a.win,m=a.wrap;d(a.SVGElement.prototype,{htmlCss:function(a){var b="SPAN"===this.element.tagName&&a&&"width"in a,
          c=x(b&&a.width,void 0);b&&(delete a.width,this.textWidth=c,this.htmlUpdateTransform());a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=d(this.styles,a);G(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.translateX||0,e=this.translateY||0,g=this.x||0,m=this.y||0,w=this.textAlign||
          "left",d={left:0,center:.5,right:1}[w],z=this.styles,B=z&&z.whiteSpace;G(b,{marginLeft:c,marginTop:e});this.shadows&&f(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:e+1})});this.inverted&&f(b.childNodes,function(c){a.invertChild(c,b)});if("SPAN"===b.tagName){var z=this.rotation,p=this.textWidth&&y(this.textWidth),E=[z,w,b.innerHTML,this.textWidth,this.textAlign].join(),A;(A=p!==this.oldTextWidth)&&!(A=p>this.oldTextWidth)&&((A=this.textPxLength)||(G(b,{width:"",whiteSpace:B||"nowrap"}),A=
          b.offsetWidth),A=A>p);A&&/[ \-]/.test(b.textContent||b.innerText)?(G(b,{width:p+"px",display:"block",whiteSpace:B||"normal"}),this.oldTextWidth=p,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;E!==this.cTT&&(B=a.fontMetrics(b.style.fontSize).b,!t(z)||z===(this.oldRotation||0)&&w===this.oldAlign||this.setSpanRotation(z,d,B),this.getSpanCorrection(!t(z)&&this.textPxLength||b.offsetWidth,B,d,z,w));G(b,{left:g+(this.xCorr||0)+"px",top:m+(this.yCorr||0)+"px"});this.cTT=E;this.oldRotation=z;this.oldAlign=
          w}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},g=this.renderer.getTransformKey();e[g]=e.transform="rotate("+a+"deg)";e[g+(r?"Origin":"-origin")]=e.transformOrigin=100*b+"% "+c+"px";G(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});d(b.prototype,{getTransformKey:function(){return v&&!/Edge/.test(g.navigator.userAgent)?"-ms-transform":q?"-webkit-transform":r?"MozTransform":g.opera?"-o-transform":""},html:function(a,b,c){var e=this.createElement("span"),
          g=e.element,y=e.renderer,w=y.isSVG,q=function(a,c){f(["opacity","visibility"],function(e){m(a,e+"Setter",function(a,e,b,p){a.call(this,e,b,p);c[b]=e})});a.addedSetters=!0};e.textSetter=function(a){a!==g.innerHTML&&delete this.bBox;this.textStr=a;g.innerHTML=x(a,"");e.doTransform=!0};w&&q(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,c){"align"===c&&(c="textAlign");e[c]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=
          !1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:"absolute"});g.style.whiteSpace="nowrap";e.css=e.htmlCss;w&&(e.add=function(a){var c,b=y.box.parentNode,l=[];if(this.parentGroup=a){if(c=a.div,!c){for(;a;)l.push(a),a=a.parentGroup;f(l.reverse(),function(a){function g(k,c){a[c]=k;"translateX"===c?n.left=k+"px":n.top=k+"px";a.doTransform=!0}var n,k=C(a.element,"class");k&&(k={className:k});c=a.div=a.div||H("div",k,{position:"absolute",
          left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},c||b);n=c.style;d(a,{classSetter:function(a){return function(k){this.element.setAttribute("class",k);a.className=k}}(c),on:function(){l[0].div&&e.on.apply({element:l[0].div},arguments);return a},translateXSetter:g,translateYSetter:g});a.addedSetters||q(a,n)})}}else c=b;c.appendChild(g);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(K);
      (function(a){var C=a.defined,H=a.each,G=a.extend,t=a.merge,f=a.pick,d=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(a){var d=f(a&&a.useUTC,!0),x=this;this.options=a=t(!0,this.options||{},a);this.Date=a.Date||r.Date;this.timezoneOffset=(this.useUTC=d)&&a.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(d&&!a.getTimezoneOffset&&!a.timezone))||this.timezoneOffset?(this.get=function(a,b){var g=
              b.getTime(),m=g-x.getTimezoneOffset(b);b.setTime(m);a=b["getUTC"+a]();b.setTime(g);return a},this.set=function(a,b,g){var m;if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===b.getTimezoneOffset()%60)b["set"+a](g);else m=x.getTimezoneOffset(b),m=b.getTime()-m,b.setTime(m),b["setUTC"+a](g),a=x.getTimezoneOffset(b),m=b.getTime()+a,b.setTime(m)}):d?(this.get=function(a,b){return b["getUTC"+a]()},this.set=function(a,b,g){return b["setUTC"+a](g)}):(this.get=function(a,b){return b["get"+a]()},this.set=
              function(a,b,g){return b["set"+a](g)})},makeTime:function(d,q,x,y,b,g){var m,l,n;this.useUTC?(m=this.Date.UTC.apply(0,arguments),l=this.getTimezoneOffset(m),m+=l,n=this.getTimezoneOffset(m),l!==n?m+=n-l:l-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(d,q,f(x,1),f(y,0),f(b,0),f(g,0))).getTime();return m},timezoneOffsetFunction:function(){var d=this,f=this.options,x=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(f.timezone){if(x)return function(a){return 6E4*
              -x.tz(a,f.timezone).utcOffset()};a.error(25)}return this.useUTC&&f.getTimezoneOffset?function(a){return 6E4*f.getTimezoneOffset(a)}:function(){return 6E4*(d.timezoneOffset||0)}},dateFormat:function(d,f,x){if(!a.defined(f)||isNaN(f))return a.defaultOptions.lang.invalidDate||"";d=a.pick(d,"%Y-%m-%d %H:%M:%S");var y=this,b=new this.Date(f),g=this.get("Hours",b),m=this.get("Day",b),l=this.get("Date",b),n=this.get("Month",b),c=this.get("FullYear",b),e=a.defaultOptions.lang,u=e.weekdays,D=e.shortWeekdays,
              w=a.pad,b=a.extend({a:D?D[m]:u[m].substr(0,3),A:u[m],d:w(l),e:w(l,2," "),w:m,b:e.shortMonths[n],B:e.months[n],m:w(n+1),o:n+1,y:c.toString().substr(2,2),Y:c,H:w(g),k:g,I:w(g%12||12),l:g%12||12,M:w(y.get("Minutes",b)),p:12>g?"AM":"PM",P:12>g?"am":"pm",S:w(b.getSeconds()),L:w(Math.floor(f%1E3),3)},a.dateFormats);a.objectEach(b,function(a,c){for(;-1!==d.indexOf("%"+c);)d=d.replace("%"+c,"function"===typeof a?a.call(y,f):a)});return x?d.substr(0,1).toUpperCase()+d.substr(1):d},resolveDTLFormat:function(d){return a.isObject(d,
              !0)?d:(d=a.splat(d),{main:d[0],from:d[1],to:d[2]})},getTimeTicks:function(a,q,x,y){var b=this,g=[],m,l={},n;m=new b.Date(q);var c=a.unitRange,e=a.count||1,u;y=f(y,1);if(C(q)){b.set("Milliseconds",m,c>=d.second?0:e*Math.floor(b.get("Milliseconds",m)/e));c>=d.second&&b.set("Seconds",m,c>=d.minute?0:e*Math.floor(b.get("Seconds",m)/e));c>=d.minute&&b.set("Minutes",m,c>=d.hour?0:e*Math.floor(b.get("Minutes",m)/e));c>=d.hour&&b.set("Hours",m,c>=d.day?0:e*Math.floor(b.get("Hours",m)/e));c>=d.day&&b.set("Date",
              m,c>=d.month?1:e*Math.floor(b.get("Date",m)/e));c>=d.month&&(b.set("Month",m,c>=d.year?0:e*Math.floor(b.get("Month",m)/e)),n=b.get("FullYear",m));c>=d.year&&b.set("FullYear",m,n-n%e);c===d.week&&(n=b.get("Day",m),b.set("Date",m,b.get("Date",m)-n+y+(n<y?-7:0)));n=b.get("FullYear",m);y=b.get("Month",m);var D=b.get("Date",m),w=b.get("Hours",m);q=m.getTime();b.variableTimezone&&(u=x-q>4*d.month||b.getTimezoneOffset(q)!==b.getTimezoneOffset(x));q=m.getTime();for(m=1;q<x;)g.push(q),q=c===d.year?b.makeTime(n+
              m*e,0):c===d.month?b.makeTime(n,y+m*e):!u||c!==d.day&&c!==d.week?u&&c===d.hour&&1<e?b.makeTime(n,y,D,w+m*e):q+c*e:b.makeTime(n,y,D+m*e*(c===d.day?1:7)),m++;g.push(q);c<=d.hour&&1E4>g.length&&H(g,function(a){0===a%18E5&&"000000000"===b.dateFormat("%H%M%S%L",a)&&(l[a]="day")})}g.info=G(a,{higherRanks:l,totalRange:c*e});return g}}})(K);(function(a){var C=a.color,H=a.merge;a.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),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,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},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:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",
                  position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},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,backgroundColor:C("#f7f7f7").setOpacity(.85).get(),borderWidth:1,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',
              pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};a.setOptions=function(C){a.defaultOptions=H(!0,a.defaultOptions,C);a.time.update(H(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(H(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,t,f){return a.time.dateFormat(C,t,f)}})(K);(function(a){var C=a.correctFloat,H=a.defined,G=a.destroyObjectProperties,t=a.fireEvent,f=a.isNumber,d=a.merge,r=a.pick,v=a.deg2rad;a.Tick=function(a,d,f,b,g){this.axis=a;this.pos=d;this.type=f||"";this.isNewLabel=this.isNew=
          !0;this.parameters=g||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;f||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var f=this,x=f.axis,y=x.options,b=x.chart,g=x.categories,m=x.names,l=f.pos,n=r(f.options&&f.options.labels,y.labels),c=x.tickPositions,e=l===c[0],u=l===c[c.length-1],g=this.parameters.category||(g?r(g[l],m[l],l):l),D=f.label,c=c.info,w,v,z,B;x.isDatetimeAxis&&c&&(v=b.time.resolveDTLFormat(y.dateTimeLabelFormats[!y.grid&&c.higherRanks[l]||
          c.unitName]),w=v.main);f.isFirst=e;f.isLast=u;f.formatCtx={axis:x,chart:b,isFirst:e,isLast:u,dateTimeLabelFormat:w,tickPositionInfo:c,value:x.isLog?C(x.lin2log(g)):g,pos:l};y=x.labelFormatter.call(f.formatCtx,this.formatCtx);if(B=v&&v.list)f.shortenLabel=function(){for(z=0;z<B.length;z++)if(D.attr({text:x.labelFormatter.call(a.extend(f.formatCtx,{dateTimeLabelFormat:B[z]}))}),D.getBBox().width<x.getSlotWidth(f)-2*r(n.padding,5))return;D.attr({text:""})};if(H(D))D&&D.textStr!==y&&(!D.textWidth||n.style&&
          n.style.width||D.styles.width||D.css({width:null}),D.attr({text:y}));else{if(f.label=D=H(y)&&n.enabled?b.renderer.text(y,0,0,n.useHTML).css(d(n.style)).add(x.labelGroup):null)D.textPxLength=D.getBBox().width;f.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(a){var d=this.axis,f=d.options.labels,b=a.x,g=d.chart.chartWidth,m=d.chart.spacing,l=r(d.labelLeft,Math.min(d.pos,m[3])),m=r(d.labelRight,Math.max(d.isRadial?
              0:d.pos+d.len,g-m[1])),n=this.label,c=this.rotation,e={left:0,center:.5,right:1}[d.labelAlign||n.attr("align")],u=n.getBBox().width,D=d.getSlotWidth(this),w=D,t=1,z,B={};if(c||"justify"!==r(f.overflow,"justify"))0>c&&b-e*u<l?z=Math.round(b/Math.cos(c*v)-l):0<c&&b+e*u>m&&(z=Math.round((g-b)/Math.cos(c*v)));else if(g=b+(1-e)*u,b-e*u<l?w=a.x+w*(1-e)-l:g>m&&(w=m-a.x+w*e,t=-1),w=Math.min(D,w),w<D&&"center"===d.labelAlign&&(a.x+=t*(D-w-e*(D-Math.min(u,w)))),u>w||d.autoRotation&&(n.styles||{}).width)z=w;
              z&&(this.shortenLabel?this.shortenLabel():(B.width=z,(f.style||{}).textOverflow||(B.textOverflow="ellipsis"),n.css(B)))},getPosition:function(d,f,y,b){var g=this.axis,m=g.chart,l=b&&m.oldChartHeight||m.chartHeight;d={x:d?a.correctFloat(g.translate(f+y,null,null,b)+g.transB):g.left+g.offset+(g.opposite?(b&&m.oldChartWidth||m.chartWidth)-g.right-g.left:0),y:d?l-g.bottom+g.offset-(g.opposite?g.height:0):a.correctFloat(l-g.translate(f+y,null,null,b)-g.transB)};t(this,"afterGetPosition",{pos:d});return d},
          getLabelPosition:function(a,d,f,b,g,m,l,n){var c=this.axis,e=c.transA,u=c.reversed,D=c.staggerLines,w=c.tickRotCorr||{x:0,y:0},r=g.y,z=b||c.reserveSpaceDefault?0:-c.labelOffset*("center"===c.labelAlign?.5:1),B={};H(r)||(r=0===c.side?f.rotation?-8:-f.getBBox().height:2===c.side?w.y+8:Math.cos(f.rotation*v)*(w.y-f.getBBox(!1,0).height/2));a=a+g.x+z+w.x-(m&&b?m*e*(u?-1:1):0);d=d+r-(m&&!b?m*e*(u?1:-1):0);D&&(f=l/(n||1)%D,c.opposite&&(f=D-f-1),d+=c.labelOffset/D*f);B.x=a;B.y=Math.round(d);t(this,"afterGetLabelPosition",
              {pos:B});return B},getMarkPath:function(a,d,f,b,g,m){return m.crispLine(["M",a,d,"L",a+(g?0:-f),d+(g?f:0)],b)},renderGridLine:function(a,d,f){var b=this.axis,g=b.options,m=this.gridLine,l={},n=this.pos,c=this.type,e=r(this.tickmarkOffset,b.tickmarkOffset),u=b.chart.renderer,D=c?c+"Grid":"grid",w=g[D+"LineWidth"],v=g[D+"LineColor"],g=g[D+"LineDashStyle"];m||(l.stroke=v,l["stroke-width"]=w,g&&(l.dashstyle=g),c||(l.zIndex=1),a&&(d=0),this.gridLine=m=u.path().attr(l).addClass("highcharts-"+(c?c+"-":"")+
              "grid-line").add(b.gridGroup));if(m&&(f=b.getPlotLinePath(n+e,m.strokeWidth()*f,a,"pass")))m[a||this.isNew?"attr":"animate"]({d:f,opacity:d})},renderMark:function(a,d,f){var b=this.axis,g=b.options,m=b.chart.renderer,l=this.type,n=l?l+"Tick":"tick",c=b.tickSize(n),e=this.mark,u=!e,D=a.x;a=a.y;var w=r(g[n+"Width"],!l&&b.isXAxis?1:0),g=g[n+"Color"];c&&(b.opposite&&(c[0]=-c[0]),u&&(this.mark=e=m.path().addClass("highcharts-"+(l?l+"-":"")+"tick").add(b.axisGroup),e.attr({stroke:g,"stroke-width":w})),
              e[u?"attr":"animate"]({d:this.getMarkPath(D,a,c[0],e.strokeWidth()*f,b.horiz,m),opacity:d}))},renderLabel:function(a,d,y,b){var g=this.axis,m=g.horiz,l=g.options,n=this.label,c=l.labels,e=c.step,g=r(this.tickmarkOffset,g.tickmarkOffset),u=!0,D=a.x;a=a.y;n&&f(D)&&(n.xy=a=this.getLabelPosition(D,a,n,m,c,g,b,e),this.isFirst&&!this.isLast&&!r(l.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(l.showLastLabel,1)?u=!1:!m||c.step||c.rotation||d||0===y||this.handleOverflow(a),e&&b%e&&(u=!1),u&&f(a.y)?(a.opacity=
              y,n[this.isNewLabel?"attr":"animate"](a),this.isNewLabel=!1):(n.attr("y",-9999),this.isNewLabel=!0))},render:function(d,f,y){var b=this.axis,g=b.horiz,m=this.pos,l=r(this.tickmarkOffset,b.tickmarkOffset),m=this.getPosition(g,m,l,f),l=m.x,n=m.y,b=g&&l===b.pos+b.len||!g&&n===b.pos?-1:1;y=r(y,1);this.isActive=!0;this.renderGridLine(f,y,b);this.renderMark(m,y,b);this.renderLabel(m,f,y,d);this.isNew=!1;a.fireEvent(this,"afterRender")},destroy:function(){G(this,this.axis)}}})(K);var V=function(a){var C=
          a.addEvent,H=a.animObject,G=a.arrayMax,t=a.arrayMin,f=a.color,d=a.correctFloat,r=a.defaultOptions,v=a.defined,q=a.deg2rad,x=a.destroyObjectProperties,y=a.each,b=a.extend,g=a.fireEvent,m=a.format,l=a.getMagnitude,n=a.grep,c=a.inArray,e=a.isArray,u=a.isNumber,D=a.isString,w=a.merge,O=a.normalizeTickInterval,z=a.objectEach,B=a.pick,p=a.removeEvent,E=a.splat,A=a.syncTimeout,M=a.Tick,I=function(){this.init.apply(this,arguments)};a.extend(I.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",
                      range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",
                  style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},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)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",
                      textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},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,h){var e=h.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!e:e;b.isXAxis=e;b.coll=b.coll||(e?"xAxis":"yAxis");g(this,"init",{userOptions:h});b.opposite=
              h.opposite;b.side=h.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(h);var p=this.options,l=p.type;b.labelFormatter=p.labels.formatter||b.defaultLabelFormatter;b.userOptions=h;b.minPixelPadding=0;b.reversed=p.reversed;b.visible=!1!==p.visible;b.zoomEnabled=!1!==p.zoomEnabled;b.hasNames="category"===l||!0===p.categories;b.categories=p.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog="logarithmic"===l;b.isDatetimeAxis="datetime"===l;b.positiveValuesOnly=
              b.isLog&&!b.allowNegativeLog;b.isLinked=v(p.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=p.minRange||p.maxZoom;b.range=p.range;b.offset=p.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=B(p.crosshair,E(a.options.tooltip.crosshairs)[e?0:1],!1);h=b.options.events;-1===c(b,a.axes)&&(e?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&
          !b.isZAxis&&e&&void 0===b.reversed&&(b.reversed=!0);z(h,function(a,k){C(b,k,a)});b.lin2log=p.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);g(this,"afterInit")},setOptions:function(a){this.options=w(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],w(r[this.coll],a));g(this,"afterSetOptions",{userOptions:a})},defaultLabelFormatter:function(){var k=
              this.axis,h=this.value,c=k.chart.time,b=k.categories,e=this.dateTimeLabelFormat,p=r.lang,l=p.numericSymbols,p=p.numericSymbolMagnitude||1E3,g=l&&l.length,n,u=k.options.labels.format,k=k.isLog?Math.abs(h):k.tickInterval;if(u)n=m(u,this,c);else if(b)n=h;else if(e)n=c.dateFormat(e,h);else if(g&&1E3<=k)for(;g--&&void 0===n;)c=Math.pow(p,g+1),k>=c&&0===10*h%c&&null!==l[g]&&0!==h&&(n=a.numberFormat(h/c,-1)+l[g]);void 0===n&&(n=1E4<=Math.abs(h)?a.numberFormat(h,-1):a.numberFormat(h,-1,void 0,""));return n},
          getSeriesExtremes:function(){var a=this,h=a.chart;g(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();y(a.series,function(c){if(c.visible||!h.options.chart.ignoreHiddenSeries){var b=c.options,e=b.threshold,p;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)b=c.xData,b.length&&(c=t(b),p=G(b),u(c)||c instanceof Date||(b=n(b,u),c=t(b),p=G(b)),b.length&&(a.dataMin=Math.min(B(a.dataMin,
              b[0],c),c),a.dataMax=Math.max(B(a.dataMax,b[0],p),p)));else if(c.getExtremes(),p=c.dataMax,c=c.dataMin,v(c)&&v(p)&&(a.dataMin=Math.min(B(a.dataMin,c),c),a.dataMax=Math.max(B(a.dataMax,p),p)),v(e)&&(a.threshold=e),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});g(this,"afterGetSeriesExtremes")},translate:function(a,h,c,b,e,p){var l=this.linkedParent||this,g=1,n=0,A=b?l.oldTransA:l.transA;b=b?l.oldMin:l.min;var w=l.minPixelPadding;e=(l.isOrdinal||l.isBroken||l.isLog&&e)&&l.lin2val;A||
          (A=l.transA);c&&(g*=-1,n=l.len);l.reversed&&(g*=-1,n-=g*(l.sector||l.len));h?(a=(a*g+n-w)/A+b,e&&(a=l.lin2val(a))):(e&&(a=l.val2lin(a)),a=u(b)?g*(a-b)*A+n+g*w+(u(p)?A*p:0):void 0);return a},toPixels:function(a,h){return this.translate(a,!1,!this.horiz,null,!0)+(h?0:this.pos)},toValue:function(a,h){return this.translate(a-(h?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,h,c,b,e){var p=this.chart,l=this.left,g=this.top,n,A,w=c&&p.oldChartHeight||p.chartHeight,m=c&&p.oldChartWidth||
              p.chartWidth,d;n=this.transB;var E=function(a,k,h){if("pass"!==b&&a<k||a>h)b?a=Math.min(Math.max(k,a),h):d=!0;return a};e=B(e,this.translate(a,null,null,c));e=Math.min(Math.max(-1E5,e),1E5);a=c=Math.round(e+n);n=A=Math.round(w-e-n);u(e)?this.horiz?(n=g,A=w-this.bottom,a=c=E(a,l,l+this.width)):(a=l,c=m-this.right,n=A=E(n,g,g+this.height)):(d=!0,b=!1);return d&&!b?null:p.renderer.crispLine(["M",a,n,"L",c,A],h||1)},getLinearTickPositions:function(a,h,c){var b,e=d(Math.floor(h/a)*a);c=d(Math.ceil(c/a)*
              a);var p=[],l;d(e+a)===e&&(l=20);if(this.single)return[h];for(h=e;h<=c;){p.push(h);h=d(h+a,l);if(h===b)break;b=h}return p},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?B(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,h=a.options,c=a.tickPositions,b=a.minorTickInterval,e=[],p=a.pointRangePadding||0,l=a.min-p,p=a.max+p,g=p-l;if(g&&g/b<a.len/3)if(a.isLog)y(this.paddedTicks,function(h,c,p){c&&e.push.apply(e,
              a.getLogTickPositions(b,p[c-1],p[c],!0))});else if(a.isDatetimeAxis&&"auto"===this.getMinorTickInterval())e=e.concat(a.getTimeTicks(a.normalizeTimeTickInterval(b),l,p,h.startOfWeek));else for(h=l+(c[0]-l)%b;h<=p&&h!==e[0];h+=b)e.push(h);0!==e.length&&a.trimTicks(e);return e},adjustForMinRange:function(){var a=this.options,h=this.min,c=this.max,b,e,p,l,g,n,u;this.isXAxis&&void 0===this.minRange&&!this.isLog&&(v(a.min)||v(a.max)?this.minRange=null:(y(this.series,function(a){n=a.xData;for(l=a.xIncrement?
              1:n.length-1;0<l;l--)if(g=n[l]-n[l-1],void 0===p||g<p)p=g}),this.minRange=Math.min(5*p,this.dataMax-this.dataMin)));c-h<this.minRange&&(e=this.dataMax-this.dataMin>=this.minRange,u=this.minRange,b=(u-c+h)/2,b=[h-b,B(a.min,h-b)],e&&(b[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),h=G(b),c=[h+u,B(a.max,h+u)],e&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=t(c),c-h<u&&(b[0]=c-u,b[1]=B(a.min,c-u),h=G(b)));this.min=h;this.max=c},getClosest:function(){var a;this.categories?a=1:y(this.series,
              function(h){var c=h.closestPointRange,b=h.visible||!h.chart.options.chart.ignoreHiddenSeries;!h.noSharedTooltip&&v(c)&&b&&(a=v(a)?Math.min(a,c):c)});return a},nameToX:function(a){var h=e(this.categories),b=h?this.categories:this.names,p=a.options.x,l;a.series.requireSorting=!1;v(p)||(p=!1===this.options.uniqueNames?a.series.autoIncrement():h?c(a.name,b):B(b.keys[a.name],-1));-1===p?h||(l=b.length):l=p;void 0!==l&&(this.names[l]=a.name,this.names.keys[a.name]=l);return l},updateNames:function(){var k=
              this,h=this.names;0<h.length&&(y(a.keys(h.keys),function(a){delete h.keys[a]}),h.length=0,this.minRange=this.userMinRange,y(this.series||[],function(a){a.xIncrement=null;if(!a.points||a.isDirtyData)a.processData(),a.generatePoints();y(a.points,function(h,c){var b;h.options&&(b=k.nameToX(h),void 0!==b&&b!==h.x&&(h.x=b,a.xData[c]=b))})}))},setAxisTranslation:function(a){var h=this,c=h.max-h.min,b=h.axisPointRange||0,e,p=0,l=0,n=h.linkedParent,u=!!h.categories,A=h.transA,w=h.isXAxis;if(w||u||b)e=h.getClosest(),
              n?(p=n.minPointOffset,l=n.pointRangePadding):y(h.series,function(a){var k=u?1:w?B(a.options.pointRange,e,0):h.axisPointRange||0;a=a.options.pointPlacement;b=Math.max(b,k);h.single||(p=Math.max(p,D(a)?0:k/2),l=Math.max(l,"on"===a?0:k))}),n=h.ordinalSlope&&e?h.ordinalSlope/e:1,h.minPointOffset=p*=n,h.pointRangePadding=l*=n,h.pointRange=Math.min(b,c),w&&(h.closestPointRange=e);a&&(h.oldTransA=A);h.translationSlope=h.transA=A=h.staticScale||h.len/(c+l||1);h.transB=h.horiz?h.left:h.bottom;h.minPixelPadding=
              A*p;g(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(k){var h=this,c=h.chart,b=h.options,e=h.isLog,p=h.isDatetimeAxis,n=h.isXAxis,A=h.isLinked,w=b.maxPadding,m=b.minPadding,E=b.tickInterval,f=b.tickPixelInterval,z=h.categories,D=u(h.threshold)?h.threshold:null,I=h.softThreshold,M,r,x,q;p||z||A||this.getTickAmount();x=B(h.userMin,b.min);q=B(h.userMax,b.max);A?(h.linkedParent=c[h.coll][b.linkedTo],c=h.linkedParent.getExtremes(),h.min=B(c.min,
              c.dataMin),h.max=B(c.max,c.dataMax),b.type!==h.linkedParent.options.type&&a.error(11,1)):(!I&&v(D)&&(h.dataMin>=D?(M=D,m=0):h.dataMax<=D&&(r=D,w=0)),h.min=B(x,M,h.dataMin),h.max=B(q,r,h.dataMax));e&&(h.positiveValuesOnly&&!k&&0>=Math.min(h.min,B(h.dataMin,h.min))&&a.error(10,1),h.min=d(h.log2lin(h.min),15),h.max=d(h.log2lin(h.max),15));h.range&&v(h.max)&&(h.userMin=h.min=x=Math.max(h.dataMin,h.minFromRange()),h.userMax=q=h.max,h.range=null);g(h,"foundExtremes");h.beforePadding&&h.beforePadding();
              h.adjustForMinRange();!(z||h.axisPointRange||h.usePercentage||A)&&v(h.min)&&v(h.max)&&(c=h.max-h.min)&&(!v(x)&&m&&(h.min-=c*m),!v(q)&&w&&(h.max+=c*w));u(b.softMin)&&!u(h.userMin)&&(h.min=Math.min(h.min,b.softMin));u(b.softMax)&&!u(h.userMax)&&(h.max=Math.max(h.max,b.softMax));u(b.floor)&&(h.min=Math.max(h.min,b.floor));u(b.ceiling)&&(h.max=Math.min(h.max,b.ceiling));I&&v(h.dataMin)&&(D=D||0,!v(x)&&h.min<D&&h.dataMin>=D?h.min=D:!v(q)&&h.max>D&&h.dataMax<=D&&(h.max=D));h.tickInterval=h.min===h.max||
              void 0===h.min||void 0===h.max?1:A&&!E&&f===h.linkedParent.options.tickPixelInterval?E=h.linkedParent.tickInterval:B(E,this.tickAmount?(h.max-h.min)/Math.max(this.tickAmount-1,1):void 0,z?1:(h.max-h.min)*f/Math.max(h.len,f));n&&!k&&y(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&&!E&&(h.tickInterval=
                  Math.max(h.pointRange,h.tickInterval));k=B(b.minTickInterval,h.isDatetimeAxis&&h.closestPointRange);!E&&h.tickInterval<k&&(h.tickInterval=k);p||e||E||(h.tickInterval=O(h.tickInterval,null,l(h.tickInterval),B(b.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 k=this.options,h,c=k.tickPositions;h=this.getMinorTickInterval();var b=k.tickPositioner,e=
              k.startOnTick,p=k.endOnTick;this.tickmarkOffset=this.categories&&"between"===k.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===h&&this.tickInterval?this.tickInterval/5:h;this.single=this.min===this.max&&v(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==k.allowDecimals);this.tickPositions=h=c&&c.slice();!h&&(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)?(h=[this.min,this.max],a.error(19)):h=this.isDatetimeAxis?
              this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,k.units),this.min,this.max,k.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),h.length>this.len&&(h=[h[0],h.pop()],h[0]===h[1]&&(h.length=1)),this.tickPositions=h,b&&(b=b.apply(this,[this.min,this.max])))&&(this.tickPositions=h=b);this.paddedTicks=h.slice(0);this.trimTicks(h,e,p);this.isLinked||
          (this.single&&2>h.length&&(this.min-=.5,this.max+=.5),c||b||this.adjustTickAmount());g(this,"afterSetTickPositions")},trimTicks:function(a,h,c){var b=a[0],e=a[a.length-1],p=this.minPointOffset||0;if(!this.isLinked){if(h&&-Infinity!==b)this.min=b;else for(;this.min-p>a[0];)a.shift();if(c)this.max=e;else for(;this.max+p<a[a.length-1];)a.pop();0===a.length&&v(b)&&!this.options.tickPositions&&a.push((e+b)/2)}},alignToOthers:function(){var a={},h,c=this.options;!1===this.chart.options.chart.alignTicks||
          !1===c.alignTicks||!1===c.startOnTick||!1===c.endOnTick||this.isLog||y(this.chart[this.coll],function(c){var b=c.options,b=[c.horiz?b.left:b.top,b.width,b.height,b.pane].join();c.series.length&&(a[b]?h=!0:a[b]=1)});return h},getTickAmount:function(){var a=this.options,h=a.tickAmount,c=a.tickPixelInterval;!v(a.tickInterval)&&this.len<c&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&(h=2);!h&&this.alignToOthers()&&(h=Math.ceil(this.len/c)+1);4>h&&(this.finalTickAmt=h,h=5);this.tickAmount=
              h},adjustTickAmount:function(){var a=this.tickInterval,h=this.tickPositions,c=this.tickAmount,b=this.finalTickAmt,e=h&&h.length,p=B(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(e<c){for(;h.length<c;)h.length%2||this.min===p?h.push(d(h[h.length-1]+a)):h.unshift(d(h[0]-a));this.transA*=(e-1)/(c-1);this.min=h[0];this.max=h[h.length-1]}else e>c&&(this.tickInterval*=2,this.setTickPositions());if(v(b)){for(a=c=h.length;a--;)(3===b&&1===a%2||2>=b&&0<a&&a<c-1)&&h.splice(a,1);this.finalTickAmt=
              void 0}}},setScale:function(){var a,h;this.oldMin=this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();h=this.len!==this.oldAxisLength;y(this.series,function(h){if(h.isDirtyData||h.isDirty||h.xAxis.isDirty)a=!0});h||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=h||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks();g(this,"afterSetScale")},setExtremes:function(a,h,c,e,p){var l=this,n=l.chart;c=B(c,!0);y(l.series,function(a){delete a.kdTree});p=b(p,{min:a,max:h});g(l,"setExtremes",p,function(){l.userMin=a;l.userMax=h;l.eventArgs=p;c&&n.redraw(e)})},zoom:function(a,h){var c=this.dataMin,b=this.dataMax,e=this.options,p=Math.min(c,B(e.min,c)),e=Math.max(b,B(e.max,b));if(a!==this.min||
              h!==this.max)this.allowZoomOutside||(v(c)&&(a<p&&(a=p),a>e&&(a=e)),v(b)&&(h<p&&(h=p),h>e&&(h=e))),this.displayBtn=void 0!==a||void 0!==h,this.setExtremes(a,h,!1,void 0,{trigger:"zoom"});return!0},setAxisSize:function(){var k=this.chart,h=this.options,c=h.offsets||[0,0,0,0],b=this.horiz,e=this.width=Math.round(a.relativeLength(B(h.width,k.plotWidth-c[3]+c[1]),k.plotWidth)),p=this.height=Math.round(a.relativeLength(B(h.height,k.plotHeight-c[0]+c[2]),k.plotHeight)),l=this.top=Math.round(a.relativeLength(B(h.top,
              k.plotTop+c[0]),k.plotHeight,k.plotTop)),h=this.left=Math.round(a.relativeLength(B(h.left,k.plotLeft+c[3]),k.plotWidth,k.plotLeft));this.bottom=k.chartHeight-p-l;this.right=k.chartWidth-e-h;this.len=Math.max(b?e:p,0);this.pos=b?h:l},getExtremes:function(){var a=this.isLog;return{min:a?d(this.lin2log(this.min)):this.min,max:a?d(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var h=this.isLog,c=h?this.lin2log(this.min):
              this.min,h=h?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=c:Infinity===a?a=h:c>a?a=c:h<a&&(a=h);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){a=(B(a,0)-90*this.side+720)%360;return 15<a&&165>a?"right":195<a&&345>a?"left":"center"},tickSize:function(a){var h=this.options,c=h[a+"Length"],b=B(h[a+"Width"],"tick"===a&&this.isXAxis?1:0);if(b&&c)return"inside"===h[a+"Position"]&&(c=-c),[c,b]},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,h=this.horiz,c=this.tickInterval,b=c,e=this.len/(((this.categories?1:0)+this.max-this.min)/c),p,l=a.rotation,g=this.labelMetrics(),n,u=Number.MAX_VALUE,A,w=function(a){a/=e||1;a=1<a?Math.ceil(a):1;return d(a*c)};h?(A=!a.staggerLines&&!a.step&&(v(l)?[l]:e<B(a.autoRotationLimit,80)&&a.autoRotation))&&y(A,function(a){var h;if(a===l||a&&-90<=a&&90>=a)n=w(Math.abs(g.h/Math.sin(q*a))),h=
              n+Math.abs(a/360),h<u&&(u=h,p=a,b=n)}):a.step||(b=w(g.h));this.autoRotation=A;this.labelRotation=B(p,l);return b},getSlotWidth:function(a){var h=this.chart,c=this.horiz,b=this.options.labels,e=Math.max(this.tickPositions.length-(this.categories?0:1),1),p=h.margin[3];return a&&a.slotWidth||c&&2>(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/e||!c&&(b.style&&parseInt(b.style.width,10)||p&&p-h.spacing[3]||.33*h.chartWidth)},renderUnsquish:function(){var a=this.chart,h=a.renderer,c=this.tickPositions,
              b=this.ticks,e=this.options.labels,p=e&&e.style||{},l=this.horiz,g=this.getSlotWidth(),n=Math.max(1,Math.round(g-2*(e.padding||5))),u={},A=this.labelMetrics(),w=e.style&&e.style.textOverflow,m,E,d=0,f;D(e.rotation)||(u.rotation=e.rotation||0);y(c,function(a){(a=b[a])&&a.label&&a.label.textPxLength>d&&(d=a.label.textPxLength)});this.maxLabelLength=d;if(this.autoRotation)d>n&&d>A.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(g&&(m=n,!w))for(E="clip",n=c.length;!l&&n--;)if(f=c[n],f=b[f].label)f.styles&&
          "ellipsis"===f.styles.textOverflow?f.css({textOverflow:"clip"}):f.textPxLength>g&&f.css({width:g+"px"}),f.getBBox().height>this.len/c.length-(A.h-A.f)&&(f.specificTextOverflow="ellipsis");u.rotation&&(m=d>.5*a.chartHeight?.33*a.chartHeight:d,w||(E="ellipsis"));if(this.labelAlign=e.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;y(c,function(a){var c=(a=b[a])&&a.label,h=p.width,k={};c&&(c.attr(u),a.shortenLabel?a.shortenLabel():m&&!h&&"nowrap"!==p.whiteSpace&&(m<c.textPxLength||
              "SPAN"===c.element.tagName)?(k.width=m,w||(k.textOverflow=c.specificTextOverflow||E),c.css(k)):c.styles&&c.styles.width&&!k.width&&!h&&c.css({width:null}),delete c.specificTextOverflow,a.rotation=u.rotation)},this);this.tickRotCorr=h.rotCorr(A.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 c=this.chart.renderer,b=this.horiz,e=this.opposite,p=this.options.title,
              l;this.axisTitle||((l=p.textAlign)||(l=(b?{low:"left",middle:"center",high:"right"}:{low:e?"right":"left",middle:"center",high:e?"left":"right"})[p.align]),this.axisTitle=c.text(p.text,0,0,p.useHTML).attr({zIndex:7,rotation:p.rotation||0,align:l}).addClass("highcharts-axis-title").css(w(p.style)).add(this.axisGroup),this.axisTitle.isNew=!0);p.style.width||this.isRadial||this.axisTitle.css({width:this.len});this.axisTitle[a?"show":"hide"](!0)},generateTick:function(a){var c=this.ticks;c[a]?c[a].addLabel():
              c[a]=new M(this,a)},getOffset:function(){var a=this,c=a.chart,b=c.renderer,e=a.options,p=a.tickPositions,l=a.ticks,n=a.horiz,u=a.side,A=c.inverted&&!a.isZAxis?[1,0,3,2][u]:u,w,m,d=0,E,f=0,D=e.title,I=e.labels,M=0,r=c.axisOffset,c=c.clipOffset,x=[-1,1,1,-1][u],q=e.className,t=a.axisParent;w=a.hasData();a.showAxis=m=w||B(e.showEmpty,!0);a.staggerLines=a.horiz&&I.staggerLines;a.axisGroup||(a.gridGroup=b.g("grid").attr({zIndex:e.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+
              (q||"")).add(t),a.axisGroup=b.g("axis").attr({zIndex:e.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(q||"")).add(t),a.labelGroup=b.g("axis-labels").attr({zIndex:I.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+"-labels "+(q||"")).add(t));w||a.isLinked?(y(p,function(c,h){a.generateTick(c,h)}),a.renderUnsquish(),a.reserveSpaceDefault=0===u||2===u||{1:"left",3:"right"}[u]===a.labelAlign,B(I.reserveSpace,"center"===a.labelAlign?!0:null,a.reserveSpaceDefault)&&y(p,function(a){M=
              Math.max(l[a].getLabelSize(),M)}),a.staggerLines&&(M*=a.staggerLines),a.labelOffset=M*(a.opposite?-1:1)):z(l,function(a,c){a.destroy();delete l[c]});D&&D.text&&!1!==D.enabled&&(a.addTitle(m),m&&!1!==D.reserveSpace&&(a.titleOffset=d=a.axisTitle.getBBox()[n?"height":"width"],E=D.offset,f=v(E)?0:B(D.margin,n?5:10)));a.renderLine();a.offset=x*B(e.offset,r[u]);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};b=0===u?-a.labelMetrics().h:2===u?a.tickRotCorr.y:0;f=Math.abs(M)+f;M&&(f=f-b+x*(n?B(I.y,a.tickRotCorr.y+
              8*x):I.x));a.axisTitleMargin=B(E,f);a.getMaxLabelDimensions&&(a.maxLabelDimensions=a.getMaxLabelDimensions(l,p));n=this.tickSize("tick");r[u]=Math.max(r[u],a.axisTitleMargin+d+x*a.offset,f,w&&p.length&&n?n[0]+x*a.offset:0);e=e.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2);c[A]=Math.max(c[A],e);g(this,"afterGetOffset")},getLinePath:function(a){var c=this.chart,b=this.opposite,e=this.offset,p=this.horiz,l=this.left+(b?this.width:0)+e,e=c.chartHeight-this.bottom-(b?this.height:0)+e;b&&(a*=-1);return c.renderer.crispLine(["M",
              p?this.left:l,p?e:this.top,"L",p?c.chartWidth-this.right:l,p?e:c.chartHeight-this.bottom],a)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var a=this.horiz,c=this.left,b=this.top,e=this.len,p=this.options.title,l=a?c:b,n=this.opposite,g=this.offset,u=p.x||0,A=p.y||0,w=this.axisTitle,m=
              this.chart.renderer.fontMetrics(p.style&&p.style.fontSize,w),w=Math.max(w.getBBox(null,0).height-m.h-1,0),e={low:l+(a?0:e),middle:l+e/2,high:l+(a?e:0)}[p.align],c=(a?b+this.height:c)+(a?1:-1)*(n?-1:1)*this.axisTitleMargin+[-w,w,m.f,-w][this.side];return{x:a?e+u:c+(n?this.width:0)+g+u,y:a?c+A-(n?this.height:0)+g:e+A}},renderMinorTick:function(a){var c=this.chart.hasRendered&&u(this.oldMin),b=this.minorTicks;b[a]||(b[a]=new M(this,a,"minor"));c&&b[a].isNew&&b[a].render(null,!0);b[a].render(null,!1,
              1)},renderTick:function(a,c){var b=this.isLinked,e=this.ticks,p=this.chart.hasRendered&&u(this.oldMin);if(!b||a>=this.min&&a<=this.max)e[a]||(e[a]=new M(this,a)),p&&e[a].isNew&&e[a].render(c,!0,-1),e[a].render(c)},render:function(){var c=this,b=c.chart,e=c.options,p=c.isLog,l=c.isLinked,n=c.tickPositions,w=c.axisTitle,m=c.ticks,d=c.minorTicks,E=c.alternateBands,f=e.stackLabels,D=e.alternateGridColor,B=c.tickmarkOffset,I=c.axisLine,x=c.showAxis,r=H(b.renderer.globalAnimation),q,v;c.labelEdge.length=
              0;c.overlap=!1;y([m,d,E],function(a){z(a,function(a){a.isActive=!1})});if(c.hasData()||l)c.minorTickInterval&&!c.categories&&y(c.getMinorTickPositions(),function(a){c.renderMinorTick(a)}),n.length&&(y(n,function(a,b){c.renderTick(a,b)}),B&&(0===c.min||c.single)&&(m[-1]||(m[-1]=new M(c,-1,null,!0)),m[-1].render(-1))),D&&y(n,function(e,l){v=void 0!==n[l+1]?n[l+1]+B:c.max-B;0===l%2&&e<c.max&&v<=c.max+(b.polar?-B:B)&&(E[e]||(E[e]=new a.PlotLineOrBand(c)),q=e+B,E[e].options={from:p?c.lin2log(q):q,to:p?
                  c.lin2log(v):v,color:D},E[e].render(),E[e].isActive=!0)}),c._addedPlotLB||(y((e.plotLines||[]).concat(e.plotBands||[]),function(a){c.addPlotBandOrLine(a)}),c._addedPlotLB=!0);y([m,d,E],function(a){var c,e=[],p=r.duration;z(a,function(a,c){a.isActive||(a.render(c,!1,0),a.isActive=!1,e.push(c))});A(function(){for(c=e.length;c--;)a[e[c]]&&!a[e[c]].isActive&&(a[e[c]].destroy(),delete a[e[c]])},a!==E&&b.hasRendered&&p?p:0)});I&&(I[I.isPlaced?"animate":"attr"]({d:this.getLinePath(I.strokeWidth())}),I.isPlaced=
              !0,I[x?"show":"hide"](!0));w&&x&&(e=c.getTitlePosition(),u(e.y)?(w[w.isNew?"attr":"animate"](e),w.isNew=!1):(w.attr("y",-9999),w.isNew=!0));f&&f.enabled&&c.renderStackTotals();c.isDirty=!1;g(this,"afterRender")},redraw:function(){this.visible&&(this.render(),y(this.plotLinesAndBands,function(a){a.render()}));y(this.series,function(a){a.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(a){var b=this,e=b.stacks,l=b.plotLinesAndBands,n;g(this,"destroy",
              {keepEvents:a});a||p(b);z(e,function(a,c){x(a);e[c]=null});y([b.ticks,b.minorTicks,b.alternateBands],function(a){x(a)});if(l)for(a=l.length;a--;)l[a].destroy();y("stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" "),function(a){b[a]&&(b[a]=b[a].destroy())});for(n in b.plotLinesAndBandsGroups)b.plotLinesAndBandsGroups[n]=b.plotLinesAndBandsGroups[n].destroy();z(b,function(a,e){-1===c(e,b.keepProps)&&delete b[e]})},drawCrosshair:function(a,c){var b,e=this.crosshair,
              p=B(e.snap,!0),l,n=this.cross;g(this,"drawCrosshair",{e:a,point:c});a||(a=this.cross&&this.cross.e);if(this.crosshair&&!1!==(v(c)||!p)){p?v(c)&&(l=B(c.crosshairPos,this.isXAxis?c.plotX:this.len-c.plotY)):l=a&&(this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos);v(l)&&(b=this.getPlotLinePath(c&&(this.isXAxis?c.x:B(c.stackY,c.y)),null,null,null,l)||null);if(!v(b)){this.hideCrosshair();return}p=this.categories&&!this.isRadial;n||(this.cross=n=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+
              (p?"category ":"thin ")+e.className).attr({zIndex:B(e.zIndex,2)}).add(),n.attr({stroke:e.color||(p?f("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":B(e.width,1)}).css({"pointer-events":"none"}),e.dashStyle&&n.attr({dashstyle:e.dashStyle}));n.show().attr({d:b});p&&!e.width&&n.attr({"stroke-width":this.transA});this.cross.e=a}else this.hideCrosshair();g(this,"afterDrawCrosshair",{e:a,point:c})},hideCrosshair:function(){this.cross&&this.cross.hide()}});return a.Axis=I}(K);(function(a){var C=
          a.Axis,H=a.getMagnitude,G=a.normalizeTickInterval,t=a.timeUnits;C.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)};C.prototype.normalizeTimeTickInterval=function(a,d){var r=d||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];d=r[r.length-1];var v=t[d[0]],q=d[1],x;for(x=0;x<r.length&&!(d=r[x],v=t[d[0]],
          q=d[1],r[x+1]&&a<=(v*q[q.length-1]+t[r[x+1][0]])/2);x++);v===t.year&&a<5*v&&(q=[1,2,5]);a=G(a/v,q,"year"===d[0]?Math.max(H(a/v),1):1);return{unitRange:v,count:a,unitName:d[0]}}})(K);(function(a){var C=a.Axis,H=a.getMagnitude,G=a.map,t=a.normalizeTickInterval,f=a.pick;C.prototype.getLogTickPositions=function(a,r,v,q){var x=this.options,y=this.len,b=[];q||(this._minorAutoInterval=null);if(.5<=a)a=Math.round(a),b=this.getLinearTickPositions(a,r,v);else if(.08<=a)for(var y=Math.floor(r),g,m,l,n,c,x=.3<
      a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];y<v+1&&!c;y++)for(m=x.length,g=0;g<m&&!c;g++)l=this.log2lin(this.lin2log(y)*x[g]),l>r&&(!q||n<=v)&&void 0!==n&&b.push(n),n>v&&(c=!0),n=l;else r=this.lin2log(r),v=this.lin2log(v),a=q?this.getMinorTickInterval():x.tickInterval,a=f("auto"===a?null:a,this._minorAutoInterval,x.tickPixelInterval/(q?5:1)*(v-r)/((q?y/this.tickPositions.length:y)||1)),a=t(a,null,H(a)),b=G(this.getLinearTickPositions(a,r,v),this.log2lin),q||(this._minorAutoInterval=a/5);q||(this.tickInterval=
          a);return b};C.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(K);(function(a,C){var H=a.arrayMax,G=a.arrayMin,t=a.defined,f=a.destroyObjectProperties,d=a.each,r=a.erase,v=a.merge,q=a.pick;a.PlotLineOrBand=function(a,d){this.axis=a;d&&(this.options=d,this.id=d.id)};a.PlotLineOrBand.prototype={render:function(){a.fireEvent(this,"render");var d=this,f=d.axis,b=f.horiz,g=d.options,m=g.label,l=d.label,n=g.to,c=g.from,e=g.value,u=t(c)&&
              t(n),D=t(e),w=d.svgElem,r=!w,z=[],B=g.color,p=q(g.zIndex,0),E=g.events,z={"class":"highcharts-plot-"+(u?"band ":"line ")+(g.className||"")},A={},M=f.chart.renderer,I=u?"bands":"lines";f.isLog&&(c=f.log2lin(c),n=f.log2lin(n),e=f.log2lin(e));D?(z.stroke=B,z["stroke-width"]=g.width,g.dashStyle&&(z.dashstyle=g.dashStyle)):u&&(B&&(z.fill=B),g.borderWidth&&(z.stroke=g.borderColor,z["stroke-width"]=g.borderWidth));A.zIndex=p;I+="-"+p;(B=f.plotLinesAndBandsGroups[I])||(f.plotLinesAndBandsGroups[I]=B=M.g("plot-"+
              I).attr(A).add());r&&(d.svgElem=w=M.path().attr(z).add(B));if(D)z=f.getPlotLinePath(e,w.strokeWidth());else if(u)z=f.getPlotBandPath(c,n,g);else return;r&&z&&z.length?(w.attr({d:z}),E&&a.objectEach(E,function(a,c){w.on(c,function(a){E[c].apply(d,[a])})})):w&&(z?(w.show(),w.animate({d:z})):(w.hide(),l&&(d.label=l=l.destroy())));m&&t(m.text)&&z&&z.length&&0<f.width&&0<f.height&&!z.isFlat?(m=v({align:b&&u&&"center",x:b?!u&&4:10,verticalAlign:!b&&u&&"middle",y:b?u?16:10:u?6:-4,rotation:b&&!u&&90},m),
              this.renderLabel(m,z,u,p)):l&&l.hide();return d},renderLabel:function(a,d,b,g){var m=this.label,l=this.axis.chart.renderer;m||(m={align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(b?"band":"line")+"-label "+(a.className||"")},m.zIndex=g,this.label=m=l.text(a.text,0,0,a.useHTML).attr(m).add(),m.css(a.style));g=d.xBounds||[d[1],d[4],b?d[6]:d[1]];d=d.yBounds||[d[2],d[5],b?d[7]:d[2]];b=G(g);l=G(d);m.align(a,!1,{x:b,y:l,width:H(g)-b,height:H(d)-l});m.show()},destroy:function(){r(this.axis.plotLinesAndBands,
              this);delete this.axis;f(this)}};a.extend(C.prototype,{getPlotBandPath:function(a,d){var b=this.getPlotLinePath(d,null,null,!0),g=this.getPlotLinePath(a,null,null,!0),m=[],l=this.horiz,n=1,c;a=a<this.min&&d<this.min||a>this.max&&d>this.max;if(g&&b)for(a&&(c=g.toString()===b.toString(),n=0),a=0;a<g.length;a+=6)l&&b[a+1]===g[a+1]?(b[a+1]+=n,b[a+4]+=n):l||b[a+2]!==g[a+2]||(b[a+2]+=n,b[a+5]+=n),m.push("M",g[a+1],g[a+2],"L",g[a+4],g[a+5],b[a+4],b[a+5],b[a+1],b[a+2],"z"),m.isFlat=c;return m},addPlotBand:function(a){return this.addPlotBandOrLine(a,
              "plotBands")},addPlotLine:function(a){return this.addPlotBandOrLine(a,"plotLines")},addPlotBandOrLine:function(d,f){var b=(new a.PlotLineOrBand(this,d)).render(),g=this.userOptions;b&&(f&&(g[f]=g[f]||[],g[f].push(d)),this.plotLinesAndBands.push(b));return b},removePlotBandOrLine:function(a){for(var f=this.plotLinesAndBands,b=this.options,g=this.userOptions,m=f.length;m--;)f[m].id===a&&f[m].destroy();d([b.plotLines||[],g.plotLines||[],b.plotBands||[],g.plotBands||[]],function(b){for(m=b.length;m--;)b[m].id===
          a&&r(b,b[m])})},removePlotBand:function(a){this.removePlotBandOrLine(a)},removePlotLine:function(a){this.removePlotBandOrLine(a)}})})(K,V);(function(a){var C=a.doc,H=a.each,G=a.extend,t=a.format,f=a.isNumber,d=a.map,r=a.merge,v=a.pick,q=a.splat,x=a.syncTimeout,y=a.timeUnits;a.Tooltip=function(){this.init.apply(this,arguments)};a.Tooltip.prototype={init:function(a,g){this.chart=a;this.options=g;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=g.split&&!a.inverted;this.shared=g.shared||
              this.split;this.outside=g.outside&&!this.split},cleanSplit:function(a){H(this.chart.series,function(g){var m=g&&g.tt;m&&(!m.isActive||a?g.tt=m.destroy():m.isActive=!1)})},getLabel:function(){var b=this.chart.renderer,g=this.options,m;this.label||(this.outside&&(this.container=m=a.doc.createElement("div"),m.className="highcharts-tooltip-container",a.css(m,{position:"absolute",top:"1px",pointerEvents:g.style&&g.style.pointerEvents}),a.doc.body.appendChild(m),this.renderer=b=new a.Renderer(m,0,0)),this.split?
              this.label=b.g("tooltip"):(this.label=b.label("",0,0,g.shape||"callout",null,null,g.useHTML,null,"tooltip").attr({padding:g.padding,r:g.borderRadius}),this.label.attr({fill:g.backgroundColor,"stroke-width":g.borderWidth}).css(g.style).shadow(g.shadow)),this.outside&&(this.label.attr({x:this.distance,y:this.distance}),this.label.xSetter=function(a){m.style.left=a+"px"},this.label.ySetter=function(a){m.style.top=a+"px"}),this.label.attr({zIndex:8}).add());return this.label},update:function(a){this.destroy();
              r(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,r(!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(b,g,m,l){var n=this,c=n.now,e=!1!==n.options.animation&&!n.isHidden&&(1<Math.abs(b-c.x)||1<Math.abs(g-
              c.y)),u=n.followPointer||1<n.len;G(c,{x:e?(2*c.x+b)/3:b,y:e?(c.y+g)/2:g,anchorX:u?void 0:e?(2*c.anchorX+m)/3:m,anchorY:u?void 0:e?(c.anchorY+l)/2:l});n.getLabel().attr(c);e&&(a.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){n&&n.move(b,g,m,l)},32))},hide:function(b){var g=this;a.clearTimeout(this.hideTimer);b=v(b,this.options.hideDelay,500);this.isHidden||(this.hideTimer=x(function(){g.getLabel()[b?"fadeOut":"hide"]();g.isHidden=!0},b))},getAnchor:function(a,g){var m=
              this.chart,l=m.pointer,n=m.inverted,c=m.plotTop,e=m.plotLeft,u=0,f=0,w,r;a=q(a);this.followPointer&&g?(void 0===g.chartX&&(g=l.normalize(g)),a=[g.chartX-m.plotLeft,g.chartY-c]):a[0].tooltipPos?a=a[0].tooltipPos:(H(a,function(a){w=a.series.yAxis;r=a.series.xAxis;u+=a.plotX+(!n&&r?r.left-e:0);f+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!n&&w?w.top-c:0)}),u/=a.length,f/=a.length,a=[n?m.plotWidth-f:u,this.shared&&!n&&1<a.length&&g?g.chartY-c:n?m.plotHeight-u:f]);return d(a,Math.round)},getPosition:function(a,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               g,m){var l=this.chart,n=this.distance,c={},e=l.inverted&&m.h||0,u,d=this.outside,w=d?C.documentElement.clientWidth-2*n:l.chartWidth,f=d?Math.max(C.body.scrollHeight,C.documentElement.scrollHeight,C.body.offsetHeight,C.documentElement.offsetHeight,C.documentElement.clientHeight):l.chartHeight,z=l.pointer.chartPosition,B=["y",f,g,(d?z.top-n:0)+m.plotY+l.plotTop,d?0:l.plotTop,d?f:l.plotTop+l.plotHeight],p=["x",w,a,(d?z.left-n:0)+m.plotX+l.plotLeft,d?0:l.plotLeft,d?w:l.plotLeft+l.plotWidth],E=!this.followPointer&&
              v(m.ttBelow,!l.inverted===!!m.negative),A=function(a,b,p,k,l,g){var u=p<k-n,w=k+n+p<b,A=k-n-p;k+=n;if(E&&w)c[a]=k;else if(!E&&u)c[a]=A;else if(u)c[a]=Math.min(g-p,0>A-e?A:A-e);else if(w)c[a]=Math.max(l,k+e+p>b?k:k+e);else return!1},r=function(a,b,e,p){var k;p<n||p>b-n?k=!1:c[a]=p<e/2?1:p>b-e/2?b-e-2:p-e/2;return k},I=function(a){var c=B;B=p;p=c;u=a},k=function(){!1!==A.apply(0,B)?!1!==r.apply(0,p)||u||(I(!0),k()):u?c.x=c.y=0:(I(!0),k())};(l.inverted||1<this.len)&&I();k();return c},defaultFormatter:function(a){var g=
              this.points||q(this),m;m=[a.tooltipFooterHeaderFormatter(g[0])];m=m.concat(a.bodyFormatter(g));m.push(a.tooltipFooterHeaderFormatter(g[0],!0));return m},refresh:function(b,g){var m,l=this.options,n,c=b,e,u={},d=[];m=l.formatter||this.defaultFormatter;var u=this.shared,w;l.enabled&&(a.clearTimeout(this.hideTimer),this.followPointer=q(c)[0].series.tooltipOptions.followPointer,e=this.getAnchor(c,g),g=e[0],n=e[1],!u||c.series&&c.series.noSharedTooltip?u=c.getLabelConfig():(H(c,function(a){a.setState("hover");
              d.push(a.getLabelConfig())}),u={x:c[0].category,y:c[0].y},u.points=d,c=c[0]),this.len=d.length,u=m.call(u,this),w=c.series,this.distance=v(w.tooltipOptions.distance,16),!1===u?this.hide():(m=this.getLabel(),this.isHidden&&m.attr({opacity:1}).show(),this.split?this.renderSplit(u,q(b)):(l.style.width||m.css({width:this.chart.spacingBox.width}),m.attr({text:u&&u.join?u.join(""):u}),m.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+v(c.colorIndex,w.colorIndex)),m.attr({stroke:l.borderColor||
                  c.color||w.color||"#666666"}),this.updatePosition({plotX:g,plotY:n,negative:c.negative,ttBelow:c.ttBelow,h:e[2]||0})),this.isHidden=!1))},renderSplit:function(b,g){var m=this,l=[],n=this.chart,c=n.renderer,e=!0,u=this.options,d=0,w,f=this.getLabel(),z=n.plotTop;a.isString(b)&&(b=[!1,b]);H(b.slice(0,g.length+1),function(a,b){if(!1!==a){b=g[b-1]||{isHeader:!0,plotX:g[0].plotX};var E=b.series||m,A=E.tt,r=b.series||{},I="highcharts-color-"+v(b.colorIndex,r.colorIndex,"none");A||(E.tt=A=c.label(null,null,
              null,"callout",null,null,u.useHTML).addClass("highcharts-tooltip-box "+I+(b.isHeader?" highcharts-tooltip-header":"")).attr({padding:u.padding,r:u.borderRadius,fill:u.backgroundColor,stroke:u.borderColor||b.color||r.color||"#333333","stroke-width":u.borderWidth}).add(f));A.isActive=!0;A.attr({text:a});A.css(u.style).shadow(u.shadow);a=A.getBBox();r=a.width+A.strokeWidth();b.isHeader?(d=a.height,n.xAxis[0].opposite&&(w=!0,z-=d),r=Math.max(0,Math.min(b.plotX+n.plotLeft-r/2,n.chartWidth+(n.scrollablePixels?
              n.scrollablePixels-n.marginRight:0)-r))):r=b.plotX+n.plotLeft-v(u.distance,16)-r;0>r&&(e=!1);a=(b.series&&b.series.yAxis&&b.series.yAxis.pos)+(b.plotY||0);a-=z;b.isHeader&&(a=w?-d:n.plotHeight+d);l.push({target:a,rank:b.isHeader?1:0,size:E.tt.getBBox().height+1,point:b,x:r,tt:A})}});this.cleanSplit();a.distribute(l,n.plotHeight+d);H(l,function(a){var c=a.point,b=c.series;a.tt.attr({visibility:void 0===a.pos?"hidden":"inherit",x:e||c.isHeader?a.x:c.plotX+n.plotLeft+v(u.distance,16),y:a.pos+z,anchorX:c.isHeader?
                  c.plotX+n.plotLeft:c.plotX+b.xAxis.pos,anchorY:c.isHeader?n.plotTop+n.plotHeight/2:c.plotY+b.yAxis.pos})})},updatePosition:function(a){var g=this.chart,m=this.getLabel(),l=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),n=a.plotX+g.plotLeft;a=a.plotY+g.plotTop;var c;this.outside&&(c=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+c,m.height+c,!1),n+=g.pointer.chartPosition.left-l.x,a+=g.pointer.chartPosition.top-l.y);this.move(Math.round(l.x),
              Math.round(l.y||0),n,a)},getDateFormat:function(a,g,m,l){var n=this.chart.time,c=n.dateFormat("%m-%d %H:%M:%S.%L",g),e,u,d={millisecond:15,second:12,minute:9,hour:6,day:3},w="millisecond";for(u in y){if(a===y.week&&+n.dateFormat("%w",g)===m&&"00:00:00.000"===c.substr(6)){u="week";break}if(y[u]>a){u=w;break}if(d[u]&&c.substr(d[u])!=="01-01 00:00:00.000".substr(d[u]))break;"week"!==u&&(w=u)}u&&(e=n.resolveDTLFormat(l[u]).main);return e},getXDateFormat:function(a,g,m){g=g.dateTimeLabelFormats;var l=
              m&&m.closestPointRange;return(l?this.getDateFormat(l,a.x,m.options.startOfWeek,g):g.day)||g.year},tooltipFooterHeaderFormatter:function(a,g){g=g?"footer":"header";var m=a.series,l=m.tooltipOptions,n=l.xDateFormat,c=m.xAxis,e=c&&"datetime"===c.options.type&&f(a.key),u=l[g+"Format"];e&&!n&&(n=this.getXDateFormat(a,l,c));e&&n&&H(a.point&&a.point.tooltipDateKeys||["key"],function(a){u=u.replace("{point."+a+"}","{point."+a+":"+n+"}")});return t(u,{point:a,series:m},this.chart.time)},bodyFormatter:function(a){return d(a,
              function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||"point")+"Formatter"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||"point")+"Format"])})}}})(K);(function(a){var C=a.addEvent,H=a.attr,G=a.charts,t=a.color,f=a.css,d=a.defined,r=a.each,v=a.extend,q=a.find,x=a.fireEvent,y=a.isNumber,b=a.isObject,g=a.offset,m=a.pick,l=a.splat,n=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=
              b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};n&&(a.tooltip=new n(a,b.tooltip),this.followTouchMove=m(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,l=b.options.chart,n=l.zoomType||"",b=b.inverted;/touch/.test(a.type)&&(n=m(l.pinchType,n));this.zoomX=a=/x/.test(n);this.zoomY=n=/y/.test(n);this.zoomHor=a&&!b||n&&b;this.zoomVert=n&&!b||a&&b;this.hasZoom=a||n},normalize:function(a,b){var l;l=a.touches?a.touches.length?a.touches.item(0):
              a.changedTouches[0]:a;b||(this.chartPosition=b=g(this.chart.container));return v(a,{chartX:Math.round(l.pageX-b.left),chartY:Math.round(l.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(l){b[l.isXAxis?"xAxis":"yAxis"].push({axis:l,value:l.toValue(a[l.horiz?"chartX":"chartY"])})});return b},findNearestKDPoint:function(a,e,l){var n;r(a,function(a){var c=!(a.noSharedTooltip&&e)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(l,c);if((c=b(a,
              !0))&&!(c=!b(n,!0)))var c=n.distX-a.distX,g=n.dist-a.dist,m=(a.series.group&&a.series.group.zIndex)-(n.series.group&&n.series.group.zIndex),c=0<(0!==c&&e?c:0!==g?g:0!==m?m:n.series.index>a.series.index?-1:1);c&&(n=a)});return n},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var l=a.series,n=l.xAxis,l=l.yAxis,g=m(a.clientX,a.plotX),d=a.shapeArgs;if(n&&l)return b?{chartX:n.len+n.pos-g,chartY:l.len+l.pos-a.plotY}:
              {chartX:g+n.pos,chartY:a.plotY+l.pos};if(d&&d.x&&d.y)return{chartX:d.x,chartY:d.y}},getHoverData:function(c,e,l,n,g,d,f){var B,p=[],E=f&&f.isBoosting;n=!(!n||!c);f=e&&!e.stickyTracking?[e]:a.grep(l,function(a){return a.visible&&!(!g&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});e=(B=n?c:this.findNearestKDPoint(f,g,d))&&B.series;B&&(g&&!e.noSharedTooltip?(f=a.grep(l,function(a){return a.visible&&!(!g&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),
              r(f,function(a){var c=q(a.points,function(a){return a.x===B.x&&!a.isNull});b(c)&&(E&&(c=a.getPoint(c)),p.push(c))})):p.push(B));return{hoverPoint:B,hoverSeries:e,hoverPoints:p}},runPointActions:function(c,b){var l=this.chart,n=l.tooltip&&l.tooltip.options.enabled?l.tooltip:void 0,g=n?n.shared:!1,d=b||l.hoverPoint,f=d&&d.series||l.hoverSeries,f=this.getHoverData(d,f,l.series,"touchmove"!==c.type&&(!!b||f&&f.directTouch&&this.isDirectTouch),g,c,{isBoosting:l.isBoosting}),B,d=f.hoverPoint;B=f.hoverPoints;
              b=(f=f.hoverSeries)&&f.tooltipOptions.followPointer;g=g&&f&&!f.noSharedTooltip;if(d&&(d!==l.hoverPoint||n&&n.isHidden)){r(l.hoverPoints||[],function(c){-1===a.inArray(c,B)&&c.setState()});r(B||[],function(a){a.setState("hover")});if(l.hoverSeries!==f)f.onMouseOver();l.hoverPoint&&l.hoverPoint.firePointEvent("mouseOut");if(!d.series)return;d.firePointEvent("mouseOver");l.hoverPoints=B;l.hoverPoint=d;n&&n.refresh(g?B:d,c)}else b&&n&&!n.isHidden&&(d=n.getAnchor([{}],c),n.updatePosition({plotX:d[0],plotY:d[1]}));
              this.unDocMouseMove||(this.unDocMouseMove=C(l.container.ownerDocument,"mousemove",function(c){var b=G[a.hoverChartIndex];if(b)b.pointer.onDocumentMouseMove(c)}));r(l.axes,function(b){var e=m(b.crosshair.snap,!0),l=e?a.find(B,function(a){return a.series[b.coll]===b}):void 0;l||!e?b.drawCrosshair(c,l):b.hideCrosshair()})},reset:function(a,b){var n=this.chart,g=n.hoverSeries,d=n.hoverPoint,m=n.hoverPoints,f=n.tooltip,B=f&&f.shared?m:d;a&&B&&r(l(B),function(b){b.series.isCartesian&&void 0===b.plotX&&
          (a=!1)});if(a)f&&B&&(f.refresh(B),f.shared&&m?r(m,function(a){a.setState(a.state,!0);a.series.isCartesian&&(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),r(n.axes,function(a){a.crosshair&&a.drawCrosshair(null,d)})));else{if(d)d.onMouseOut();m&&r(m,function(a){a.setState()});if(g)g.onMouseOut();f&&f.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(n.axes,function(a){a.hideCrosshair()});
              this.hoverX=n.hoverPoints=n.hoverPoint=null}},scaleGroups:function(a,b){var l=this.chart,n;r(l.series,function(g){n=a||g.getPlotBox();g.xAxis&&g.xAxis.zoomEnabled&&g.group&&(g.group.attr(n),g.markerGroup&&(g.markerGroup.attr(n),g.markerGroup.clip(b?l.clipRect:null)),g.dataLabelsGroup&&g.dataLabelsGroup.attr(n))});l.clipRect.attr(b||l.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,l=b.options.chart,n=a.chartX,g=a.chartY,d=this.zoomHor,m=this.zoomVert,f=b.plotLeft,p=b.plotTop,E=b.plotWidth,A=b.plotHeight,r,I=this.selectionMarker,k=this.mouseDownX,h=this.mouseDownY,q=l.panKey&&a[l.panKey+"Key"];I&&I.touch||(n<f?n=f:n>f+E&&(n=f+E),g<p?g=p:g>p+A&&(g=p+A),this.hasDragged=Math.sqrt(Math.pow(k-n,2)+Math.pow(h-g,2)),10<this.hasDragged&&(r=b.isInsidePlot(k-f,h-p),b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&r&&!q&&!I&&(this.selectionMarker=I=b.renderer.rect(f,p,d?1:E,
              m?1:A,0).attr({fill:l.selectionMarkerFill||t("#335cad").setOpacity(.25).get(),"class":"highcharts-selection-marker",zIndex:7}).add()),I&&d&&(n-=k,I.attr({width:Math.abs(n),x:(0<n?0:n)+k})),I&&m&&(n=g-h,I.attr({height:Math.abs(n),y:(0<n?0:n)+h})),r&&!I&&l.panning&&b.pan(a,l.panning)))},drop:function(a){var b=this,l=this.chart,n=this.hasPinched;if(this.selectionMarker){var g={originalEvent:a,xAxis:[],yAxis:[]},m=this.selectionMarker,z=m.attr?m.attr("x"):m.x,B=m.attr?m.attr("y"):m.y,p=m.attr?m.attr("width"):
              m.width,E=m.attr?m.attr("height"):m.height,A;if(this.hasDragged||n)r(l.axes,function(l){if(l.zoomEnabled&&d(l.min)&&(n||b[{xAxis:"zoomX",yAxis:"zoomY"}[l.coll]])){var m=l.horiz,k="touchend"===a.type?l.minPixelPadding:0,h=l.toValue((m?z:B)+k),m=l.toValue((m?z+p:B+E)-k);g[l.coll].push({axis:l,min:Math.min(h,m),max:Math.max(h,m)});A=!0}}),A&&x(l,"selection",g,function(a){l.zoom(v(a,n?{animation:!1}:null))});y(l.index)&&(this.selectionMarker=this.selectionMarker.destroy());n&&this.scaleGroups()}l&&y(l.index)&&
          (f(l.container,{cursor:l._cursor}),l.cancelClick=10<this.hasDragged,l.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){G[a.hoverChartIndex]&&G[a.hoverChartIndex].pointer.drop(b)},onDocumentMouseMove:function(a){var b=this.chart,l=this.chartPosition;a=this.normalize(a,l);!l||this.inClass(a.target,"highcharts-tracker")||
          b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)||this.reset()},onContainerMouseLeave:function(b){var e=G[a.hoverChartIndex];e&&(b.relatedTarget||b.toElement)&&(e.pointer.reset(),e.pointer.chartPosition=null)},onContainerMouseMove:function(b){var e=this.chart;d(a.hoverChartIndex)&&G[a.hoverChartIndex]&&G[a.hoverChartIndex].mouseIsDown||(a.hoverChartIndex=e.index);b=this.normalize(b);b.returnValue=!1;"mousedown"===e.mouseIsDown&&this.drag(b);!this.inClass(b.target,"highcharts-tracker")&&!e.isInsidePlot(b.chartX-
              e.plotLeft,b.chartY-e.plotTop)||e.openMenu||this.runPointActions(b)},inClass:function(a,b){for(var l;a;){if(l=H(a,"class")){if(-1!==l.indexOf(b))return!0;if(-1!==l.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,l=b.hoverPoint,n=b.plotLeft,g=b.plotTop;a=this.normalize(a);b.cancelClick||(l&&this.inClass(a.target,"highcharts-tracker")?(x(l.series,"click",v(a,{point:l})),b.hoverPoint&&l.firePointEvent("click",a)):(v(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-n,a.chartY-g)&&x(b,"click",a)))},setDOMEvents:function(){var b=this,e=b.chart.container,l=e.ownerDocument;e.onmousedown=function(a){b.onContainerMouseDown(a)};e.onmousemove=function(a){b.onContainerMouseMove(a)};
              e.onclick=function(a){b.onContainerClick(a)};this.unbindContainerMouseLeave=C(e,"mouseleave",b.onContainerMouseLeave);a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=C(l,"mouseup",b.onDocumentMouseUp));a.hasTouch&&(e.ontouchstart=function(a){b.onContainerTouchStart(a)},e.ontouchmove=function(a){b.onContainerTouchMove(a)},a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=C(l,"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,l){b[l]=null})}}})(K);(function(a){var C=a.charts,H=a.each,G=a.extend,t=a.map,f=a.noop,d=a.pick;G(a.Pointer.prototype,{pinchTranslate:function(a,d,f,t,y,b){this.zoomHor&&this.pinchTranslateDirection(!0,a,d,f,t,y,b);this.zoomVert&&this.pinchTranslateDirection(!1,a,d,f,t,
              y,b)},pinchTranslateDirection:function(a,d,f,t,y,b,g,m){var l=this.chart,n=a?"x":"y",c=a?"X":"Y",e="chart"+c,u=a?"width":"height",D=l["plot"+(a?"Left":"Top")],w,O,z=m||1,B=l.inverted,p=l.bounds[a?"h":"v"],E=1===d.length,A=d[0][e],M=f[0][e],I=!E&&d[1][e],k=!E&&f[1][e],h;f=function(){!E&&20<Math.abs(A-I)&&(z=m||Math.abs(M-k)/Math.abs(A-I));O=(D-M)/z+A;w=l["plot"+(a?"Width":"Height")]/z};f();d=O;d<p.min?(d=p.min,h=!0):d+w>p.max&&(d=p.max-w,h=!0);h?(M-=.8*(M-g[n][0]),E||(k-=.8*(k-g[n][1])),f()):g[n]=
              [M,k];B||(b[n]=O-D,b[u]=w);b=B?1/z:z;y[u]=w;y[n]=d;t[B?a?"scaleY":"scaleX":"scale"+c]=z;t["translate"+c]=b*D+(M-b*A)},pinch:function(a){var v=this,q=v.chart,x=v.pinchDown,y=a.touches,b=y.length,g=v.lastValidTouch,m=v.hasZoom,l=v.selectionMarker,n={},c=1===b&&(v.inClass(a.target,"highcharts-tracker")&&q.runTrackerClick||v.runChartClick),e={};1<b&&(v.initiated=!0);m&&v.initiated&&!c&&a.preventDefault();t(y,function(a){return v.normalize(a)});"touchstart"===a.type?(H(y,function(a,b){x[b]={chartX:a.chartX,
              chartY:a.chartY}}),g.x=[x[0].chartX,x[1]&&x[1].chartX],g.y=[x[0].chartY,x[1]&&x[1].chartY],H(q.axes,function(a){if(a.zoomEnabled){var b=q.bounds[a.horiz?"h":"v"],c=a.minPixelPadding,e=a.toPixels(d(a.options.min,a.dataMin)),l=a.toPixels(d(a.options.max,a.dataMax)),n=Math.max(e,l);b.min=Math.min(a.pos,Math.min(e,l)-c);b.max=Math.max(a.pos+a.len,n+c)}}),v.res=!0):v.followTouchMove&&1===b?this.runPointActions(v.normalize(a)):x.length&&(l||(v.selectionMarker=l=G({destroy:f,touch:!0},q.plotBox)),v.pinchTranslate(x,
              y,n,l,e,g),v.hasPinched=m,v.scaleGroups(n,e),v.res&&(v.res=!1,this.reset(!1,0)))},touch:function(f,t){var q=this.chart,x;if(q.index!==a.hoverChartIndex)this.onContainerMouseLeave({relatedTarget:!0});a.hoverChartIndex=q.index;1===f.touches.length?(f=this.normalize(f),q.isInsidePlot(f.chartX-q.plotLeft,f.chartY-q.plotTop)&&!q.openMenu?(t&&this.runPointActions(f),"touchmove"===f.type&&(t=this.pinchDown,x=t[0]?4<=Math.sqrt(Math.pow(t[0].chartX-f.chartX,2)+Math.pow(t[0].chartY-f.chartY,2)):!1),d(x,!0)&&
          this.pinch(f)):t&&this.reset()):2===f.touches.length&&this.pinch(f)},onContainerTouchStart:function(a){this.zoomOption(a);this.touch(a,!0)},onContainerTouchMove:function(a){this.touch(a)},onDocumentTouchEnd:function(d){C[a.hoverChartIndex]&&C[a.hoverChartIndex].pointer.drop(d)}})})(K);(function(a){var C=a.addEvent,H=a.charts,G=a.css,t=a.doc,f=a.extend,d=a.noop,r=a.Pointer,v=a.removeEvent,q=a.win,x=a.wrap;if(!a.hasTouch&&(q.PointerEvent||q.MSPointerEvent)){var y={},b=!!q.PointerEvent,g=function(){var b=
          [];b.item=function(a){return this[a]};a.objectEach(y,function(a){b.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return b},m=function(b,n,c,e){"touch"!==b.pointerType&&b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!H[a.hoverChartIndex]||(e(b),e=H[a.hoverChartIndex].pointer,e[n]({type:c,target:b.currentTarget,preventDefault:d,touches:g()}))};f(r.prototype,{onContainerPointerDown:function(a){m(a,"onContainerTouchStart","touchstart",function(a){y[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},
          onContainerPointerMove:function(a){m(a,"onContainerTouchMove","touchmove",function(a){y[a.pointerId]={pageX:a.pageX,pageY:a.pageY};y[a.pointerId].target||(y[a.pointerId].target=a.currentTarget)})},onDocumentPointerUp:function(a){m(a,"onDocumentTouchEnd","touchend",function(a){delete y[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,b?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,b?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(t,b?
              "pointerup":"MSPointerUp",this.onDocumentPointerUp)}});x(r.prototype,"init",function(a,b,c){a.call(this,b,c);this.hasZoom&&G(b.container,{"-ms-touch-action":"none","touch-action":"none"})});x(r.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(C)});x(r.prototype,"destroy",function(a){this.batchMSEvents(v);a.call(this)})}})(K);(function(a){var C=a.addEvent,H=a.css,G=a.discardElement,t=a.defined,f=a.each,d=a.fireEvent,r=a.isFirefox,v=a.marginNames,
          q=a.merge,x=a.pick,y=a.setAnimation,b=a.stableSort,g=a.win,m=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(),C(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=C(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},setOptions:function(a){var b=x(a.padding,8);this.options=
              a;this.itemStyle=a.itemStyle;this.itemHiddenStyle=q(this.itemStyle,a.itemHiddenStyle);this.itemMarginTop=a.itemMarginTop||0;this.padding=b;this.initialItemY=b-5;this.symbolWidth=x(a.symbolWidth,16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted},update:function(a,b){var c=this.chart;this.setOptions(q(!0,this.options,a));this.destroy();c.isDirtyLegend=c.isDirtyBox=!0;x(b,!0)&&c.redraw();d(this,"afterUpdate")},colorizeItem:function(a,b){a.legendGroup[b?"removeClass":"addClass"]("highcharts-legend-item-hidden");
              var c=this.options,e=a.legendItem,g=a.legendLine,m=a.legendSymbol,f=this.itemHiddenStyle.color,c=b?c.itemStyle.color:f,r=b?a.color||f:f,z=a.options&&a.options.marker,B={fill:r};e&&e.css({fill:c,color:c});g&&g.attr({stroke:r});m&&(z&&m.isMarker&&(B=a.pointAttribs(),b||(B.stroke=B.fill=f)),m.attr(B));d(this,"afterColorizeItem",{item:a,visible:b})},positionItems:function(){f(this.allItems,this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()},positionItem:function(a){var b=this.options,
              c=b.symbolPadding,b=!b.rtl,e=a._legendItemPos,g=e[0],e=e[1],d=a.checkbox;if((a=a.legendGroup)&&a.element)a[t(a.translateY)?"animate":"attr"]({translateX:b?g:this.legendWidth-g-2*c-4,translateY:e});d&&(d.x=g,d.y=e)},destroyItem:function(a){var b=a.checkbox;f(["legendItem","legendLine","legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())});b&&G(a.checkbox)},destroy:function(){function a(b){this[b]&&(this[b]=this[b].destroy())}f(this.getAllItems(),function(b){f(["legendItem","legendGroup"],
              a,b)});f("clipRect up down pager nav box title group".split(" "),a,this);this.display=null},positionCheckboxes:function(){var a=this.group&&this.group.alignAttr,b,c=this.clipHeight||this.legendHeight,e=this.titleHeight;a&&(b=a.translateY,f(this.allItems,function(g){var d=g.checkbox,m;d&&(m=b+e+d.y+(this.scrollOffset||0)+3,H(d,{left:a.translateX+g.checkboxOffset+d.x-20+"px",top:m+"px",display:this.proximate||m>b-6&&m<b+c-6?"":"none"}))},this))},renderTitle:function(){var a=this.options,b=this.padding,
              c=a.title,e=0;c.text&&(this.title||(this.title=this.chart.renderer.label(c.text,b-3,b-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}).css(c.style).add(this.group)),a=this.title.getBBox(),e=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:e}));this.titleHeight=e},setText:function(b){var g=this.options;b.legendItem.attr({text:g.labelFormat?a.format(g.labelFormat,b,this.chart.time):g.labelFormatter.call(b)})},renderItem:function(a){var b=this.chart,c=b.renderer,e=
              this.options,g=this.symbolWidth,d=e.symbolPadding,m=this.itemStyle,f=this.itemHiddenStyle,z="horizontal"===e.layout?x(e.itemDistance,20):0,B=!e.rtl,p=a.legendItem,E=!a.series,A=!E&&a.series.drawLegendSymbol?a.series:a,r=A.options,r=this.createCheckboxForItem&&r&&r.showCheckbox,z=g+d+z+(r?20:0),I=e.useHTML,k=a.options.className;p||(a.legendGroup=c.g("legend-item").addClass("highcharts-"+A.type+"-series highcharts-color-"+a.colorIndex+(k?" "+k:"")+(E?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),
              a.legendItem=p=c.text("",B?g+d:-d,this.baseline||0,I).css(q(a.visible?m:f)).attr({align:B?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(g=m.fontSize,this.fontMetrics=c.fontMetrics(g,p),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,p.attr("y",this.baseline)),this.symbolHeight=e.symbolHeight||this.fontMetrics.f,A.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,p,I),r&&this.createCheckboxForItem(a));this.colorizeItem(a,a.visible);m.width||p.css({width:(e.itemWidth||
                  e.width||b.spacingBox.width)-z});this.setText(a);b=p.getBBox();a.itemWidth=a.checkboxOffset=e.itemWidth||a.legendItemWidth||b.width+z;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||b.height||this.symbolHeight)},layoutItem:function(a){var b=this.options,c=this.padding,e="horizontal"===b.layout,g=a.itemHeight,d=b.itemMarginBottom||0,m=this.itemMarginTop,f=e?x(b.itemDistance,20):0,z=b.width,B=z||this.chart.spacingBox.width-
              2*c-b.x,b=b.alignColumns&&this.totalItemWidth>B?this.maxItemWidth:a.itemWidth;e&&this.itemX-c+b>B&&(this.itemX=c,this.itemY+=m+this.lastLineHeight+d,this.lastLineHeight=0);this.lastItemY=m+this.itemY+d;this.lastLineHeight=Math.max(g,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=b:(this.itemY+=m+g+d,this.lastLineHeight=g);this.offsetWidth=z||Math.max((e?this.itemX-c-(a.checkbox?0:f):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];f(this.chart.series,function(b){var c=
              b&&b.options;b&&x(c.showInLegend,t(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||("point"===c.legendType?b.data:b)))});d(this,"afterGetAllItems",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,e=this.options,g=this.getAlignment();g&&f([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(d,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   m){d.test(g)&&!t(a[m])&&(c[v[m]]=Math.max(c[v[m]],c.legend[(m+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][m]*e[m%2?"x":"y"]+x(e.margin,12)+b[m]+(0===m&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var b=this.chart,g=[],c="left"===this.options.align;f(this.allItems,function(e){var d,m;d=c;e.xAxis&&e.points&&(e.xAxis.options.reversed&&(d=!d),d=a.find(d?e.points:e.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),m=e.legendGroup.getBBox().height,
              g.push({target:e.visible?(d?d.plotY:e.xAxis.height)-.3*m:b.plotHeight,size:m,item:e}))},this);a.distribute(g,b.plotHeight);f(g,function(a){a.item._legendItemPos[1]=b.plotTop-b.spacing[0]+a.pos})},render:function(){var a=this.chart,g=a.renderer,c=this.group,e,d,m,w=this.box,r=this.options,z=this.padding;this.itemX=z;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=g.g("legend").attr({zIndex:7}).add(),this.contentGroup=g.g().attr({zIndex:1}).add(c),this.scrollGroup=g.g().add(this.contentGroup));
              this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});r.reversed&&e.reverse();this.allItems=e;this.display=d=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;f(e,this.renderItem,this);f(e,this.layoutItem,this);e=(r.width||this.offsetWidth)+z;m=this.lastItemY+this.lastLineHeight+this.titleHeight;m=this.handleOverflow(m);m+=z;w||(this.box=w=g.rect().addClass("highcharts-legend-box").attr({r:r.borderRadius}).add(c),
                  w.isNew=!0);w.attr({stroke:r.borderColor,"stroke-width":r.borderWidth||0,fill:r.backgroundColor||"none"}).shadow(r.shadow);0<e&&0<m&&(w[w.isNew?"attr":"animate"](w.crisp.call({},{x:0,y:0,width:e,height:m},w.strokeWidth())),w.isNew=!1);w[d?"show":"hide"]();this.legendWidth=e;this.legendHeight=m;d&&(g=a.spacingBox,/(lth|ct|rth)/.test(this.getAlignment())&&(g=q(g,{y:g.y+a.titleOffset+a.options.title.margin})),c.align(q(r,{width:e,height:m,verticalAlign:this.proximate?"top":r.verticalAlign}),!0,g));this.proximate||
              this.positionItems()},handleOverflow:function(a){var b=this,c=this.chart,e=c.renderer,g=this.options,d=g.y,m=this.padding,c=c.spacingBox.height+("top"===g.verticalAlign?-d:d)-m,d=g.maxHeight,r,z=this.clipRect,B=g.navigation,p=x(B.animation,!0),E=B.arrowSize||12,A=this.nav,q=this.pages,I,k=this.allItems,h=function(a){"number"===typeof a?z.attr({height:a}):z&&(b.clipRect=z.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=a?"rect("+m+"px,9999px,"+(m+a)+"px,0)":"auto")};
              "horizontal"!==g.layout||"middle"===g.verticalAlign||g.floating||(c/=2);d&&(c=Math.min(c,d));q.length=0;a>c&&!1!==B.enabled?(this.clipHeight=r=Math.max(c-20-this.titleHeight-m,0),this.currentPage=x(this.currentPage,1),this.fullHeight=a,f(k,function(a,b){var c=a._legendItemPos[1],h=Math.round(a.legendItem.getBBox().height),e=q.length;if(!e||c-q[e-1]>r&&(I||c)!==q[e-1])q.push(I||c),e++;a.pageIx=e-1;I&&(k[b-1].pageIx=e-1);b===k.length-1&&c+h-q[e-1]>r&&(q.push(c),a.pageIx=e);c!==I&&(I=c)}),z||(z=b.clipRect=
                  e.clipRect(0,m,9999,0),b.contentGroup.clip(z)),h(r),A||(this.nav=A=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,E,E).on("click",function(){b.scroll(-1,p)}).add(A),this.pager=e.text("",15,10).addClass("highcharts-legend-navigation").css(B.style).add(A),this.down=e.symbol("triangle-down",0,0,E,E).on("click",function(){b.scroll(1,p)}).add(A)),b.scroll(0),a=c):A&&(h(),this.nav=A.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,d=this.options.navigation,m=this.pager,f=this.padding;a>e&&(a=e);0<a&&(void 0!==b&&y(b,this.chart),this.nav.attr({translateX:f,translateY:g+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({"class":1===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),m.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.up.attr({fill:1===a?d.inactiveColor:d.activeColor}).css({cursor:1===a?"default":"pointer"}),this.down.attr({fill:a===e?d.inactiveColor:d.activeColor}).css({cursor:a===e?"default":"pointer"}),this.scrollOffset=-c[a-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=a,this.positionCheckboxes())}};a.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.symbolHeight,e=a.options.squareSymbol;b.legendSymbol=this.chart.renderer.rect(e?(a.symbolWidth-c)/2:
              0,a.baseline-c+1,e?c:a.symbolWidth,c,x(a.options.symbolRadius,c/2)).addClass("highcharts-point").attr({zIndex:3}).add(b.legendGroup)},drawLineMarker:function(a){var b=this.options,c=b.marker,e=a.symbolWidth,g=a.symbolHeight,d=g/2,m=this.chart.renderer,f=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var z;z={"stroke-width":b.lineWidth||0};b.dashStyle&&(z.dashstyle=b.dashStyle);this.legendLine=m.path(["M",0,a,"L",e,a]).addClass("highcharts-graph").attr(z).add(f);c&&!1!==c.enabled&&e&&
          (b=Math.min(x(c.radius,d),d),0===this.symbol.indexOf("url")&&(c=q(c,{width:g,height:g}),b=0),this.legendSymbol=c=m.symbol(this.symbol,e/2-b,a-b,2*b,2*b,c).addClass("highcharts-point").add(f),c.isMarker=!0)}};(/Trident\/7\.0/.test(g.navigator.userAgent)||r)&&m(a.Legend.prototype,"positionItem",function(a,b){var c=this,e=function(){b._legendItemPos&&a.call(c,b)};e();setTimeout(e)})})(K);(function(a){var C=a.addEvent,H=a.animate,G=a.animObject,t=a.attr,f=a.doc,d=a.Axis,r=a.createElement,v=a.defaultOptions,
          q=a.discardElement,x=a.charts,y=a.css,b=a.defined,g=a.each,m=a.extend,l=a.find,n=a.fireEvent,c=a.grep,e=a.isNumber,u=a.isObject,D=a.isString,w=a.Legend,O=a.marginNames,z=a.merge,B=a.objectEach,p=a.Pointer,E=a.pick,A=a.pInt,M=a.removeEvent,I=a.seriesTypes,k=a.splat,h=a.syncTimeout,J=a.win,N=a.Chart=function(){this.getArgs.apply(this,arguments)};a.chart=function(a,b,c){return new N(a,b,c)};m(N.prototype,{callbacks:[],getArgs:function(){var a=[].slice.call(arguments);if(D(a[0])||a[0].nodeName)this.renderTo=
              a.shift();this.init(a[0],a[1])},init:function(b,c){var h,e,p=b.series,k=b.plotOptions||{};n(this,"init",{args:arguments},function(){b.series=null;h=z(v,b);for(e in h.plotOptions)h.plotOptions[e].tooltip=k[e]&&z(k[e].tooltip)||void 0;h.tooltip.userOptions=b.chart&&b.chart.forExport&&b.tooltip.userOptions||b.tooltip;h.series=b.series=p;this.userOptions=b;var g=h.chart,d=g.events;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=c;this.isResizing=0;this.options=
              h;this.axes=[];this.series=[];this.time=b.time&&a.keys(b.time).length?new a.Time(b.time):a.time;this.hasCartesianSeries=g.showAxes;var m=this;m.index=x.length;x.push(m);a.chartCount++;d&&B(d,function(a,b){C(m,b,a)});m.xAxis=[];m.yAxis=[];m.pointCount=m.colorCounter=m.symbolCounter=0;n(m,"afterInit");m.firstRender()})},initSeries:function(b){var c=this.options.chart;(c=I[b.type||c.type||c.defaultSeriesType])||a.error(17,!0);c=new c;c.init(this,b);return c},orderSeries:function(a){var b=this.series;
              for(a=a||0;a<b.length;a++)b[a]&&(b[a].index=a,b[a].name=b[a].getName())},isInsidePlot:function(a,b,c){var h=c?b:a;a=c?a:b;return 0<=h&&h<=this.plotWidth&&0<=a&&a<=this.plotHeight},redraw:function(b){n(this,"beforeRedraw");var c=this.axes,h=this.series,e=this.pointer,p=this.legend,k=this.userOptions.legend,d=this.isDirtyLegend,l,f,A=this.hasCartesianSeries,E=this.isDirtyBox,w,u=this.renderer,z=u.isHidden(),I=[];this.setResponsive&&this.setResponsive(!1);a.setAnimation(b,this);z&&this.temporaryDisplay();
              this.layOutTitles();for(b=h.length;b--;)if(w=h[b],w.options.stacking&&(l=!0,w.isDirty)){f=!0;break}if(f)for(b=h.length;b--;)w=h[b],w.options.stacking&&(w.isDirty=!0);g(h,function(a){a.isDirty&&("point"===a.options.legendType?(a.updateTotals&&a.updateTotals(),d=!0):k&&(k.labelFormatter||k.labelFormat)&&(d=!0));a.isDirtyData&&n(a,"updatedData")});d&&p&&p.options.enabled&&(p.render(),this.isDirtyLegend=!1);l&&this.getStacks();A&&g(c,function(a){a.updateNames();a.updateYNames&&a.updateYNames();a.setScale()});
              this.getMargins();A&&(g(c,function(a){a.isDirty&&(E=!0)}),g(c,function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,I.push(function(){n(a,"afterSetExtremes",m(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(E||l)&&a.redraw()}));E&&this.drawChartBox();n(this,"predraw");g(h,function(a){(E||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});e&&e.reset(!0);u.draw();n(this,"redraw");n(this,"render");z&&this.temporaryDisplay(!0);g(I,function(a){a.call()})},get:function(a){function b(c){return c.id===
              a||c.options&&c.options.id===a}var c,h=this.series,e;c=l(this.axes,b)||l(this.series,b);for(e=0;!c&&e<h.length;e++)c=l(h[e].points||[],b);return c},getAxes:function(){var a=this,b=this.options,c=b.xAxis=k(b.xAxis||{}),b=b.yAxis=k(b.yAxis||{});n(this,"getAxes");g(c,function(a,b){a.index=b;a.isX=!0});g(b,function(a,b){a.index=b});c=c.concat(b);g(c,function(b){new d(a,b)});n(this,"afterGetAxes")},getSelectedPoints:function(){var a=[];g(this.series,function(b){a=a.concat(c(b.data||[],function(a){return a.selected}))});
              return a},getSelectedSeries:function(){return c(this.series,function(a){return a.selected})},setTitle:function(a,b,c){var h=this,e=h.options,p;p=e.title=z({style:{color:"#333333",fontSize:e.isStock?"16px":"18px"}},e.title,a);e=e.subtitle=z({style:{color:"#666666"}},e.subtitle,b);g([["title",a,p],["subtitle",b,e]],function(a,b){var c=a[0],e=h[c],p=a[1];a=a[2];e&&p&&(h[c]=e=e.destroy());a&&!e&&(h[c]=h.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+c,zIndex:a.zIndex||4}).add(),
              h[c].update=function(a){h.setTitle(!b&&a,b&&a)},h[c].css(a.style))});h.layOutTitles(c)},layOutTitles:function(a){var b=0,c,h=this.renderer,e=this.spacingBox;g(["title","subtitle"],function(a){var c=this[a],p=this.options[a];a="title"===a?-3:p.verticalAlign?0:b+2;var k;c&&(k=p.style.fontSize,k=h.fontMetrics(k,c).b,c.css({width:(p.width||e.width+p.widthAdjust)+"px"}).align(m({y:a+k},p),!1,"spacingBox"),p.floating||p.verticalAlign||(b=Math.ceil(b+c.getBBox(p.useHTML).height)))},this);c=this.titleOffset!==
              b;this.titleOffset=b;!this.isDirtyBox&&c&&(this.isDirtyBox=this.isDirtyLegend=c,this.hasRendered&&E(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var c=this.options.chart,h=c.width,c=c.height,e=this.renderTo;b(h)||(this.containerWidth=a.getStyle(e,"width"));b(c)||(this.containerHeight=a.getStyle(e,"height"));this.chartWidth=Math.max(0,h||this.containerWidth||600);this.chartHeight=Math.max(0,a.relativeLength(c,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&&(f.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){f.body.contains(c)||c.parentNode||(c.hcOrigDetached=!0,f.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===f.body)break}},setClassName:function(a){this.container.className="highcharts-container "+(a||"")},getContainer:function(){var b,c=this.options,h=c.chart,p,k;b=this.renderTo;var g=a.uniqueKey(),d;b||(this.renderTo=b=h.renderTo);D(b)&&(this.renderTo=b=f.getElementById(b));b||a.error(13,!0);p=A(t(b,"data-highcharts-chart"));e(p)&&x[p]&&x[p].hasRendered&&x[p].destroy();t(b,"data-highcharts-chart",
              this.index);b.innerHTML="";h.skipClone||b.offsetWidth||this.temporaryDisplay();this.getChartSize();p=this.chartWidth;k=this.chartHeight;d=m({position:"relative",overflow:"hidden",width:p+"px",height:k+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},h.style);this.container=b=r("div",{id:g},d,b);this._cursor=b.style.cursor;this.renderer=new (a[h.renderer]||a.Renderer)(b,p,k,null,h.forExport,c.exporting&&c.exporting.allowHTML);this.setClassName(h.className);
              this.renderer.setStyle(h.style);this.renderer.chartIndex=this.index;n(this,"afterGetContainer")},getMargins:function(a){var c=this.spacing,h=this.margin,e=this.titleOffset;this.resetMargins();e&&!b(h[0])&&(this.plotTop=Math.max(this.plotTop,e+this.options.title.margin+c[0]));this.legend&&this.legend.display&&this.legend.adjustMargins(h,c);n(this,"getMargins");a||this.getAxisMargins()},getAxisMargins:function(){var a=this,c=a.axisOffset=[0,0,0,0],h=a.margin;a.hasCartesianSeries&&g(a.axes,function(a){a.visible&&
          a.getOffset()});g(O,function(e,p){b(h[p])||(a[e]+=c[p])});a.setChartSize()},reflow:function(c){var e=this,p=e.options.chart,k=e.renderTo,g=b(p.width)&&b(p.height),d=p.width||a.getStyle(k,"width"),p=p.height||a.getStyle(k,"height"),k=c?c.target:J;if(!g&&!e.isPrinting&&d&&p&&(k===J||k===f)){if(d!==e.containerWidth||p!==e.containerHeight)a.clearTimeout(e.reflowTimeout),e.reflowTimeout=h(function(){e.container&&e.setSize(void 0,void 0,!1)},c?100:0);e.containerWidth=d;e.containerHeight=p}},setReflow:function(a){var b=
              this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=C(J,"resize",function(a){b.reflow(a)}),C(this,"destroy",this.unbindReflow))},setSize:function(b,c,e){var p=this,k=p.renderer;p.isResizing+=1;a.setAnimation(e,p);p.oldChartHeight=p.chartHeight;p.oldChartWidth=p.chartWidth;void 0!==b&&(p.options.chart.width=b);void 0!==c&&(p.options.chart.height=c);p.getChartSize();b=k.globalAnimation;(b?H:y)(p.container,{width:p.chartWidth+"px",height:p.chartHeight+
                  "px"},b);p.setChartSize(!0);k.setSize(p.chartWidth,p.chartHeight,e);g(p.axes,function(a){a.isDirty=!0;a.setScale()});p.isDirtyLegend=!0;p.isDirtyBox=!0;p.layOutTitles();p.getMargins();p.redraw(e);p.oldChartHeight=null;n(p,"resize");h(function(){p&&n(p,"endResize",null,function(){--p.isResizing})},G(b).duration)},setChartSize:function(a){var b=this.inverted,c=this.renderer,h=this.chartWidth,e=this.chartHeight,p=this.options.chart,k=this.spacing,d=this.clipOffset,m,l,f,A;this.plotLeft=m=Math.round(this.plotLeft);
              this.plotTop=l=Math.round(this.plotTop);this.plotWidth=f=Math.max(0,Math.round(h-m-this.marginRight));this.plotHeight=A=Math.max(0,Math.round(e-l-this.marginBottom));this.plotSizeX=b?A:f;this.plotSizeY=b?f:A;this.plotBorderWidth=p.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:k[3],y:k[0],width:h-k[3]-k[1],height:e-k[0]-k[2]};this.plotBox=c.plotBox={x:m,y:l,width:f,height:A};h=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(h,d[3])/2);c=Math.ceil(Math.max(h,d[0])/2);this.clipBox={x:b,
                  y:c,width:Math.floor(this.plotSizeX-Math.max(h,d[1])/2-b),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(h,d[2])/2-c))};a||g(this.axes,function(a){a.setAxisSize();a.setAxisTranslation()});n(this,"afterSetChartSize",{skipAxes:a})},resetMargins:function(){var a=this,b=a.options.chart;g(["margin","spacing"],function(c){var h=b[c],e=u(h)?h:[h,h,h,h];g(["Top","Right","Bottom","Left"],function(h,p){a[c][p]=E(b[c+h],e[p])})});g(O,function(b,c){a[b]=E(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,h=this.chartHeight,e=this.chartBackground,p=this.plotBackground,k=this.plotBorder,g,d=this.plotBGImage,m=a.backgroundColor,l=a.plotBackgroundColor,f=a.plotBackgroundImage,A,E=this.plotLeft,w=this.plotTop,u=this.plotWidth,z=this.plotHeight,I=this.plotBox,r=this.clipRect,B=this.clipBox,q="animate";e||(this.chartBackground=e=b.rect().addClass("highcharts-background").add(),q="attr");g=a.borderWidth||
              0;A=g+(a.shadow?8:0);m={fill:m||"none"};if(g||e["stroke-width"])m.stroke=a.borderColor,m["stroke-width"]=g;e.attr(m).shadow(a.shadow);e[q]({x:A/2,y:A/2,width:c-A-g%2,height:h-A-g%2,r:a.borderRadius});q="animate";p||(q="attr",this.plotBackground=p=b.rect().addClass("highcharts-plot-background").add());p[q](I);p.attr({fill:l||"none"}).shadow(a.plotShadow);f&&(d?d.animate(I):this.plotBGImage=b.image(f,E,w,u,z).add());r?r.animate({width:B.width,height:B.height}):this.clipRect=b.clipRect(B);q="animate";
              k||(q="attr",this.plotBorder=k=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());k.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});k[q](k.crisp({x:E,y:w,width:u,height:z},-k.strokeWidth()));this.isDirtyBox=!1;n(this,"afterDrawChartBox")},propFromSeries:function(){var a=this,b=a.options.chart,c,h=a.options.series,e,p;g(["inverted","angular","polar"],function(k){c=I[b.type||b.defaultSeriesType];p=b[k]||c&&c.prototype[k];for(e=h&&h.length;!p&&e--;)(c=
              I[h[e].type])&&c.prototype[k]&&(p=!0);a[k]=p})},linkSeries:function(){var a=this,b=a.series;g(b,function(a){a.linkedSeries.length=0});g(b,function(b){var c=b.options.linkedTo;D(c)&&(c=":previous"===c?a.series[b.index-1]:a.get(c))&&c.linkedParent!==b&&(c.linkedSeries.push(b),b.linkedParent=c,b.visible=E(b.options.visible,c.options.visible,b.visible))});n(this,"afterLinkSeries")},renderSeries:function(){g(this.series,function(a){a.translate();a.render()})},renderLabels:function(){var a=this,b=a.options.labels;
              b.items&&g(b.items,function(c){var h=m(b.style,c.style),e=A(h.left)+a.plotLeft,p=A(h.top)+a.plotTop+12;delete h.left;delete h.top;a.renderer.text(c.html,e,p).attr({zIndex:2}).css(h).add()})},render:function(){var a=this.axes,b=this.renderer,c=this.options,h,e,p;this.setTitle();this.legend=new w(this,c.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();c=this.plotWidth;h=this.plotHeight=Math.max(this.plotHeight-21,0);g(a,function(a){a.setScale()});this.getAxisMargins();
              e=1.1<c/this.plotWidth;p=1.05<h/this.plotHeight;if(e||p)g(a,function(a){(a.horiz&&e||!a.horiz&&p)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries&&g(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=z(!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&&(J.location.href=a.href)}).attr({align:a.position.align,zIndex:8}).css(a.style).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,h=b.series,e=b.container,p,k=e&&e.parentNode;n(b,"destroy");b.renderer.forExport?a.erase(x,b):x[b.index]=void 0;a.chartCount--;b.renderTo.removeAttribute("data-highcharts-chart");
              M(b);for(p=c.length;p--;)c[p]=c[p].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(p=h.length;p--;)h[p]=h[p].destroy();g("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="",M(e),k&&q(e));B(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();g(b.series||[],function(b){a.initSeries(b)});a.linkSeries();n(a,"beforeRender");p&&(a.pointer=new p(a,b));a.render();if(!a.renderer.imgCount&&a.onload)a.onload();a.temporaryDisplay(!0)}},onload:function(){g([this.callback].concat(this.callbacks),function(a){a&&void 0!==this.index&&a.apply(this,[this])},this);n(this,"load");n(this,"render");b(this.index)&&this.setReflow(this.options.chart.reflow);
              this.onload=null}})})(K);(function(a){var C=a.addEvent,H=a.Chart,G=a.each;C(H,"afterSetChartSize",function(t){var f=this.options.chart.scrollablePlotArea;(f=f&&f.minWidth)&&!this.renderer.forExport&&(this.scrollablePixels=f=Math.max(0,f-this.chartWidth))&&(this.plotWidth+=f,this.clipBox.width+=f,t.skipAxes||G(this.axes,function(d){1===d.side?d.getPlotLinePath=function(){var f=this.right,t;this.right=f-d.chart.scrollablePixels;t=a.Axis.prototype.getPlotLinePath.apply(this,arguments);this.right=f;return t}:
          (d.setAxisSize(),d.setAxisTranslation())}))});C(H,"render",function(){this.scrollablePixels?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});H.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};H.prototype.applyFixed=function(){var t=this.container,f,d,r=!this.fixedDiv;r&&(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=f=new a.Renderer(this.fixedDiv,0,0),this.scrollableMask=f.path().attr({fill:a.color(this.options.chart.backgroundColor||"#fff").setOpacity(.85).get(),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),
          a.each([this.inverted?".highcharts-xaxis":".highcharts-yaxis",this.inverted?".highcharts-xaxis-labels":".highcharts-yaxis-labels",".highcharts-contextbutton",".highcharts-credits",".highcharts-legend",".highcharts-subtitle",".highcharts-title",".highcharts-legend-checkbox"],function(d){a.each(t.querySelectorAll(d),function(a){(a.namespaceURI===f.SVG_NS?f.box:f.box.parentNode).appendChild(a);a.style.pointerEvents="auto"})}));this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);d=this.chartWidth+
          this.scrollablePixels;a.stop(this.container);this.container.style.width=d+"px";this.renderer.boxWrapper.attr({width:d,height:this.chartHeight,viewBox:[0,0,d,this.chartHeight].join(" ")});this.chartBackground.attr({width:d});r&&(d=this.options.chart.scrollablePlotArea,d.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixels*d.scrollPositionX));r=this.axisOffset;d=this.plotTop-r[0]-1;var r=this.plotTop+this.plotHeight+r[2],v=this.plotLeft+this.plotWidth-this.scrollablePixels;this.scrollableMask.attr({d:this.scrollablePixels?
              ["M",0,d,"L",this.plotLeft-1,d,"L",this.plotLeft-1,r,"L",0,r,"Z","M",v,d,"L",this.chartWidth,d,"L",this.chartWidth,r,"L",v,r,"Z"]:["M",0,0]})}})(K);(function(a){var C,H=a.each,G=a.extend,t=a.erase,f=a.fireEvent,d=a.format,r=a.isArray,v=a.isNumber,q=a.pick,x=a.uniqueKey,y=a.defined,b=a.removeEvent;a.Point=C=function(){};a.Point.prototype={init:function(a,b,d){this.series=a;this.color=a.color;this.applyOptions(b,d);this.id=y(this.id)?this.id:x();a.options.colorByPoint?(b=a.options.colors||a.chart.options.colors,
              this.color=this.color||b[a.colorCounter],b=b.length,d=a.colorCounter,a.colorCounter++,a.colorCounter===b&&(a.colorCounter=0)):d=a.colorIndex;this.colorIndex=q(this.colorIndex,d);a.chart.pointCount++;f(this,"afterInit");return this},applyOptions:function(a,b){var d=this.series,f=d.options.pointValKey||d.pointValKey;a=C.prototype.optionsToObject.call(this,a);G(this,a);this.options=this.options?G(this.options,a):a;a.group&&delete this.group;a.dataLabels&&delete this.dataLabels;f&&(this.y=this[f]);this.isNull=
              q(this.isValid&&!this.isValid(),null===this.x||!v(this.y,!0));this.selected&&(this.state="select");"name"in this&&void 0===b&&d.xAxis&&d.xAxis.hasNames&&(this.x=d.xAxis.nameToX(this));void 0===this.x&&d&&(this.x=void 0===b?d.autoIncrement(this):b);return this},setNestedProperty:function(b,d,l){l=l.split(".");a.reduce(l,function(b,c,e,g){b[c]=g.length-1===e?d:a.isObject(b[c],!0)?b[c]:{};return b[c]},b);return b},optionsToObject:function(b){var d={},l=this.series,f=l.options.keys,c=f||l.pointArrayMap||
              ["y"],e=c.length,u=0,q=0;if(v(b)||null===b)d[c[0]]=b;else if(r(b))for(!f&&b.length>e&&(l=typeof b[0],"string"===l?d.name=b[0]:"number"===l&&(d.x=b[0]),u++);q<e;)f&&void 0===b[u]||(0<c[q].indexOf(".")?a.Point.prototype.setNestedProperty(d,b[u],c[q]):d[c[q]]=b[u]),u++,q++;else"object"===typeof b&&(d=b,b.dataLabels&&(l._hasPointLabels=!0),b.marker&&(l._hasPointMarkers=!0));return d},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":
              "")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var a=this.series,b=a.zones,a=a.zoneAxis||"y",d=0,f;for(f=b[d];this[a]>=f.value;)f=b[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=f&&f.color&&!this.options.color?f.color:this.nonZonedColor;return f},
          destroy:function(){var a=this.series.chart,d=a.hoverPoints,f;a.pointCount--;d&&(this.setState(),t(d,this),d.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel||this.dataLabels)b(this),this.destroyElements();this.legendItem&&a.legend.destroyItem(this);for(f in this)this[f]=null},destroyElements:function(){for(var a=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],b,d=6;d--;)b=a[d],this[b]&&(this[b]=this[b].destroy());this.dataLabels&&
          (H(this.dataLabels,function(a){a.element&&a.destroy()}),delete this.dataLabels);this.connectors&&(H(this.connectors,function(a){a.element&&a.destroy()}),delete this.connectors)},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 b=this.series,f=b.tooltipOptions,n=q(f.valueDecimals,""),c=f.valuePrefix||
              "",e=f.valueSuffix||"";H(b.pointArrayMap||["y"],function(b){b="{point."+b;if(c||e)a=a.replace(RegExp(b+"}","g"),c+b+"}"+e);a=a.replace(RegExp(b+"}","g"),b+":,."+n+"f}")});return d(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,d){var n=this,c=this.series.options;(c.point.events[a]||n.options&&n.options.events&&n.options.events[a])&&this.importEvents();"click"===a&&c.allowPointSelect&&(d=function(a){n.select&&n.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});f(this,a,
              b,d)},visible:!0}})(K);(function(a){var C=a.addEvent,H=a.animObject,G=a.arrayMax,t=a.arrayMin,f=a.correctFloat,d=a.defaultOptions,r=a.defaultPlotOptions,v=a.defined,q=a.each,x=a.erase,y=a.extend,b=a.fireEvent,g=a.grep,m=a.isArray,l=a.isNumber,n=a.isString,c=a.merge,e=a.objectEach,u=a.pick,D=a.removeEvent,w=a.splat,O=a.SVGElement,z=a.syncTimeout,B=a.win;a.Series=a.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",
              enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":a.numberFormat(this.y,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},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,opacity:.25}},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,c){var d=this,g,f=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();y(d,{name:c.name,state:"",visible:!1!==c.visible,selected:!0===c.selected});
              g=c.events;e(g,function(a,b){C(d,b,a)});if(g&&g.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();q(d.parallelArrays,function(a){d[a+"Data"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);f.length&&(k=f[f.length-1]);d._i=u(k&&k._i,-1)+1;a.orderSeries(this.insert(f));b(this,"afterInit")},insert:function(a){var b=this.options.index,c;if(l(b)){for(c=a.length;c--;)if(b>=u(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 u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;q(b.axisTypes||[],function(g){q(e[g],function(a){d=a.options;if(c[g]===d.index||void 0!==c[g]&&c[g]===d.id||void 0===c[g]&&0===d.index)b.insert(a.series),b[g]=a,a.isDirty=!0});b[g]||b.optionalAxis===g||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,e=arguments,d=l(b)?function(e){var h="y"===e&&c.toYData?c.toYData(a):a[e];c[e+"Data"][b]=
              h}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(e,2))};q(c.parallelArrays,d)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),"day"===e?d.set("Date",a,d.get("Date",a)+c):"month"===e?d.set("Month",a,d.get("Month",a)+c):"year"===e&&d.set("FullYear",a,d.get("FullYear",a)+c),c=a.getTime()-b);this.xIncrement=b+c;return b},
          setOptions:function(a){var e=this.chart,g=e.options,f=g.plotOptions,m=(e.userOptions||{}).plotOptions||{},k=f[this.type];this.userOptions=a;e=c(k,f.series,a);this.tooltipOptions=c(d.tooltip,d.plotOptions.series&&d.plotOptions.series.tooltip,d.plotOptions[this.type].tooltip,g.tooltip.userOptions,f.series&&f.series.tooltip,f[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,m[this.type]&&m[this.type].stickyTracking,m.series&&m.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?
              !0:e.stickyTracking);null===k.marker&&delete e.marker;this.zoneAxis=e.zoneAxis;a=this.zones=(e.zones||[]).slice();!e.negativeColor&&!e.negativeFillColor||e.zones||a.push({value:e[this.zoneAxis+"Threshold"]||e.threshold||0,className:"highcharts-negative",color:e.negativeColor,fillColor:e.negativeFillColor});a.length&&v(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,"afterSetOptions",{options:e});return e},getName:function(){return this.name||"Series "+(this.index+
              1)},getCyclic:function(a,b,c){var e,d=this.chart,k=this.userOptions,h=a+"Index",g=a+"Counter",f=c?c.length:u(d.options.chart[a+"Count"],d[a+"Count"]);b||(e=u(k[h],k["_"+h]),v(e)||(d.series.length||(d[g]=0),k["_"+h]=e=d[g]%f,d[g]+=1),c&&(b=c[e]));void 0!==e&&(this[h]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,
              this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,d=[],g,k,h,f=this.requireSorting;q(b,function(b){var p;p=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;l(p)&&(p=a.inArray(p,this.xData,h),-1===p||e[p].touched?d.push(b):b!==c.data[p]?(e[p].update(b,!1,null,!1),e[p].touched=!0,f&&(h=p+1)):e[p]&&(e[p].touched=!0),g=!0)},this);if(g)for(b=e.length;b--;)k=e[b],k.touched||k.remove(!1),
              k.touched=!1;else if(b.length===e.length)q(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;q(d,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,e,d){var g=this,k=g.points,h=k&&k.length||0,f,w=g.options,z=g.chart,r=null,B=g.xAxis,t=w.turboThreshold,v=this.xData,y=this.yData,x=(f=g.pointArrayMap)&&f.length,D;b=b||[];f=b.length;c=u(c,!0);!1!==d&&f&&h&&!g.cropped&&!g.hasGroupedData&&g.visible&&!g.isSeriesBoosting&&(D=this.updateData(b));if(!D){g.xIncrement=
              null;g.colorCounter=0;q(this.parallelArrays,function(a){g[a+"Data"].length=0});if(t&&f>t){for(e=0;null===r&&e<f;)r=b[e],e++;if(l(r))for(e=0;e<f;e++)v[e]=this.autoIncrement(),y[e]=b[e];else if(m(r))if(x)for(e=0;e<f;e++)r=b[e],v[e]=r[0],y[e]=r.slice(1,x+1);else for(e=0;e<f;e++)r=b[e],v[e]=r[0],y[e]=r[1];else a.error(12)}else for(e=0;e<f;e++)void 0!==b[e]&&(r={series:g},g.pointClass.prototype.applyOptions.apply(r,[b[e]]),g.updateParallelArrays(r,e));y&&n(y[0])&&a.error(14,!0);g.data=[];g.options.data=
              g.userOptions.data=b;for(e=h;e--;)k[e]&&k[e].destroy&&k[e].destroy();B&&(B.minRange=B.userMinRange);g.isDirty=z.isDirtyBox=!0;g.isDirtyData=!!k;e=!1}"point"===w.legendType&&(this.processData(),this.generatePoints());c&&z.redraw(e)},processData:function(b){var c=this.xData,e=this.yData,d=c.length,g;g=0;var k,h,f=this.xAxis,m,l=this.options;m=l.cropThreshold;var n=this.getExtremesFromAll||l.getExtremesFromAll,w=this.isCartesian,l=f&&f.val2lin,u=f&&f.isLog,z=this.requireSorting,r,B;if(w&&!this.isDirty&&
              !f.isDirty&&!this.yAxis.isDirty&&!b)return!1;f&&(b=f.getExtremes(),r=b.min,B=b.max);w&&this.sorted&&!n&&(!m||d>m||this.forceCrop)&&(c[d-1]<r||c[0]>B?(c=[],e=[]):this.yData&&(c[0]<r||c[d-1]>B)&&(g=this.cropData(this.xData,this.yData,r,B),c=g.xData,e=g.yData,g=g.start,k=!0));for(m=c.length||1;--m;)d=u?l(c[m])-l(c[m-1]):c[m]-c[m-1],0<d&&(void 0===h||d<h)?h=d:0>d&&z&&(a.error(15),z=!1);this.cropped=k;this.cropStart=g;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       b,c,e,d){var k=a.length,h=0,g=k,f;d=u(d,this.cropShoulder,1);for(f=0;f<k;f++)if(a[f]>=c){h=Math.max(0,f-d);break}for(c=f;c<k;c++)if(a[c]>e){g=c+d;break}return{xData:a.slice(h,g),yData:b.slice(h,g),start:h,end:g}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,k=this.processedYData,h=this.pointClass,g=d.length,f=this.cropStart||0,m,l=this.hasGroupedData,a=a.keys,n,u=[],z;c||l||(c=[],c.length=b.length,c=this.data=c);a&&l&&(this.options.keys=!1);for(z=0;z<g;z++)m=
              f+z,l?(n=(new h).init(this,[d[z]].concat(w(k[z]))),n.dataGroup=this.groupMap[z],n.dataGroup.options&&(n.options=n.dataGroup.options,y(n,n.dataGroup.options))):(n=c[m])||void 0===b[m]||(c[m]=n=(new h).init(this,b[m],d[z])),n&&(n.index=m,u[z]=n);this.options.keys=a;if(c&&(g!==(e=c.length)||l))for(z=0;z<e;z++)z!==f||l||(z+=g),c[z]&&(c[z].destroyElements(),c[z].plotX=void 0);this.data=c;this.points=u},getExtremes:function(a){var b=this.yAxis,c=this.processedXData,e,d=[],k=0;e=this.xAxis.getExtremes();
              var h=e.min,g=e.max,f,n,w=this.requireSorting?1:0,u,z;a=a||this.stackedYData||this.processedYData||[];e=a.length;for(z=0;z<e;z++)if(n=c[z],u=a[z],f=(l(u,!0)||m(u))&&(!b.positiveValuesOnly||u.length||0<u),n=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(c[z+w]||n)>=h&&(c[z-w]||n)<=g,f&&n)if(f=u.length)for(;f--;)"number"===typeof u[f]&&(d[k++]=u[f]);else d[k++]=u;this.dataMin=t(d);this.dataMax=G(d)},translate:function(){this.processedXData||this.processData();this.generatePoints();
              var a=this.options,c=a.stacking,e=this.xAxis,d=e.categories,g=this.yAxis,k=this.points,h=k.length,m=!!this.modifyValue,n=a.pointPlacement,w="between"===n||l(n),z=a.threshold,r=a.startFromThreshold?z:0,B,q,t,y,x=Number.MAX_VALUE;"between"===n&&(n=.5);l(n)&&(n*=u(a.pointRange||e.pointRange));for(a=0;a<h;a++){var D=k[a],O=D.x,C=D.y;q=D.low;var H=c&&g.stacks[(this.negStacks&&C<(r?0:z)?"-":"")+this.stackKey],G;g.positiveValuesOnly&&null!==C&&0>=C&&(D.isNull=!0);D.plotX=B=f(Math.min(Math.max(-1E5,e.translate(O,
                  0,0,0,1,n,"flags"===this.type)),1E5));c&&this.visible&&!D.isNull&&H&&H[O]&&(y=this.getStackIndicator(y,O,this.index),G=H[O],C=G.points[y.key],q=C[0],C=C[1],q===r&&y.key===H[O].base&&(q=u(l(z)&&z,g.min)),g.positiveValuesOnly&&0>=q&&(q=null),D.total=D.stackTotal=G.total,D.percentage=G.total&&D.y/G.total*100,D.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));D.yBottom=v(q)?Math.min(Math.max(-1E5,g.translate(q,0,1,0,1)),1E5):null;m&&(C=this.modifyValue(C,D));D.plotY=q="number"===typeof C&&Infinity!==
              C?Math.min(Math.max(-1E5,g.translate(C,0,1,0,1)),1E5):void 0;D.isInside=void 0!==q&&0<=q&&q<=g.len&&0<=B&&B<=e.len;D.clientX=w?f(e.translate(O,0,0,0,1,n)):B;D.negative=D.y<(z||0);D.category=d&&void 0!==d[D.x]?d[D.x]:D.x;D.isNull||(void 0!==t&&(x=Math.min(x,Math.abs(B-t))),t=B);D.zone=this.zones.length&&D.getZone()}this.closestPointRangePx=x;b(this,"afterTranslate")},getValidPoints:function(a,b){var c=this.chart;return g(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?
              !1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,k=this.clipBox,h=k||b.clipBox,g=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,h.height,c.xAxis,c.yAxis].join(),f=b[g],m=b[g+"m"];f||(a&&(h.width=0,d&&(h.x=b.plotSizeX),b[g+"m"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[g]=f=e.clipRect(h),f.count={length:0});a&&!f.count[this.index]&&(f.count[this.index]=!0,f.count.length+=1);!1!==c.clip&&
          (this.group.clip(a||k?f:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=g);a||(f.count[this.index]&&(delete f.count[this.index],--f.count.length),0===f.count.length&&g&&b[g]&&(k||(b[g]=b[g].destroy()),b[g+"m"]&&(b[g+"m"]=b[g+"m"].destroy())))},animate:function(a){var b=this.chart,c=H(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+"m"]&&b[e+"m"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();
              b(this,"afterAnimate");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,k,h=this.options.marker,g,f,m,l=this[this.specialGroup]||this.markerGroup,n,w=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;c<a.length;c++)e=a[c],k=e.graphic,g=e.marker||{},f=!!e.marker,d=w&&void 0===g.enabled||g.enabled,m=e.isInside,d&&!e.isNull?(d=u(g.symbol,this.symbol),n=this.markerAttribs(e,
              e.selected&&"select"),k?k[m?"show":"hide"](!0).animate(n):m&&(0<n.width||e.hasImage)&&(e.graphic=k=b.renderer.symbol(d,n.x,n.y,n.width,n.height,f?g:h).add(l)),k&&k.attr(this.pointAttribs(e,e.selected&&"select")),k&&k.addClass(e.getClassName(),!0)):k&&(e.graphic=k.destroy())},markerAttribs:function(a,b){var c=this.options.marker,e=a.marker||{},d=e.symbol||c.symbol,k=u(e.radius,c.radius);b&&(c=c.states[b],b=e.states&&e.states[b],k=u(b&&b.radius,c&&c.radius,k+(c&&c.radiusPlus||0)));a.hasImage=d&&0===
              d.indexOf("url");a.hasImage&&(k=0);a={x:Math.floor(a.plotX)-k,y:a.plotY-k};k&&(a.width=a.height=2*k);return a},pointAttribs:function(a,b){var c=this.options.marker,e=a&&a.options,d=e&&e.marker||{},k=this.color,h=e&&e.color,g=a&&a.color,e=u(d.lineWidth,c.lineWidth);a=a&&a.zone&&a.zone.color;k=h||a||g||k;a=d.fillColor||c.fillColor||k;k=d.lineColor||c.lineColor||k;b&&(c=c.states[b],b=d.states&&d.states[b]||{},e=u(b.lineWidth,c.lineWidth,e+u(b.lineWidthPlus,c.lineWidthPlus,0)),a=b.fillColor||c.fillColor||
              a,k=b.lineColor||c.lineColor||k);return{stroke:k,"stroke-width":e,fill:a}},destroy:function(){var c=this,d=c.chart,g=/AppleWebKit\/533/.test(B.navigator.userAgent),f,m,k=c.data||[],h,l;b(c,"destroy");D(c);q(c.axisTypes||[],function(a){(l=c[a])&&l.series&&(x(l.series,c),l.isDirty=l.forceRedraw=!0)});c.legendItem&&c.chart.legend.destroyItem(c);for(m=k.length;m--;)(h=k[m])&&h.destroy&&h.destroy();c.points=null;a.clearTimeout(c.animationTimeout);e(c,function(a,b){a instanceof O&&!a.survive&&(f=g&&"group"===
          b?"hide":"destroy",a[f]())});d.hoverSeries===c&&(d.hoverSeries=null);x(d.series,c);d.orderSeries();e(c,function(a,b){delete c[b]})},getGraphPath:function(a,b,c){var e=this,d=e.options,k=d.step,h,g=[],f=[],m;a=a||e.points;(h=a.reversed)&&a.reverse();(k={right:1,center:2}[k]||k&&3)&&h&&(k=4-k);!d.connectNulls||b||c||(a=this.getValidPoints(a));q(a,function(h,l){var n=h.plotX,w=h.plotY,u=a[l-1];(h.leftCliff||u&&u.rightCliff)&&!c&&(m=!0);h.isNull&&!v(b)&&0<l?m=!d.connectNulls:h.isNull&&!b?m=!0:(0===l||
          m?l=["M",h.plotX,h.plotY]:e.getPointSpline?l=e.getPointSpline(a,h,l):k?(l=1===k?["L",u.plotX,w]:2===k?["L",(u.plotX+n)/2,u.plotY,"L",(u.plotX+n)/2,w]:["L",n,u.plotY],l.push("L",n,w)):l=["L",n,w],f.push(h.x),k&&(f.push(h.x),2===k&&f.push(h.x)),g.push.apply(g,l),m=!1)});g.xMap=f;return e.graphPath=g},drawGraph:function(){var a=this,b=this.options,c=(this.gappedPath||this.getGraphPath).call(this),e=[["graph","highcharts-graph",b.lineColor||this.color,b.dashStyle]],e=a.getZonesGraphs(e);q(e,function(e,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               d){var h=e[0],g=a[h];g?(g.endX=a.preventGraphAnimation?null:c.xMap,g.animate({d:c})):c.length&&(a[h]=a.chart.renderer.path(c).addClass(e[1]).attr({zIndex:1}).add(a.group),g={stroke:e[2],"stroke-width":b.lineWidth,fill:a.fillGraph&&a.color||"none"},e[3]?g.dashstyle=e[3]:"square"!==b.linecap&&(g["stroke-linecap"]=g["stroke-linejoin"]="round"),g=a[h].attr(g).shadow(2>d&&b.shadow));g&&(g.startX=c.xMap,g.isArea=c.isArea)})},getZonesGraphs:function(a){q(this.zones,function(b,c){a.push(["zone-graph-"+c,
              "highcharts-graph highcharts-zone-graph-"+c+" "+(b.className||""),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],f,m=this.graph,l=this.area,n=Math.max(b.chartWidth,b.chartHeight),w=this[(this.zoneAxis||"y")+"Axis"],z,r,B=b.inverted,t,y,v,x,D=!1;e.length&&(m||l)&&w&&void 0!==w.min&&(r=w.reversed,t=w.horiz,m&&!this.showLine&&m.hide(),l&&l.hide(),z=w.getExtremes(),q(e,function(e,q){d=
              r?t?b.plotWidth:0:t?0:w.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),n);g=Math.min(Math.max(Math.round(w.toPixels(u(e.value,z.max),!0)),0),n);D&&(d=g=w.toPixels(z.max));y=Math.abs(d-g);v=Math.min(d,g);x=Math.max(d,g);w.isXAxis?(f={x:B?x:v,y:0,width:y,height:n},t||(f.x=b.plotHeight-f.x)):(f={x:0,y:B?x:v,width:n,height:y},t&&(f.y=b.plotWidth-f.y));B&&c.isVML&&(f=w.isXAxis?{x:0,y:r?v:x,height:f.width,width:b.chartWidth}:{x:f.y-b.plotLeft-b.spacingBox.x,y:0,width:f.height,height:b.chartHeight});h[q]?
              h[q].animate(f):(h[q]=c.clipRect(f),m&&a["zone-graph-"+q].clip(h[q]),l&&a["zone-area-"+q].clip(h[q]));D=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){q(["group","markerGroup"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,"resize",b),C(c,"destroy",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            d){var g=this[a],h=!g;h&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass("highcharts-"+b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(v(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(g.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);g.attr({visibility:c})[h?"attr":"animate"](this.getPlotBox());return g},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,c=a.chart,e,d=a.options,g=!!a.animate&&c.renderer.isSVG&&H(d.animation).duration,k=a.visible?"inherit":"hidden",h=d.zIndex,f=a.hasRendered,m=c.seriesGroup,l=c.inverted;e=a.plotGroup("group","series",k,h,m);a.markerGroup=a.plotGroup("markerGroup","markers",k,h,m);g&&a.animate(!0);e.inverted=a.isCartesian?l:!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(l);!1===d.clip||a.sharedClipKey||f||e.clip(c.clipRect);g&&a.animate();f||(a.animationTimeout=z(function(){a.afterAnimate()},g));a.isDirty=!1;a.hasRendered=!0;b(a,"afterRender")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),
              translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,d){var h,g;if(g=c&&c.length)return h=b.kdAxisArray[e%d],c.sort(function(a,b){return a[h]-b[h]}),g=Math.floor(g/2),{point:c[g],left:a(c.slice(0,
                  g),e+1,d),right:a(c.slice(g+1),e+1,d)}}this.buildingKdTree=!0;var b=this,c=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;z(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,f,m){var l=b.point,n=e.kdAxisArray[f%m],p,w,u=l;w=v(a[d])&&v(l[d])?Math.pow(a[d]-l[d],2):null;p=v(a[g])&&v(l[g])?Math.pow(a[g]-l[g],2):null;p=(w||0)+(p||0);l.dist=v(p)?Math.sqrt(p):Number.MAX_VALUE;l.distX=v(w)?
              Math.sqrt(w):Number.MAX_VALUE;n=a[n]-l[n];p=0>n?"left":"right";w=0>n?"right":"left";b[p]&&(p=c(a,b[p],f+1,m),u=p[h]<u[h]?p:l);b[w]&&Math.sqrt(n*n)<u[h]&&(a=c(a,b[w],f+1,m),u=a[h]<u[h]?a:u);return u}var e=this,d=this.kdAxisArray[0],g=this.kdAxisArray[1],h=b?"distX":"dist";b=-1<e.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree();if(this.kdTree)return c(a,this.kdTree,b,b)}})})(K);(function(a){var C=a.Axis,H=a.Chart,G=a.correctFloat,t=a.defined,f=a.destroyObjectProperties,
          d=a.each,r=a.format,v=a.objectEach,q=a.pick,x=a.Series;a.StackItem=function(a,b,d,f,l){var n=a.chart.inverted;this.axis=a;this.isNegative=d;this.options=b;this.x=f;this.total=null;this.points={};this.stack=l;this.rightCliff=this.leftCliff=0;this.alignOptions={align:b.align||(n?d?"left":"right":"center"),verticalAlign:b.verticalAlign||(n?"middle":d?"bottom":"top"),y:q(b.y,n?4:d?14:-6),x:q(b.x,n?d?-6:6:0)};this.textAlign=b.textAlign||(n?d?"right":"left":"center")};a.StackItem.prototype={destroy:function(){f(this,
              this.axis)},render:function(a){var b=this.axis.chart,d=this.options,f=d.format,f=f?r(f,this,b.time):d.formatter.call(this);this.label?this.label.attr({text:f,visibility:"hidden"}):this.label=b.renderer.text(f,null,null,d.useHTML).css(d.style).attr({align:this.textAlign,rotation:d.rotation,visibility:"hidden"}).add(a);this.label.labelrank=b.plotHeight},setOffset:function(a,b){var d=this.axis,f=d.chart,l=d.translate(d.usePercentage?100:this.total,0,0,0,1),n=d.translate(0),n=t(l)&&Math.abs(l-n);a=f.xAxis[0].translate(this.x)+
              a;d=t(l)&&this.getStackBox(f,this,a,l,b,n,d);(b=this.label)&&d&&(b.align(this.alignOptions,null,d),d=b.alignAttr,b[!1===this.options.crop||f.isInsidePlot(d.x,d.y)?"show":"hide"](!0))},getStackBox:function(a,b,d,f,l,n,c){var e=b.axis.reversed,u=a.inverted;a=c.height+c.pos-(u?a.plotLeft:a.plotTop);b=b.isNegative&&!e||!b.isNegative&&e;return{x:u?b?f:f-n:d,y:u?a-d-l:b?a-f-n:a-f,width:u?n:l,height:u?l:n}}};H.prototype.getStacks=function(){var a=this;d(a.yAxis,function(a){a.stacks&&a.hasVisibleSeries&&
      (a.oldStacks=a.stacks)});d(a.series,function(b){!b.options.stacking||!0!==b.visible&&!1!==a.options.chart.ignoreHiddenSeries||(b.stackKey=b.type+q(b.options.stack,""))})};C.prototype.buildStacks=function(){var a=this.series,b=q(this.options.reversedStacks,!0),d=a.length,f;if(!this.isXAxis){this.usePercentage=!1;for(f=d;f--;)a[b?f:d-f-1].setStackedPoints();for(f=0;f<d;f++)a[f].modifyStacks()}};C.prototype.renderStackTotals=function(){var a=this.chart,b=a.renderer,d=this.stacks,f=this.stackTotalGroup;
          f||(this.stackTotalGroup=f=b.g("stack-labels").attr({visibility:"visible",zIndex:6}).add());f.translate(a.plotLeft,a.plotTop);v(d,function(a){v(a,function(a){a.render(f)})})};C.prototype.resetStacks=function(){var a=this,b=a.stacks;a.isXAxis||v(b,function(b){v(b,function(d,f){d.touched<a.stacksTouched?(d.destroy(),delete b[f]):(d.total=null,d.cumulative=null)})})};C.prototype.cleanStacks=function(){var a;this.isXAxis||(this.oldStacks&&(a=this.stacks=this.oldStacks),v(a,function(a){v(a,function(a){a.cumulative=
          a.total})}))};x.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var d=this.processedXData,b=this.processedYData,g=[],f=b.length,l=this.options,n=l.threshold,c=q(l.startFromThreshold&&n,0),e=l.stack,l=l.stacking,u=this.stackKey,r="-"+u,w=this.negStacks,v=this.yAxis,z=v.stacks,B=v.oldStacks,p,E,A,x,I,k,h;v.stacksTouched+=1;for(I=0;I<f;I++)k=d[I],h=b[I],p=this.getStackIndicator(p,k,this.index),x=p.key,A=(E=w&&h<(c?
          0:n))?r:u,z[A]||(z[A]={}),z[A][k]||(B[A]&&B[A][k]?(z[A][k]=B[A][k],z[A][k].total=null):z[A][k]=new a.StackItem(v,v.options.stackLabels,E,k,e)),A=z[A][k],null!==h?(A.points[x]=A.points[this.index]=[q(A.cumulative,c)],t(A.cumulative)||(A.base=x),A.touched=v.stacksTouched,0<p.index&&!1===this.singleStacks&&(A.points[x][0]=A.points[this.index+","+k+",0"][0])):A.points[x]=A.points[this.index]=null,"percent"===l?(E=E?u:r,w&&z[E]&&z[E][k]?(E=z[E][k],A.total=E.total=Math.max(E.total,A.total)+Math.abs(h)||
          0):A.total=G(A.total+(Math.abs(h)||0))):A.total=G(A.total+(h||0)),A.cumulative=q(A.cumulative,c)+(h||0),null!==h&&(A.points[x].push(A.cumulative),g[I]=A.cumulative);"percent"===l&&(v.usePercentage=!0);this.stackedYData=g;v.oldStacks={}}};x.prototype.modifyStacks=function(){var a=this,b=a.stackKey,g=a.yAxis.stacks,f=a.processedXData,l,n=a.options.stacking;a[n+"Stacker"]&&d([b,"-"+b],function(b){for(var e=f.length,d,r;e--;)if(d=f[e],l=a.getStackIndicator(l,d,a.index,b),r=(d=g[b]&&g[b][d])&&d.points[l.key])a[n+
      "Stacker"](r,d,e)})};x.prototype.percentStacker=function(a,b,d){b=b.total?100/b.total:0;a[0]=G(a[0]*b);a[1]=G(a[1]*b);this.stackedYData[d]=a[1]};x.prototype.getStackIndicator=function(a,b,d,f){!t(a)||a.x!==b||f&&a.key!==f?a={x:b,index:0,key:f}:a.index++;a.key=[d,b,a.index].join();return a}})(K);(function(a){var C=a.addEvent,H=a.animate,G=a.Axis,t=a.createElement,f=a.css,d=a.defined,r=a.each,v=a.erase,q=a.extend,x=a.fireEvent,y=a.inArray,b=a.isNumber,g=a.isObject,m=a.isArray,l=a.merge,n=a.objectEach,
          c=a.pick,e=a.Point,u=a.Series,D=a.seriesTypes,w=a.setAnimation,O=a.splat;q(a.Chart.prototype,{addSeries:function(a,b,e){var d,g=this;a&&(b=c(b,!0),x(g,"addSeries",{options:a},function(){d=g.initSeries(a);g.isDirtyLegend=!0;g.linkSeries();x(g,"afterAddSeries");b&&g.redraw(e)}));return d},addAxis:function(a,b,e,d){var g=b?"xAxis":"yAxis",f=this.options;a=l(a,{index:this[g].length,isX:b});b=new G(this,a);f[g]=O(f[g]||{});f[g].push(a);c(e,!0)&&this.redraw(d);return b},showLoading:function(a){var b=this,
              c=b.options,e=b.loadingDiv,d=c.loading,g=function(){e&&f(e,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};e||(b.loadingDiv=e=t("div",{className:"highcharts-loading highcharts-loading-hidden"},null,b.container),b.loadingSpan=t("span",{className:"highcharts-loading-inner"},null,e),C(b,"redraw",g));e.className="highcharts-loading";b.loadingSpan.innerHTML=a||c.lang.loading;f(e,q(d.style,{zIndex:10}));f(b.loadingSpan,d.labelStyle);b.loadingShown||(f(e,{opacity:0,
              display:""}),H(e,{opacity:d.style.opacity||.5},{duration:d.showDuration||0}));b.loadingShown=!0;g()},hideLoading:function(){var a=this.options,b=this.loadingDiv;b&&(b.className="highcharts-loading highcharts-loading-hidden",H(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){f(b,{display:"none"})}}));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,e,g,f){var m=this,w={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle"},u=a.chart,k,h,q=[];x(m,"update",{options:a});if(u){l(!0,m.options.chart,u);"className"in u&&m.setClassName(u.className);"reflow"in u&&m.setReflow(u.reflow);if("inverted"in u||"polar"in u||"type"in u)m.propFromSeries(),k=!0;"alignTicks"in u&&(k=!0);n(u,function(a,b){-1!==
          y("chart."+b,m.propsRequireUpdateSeries)&&(h=!0);-1!==y(b,m.propsRequireDirtyBox)&&(m.isDirtyBox=!0)});"style"in u&&m.renderer.setStyle(u.style)}a.colors&&(this.options.colors=a.colors);a.plotOptions&&l(!0,this.options.plotOptions,a.plotOptions);n(a,function(a,b){if(m[b]&&"function"===typeof m[b].update)m[b].update(a,!1);else if("function"===typeof m[w[b]])m[w[b]](a);"chart"!==b&&-1!==y(b,m.propsRequireUpdateSeries)&&(h=!0)});r("xAxis yAxis zAxis series colorAxis pane".split(" "),function(b){var c;
              a[b]&&("series"===b&&(c=[],r(m[b],function(a,b){a.options.isInternal||c.push(b)})),r(O(a[b]),function(a,e){(e=d(a.id)&&m.get(a.id)||m[b][c?c[e]:e])&&e.coll===b&&(e.update(a,!1),g&&(e.touched=!0));if(!e&&g)if("series"===b)m.addSeries(a,!1).touched=!0;else if("xAxis"===b||"yAxis"===b)m.addAxis(a,"xAxis"===b,!1).touched=!0}),g&&r(m[b],function(a){a.touched||a.options.isInternal?delete a.touched:q.push(a)}))});r(q,function(a){a.remove&&a.remove(!1)});k&&r(m.axes,function(a){a.update({},!1)});h&&r(m.series,
              function(a){a.update({},!1)});a.loading&&l(!0,m.options.loading,a.loading);k=u&&u.width;u=u&&u.height;b(k)&&k!==m.chartWidth||b(u)&&u!==m.chartHeight?m.setSize(k,u,f):c(e,!0)&&m.redraw(f);x(m,"afterUpdate",{options:a})},setSubtitle:function(a){this.setTitle(void 0,a)}});q(e.prototype,{update:function(a,b,e,d){function f(){m.applyOptions(a);null===m.y&&k&&(m.graphic=k.destroy());g(a,!0)&&(k&&k.element&&a&&a.marker&&void 0!==a.marker.symbol&&(m.graphic=k.destroy()),a&&a.dataLabels&&m.dataLabel&&(m.dataLabel=
              m.dataLabel.destroy()),m.connector&&(m.connector=m.connector.destroy()));h=m.index;l.updateParallelArrays(m,h);w.data[h]=g(w.data[h],!0)||g(a,!0)?m.options:c(a,w.data[h]);l.isDirty=l.isDirtyData=!0;!l.fixedBox&&l.hasCartesianSeries&&(n.isDirtyBox=!0);"point"===w.legendType&&(n.isDirtyLegend=!0);b&&n.redraw(e)}var m=this,l=m.series,k=m.graphic,h,n=l.chart,w=l.options;b=c(b,!0);!1===d?f():m.firePointEvent("update",{options:a},f)},remove:function(a,b){this.series.removePoint(y(this,this.series.data),
              a,b)}});q(u.prototype,{addPoint:function(a,b,e,d){var g=this.options,f=this.data,m=this.chart,k=this.xAxis,k=k&&k.hasNames&&k.names,h=g.data,l,n,w=this.xData,u,r;b=c(b,!0);l={series:this};this.pointClass.prototype.applyOptions.apply(l,[a]);r=l.x;u=w.length;if(this.requireSorting&&r<w[u-1])for(n=!0;u&&w[u-1]>r;)u--;this.updateParallelArrays(l,"splice",u,0,0);this.updateParallelArrays(l,u);k&&l.name&&(k[r]=l.name);h.splice(u,0,a);n&&(this.data.splice(u,0,null),this.processData());"point"===g.legendType&&
          this.generatePoints();e&&(f[0]&&f[0].remove?f[0].remove(!1):(f.shift(),this.updateParallelArrays(l,"shift"),h.shift()));this.isDirtyData=this.isDirty=!0;b&&m.redraw(d)},removePoint:function(a,b,e){var d=this,g=d.data,f=g[a],m=d.points,k=d.chart,h=function(){m&&m.length===g.length&&m.splice(a,1);g.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(f||{series:d},"splice",a,1);f&&f.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&k.redraw()};w(e,k);b=c(b,!0);f?f.firePointEvent("remove",null,h):
              h()},remove:function(a,b,e){function d(){g.destroy();g.remove=null;f.isDirtyLegend=f.isDirtyBox=!0;f.linkSeries();c(a,!0)&&f.redraw(b)}var g=this,f=g.chart;!1!==e?x(g,"remove",null,d):d()},update:function(b,e){var d=this,g=d.chart,f=d.userOptions,m=d.oldType||d.type,n=b.type||f.type||g.options.chart.type,k=D[m].prototype,h,w=["group","markerGroup","dataLabelsGroup"],u=["navigatorSeries","baseSeries"],t=d.finishedAnimating&&{animation:!1},v=["data","name","turboThreshold"],O=a.keys(b),C=0<O.length;
              r(O,function(a){-1===y(a,v)&&(C=!1)});if(C)b.data&&this.setData(b.data,!1),b.name&&this.setName(b.name,!1);else{u=w.concat(u);r(u,function(a){u[a]=d[a];delete d[a]});b=l(f,t,{index:d.index,pointStart:c(f.pointStart,d.xData[0])},{data:d.options.data},b);d.remove(!1,null,!1);for(h in k)d[h]=void 0;D[n||m]?q(d,D[n||m].prototype):a.error(17,!0);r(u,function(a){d[a]=u[a]});d.init(g,b);b.zIndex!==f.zIndex&&r(w,function(a){d[a]&&d[a].attr({zIndex:b.zIndex})});d.oldType=m;g.linkSeries()}x(this,"afterUpdate");
              c(e,!0)&&g.redraw(C?void 0:!1)},setName:function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0}});q(G.prototype,{update:function(a,b){var e=this.chart,d=a&&a.events||{};a=l(this.userOptions,a);e.options[this.coll].indexOf&&(e.options[this.coll][e.options[this.coll].indexOf(this.userOptions)]=a);n(e.options[this.coll].events,function(a,b){"undefined"===typeof d[b]&&(d[b]=void 0)});this.destroy(!0);this.init(e,q(a,{events:d}));e.isDirtyBox=!0;c(b,!0)&&e.redraw()},
          remove:function(a){for(var b=this.chart,e=this.coll,d=this.series,g=d.length;g--;)d[g]&&d[g].remove(!1);v(b.axes,this);v(b[e],this);m(b.options[e])?b.options[e].splice(this.options.index,1):delete b.options[e];r(b[e],function(a,b){a.options.index=a.userOptions.index=b});this.destroy();b.isDirtyBox=!0;c(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,b){this.update({categories:a},b)}})})(K);(function(a){var C=a.color,H=a.each,G=a.map,t=a.pick,f=a.Series,
          d=a.seriesType;d("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(d){var f=[],q=[],x=this.xAxis,y=this.yAxis,b=y.stacks[this.stackKey],g={},m=this.index,l=y.series,n=l.length,c,e=t(y.options.reversedStacks,!0)?1:-1,u;d=d||this.points;if(this.options.stacking){for(u=0;u<d.length;u++)d[u].leftNull=d[u].rightNull=null,g[d[u].x]=d[u];a.objectEach(b,function(a,b){null!==a.total&&q.push(b)});q.sort(function(a,b){return a-b});c=G(l,function(){return this.visible});H(q,
              function(a,d){var l=0,r,t;if(g[a]&&!g[a].isNull)f.push(g[a]),H([-1,1],function(f){var l=1===f?"rightNull":"leftNull",v=0,x=b[q[d+f]];if(x)for(u=m;0<=u&&u<n;)(r=x.points[u])||(u===m?g[a][l]=!0:c[u]&&(t=b[a].points[u])&&(v-=t[1]-t[0])),u+=e;g[a][1===f?"rightCliff":"leftCliff"]=v});else{for(u=m;0<=u&&u<n;){if(r=b[a].points[u]){l=r[1];break}u+=e}l=y.translate(l,0,1,0,1);f.push({isNull:!0,plotX:x.translate(a,0,0,0,1),x:a,plotY:l,yBottom:l})}})}return f},getGraphPath:function(a){var d=f.prototype.getGraphPath,
              q=this.options,x=q.stacking,y=this.yAxis,b,g,m=[],l=[],n=this.index,c,e=y.stacks[this.stackKey],u=q.threshold,D=y.getThreshold(q.threshold),w,q=q.connectNulls||"percent"===x,O=function(b,d,g){var f=a[b];b=x&&e[f.x].points[n];var w=f[g+"Null"]||0;g=f[g+"Cliff"]||0;var q,t,f=!0;g||w?(q=(w?b[0]:b[1])+g,t=b[0]+g,f=!!w):!x&&a[d]&&a[d].isNull&&(q=t=u);void 0!==q&&(l.push({plotX:c,plotY:null===q?D:y.getThreshold(q),isNull:f,isCliff:!0}),m.push({plotX:c,plotY:null===t?D:y.getThreshold(t),doCurve:!1}))};a=
              a||this.points;x&&(a=this.getStackPoints(a));for(b=0;b<a.length;b++)if(g=a[b].isNull,c=t(a[b].rectPlotX,a[b].plotX),w=t(a[b].yBottom,D),!g||q)q||O(b,b-1,"left"),g&&!x&&q||(l.push(a[b]),m.push({x:b,plotX:c,plotY:w})),q||O(b,b+1,"right");b=d.call(this,l,!0,!0);m.reversed=!0;g=d.call(this,m,!0,!0);g.length&&(g[0]="L");g=b.concat(g);d=d.call(this,l,!1,q);g.xMap=b.xMap;this.areaPath=g;return d},drawGraph:function(){this.areaPath=[];f.prototype.drawGraph.apply(this);var a=this,d=this.areaPath,q=this.options,
              x=[["area","highcharts-area",this.color,q.fillColor]];H(this.zones,function(d,b){x.push(["zone-area-"+b,"highcharts-area highcharts-zone-area-"+b+" "+d.className,d.color||a.color,d.fillColor||q.fillColor])});H(x,function(f){var b=f[0],g=a[b];g?(g.endX=a.preventGraphAnimation?null:d.xMap,g.animate({d:d})):(g=a[b]=a.chart.renderer.path(d).addClass(f[1]).attr({fill:t(f[3],C(f[2]).setOpacity(t(q.fillOpacity,.75)).get()),zIndex:0}).add(a.group),g.isArea=!0);g.startX=d.xMap;g.shiftUnit=q.step?2:1})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle})})(K);
      (function(a){var C=a.pick;a=a.seriesType;a("spline","line",{},{getPointSpline:function(a,G,t){var f=G.plotX,d=G.plotY,r=a[t-1];t=a[t+1];var v,q,x,y;if(r&&!r.isNull&&!1!==r.doCurve&&!G.isCliff&&t&&!t.isNull&&!1!==t.doCurve&&!G.isCliff){a=r.plotY;x=t.plotX;t=t.plotY;var b=0;v=(1.5*f+r.plotX)/2.5;q=(1.5*d+a)/2.5;x=(1.5*f+x)/2.5;y=(1.5*d+t)/2.5;x!==v&&(b=(y-q)*(x-f)/(x-v)+d-y);q+=b;y+=b;q>a&&q>d?(q=Math.max(a,d),y=2*d-q):q<a&&q<d&&(q=Math.min(a,d),y=2*d-q);y>t&&y>d?(y=Math.max(t,d),q=2*d-y):y<t&&y<d&&
              (y=Math.min(t,d),q=2*d-y);G.rightContX=x;G.rightContY=y}G=["C",C(r.rightContX,r.plotX),C(r.rightContY,r.plotY),C(v,f),C(q,d),f,d];r.rightContX=r.rightContY=null;return G}})})(K);(function(a){var C=a.seriesTypes.area.prototype,H=a.seriesType;H("areaspline","spline",a.defaultPlotOptions.area,{getStackPoints:C.getStackPoints,getGraphPath:C.getGraphPath,drawGraph:C.drawGraph,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle})})(K);(function(a){var C=a.animObject,H=a.color,G=a.each,t=a.extend,f=a.defined,
          d=a.isNumber,r=a.merge,v=a.pick,q=a.Series,x=a.seriesType,y=a.svg;x("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group",
              "dataLabelsGroup"],negStacks:!0,init:function(){q.prototype.init.apply(this,arguments);var a=this,d=a.chart;d.hasRendered&&G(d.series,function(d){d.type===a.type&&(d.isDirty=!0)})},getColumnMetrics:function(){var a=this,d=a.options,f=a.xAxis,l=a.yAxis,n=f.options.reversedStacks,n=f.reversed&&!n||!f.reversed&&n,c,e={},u=0;!1===d.grouping?u=1:G(a.chart.series,function(d){var f=d.options,g=d.yAxis,m;d.type!==a.type||!d.visible&&a.chart.options.chart.ignoreHiddenSeries||l.len!==g.len||l.pos!==g.pos||
          (f.stacking?(c=d.stackKey,void 0===e[c]&&(e[c]=u++),m=e[c]):!1!==f.grouping&&(m=u++),d.columnIndex=m)});var q=Math.min(Math.abs(f.transA)*(f.ordinalSlope||d.pointRange||f.closestPointRange||f.tickInterval||1),f.len),w=q*d.groupPadding,r=(q-2*w)/(u||1),d=Math.min(d.maxPointWidth||f.len,v(d.pointWidth,r*(1-2*d.pointPadding)));a.columnMetrics={width:d,offset:(r-d)/2+(w+((a.columnIndex||0)+(n?1:0))*r-q/2)*(n?-1:1)};return a.columnMetrics},crispCol:function(a,d,f,l){var n=this.chart,c=this.borderWidth,
              e=-(c%2?.5:0),c=c%2?.5:1;n.inverted&&n.renderer.isVML&&(c+=1);this.options.crisp&&(f=Math.round(a+f)+e,a=Math.round(a)+e,f-=a);l=Math.round(d+l)+c;e=.5>=Math.abs(d)&&.5<l;d=Math.round(d)+c;l-=d;e&&l&&(--d,l+=1);return{x:a,y:d,width:f,height:l}},translate:function(){var a=this,d=a.chart,m=a.options,l=a.dense=2>a.closestPointRange*a.xAxis.transA,l=a.borderWidth=v(m.borderWidth,l?0:1),n=a.yAxis,c=m.threshold,e=a.translatedThreshold=n.getThreshold(c),u=v(m.minPointLength,5),r=a.getColumnMetrics(),w=r.width,
              t=a.barW=Math.max(w,1+2*l),z=a.pointXOffset=r.offset;d.inverted&&(e-=.5);m.pointPadding&&(t=Math.ceil(t));q.prototype.translate.apply(a);G(a.points,function(l){var m=v(l.yBottom,e),q=999+Math.abs(m),r=w,q=Math.min(Math.max(-q,l.plotY),n.len+q),x=l.plotX+z,y=t,k=Math.min(q,m),h,D=Math.max(q,m)-k;u&&Math.abs(D)<u&&(D=u,h=!n.reversed&&!l.negative||n.reversed&&l.negative,l.y===c&&a.dataMax<=c&&n.min<c&&(h=!h),k=Math.abs(k-e)>u?m-u:e-(h?u:0));f(l.options.pointWidth)&&(r=y=Math.ceil(l.options.pointWidth),
              x-=Math.round((r-w)/2));l.barX=x;l.pointWidth=r;l.tooltipPos=d.inverted?[n.len+n.pos-d.plotLeft-q,a.xAxis.len-x-y/2,D]:[x+y/2,q+n.pos-d.plotTop,D];l.shapeType="rect";l.shapeArgs=a.crispCol.apply(a,l.isNull?[x,e,y,0]:[x,k,y,D])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(a,d){var f=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||"borderColor";var c=
              n["stroke-width"]||"borderWidth",e=a&&a.color||this.color,u=a&&a[l]||f[l]||this.color||e,q=a&&a[c]||f[c]||this[c]||0,n=f.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);d&&(a=r(f.states[d],a.options.states&&a.options.states[d]||{}),d=a.brightness,e=a.color||void 0!==d&&H(e).brighten(a.brightness).get()||e,u=a[l]||u,q=a[c]||q,n=a.dashStyle||n);l={fill:e,stroke:u,"stroke-width":q};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,f=this.chart,m=
              a.options,l=f.renderer,n=m.animationLimit||250,c;G(a.points,function(e){var u=e.graphic,q=u&&f.pointCount<n?"animate":"attr";if(d(e.plotY)&&null!==e.y){c=e.shapeArgs;if(u)u[q](r(c));else e.graphic=u=l[e.shapeType](c).add(e.group||a.group);m.borderRadius&&u.attr({r:m.borderRadius});u[q](a.pointAttribs(e,e.selected&&"select")).shadow(m.shadow,null,m.stacking&&!m.borderRadius);u.addClass(e.getClassName(),!0)}else u&&(e.graphic=u.destroy())})},animate:function(a){var d=this,f=this.yAxis,l=d.options,n=
              this.chart.inverted,c={},e=n?"translateX":"translateY",u;y&&(a?(c.scaleY=.001,a=Math.min(f.pos+f.len,Math.max(f.pos,f.toPixels(l.threshold))),n?c.translateX=a-f.len:c.translateY=a,d.group.attr(c)):(u=d.group.attr(e),d.group.animate({scaleY:1},t(C(d.options.animation),{step:function(a,b){c[e]=u+b.pos*(f.pos-u);d.group.attr(c)}})),d.animate=null))},remove:function(){var a=this,d=a.chart;d.hasRendered&&G(d.series,function(d){d.type===a.type&&(d.isDirty=!0)});q.prototype.remove.apply(a,arguments)}})})(K);
      (function(a){a=a.seriesType;a("bar","column",null,{inverted:!0})})(K);(function(a){var C=a.Series;a=a.seriesType;a("scatter","line",{lineWidth:0,findNearestPointBy:"xy",marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 0.85em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,
          drawGraph:function(){this.options.lineWidth&&C.prototype.drawGraph.call(this)}})})(K);(function(a){var C=a.deg2rad,H=a.isNumber,G=a.pick,t=a.relativeLength;a.CenteredSeriesMixin={getCenter:function(){var a=this.options,d=this.chart,r=2*(a.slicedOffset||0),v=d.plotWidth-2*r,d=d.plotHeight-2*r,q=a.center,q=[G(q[0],"50%"),G(q[1],"50%"),a.size||"100%",a.innerSize||0],x=Math.min(v,d),y,b;for(y=0;4>y;++y)b=q[y],a=2>y||2===y&&/%$/.test(b),q[y]=t(b,[v,d,x,q[2]][y])+(a?r:0);q[3]>q[2]&&(q[3]=q[2]);return q},
          getStartAndEndRadians:function(a,d){a=H(a)?a:0;d=H(d)&&d>a&&360>d-a?d:a+360;return{start:C*(a+-90),end:C*(d+-90)}}}})(K);(function(a){var C=a.addEvent,H=a.CenteredSeriesMixin,G=a.defined,t=a.each,f=a.extend,d=H.getStartAndEndRadians,r=a.inArray,v=a.noop,q=a.pick,x=a.Point,y=a.Series,b=a.seriesType,g=a.setAnimation;b("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},borderColor:"#ffffff",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,d=b.points,c=b.startAngleRad;a||(t(d,function(a){var d=a.graphic,f=a.shapeArgs;d&&(d.attr({r:a.startR||
                  b.center[3]/2,start:c,end:c}),d.animate({r:f.r,start:f.start,end:f.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,d=this.points,c=d.length,e,f=this.options.ignoreHiddenPoint;for(a=0;a<c;a++)e=d[a],b+=f&&!e.visible?0:e.isNull?0:e.y;this.total=b;for(a=0;a<c;a++)e=d[a],e.percentage=0<b&&(e.visible||!f)?e.y/b*100:0,e.total=b},generatePoints:function(){y.prototype.generatePoints.call(this);this.updateTotals()},translate:function(a){this.generatePoints();var b=0,f=this.options,
              c=f.slicedOffset,e=c+(f.borderWidth||0),g,r,w,t=d(f.startAngle,f.endAngle),z=this.startAngleRad=t.start,t=(this.endAngleRad=t.end)-z,v=this.points,p,x=f.dataLabels.distance,f=f.ignoreHiddenPoint,A,y=v.length,I;a||(this.center=a=this.getCenter());this.getX=function(b,c,e){w=Math.asin(Math.min((b-a[1])/(a[2]/2+e.labelDistance),1));return a[0]+(c?-1:1)*Math.cos(w)*(a[2]/2+e.labelDistance)};for(A=0;A<y;A++){I=v[A];I.labelDistance=q(I.options.dataLabels&&I.options.dataLabels.distance,x);this.maxLabelDistance=
              Math.max(this.maxLabelDistance||0,I.labelDistance);g=z+b*t;if(!f||I.visible)b+=I.percentage/100;r=z+b*t;I.shapeType="arc";I.shapeArgs={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*g)/1E3,end:Math.round(1E3*r)/1E3};w=(r+g)/2;w>1.5*Math.PI?w-=2*Math.PI:w<-Math.PI/2&&(w+=2*Math.PI);I.slicedTranslation={translateX:Math.round(Math.cos(w)*c),translateY:Math.round(Math.sin(w)*c)};r=Math.cos(w)*a[2]/2;p=Math.sin(w)*a[2]/2;I.tooltipPos=[a[0]+.7*r,a[1]+.7*p];I.half=w<-Math.PI/2||w>Math.PI/2?1:
              0;I.angle=w;g=Math.min(e,I.labelDistance/5);I.labelPos=[a[0]+r+Math.cos(w)*I.labelDistance,a[1]+p+Math.sin(w)*I.labelDistance,a[0]+r+Math.cos(w)*g,a[1]+p+Math.sin(w)*g,a[0]+r,a[1]+p,0>I.labelDistance?"center":I.half?"right":"left",w]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,d,c,e,g,q=a.options.shadow;q&&!a.shadowGroup&&(a.shadowGroup=b.g("shadow").add(a.group));t(a.points,function(w){c=w.graphic;if(w.isNull)c&&(w.graphic=c.destroy());else{g=w.shapeArgs;d=w.getTranslate();
              var r=w.shadowGroup;q&&!r&&(r=w.shadowGroup=b.g("shadow").add(a.shadowGroup));r&&r.attr(d);e=a.pointAttribs(w,w.selected&&"select");c?c.setRadialReference(a.center).attr(e).animate(f(g,d)):(w.graphic=c=b[w.shapeType](g).setRadialReference(a.center).attr(d).add(a.group),c.attr(e).attr({"stroke-linejoin":"round"}).shadow(q,r));c.attr({visibility:w.visible?"inherit":"hidden"});c.addClass(w.getClassName())}})},searchPoint:v,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-
              a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:H.getCenter,getSymbol:v},{init:function(){x.prototype.init.apply(this,arguments);var a=this,b;a.name=q(a.name,"Slice");b=function(b){a.slice("select"===b.type)};C(a,"select",b);C(a,"unselect",b);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,b){var d=this,c=d.series,e=c.chart,f=c.options.ignoreHiddenPoint;b=q(b,f);a!==d.visible&&(d.visible=d.options.visible=a=void 0===a?!d.visible:
              a,c.options.data[r(d,c.data)]=d.options,t(["graphic","dataLabel","connector","shadowGroup"],function(b){if(d[b])d[b][a?"show":"hide"](!0)}),d.legendItem&&e.legend.colorizeItem(d,a),a||"hover"!==d.state||d.setState(""),f&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,d){var c=this.series;g(d,c.chart);q(b,!0);this.sliced=this.options.sliced=G(a)?a:!this.sliced;c.options.data[r(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},
          getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(K);(function(a){var C=a.addEvent,H=a.arrayMax,G=a.defined,t=a.each,f=a.extend,d=a.format,r=a.map,v=a.merge,q=a.noop,x=a.pick,y=a.relativeLength,b=a.Series,g=a.seriesTypes,m=a.some,l=a.stableSort,n=a.isArray,c=a.splat;
          a.distribute=function(b,c,d){function f(a,b){return a.target-b.target}var g,n=!0,q=b,p=[],v;v=0;var A=q.reducedLen||c;for(g=b.length;g--;)v+=b[g].size;if(v>A){l(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(v=g=0;v<=A;)v+=b[g].size,g++;p=b.splice(g-1,b.length)}l(b,f);for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:x(a.align,.5)}});n;){for(g=b.length;g--;)n=b[g],v=(Math.min.apply(0,n.targets)+Math.max.apply(0,n.targets))/2,n.pos=Math.min(Math.max(0,v-n.size*n.align),c-n.size);
              g=b.length;for(n=!1;g--;)0<g&&b[g-1].pos+b[g-1].size>b[g].pos&&(b[g-1].size+=b[g].size,b[g-1].targets=b[g-1].targets.concat(b[g].targets),b[g-1].align=.5,b[g-1].pos+b[g-1].size>c&&(b[g-1].pos=c-b[g-1].size),b.splice(g,1),n=!0)}q.push.apply(q,p);g=0;m(b,function(b){var e=0;if(m(b.targets,function(){q[g].pos=b.pos+e;if(Math.abs(q[g].pos-q[g].target)>d)return t(q.slice(0,g+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[g].size;g++}))return!0});
              l(q,f)};b.prototype.drawDataLabels=function(){function b(a,c){var e=c.filter;return e?(c=e.operator,a=a[e.property],e=e.value,">"===c&&a>e||"<"===c&&a<e||">="===c&&a>=e||"<="===c&&a<=e||"=="===c&&a==e||"==="===c&&a===e?!0:!1):!0}function f(a,b){var c=[],e;if(n(a)&&!n(b))c=r(a,function(a){return v(a,b)});else if(n(b)&&!n(a))c=r(b,function(b){return v(a,b)});else if(n(a)||n(b))for(e=Math.max(a.length,b.length);e--;)c[e]=v(a[e],b[e]);else c=v(a,b);return c}var g=this,l=g.chart,m=g.options,q=m.dataLabels,
              B=g.points,p,y=g.hasRendered||0,A,H=x(q.defer,!!m.animation),I=l.renderer,q=f(f(l.options.plotOptions&&l.options.plotOptions.series&&l.options.plotOptions.series.dataLabels,l.options.plotOptions&&l.options.plotOptions[g.type]&&l.options.plotOptions[g.type].dataLabels),q);if(n(q)||q.enabled||g._hasPointLabels)A=g.plotGroup("dataLabelsGroup","data-labels",H&&!y?"hidden":"visible",q.zIndex||6),H&&(A.attr({opacity:+y}),y||C(g,"afterAnimate",function(){g.visible&&A.show(!0);A[m.animation?"animate":"attr"]({opacity:1},
              {duration:200})})),t(B,function(k){p=c(f(q,k.dlOptions||k.options&&k.options.dataLabels));t(p,function(c,f){var n=c.enabled&&!k.isNull&&b(k,c),p,u,q,r,t=k.dataLabels?k.dataLabels[f]:k.dataLabel,v=k.connectors?k.connectors[f]:k.connector,z=!t;n&&(p=k.getLabelConfig(),u=c[k.formatPrefix+"Format"]||c.format,p=G(u)?d(u,p,l.time):(c[k.formatPrefix+"Formatter"]||c.formatter).call(p,c),u=c.style,q=c.rotation,u.color=x(c.color,u.color,g.color,"#000000"),"contrast"===u.color&&(k.contrastColor=I.getContrast(k.color||
              g.color),u.color=c.inside||0>x(c.distance,k.labelDistance)||m.stacking?k.contrastColor:"#000000"),m.cursor&&(u.cursor=m.cursor),r={fill:c.backgroundColor,stroke:c.borderColor,"stroke-width":c.borderWidth,r:c.borderRadius||0,rotation:q,padding:c.padding,zIndex:1},a.objectEach(r,function(a,b){void 0===a&&delete r[b]}));!t||n&&G(p)?n&&G(p)&&(t?r.text=p:(k.dataLabels=k.dataLabels||[],t=k.dataLabels[f]=q?I.text(p,0,-9999).addClass("highcharts-data-label"):I.label(p,0,-9999,c.shape,null,null,c.useHTML,
              null,"data-label"),f||(k.dataLabel=t),t.addClass(" highcharts-data-label-color-"+k.colorIndex+" "+(c.className||"")+(c.useHTML?" highcharts-tracker":""))),t.options=c,t.attr(r),t.css(u).shadow(c.shadow),t.added||t.add(A),g.alignDataLabel(k,t,c,null,z)):(k.dataLabel=k.dataLabel.destroy(),k.dataLabels&&(1===k.dataLabels.length?delete k.dataLabels:delete k.dataLabels[f]),f||delete k.dataLabel,v&&(k.connector=k.connector.destroy(),k.connectors&&(1===k.connectors.length?delete k.connectors:delete k.connectors[f])))})});
              a.fireEvent(this,"afterDrawDataLabels")};b.prototype.alignDataLabel=function(a,b,c,d,g){var l=this.chart,n=l.inverted,m=x(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),q=x(a.plotY,-9999),r=b.getBBox(),t,v=c.rotation,k=c.align,h=this.visible&&(a.series.forceDL||l.isInsidePlot(m,Math.round(q),n)||d&&l.isInsidePlot(m,n?d.x+1:d.y+d.height-1,n)),y="justify"===x(c.overflow,"justify");if(h&&(t=c.style.fontSize,t=l.renderer.fontMetrics(t,b).b,d=f({x:n?this.yAxis.len-q:m,y:Math.round(n?this.xAxis.len-m:q),width:0,
              height:0},d),f(c,{width:r.width,height:r.height}),v?(y=!1,m=l.renderer.rotCorr(t,v),m={x:d.x+c.x+d.width/2+m.x,y:d.y+c.y+{top:0,middle:.5,bottom:1}[c.verticalAlign]*d.height},b[g?"attr":"animate"](m).attr({align:k}),q=(v+720)%360,q=180<q&&360>q,"left"===k?m.y-=q?r.height:0:"center"===k?(m.x-=r.width/2,m.y-=r.height/2):"right"===k&&(m.x-=r.width,m.y-=q?0:r.height),b.placed=!0,b.alignAttr=m):(b.align(c,null,d),m=b.alignAttr),y&&0<=d.height?a.isLabelJustified=this.justifyDataLabel(b,c,m,r,d,g):x(c.crop,
              !0)&&(h=l.isInsidePlot(m.x,m.y)&&l.isInsidePlot(m.x+r.width,m.y+r.height)),c.shape&&!v))b[g?"attr":"animate"]({anchorX:n?l.plotWidth-a.plotY:a.plotX,anchorY:n?l.plotHeight-a.plotX:a.plotY});h||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,c,d,f,g){var l=this.chart,m=b.align,n=b.verticalAlign,q,r,t=a.box?0:a.padding||0;q=c.x+t;0>q&&("right"===m?b.align="left":b.x=-q,r=!0);q=c.x+d.width-t;q>l.plotWidth&&("left"===m?b.align="right":b.x=l.plotWidth-q,r=!0);q=c.y+t;0>q&&("bottom"===
          n?b.verticalAlign="top":b.y=-q,r=!0);q=c.y+d.height-t;q>l.plotHeight&&("top"===n?b.verticalAlign="bottom":b.y=l.plotHeight-q,r=!0);r&&(a.placed=!g,a.align(b,null,f));return r};g.pie&&(g.pie.prototype.drawDataLabels=function(){var c=this,d=c.data,f,g=c.chart,l=c.options.dataLabels,m=x(l.connectorPadding,10),n=x(l.connectorWidth,1),p=g.plotWidth,q=g.plotHeight,r=Math.round(g.chartWidth/3),v,y=c.center,k=y[2]/2,h=y[1],C,N,F,K,R=[[],[]],L,S,Q,U,T=[0,0,0,0];c.visible&&(l.enabled||c._hasPointLabels)&&(t(d,
              function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(c),t(d,function(a){a.dataLabel&&(a.visible?(R[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>r&&(a.dataLabel.css({width:.7*r}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),
          a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),t(R,function(b,d){var n,u,r=b.length,v=[],B;if(r)for(c.sortByAngle(b,d-.5),0<c.maxLabelDistance&&(n=Math.max(0,h-k-c.maxLabelDistance),u=Math.min(h+k+c.maxLabelDistance,g.plotHeight),t(b,function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,h-k-a.labelDistance),a.bottom=Math.min(h+k+a.labelDistance,g.plotHeight),B=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPos[1]-a.top+B/2,size:B,rank:a.y},v.push(a.distributeBox))}),
              n=u+B-n,a.distribute(v,n,n/5)),U=0;U<r;U++)f=b[U],F=f.labelPos,C=f.dataLabel,Q=!1===f.visible?"hidden":"inherit",S=n=F[1],v&&G(f.distributeBox)&&(void 0===f.distributeBox.pos?Q="hidden":(K=f.distributeBox.size,S=f.top+f.distributeBox.pos)),delete f.positionIndex,L=l.justify?y[0]+(d?-1:1)*(k+f.labelDistance):c.getX(S<f.top+2||S>f.bottom-2?n:S,d,f),C._attr={visibility:Q,align:F[6]},C._pos={x:L+l.x+({left:m,right:-m}[F[6]]||0),y:S+l.y-10},F.x=L,F.y=S,x(l.crop,!0)&&(N=C.getBBox().width,n=null,L-N<m&&
          1===d?(n=Math.round(N-L+m),T[3]=Math.max(n,T[3])):L+N>p-m&&0===d&&(n=Math.round(L+N-p+m),T[1]=Math.max(n,T[1])),0>S-K/2?T[0]=Math.max(Math.round(-S+K/2),T[0]):S+K/2>q&&(T[2]=Math.max(Math.round(S+K/2-q),T[2])),C.sideOverflow=n)}),0===H(T)||this.verifyDataLabelOverflow(T))&&(this.placeDataLabels(),n&&t(this.points,function(a){var b;v=a.connector;if((C=a.dataLabel)&&C._pos&&a.visible&&0<a.labelDistance){Q=C._attr.visibility;if(b=!v)a.connector=v=g.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+
              a.colorIndex+(a.className?" "+a.className:"")).add(c.dataLabelsGroup),v.attr({"stroke-width":n,stroke:l.connectorColor||a.color||"#666666"});v[b?"attr":"animate"]({d:c.connectorPath(a.labelPos)});v.attr("visibility",Q)}else v&&(a.connector=v.destroy())}))},g.pie.prototype.connectorPath=function(a){var b=a.x,c=a.y;return x(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]]},g.pie.prototype.placeDataLabels=function(){t(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)},g.pie.prototype.alignDataLabel=q,g.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,
              c=this.options,d=c.center,f=c.minSize||80,g,l=null!==c.size;l||(null!==d[0]?g=Math.max(b[2]-Math.max(a[1],a[3]),f):(g=Math.max(b[2]-a[1]-a[3],f),b[0]+=(a[3]-a[1])/2),null!==d[1]?g=Math.max(Math.min(g,b[2]-Math.max(a[0],a[2])),f):(g=Math.max(Math.min(g,b[2]-a[0]-a[2]),f),b[1]+=(a[0]-a[2])/2),g<b[2]?(b[2]=g,b[3]=Math.min(y(c.innerSize||0,g),g),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):l=!0);return l});g.column&&(g.column.prototype.alignDataLabel=function(a,c,d,f,g){var l=this.chart.inverted,
              n=a.series,m=a.dlBox||a.shapeArgs,q=x(a.below,a.plotY>x(this.translatedThreshold,n.yAxis.len)),r=x(d.inside,!!this.options.stacking);m&&(f=v(m),0>f.y&&(f.height+=f.y,f.y=0),m=f.y+f.height-n.yAxis.len,0<m&&(f.height-=m),l&&(f={x:n.yAxis.len-f.y-f.height,y:n.xAxis.len-f.x-f.width,width:f.height,height:f.width}),r||(l?(f.x+=q?0:f.width,f.width=0):(f.y+=q?f.height:0,f.height=0)));d.align=x(d.align,!l||r?"center":q?"right":"left");d.verticalAlign=x(d.verticalAlign,l||r?"middle":q?"top":"bottom");b.prototype.alignDataLabel.call(this,
              a,c,d,f,g);a.isLabelJustified&&a.contrastColor&&c.css({color:a.contrastColor})})})(K);(function(a){var C=a.Chart,H=a.each,G=a.isArray,t=a.objectEach,f=a.pick;a=a.addEvent;a(C,"render",function(){var a=[];H(this.labelCollectors||[],function(f){a=a.concat(f())});H(this.yAxis||[],function(f){f.options.stackLabels&&!f.options.stackLabels.allowOverlap&&t(f.stacks,function(f){t(f,function(f){a.push(f.label)})})});H(this.series||[],function(r){var t=r.options.dataLabels;r.visible&&(!1!==t.enabled||r._hasPointLabels)&&
      H(r.points,function(q){if(q.visible){var r=G(q.dataLabels)?q.dataLabels:q.dataLabel?[q.dataLabel]:[];H(r,function(r){var b=r.options;r.labelrank=f(b.labelrank,q.labelrank,q.shapeArgs&&q.shapeArgs.height);b.allowOverlap||a.push(r)})}})});this.hideOverlappingLabels(a)});C.prototype.hideOverlappingLabels=function(a){var f=a.length,t=this.renderer,q,x,y,b,g,m,l=function(a,b,d,f,g,l,m,q){return!(g>a+d||g+m<a||l>b+f||l+q<b)};y=function(a){var b,d,f,g=a.box?0:a.padding||0;f=0;if(a&&(!a.alignAttr||a.placed))return b=
          a.alignAttr||{x:a.attr("x"),y:a.attr("y")},d=a.parentGroup,a.width||(f=a.getBBox(),a.width=f.width,a.height=f.height,f=t.fontMetrics(null,a.element).h),{x:b.x+(d.translateX||0)+g,y:b.y+(d.translateY||0)+g-f,width:a.width-2*g,height:a.height-2*g}};for(x=0;x<f;x++)if(q=a[x])q.oldOpacity=q.opacity,q.newOpacity=1,q.absoluteBox=y(q);a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(x=0;x<f;x++)for(m=(y=a[x])&&y.absoluteBox,q=x+1;q<f;++q)if(g=(b=a[q])&&b.absoluteBox,m&&g&&y!==b&&0!==y.newOpacity&&
      0!==b.newOpacity&&(g=l(m.x,m.y,m.width,m.height,g.x,g.y,g.width,g.height)))(y.labelrank<b.labelrank?y:b).newOpacity=0;H(a,function(a){var b,d;a&&(d=a.newOpacity,a.oldOpacity!==d&&(a.alignAttr&&a.placed?(d?a.show(!0):b=function(){a.hide()},a.alignAttr.opacity=d,a[a.isOld?"animate":"attr"](a.alignAttr,null,b)):a.attr({opacity:d})),a.isOld=!0)})}})(K);(function(a){var C=a.addEvent,H=a.Chart,G=a.createElement,t=a.css,f=a.defaultOptions,d=a.defaultPlotOptions,r=a.each,v=a.extend,q=a.fireEvent,x=a.hasTouch,
          y=a.inArray,b=a.isObject,g=a.Legend,m=a.merge,l=a.pick,n=a.Point,c=a.Series,e=a.seriesTypes,u=a.svg,D;D=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))};r(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||(r(a.trackerGroups,function(d){if(a[d]){a[d].addClass("highcharts-tracker").on("mouseover",
              c).on("mouseout",function(a){b.onTrackerMouseOut(a)});if(x)a[d].on("touchstart",c);a.options.cursor&&a[d].css(t).css({cursor:a.options.cursor})}}),a._hasTracking=!0);q(this,"afterDrawTracker")},drawTrackerGraph:function(){var a=this,b=a.options,c=b.trackByArea,d=[].concat(c?a.areaPath:a.graphPath),e=d.length,f=a.chart,g=f.pointer,l=f.renderer,m=f.options.tooltip.snap,k=a.tracker,h,n=function(){if(f.hoverSeries!==a)a.onMouseOver()},t="rgba(192,192,192,"+(u?1E-4:.002)+")";if(e&&!c)for(h=e+1;h--;)"M"===
          d[h]&&d.splice(h+1,0,d[h+1]-m,d[h+2],"L"),(h&&"M"===d[h]||h===e)&&d.splice(h,0,"L",d[h-2]+m,d[h-1]);k?k.attr({d:d}):a.graph&&(a.tracker=l.path(d).attr({"stroke-linejoin":"round",stroke:t,fill:c?t:"none","stroke-width":a.graph.strokeWidth()+(c?0:2*m),visibility:a.visible?"visible":"hidden",zIndex:2}).addClass(c?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),r([a.tracker,a.markerGroup],function(a){a.addClass("highcharts-tracker").on("mouseover",n).on("mouseout",function(a){g.onTrackerMouseOut(a)});
              b.cursor&&a.css({cursor:b.cursor});if(x)a.on("touchstart",n)}));q(this,"afterDrawTracker")}};e.column&&(e.column.prototype.drawTracker=D.drawTrackerPoint);e.pie&&(e.pie.prototype.drawTracker=D.drawTrackerPoint);e.scatter&&(e.scatter.prototype.drawTracker=D.drawTrackerPoint);f.legend.itemStyle.cursor="pointer";v(g.prototype,{setItemEvents:function(a,b,c){var d=this,e=d.chart.renderer.boxWrapper,f="highcharts-legend-"+(a instanceof n?"point":"series")+"-active";(c?b:a.legendGroup).on("mouseover",function(){a.setState("hover");
              e.addClass(f);b.css(d.options.itemHoverStyle)}).on("mouseout",function(){b.css(m(a.visible?d.itemStyle:d.itemHiddenStyle));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):q(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=G("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:a.selected,defaultChecked:a.selected},
              this.options.itemCheckboxStyle,this.chart.container);C(a.checkbox,"click",function(b){q(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}});v(H.prototype,{showResetZoom:function(){function a(){b.zoomOut()}var b=this,c=f.lang,d=b.options.chart.resetZoomButton,e=d.theme,g=e.states,l="chart"===d.relativeTo?null:"plotBox";q(this,"beforeShowResetZoom",null,function(){b.resetZoomButton=b.renderer.button(c.resetZoom,null,null,a,e,g&&g.hover).attr({align:d.position.align,
              title:c.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d.position,!1,l)})},zoomOut:function(){q(this,"selection",{resetSelection:!0},this.zoom)},zoom:function(a){var c,d=this.pointer,e=!1,f;!a||a.resetSelection?(r(this.axes,function(a){c=a.zoom()}),d.initiated=!1):r(a.xAxis.concat(a.yAxis),function(a){var b=a.axis;d[b.isXAxis?"zoomX":"zoomY"]&&(c=b.zoom(a.min,a.max),b.displayBtn&&(e=!0))});f=this.resetZoomButton;e&&!f?this.showResetZoom():!e&&b(f)&&(this.resetZoomButton=f.destroy());
              c&&this.redraw(l(this.options.chart.animation,a&&a.animation,100>this.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r("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],k=(b.pointRange||0)/2,h=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),m=b.toValue(g-f,!0)+k*h,h=b.toValue(g+b.len-f,!0)-k*h,n=h<m,g=n?h:m,m=n?m:h,h=Math.min(l.dataMin,k?l.min:
              b.toValue(b.toPixels(l.min)-b.minPixelPadding)),k=Math.max(l.dataMax,k?l.max:b.toValue(b.toPixels(l.max)+b.minPixelPadding)),n=h-g;0<n&&(m+=n,g=h);n=m-k;0<n&&(m=k,g-=n);b.series.length&&g!==l.min&&m!==l.max&&(b.setExtremes(g,m,!1,!1,{trigger:"pan"}),e=!0);c[d]=f});e&&c.redraw(!1);t(c.container,{cursor:"move"})}});v(n.prototype,{select:function(a,b){var c=this,d=c.series,e=d.chart;a=l(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=c.options.selected=a;d.options.data[y(c,
              d.data)]=c.options;c.setState(a&&"select");b||r(e.getSelectedPoints(),function(a){a.selected&&a!==c&&(a.selected=a.options.selected=!1,d.options.data[y(a,d.data)]=a.options,a.setState(""),a.firePointEvent("unselect"))})})},onMouseOver:function(a){var b=this.series.chart,c=b.pointer;a=a?c.normalize(a):c.getChartCoordinatesFromPoint(this,b.inverted);c.runPointActions(a,this)},onMouseOut:function(){var a=this.series.chart;this.firePointEvent("mouseOut");r(a.hoverPoints||[],function(a){a.setState()});
              a.hoverPoints=a.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var b=this,c=m(b.series.options.point,b.options).events;b.events=c;a.objectEach(c,function(a,c){C(b,c,a)});this.hasImportedEvents=!0}},setState:function(a,b){var c=Math.floor(this.plotX),e=this.plotY,f=this.series,g=f.options.states[a||"normal"]||{},m=d[f.type].marker&&f.options.marker,n=m&&!1===m.enabled,r=m&&m.states&&m.states[a||"normal"]||{},k=!1===r.enabled,h=f.stateMarkerGraphic,t=this.marker||{},u=f.chart,
              x=f.halo,y,C=m&&f.markerAttribs;a=a||"";if(!(a===this.state&&!b||this.selected&&"select"!==a||!1===g.enabled||a&&(k||n&&!1===r.enabled)||a&&t.states&&t.states[a]&&!1===t.states[a].enabled)){C&&(y=f.markerAttribs(this,a));if(this.graphic)this.state&&this.graphic.removeClass("highcharts-point-"+this.state),a&&this.graphic.addClass("highcharts-point-"+a),this.graphic.animate(f.pointAttribs(this,a),l(u.options.chart.animation,g.animation)),y&&this.graphic.animate(y,l(u.options.chart.animation,r.animation,
              m.animation)),h&&h.hide();else{if(a&&r){m=t.symbol||f.symbol;h&&h.currentSymbol!==m&&(h=h.destroy());if(h)h[b?"animate":"attr"]({x:y.x,y:y.y});else m&&(f.stateMarkerGraphic=h=u.renderer.symbol(m,y.x,y.y,y.width,y.height).add(f.markerGroup),h.currentSymbol=m);h&&h.attr(f.pointAttribs(this,a))}h&&(h[a&&u.isInsidePlot(c,e,u.inverted)?"show":"hide"](),h.element.point=this)}(c=g.halo)&&c.size?(x||(f.halo=x=u.renderer.path().add((this.graphic||h).parentGroup)),x.show()[b?"animate":"attr"]({d:this.haloPath(c.size)}),
              x.attr({"class":"highcharts-halo highcharts-color-"+l(this.colorIndex,f.colorIndex)+(this.className?" "+this.className:""),zIndex:-1}),x.point=this,x.attr(v({fill:this.color||f.color,"fill-opacity":c.opacity},c.attributes))):x&&x.point&&x.point.haloPath&&x.animate({d:x.point.haloPath(0)},null,x.hide);this.state=a;q(this,"afterSetState")}},haloPath:function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-a,this.plotY-a,2*a,2*a)}});v(c.prototype,{onMouseOver:function(){var a=
              this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&q(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&&q(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();this.setState()},setState:function(a){var b=this,c=b.options,d=b.graph,e=c.states,f=c.lineWidth,c=0;a=a||"";if(b.state!==
              a&&(r([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,!e[a]||!1!==e[a].enabled)&&(a&&(f=e[a].lineWidth||f+(e[a].lineWidthPlus||0)),d&&!d.dashstyle))for(f={"stroke-width":f},d.animate(f,l(e[a||"normal"]&&e[a||"normal"].animation,b.chart.options.chart.animation));b["zone-graph-"+c];)b["zone-graph-"+c].attr(f),c+=1},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";r(["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&&r(d.series,function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});r(c.linkedSeries,function(b){b.setVisible(a,!1)});g&&(d.isDirtyBox=!0);q(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);q(this,a?"select":"unselect")},drawTracker:D.drawTrackerGraph})})(K);(function(a){var C=a.Chart,H=a.each,G=a.inArray,t=a.isArray,f=a.isObject,d=a.pick,r=a.splat;C.prototype.setResponsive=function(d){var f=this.options.responsive,r=[],t=this.currentResponsive;f&&f.rules&&H(f.rules,function(b){void 0===b._id&&(b._id=a.uniqueKey());this.matchResponsiveRule(b,r,
          d)},this);var b=a.merge.apply(0,a.map(r,function(b){return a.find(f.rules,function(a){return a._id===b}).chartOptions})),r=r.toString()||void 0;r!==(t&&t.ruleIds)&&(t&&this.update(t.undoOptions,d),r?(this.currentResponsive={ruleIds:r,mergedOptions:b,undoOptions:this.currentOptions(b)},this.update(b,d)):this.currentResponsive=void 0)};C.prototype.matchResponsiveRule=function(a,f){var r=a.condition;(r.callback||function(){return this.chartWidth<=d(r.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=d(r.maxHeight,
          Number.MAX_VALUE)&&this.chartWidth>=d(r.minWidth,0)&&this.chartHeight>=d(r.minHeight,0)}).call(this)&&f.push(a._id)};C.prototype.currentOptions=function(d){function q(d,b,g,m){var l;a.objectEach(d,function(a,c){if(!m&&-1<G(c,["series","xAxis","yAxis"]))for(a=r(a),g[c]=[],l=0;l<a.length;l++)b[c][l]&&(g[c][l]={},q(a[l],b[c][l],g[c][l],m+1));else f(a)?(g[c]=t(a)?[]:{},q(a,b[c]||{},g[c],m+1)):g[c]=b[c]||null})}var x={};q(d,this.options,x,0);return x}})(K);return K});