/* Highstock JS v9.1.1 (2021-06-03) (c) 2009-2021 Torstein Honsi License: www.highcharts.com/license */ 'use strict';(function(V,P){"object"===typeof module&&module.exports?(P["default"]=P,module.exports=V.document?P(V):P):"function"===typeof define&&define.amd?define("highcharts/highstock",function(){return P(V)}):(V.Highcharts&&V.Highcharts.error(16,!0),V.Highcharts=P(V))})("undefined"!==typeof window?window:this,function(V){function P(c,v,A,C){c.hasOwnProperty(v)||(c[v]=C.apply(null,A))}var c={};P(c,"Core/Globals.js",[],function(){var c="undefined"!==typeof V?V:"undefined"!==typeof window?window: {},v;(function(q){q.SVG_NS="http://www.w3.org/2000/svg";q.product="Highcharts";q.version="9.1.1";q.win=c;q.doc=q.win.document;q.svg=q.doc&&q.doc.createElementNS&&!!q.doc.createElementNS(q.SVG_NS,"svg").createSVGRect;q.userAgent=q.win.navigator&&q.win.navigator.userAgent||"";q.isChrome=-1!==q.userAgent.indexOf("Chrome");q.isFirefox=-1!==q.userAgent.indexOf("Firefox");q.isMS=/(edge|msie|trident)/i.test(q.userAgent)&&!q.win.opera;q.isSafari=!q.isChrome&&-1!==q.userAgent.indexOf("Safari");q.isTouchDevice= /(Mobile|Android|Windows Phone)/.test(q.userAgent);q.isWebKit=-1!==q.userAgent.indexOf("AppleWebKit");q.deg2rad=2*Math.PI/360;q.hasBidiBug=q.isFirefox&&4>parseInt(q.userAgent.split("Firefox/")[1],10);q.hasTouch=!!q.win.TouchEvent;q.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];q.noop=function(){};q.supportsPassiveEvents=function(){var c=!1;if(!q.isMS){var v=Object.defineProperty({},"passive",{get:function(){c=!0}});q.win.addEventListener&&q.win.removeEventListener&&(q.win.addEventListener("testPassive", q.noop,v),q.win.removeEventListener("testPassive",q.noop,v))}return c}();q.charts=[];q.dateFormats={};q.seriesTypes={};q.symbolSizes={}})(v||(v={}));return v});P(c,"Core/Utilities.js",[c["Core/Globals.js"]],function(q){function c(a,l,f,e){var h=l?"Highcharts error":"Highcharts warning";32===a&&(a=h+": Deprecated member");var G=d(a),O=G?h+" #"+a+": www.highcharts.com/errors/"+a+"/":a.toString();if("undefined"!==typeof e){var r="";G&&(O+="?");M(e,function(y,Q){r+="\n - "+Q+": "+y;G&&(O+=encodeURI(Q)+ "="+encodeURI(y))});O+=r}J(q,"displayError",{chart:f,code:a,message:O,params:e},function(){if(l)throw Error(O);t.console&&-1===c.messages.indexOf(O)&&console.warn(O)});c.messages.push(O)}function A(a,l){var f={};M(a,function(G,h){if(H(a[h],!0)&&!a.nodeType&&l[h])G=A(a[h],l[h]),Object.keys(G).length&&(f[h]=G);else if(H(a[h])||a[h]!==l[h])f[h]=a[h]});return f}function C(a,l){return parseInt(a,l||10)}function z(a){return"string"===typeof a}function D(a){a=Object.prototype.toString.call(a);return"[object Array]"=== a||"[object Array Iterator]"===a}function H(a,l){return!!a&&"object"===typeof a&&(!l||!D(a))}function K(a){return H(a)&&"number"===typeof a.nodeType}function p(a){var l=a&&a.constructor;return!(!H(a,!0)||K(a)||!l||!l.name||"Object"===l.name)}function d(a){return"number"===typeof a&&!isNaN(a)&&Infinity>a&&-Infinity=l-1&&(l=Math.floor(f)),Math.max(0,l-(e(a,"padding-left",!0)||0)-(e(a,"padding-right",!0)||0));if("height"===l)return Math.max(0,Math.min(a.offsetHeight,a.scrollHeight)-(e(a,"padding-top",!0)||0)-(e(a,"padding-bottom",!0)||0));t.getComputedStyle||c(27,!0);if(a=t.getComputedStyle(a,void 0)){var h= a.getPropertyValue(l);L(f,"opacity"!==l)&&(h=C(h))}return h}function M(a,l,f){for(var e in a)Object.hasOwnProperty.call(a,e)&&l.call(f||a[e],a[e],e,a)}function N(a,l,f){function e(f,y){var Q=a.removeEventListener||q.removeEventListenerPolyfill;Q&&Q.call(a,f,y,!1)}function h(f){var y;if(a.nodeName){if(l){var Q={};Q[l]=!0}else Q=f;M(Q,function(a,Q){if(f[Q])for(y=f[Q].length;y--;)e(Q,f[Q][y].fn)})}}var r="function"===typeof a&&a.prototype||a;if(Object.hasOwnProperty.call(r,"hcEvents")){var O=r.hcEvents; l?(r=O[l]||[],f?(O[l]=r.filter(function(a){return f!==a.fn}),e(l,f)):(h(O),O[l]=[])):(h(O),delete r.hcEvents)}}function J(a,l,f,r){f=f||{};if(e.createEvent&&(a.dispatchEvent||a.fireEvent&&a!==q)){var h=e.createEvent("Events");h.initEvent(l,!0,!0);f=g(h,f);a.dispatchEvent?a.dispatchEvent(f):a.fireEvent(l,f)}else if(a.hcEvents){f.target||g(f,{preventDefault:function(){f.defaultPrevented=!0},target:a,type:l});h=[];for(var u=a,O=!1;u.hcEvents;)Object.hasOwnProperty.call(u,"hcEvents")&&u.hcEvents[l]&& (h.length&&(O=!0),h.unshift.apply(h,u.hcEvents[l])),u=Object.getPrototypeOf(u);O&&h.sort(function(a,y){return a.order-y.order});h.forEach(function(l){!1===l.fn.call(a,f)&&f.preventDefault()})}r&&!f.defaultPrevented&&r.call(a,f)}var w=q.charts,e=q.doc,t=q.win;"";(c||(c={})).messages=[];var a;Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};var r=Array.prototype.find?function(a,l){return a.find(l)}:function(a,l){var f,e=a.length;for(f=0;ff&&(f=a[l]);return f},arrayMin:function(a){for(var l=a.length,f=a[0];l--;)a[l]l?a=f&&(l=[1/f])));for(e=0;e=a||!h&&O<=(l[e]+ (l[e+1]||l[e]))/2);e++);return r=B(r*f,-Math.round(Math.log(.001)/Math.LN10))},objectEach:M,offset:function(a){var l=e.documentElement;a=a.parentElement||a.parentNode?a.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:a.top+(t.pageYOffset||l.scrollTop)-(l.clientTop||0),left:a.left+(t.pageXOffset||l.scrollLeft)-(l.clientLeft||0),width:a.width,height:a.height}},pad:function(a,l,f){return Array((l||2)+1-String(a).replace("-","").length).join(f||"0")+a},pick:L,pInt:C,relativeLength:function(a, l,f){return/%$/.test(a)?l*parseFloat(a)/100+(f||0):parseFloat(a)},removeEvent:N,splat:function(a){return D(a)?a:[a]},stableSort:function(a,l){var f=a.length,e,h;for(h=0;h>16,(q&65280)>>8,q&255,1]:4===d&&(K=[(q&3840)>>4|(q&3840)>>8,(q&240)>>4|q&240,(q&15)<<4|q&15,1])}if(!K)for(p=this.parsers.length;p--&&!K;){var m=this.parsers[p];(d=m.regex.exec(q))&&(K=m.parse(d))}}this.rgba=K||[]};c.prototype.get=function(q){var c=this.input,p=this.rgba;if("undefined"!==typeof this.stops){var d=C(c);d.stops=[].concat(d.stops);this.stops.forEach(function(m,b){d.stops[b]=[d.stops[b][0],m.get(q)]})}else d= p&&v(p[0])?"rgb"===q||!q&&1===p[3]?"rgb("+p[0]+","+p[1]+","+p[2]+")":"a"===q?p[3]:"rgba("+p.join(",")+")":c;return d};c.prototype.brighten=function(q){var c,p=this.rgba;if(this.stops)this.stops.forEach(function(d){d.brighten(q)});else if(v(q)&&0!==q)for(c=0;3>c;c++)p[c]+=z(255*q),0>p[c]&&(p[c]=0),255w?"AM":"PM",P:12>w?"am":"pm",S:d(B.getSeconds()),L:d(Math.floor(k%1E3),3)},q.dateFormats);p(B, function(a,f){for(;-1!==b.indexOf("%"+f);)b=b.replace("%"+f,"function"===typeof a?a.call(g,k):a)});return n?b.substr(0,1).toUpperCase()+b.substr(1):b};n.prototype.resolveDTLFormat=function(n){return H(n,!0)?n:(n=b(n),{main:n[0],from:n[1],to:n[2]})};n.prototype.getTimeTicks=function(b,k,n,d){var B=this,w=[],e={},t=new B.Date(k),a=b.unitRange,r=b.count||1,E;d=m(d,1);if(C(k)){B.set("Milliseconds",t,a>=g.second?0:r*Math.floor(B.get("Milliseconds",t)/r));a>=g.second&&B.set("Seconds",t,a>=g.minute?0:r* Math.floor(B.get("Seconds",t)/r));a>=g.minute&&B.set("Minutes",t,a>=g.hour?0:r*Math.floor(B.get("Minutes",t)/r));a>=g.hour&&B.set("Hours",t,a>=g.day?0:r*Math.floor(B.get("Hours",t)/r));a>=g.day&&B.set("Date",t,a>=g.month?1:Math.max(1,r*Math.floor(B.get("Date",t)/r)));if(a>=g.month){B.set("Month",t,a>=g.year?0:r*Math.floor(B.get("Month",t)/r));var F=B.get("FullYear",t)}a>=g.year&&B.set("FullYear",t,F-F%r);a===g.week&&(F=B.get("Day",t),B.set("Date",t,B.get("Date",t)-F+d+(F4*g.month||B.getTimezoneOffset(k)!==B.getTimezoneOffset(n));k=t.getTime();for(t=1;kw.length&&w.forEach(function(a){0===a%18E5&&"000000000"===B.dateFormat("%H%M%S%L", a)&&(e[a]="day")})}w.info=D(b,{higherRanks:e,totalRange:a*r});return w};return n}();"";return c});P(c,"Core/DefaultOptions.js",[c["Core/Globals.js"],c["Core/Chart/ChartDefaults.js"],c["Core/Color/Color.js"],c["Core/Color/Palette.js"],c["Core/Time.js"],c["Core/Utilities.js"]],function(q,c,A,C,z,D){var v=q.isTouchDevice,K=q.svg;A=A.parse;var p=D.merge;"";var d={colors:C.colors,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:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:c,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44}, caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:C.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:C.neutralColor40,borderRadius:0,navigation:{activeColor:C.highlightColor100,inactiveColor:C.neutralColor20},itemStyle:{color:C.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"}, itemHoverStyle:{color:C.neutralColor100},itemHiddenStyle:{color:C.neutralColor20},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:C.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:K,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:v?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:A(C.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:C.neutralColor80,cursor:"default",fontSize:"12px", whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:C.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};d.chart.styledMode=!1;"";var m=new z(p(d.global,d.time));return{defaultOptions:d,defaultTime:m,getOptions:function(){return d},setOptions:function(b){p(!0,d,b);if(b.time||b.global)q.time?q.time.update(p(d.global,d.time,b.global,b.time)):q.time=m;return d}}});P(c,"Core/Animation/Fx.js", [c["Core/Color/Color.js"],c["Core/Globals.js"],c["Core/Utilities.js"]],function(q,c,A){var v=q.parse,z=c.win,D=A.isNumber,H=A.objectEach;return function(){function q(p,d,m){this.pos=NaN;this.options=d;this.elem=p;this.prop=m}q.prototype.dSetter=function(){var p=this.paths,d=p&&p[0];p=p&&p[1];var m=this.now||0,b=[];if(1!==m&&d&&p)if(d.length===p.length&&1>m)for(var g=0;g=L+this.startTime){this.now=this.end;this.pos=1;this.update();var n=x[this.prop]=!0;H(x,function(b){!0!==b&&(n=!1)});n&&g&&g.call(b);p=!1}else this.pos=m.easing((d-this.startTime)/L),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0;return p};q.prototype.initPath=function(p,d,m){function b(k,b){for(;k.lengthn[1]){var k=m+ +n[1];0<=k?(n[0]=(+n[0]).toExponential(k).split("e")[0],m=k):(n[0]=n[0].split(".")[0]||0,d=20>m?(n[0]* Math.pow(10,n[1])).toFixed(m):0,n[1]=0)}k=(Math.abs(n[1]?n[0]:d)+Math.pow(10,-Math.max(m,x)-1)).toFixed(m);x=String(p(k));var M=3d?"-":"")+(M?x.substr(0,M)+g:"");d=0>+n[1]&&!B?"0":d+x.substr(M).replace(/(\d{3})(?=\d)/g,"$1"+g);m&&(d+=b+k.slice(-m));n[1]&&0!==+d&&(d+="e"+n[1]);return d}var C=q.defaultOptions,z=q.defaultTime,D=c.getNestedProperty,H=c.isNumber,K=c.pick,p=c.pInt;return{dateFormat:function(d,m,b){return z.dateFormat(d, m,b)},format:function(d,m,b){var g="{",p=!1,x=/f$/,n=/\.([0-9])/,B=C.lang,k=b&&b.time||z;b=b&&b.numberFormatter||v;for(var M=[];d;){var N=d.indexOf(g);if(-1===N)break;var J=d.slice(0,N);if(p){J=J.split(":");g=D(J.shift()||"",m);if(J.length&&"number"===typeof g)if(J=J.join(":"),x.test(J)){var w=parseInt((J.match(n)||["","-1"])[1],10);null!==g&&(g=b(g,w,B.decimalPoint,-1O.width)O={width:0, height:0}}else O=this.htmlGetBBox();y.isSVG&&(f=O.width,y=O.height,E&&(O.height=y={"11px,17":14,"13px,20":16}[r&&r.fontSize+","+Math.round(y)]||y),e&&(r=e*d,O.width=Math.abs(y*Math.sin(r))+Math.abs(f*Math.cos(r)),O.height=Math.abs(y*Math.cos(r))+Math.abs(f*Math.sin(r))));if(n&&0]*>/g,"").replace(/</g,"<").replace(/>/g,">")};u.prototype.toFront=function(){var a=this.element;a.parentNode.appendChild(a);return this};u.prototype.translate=function(a,f){return this.attr({translateX:a,translateY:f})};u.prototype.updateShadows=function(a,f,e){var h=this.shadows;if(h)for(var l=h.length;l--;)e.call(h[l],"height"===a?Math.max(f-(h[l].cutHeight||0),0):"d"===a?this.d:f,a,h[l])};u.prototype.updateTransform= function(){var a=this.scaleX,f=this.scaleY,e=this.inverted,h=this.rotation,r=this.matrix,u=this.element,t=this.translateX||0,b=this.translateY||0;e&&(t+=this.width,b+=this.height);t=["translate("+t+","+b+")"];N(r)&&t.push("matrix("+r.join(",")+")");e?t.push("rotate(90) scale(-1,1)"):h&&t.push("rotate("+h+" "+l(this.rotationOriginX,u.getAttribute("x"),0)+" "+l(this.rotationOriginY,u.getAttribute("y")||0)+")");(N(a)||N(f))&&t.push("scale("+l(a,1)+" "+l(f,1)+")");t.length&&u.setAttribute("transform", t.join(" "))};u.prototype.visibilitySetter=function(a,f,e){"inherit"===a?e.removeAttribute(f):this[f]!==a&&e.setAttribute(f,a);this[f]=a};u.prototype.xGetter=function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)};u.prototype.zIndexSetter=function(a,e){var h=this.renderer,l=this.parentGroup,r=(l||h).element||h.box,u=this.element;h=r===h.box;var t=!1;var b=this.added;var k;N(a)?(u.setAttribute("data-z-index",a),a=+a,this[e]===a&&(b=!1)):N(this[e])&& u.removeAttribute("data-z-index");this[e]=a;if(b){(a=this.zIndex)&&l&&(l.handleZ=!0);e=r.childNodes;for(k=e.length-1;0<=k&&!t;k--){l=e[k];b=l.getAttribute("data-z-index");var E=!N(b);if(l!==u)if(0>a&&E&&!h&&!k)r.insertBefore(u,e[k]),t=!0;else if(f(b)<=a||E&&(!N(a)||0<=a))r.insertBefore(u,e[k+1]||null),t=!0}t||(r.insertBefore(u,e[h?3:0]||null),t=!0)}return t};return u}();q.prototype["stroke-widthSetter"]=q.prototype.strokeSetter;q.prototype.yGetter=q.prototype.xGetter;q.prototype.matrixSetter=q.prototype.rotationOriginXSetter= q.prototype.rotationOriginYSetter=q.prototype.rotationSetter=q.prototype.scaleXSetter=q.prototype.scaleYSetter=q.prototype.translateXSetter=q.prototype.translateYSetter=q.prototype.verticalAlignSetter=function(a,f){this[f]=a;this.doTransform=!0};"";return q});P(c,"Core/Renderer/RendererRegistry.js",[c["Core/Globals.js"]],function(c){var q;(function(q){var v;q.rendererTypes={};q.getRendererType=function(c){void 0===c&&(c=v);return q.rendererTypes[c]||q.rendererTypes[v]};q.registerRendererType=function(z, D,A){q.rendererTypes[z]=D;if(!v||A)v=z,c.Renderer=D}})(q||(q={}));return q});P(c,"Core/Renderer/SVG/SVGLabel.js",[c["Core/Renderer/SVG/SVGElement.js"],c["Core/Utilities.js"]],function(q,c){var v=this&&this.__extends||function(){var d=function(m,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var g in d)d.hasOwnProperty(g)&&(b[g]=d[g])};return d(m,b)};return function(m,b){function g(){this.constructor=m}d(m,b);m.prototype=null===b?Object.create(b): (g.prototype=b.prototype,new g)}}(),C=c.defined,z=c.extend,D=c.isNumber,H=c.merge,K=c.pick,p=c.removeEvent;return function(d){function m(b,g,p,x,n,B,k,M,N,J){var w=d.call(this)||this;w.paddingLeftSetter=w.paddingSetter;w.paddingRightSetter=w.paddingSetter;w.init(b,"g");w.textStr=g;w.x=p;w.y=x;w.anchorX=B;w.anchorY=k;w.baseline=N;w.className=J;w.addClass("button"===J?"highcharts-no-tooltip":"highcharts-label");J&&w.addClass("highcharts-"+J);w.text=b.text("",0,0,M).attr({zIndex:1});var e;"string"=== typeof n&&((e=/^url\((.*?)\)$/.test(n))||w.renderer.symbols[n])&&(w.symbolKey=n);w.bBox=m.emptyBBox;w.padding=3;w.baselineOffset=0;w.needsBox=b.styledMode||e;w.deferredAttr={};w.alignFactor=0;return w}v(m,d);m.prototype.alignSetter=function(b){b={left:0,center:.5,right:1}[b];b!==this.alignFactor&&(this.alignFactor=b,this.bBox&&D(this.xSetting)&&this.attr({x:this.xSetting}))};m.prototype.anchorXSetter=function(b,g){this.anchorX=b;this.boxAttr(g,Math.round(b)-this.getCrispAdjust()-this.xSetting)};m.prototype.anchorYSetter= function(b,g){this.anchorY=b;this.boxAttr(g,b-this.ySetting)};m.prototype.boxAttr=function(b,g){this.box?this.box.attr(b,g):this.deferredAttr[b]=g};m.prototype.css=function(b){if(b){var g={};b=H(b);m.textProps.forEach(function(d){"undefined"!==typeof b[d]&&(g[d]=b[d],delete b[d])});this.text.css(g);var d="width"in g;"fontSize"in g||"fontWeight"in g?this.updateTextPadding():d&&this.updateBoxSize()}return q.prototype.css.call(this,b)};m.prototype.destroy=function(){p(this.element,"mouseenter");p(this.element, "mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());q.prototype.destroy.call(this)};m.prototype.fillSetter=function(b,d){b&&(this.needsBox=!0);this.fill=b;this.boxAttr(d,b)};m.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var b=this.padding,d=K(this.paddingLeft,b);return{width:this.width,height:this.height,x:this.bBox.x-d,y:this.bBox.y-b}};m.prototype.getCrispAdjust=function(){return this.renderer.styledMode&& this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};m.prototype.heightSetter=function(b){this.heightSetting=b};m.prototype.on=function(b,d){var g=this,m=g.text,n=m&&"SPAN"===m.element.tagName?m:void 0;if(n){var B=function(k){("mouseenter"===b||"mouseleave"===b)&&k.relatedTarget instanceof Element&&(g.element.compareDocumentPosition(k.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY||n.element.compareDocumentPosition(k.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)|| d.call(g.element,k)};n.on(b,B)}q.prototype.on.call(g,b,B||d);return g};m.prototype.onAdd=function(){var b=this.textStr;this.text.add(this);this.attr({text:C(b)?b:"",x:this.x,y:this.y});this.box&&C(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};m.prototype.paddingSetter=function(b,d){D(b)?b!==this[d]&&(this[d]=b,this.updateTextPadding()):this[d]=void 0};m.prototype.rSetter=function(b,d){this.boxAttr(d,b)};m.prototype.shadow=function(b){b&&!this.renderer.styledMode&&(this.updateBoxSize(), this.box&&this.box.shadow(b));return this};m.prototype.strokeSetter=function(b,d){this.stroke=b;this.boxAttr(d,b)};m.prototype["stroke-widthSetter"]=function(b,d){b&&(this.needsBox=!0);this["stroke-width"]=b;this.boxAttr(d,b)};m.prototype["text-alignSetter"]=function(b){this.textAlign=b};m.prototype.textSetter=function(b){"undefined"!==typeof b&&this.text.attr({text:b});this.updateTextPadding()};m.prototype.updateBoxSize=function(){var b=this.text.element.style,d={},p=this.padding,x=this.bBox=D(this.widthSetting)&& D(this.heightSetting)&&!this.textAlign||!C(this.text.textStr)?m.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||x.height||0)+2*p;b=this.renderer.fontMetrics(b&&b.fontSize,this.text);this.baselineOffset=p+Math.min((this.text.firstLineMetrics||b).b,x.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-b.h)/2);this.needsBox&&(this.box||(p=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),p.addClass(("button"=== this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),p.add(this)),p=this.getCrispAdjust(),d.x=p,d.y=(this.baseline?-this.baselineOffset:0)+p,d.width=Math.round(this.width),d.height=Math.round(this.height),this.box.attr(z(d,this.deferredAttr)),this.deferredAttr={})};m.prototype.updateTextPadding=function(){var b=this.text;this.updateBoxSize();var d=this.baseline?0:this.baselineOffset,m=K(this.paddingLeft,this.padding);C(this.widthSetting)&&this.bBox&& ("center"===this.textAlign||"right"===this.textAlign)&&(m+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(m!==b.x||d!==b.y)b.attr("x",m),b.hasBoxWidthChanged&&(this.bBox=b.getBBox(!0)),"undefined"!==typeof d&&b.attr("y",d);b.x=m;b.y=d};m.prototype.widthSetter=function(b){this.widthSetting=D(b)?b:void 0};m.prototype.getPaddedWidth=function(){var b=this.padding,d=K(this.paddingLeft,b);b=K(this.paddingRight,b);return(this.widthSetting||this.bBox.width||0)+d+b};m.prototype.xSetter= function(b){this.x=b;this.alignFactor&&(b-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(b);this.attr("translateX",this.xSetting)};m.prototype.ySetter=function(b){this.ySetting=this.y=Math.round(b);this.attr("translateY",this.ySetting)};m.emptyBBox={width:0,height:0,x:0,y:0};m.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return m}(q)});P(c,"Core/Renderer/SVG/Symbols.js", [c["Core/Utilities.js"]],function(c){function q(c,p,d,m,b){var g=[];if(b){var q=b.start||0,x=H(b.r,d);d=H(b.r,m||d);var n=(b.end||0)-.001;m=b.innerR;var B=H(b.open,.001>Math.abs((b.end||0)-q-2*Math.PI)),k=Math.cos(q),M=Math.sin(q),N=Math.cos(n),J=Math.sin(n);q=H(b.longArc,.001>n-q-Math.PI?0:1);g.push(["M",c+x*k,p+d*M],["A",x,d,0,q,H(b.clockwise,1),c+x*N,p+d*J]);z(m)&&g.push(B?["M",c+m*N,p+m*J]:["L",c+m*N,p+m*J],["A",m,m,0,q,z(b.clockwise)?1-b.clockwise:0,c+m*k,p+m*M]);B||g.push(["Z"])}return g}function A(c, p,d,m,b){return b&&b.r?C(c,p,d,m,b):[["M",c,p],["L",c+d,p],["L",c+d,p+m],["L",c,p+m],["Z"]]}function C(c,p,d,m,b){b=b&&b.r||0;return[["M",c+b,p],["L",c+d-b,p],["C",c+d,p,c+d,p,c+d,p+b],["L",c+d,p+m-b],["C",c+d,p+m,c+d,p+m,c+d-b,p+m],["L",c+b,p+m],["C",c,p+m,c,p+m,c,p+m-b],["L",c,p+b],["C",c,p,c,p,c+b,p]]}var z=c.defined,D=c.isNumber,H=c.pick;return{arc:q,callout:function(c,p,d,m,b){var g=Math.min(b&&b.r||0,d,m),q=g+6,x=b&&b.anchorX;b=b&&b.anchorY||0;var n=C(c,p,d,m,{r:g});if(!D(x))return n;c+x>=d? b>p+q&&b=c+x?b>p+q&&bm&&x>c+q&&xb&&x>c+q&&x/g;var M=[L,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(M!==d.textCache){d.textCache=M;for(delete d.actualWidth;B--;)b.removeChild(n[B]);x||this.ellipsis||this.width||-1!==L.indexOf(" ")&&(!this.noWrap||k.test(L))?""!==L&&(g&&g.appendChild(b),L=new c(L),this.modifyTree(L.nodes),L.addToDOM(d.element),this.modifyDOM(),this.ellipsis&&-1!==(b.textContent||"").indexOf("\u2026")&& d.attr("title",this.unescapeEntities(d.textStr||"",["<",">"])),g&&g.removeChild(b)):b.appendChild(q.createTextNode(this.unescapeEntities(L)));H(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}};d.prototype.modifyDOM=function(){var d=this,b=this.svgElement,g=D(b.element,"x");b.firstLineMetrics=void 0;[].forEach.call(b.element.querySelectorAll("tspan.highcharts-br"),function(n,k){n.nextSibling&&n.previousSibling&&(0===k&&1===n.previousSibling.nodeType&&(b.firstLineMetrics= b.renderer.fontMetrics(void 0,n.previousSibling)),D(n,{dy:d.getLineHeight(n.nextSibling),x:g}))});var c=this.width||0;if(c){var p=function(n,k){var B=n.textContent||"",m=B.replace(/([^\^])-/g,"$1- ").split(" "),p=!d.noWrap&&(1p){for(;x<=w;)e=Math.ceil((x+w)/2),g&&(t=n(g,e)),r=a(e,t&&t.length-1),x===w?x=w+1:r>p?w=e-1:x=e;0===w?d.textContent="":b&&w===b.length-1||(d.textContent=t||n(b||g,e))}g&&g.splice(0,e);B.actualWidth=r;B.rotation=m};d.prototype.unescapeEntities=function(d,b){K(this.renderer.escapes,function(g,c){b&&-1!==b.indexOf(g)||(d=d.toString().replace(new RegExp(g,"g"),c))});return d};return d}()}); P(c,"Core/Renderer/SVG/SVGRenderer.js",[c["Core/Renderer/HTML/AST.js"],c["Core/Color/Color.js"],c["Core/Globals.js"],c["Core/Color/Palette.js"],c["Core/Renderer/RendererRegistry.js"],c["Core/Renderer/SVG/SVGElement.js"],c["Core/Renderer/SVG/SVGLabel.js"],c["Core/Renderer/SVG/Symbols.js"],c["Core/Renderer/SVG/TextBuilder.js"],c["Core/Utilities.js"]],function(c,v,A,C,z,D,H,K,p,d){var m=A.charts,b=A.deg2rad,g=A.doc,q=A.isFirefox,x=A.isMS,n=A.isWebKit,B=A.noop,k=A.SVG_NS,M=A.symbolSizes,N=A.win,J=d.addEvent, w=d.attr,e=d.createElement,t=d.css,a=d.defined,r=d.destroyObjectProperties,E=d.extend,F=d.isArray,G=d.isNumber,l=d.isObject,f=d.isString,I=d.merge,h=d.pick,u=d.pInt,O=d.uniqueKey,X;A=function(){function y(a,f,e,h,l,r,y){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(a,f,e,h,l,r,y)}y.prototype.init=function(a,f,e,h,l,r,y){var Q=this.createElement("svg").attr({version:"1.1", "class":"highcharts-root"}),u=Q.element;y||Q.css(this.getStyle(h));a.appendChild(u);w(a,"dir","ltr");-1===a.innerHTML.indexOf("xmlns")&&w(u,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=u;this.boxWrapper=Q;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(g.createTextNode("Created with Highcharts 9.1.1"));this.defs=this.createElement("defs").add();this.allowHTML=r;this.forExport=l;this.styledMode=y;this.gradients={};this.cache={};this.cacheKeys= [];this.imgCount=0;this.setSize(f,e,!1);var b;q&&a.getBoundingClientRect&&(f=function(){t(a,{left:0,top:0});b=a.getBoundingClientRect();t(a,{left:Math.ceil(b.left)-b.left+"px",top:Math.ceil(b.top)-b.top+"px"})},f(),this.unSubPixelFix=J(N,"resize",f))};y.prototype.definition=function(a){return(new c([a])).addToDOM(this.defs.element)};y.prototype.getReferenceURL=function(){if((q||n)&&g.getElementsByTagName("base").length){if(!a(X)){var f=O();f=(new c([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs", children:[{tagName:"clipPath",attributes:{id:f},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+f+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(g.body);t(f,{position:"fixed",top:0,left:0,zIndex:9E5});var e=g.elementFromPoint(6,6);X="hitme"===(e&&e.id);g.body.removeChild(f)}if(X)return N.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};y.prototype.getStyle= function(a){return this.style=E({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)};y.prototype.setStyle=function(a){this.boxWrapper.css(this.getStyle(a))};y.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};y.prototype.destroy=function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();r(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects= null};y.prototype.createElement=function(a){var f=new this.Element;f.init(this,a);return f};y.prototype.getRadialAttr=function(a,f){return{cx:a[0]-a[2]/2+(f.cx||0)*a[2],cy:a[1]-a[2]/2+(f.cy||0)*a[2],r:(f.r||0)*a[2]}};y.prototype.buildText=function(a){(new p(a)).buildSVG()};y.prototype.getContrast=function(a){a=v.parse(a).rgba;a[0]*=1;a[1]*=1.2;a[2]*=.5;return 459a?a+3:Math.round(1.2*a);return{h:f,b:Math.round(.8*f),f:a}};y.prototype.rotCorr=function(a,f,e){var h=a;f&&e&&(h=Math.max(h*Math.cos(f*b),4));return{x:-a/3*Math.sin(f*b),y:h}};y.prototype.pathToSegments=function(a){for(var e=[],h=[],l={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},r=0;r":">","'":"'",'"':"""},symbols:K, draw:B});z.registerRendererType("svg",A,!0);"";return A});P(c,"Core/Renderer/HTML/HTMLElement.js",[c["Core/Globals.js"],c["Core/Renderer/SVG/SVGElement.js"],c["Core/Utilities.js"]],function(c,v,A){var q=this&&this.__extends||function(){var b=function(d,n){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,k){b.__proto__=k}||function(b,k){for(var d in k)k.hasOwnProperty(d)&&(b[d]=k[d])};return b(d,n)};return function(d,n){function g(){this.constructor=d}b(d,n);d.prototype=null===n? Object.create(n):(g.prototype=n.prototype,new g)}}(),z=c.isFirefox,D=c.isMS,H=c.isWebKit,K=c.win,p=A.css,d=A.defined,m=A.extend,b=A.pick,g=A.pInt;return function(c){function x(){return null!==c&&c.apply(this,arguments)||this}q(x,c);x.compose=function(b){b=b.prototype;var d=x.prototype;b.getSpanCorrection=d.getSpanCorrection;b.htmlCss=d.htmlCss;b.htmlGetBBox=d.htmlGetBBox;b.htmlUpdateTransform=d.htmlUpdateTransform;b.setSpanRotation=d.setSpanRotation};x.prototype.getSpanCorrection=function(b,d,k){this.xCorr= -b*k;this.yCorr=-d};x.prototype.htmlCss=function(d){var n="SPAN"===this.element.tagName&&d&&"width"in d,k=b(n&&d.width,void 0);if(n){delete d.width;this.textWidth=k;var g=!0}d&&"ellipsis"===d.textOverflow&&(d.whiteSpace="nowrap",d.overflow="hidden");this.styles=m(this.styles,d);p(this.element,d);g&&this.htmlUpdateTransform();return this};x.prototype.htmlGetBBox=function(){var b=this.element;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}};x.prototype.htmlUpdateTransform= function(){if(this.added){var b=this.renderer,c=this.element,k=this.translateX||0,m=this.translateY||0,N=this.x||0,x=this.y||0,w=this.textAlign||"left",e={left:0,center:.5,right:1}[w],t=this.styles;t=t&&t.whiteSpace;p(c,{marginLeft:k,marginTop:m});!b.styledMode&&this.shadows&&this.shadows.forEach(function(a){p(a,{marginLeft:k+1,marginTop:m+1})});this.inverted&&[].forEach.call(c.childNodes,function(a){b.invertChild(a,c)});if("SPAN"===c.tagName){var a=this.rotation,r=this.textWidth&&g(this.textWidth), E=[a,w,c.innerHTML,this.textWidth,this.textAlign].join(),F=void 0;(F=r!==this.oldTextWidth)&&!(F=r>this.oldTextWidth)&&((F=this.textPxLength)||(p(c,{width:"",whiteSpace:t||"nowrap"}),F=c.offsetWidth),F=F>r);F&&(/[ \-]/.test(c.textContent||c.innerText)||"ellipsis"===c.style.textOverflow)?(p(c,{width:r+"px",display:"block",whiteSpace:t||"normal"}),this.oldTextWidth=r,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;E!==this.cTT&&(F=b.fontMetrics(c.style.fontSize,c).b,!d(a)||a===(this.oldRotation|| 0)&&w===this.oldAlign||this.setSpanRotation(a,e,F),this.getSpanCorrection(!d(a)&&this.textPxLength||c.offsetWidth,F,e,a,w));p(c,{left:N+(this.xCorr||0)+"px",top:x+(this.yCorr||0)+"px"});this.cTT=E;this.oldRotation=a;this.oldAlign=w}}else this.alignOnAdd=!0};x.prototype.setSpanRotation=function(b,d,k){var n={},g=D&&!/Edge/.test(K.navigator.userAgent)?"-ms-transform":H?"-webkit-transform":z?"MozTransform":K.opera?"-o-transform":void 0;g&&(n[g]=n.transform="rotate("+b+"deg)",n[g+(z?"Origin":"-origin")]= n.transformOrigin=100*d+"% "+k+"px",p(this.element,n))};return x}(v)});P(c,"Core/Renderer/HTML/HTMLRenderer.js",[c["Core/Renderer/HTML/AST.js"],c["Core/Renderer/SVG/SVGElement.js"],c["Core/Renderer/SVG/SVGRenderer.js"],c["Core/Utilities.js"]],function(c,v,A,C){var q=this&&this.__extends||function(){var d=function(c,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var g in d)d.hasOwnProperty(g)&&(b[g]=d[g])};return d(c,b)};return function(c, b){function g(){this.constructor=c}d(c,b);c.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),D=C.attr,H=C.createElement,K=C.extend,p=C.pick;return function(d){function m(){return null!==d&&d.apply(this,arguments)||this}q(m,d);m.compose=function(b){b.prototype.html=m.prototype.html};m.prototype.html=function(b,d,m){var g=this.createElement("span"),n=g.element,B=g.renderer,k=B.isSVG,q=function(b,d){["opacity","visibility"].forEach(function(k){b[k+"Setter"]=function(e,t,a){var r= b.div?b.div.style:d;v.prototype[k+"Setter"].call(this,e,t,a);r&&(r[t]=e)}});b.addedSetters=!0};g.textSetter=function(b){b!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,c.setElementHTML(this.element,p(b,"")),this.textStr=b,g.doTransform=!0)};k&&q(g,g.element.style);g.xSetter=g.ySetter=g.alignSetter=g.rotationSetter=function(b,d){"align"===d?g.alignValue=g.textAlign=b:g[d]=b;g.doTransform=!0};g.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)}; g.attr({text:b,x:Math.round(d),y:Math.round(m)}).css({position:"absolute"});B.styledMode||g.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});n.style.whiteSpace="nowrap";g.css=g.htmlCss;k&&(g.add=function(b){var d=B.box.parentNode,k=[];if(this.parentGroup=b){var e=b.div;if(!e){for(;b;)k.push(b),b=b.parentGroup;k.reverse().forEach(function(b){function a(a,e){b[e]=a;"translateX"===e?n.left=a+"px":n.top=a+"px";b.doTransform=!0}var r=D(b.element,"class"),t=b.styles||{};e=b.div=b.div|| H("div",r?{className:r}:void 0,{position:"absolute",left:(b.translateX||0)+"px",top:(b.translateY||0)+"px",display:b.display,opacity:b.opacity,cursor:t.cursor,pointerEvents:t.pointerEvents},e||d);var n=e.style;K(b,{classSetter:function(a){return function(e){this.element.setAttribute("class",e);a.className=e}}(e),on:function(){k[0].div&&g.on.apply({element:k[0].div,onEvents:g.onEvents},arguments);return b},translateXSetter:a,translateYSetter:a});b.addedSetters||q(b)})}}else e=d;e.appendChild(n);g.added= !0;g.alignOnAdd&&g.htmlUpdateTransform();return g});return g};return m}(A)});P(c,"Core/Axis/AxisDefaults.js",[c["Core/Color/Palette.js"]],function(c){var q;(function(q){q.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,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,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:c.neutralColor60,cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0, showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:c.neutralColor60}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:c.neutralColor5,minorGridLineWidth:1,minorTickColor:c.neutralColor40,lineColor:c.highlightColor20,lineWidth:1,gridLineColor:c.neutralColor10,gridLineWidth:void 0,tickColor:c.highlightColor20};q.defaultYAxisOptions={reversedStacks:!0, endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var c=this.axis.chart.numberFormatter;return c(this.total,-1)},style:{color:c.neutralColor100,fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};q.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};q.defaultRightAxisOptions= {labels:{x:15},title:{rotation:90}};q.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};q.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(q||(q={}));return q});P(c,"Core/Foundation.js",[c["Core/Utilities.js"]],function(c){var q=c.addEvent,A=c.isFunction,C=c.objectEach,z=c.removeEvent;return{registerEventOptions:function(c,v){c.eventOptions=c.eventOptions||{};C(v.events,function(v,p){A(v)&&c.eventOptions[p]!==v&&(A(c.eventOptions[p])&& z(c,p,c.eventOptions[p]),c.eventOptions[p]=v,q(c,p,v))})}}});P(c,"Core/Axis/Tick.js",[c["Core/FormatUtilities.js"],c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,v,A){var q=v.deg2rad,z=A.clamp,D=A.correctFloat,H=A.defined,K=A.destroyObjectProperties,p=A.extend,d=A.fireEvent,m=A.isNumber,b=A.merge,g=A.objectEach,L=A.pick;v=function(){function x(b,g,k,c,m){this.isNewLabel=this.isNew=!0;this.axis=b;this.pos=g;this.type=k||"";this.parameters=m||{};this.tickmarkOffset=this.parameters.tickmarkOffset; this.options=this.parameters.options;d(this,"init");k||c||this.addLabel()}x.prototype.addLabel=function(){var b=this,g=b.axis,k=g.options,q=g.chart,N=g.categories,J=g.logarithmic,w=g.names,e=b.pos,t=L(b.options&&b.options.labels,k.labels),a=g.tickPositions,r=e===a[0],E=e===a[a.length-1],F=(!t.step||1===t.step)&&1===g.tickInterval;a=a.info;var G=b.label,l;N=this.parameters.category||(N?L(N[e],w[e],e):e);J&&m(N)&&(N=D(J.lin2log(N)));if(g.dateTime&&a){var f=q.time.resolveDTLFormat(k.dateTimeLabelFormats[!k.grid&& a.higherRanks[e]||a.unitName]);var I=f.main}b.isFirst=r;b.isLast=E;var h={axis:g,chart:q,dateTimeLabelFormat:I,isFirst:r,isLast:E,pos:e,tick:b,tickPositionInfo:a,value:N};d(this,"labelFormat",h);var u=function(a){return t.formatter?t.formatter.call(a,a):t.format?(a.text=g.defaultLabelFormatter.call(a),c.format(t.format,a,q)):g.defaultLabelFormatter.call(a,a)};k=u.call(h,h);var O=f&&f.list;b.shortenLabel=O?function(){for(l=0;lt&&g-a*rn&&(f=Math.round((c-g)/Math.cos(t*q)));else if(c=g+(1-a)*r,g-a*rn&&(G=n-b.x+G*a,l=-1),G=Math.min(E,G),GG||d.autoRotation&&(e.styles||{}).width)f=G;f&&(this.shortenLabel? this.shortenLabel():(F.width=Math.floor(f)+"px",(k.style||{}).textOverflow||(F.textOverflow="ellipsis"),e.css(F)))};x.prototype.moveLabel=function(b,d){var k=this,c=k.label,n=k.axis,m=n.reversed,w=!1;c&&c.textStr===b?(k.movedLabel=c,w=!0,delete k.label):g(n.ticks,function(e){w||e.isNew||e===k||!e.label||e.label.textStr!==b||(k.movedLabel=e.label,w=!0,e.labelPos=k.movedLabel.xy,delete e.label)});if(!w&&(k.labelPos||c)){var e=k.labelPos||c.xy;c=n.horiz?m?0:n.width+n.left:e.x;n=n.horiz?e.y:m?n.width+ n.left:0;k.movedLabel=k.createLabel({x:c,y:n},b,d);k.movedLabel&&k.movedLabel.attr({opacity:0})}};x.prototype.render=function(b,g,k){var c=this.axis,n=c.horiz,m=this.pos,w=L(this.tickmarkOffset,c.tickmarkOffset);m=this.getPosition(n,m,w,g);w=m.x;var e=m.y;c=n&&w===c.pos+c.len||!n&&e===c.pos?-1:1;n=L(k,this.label&&this.label.newOpacity,1);k=L(k,1);this.isActive=!0;this.renderGridLine(g,k,c);this.renderMark(m,k,c);this.renderLabel(m,g,n,b);this.isNew=!1;d(this,"afterRender")};x.prototype.renderGridLine= function(b,d,k){var g=this.axis,c=g.options,n={},w=this.pos,e=this.type,t=L(this.tickmarkOffset,g.tickmarkOffset),a=g.chart.renderer,r=this.gridLine,E=c.gridLineWidth,F=c.gridLineColor,G=c.gridLineDashStyle;"minor"===this.type&&(E=c.minorGridLineWidth,F=c.minorGridLineColor,G=c.minorGridLineDashStyle);r||(g.chart.styledMode||(n.stroke=F,n["stroke-width"]=E||0,n.dashstyle=G),e||(n.zIndex=1),b&&(d=0),this.gridLine=r=a.path().attr(n).addClass("highcharts-"+(e?e+"-":"")+"grid-line").add(g.gridGroup)); if(r&&(k=g.getPlotLinePath({value:w+t,lineWidth:r.strokeWidth()*k,force:"pass",old:b})))r[b||this.isNew?"attr":"animate"]({d:k,opacity:d})};x.prototype.renderMark=function(b,d,k){var g=this.axis,c=g.options,n=g.chart.renderer,w=this.type,e=g.tickSize(w?w+"Tick":"tick"),t=b.x;b=b.y;var a=L(c["minor"!==w?"tickWidth":"minorTickWidth"],!w&&g.isXAxis?1:0);c=c["minor"!==w?"tickColor":"minorTickColor"];var r=this.mark,E=!r;e&&(g.opposite&&(e[0]=-e[0]),r||(this.mark=r=n.path().addClass("highcharts-"+(w?w+ "-":"")+"tick").add(g.axisGroup),g.chart.styledMode||r.attr({stroke:c,"stroke-width":a})),r[E?"attr":"animate"]({d:this.getMarkPath(t,b,e[0],r.strokeWidth()*k,g.horiz,n),opacity:d}))};x.prototype.renderLabel=function(b,d,k,g){var c=this.axis,n=c.horiz,w=c.options,e=this.label,t=w.labels,a=t.step;c=L(this.tickmarkOffset,c.tickmarkOffset);var r=b.x;b=b.y;var E=!0;e&&m(r)&&(e.xy=b=this.getLabelPosition(r,b,e,n,t,c,g,a),this.isFirst&&!this.isLast&&!w.showFirstLabel||this.isLast&&!this.isFirst&&!w.showLastLabel? E=!1:!n||t.step||t.rotation||d||0===k||this.handleOverflow(b),a&&g%a&&(E=!1),E&&m(b.y)?(b.opacity=k,e[this.isNewLabel?"attr":"animate"](b),this.isNewLabel=!1):(e.attr("y",-9999),this.isNewLabel=!0))};x.prototype.replaceMovedLabel=function(){var b=this.label,d=this.axis,k=d.reversed;if(b&&!this.isNew){var g=d.horiz?k?d.left:d.width+d.left:b.xy.x;k=d.horiz?b.xy.y:k?d.width+d.top:d.top;b.animate({x:g,y:k,opacity:0},void 0,b.destroy);delete this.label}d.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel}; return x}();"";return v});P(c,"Core/Axis/Axis.js",[c["Core/Animation/AnimationUtilities.js"],c["Core/Axis/AxisDefaults.js"],c["Core/Color/Color.js"],c["Core/Foundation.js"],c["Core/Globals.js"],c["Core/Color/Palette.js"],c["Core/DefaultOptions.js"],c["Core/Axis/Tick.js"],c["Core/Utilities.js"]],function(c,v,A,C,z,D,H,K,p){var d=c.animObject,m=C.registerEventOptions,b=z.deg2rad,g=H.defaultOptions,q=p.arrayMax,x=p.arrayMin,n=p.clamp,B=p.correctFloat,k=p.defined,M=p.destroyObjectProperties,N=p.erase, J=p.error,w=p.extend,e=p.fireEvent,t=p.getMagnitude,a=p.isArray,r=p.isNumber,E=p.isString,F=p.merge,G=p.normalizeTickInterval,l=p.objectEach,f=p.pick,I=p.relativeLength,h=p.removeEvent,u=p.splat,O=p.syncTimeout;c=function(){function c(a,f){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly= this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(a, f)}c.prototype.init=function(a,h){var b=h.isX;this.chart=a;this.horiz=a.inverted&&!this.isZAxis?!b:b;this.isXAxis=b;this.coll=this.coll||(b?"xAxis":"yAxis");e(this,"init",{userOptions:h});this.opposite=f(h.opposite,this.opposite);this.side=f(h.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(h);var l=this.options,y=l.labels,d=l.type;this.userOptions=h;this.minPixelPadding=0;this.reversed=f(l.reversed,this.reversed);this.visible=l.visible;this.zoomEnabled=l.zoomEnabled; this.hasNames="category"===d||!0===l.categories;this.categories=l.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=k(l.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=l.minRange||l.maxZoom;this.range=l.range;this.offset=l.offset||0;this.min=this.max=null;h=f(l.crosshair,u(a.options.tooltip.crosshairs)[b? 0:1]);this.crosshair=!0===h?{}:h;-1===a.axes.indexOf(this)&&(b?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this));this.series=this.series||[];a.inverted&&!this.isZAxis&&b&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=r(y.rotation)?y.rotation:void 0;m(this,l);e(this,"afterInit")};c.prototype.setOptions=function(a){this.options=F(v.defaultXAxisOptions,"yAxis"===this.coll&&v.defaultYAxisOptions,[v.defaultTopAxisOptions,v.defaultRightAxisOptions, v.defaultBottomAxisOptions,v.defaultLeftAxisOptions][this.side],F(g[this.coll],a));e(this,"afterSetOptions",{userOptions:a})};c.prototype.defaultLabelFormatter=function(a){var f=this.axis;a=this.chart.numberFormatter;var e=r(this.value)?this.value:NaN,h=f.chart.time,l=this.dateTimeLabelFormat,b=g.lang,y=b.numericSymbols;b=b.numericSymbolMagnitude||1E3;var d=f.logarithmic?Math.abs(e):f.tickInterval,u=y&&y.length;if(f.categories)var t=""+this.value;else if(l)t=h.dateFormat(l,e);else if(u&&1E3<=d)for(;u--&& "undefined"===typeof t;)f=Math.pow(b,u+1),d>=f&&0===10*e%f&&null!==y[u]&&0!==e&&(t=a(e/f,-1)+y[u]);"undefined"===typeof t&&(t=1E4<=Math.abs(e)?a(e,-1):a(e,-1,void 0,""));return t};c.prototype.getSeriesExtremes=function(){var a=this,h=a.chart,l;e(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.stacking&&a.stacking.buildStacks();a.series.forEach(function(e){if(e.visible||!h.options.chart.ignoreHiddenSeries){var b=e.options, y=b.threshold;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=y&&(y=null);if(a.isXAxis){if(b=e.xData,b.length){b=a.logarithmic?b.filter(a.validatePositiveValue):b;l=e.getXExtremes(b);var d=l.min;var u=l.max;r(d)||d instanceof Date||(b=b.filter(r),l=e.getXExtremes(b),d=l.min,u=l.max);b.length&&(a.dataMin=Math.min(f(a.dataMin,d),d),a.dataMax=Math.max(f(a.dataMax,u),u))}}else if(e=e.applyExtremes(),r(e.dataMin)&&(d=e.dataMin,a.dataMin=Math.min(f(a.dataMin,d),d)),r(e.dataMax)&&(u=e.dataMax,a.dataMax=Math.max(f(a.dataMax, u),u)),k(y)&&(a.threshold=y),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,"afterGetSeriesExtremes")};c.prototype.translate=function(a,f,e,h,b,l){var y=this.linkedParent||this,d=h&&y.old?y.old.min:y.min,u=y.minPixelPadding;b=(y.isOrdinal||y.brokenAxis&&y.brokenAxis.hasBreaks||y.logarithmic&&b)&&y.lin2val;var t=1,k=0;h=h&&y.old?y.old.transA:y.transA;h||(h=y.transA);e&&(t*=-1,k=y.len);y.reversed&&(t*=-1,k-=t*(y.sector||y.len));f?(a=(a*t+k-u)/h+d,b&&(a=y.lin2val(a))):(b&&(a=y.val2lin(a)), a=r(d)?t*(a-d)*h+k+t*u+(r(l)?h*l:0):void 0);return a};c.prototype.toPixels=function(a,f){return this.translate(a,!1,!this.horiz,null,!0)+(f?0:this.pos)};c.prototype.toValue=function(a,f){return this.translate(a-(f?0:this.pos),!0,!this.horiz,null,!0)};c.prototype.getPlotLinePath=function(a){function h(a,f,e){if("pass"!==G&&ae)G?a=n(a,f,e):p=!0;return a}var b=this,l=b.chart,y=b.left,d=b.top,u=a.old,t=a.value,k=a.lineWidth,c=u&&l.oldChartHeight||l.chartHeight,g=u&&l.oldChartWidth||l.chartWidth, E=b.transB,F=a.translatedValue,G=a.force,I,w,m,O,p;a={value:t,lineWidth:k,old:u,force:G,acrossPanes:a.acrossPanes,translatedValue:F};e(this,"getPlotLinePath",a,function(a){F=f(F,b.translate(t,null,null,u));F=n(F,-1E5,1E5);I=m=Math.round(F+E);w=O=Math.round(c-F-E);r(F)?b.horiz?(w=d,O=c-b.bottom,I=m=h(I,y,y+b.width)):(I=y,m=g-b.right,w=O=h(w,d,d+b.height)):(p=!0,G=!1);a.path=p&&!G?null:l.renderer.crispLine([["M",I,w],["L",m,O]],k||1)});return a.path};c.prototype.getLinearTickPositions=function(a,f, e){var h=B(Math.floor(f/a)*a);e=B(Math.ceil(e/a)*a);var b=[],l;B(h+a)===h&&(l=20);if(this.single)return[f];for(f=h;f<=e;){b.push(f);f=B(f+a,l);if(f===r)break;var r=f}return b};c.prototype.getMinorTickInterval=function(){var a=this.options;return!0===a.minorTicks?f(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval};c.prototype.getMinorTickPositions=function(){var a=this.options,f=this.tickPositions,e=this.minorTickInterval,h=this.pointRangePadding||0,b=this.min-h;h=this.max+h; var l=h-b,r=[];if(l&&l/e=this.minRange;var g=this.minRange;var E=(g-b+h)/2;E=[h-E,f(a.min,h-E)];c&&(E[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin); h=q(E);b=[h+g,f(a.max,h+g)];c&&(b[2]=e?e.log2lin(this.dataMax):this.dataMax);b=x(b);b-h=w)p=w,n=0;else if(h.dataMax<=w){var q=w;F=0}h.min=f(m,p,h.dataMin);h.max=f(O,q,h.dataMax)}l&&(h.positiveValuesOnly&&!a&&0>=Math.min(h.min,f(h.dataMin,h.min))&&J(10,1,b),h.min=B(l.log2lin(h.min),16),h.max=B(l.log2lin(h.max),16));h.range&&k(h.max)&&(h.userMin=h.min=m=Math.max(h.dataMin,h.minFromRange()),h.userMax=O=h.max,h.range=null);e(h,"foundExtremes");h.beforePadding&&h.beforePadding();h.adjustForMinRange();!(g||h.axisPointRange|| h.stacking&&h.stacking.usePercentage||y)&&k(h.min)&&k(h.max)&&(b=h.max-h.min)&&(!k(m)&&n&&(h.min-=b*n),!k(O)&&F&&(h.max+=b*F));r(h.userMin)||(r(d.softMin)&&d.softMinh.max&&(h.max=O=d.softMax),r(d.ceiling)&&(h.max=Math.min(h.max,d.ceiling)));E&&k(h.dataMin)&&(w=w||0,!k(m)&&h.min=w?h.min=h.options.minRange?Math.min(w,h.max-h.minRange):w:!k(O)&&h.max>w&&h.dataMax<=w&&(h.max=h.options.minRange? Math.max(w,h.min+h.minRange):w));r(h.min)&&r(h.max)&&!this.chart.polar&&h.min>h.max&&(k(h.options.min)?h.max=h.min:k(h.options.max)&&(h.min=h.max));h.tickInterval=h.min===h.max||"undefined"===typeof h.min||"undefined"===typeof h.max?1:y&&h.linkedParent&&!I&&c===h.linkedParent.options.tickPixelInterval?I=h.linkedParent.tickInterval:f(I,this.tickAmount?(h.max-h.min)/Math.max(this.tickAmount-1,1):void 0,g?1:(h.max-h.min)*c/Math.max(h.len,c));u&&!a&&h.series.forEach(function(a){a.processData(h.min!== (h.old&&h.old.min)||h.max!==(h.old&&h.old.max))});h.setAxisTranslation();e(this,"initialAxisTranslation");h.pointRange&&!I&&(h.tickInterval=Math.max(h.pointRange,h.tickInterval));a=f(d.minTickInterval,h.dateTime&&!h.series.some(function(a){return a.noSharedTooltip})?h.closestPointRange:0);!I&&h.tickIntervalh.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)); this.tickAmount||(h.tickInterval=h.unsquish());this.setTickPositions()};c.prototype.setTickPositions=function(){var a=this.options,f=a.tickPositions,h=this.getMinorTickInterval(),b=this.hasVerticalPanning(),l="colorAxis"===this.coll,r=(l||!b)&&a.startOnTick;b=(l||!b)&&a.endOnTick;l=a.tickPositioner;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===h&&this.tickInterval?this.tickInterval/5:h;this.single=this.min===this.max&& k(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=h=f&&f.slice();!h&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?h=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min, this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(h=[this.min,this.max],J(19,!1,this.chart)),h.length>this.len&&(h=[h[0],h.pop()],h[0]===h[1]&&(h.length=1)),this.tickPositions=h,l&&(l=l.apply(this,[this.min,this.max])))&&(this.tickPositions=h=l);this.paddedTicks=h.slice(0);this.trimTicks(h,r,b);this.isLinked||(this.single&&2>h.length&&!this.categories&&!this.series.some(function(a){return a.is("heatmap")&&"between"===a.options.pointPlacement})&&(this.min-=.5,this.max+=.5), f||l||this.adjustTickAmount());e(this,"afterSetTickPositions")};c.prototype.trimTicks=function(a,f,h){var b=a[0],l=a[a.length-1],r=!this.isOrdinal&&this.minPointOffset||0;e(this,"trimTicks");if(!this.isLinked){if(f&&-Infinity!==b)this.min=b;else for(;this.min-r>a[0];)a.shift();if(h)this.max=l;else for(;this.max+rh&&(this.finalTickAmt= h,h=5);this.tickAmount=h};c.prototype.adjustTickAmount=function(){var a=this.options,h=this.tickInterval,e=this.tickPositions,b=this.tickAmount,l=this.finalTickAmt,d=e&&e.length,u=f(this.threshold,this.softThreshold?0:null);if(this.hasData()&&r(this.min)&&r(this.max)){if(db&&(this.tickInterval*=2,this.setTickPositions());if(k(l)){for(h=a=e.length;h--;)(3===l&&1===h%2||2>=l&&0t&&(h=t)),k(r)&&(ft&&(f=t))),b.displayBtn="undefined"!==typeof h||"undefined"!==typeof f,b.setExtremes(h,f,!1,void 0,{trigger:"zoom"}); a.zoomed=!0});return a.zoomed};c.prototype.setAxisSize=function(){var a=this.chart,h=this.options,e=h.offsets||[0,0,0,0],b=this.horiz,l=this.width=Math.round(I(f(h.width,a.plotWidth-e[3]+e[1]),a.plotWidth)),r=this.height=Math.round(I(f(h.height,a.plotHeight-e[0]+e[2]),a.plotHeight)),d=this.top=Math.round(I(f(h.top,a.plotTop+e[0]),a.plotHeight,a.plotTop));h=this.left=Math.round(I(f(h.left,a.plotLeft+e[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-r-d;this.right=a.chartWidth-l-h;this.len=Math.max(b? l:r,0);this.pos=b?h:d};c.prototype.getExtremes=function(){var a=this.logarithmic;return{min:a?B(a.lin2log(this.min)):this.min,max:a?B(a.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};c.prototype.getThreshold=function(a){var h=this.logarithmic,f=h?h.lin2log(this.min):this.min;h=h?h.lin2log(this.max):this.max;null===a||-Infinity===a?a=f:Infinity===a?a=h:f>a?a=f:hh?a.align="right":195h&&(a.align="left")});return a.align};c.prototype.tickSize=function(a){var h=this.options,b=f(h["tick"===a?"tickWidth":"minorTickWidth"],"tick"===a&&this.isXAxis&&!this.categories?1:0),l=h["tick"===a?"tickLength":"minorTickLength"];if(b&&l){"inside"===h[a+"Position"]&&(l=-l);var r=[l,b]}a={tickSize:r};e(this,"afterTickSize",a);return a.tickSize};c.prototype.labelMetrics= function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)};c.prototype.unsquish=function(){var a=this.options.labels,h=this.horiz,e=this.tickInterval,l=this.len/(((this.categories?1:0)+this.max-this.min)/e),d=a.rotation,u=this.labelMetrics(),t=Math.max(this.max-this.min,0),k=function(a){var h=a/(l||1);h=1t&&Infinity!==a&&Infinity!==l&&t&&(h=Math.ceil(t/e));return B(h* e)},c=e,g,E,F=Number.MAX_VALUE;if(h){if(!a.staggerLines&&!a.step)if(r(d))var n=[d];else l=a){E=k(Math.abs(u.h/Math.sin(b*a)));var h=E+Math.abs(a/360);he.step)return e.rotation?0:(this.staggerLines||1)*this.len/b;if(!f){a=e.style.width;if(void 0!==a)return parseInt(String(a),10);if(l)return l-h.spacing[3]}return.33*h.chartWidth};c.prototype.renderUnsquish=function(){var a=this.chart,h=a.renderer,f=this.tickPositions,e=this.ticks,b=this.options.labels,l=b.style,r=this.horiz,d=this.getSlotWidth(),u=Math.max(1,Math.round(d-2*b.padding)),t={},k=this.labelMetrics(),c=l.textOverflow,g=0;E(b.rotation)|| (t.rotation=b.rotation||0);f.forEach(function(a){a=e[a];a.movedLabel&&a.replaceMovedLabel();a&&a.label&&a.label.textPxLength>g&&(g=a.label.textPxLength)});this.maxLabelLength=g;if(this.autoRotation)g>u&&g>k.h?t.rotation=this.labelRotation:this.labelRotation=0;else if(d){var F=u;if(!c){var n="clip";for(u=f.length;!r&&u--;){var I=f[u];if(I=e[I].label)I.styles&&"ellipsis"===I.styles.textOverflow?I.css({textOverflow:"clip"}):I.textPxLength>d&&I.css({width:d+"px"}),I.getBBox().height>this.len/f.length- (k.h-k.f)&&(I.specificTextOverflow="ellipsis")}}}t.rotation&&(F=g>.5*a.chartHeight?.33*a.chartHeight:g,c||(n="ellipsis"));if(this.labelAlign=b.align||this.autoLabelAlign(this.labelRotation))t.align=this.labelAlign;f.forEach(function(a){var h=(a=e[a])&&a.label,f=l.width,b={};h&&(h.attr(t),a.shortenLabel?a.shortenLabel():F&&!f&&"nowrap"!==l.whiteSpace&&(F=this.min&&a<=this.max||this.grid&&this.grid.isColumn)f[a]||(f[a]=new K(this,a)),e&&f[a].isNew&&f[a].render(h,!0,-1),f[a].render(h)};c.prototype.render=function(){var a=this,h=a.chart,f=a.logarithmic,b=a.options,u=a.isLinked,t=a.tickPositions,k=a.axisTitle,c=a.ticks,g=a.minorTicks,E=a.alternateBands,F=b.stackLabels,n=b.alternateGridColor, I=a.tickmarkOffset,G=a.axisLine,w=a.showAxis,m=d(h.renderer.globalAnimation),p,q;a.labelEdge.length=0;a.overlap=!1;[c,g,E].forEach(function(a){l(a,function(a){a.isActive=!1})});if(a.hasData()||u)a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(h){a.renderMinorTick(h)}),t.length&&(t.forEach(function(h,f){a.renderTick(h,f)}),I&&(0===a.min||a.single)&&(c[-1]||(c[-1]=new K(a,-1,null,!0)),c[-1].render(-1))),n&&t.forEach(function(e,b){q="undefined"!==typeof t[b+1]?t[b+1]+I: a.max-I;0===b%2&&ed&&(!b||q<=m)&&"undefined"!==typeof q&&n.push(q); q>m&&(M=!0);q=J}}}else d=this.lin2log(d),m=this.lin2log(m),c=b?g.getMinorTickInterval():q.tickInterval,c=D("auto"===c?null:c,this.minorAutoInterval,q.tickPixelInterval/(b?5:1)*(m-d)/((b?p/g.tickPositions.length:p)||1)),c=z(c,void 0,C(c)),n=g.getLinearTickPositions(c,d,m).map(this.log2lin),b||(this.minorAutoInterval=c/5);b||(g.tickInterval=c);return n};c.prototype.lin2log=function(c){return Math.pow(10,c)};c.prototype.log2lin=function(c){return Math.log(c)/Math.LN10};return c}();v=function(){function c(){} c.compose=function(c){c.keepProps.push("logarithmic");q(c,"init",function(d){var c=this.logarithmic;"logarithmic"!==d.userOptions.type?this.logarithmic=void 0:c||(this.logarithmic=new H(this))});q(c,"afterInit",function(){var d=this.logarithmic;d&&(this.lin2val=function(c){return d.lin2log(c)},this.val2lin=function(c){return d.log2lin(c)})})};return c}();v.compose(c);return v});P(c,"Core/Axis/PlotLineOrBand.js",[c["Core/Axis/Axis.js"],c["Core/Color/Palette.js"],c["Core/Utilities.js"]],function(c, v,A){var q=A.arrayMax,z=A.arrayMin,D=A.defined,H=A.destroyObjectProperties,K=A.erase,p=A.extend,d=A.fireEvent,m=A.isNumber,b=A.merge,g=A.objectEach,L=A.pick,x=function(){function c(b,d){this.axis=b;d&&(this.options=d,this.id=d.id)}c.prototype.render=function(){d(this,"render");var c=this,k=c.axis,n=k.horiz,m=k.logarithmic,p=c.options,w=p.label,e=c.label,t=p.to,a=p.from,r=p.value,E=D(a)&&D(t),F=D(r),G=c.svgElem,l=!G,f=[],I=p.color,h=L(p.zIndex,0),u=p.events;f={"class":"highcharts-plot-"+(E?"band ": "line ")+(p.className||"")};var O={},q=k.chart.renderer,y=E?"bands":"lines";m&&(a=m.log2lin(a),t=m.log2lin(t),r=m.log2lin(r));k.chart.styledMode||(F?(f.stroke=I||v.neutralColor40,f["stroke-width"]=L(p.width,1),p.dashStyle&&(f.dashstyle=p.dashStyle)):E&&(f.fill=I||v.highlightColor10,p.borderWidth&&(f.stroke=p.borderColor,f["stroke-width"]=p.borderWidth)));O.zIndex=h;y+="-"+h;(m=k.plotLinesAndBandsGroups[y])||(k.plotLinesAndBandsGroups[y]=m=q.g("plot-"+y).attr(O).add());l&&(c.svgElem=G=q.path().attr(f).add(m)); if(F)f=k.getPlotLinePath({value:r,lineWidth:G.strokeWidth(),acrossPanes:p.acrossPanes});else if(E)f=k.getPlotBandPath(a,t,p);else return;!c.eventsAdded&&u&&(g(u,function(a,h){G.on(h,function(a){u[h].apply(c,[a])})}),c.eventsAdded=!0);(l||!G.d)&&f&&f.length?G.attr({d:f}):G&&(f?(G.show(!0),G.animate({d:f})):G.d&&(G.hide(),e&&(c.label=e=e.destroy())));w&&(D(w.text)||D(w.formatter))&&f&&f.length&&0this.max&&d>this.max;if(c&&k){if(b){var e=c.toString()===k.toString();w=0}for(b=0;be){f=l;break}if(t[f]&&c.substr(t[f])!=="01-01 00:00:00.000".substr(t[f]))break;"week"!==f&&(l=f)}if(f)var k=d.resolveDTLFormat(r[f]).main;return k};c.prototype.getLabel=function(){var e=this,b=this.chart.renderer,a=this.chart.styledMode,r=this.options,c="tooltip"+(d(r.className)?" "+r.className: ""),k=r.style&&r.style.pointerEvents||(!this.followPointer&&r.stickOnContact?"auto":"none"),g,l=function(){e.inContact=!0},f=function(){var a=e.chart.hoverSeries;e.inContact=!1;if(a&&a.onMouseOut)a.onMouseOut()};if(!this.label){if(this.outside){var n=this.chart.options.chart.style,h=C.getRendererType();this.container=g=v.doc.createElement("div");g.className="highcharts-tooltip-container";p(g,{position:"absolute",top:"1px",pointerEvents:k,zIndex:Math.max(this.options.style&&this.options.style.zIndex|| 0,(n&&n.zIndex||0)+3)});v.doc.body.appendChild(g);this.renderer=b=new h(g,0,0,n,void 0,void 0,b.styledMode)}this.split?this.label=b.g(c):(this.label=b.label("",0,0,r.shape||"callout",null,null,r.useHTML,null,c).attr({padding:r.padding,r:r.borderRadius}),a||this.label.attr({fill:r.backgroundColor,"stroke-width":r.borderWidth}).css(r.style).css({pointerEvents:k}).shadow(r.shadow));a&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index));if(e.outside&&!e.split){var u=this.label, w=u.xSetter,m=u.ySetter;u.xSetter=function(a){w.call(u,e.distance);g.style.left=a+"px"};u.ySetter=function(a){m.call(u,e.distance);g.style.top=a+"px"}}this.label.on("mouseenter",l).on("mouseleave",f).attr({zIndex:8}).add()}return this.label};c.prototype.getPosition=function(e,b,a){var d=this.chart,c=this.distance,t={},g=d.inverted&&a.h||0,l,f=this.outside,n=f?H.documentElement.clientWidth-2*c:d.chartWidth,h=f?Math.max(H.body.scrollHeight,H.documentElement.scrollHeight,H.body.offsetHeight,H.documentElement.offsetHeight, H.documentElement.clientHeight):d.chartHeight,u=d.pointer.getChartPosition(),w=function(l){var r="x"===l;return[l,r?n:h,r?e:b].concat(f?[r?e*u.scaleX:b*u.scaleY,r?u.left-c+(a.plotX+d.plotLeft)*u.scaleX:u.top-c+(a.plotY+d.plotTop)*u.scaleY,0,r?n:h]:[r?e:b,r?a.plotX+d.plotLeft:a.plotY+d.plotTop,r?d.plotLeft:d.plotTop,r?d.plotLeft+d.plotWidth:d.plotTop+d.plotHeight])},m=w("y"),p=w("x"),q=!this.followPointer&&k(a.ttBelow,!d.inverted===!!a.negative),x=function(a,h,e,b,l,d,r){var k=f?"y"===a?c*u.scaleY: c*u.scaleX:c,E=(e-b)/2,n=bI-g?I:I-g);else if(F)t[a]=Math.max(d,l+g+e>h?l:l+g);else return!1},B=function(a,h,f,e,b){var l;bh-c?l=!1:t[a]=bh-e/2?h-e-2:b-f/2;return l},J=function(a){var h=m;m=p;p=h;l=a},R=function(){!1!==x.apply(0,m)?!1!==B.apply(0,p)||l||(J(!0),R()):l?t.x=t.y=0:(J(!0),R())};(d.inverted||1h})&&(e=e.map(function(h){var f=a(h.anchorX,h.anchorY, h.point.isHeader,h.boxWidth,!1);return b(h,{target:f.y,x:f.x})}));c.cleanSplit();v.distribute(e,ba);var W=z,ca=z;e.forEach(function(a){var h=a.x,f=a.boxWidth;a=a.isHeader;a||(c.outside&&z+hca&&(ca=z+h))});e.forEach(function(a){var h=a.x,f=a.anchorX,b=a.pos,e=a.point.isHeader;b={visibility:"undefined"===typeof b?"hidden":"inherit",x:h,y:b+D,anchorX:f,anchorY:a.anchorY};if(c.outside&&ha[0]?Math.max(Math.abs(a[0]),g.width-a[0]):Math.max(Math.abs(a[0]),g.width);c.height=0>a[1]?Math.max(Math.abs(a[1]),g.height-Math.abs(a[1])):Math.max(Math.abs(a[1]),g.height);this.tracker?this.tracker.attr(c):(this.tracker=d.renderer.rect(c).addClass("highcharts-tracker").add(d),b.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};c.prototype.styledModeFormat=function(b){return b.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g, 'class="highcharts-color-{$1.colorIndex}"')};c.prototype.tooltipFooterHeaderFormatter=function(b,d){var a=d?"footer":"header",e=b.series,c=e.tooltipOptions,t=c.xDateFormat,k=e.xAxis,l=k&&"datetime"===k.options.type&&x(b.key),f=c[a+"Format"];d={isFooter:d,labelConfig:b};g(this,"headerFormatter",d,function(a){l&&!t&&(t=this.getXDateFormat(b,c,k));l&&t&&(b.point&&b.point.tooltipDateKeys||["key"]).forEach(function(a){f=f.replace("{point."+a+"}","{point."+a+":"+t+"}")});e.chart.styledMode&&(f=this.styledModeFormat(f)); a.text=q(f,{point:b,series:e},this.chart)});return d.text};c.prototype.update=function(b){this.destroy();B(!0,this.chart.options.tooltip.userOptions,b);this.init(this.chart,B(!0,this.options,b))};c.prototype.updatePosition=function(b){var e=this.chart,a=e.pointer,d=this.getLabel(),c=b.plotX+e.plotLeft;e=b.plotY+e.plotTop;a=a.getChartPosition();b=(this.options.positioner||this.getPosition).call(this,d.width,d.height,b);if(this.outside){var g=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(d.width+ g,d.height+g,!1);if(1!==a.scaleX||1!==a.scaleY)p(this.container,{transform:"scale("+a.scaleX+", "+a.scaleY+")"}),c*=a.scaleX,e*=a.scaleY;c+=a.left-b.x;e+=a.top-b.y}this.move(Math.round(b.x),Math.round(b.y||0),c,e)};return c}();v.Tooltip=c;return v.Tooltip});P(c,"Core/Pointer.js",[c["Core/Color/Color.js"],c["Core/Globals.js"],c["Core/Color/Palette.js"],c["Core/Tooltip.js"],c["Core/Utilities.js"]],function(c,v,A,C,z){var q=c.parse,H=v.charts,K=v.noop,p=z.addEvent,d=z.attr,m=z.css,b=z.defined,g=z.extend, L=z.find,x=z.fireEvent,n=z.isNumber,B=z.isObject,k=z.objectEach,M=z.offset,N=z.pick,J=z.splat;c=function(){function c(b,c){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=b;this.hasDragged=!1;this.options=c;this.init(b,c)}c.prototype.applyInactiveState=function(b){var e=[],a;(b||[]).forEach(function(b){a=b.series;e.push(a);a.linkedParent&&e.push(a.linkedParent);a.linkedSeries&&(e=e.concat(a.linkedSeries));a.navigatorSeries&&e.push(a.navigatorSeries)}); this.chart.series.forEach(function(a){-1===e.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};c.prototype.destroy=function(){var b=this;this.eventsToUnbind.forEach(function(b){return b()});this.eventsToUnbind=[];v.chartCount||(c.unbindDocumentMouseUp&&(c.unbindDocumentMouseUp=c.unbindDocumentMouseUp()),c.unbindDocumentTouchEnd&&(c.unbindDocumentTouchEnd=c.unbindDocumentTouchEnd()));clearInterval(b.tooltipTimeout);k(b,function(e,a){b[a]=void 0})}; c.prototype.drag=function(b){var e=this.chart,a=e.options.chart,c=this.zoomHor,d=this.zoomVert,g=e.plotLeft,k=e.plotTop,l=e.plotWidth,f=e.plotHeight,n=this.mouseDownX||0,h=this.mouseDownY||0,u=B(a.panning)?a.panning&&a.panning.enabled:a.panning,m=a.panKey&&b[a.panKey+"Key"],w=b.chartX,p=b.chartY,x=this.selectionMarker;if(!x||!x.touch)if(wg+l&&(w=g+l),pk+f&&(p=k+f),this.hasDragged=Math.sqrt(Math.pow(n-w,2)+Math.pow(h-p,2)),10b.options.findNearestPointBy.indexOf("y");b=b.searchPoint(a,e);if((e=B(b,!0)&&b.series)&&!(e=!B(g,!0))){e=g.distX-b.distX;var f=g.dist-b.dist,d=(b.series.group&&b.series.group.zIndex)-(g.series.group&&g.series.group.zIndex);e=0<(0!==e&&c?e:0!==f?f:0!==d?d:g.series.index>b.series.index?-1:1)}e&&(g=b)});return g};c.prototype.getChartCoordinatesFromPoint= function(b,c){var a=b.series,e=a.xAxis;a=a.yAxis;var d=b.shapeArgs;if(e&&a){var g=N(b.clientX,b.plotX),k=b.plotY||0;b.isNode&&d&&n(d.x)&&n(d.y)&&(g=d.x,k=d.y);return c?{chartX:a.len+a.pos-k,chartY:e.len+e.pos-g}:{chartX:g+e.pos,chartY:k+a.pos}}if(d&&d.x&&d.y)return{chartX:d.x,chartY:d.y}};c.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var b=this.chart.container,c=M(b);this.chartPosition={left:c.left,top:c.top,scaleX:1,scaleY:1};var a=b.offsetWidth;b=b.offsetHeight; 2m.max&&(a=m.max-R,L=!0);L?(B-= .8*(B-n[e][0]),"number"===typeof J&&(J-=.8*(J-n[e][1])),c()):n[e]=[B,J];F||(k[e]=q-E,k[t]=R);k=F?1/x:x;g[t]=R;g[e]=a;d[F?b?"scaleY":"scaleX":"scale"+h]=x;d["translate"+h]=k*E+(B-k*w)};c.prototype.reset=function(b,c){var a=this.chart,e=a.hoverSeries,d=a.hoverPoint,g=a.hoverPoints,k=a.tooltip,l=k&&k.shared?g:d;b&&l&&J(l).forEach(function(a){a.series.isCartesian&&"undefined"===typeof a.plotX&&(b=!1)});if(b)k&&l&&J(l).length&&(k.refresh(l),k.shared&&g?g.forEach(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),a.axes.forEach(function(a){a.crosshair&&d.series[a.coll]===a&&a.drawCrosshair(null,d)})));else{if(d)d.onMouseOut();g&&g.forEach(function(a){a.setState()});if(e)e.onMouseOut();k&&k.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());a.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=a.hoverPoints=a.hoverPoint=null}}; c.prototype.runPointActions=function(b,d){var a=this.chart,e=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,g=e?e.shared:!1,k=d||a.hoverPoint,n=k&&k.series||a.hoverSeries;d=this.getHoverData(k,n,a.series,(!b||"touchmove"!==b.type)&&(!!d||n&&n.directTouch&&this.isDirectTouch),g,b);k=d.hoverPoint;n=d.hoverSeries;var l=d.hoverPoints;d=n&&n.tooltipOptions.followPointer&&!n.tooltipOptions.split;g=g&&n&&!n.noSharedTooltip;if(k&&(k!==a.hoverPoint||e&&e.isHidden)){(a.hoverPoints||[]).forEach(function(a){-1=== l.indexOf(a)&&a.setState()});if(a.hoverSeries!==n)n.onMouseOver();this.applyInactiveState(l);(l||[]).forEach(function(a){a.setState("hover")});a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut");if(!k.series)return;a.hoverPoints=l;a.hoverPoint=k;k.firePointEvent("mouseOver");e&&e.refresh(g?l:k,b)}else d&&e&&!e.isHidden&&(k=e.getAnchor([{}],b),a.isInsidePlot(k[0],k[1],{visiblePlotOnly:!0})&&e.updatePosition({plotX:k[0],plotY:k[1]}));this.unDocMouseMove||(this.unDocMouseMove=p(a.container.ownerDocument, "mousemove",function(a){var b=H[c.hoverChartIndex];if(b)b.pointer.onDocumentMouseMove(a)}),this.eventsToUnbind.push(this.unDocMouseMove));a.axes.forEach(function(f){var e=N((f.crosshair||{}).snap,!0),h;e&&((h=a.hoverPoint)&&h.series[f.coll]===f||(h=L(l,function(a){return a.series[f.coll]===f})));h||!e?f.drawCrosshair(b,h):f.hideCrosshair()})};c.prototype.scaleGroups=function(b,c){var a=this.chart;a.series.forEach(function(e){var d=b||e.getPlotBox();e.xAxis&&e.xAxis.zoomEnabled&&e.group&&(e.group.attr(d), e.markerGroup&&(e.markerGroup.attr(d),e.markerGroup.clip(c?a.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(d))});a.clipRect.attr(c||a.clipBox)};c.prototype.setDOMEvents=function(){var b=this,d=this.chart.container,a=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(p(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(p(d,"mouseleave", this.onContainerMouseLeave.bind(this)));c.unbindDocumentMouseUp||(c.unbindDocumentMouseUp=p(a,"mouseup",this.onDocumentMouseUp.bind(this)));for(var r=this.chart.renderTo.parentElement;r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(p(r,"scroll",function(){delete b.chartPosition})),r=r.parentElement;v.hasTouch&&(this.eventsToUnbind.push(p(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(p(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})), c.unbindDocumentTouchEnd||(c.unbindDocumentTouchEnd=p(a,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};c.prototype.setHoverChartIndex=function(){var b=this.chart,d=v.charts[N(c.hoverChartIndex,-1)];if(d&&d!==b)d.pointer.onContainerMouseLeave({relatedTarget:!0});d&&d.mouseIsDown||(c.hoverChartIndex=b.index)};c.prototype.touch=function(b,c){var a=this.chart,e;this.setHoverChartIndex();if(1===b.touches.length)if(b=this.normalize(b),(e=a.isInsidePlot(b.chartX-a.plotLeft,b.chartY-a.plotTop, {visiblePlotOnly:!0}))&&!a.openMenu){c&&this.runPointActions(b);if("touchmove"===b.type){c=this.pinchDown;var d=c[0]?4<=Math.sqrt(Math.pow(c[0].chartX-b.chartX,2)+Math.pow(c[0].chartY-b.chartY,2)):!1}N(d,!0)&&this.pinch(b)}else c&&this.reset();else 2===b.touches.length&&this.pinch(b)};c.prototype.touchSelect=function(b){return!(!this.chart.options.chart.zoomBySingleTouch||!b.touches||1!==b.touches.length)};c.prototype.zoomOption=function(b){var e=this.chart,a=e.options.chart;e=e.inverted;var c=a.zoomType|| "";/touch/.test(b.type)&&(c=N(a.pinchType,c));this.zoomX=b=/x/.test(c);this.zoomY=a=/y/.test(c);this.zoomHor=b&&!e||a&&e;this.zoomVert=a&&!e||b&&e;this.hasZoom=b||a};return c}();"";return c});P(c,"Core/MSPointer.js",[c["Core/Globals.js"],c["Core/Pointer.js"],c["Core/Utilities.js"]],function(c,v,A){function q(){var b=[];b.item=function(b){return this[b]};g(x,function(c){b.push({pageX:c.pageX,pageY:c.pageY,target:c.target})});return b}function z(b,c,d,g){var k=H[v.hoverChartIndex||NaN];"touch"!==b.pointerType&& b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!k||(k=k.pointer,g(b),k[c]({type:d,target:b.currentTarget,preventDefault:p,touches:q()}))}var D=this&&this.__extends||function(){var b=function(c,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var d in c)c.hasOwnProperty(d)&&(b[d]=c[d])};return b(c,d)};return function(c,d){function g(){this.constructor=c}b(c,d);c.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),H=c.charts,K= c.doc,p=c.noop,d=c.win,m=A.addEvent,b=A.css,g=A.objectEach,L=A.removeEvent,x={},n=!!d.PointerEvent;return function(g){function k(){return null!==g&&g.apply(this,arguments)||this}D(k,g);k.isRequired=function(){return!(c.hasTouch||!d.PointerEvent&&!d.MSPointerEvent)};k.prototype.batchMSEvents=function(b){b(this.chart.container,n?"pointerdown":"MSPointerDown",this.onContainerPointerDown);b(this.chart.container,n?"pointermove":"MSPointerMove",this.onContainerPointerMove);b(K,n?"pointerup":"MSPointerUp", this.onDocumentPointerUp)};k.prototype.destroy=function(){this.batchMSEvents(L);g.prototype.destroy.call(this)};k.prototype.init=function(c,d){g.prototype.init.call(this,c,d);this.hasZoom&&b(c.container,{"-ms-touch-action":"none","touch-action":"none"})};k.prototype.onContainerPointerDown=function(b){z(b,"onContainerTouchStart","touchstart",function(b){x[b.pointerId]={pageX:b.pageX,pageY:b.pageY,target:b.currentTarget}})};k.prototype.onContainerPointerMove=function(b){z(b,"onContainerTouchMove","touchmove", function(b){x[b.pointerId]={pageX:b.pageX,pageY:b.pageY};x[b.pointerId].target||(x[b.pointerId].target=b.currentTarget)})};k.prototype.onDocumentPointerUp=function(b){z(b,"onDocumentTouchEnd","touchend",function(b){delete x[b.pointerId]})};k.prototype.setDOMEvents=function(){g.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(m)};return k}(v)});P(c,"Core/Series/Point.js",[c["Core/Renderer/HTML/AST.js"],c["Core/Animation/AnimationUtilities.js"],c["Core/FormatUtilities.js"], c["Core/Globals.js"],c["Core/DefaultOptions.js"],c["Core/Utilities.js"]],function(c,v,A,C,z,D){var q=v.animObject,K=A.format,p=z.defaultOptions,d=D.addEvent,m=D.defined,b=D.erase,g=D.extend,L=D.fireEvent,x=D.getNestedProperty,n=D.isArray,B=D.isFunction,k=D.isNumber,M=D.isObject,N=D.merge,J=D.objectEach,w=D.pick,e=D.syncTimeout,t=D.removeEvent,a=D.uniqueKey;"";v=function(){function r(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options= this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}r.prototype.animateBeforeDestroy=function(){var a=this,b={x:a.startXPos,opacity:0},e,c=a.getGraphicalProps();c.singular.forEach(function(f){e="dataLabel"===f;a[f]=a[f].animate(e?{x:a[f].startXPos,y:a[f].startYPos,opacity:0}:b)});c.plural.forEach(function(b){a[b].forEach(function(b){b.element&&b.animate(g({x:a.startXPos},b.startYPos?{x:b.startXPos,y:b.startYPos}:{}))})})};r.prototype.applyOptions=function(a, b){var e=this.series,c=e.options.pointValKey||e.pointValKey;a=r.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;c&&(this.y=r.prototype.getNestedProperty.call(this,c));this.formatPrefix=(this.isNull=w(this.isValid&&!this.isValid(),null===this.x||!k(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof b&&e.xAxis&&e.xAxis.hasNames&&(this.x=e.xAxis.nameToX(this)); "undefined"===typeof this.x&&e&&(this.x="undefined"===typeof b?e.autoIncrement(this):b);return this};r.prototype.destroy=function(){function a(){if(c.graphic||c.dataLabel||c.dataLabels)t(c),c.destroyElements();for(h in c)c[h]=null}var c=this,d=c.series,l=d.chart;d=d.options.dataSorting;var f=l.hoverPoints,g=q(c.series.chart.renderer.globalAnimation),h;c.legendItem&&l.legend.destroyItem(c);f&&(c.setState(),b(f,c),f.length||(l.hoverPoints=null));if(c===l.hoverPoint)c.onMouseOut();d&&d.enabled?(this.animateBeforeDestroy(), e(a,g.duration)):a();l.pointCount--};r.prototype.destroyElements=function(a){var b=this;a=b.getGraphicalProps(a);a.singular.forEach(function(a){b[a]=b[a].destroy()});a.plural.forEach(function(a){b[a].forEach(function(a){a.element&&a.destroy()});delete b[a]})};r.prototype.firePointEvent=function(a,b,e){var c=this,f=this.series.options;(f.point.events[a]||c.options&&c.options.events&&c.options.events[a])&&c.importEvents();"click"===a&&f.allowPointSelect&&(e=function(a){c.select&&c.select(null,a.ctrlKey|| a.metaKey||a.shiftKey)});L(c,a,b,e)};r.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};r.prototype.getGraphicalProps=function(a){var b= this,e=[],c,f={singular:[],plural:[]};a=a||{graphic:1,dataLabel:1};a.graphic&&e.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&e.push("dataLabel","dataLabelUpper","connector");for(c=e.length;c--;){var d=e[c];b[d]&&f.singular.push(d)}["dataLabel","connector"].forEach(function(h){var e=h+"s";a[h]&&b[e]&&f.plural.push(e)});return f};r.prototype.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}};r.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?x(a,this.options):this[a]};r.prototype.getZone=function(){var a=this.series,b=a.zones;a=a.zoneAxis||"y";var e=0,c;for(c=b[e];this[a]>=c.value;)c=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=c&&c.color&&!this.options.color?c.color:this.nonZonedColor;return c};r.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName|| this.graphic.element.nodeName))!==this.shapeType};r.prototype.init=function(b,e,c){this.series=b;this.applyOptions(e,c);this.id=m(this.id)?this.id:a();this.resolveColor();b.chart.pointCount++;L(this,"afterInit");return this};r.prototype.optionsToObject=function(a){var b={},e=this.series,c=e.options.keys,f=c||e.pointArrayMap||["y"],d=f.length,h=0,g=0;if(k(a)||null===a)b[f[0]]=a;else if(n(a))for(!c&&a.length>d&&(e=typeof a[0],"string"===e?b.name=a[0]:"number"===e&&(b.x=a[0]),h++);gd-6&&fh?this.maxItemWidth:a.itemWidth;c&&this.itemX-e+b>h&&(this.itemX=e,this.lastLineHeight&&(this.itemY+=f+this.lastLineHeight+ l),this.lastLineHeight=0);this.lastItemY=f+this.itemY+l;this.lastLineHeight=Math.max(d,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];c?this.itemX+=b:(this.itemY+=f+d+l,this.lastLineHeight=d);this.offsetWidth=this.widthOption||Math.max((c?this.itemX-e-(a.checkbox?0:g):b)+e,this.offsetWidth)};e.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(b){var e=b&&b.options;b&&M(e.showInLegend,g(e.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||("point"===e.legendType? b.data:b)))});n(this,"afterGetAllItems",{allItems:a});return a};e.prototype.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)};e.prototype.adjustMargins=function(a,b){var e=this.chart,c=this.options,d=this.getAlignment();d&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(l,f){l.test(d)&&!g(a[f])&&(e[p[f]]=Math.max(e[p[f]],e.legend[(f+1)%2?"legendHeight": "legendWidth"]+[1,-1,-1,1][f]*c[f%2?"x":"y"]+M(c.margin,12)+b[f]+(e.titleOffset[f]||0)))})};e.prototype.proximatePositions=function(){var a=this.chart,b=[],e="left"===this.options.align;this.allItems.forEach(function(c){var d;var l=e;if(c.yAxis){c.xAxis.options.reversed&&(l=!l);c.points&&(d=x(l?c.points:c.points.slice(0).reverse(),function(a){return B(a.plotY)}));l=this.itemMarginTop+c.legendItem.getBBox().height+this.itemMarginBottom;var f=c.yAxis.top-a.plotTop;c.visible?(d=d?d.plotY:c.yAxis.height, d+=f-.3*l):d=f+c.yAxis.height;b.push({target:d,size:l,item:c})}},this);A.distribute(b,a.plotHeight);b.forEach(function(b){b.item._legendItemPos[1]=a.plotTop-a.spacing[0]+b.pos})};e.prototype.render=function(){var a=this.chart,b=a.renderer,e=this.group,c=this.box,d=this.options,l=this.padding;this.itemX=l;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=N(d.width,a.spacingBox.width-l);var f=a.spacingBox.width-2*l-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0, 2))&&(f/=2);this.maxLegendWidth=this.widthOption||f;e||(this.group=e=b.g("legend").addClass(d.className||"").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();var g=this.getAllItems();J(g,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});d.reversed&&g.reverse();this.allItems=g;this.display=f=!!g.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight= 0;g.forEach(this.renderItem,this);g.forEach(this.layoutItem,this);g=(this.widthOption||this.offsetWidth)+l;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h);h+=l;c||(this.box=c=b.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(e),c.isNew=!0);a.styledMode||c.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);0l&&!1!==n.enabled?(this.clipHeight=h=Math.max(l-20-this.titleHeight-f,0),this.currentPage=M(this.currentPage,1),this.fullHeight= a,x.forEach(function(a,b){var e=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=p.length;if(!f||e-p[f-1]>h&&(q||e)!==p[f-1])p.push(q||e),f++;a.pageIx=f-1;q&&(x[b-1].pageIx=f-1);b===x.length-1&&e+c-p[f-1]>h&&e!==q&&(p.push(e),a.pageIx=f);e!==q&&(q=e)}),k||(k=b.clipRect=c.clipRect(0,f,9999,0),b.contentGroup.clip(k)),R(h),w||(this.nav=w=c.g().attr({zIndex:1}).add(this.group),this.up=c.symbol("triangle",0,0,m,m).add(w),B("upTracker").on("click",function(){b.scroll(-1,t)}),this.pager= c.text("",15,10).addClass("highcharts-legend-navigation"),e.styledMode||this.pager.css(n.style),this.pager.add(w),this.down=c.symbol("triangle-down",0,0,m,m).add(w),B("downTracker").on("click",function(){b.scroll(1,t)})),b.scroll(0),a=l):w&&(R(),this.nav=w.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a};e.prototype.scroll=function(a,b){var e=this,c=this.chart,d=this.pages,l=d.length,f=this.currentPage+a;a=this.clipHeight;var g=this.options.navigation,h=this.pager,k=this.padding; f>l&&(f=l);0=Math.max(g+f,r.pos)&&l<=Math.min(g+f+c.width,r.pos+r.len)|| (a.isInsidePlot=!1)}!h.ignoreY&&a.isInsidePlot&&(e=u&&(e?u.xAxis:u.yAxis)||{pos:d,len:Infinity},h=h.paneCoordinates?e.pos+b:d+b,h>=Math.max(k+d,e.pos)&&h<=Math.min(k+d+c.height,e.pos+e.len)||(a.isInsidePlot=!1));S(this,"afterIsInsidePlot",a);return a.isInsidePlot};b.prototype.redraw=function(a){S(this,"beforeRedraw");var b=this.hasCartesianSeries?this.axes:this.colorAxis||[],h=this.series,e=this.pointer,c=this.legend,f=this.userOptions.legend,d=this.renderer,l=d.isHidden(),g=[],u=this.isDirtyBox, r=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);k(this.hasRendered?a:!1,this);l&&this.temporaryDisplay();this.layOutTitles();for(a=h.length;a--;){var n=h[a];if(n.options.stacking||n.options.centerInCategory){var t=!0;if(n.isDirty){var m=!0;break}}}if(m)for(a=h.length;a--;)n=h[a],n.options.stacking&&(n.isDirty=!0);h.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),r=!0):f&&(f.labelFormatter||f.labelFormat)&&(r=!0)); a.isDirtyData&&S(a,"updatedData")});r&&c&&c.options.enabled&&(c.render(),this.isDirtyLegend=!1);t&&this.getStacks();b.forEach(function(a){a.updateNames();a.setScale()});this.getMargins();b.forEach(function(a){a.isDirty&&(u=!0)});b.forEach(function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,g.push(function(){S(a,"afterSetExtremes",y(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(u||t)&&a.redraw()});u&&this.drawChartBox();S(this,"predraw");h.forEach(function(a){(u||a.isDirty)&&a.visible&& a.redraw();a.isDirtyData=!1});e&&e.reset(!0);d.draw();S(this,"redraw");S(this,"render");l&&this.temporaryDisplay(!0);g.forEach(function(a){a.call()})};b.prototype.get=function(a){function b(b){return b.id===a||b.options&&b.options.id===a}for(var h=this.series,e=Q(this.axes,b)||Q(this.series,b),c=0;!e&&c=g&&c<=k||u||!h(c))r=!0;e[u?"zoomX":"zoomY"]&&r&&(d=l.zoom(a.min, a.max),l.displayBtn&&(f=!0))});var l=b.resetZoomButton;f&&!l?b.showResetZoom():!f&&ea(l)&&(b.resetZoomButton=l.destroy());d&&b.redraw(T(b.options.chart.animation,a&&a.animation,100>b.pointCount))};b.prototype.pan=function(a,b){var h=this,e=h.hoverPoints;b="object"===typeof b?b:{enabled:b,type:"x"};var c=h.options.chart,f=h.options.mapNavigation&&h.options.mapNavigation.enabled;c&&c.panning&&(c.panning=b);var d=b.type,l;S(this,"pan",{originalEvent:a},function(){e&&e.forEach(function(a){a.setState()}); var b=h.xAxis;"xy"===d?b=b.concat(h.yAxis):"y"===d&&(b=h.yAxis);var c={};b.forEach(function(b){if(b.options.panningEnabled&&!b.options.isInternal){var e=b.horiz,g=a[e?"chartX":"chartY"];e=e?"mouseDownX":"mouseDownY";var k=h[e],u=b.minPointOffset||0,r=b.reversed&&!h.inverted||!b.reversed&&h.inverted?-1:1,n=b.getExtremes(),m=b.toValue(k-g,!0)+u*r,t=b.toValue(k+b.len-g,!0)-(u*r||b.isXAxis&&b.pointRangePadding||0),w=t=r&&m<=t&&(b.setExtremes(k,m,!1,!1,{trigger:"pan"}),h.resetZoomButton||f||k===r||m===t||!d.match("y")||(h.showResetZoom(),b.displayBtn=!1),l=!0),c[e]=g)}});da(c,function(a,b){h[b]=a});l&&h.redraw(!1);I(h.container,{cursor:"move"})})};return b}();y(c.prototype,{callbacks:[],collectionsWithInit:{xAxis:[c.prototype.addAxis,[!0]],yAxis:[c.prototype.addAxis,[!1]],series:[c.prototype.addSeries]}, collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}); "";return c});P(c,"Mixins/LegendSymbol.js",[c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,v){var q=v.merge,C=v.pick;return c.LegendSymbolMixin={drawRectangle:function(c,q){var v=c.symbolHeight,z=c.options.squareSymbol;q.legendSymbol=this.chart.renderer.rect(z?(c.symbolWidth-v)/2:0,c.baseline-v+1,z?v:c.symbolWidth,v,C(c.options.symbolRadius,v/2)).addClass("highcharts-point").attr({zIndex:3}).add(q.legendGroup)},drawLineMarker:function(c){var v=this.options,z=v.marker,K=c.symbolWidth,p=c.symbolHeight, d=p/2,m=this.chart.renderer,b=this.legendGroup;c=c.baseline-Math.round(.3*c.fontMetrics.b);var g={};this.chart.styledMode||(g={"stroke-width":v.lineWidth||0},v.dashStyle&&(g.dashstyle=v.dashStyle));this.legendLine=m.path([["M",0,c],["L",K,c]]).addClass("highcharts-graph").attr(g).add(b);z&&!1!==z.enabled&&K&&(v=Math.min(C(z.radius,d),d),0===this.symbol.indexOf("url")&&(z=q(z,{width:p,height:p}),v=0),this.legendSymbol=z=m.symbol(this.symbol,K/2-v,c-v,2*v,2*v,z).addClass("highcharts-point").add(b), z.isMarker=!0)}}});P(c,"Core/Series/Series.js",[c["Core/Animation/AnimationUtilities.js"],c["Core/Foundation.js"],c["Core/Globals.js"],c["Mixins/LegendSymbol.js"],c["Core/DefaultOptions.js"],c["Core/Color/Palette.js"],c["Core/Series/Point.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Renderer/SVG/SVGElement.js"],c["Core/Utilities.js"]],function(c,v,A,C,z,D,H,K,p,d){var m=c.animObject,b=c.setAnimation,g=v.registerEventOptions,q=A.hasTouch,x=A.svg,n=A.win,B=z.defaultOptions,k=K.seriesTypes,M=d.addEvent, N=d.arrayMax,J=d.arrayMin,w=d.clamp,e=d.cleanRecursively,t=d.correctFloat,a=d.defined,r=d.erase,E=d.error,F=d.extend,G=d.find,l=d.fireEvent,f=d.getNestedProperty,I=d.isArray,h=d.isNumber,u=d.isString,O=d.merge,X=d.objectEach,y=d.pick,Q=d.removeEvent,S=d.splat,Z=d.syncTimeout;c=function(){function c(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions= this.data=this.chart=this._i=void 0}c.prototype.init=function(a,b){l(this,"init",{options:b});var c=this,h=a.series;this.eventsToUnbind=[];c.chart=a;c.options=c.setOptions(b);b=c.options;c.linkedSeries=[];c.bindAxes();F(c,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});g(this,b);var e=b.events;if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;c.getColor();c.getSymbol();c.parallelArrays.forEach(function(a){c[a+"Data"]||(c[a+ "Data"]=[])});c.isCartesian&&(a.hasCartesianSeries=!0);var f;h.length&&(f=h[h.length-1]);c._i=y(f&&f._i,-1)+1;c.opacity=c.options.opacity;a.orderSeries(this.insert(h));b.dataSorting&&b.dataSorting.enabled?c.setDataSortingOptions():c.points||c.data||c.setData(b.data,!1);l(this,"afterInit")};c.prototype.is=function(a){return k[a]&&this instanceof k[a]};c.prototype.insert=function(a){var b=this.options.index,c;if(h(b)){for(c=a.length;c--;)if(b>=y(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 y(c,a.length-1)};c.prototype.bindAxes=function(){var a=this,b=a.options,c=a.chart,h;l(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(e){var f=0;c[e].forEach(function(c){h=c.options;if(b[e]===f&&!h.isInternal||"undefined"!==typeof b[e]&&b[e]===h.id||"undefined"===typeof b[e]&&0===h.index)a.insert(c.series),a[e]=c,c.isDirty=!0;h.isInternal||f++});a[e]||a.optionalAxis===e||E(18,!0,c)})});l(this,"afterBindAxes")};c.prototype.updateParallelArrays= function(a,b){var c=a.series,e=arguments,f=h(b)?function(h){var e="y"===h&&c.toYData?c.toYData(a):a[h];c[h+"Data"][b]=e}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(e,2))};c.parallelArrays.forEach(f)};c.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?u-this.cropStart:u);!d&&f[u]&&f[u].touched&&(u=void 0);return u};c.prototype.updateData=function(b,c){var e=this.options,f=e.dataSorting,d=this.points, l=[],g,k,u,r=this.requireSorting,n=b.length===d.length,m=!0;this.xIncrement=null;b.forEach(function(b,c){var k=a(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b)||{};var m=k.x;if(k.id||h(m)){if(m=this.findPointIndex(k,u),-1===m||"undefined"===typeof m?l.push(b):d[m]&&b!==e.data[m]?(d[m].update(b,!1,null,!1),d[m].touched=!0,r&&(u=m+1)):d[m]&&(d[m].touched=!0),!n||c!==m||f&&f.enabled||this.hasDerivedData)g=!0}else l.push(b)},this);if(g)for(b=d.length;b--;)(k=d[b])&&!k.touched&&k.remove&& k.remove(!1,c);else!n||f&&f.enabled?m=!1:(b.forEach(function(a,b){a!==d[b].y&&d[b].update&&d[b].update(a,!1,null,!1)}),l.length=0);d.forEach(function(a){a&&(a.touched=!1)});if(!m)return!1;l.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=N(this.xData),this.autoIncrement());return!0};c.prototype.setData=function(a,b,c,e){var f=this,d=f.points,l=d&&d.length||0,g,k=f.options,r=f.chart,n=k.dataSorting,m=null,t=f.xAxis; m=k.turboThreshold;var w=this.xData,p=this.yData,q=(g=f.pointArrayMap)&&g.length,x=k.keys,O=0,R=1,F;a=a||[];g=a.length;b=y(b,!0);n&&n.enabled&&(a=this.sortData(a));!1!==e&&g&&l&&!f.cropped&&!f.hasGroupedData&&f.visible&&!f.isSeriesBoosting&&(F=this.updateData(a,c));if(!F){f.xIncrement=null;f.colorCounter=0;this.parallelArrays.forEach(function(a){f[a+"Data"].length=0});if(m&&g>m)if(m=f.getFirstValidPoint(a),h(m))for(c=0;ca?1:0}).forEach(function(a,b){a.x=b},this);c.linkedSeries&&c.linkedSeries.forEach(function(a){var c=a.options,h=c.data;c.dataSorting&&c.dataSorting.enabled|| !h||(h.forEach(function(c,f){h[f]=e(a,c);b[f]&&(h[f].x=b[f].x,h[f].index=f)}),a.setData(h,!1))});return b};c.prototype.getProcessedData=function(a){var b=this.xData,c=this.yData,h=b.length;var e=0;var f=this.xAxis,d=this.options;var l=d.cropThreshold;var g=a||this.getExtremesFromAll||d.getExtremesFromAll,k=this.isCartesian;a=f&&f.val2lin;d=!(!f||!f.logarithmic);var u=this.requireSorting;if(f){f=f.getExtremes();var r=f.min;var n=f.max}if(k&&this.sorted&&!g&&(!l||h>l||this.forceCrop))if(b[h-1] n)b=[],c=[];else if(this.yData&&(b[0]n)){e=this.cropData(this.xData,this.yData,r,n);b=e.xData;c=e.yData;e=e.start;var m=!0}for(l=b.length||1;--l;)if(h=d?a(b[l])-a(b[l-1]):b[l]-b[l-1],0h&&u&&(E(15,!1,this.chart),u=!1);return{xData:b,yData:c,cropped:m,cropStart:e,closestPointRange:t}};c.prototype.processData=function(a){var b=this.xAxis;if(this.isCartesian&&!this.isDirty&&!b.isDirty&&!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData(); this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange};c.prototype.cropData=function(a,b,c,h,e){var f=a.length,d=0,l=f,g;e=y(e,this.cropShoulder);for(g=0;g=c){d=Math.max(0,g-e);break}for(c=g;ch){l=c+e;break}return{xData:a.slice(d,l),yData:b.slice(d,l),start:d,end:l}};c.prototype.generatePoints=function(){var a=this.options,b=a.data,c=this.data,h,e=this.processedXData, f=this.processedYData,d=this.pointClass,g=e.length,k=this.cropStart||0,u=this.hasGroupedData,r=a.keys,n=[],m;a=a.dataGrouping&&a.dataGrouping.groupAll?k:0;c||u||(c=[],c.length=b.length,c=this.data=c);r&&u&&(this.options.keys=!1);for(m=0;m=k&&(f[m-r]||t)<=u;if(w&&t)if(w=p.length)for(;w--;)h(p[w])&&(d[g++]=p[w]);else d[g++]=p}a={dataMin:J(d),dataMax:N(d)};l(this,"afterGetExtremes",{dataExtremes:a});return a};c.prototype.applyExtremes=function(){var a=this.getExtremes();this.dataMin=a.dataMin; this.dataMax=a.dataMax;return a};c.prototype.getFirstValidPoint=function(a){for(var b=null,c=a.length,h=0;null===b&&h=L&&(L=null),G.total=G.stackTotal=N.total,G.percentage=N.total&&G.y/N.total*100,G.stackY=J,this.irregularWidths||N.setOffset(this.pointXOffset||0,this.barW||0));G.yBottom=a(L)?w(g.translate(L,0,1,0,1),-1E5,1E5):null;r&&(J=this.modifyValue(J,G));G.plotY=void 0;h(J)&&(J=g.translate(J,!1,!0,!1,!0),"undefined"!==typeof J&&(G.plotY=w(J,-1E5,1E5)));G.isInside=this.isPointInside(G);G.clientX=p?t(e.translate(E,0,0,0,1,m)):O;G.negative=G[F]<(b[F+"Threshold"]||q||0);G.category= f&&"undefined"!==typeof f[G.x]?f[G.x]:G.x;if(!G.isNull&&!1!==G.visible){"undefined"!==typeof z&&(B=Math.min(B,Math.abs(O-z)));var z=O}G.zone=this.zones.length&&G.getZone();!G.graphic&&this.group&&d&&(G.isNew=!0)}this.closestPointRangePx=B;l(this,"afterTranslate")};c.prototype.getValidPoints=function(a,b,c){var h=this.chart;return(a||this.points||[]).filter(function(a){return b&&!h.isInsidePlot(a.plotX,a.plotY,{inverted:h.inverted})?!1:!1!==a.visible&&(c||!a.isNull)})};c.prototype.getClipBox=function(a, b){var c=this.options,h=this.chart,e=h.inverted,f=this.xAxis,d=f&&this.yAxis,l=h.options.chart.scrollablePlotArea||{};a&&!1===c.clip&&d?a=e?{y:-h.chartWidth+d.len+d.pos,height:h.chartWidth,width:h.chartHeight,x:-h.chartHeight+f.len+f.pos}:{y:-d.pos,height:h.chartHeight,width:h.chartWidth,x:-f.pos}:(a=this.clipBox||h.clipBox,b&&(a.width=h.plotSizeX,a.x=(h.scrollablePixelsX||0)*(l.scrollPositionX||0)));return b?{width:a.width,x:a.x}:a};c.prototype.getSharedClipKey=function(a){if(this.sharedClipKey)return this.sharedClipKey; var b=[a&&a.duration,a&&a.easing,a&&a.defer,this.getClipBox(a).height,this.options.xAxis,this.options.yAxis].join();if(!1!==this.options.clip||a)this.sharedClipKey=b;return b};c.prototype.setClip=function(a){var b=this.chart,c=this.options,h=b.renderer,e=b.inverted,f=this.clipBox,d=this.getClipBox(a),l=this.getSharedClipKey(a),g=b.sharedClips[l],k=b.sharedClips[l+"m"];a&&(d.width=0,e&&(d.x=b.plotHeight+(!1!==c.clip?0:b.plotTop)));g?b.hasLoaded||g.attr(d):(a&&(b.sharedClips[l+"m"]=k=h.clipRect(e?(b.plotSizeX|| 0)+99:-99,e?-b.plotLeft:-b.plotTop,99,e?b.chartWidth:b.chartHeight)),b.sharedClips[l]=g=h.clipRect(d),g.count={length:0});a&&!g.count[this.index]&&(g.count[this.index]=!0,g.count.length+=1);if(!1!==c.clip||a)this.group.clip(a||f?g:b.clipRect),this.markerGroup.clip(k);a||(g.count[this.index]&&(delete g.count[this.index],--g.count.length),0===g.count.length&&(f||(b.sharedClips[l]=g.destroy()),k&&(b.sharedClips[l+"m"]=k.destroy())))};c.prototype.animate=function(a){var b=this.chart,c=m(this.options.animation), h=this.sharedClipKey;if(a)this.setClip(c);else if(h){a=b.sharedClips[h];h=b.sharedClips[h+"m"];var e=this.getClipBox(c,!0);a&&a.animate(e,c);h&&h.animate({width:e.width+99,x:e.x-(b.inverted?0:99)},c)}};c.prototype.afterAnimate=function(){this.setClip();l(this,"afterAnimate");this.finishedAnimating=!0};c.prototype.drawPoints=function(){var a=this.points,b=this.chart,c,h,e=this.options.marker,f=this[this.specialGroup]||this.markerGroup,d=this.xAxis,l=y(e.enabled,!d||d.isRadial?!0:null,this.closestPointRangePx>= e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(c=0;cF.max;a.resetZones&&0===f&&(f=void 0)});this.clips=d}else a.visible&&(g&&g.show(!0),k&&k.show(!0))};c.prototype.invertGroups= function(a){function b(){["group","markerGroup"].forEach(function(b){c[b]&&(h.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(c.isRadialSeries?!1:a))})}var c=this,h=c.chart;c.xAxis&&(c.eventsToUnbind.push(M(h,"resize",b)),b(),c.invertGroups=b)};c.prototype.plotGroup=function(b,c,h,e,f){var d=this[b],l=!d;h={visibility:h,zIndex:e||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(h.opacity= this.opacity);l&&(this[b]=d=this.chart.renderer.g().add(f));d.addClass("highcharts-"+c+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(a(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(d.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);d.attr(h)[l?"attr":"animate"](this.getPlotBox());return d};c.prototype.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}};c.prototype.removeEvents=function(a){a||Q(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0)};c.prototype.render=function(){var a=this,b=a.chart,c=a.options,h=m(c.animation),e=!a.finishedAnimating&&b.renderer.isSVG&&h.duration,f=a.visible?"inherit":"hidden",d=c.zIndex,g=a.hasRendered,k=b.seriesGroup,u=b.inverted;l(this,"render");var r=a.plotGroup("group","series",f,d,k);a.markerGroup= a.plotGroup("markerGroup","markers",f,d,k);e&&a.animate&&a.animate(!0);r.inverted=y(a.invertible,a.isCartesian)?u:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(u);!1===c.clip||a.sharedClipKey||g||r.clip(b.clipRect);e&&a.animate&&a.animate();g||(e&&h.defer&&(e+=h.defer),a.animationTimeout=Z(function(){a.afterAnimate()},e|| 0));a.isDirty=!1;a.hasRendered=!0;l(a,"afterRender")};c.prototype.redraw=function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,h=this.xAxis,e=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:y(h&&h.left,a.plotLeft),translateY:y(e&&e.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree};c.prototype.searchPoint=function(a,b){var c=this.xAxis,h=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?c.len- a.chartY+c.pos:a.chartX-c.pos,plotY:e?h.len-a.chartX+h.pos:a.chartY-h.pos},b,a)};c.prototype.buildKDTree=function(a){function b(a,h,e){var f;if(f=a&&a.length){var d=c.kdAxisArray[h%e];a.sort(function(a,b){return a[d]-b[d]});f=Math.floor(f/2);return{point:a[f],left:b(a.slice(0,f),h+1,e),right:b(a.slice(f+1),h+1,e)}}}this.buildingKdTree=!0;var c=this,h=-1r?"left":"right";m=0>r?"right":"left";c[t]&&(t=e(b,c[t],h+1,k),n=t[g]t;)p--;this.updateParallelArrays(m,"splice",p,0,0);this.updateParallelArrays(m,p);k&&m.name&&(k[t]=m.name);u.splice(p,0,a);n&&(this.data.splice(p,0,null),this.processData());"point"===f.legendType&&this.generatePoints();c&& (d[0]&&d[0].remove?d[0].remove(!1):(d.shift(),this.updateParallelArrays(m,"shift"),u.shift()));!1!==e&&l(this,"addPoint",{point:m});this.isDirtyData=this.isDirty=!0;b&&g.redraw(h)};c.prototype.removePoint=function(a,c,h){var e=this,f=e.data,d=f[a],l=e.points,g=e.chart,k=function(){l&&l.length===f.length&&l.splice(a,1);f.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(d||{series:e},"splice",a,1);d&&d.destroy();e.isDirty=!0;e.isDirtyData=!0;c&&g.redraw()};b(h,g);c=y(c,!0);d?d.firePointEvent("remove", null,k):k()};c.prototype.remove=function(a,b,c,h){function e(){f.destroy(h);d.isDirtyLegend=d.isDirtyBox=!0;d.linkSeries();y(a,!0)&&d.redraw(b)}var f=this,d=f.chart;!1!==c?l(f,"remove",null,e):e()};c.prototype.update=function(a,b){a=e(a,this.userOptions);l(this,"update",{options:a});var c=this,h=c.chart,f=c.userOptions,d=c.initialType||c.type,g=h.options.plotOptions,u=a.type||f.type||h.options.chart.type,r=!(this.hasDerivedData||u&&u!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval|| c.hasOptionChanged("dataGrouping")||c.hasOptionChanged("pointStart")||c.hasOptionChanged("pointInterval")||c.hasOptionChanged("pointIntervalUnit")||c.hasOptionChanged("keys")),n=k[d].prototype,m,t=["eventOptions","navigatorSeries","baseSeries"],p=c.finishedAnimating&&{animation:!1},w={};u=u||d;r&&(t.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"), !1!==a.visible&&t.push("area","graph"),c.parallelArrays.forEach(function(a){t.push(a+"Data")}),a.data&&(a.dataSorting&&F(c.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=O(f,p,{index:"undefined"===typeof f.index?c.index:f.index,pointStart:y(g&&g.series&&g.series.pointStart,f.pointStart,c.xData[0])},!r&&{data:c.options.data},a);r&&a.data&&(a.data=c.options.data);t=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(t);t.forEach(function(a){t[a]=c[a];delete c[a]});f=!1; if(k[u]){if(f=u!==c.type,c.remove(!1,!1,!1,!0),f)if(Object.setPrototypeOf)Object.setPrototypeOf(c,k[u].prototype);else{g=Object.hasOwnProperty.call(c,"hcEvents")&&c.hcEvents;for(m in n)c[m]=void 0;F(c,k[u].prototype);g?c.hcEvents=g:delete c.hcEvents}}else E(17,!0,h,{missingModuleFor:u});t.forEach(function(a){c[a]=t[a]});c.init(h,a);if(r&&this.points){var I=c.options;!1===I.visible?(w.graphic=1,w.dataLabel=1):c._hasPointLabels||(a=I.marker,u=I.dataLabels,a&&(!1===a.enabled||"symbol"in a)&&(w.graphic= 1),u&&!1===u.enabled&&(w.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(w).length&&a.destroyElements(w),!1===I.showInLegend&&a.legendItem&&h.legend.destroyItem(a))},this)}c.initialType=d;h.linkSeries();f&&c.linkedSeries.length&&(c.isDirtyData=!0);l(this,"afterUpdate");y(b,!0)&&h.redraw(r?void 0:!1)};c.prototype.setName=function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0};c.prototype.hasOptionChanged=function(a){var b= this.options[a],c=this.chart.options.plotOptions,h=this.userOptions[a];return h?b!==h:b!==y(c&&c[this.type]&&c[this.type][a],c&&c.series&&c.series[a],b)};c.prototype.onMouseOver=function(){var a=this.chart,b=a.hoverSeries;a.pointer.setHoverChartIndex();if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&l(this,"mouseOver");this.setState("hover");a.hoverSeries=this};c.prototype.onMouseOut=function(){var a=this.options,b=this.chart,c=b.tooltip,h=b.hoverPoint;b.hoverSeries=null;if(h)h.onMouseOut(); this&&a.events.mouseOut&&l(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();b.series.forEach(function(a){a.setState("",!0)})};c.prototype.setState=function(a,b){var c=this,h=c.options,e=c.graph,f=h.inactiveOtherPoints,d=h.states,l=h.lineWidth,g=h.opacity,k=y(d[a||"normal"]&&d[a||"normal"].animation,c.chart.options.chart.animation);h=0;a=a||"";if(c.state!==a&&([c.group,c.markerGroup,c.dataLabelsGroup].forEach(function(b){b&&(c.state&&b.removeClass("highcharts-series-"+ c.state),a&&b.addClass("highcharts-series-"+a))}),c.state=a,!c.chart.styledMode)){if(d[a]&&!1===d[a].enabled)return;a&&(l=d[a].lineWidth||l+(d[a].lineWidthPlus||0),g=y(d[a].opacity,g));if(e&&!e.dashstyle)for(d={"stroke-width":l},e.animate(d,k);c["zone-graph-"+h];)c["zone-graph-"+h].animate(d,k),h+=1;f||[c.group,c.markerGroup,c.dataLabelsGroup,c.labelBySeries].forEach(function(a){a&&a.animate({opacity:g},k)})}b&&f&&c.points&&c.setAllPointsToState(a||void 0)};c.prototype.setAllPointsToState=function(a){this.points.forEach(function(b){b.setState&& b.setState(a)})};c.prototype.setVisible=function(a,b){var c=this,h=c.chart,e=c.legendItem,f=h.options.chart.ignoreHiddenSeries,d=c.visible;var g=(c.visible=a=c.options.visible=c.userOptions.visible="undefined"===typeof a?!d:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(c[a])c[a][g]()});if(h.hoverSeries===c||(h.hoverPoint&&h.hoverPoint.series)===c)c.onMouseOut();e&&h.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&h.series.forEach(function(a){a.options.stacking&& a.visible&&(a.isDirty=!0)});c.linkedSeries.forEach(function(b){b.setVisible(a,!1)});f&&(h.isDirtyBox=!0);l(c,g);!1!==b&&h.redraw()};c.prototype.show=function(){this.setVisible(!0)};c.prototype.hide=function(){this.setVisible(!1)};c.prototype.select=function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);l(this,a?"select":"unselect")};c.prototype.shouldShowTooltip=function(a,b,c){void 0===c&&(c={});c.series=this;c.visiblePlotOnly= !0;return this.chart.isInsidePlot(a,b,c)};c.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:D.backgroundColor,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:D.neutralColor20,lineColor:D.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var a= this.series.chart.numberFormatter;return"number"!==typeof this.y?"":a(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}; return c}();F(c.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:C.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:H,requireSorting:!0,sorted:!0});K.series=c;"";"";return c});P(c,"Extensions/ScrollablePlotArea.js",[c["Core/Animation/AnimationUtilities.js"],c["Core/Axis/Axis.js"],c["Core/Chart/Chart.js"],c["Core/Series/Series.js"],c["Core/Renderer/RendererRegistry.js"],c["Core/Utilities.js"]], function(c,v,A,C,z,D){var q=c.stop,K=D.addEvent,p=D.createElement,d=D.merge,m=D.pick;K(A,"afterSetChartSize",function(b){var c=this.options.chart.scrollablePlotArea,m=c&&c.minWidth;c=c&&c.minHeight;if(!this.renderer.forExport){if(m){if(this.scrollablePixelsX=m=Math.max(0,m-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox);this.plotBox.width=this.plotWidth+=m;this.inverted?this.clipBox.height+=m:this.clipBox.width+=m;var p={1:{name:"right",value:m}}}}else c&& (this.scrollablePixelsY=m=Math.max(0,c-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox),this.plotBox.height=this.plotHeight+=m,this.inverted?this.clipBox.width+=m:this.clipBox.height+=m,p={2:{name:"bottom",value:m}});p&&!b.skipAxes&&this.axes.forEach(function(b){p[b.side]?b.getPlotLinePath=function(){var c=p[b.side].name,d=this[c];this[c]=d-p[b.side].value;var g=v.prototype.getPlotLinePath.apply(this,arguments);this[c]=d;return g}:(b.setAxisSize(),b.setAxisTranslation())})}}); K(A,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});A.prototype.setUpScrolling=function(){var b=this,c={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(c.overflowX="auto");this.scrollablePixelsY&&(c.overflowY="auto");this.scrollingParent=p("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer= p("div",{className:"highcharts-scrolling"},c,this.scrollingParent);K(this.scrollingContainer,"scroll",function(){b.pointer&&delete b.pointer.chartPosition});this.innerContainer=p("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};A.prototype.moveFixedElements=function(){var b=this.container,c=this.fixedRenderer,d=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "), m;this.scrollablePixelsX&&!this.inverted?m=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?m=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?m=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(m=".highcharts-yaxis");m&&d.push(m+":not(.highcharts-radial-axis)",m+"-labels:not(.highcharts-radial-axis-labels)");d.forEach(function(d){[].forEach.call(b.querySelectorAll(d),function(b){(b.namespaceURI===c.SVG_NS?c.box:c.box.parentNode).appendChild(b);b.style.pointerEvents="auto"})})}; A.prototype.applyFixed=function(){var b=!this.fixedDiv,c=this.options.chart,d=c.scrollablePlotArea,x=z.getRendererType();b?(this.fixedDiv=p("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(c.style&&c.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=c=new x(this.fixedDiv,this.chartWidth,this.chartHeight, this.options.chart.style),this.scrollableMask=c.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":m(d.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),K(this,"afterShowResetZoom",this.moveFixedElements),K(this,"afterDrilldown",this.moveFixedElements),K(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||b)this.scrollableDirty=!1,this.moveFixedElements();c=this.chartWidth+ (this.scrollablePixelsX||0);x=this.chartHeight+(this.scrollablePixelsY||0);q(this.container);this.container.style.width=c+"px";this.container.style.height=x+"px";this.renderer.boxWrapper.attr({width:c,height:x,viewBox:[0,0,c,x].join(" ")});this.chartBackground.attr({width:c,height:x});this.scrollingContainer.style.height=this.chartHeight+"px";b&&(d.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*d.scrollPositionX),d.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY* d.scrollPositionY));x=this.axisOffset;b=this.plotTop-x[0]-1;d=this.plotLeft-x[3]-1;c=this.plotTop+this.plotHeight+x[2]+1;x=this.plotLeft+this.plotWidth+x[1]+1;var n=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),B=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);b=this.scrollablePixelsX?[["M",0,b],["L",this.plotLeft-1,b],["L",this.plotLeft-1,c],["L",0,c],["Z"],["M",n,b],["L",this.chartWidth,b],["L",this.chartWidth,c],["L",n,c],["Z"]]:this.scrollablePixelsY?[["M",d,0],["L",d,this.plotTop- 1],["L",x,this.plotTop-1],["L",x,0],["Z"],["M",d,B],["L",d,this.chartHeight],["L",x,this.chartHeight],["L",x,B],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};K(v,"afterInit",function(){this.chart.scrollableDirty=!0});K(C,"show",function(){this.chart.scrollableDirty=!0});""});P(c,"Core/Axis/StackingAxis.js",[c["Core/Animation/AnimationUtilities.js"],c["Core/Utilities.js"]],function(c,v){var q=c.getDeferredAnimation,C=v.addEvent,z=v.destroyObjectProperties, D=v.fireEvent,H=v.isNumber,K=v.objectEach,p=function(){function c(c){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=c}c.prototype.buildStacks=function(){var c=this.axis,b=c.series,d=c.options.reversedStacks,p=b.length,q;if(!c.isXAxis){this.usePercentage=!1;for(q=p;q--;){var n=b[d?q:p-q-1];n.setStackedPoints();n.setGroupedPoints()}for(q=0;qn&&m.shadow));k&&(k.startX=b.xMap,k.isArea=b.isArea)})};p.prototype.getGraphPath=function(c,m,b){var d=this,p=d.options,q=p.step,n,B=[],k=[],v;c=c||d.points;(n=c.reversed)&&c.reverse();(q={right:1, center:2}[q]||q&&3)&&n&&(q=4-q);c=this.getValidPoints(c,!1,!(p.connectNulls&&!m&&!b));c.forEach(function(g,n){var w=g.plotX,e=g.plotY,t=c[n-1];(g.leftCliff||t&&t.rightCliff)&&!b&&(v=!0);g.isNull&&!D(m)&&0c&&k>g?(k=Math.max(c,g),v=2*g-k):km&&v>g?(v=Math.max(m,g),k=2*g-v):v=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA;e=a.borderWidth=J(c.borderWidth,e?0:1);var d=a.xAxis,l=a.yAxis,f=c.threshold,k=a.translatedThreshold=l.getThreshold(f),h=J(c.minPointLength,5),u=a.getColumnMetrics(),n=u.width,m=a.barW=Math.max(n,1+2*e),p=a.pointXOffset=u.offset,t=a.dataMin,w=a.dataMax;b.inverted&&(k-=.5);c.pointPadding&&(m=Math.ceil(m));D.prototype.translate.apply(a);a.points.forEach(function(e){var r= J(e.yBottom,k),q=999+Math.abs(r),I=n,y=e.plotX||0;q=g(e.plotY,-q,l.len+q);y+=p;var O=m,G=Math.min(q,r),F=Math.max(q,r)-G;if(h&&Math.abs(F)h?r-h:k-(E?h:0)}x(e.options.pointWidth)&&(I=O=Math.ceil(e.options.pointWidth),y-=Math.round((I-n)/2));c.centerInCategory&&(y=a.adjustForMissingColumns(y,I,e,u));e.barX=y;e.pointWidth=I;e.tooltipPos=b.inverted?[g(l.len+ l.pos-b.plotLeft-q,l.pos-b.plotLeft,l.len+l.pos-b.plotLeft),d.len+d.pos-b.plotTop-y-O/2,F]:[d.left-b.plotLeft+y+O/2,g(q+l.pos-b.plotTop,l.pos-b.plotTop,l.len+l.pos-b.plotTop),F];e.shapeType=a.pointClass.prototype.shapeType||"rect";e.shapeArgs=a.crispCol.apply(a,e.isNull?[y,k,O,0]:[y,G,O,F])})};e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};e.prototype.pointAttribs=function(a,b){var c=this.options,e=this.pointAttrToOptions||{};var d=e.stroke|| "borderColor";var l=e["stroke-width"]||"borderWidth",f=a&&a.color||this.color,g=a&&a[d]||c[d]||f,h=a&&a[l]||c[l]||this[l]||0;e=a&&a.options.dashStyle||c.dashStyle;var k=J(a&&a.opacity,c.opacity,1);if(a&&this.zones.length){var n=a.getZone();f=a.options.color||n&&(n.color||a.nonZonedColor)||this.color;n&&(g=n.borderColor||g,e=n.dashStyle||e,h=n.borderWidth||h)}b&&a&&(a=N(c.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,f=a.color||"undefined"!==typeof b&&m(f).brighten(a.brightness).get()|| f,g=a[d]||g,h=a[l]||h,e=a.dashStyle||e,k=J(a.opacity,k));d={fill:f,stroke:g,"stroke-width":h,opacity:k};e&&(d.dashstyle=e);return d};e.prototype.drawPoints=function(){var a=this,b=this.chart,c=a.options,e=b.renderer,d=c.animationLimit||250,l;a.points.forEach(function(f){var g=f.graphic,h=!!g,k=g&&b.pointCount\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}});return d}(v);H(C.prototype,{drawTracker:c.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});D(C,"afterTranslate",function(){this.applyJitter()});A.registerSeriesType("scatter",C);"";return C}); P(c,"Mixins/CenteredSeries.js",[c["Core/Globals.js"],c["Core/Series/Series.js"],c["Core/Utilities.js"]],function(c,v,A){var q=A.isNumber,z=A.pick,D=A.relativeLength,H=c.deg2rad;return c.CenteredSeriesMixin={getCenter:function(){var c=this.options,p=this.chart,d=2*(c.slicedOffset||0),m=p.plotWidth-2*d,b=p.plotHeight-2*d,g=c.center,q=Math.min(m,b),x=c.size,n=c.innerSize||0;"string"===typeof x&&(x=parseFloat(x));"string"===typeof n&&(n=parseFloat(n));c=[z(g[0],"50%"),z(g[1],"50%"),z(x&&0>x?void 0:c.size, "100%"),z(n&&0>n?void 0:c.innerSize||0,"0%")];!p.angular||this instanceof v||(c[3]=0);for(g=0;4>g;++g)x=c[g],p=2>g||2===g&&/%$/.test(x),c[g]=D(x,[m,b,q,c[2]][g])+(p?d:0);c[3]>c[2]&&(c[3]=c[2]);return c},getStartAndEndRadians:function(c,p){c=q(c)?c:0;p=q(p)&&p>c&&360>p-c?p:c+360;return{start:H*(c+-90),end:H*(p+-90)}}}});P(c,"Series/Pie/PiePoint.js",[c["Core/Animation/AnimationUtilities.js"],c["Core/Series/Point.js"],c["Core/Utilities.js"]],function(c,v,A){var q=this&&this.__extends||function(){var c= function(b,d){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var d in c)c.hasOwnProperty(d)&&(b[d]=c[d])};return c(b,d)};return function(b,d){function g(){this.constructor=b}c(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),z=c.setAnimation,D=A.addEvent,H=A.defined;c=A.extend;var K=A.isNumber,p=A.pick,d=A.relativeLength;A=function(c){function b(){var b=null!==c&&c.apply(this,arguments)||this;b.labelDistance=void 0; b.options=void 0;b.series=void 0;return b}q(b,c);b.prototype.getConnectorPath=function(){var b=this.labelPosition,c=this.series.options.dataLabels,d=c.connectorShape,n=this.connectorShapes;n[d]&&(d=n[d]);return d.call(this,{x:b.final.x,y:b.final.y,alignment:b.alignment},b.connectorPosition,c)};b.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};b.prototype.haloPath=function(b){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x, c.y,c.r+b,c.r+b,{innerR:c.r-1,start:c.start,end:c.end})};b.prototype.init=function(){v.prototype.init.apply(this,arguments);var b=this;b.name=p(b.name,"Slice");var c=function(c){b.slice("select"===c.type)};D(b,"select",c);D(b,"unselect",c);return b};b.prototype.isValid=function(){return K(this.y)&&0<=this.y};b.prototype.setVisible=function(b,c){var d=this,g=d.series,m=g.chart,k=g.options.ignoreHiddenPoint;c=p(c,k);b!==d.visible&&(d.visible=d.options.visible=b="undefined"===typeof b?!d.visible:b,g.options.data[g.data.indexOf(d)]= d.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(c){if(d[c])d[c][b?"show":"hide"](b)}),d.legendItem&&m.legend.colorizeItem(d,b),b||"hover"!==d.state||d.setState(""),k&&(g.isDirty=!0),c&&m.redraw())};b.prototype.slice=function(b,c,d){var g=this.series;z(d,g.chart);p(c,!0);this.sliced=this.options.sliced=H(b)?b:!this.sliced;g.options.data[g.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())}; return b}(v);c(A.prototype,{connectorShapes:{fixedOffset:function(c,b,d){var g=b.breakAt;b=b.touchingSliceAt;return[["M",c.x,c.y],d.softConnector?["C",c.x+("left"===c.alignment?-5:5),c.y,2*g.x-b.x,2*g.y-b.y,g.x,g.y]:["L",g.x,g.y],["L",b.x,b.y]]},straight:function(c,b){b=b.touchingSliceAt;return[["M",c.x,c.y],["L",b.x,b.y]]},crookedLine:function(c,b,g){b=b.touchingSliceAt;var m=this.series,p=m.center[0],n=m.chart.plotWidth,q=m.chart.plotLeft;m=c.alignment;var k=this.shapeArgs.r;g=d(g.crookDistance, 1);n="left"===m?p+k+(n+q-p-k)*(1-g):q+(p-k)*g;g=["L",n,c.y];p=!0;if("left"===m?n>c.x||nb.x)p=!1;c=[["M",c.x,c.y]];p&&c.push(g);c.push(["L",b.x,b.y]);return c}}});return A});P(c,"Series/Pie/PieSeries.js",[c["Mixins/CenteredSeries.js"],c["Series/Column/ColumnSeries.js"],c["Core/Globals.js"],c["Mixins/LegendSymbol.js"],c["Core/Color/Palette.js"],c["Series/Pie/PiePoint.js"],c["Core/Series/Series.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Renderer/SVG/Symbols.js"],c["Core/Utilities.js"]], function(c,v,A,C,z,D,H,K,p,d){var m=this&&this.__extends||function(){var b=function(c,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var e in c)c.hasOwnProperty(e)&&(b[e]=c[e])};return b(c,d)};return function(c,d){function g(){this.constructor=c}b(c,d);c.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),b=c.getStartAndEndRadians;A=A.noop;var g=d.clamp,q=d.extend,x=d.fireEvent,n=d.merge,B=d.pick,k=d.relativeLength;d= function(c){function d(){var b=null!==c&&c.apply(this,arguments)||this;b.center=void 0;b.data=void 0;b.maxLabelDistance=void 0;b.options=void 0;b.points=void 0;return b}m(d,c);d.prototype.animate=function(b){var c=this,e=c.points,d=c.startAngleRad;b||e.forEach(function(a){var b=a.graphic,e=a.shapeArgs;b&&e&&(b.attr({r:B(a.startR,c.center&&c.center[3]/2),start:d,end:d}),b.animate({r:e.r,start:e.start,end:e.end},c.options.animation))})};d.prototype.drawEmpty=function(){var b=this.startAngleRad,c=this.endAngleRad, e=this.options;if(0===this.total&&this.center){var d=this.center[0];var a=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(d,a,this.center[1]/2,0,b,c).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:p.arc(d,a,this.center[2]/2,0,{start:b,end:c,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":e.borderWidth,fill:e.fillColor||"none",stroke:e.color||z.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())};d.prototype.drawPoints= function(){var b=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=c.graphic.destroy());c.graphic||(c.graphic=b[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})};d.prototype.generatePoints=function(){c.prototype.generatePoints.call(this);this.updateTotals()};d.prototype.getX=function(b,c,e){var d=this.center,a=this.radii?this.radii[e.index]||0:d[2]/2;b=Math.asin(g((b-d[1])/(a+e.labelDistance),-1,1));return d[0]+(c?-1:1)*Math.cos(b)* (a+e.labelDistance)+(01.5*Math.PI?u-=2*Math.PI:u<-Math.PI/2&&(u+=2*Math.PI);I.slicedTranslation={translateX:Math.round(Math.cos(u)*g),translateY:Math.round(Math.sin(u)*g)};O=Math.cos(u)*c[2]/ 2;var v=Math.sin(u)*c[2]/2;I.tooltipPos=[c[0]+.7*O,c[1]+.7*v];I.half=u<-Math.PI/2||u>Math.PI/2?1:0;I.angle=u;h=Math.min(a,I.labelDistance/5);I.labelPosition={natural:{x:c[0]+O+Math.cos(u)*I.labelDistance,y:c[1]+v+Math.sin(u)*I.labelDistance},"final":{},alignment:0>I.labelDistance?"center":I.half?"right":"left",connectorPosition:{breakAt:{x:c[0]+O+Math.cos(u)*h,y:c[1]+v+Math.sin(u)*h},touchingSliceAt:{x:c[0]+O,y:c[1]+v}}}}x(this,"afterTranslate")};d.prototype.updateTotals=function(){var b,c=0,e=this.points, d=e.length,a=this.options.ignoreHiddenPoint;for(b=0;bf){J(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(l=e=0;l<=f;)l+=b[e].size,e++;p=b.splice(e-1,b.length)}J(b,a);for(b=b.map(function(a){return{size:a.size,targets:[a.target],align:k(a.align,.5)}});g;){for(e=b.length;e--;)g= b[e],l=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=m(l-g.size*g.align,0,c-g.size);e=b.length;for(g=!1;e--;)0b[e].pos&&(b[e-1].size+=b[e].size,b[e-1].targets=b[e-1].targets.concat(b[e].targets),b[e-1].align=.5,b[e-1].pos+b[e-1].size>c&&(b[e-1].pos=c-b[e-1].size),b.splice(e,1),g=!0)}n.push.apply(n,p);e=0;b.some(function(a){var b=0;if(a.targets.some(function(){n[e].pos=a.pos+b;if("undefined"!==typeof d&&Math.abs(n[e].pos-n[e].target)>d)return n.slice(0, e+1).forEach(function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&A.distribute(n,c,d),!0;b+=n[e].size;e++}))return!0});J(n,a)};z.prototype.drawDataLabels=function(){function c(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,">"===b&&a>c||"<"===b&&a="===b&&a>=c||"<="===b&&a<=c||"=="===b&&a==c||"==="===b&&a===c?!0:!1):!0}function e(a,b){var c=[],e;if(x(a)&&!x(b))c=a.map(function(a){return n(a,b)});else if(x(b)&&!x(a))c=b.map(function(b){return n(a, b)});else if(x(a)||x(b))for(e=Math.max(a.length,b.length);e--;)c[e]=n(a[e],b[e]);else c=n(a,b);return c}var d=this,a=d.chart,g=d.options,m=g.dataLabels,F=d.points,G,l=d.hasRendered||0,f=m.animation;f=m.defer?q(a,f,d):{defer:0,duration:0};var I=a.renderer;m=e(e(a.options.plotOptions&&a.options.plotOptions.series&&a.options.plotOptions.series.dataLabels,a.options.plotOptions&&a.options.plotOptions[d.type]&&a.options.plotOptions[d.type].dataLabels),m);L(this,"drawDataLabels");if(x(m)||m.enabled||d._hasPointLabels){var h= d.plotGroup("dataLabelsGroup","data-labels",l?"inherit":"hidden",m.zIndex||6);h.attr({opacity:+l});!l&&(l=d.dataLabelsGroup)&&(d.visible&&h.show(!0),l[g.animation?"animate":"attr"]({opacity:1},f));F.forEach(function(f){G=N(e(m,f.dlOptions||f.options&&f.options.dataLabels));G.forEach(function(e,l){var n=e.enabled&&(!f.isNull||f.dataLabelOnNull)&&c(f,e),u=f.dataLabels?f.dataLabels[l]:f.dataLabel,m=f.connectors?f.connectors[l]:f.connector,r=k(e.distance,f.labelDistance),t=!u;if(n){var q=f.getLabelConfig(); var w=k(e[f.formatPrefix+"Format"],e.format);q=b(w)?p(w,q,a):(e[f.formatPrefix+"Formatter"]||e.formatter).call(q,e);w=e.style;var O=e.rotation;a.styledMode||(w.color=k(e.color,w.color,d.color,C.neutralColor100),"contrast"===w.color?(f.contrastColor=I.getContrast(f.color||d.color),w.color=!b(r)&&e.inside||0>r||g.stacking?f.contrastColor:C.neutralColor100):delete f.contrastColor,g.cursor&&(w.cursor=g.cursor));var x={r:e.borderRadius||0,rotation:O,padding:e.padding,zIndex:1};a.styledMode||(x.fill=e.backgroundColor, x.stroke=e.borderColor,x["stroke-width"]=e.borderWidth);B(x,function(a,b){"undefined"===typeof a&&delete x[b]})}!u||n&&b(q)?n&&b(q)&&(u?x.text=q:(f.dataLabels=f.dataLabels||[],u=f.dataLabels[l]=O?I.text(q,0,-9999,e.useHTML).addClass("highcharts-data-label"):I.label(q,0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),l||(f.dataLabel=u),u.addClass(" highcharts-data-label-color-"+f.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":""))),u.options=e,u.attr(x),a.styledMode||u.css(w).shadow(e.shadow), u.added||u.add(h),e.textPath&&!e.useHTML&&(u.setTextPath(f.getDataLabelPath&&f.getDataLabelPath(u)||f.graphic,e.textPath),f.dataLabelPath&&!e.textPath.enabled&&(f.dataLabelPath=f.dataLabelPath.destroy())),d.alignDataLabel(f,u,e,null,t)):(f.dataLabel=f.dataLabel&&f.dataLabel.destroy(),f.dataLabels&&(1===f.dataLabels.length?delete f.dataLabels:delete f.dataLabels[l]),l||delete f.dataLabel,m&&(f.connector=f.connector.destroy(),f.connectors&&(1===f.connectors.length?delete f.connectors:delete f.connectors[l])))})})}L(this, "afterDrawDataLabels")};z.prototype.alignDataLabel=function(b,c,d,a,n){var e=this,m=this.chart,r=this.isCartesian&&m.inverted,l=this.enabledDataSorting,f=k(b.dlBox&&b.dlBox.centerX,b.plotX,-9999),p=k(b.plotY,-9999),h=c.getBBox(),u=d.rotation,q=d.align,t=m.isInsidePlot(f,Math.round(p),{inverted:r,paneCoordinates:!0,series:e}),w="justify"===k(d.overflow,l?"none":"justify"),x=this.visible&&!1!==b.visible&&(b.series.forceDL||l&&!w||t||k(d.inside,!!this.options.stacking)&&a&&m.isInsidePlot(f,r?a.x+1:a.y+ a.height-1,{inverted:r,paneCoordinates:!0,series:e}));var v=function(a){l&&e.xAxis&&!w&&e.setDataLabelStartPos(b,c,n,t,a)};if(x){var B=m.renderer.fontMetrics(m.styledMode?void 0:d.style.fontSize,c).b;a=g({x:r?this.yAxis.len-p:f,y:Math.round(r?this.xAxis.len-f:p),width:0,height:0},a);g(d,{width:h.width,height:h.height});u?(w=!1,f=m.renderer.rotCorr(B,u),f={x:a.x+(d.x||0)+a.width/2+f.x,y:a.y+(d.y||0)+{top:0,middle:.5,bottom:1}[d.verticalAlign]*a.height},v(f),c[n?"attr":"animate"](f).attr({align:q}), v=(u+720)%360,v=180v,"left"===q?f.y-=v?h.height:0:"center"===q?(f.x-=h.width/2,f.y-=h.height/2):"right"===q&&(f.x-=h.width,f.y-=v?0:h.height),c.placed=!0,c.alignAttr=f):(v(a),c.align(d,void 0,a),f=c.alignAttr);w&&0<=a.height?this.justifyDataLabel(c,d,f,h,a,n):k(d.crop,!0)&&(x=m.isInsidePlot(f.x,f.y,{paneCoordinates:!0,series:e})&&m.isInsidePlot(f.x+h.width,f.y+h.height,{paneCoordinates:!0,series:e}));if(d.shape&&!u)c[n?"attr":"animate"]({anchorX:r?m.plotWidth-b.plotY:b.plotX,anchorY:r?m.plotHeight- b.plotX:b.plotY})}n&&l&&(c.placed=!1);x||l&&!w||(c.hide(!0),c.placed=!1)};z.prototype.setDataLabelStartPos=function(b,c,d,a,g){var e=this.chart,k=e.inverted,n=this.xAxis,l=n.reversed,f=k?c.height/2:c.width/2;b=(b=b.pointWidth)?b/2:0;n=k?g.x:l?-f-b:n.width-f+b;g=k?l?this.yAxis.height-f+b:-f-b:g.y;c.startXPos=n;c.startYPos=g;a?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);e.hasRendered&&(d&&c.attr({x:c.startXPos,y:c.startYPos}), c.placed=!0)};z.prototype.justifyDataLabel=function(b,c,d,a,g,k){var e=this.chart,n=c.align,l=c.verticalAlign,f=b.box?0:b.padding||0,m=c.x;m=void 0===m?0:m;var h=c.y;var u=void 0===h?0:h;h=(d.x||0)+f;if(0>h){"right"===n&&0<=m?(c.align="left",c.inside=!0):m-=h;var r=!0}h=(d.x||0)+a.width-f;h>e.plotWidth&&("left"===n&&0>=m?(c.align="right",c.inside=!0):m+=e.plotWidth-h,r=!0);h=d.y+f;0>h&&("bottom"===l&&0<=u?(c.verticalAlign="top",c.inside=!0):u-=h,r=!0);h=(d.y||0)+a.height-f;h>e.plotHeight&&("top"=== l&&0>=u?(c.verticalAlign="bottom",c.inside=!0):u+=e.plotHeight-h,r=!0);r&&(c.x=m,c.y=u,b.placed=!k,b.align(c,void 0,g));return r};D.pie&&(D.pie.prototype.dataLabelPositioners={radialDistributionY:function(b){return b.top+b.distributeBox.pos},radialDistributionX:function(b,c,d,a){return b.getX(dc.bottom-2?a:d,c.half,c)},justify:function(b,c,d){return d[0]+(b.half?-1:1)*(c+b.labelDistance)},alignToPlotEdges:function(b,c,d,a){b=b.getBBox().width;return c?b+a:d-b-a},alignToConnectors:function(b, c,d,a){var e=0,g;b.forEach(function(a){g=a.dataLabel.getBBox().width;g>e&&(e=g)});return c?e+a:d-e-a}},D.pie.prototype.drawDataLabels=function(){var c=this,e=c.data,g,a=c.chart,m=c.options.dataLabels||{},p=m.connectorPadding,q,x=a.plotWidth,l=a.plotHeight,f=a.plotLeft,I=Math.round(a.chartWidth/3),h,u=c.center,O=u[2]/2,v=u[1],y,B,J,N,L=[[],[]],M,D,K,H,P=[0,0,0,0],T=c.dataLabelPositioners,U;c.visible&&(m.enabled||c._hasPointLabels)&&(e.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&& (a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),z.prototype.drawDataLabels.apply(c),e.forEach(function(a){a.dataLabel&&(a.visible?(L[a.half].push(a),a.dataLabel._pos=null,!b(m.style.width)&&!b(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>I&&(a.dataLabel.css({width:Math.round(.7*I)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&& delete a.dataLabels))}),L.forEach(function(e,h){var d=e.length,n=[],r;if(d){c.sortByAngle(e,h-.5);if(0x-p&&0===h&&(q=Math.round(M+B-x+p),P[1]=Math.max(q,P[1])),0>D-N/2?P[0]=Math.max(Math.round(-D+N/2),P[0]):D+N/2>l&&(P[2]=Math.max(Math.round(D+N/2-l),P[2])),y.sideOverflow=q)}}}),0===d(P)||this.verifyDataLabelOverflow(P))&&(this.placeDataLabels(),this.points.forEach(function(b){U= n(m,b.options.dataLabels);if(q=k(U.connectorWidth,1)){var e;h=b.connector;if((y=b.dataLabel)&&y._pos&&b.visible&&0k(this.translatedThreshold,m.yAxis.len)),f=k(d.inside,!!this.options.stacking);p&&(a=n(p),0>a.y&&(a.height+=a.y,a.y=0),p=a.y+a.height-m.yAxis.len,0=M.x+M.width||N.x+N.width<=M.x||N.y>=M.y+M.height||N.y+N.height<=M.y||((k.labelrank=K(d.minWidth,0)&&this.chartHeight>=K(d.minHeight,0)}).call(this)&&c.push(b._id)};b.prototype.setResponsive=function(b,c){var g=this.options.responsive,n=this.currentResponsive,m=[];!c&& g&&g.rules&&g.rules.forEach(function(b){"undefined"===typeof b._id&&(b._id=d());this.matchResponsiveRule(b,m)},this);c=D.apply(void 0,m.map(function(b){return A((g||{}).rules||[],function(c){return c._id===b})}).map(function(b){return b&&b.chartOptions}));c.isResponsiveOptions=!0;m=m.toString()||void 0;m!==(n&&n.ruleIds)&&(n&&this.update(n.undoOptions,b,!0),m?(n=this.currentOptions(c),n.isResponsiveOptions=!0,this.currentResponsive={ruleIds:m,mergedOptions:c,undoOptions:n},this.update(c,b,!0)):this.currentResponsive= void 0)};return b}();c=function(){function b(){}b.compose=function(b){q(b.prototype,m.prototype);return b};return b}();"";"";return c});P(c,"masters/highcharts.src.js",[c["Core/Globals.js"],c["Core/Utilities.js"],c["Core/DefaultOptions.js"],c["Core/Animation/Fx.js"],c["Core/Animation/AnimationUtilities.js"],c["Core/Renderer/HTML/AST.js"],c["Core/FormatUtilities.js"],c["Core/Renderer/SVG/SVGElement.js"],c["Core/Renderer/SVG/SVGRenderer.js"],c["Core/Renderer/HTML/HTMLElement.js"],c["Core/Renderer/HTML/HTMLRenderer.js"], c["Core/Axis/Axis.js"],c["Core/Axis/PlotLineOrBand.js"],c["Core/Axis/Tick.js"],c["Core/Pointer.js"],c["Core/MSPointer.js"],c["Core/Chart/Chart.js"],c["Core/Series/Series.js"],c["Core/Responsive.js"],c["Core/Color/Color.js"],c["Core/Time.js"]],function(c,v,A,C,z,D,H,K,p,d,m,b,g,L,x,n,B,k,M,N,J){c.animate=z.animate;c.animObject=z.animObject;c.getDeferredAnimation=z.getDeferredAnimation;c.setAnimation=z.setAnimation;c.stop=z.stop;c.timers=C.timers;c.AST=D;c.Axis=b;c.Chart=B;c.chart=B.chart;c.Fx=C;c.PlotLineOrBand= g;c.Pointer=n.isRequired()?n:x;c.Series=k;c.SVGElement=K;c.SVGRenderer=p;c.Tick=L;c.Time=J;c.Color=N;c.color=N.parse;m.compose(p);d.compose(K);c.defaultOptions=A.defaultOptions;c.getOptions=A.getOptions;c.time=A.defaultTime;c.setOptions=A.setOptions;c.dateFormat=H.dateFormat;c.format=H.format;c.numberFormat=H.numberFormat;c.addEvent=v.addEvent;c.arrayMax=v.arrayMax;c.arrayMin=v.arrayMin;c.attr=v.attr;c.clearTimeout=v.clearTimeout;c.correctFloat=v.correctFloat;c.createElement=v.createElement;c.css= v.css;c.defined=v.defined;c.destroyObjectProperties=v.destroyObjectProperties;c.discardElement=v.discardElement;c.erase=v.erase;c.error=v.error;c.extend=v.extend;c.extendClass=v.extendClass;c.find=v.find;c.fireEvent=v.fireEvent;c.getMagnitude=v.getMagnitude;c.getStyle=v.getStyle;c.inArray=v.inArray;c.isArray=v.isArray;c.isClass=v.isClass;c.isDOMElement=v.isDOMElement;c.isFunction=v.isFunction;c.isNumber=v.isNumber;c.isObject=v.isObject;c.isString=v.isString;c.keys=v.keys;c.merge=v.merge;c.normalizeTickInterval= v.normalizeTickInterval;c.objectEach=v.objectEach;c.offset=v.offset;c.pad=v.pad;c.pick=v.pick;c.pInt=v.pInt;c.relativeLength=v.relativeLength;c.removeEvent=v.removeEvent;c.splat=v.splat;c.stableSort=v.stableSort;c.syncTimeout=v.syncTimeout;c.timeUnits=v.timeUnits;c.uniqueKey=v.uniqueKey;c.useSerialIds=v.useSerialIds;c.wrap=v.wrap;M.compose(B);return c});P(c,"Core/Axis/NavigatorAxis.js",[c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,v){var q=c.isTouchDevice,C=v.addEvent,z=v.correctFloat, D=v.defined,H=v.isNumber,K=v.pick,p=function(){function c(c){this.axis=c}c.prototype.destroy=function(){this.axis=void 0};c.prototype.toFixedRange=function(c,b,d,p){var g=this.axis,n=g.chart;n=n&&n.fixedRange;var m=(g.pointRange||0)/2;c=K(d,g.translate(c,!0,!g.horiz));b=K(p,g.translate(b,!0,!g.horiz));g=n&&(b-c)/n;D(d)||(c=z(c+m));D(p)||(b=z(b-m));.7g&&(p?c=b-n:b=c+n);H(c)&&H(b)||(c=b=void 0);return{min:c,max:b}};return c}();return function(){function c(){}c.compose=function(c){c.keepProps.push("navigatorAxis"); C(c,"init",function(){this.navigatorAxis||(this.navigatorAxis=new p(this))});C(c,"zoom",function(b){var c=this.chart.options,d=c.navigator,m=this.navigatorAxis,n=c.chart.pinchType,p=c.rangeSelector;c=c.chart.zoomType;this.isXAxis&&(d&&d.enabled||p&&p.enabled)&&("y"===c?b.zoomed=!1:(!q&&"xy"===c||q&&"xy"===n)&&this.options.range&&(d=m.previousZoom,D(b.newMin)?m.previousZoom=[this.min,this.max]:d&&(b.newMin=d[0],b.newMax=d[1],m.previousZoom=void 0)));"undefined"!==typeof b.zoomed&&b.preventDefault()})}; c.AdditionsClass=p;return c}()});P(c,"Core/Axis/ScrollbarAxis.js",[c["Core/Utilities.js"]],function(c){var q=c.addEvent,A=c.defined,C=c.pick;return function(){function c(){}c.compose=function(c,v){var z=function(c){var d=C(c.options&&c.options.min,c.min),m=C(c.options&&c.options.max,c.max);return{axisMin:d,axisMax:m,scrollMin:A(c.dataMin)?Math.min(d,c.min,c.dataMin,C(c.threshold,Infinity)):d,scrollMax:A(c.dataMax)?Math.max(m,c.max,c.dataMax,C(c.threshold,-Infinity)):m}};q(c,"afterInit",function(){var c= this;c.options&&c.options.scrollbar&&c.options.scrollbar.enabled&&(c.options.scrollbar.vertical=!c.horiz,c.options.startOnTick=c.options.endOnTick=!1,c.scrollbar=new v(c.chart.renderer,c.options.scrollbar,c.chart),q(c.scrollbar,"changed",function(d){var m=z(c),b=m.axisMax,g=m.scrollMin,p=m.scrollMax-g;A(m.axisMin)&&A(b)&&(c.horiz&&!c.reversed||!c.horiz&&c.reversed?(m=g+p*this.to,g+=p*this.from):(m=g+p*(1-this.from),g+=p*(1-this.to)),this.shouldUpdateExtremes(d.DOMType)?c.setExtremes(g,m,!0,"mousemove"!== d.DOMType&&"touchmove"!==d.DOMType,d):this.setRange(this.from,this.to))}))});q(c,"afterRender",function(){var c=z(this),d=c.scrollMin,m=c.scrollMax;c=this.scrollbar;var b=this.axisTitleMargin+(this.titleOffset||0),g=this.chart.scrollbarsOffsets,q=this.options.margin||0;c&&(this.horiz?(this.opposite||(g[1]+=b),c.position(this.left,this.top+this.height+2+g[1]-(this.opposite?q:0),this.width,this.height),this.opposite||(g[1]+=q),b=1):(this.opposite&&(g[0]+=b),c.position(this.left+this.width+2+g[0]-(this.opposite? 0:q),this.top,this.width,this.height),this.opposite&&(g[0]+=q),b=0),g[b]+=c.size+c.options.margin,isNaN(d)||isNaN(m)||!A(this.min)||!A(this.max)||this.min===this.max?c.setRange(0,1):(g=(this.min-d)/(m-d),d=(this.max-d)/(m-d),this.horiz&&!this.reversed||!this.horiz&&this.reversed?c.setRange(g,d):c.setRange(1-d,1-g)))});q(c,"afterGetOffset",function(){var c=this.horiz?2:1,d=this.scrollbar;d&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[c]+=d.size+d.options.margin)});return c};return c}()}); P(c,"Core/ScrollbarDefaults.js",[c["Core/Globals.js"],c["Core/Color/Palette.js"]],function(c,v){return{height:c.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:v.neutralColor20,barBorderWidth:1,barBorderColor:v.neutralColor20,buttonArrowColor:v.neutralColor80,buttonBackgroundColor:v.neutralColor10,buttonBorderColor:v.neutralColor20,buttonBorderWidth:1,rifleColor:v.neutralColor80,trackBackgroundColor:v.neutralColor5, trackBorderColor:v.neutralColor5,trackBorderWidth:1}});P(c,"Core/Scrollbar.js",[c["Core/DefaultOptions.js"],c["Core/Globals.js"],c["Core/Axis/ScrollbarAxis.js"],c["Core/ScrollbarDefaults.js"],c["Core/Utilities.js"]],function(c,v,A,C,z){var q=c.defaultOptions,H=z.addEvent,K=z.correctFloat,p=z.defined,d=z.destroyObjectProperties,m=z.fireEvent,b=z.merge,g=z.pick,L=z.removeEvent;c=function(){function c(b,c,d){this._events=[];this.chart=void 0;this.from=this.chartY=this.chartX=0;this.scrollbar=this.renderer= this.options=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=void 0;this.trackBorderWidth=1;this.userOptions=void 0;this.y=this.x=0;this.init(b,c,d)}c.compose=function(b){A.compose(b,c)};c.swapXY=function(b,c){c&&b.forEach(function(b){for(var c=b.length,d,g=0;gthis.calculatedWidth?c.minWidth:0;return{chartX:(b.chartX-this.x-this.xOffset)/(this.barWidth-c),chartY:(b.chartY-this.y-this.yOffset)/(this.barWidth-c)}};c.prototype.destroy=function(){var b=this,c=b.chart.scroller;b.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(c){b[c]&&b[c].destroy&&(b[c]=b[c].destroy())});c&&b===c.scrollbar&& (c.scrollbar=null,d(c.scrollbarButtons))};c.prototype.drawScrollbarButton=function(b){var d=this.renderer,g=this.scrollbarButtons,n=this.options,m=this.size,p=d.g().add(this.group);g.push(p);p=d.rect().addClass("highcharts-scrollbar-button").add(p);this.chart.styledMode||p.attr({stroke:n.buttonBorderColor,"stroke-width":n.buttonBorderWidth,fill:n.buttonBackgroundColor});p.attr(p.crisp({x:-.5,y:-.5,width:m+1,height:m+1,r:n.buttonBorderRadius},p.strokeWidth()));p=d.path(c.swapXY([["M",m/2+(b?-1:1), m/2-3],["L",m/2+(b?-1:1),m/2+3],["L",m/2+(b?2:-2),m/2]],n.vertical)).addClass("highcharts-scrollbar-arrow").add(g[b]);this.chart.styledMode||p.attr({fill:n.buttonArrowColor})};c.prototype.init=function(c,d,k){this.scrollbarButtons=[];this.renderer=c;this.userOptions=d;this.options=b(C,q.scrollbar,d);this.chart=k;this.size=g(this.options.size,this.options.height);d.enabled&&(this.render(),this.addEvents())};c.prototype.mouseDownHandler=function(b){b=this.chart.pointer.normalize(b);b=this.cursorToScrollbarPosition(b); this.chartX=b.chartX;this.chartY=b.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=!0};c.prototype.mouseMoveHandler=function(b){var c=this.chart.pointer.normalize(b),d=this.options.vertical?"chartY":"chartX",g=this.initPositions||[];!this.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=this.cursorToScrollbarPosition(c)[d],d=this[d],d=c-d,this.hasDragged=!0,this.updatePosition(g[0]+d,g[1]+d),this.hasDragged&&m(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:b.type, DOMEvent:b}))};c.prototype.mouseUpHandler=function(b){this.hasDragged&&m(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};c.prototype.position=function(b,c,d,g){var k=this.options.vertical,n=this.rendered?"animate":"attr",m=0;this.x=b;this.y=c+this.trackBorderWidth;this.width=d;this.xOffset=this.height=g;this.yOffset=m;k?(this.width=this.yOffset=d=m=this.size,this.xOffset=c=0,this.barWidth=g- 2*d,this.x=b+=this.options.margin):(this.height=this.xOffset=g=c=this.size,this.barWidth=d-2*g,this.y+=this.options.margin);this.group[n]({translateX:b,translateY:this.y});this.track[n]({width:d,height:g});this.scrollbarButtons[1][n]({translateX:k?0:d-c,translateY:k?g-m:0})};c.prototype.removeEvents=function(){this._events.forEach(function(b){L.apply(null,b)});this._events.length=0};c.prototype.render=function(){var b=this.renderer,d=this.options,g=this.size,m=this.chart.styledMode,p=b.g("scrollbar").attr({zIndex:d.zIndex, translateY:-99999}).add();this.group=p;this.track=b.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:d.trackBorderRadius||0,height:g,width:g}).add(p);m||this.track.attr({fill:d.trackBackgroundColor,stroke:d.trackBorderColor,"stroke-width":d.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=b.g().add(p);this.scrollbar=b.rect().addClass("highcharts-scrollbar-thumb").attr({height:g,width:g,r:d.barBorderRadius|| 0}).add(this.scrollbarGroup);this.scrollbarRifles=b.path(c.swapXY([["M",-3,g/4],["L",-3,2*g/3],["M",0,g/4],["L",0,2*g/3],["M",3,g/4],["L",3,2*g/3]],d.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);m||(this.scrollbar.attr({fill:d.barBackgroundColor,stroke:d.barBorderColor,"stroke-width":d.barBorderWidth}),this.scrollbarRifles.attr({stroke:d.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth% 2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};c.prototype.setRange=function(b,c){var d=this.options,g=d.vertical,n=d.minWidth,m=this.barWidth,q=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(p(m)){var e=m*Math.min(c,1);b=Math.max(b,0);var t=Math.ceil(m*b);this.calculatedWidth=e=K(e-t);e=e?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0);!1===d.showFull&&(0>=b&&1<=c?this.group.hide():this.group.show());this.rendered=!0}};c.prototype.shouldUpdateExtremes=function(b){return g(this.options.liveRedraw,v.svg&&!v.isTouchDevice&& !this.chart.isBoosting)||"mouseup"===b||"touchend"===b||!p(b)};c.prototype.trackClick=function(b){var c=this.chart.pointer.normalize(b),d=this.to-this.from,g=this.y+this.scrollbarTop,n=this.x+this.scrollbarLeft;this.options.vertical&&c.chartY>g||!this.options.vertical&&c.chartX>n?this.updatePosition(this.from+d,this.to+d):this.updatePosition(this.from-d,this.to-d);m(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:b})};c.prototype.update=function(c){this.destroy();this.init(this.chart.renderer, b(!0,this.options,c),this.chart)};c.prototype.updatePosition=function(b,c){1b&&(c=K(c-b),b=0);this.from=b;this.to=c};c.defaultOptions=C;return c}();q.scrollbar=b(!0,c.defaultOptions,q.scrollbar);return c});P(c,"Core/Navigator.js",[c["Core/Axis/Axis.js"],c["Core/Chart/Chart.js"],c["Core/Color/Color.js"],c["Core/Globals.js"],c["Core/Axis/NavigatorAxis.js"],c["Core/DefaultOptions.js"],c["Core/Color/Palette.js"],c["Core/Renderer/RendererRegistry.js"],c["Core/Scrollbar.js"],c["Core/Series/Series.js"], c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,v,A,C,z,D,H,K,p,d,m,b){A=A.parse;var g=C.hasTouch,q=C.isTouchDevice,x=D.defaultOptions,n=b.addEvent,B=b.clamp,k=b.correctFloat,M=b.defined,N=b.destroyObjectProperties,J=b.erase,w=b.extend,e=b.find,t=b.isArray,a=b.isNumber,r=b.merge,E=b.pick,F=b.removeEvent,G=b.splat,l=function(b){for(var c=[],e=1;eI&&(this.grabbedLeft?d=l.toPixels(c-I-m,!0):this.grabbedRight&& (e=l.toPixels(b+I+m,!0)));this.zoomedMax=B(Math.max(d,e),0,p);this.zoomedMin=B(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(d,e),0,p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);d=Math.round(this.zoomedMin);n&&(this.navigatorGroup.attr({visibility:"visible"}),r=r&&!this.hasDragged?"animate":"attr",this.drawMasks(d,p,t,r),this.drawOutline(d,p,t,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(d,0,t,r),this.drawHandle(p,1,t,r)));this.scrollbar&&(t?(t=this.top- f,u=this.left-f+(n||!u.opposite?0:(u.titleOffset||0)+u.axisTitleMargin),f=g+2*f):(t=this.top+(n?this.height:-f),u=this.left-f),this.scrollbar.position(u,t,h,f),this.scrollbar.setRange(this.zoomedMin/(g||1),this.zoomedMax/(g||1)));this.rendered=!0}};b.prototype.addMouseEvents=function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents("mousedown");d.push(n(b.renderTo,"mousemove",e),n(c.ownerDocument, "mouseup",f));g&&(d.push(n(b.renderTo,"touchmove",e),n(c.ownerDocument,"touchend",f)),d.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=d;a.series&&a.series[0]&&d.push(n(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))};b.prototype.getPartsEvents=function(a){var b=this,c=[];["shades","handles"].forEach(function(d){b[d].forEach(function(e,h){c.push(n(e.element,a,function(a){b[d+"Mousedown"](a,h)}))})});return c};b.prototype.shadesMousedown=function(a, b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,h=this.left,f=this.size,g=this.range,l=a.chartX;c.inverted&&(l=a.chartY,h=this.top);if(1===b)this.grabbedCenter=l,this.fixedWidth=g,this.dragOffset=l-e;else{a=l-h-g/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+g>=f)if(a=f-g,this.reversedExtremes){a-=g;var k=this.getUnionExtremes().dataMin}else var m=this.getUnionExtremes().dataMax;a!==e&&(this.fixedWidth=g,b=d.navigatorAxis.toFixedRange(a,a+g,k,m),M(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min, b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};b.prototype.handlesMousedown=function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null};b.prototype.onMouseMove=function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,h=b.range,f=b.dragOffset, g=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,g&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+f-h&&(c=e+f-h),b.render(0,0,c-f,c-f+h)),b.hasDragged&&b.scrollbar&&E(b.scrollbar.options.liveRedraw,C.svg&&!q&&!this.chart.isBoosting)&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))};b.prototype.onMouseUp= function(b){var c=this.chart,d=this.xAxis,e=this.scrollbar,h=b.DOMEvent||b,f=c.inverted,g=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!e||!e.hasDragged)||"scrollbar"===b.trigger){e=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var l=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var k=this.fixedExtreme;this.zoomedMax===this.size&&(k=this.reversedExtremes?e.dataMin:e.dataMax);0===this.zoomedMin&&(l=this.reversedExtremes?e.dataMax:e.dataMin); d=d.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,l,k);M(d.min)&&c.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:h})}"mousemove"!==b.DOMType&&"touchmove"!==b.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&a(this.zoomedMin)&&a(this.zoomedMax)&&(c=Math.round(this.zoomedMin), b=Math.round(this.zoomedMax),this.shades&&this.drawMasks(c,b,f,g),this.outline&&this.drawOutline(c,b,f,g),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(c,0,f,g),this.drawHandle(b,1,f,g)))};b.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};b.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&& a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){F(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&F(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};b.prototype.init=function(a){var b=a.options,d=b.navigator,e=d.enabled,h=b.scrollbar,f=h.enabled;b=e?d.height:0;var g=f?h.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=e;this.navigatorOptions= d;this.scrollbarOptions=h;this.outlineHeight=b+g;this.opposite=E(d.opposite,!(e||!a.inverted));var k=this;e=k.baseSeries;h=a.xAxis.length;f=a.yAxis.length;var m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new c(a,r({breaks:m.options.breaks,ordinal:m.options.ordinal},d.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:h,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1}, a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),k.yAxis=new c(a,r(d.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:f,isInternal:!0,reversed:E(d.yAxis&&d.yAxis.reversed,a.yAxis[0]&&a.yAxis[0].reversed,!1),zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=n(a,"beforeRedraw",function(){0e.indexOf(b)?(b&&(F(b, "updatedData",c.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});e&&e.length&&e.forEach(function(a){var n=a.navigatorSeries,u=w({color:a.color,visible:a.visible},t(g)?x.navigator.series:g);n&&!1===c.navigatorOptions.adaptToUpdatedData||(k.name="Navigator "+e.length,h=a.options||{},l=h.navigatorOptions||{},u.dataLabels=G(u.dataLabels),f=r(h,k,u,l),f.pointRange=E(u.pointRange,l.pointRange,x.plotOptions[f.type||"line"].pointRange),u=l.data||u.data,c.hasNavigatorData=c.hasNavigatorData|| !!u,f.data=u||h.data&&h.data.slice(0),n&&n.options?n.update(f,b):(a.navigatorSeries=d.initSeries(f),a.navigatorSeries.baseSeries=a,m.push(a.navigatorSeries)))});if(g.data&&(!e||!e.length)||t(g))c.hasNavigatorData=!1,g=G(g),g.forEach(function(a,b){k.name="Navigator "+(m.length+1);f=r(x.navigator.series,{color:d.series[b]&&!d.series[b].options.isInternal&&d.series[b].color||d.options.colors[b]||d.options.colors[0]},k,a);f.data=a.data;f.data&&(c.hasNavigatorData=!0,m.push(d.initSeries(f)))});a&&this.addBaseSeriesEvents()}; b.prototype.addBaseSeriesEvents=function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&b[0].eventsToUnbind.push(n(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));b.forEach(function(b){b.eventsToUnbind.push(n(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}));b.eventsToUnbind.push(n(b,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}));!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&b.eventsToUnbind.push(n(b,"updatedData", this.updatedDataHandler));b.eventsToUnbind.push(n(b,"remove",function(){this.navigatorSeries&&(J(a.series,this.navigatorSeries),M(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))},this)};b.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a,b.xData?b.xData[0]:a)},a)};b.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))|| b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))};b.prototype.modifyBaseAxisExtremes=function(){var b=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax;c=c.max-c.min;var f=b.stickToMin,g=b.stickToMax,l=E(this.options.overscroll,0),k=b.series&&b.series[0],m=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(f){var n=d;var p=n+c}g&&(p=e+l,f||(n=Math.max(d,p-c,b.getBaseSeriesMin(k&&k.xData?k.xData[0]:-Number.MAX_VALUE)))); m&&(f||g)&&a(n)&&(this.min=this.userMin=n,this.max=this.userMax=p)}b.stickToMin=b.stickToMax=null};b.prototype.updatedDataHandler=function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=a.shouldStickToMin(this,a);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))};b.prototype.shouldStickToMin=function(b,c){c=c.getBaseSeriesMin(b.xData[0]); var d=b.xAxis;b=d.max;var e=d.min;d=d.options.range;var f=!0;a(b)&&a(e)&&(f=d&&0l||e-g[g.length-1]>l)&&(p=!0)}else b.options.overscroll&&(2===G?r=g[1]-g[0]:1===G?(r=b.options.overscroll,g=[g[0],g[0]+r]):r=c.overscrollPointsRange);p||b.forceOrdinal?(b.options.overscroll&&(c.overscrollPointsRange=r,g=g.concat(c.getOverscrollPositions())),c.positions=g,l=b.ordinal2lin(Math.max(w,g[0]),!0),t=Math.max(b.ordinal2lin(Math.min(e,g[g.length-1]),!0),1),c.slope=e=(e-w)/(t-l),c.offset=w-l*e):(c.overscrollPointsRange=d(b.closestPointRange,c.overscrollPointsRange),c.positions=b.ordinal.slope= c.offset=void 0)}b.isOrdinal=q&&p;c.groupIntervalFactor=null};b.prototype.getExtendedPositions=function(){var b=this,c=b.axis,d=c.constructor.prototype,g=c.chart,m=c.series[0].currentDataGrouping,p=b.index,q=m?m.count+m.unitName:"raw",e=c.options.overscroll,t=c.getExtremes(),a;p||(p=b.index={});if(!p[q]){var r={series:[],chart:g,forceOrdinal:!1,getExtremes:function(){return{min:t.dataMin,max:t.dataMax+e}},getGroupPixelWidth:d.getGroupPixelWidth,getTimeTicks:d.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor}, ordinal2lin:d.ordinal2lin,val2lin:d.val2lin};r.ordinal.axis=r;c.series.forEach(function(c){a={xAxis:r,xData:c.xData.slice(),chart:g,destroyGroupedData:A.noop,getProcessedData:C.prototype.getProcessedData};a.xData=a.xData.concat(b.getOverscrollPositions());a.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:"open",units:[[m.unitName,[m.count]]]}:{enabled:!1}};r.series.push(a);c.processData.apply(a);a.closestPointRange!==a.basePointRange&&a.currentDataGrouping&&(r.forceOrdinal=!0)});c.ordinal.beforeSetTickPositions.apply({axis:r}); p[q]=r.ordinal.positions}return p[q]};b.prototype.getGroupIntervalFactor=function(b,c,d){d=d.processedXData;var g=d.length,k=[];var m=this.groupIntervalFactor;if(!m){for(m=0;me.length||"undefined"===typeof c)return h.getTimeTicks.apply(h,arguments);var v=e.length;for(q=0;qd;e[q]5*k||x){if(e[q]>f){for(t=h.getTimeTicks(b,e[n],e[q],g);t.length&&t[0]<=f;)t.shift();t.length&&(f=t[t.length-1]);u.push(l.length);l=l.concat(t)}n=q+1}if(x)break}if(t){t=t.info;if(a&&t.unitRange<=m.hour){q=l.length-1;for(n=1;nd?t-1:t;for(h=void 0;n--;)q=y[n],t=Math.abs(h-q),h&&t<.8*I&&(null===u||t<.8*u)?(w[l[n]]&&!w[l[n+1]]?(t=n+1,h=q):t=n,l.splice(t,1)):h=q}return l};k.lin2val=function(b,c){var d=this.ordinal,g=d.positions;if(g){var e=d.slope,k=d.offset;d=g.length-1;var a=void 0;if(c)0>b?b=g[0]:b>d?b=g[d]: (d=Math.floor(b),a=b-d);else for(;d--;)if(c=e*d+k,b>=c){e=e*(d+1)+k;a=(b-c)/(e-c);break}return"undefined"!==typeof a&&"undefined"!==typeof g[d]?g[d]+(a?a*(g[d+1]-g[d]):0):b}return b};k.val2lin=function(b,c){var d=this.ordinal,g=d.positions;if(g){var e=g.length,k,a=void 0;for(k=e;k--;)if(g[k]===b){a=k;break}for(k=e-1;k--;)if(b>g[k]||0===k){b=(b-g[k])/(g[k+1]-g[k]);a=k+b;break}c=c?a:d.slope*(a||0)+d.offset}else c=b;return c};k.ordinal2lin=k.val2lin;q(c,"afterInit",function(){this.ordinal||(this.ordinal= new b.Composition(this))});q(c,"foundExtremes",function(){this.isXAxis&&K(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&K(this.userMin)&&(this.min+=this.options.overscroll))});q(c,"afterSetScale",function(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}); q(c,"initialAxisTranslation",function(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))});q(d,"pan",function(b){var c=this.xAxis[0],d=c.options.overscroll,g=b.originalEvent.chartX,e=this.options.chart.panning,k=!1;if(e&&"y"!==e.type&&c.options.ordinal&&c.series.length){var a=this.mouseDownX,m=c.getExtremes(),n=m.dataMax,p=m.min,q=m.max,l=void 0;l=this.hoverPoints;var f=c.closestPointRange||c.ordinal&&c.ordinal.overscrollPointsRange; a=(a-g)/(c.translationSlope*(c.ordinal.slope||f));f={ordinal:{positions:c.ordinal.getExtendedPositions()}};var I=void 0,h=void 0,u=c.lin2val,v=c.val2lin,x=void 0;f.ordinal.positions?1a?(h=f,x=c.ordinal.positions?c:f):(h=c.ordinal.positions?c:f,x=f),I=x.ordinal.positions,n>I[I.length-1]&&I.push(n),this.fixedRange=q-p,l=c.navigatorAxis.toFixedRange(null,null,u.apply(h,[v.apply(h,[p,!0])+a,!0]),u.apply(x,[v.apply(x,[q,!0])+a,!0])),l.min>=Math.min(m.dataMin, p)&&l.max<=Math.max(n,q)+d&&c.setExtremes(l.min,l.max,!0,!1,{trigger:"pan"}),this.mouseDownX=g,H(this.container,{cursor:"move"})):k=!0}else k=!0;k||e&&/y/.test(e.type)?d&&(c.max=c.dataMax+d):b.preventDefault()});q(g,"updatedData",function(){var b=this.xAxis;b&&b.options.ordinal&&delete b.ordinal.index})}})(b||(b={}));b.compose(c,v,C);return b});P(c,"Core/Axis/BrokenAxis.js",[c["Core/Axis/Axis.js"],c["Core/Series/Series.js"],c["Extensions/Stacking.js"],c["Core/Utilities.js"]],function(c,v,A,C){var q= C.addEvent,D=C.find,H=C.fireEvent,K=C.isArray,p=C.isNumber,d=C.pick,m;(function(b){function g(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function m(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function x(){var b=this.brokenAxis;if(b&&b.hasBreaks){for(var c=this.tickPositions,d=this.tickPositions.info,a=[],g=0;gc.to||k>c.from&&nc.from&&nc.from&&n>c.to&&na&&c>=this.basePointRange&&(a=c),k=void 0;g--;)k&&!1!==k.visible||(k=b[g+1]),c=b[g],!1!==k.visible&&!1!==c.visible&&(k.x-c.x>a&&(k=(c.x+k.x)/2,b.splice(g+1,0,{isNull:!0,x:k}),d.stacking&&this.options.stacking&&(k=d.stacking.stacks[this.stackKey][k]=new A(d,d.options.stackLabels,!1,k,this.stack),k.total=0)),k=c);return this.getGraphPath(b)}b.compose=function(b,c){if(-1===b.keepProps.indexOf("brokenAxis")){b.keepProps.push("brokenAxis"); var d=v.prototype;d.drawBreaks=C;d.gappedPath=N;q(b,"init",n);q(b,"afterInit",g);q(b,"afterSetTickPositions",x);q(b,"afterSetOptions",m);q(c,"afterGeneratePoints",z);q(c,"afterRender",k)}return b};var J=function(){function b(b){this.hasBreaks=!1;this.axis=b}b.isInBreak=function(b,c){var a=b.repeat||Infinity,d=b.from,e=b.to-b.from;c=c>=d?(c-d)%a:a-(d-c)%a;return b.inclusive?c<=e:c=c)break;else e.to=c)break;else if(b.isInBreak(g,c)){a-=c-g.from;break}}return a};b.prototype.findBreakAt=function(b,c){return D(c,function(a){return a.fromn;)v-=h;for(;v=c[0]);B++);for(B;B<=p;B++){for(;"undefined"!==typeof c[z+1]&&a[B]>=c[z+1]||B===p;){var A=c[z];e.dataGroupInfo={start:G?F:e.cropStart+F,length:q[0].length};var C=d.apply(e,q);e.pointClass&&!x(e.dataGroupInfo.options)&&(e.dataGroupInfo.options=M(e.pointClass.prototype.optionsToObject.call({series:e},e.options.data[e.cropStart+F])),w.forEach(function(a){delete e.dataGroupInfo.options[a]}));"undefined"!==typeof C&&(l.push(A),m.push(C),n.push(e.dataGroupInfo)); F=B;for(A=0;A=a[0]){C=this.groupMap[0].start;J=this.groupMap[0].length;var H=void 0;k(C)&&k(J)&&(H=C+(J-1));a[0]={middle:a[0]+.5*B,end:a[0]+B,firstPoint:this.xData[0],lastPoint:H&&this.xData[H]}[K]}A&&"start"!==A&&B&&a[D]>=z-B&&(z=this.groupMap[this.groupMap.length-1].start,a[D]={middle:a[D]+.5*B,end:a[D]+B,firstPoint:z&&this.xData[z],lastPoint:this.xData[this.xData.length-1]}[A])}for(z=1;zp.max){if(!x(p.options.max)&&k(p.dataMax)&&p.max>=p.dataMax||p.max===p.dataMax)p.max=Math.max(d[d.length-1],p.max);p.dataMax=Math.max(d[d.length-1],p.dataMax)}}b.groupAll&&(b=this.cropData(r, q,p.min,p.max,1),r=b.xData,q=b.yData,this.cropStart=b.start);this.processedXData=r;this.processedYData=q}else this.groupMap=null;this.hasGroupedData=g;this.currentDataGrouping=z;this.preventGraphAnimation=(h&&h.totalRange)!==(z&&z.totalRange)}};m.destroyGroupedData=function(){this.groupedData&&(this.groupedData.forEach(function(a,b){a&&(this.groupedData[b]=a.destroy?a.destroy():null)},this),this.groupedData.length=0)};m.generatePoints=function(){t.apply(this);this.destroyGroupedData();this.groupedData= this.hasGroupedData?this.points:null};A(z,"update",function(){if(this.dataGroup)return n(24,!1,this.series.chart),!1});A(H,"headerFormatter",function(b){var c=this.chart,e=c.time,f=b.labelConfig,g=f.series,h=g.tooltipOptions,m=g.options.dataGrouping,n=h.xDateFormat,p=g.xAxis,r=h[(b.isFooter?"footer":"header")+"Format"];if(p&&"datetime"===p.options.type&&m&&k(f.key)){var q=g.currentDataGrouping;m=m.dateTimeLabelFormats||a.dateTimeLabelFormats;if(q)if(h=m[q.unitName],1===q.count)n=h[0];else{n=h[1]; var t=h[2]}else!n&&m&&(n=this.getXDateFormat(f,h,p));n=e.dateFormat(n,f.key);t&&(n+=e.dateFormat(t,f.key+q.totalRange-1));g.chart.styledMode&&(r=this.styledModeFormat(r));b.text=d(r,{point:B(f.point,{key:n}),series:g},c);b.preventDefault()}});A(D,"destroy",m.destroyGroupedData);A(D,"afterSetOptions",function(b){b=b.options;var c=this.type,d=this.chart.options.plotOptions,e=K.defaultOptions.plotOptions[c].dataGrouping,g=this.useCommonDataGrouping&&a;if(r[c]||g){e||(e=M(a,r[c]));var h=this.chart.rangeSelector; b.dataGrouping=M(g,e,d.series&&d.series.dataGrouping,d[c].dataGrouping,this.userOptions.dataGrouping,!b.isInternal&&h&&k(h.selected)&&h.buttonOptions[h.selected].dataGrouping)}});A(c,"afterSetScale",function(){this.series.forEach(function(a){a.hasProcessed=!1})});c.prototype.getGroupPixelWidth=function(){var b=this.series,c=b.length,d,e=0,g=!1,h;for(d=c;d--;)(h=b[d].options.dataGrouping)&&(e=Math.max(e,N(h.groupPixelWidth,a.groupPixelWidth)));for(d=c;d--;)(h=b[d].options.dataGrouping)&&b[d].hasProcessed&& (c=(b[d].processedXData||b[d].data).length,b[d].groupPixelWidth||c>this.chart.plotSizeX/e||c&&h.forced)&&(g=!0);return g?e:0};c.prototype.setDataGrouping=function(a,b){var d;b=N(b,!0);a||(a={forced:!1,units:null});if(this instanceof c)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else this.chart.options.series.forEach(function(b){b.dataGrouping=a},!1);this.ordinal&&(this.ordinal.slope=void 0);b&&this.chart.redraw()};C.dataGrouping=w;"";return w});P(c,"Series/OHLC/OHLCPoint.js", [c["Core/Series/SeriesRegistry.js"]],function(c){var q=this&&this.__extends||function(){var c=function(q,v){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,q){c.__proto__=q}||function(c,q){for(var v in q)q.hasOwnProperty(v)&&(c[v]=q[v])};return c(q,v)};return function(q,v){function z(){this.constructor=q}c(q,v);q.prototype=null===v?Object.create(v):(z.prototype=v.prototype,new z)}}();return function(c){function v(){var q=null!==c&&c.apply(this,arguments)||this;q.close=void 0;q.high= void 0;q.low=void 0;q.open=void 0;q.options=void 0;q.plotClose=void 0;q.plotOpen=void 0;q.series=void 0;return q}q(v,c);v.prototype.getClassName=function(){return c.prototype.getClassName.call(this)+(this.open\u25cf {series.name}
Open: {point.open}
High: {point.high}
Low: {point.low}
Close: {point.close}
'}, threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0});return p}(z);D(A.prototype,{animate:null,directTouch:!1,pointArrayMap:["open","high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"});A.prototype.pointClass=c;v.registerSeriesType("ohlc",A);"";return A});P(c,"Series/Candlestick/CandlestickSeries.js",[c["Core/DefaultOptions.js"],c["Core/Color/Palette.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,v,A,C){var q= this&&this.__extends||function(){var c=function(d,b){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var d in c)c.hasOwnProperty(d)&&(b[d]=c[d])};return c(d,b)};return function(d,b){function g(){this.constructor=d}c(d,b);d.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),D=c.defaultOptions;c=A.seriesTypes;var H=c.column,K=c.ohlc,p=C.merge;C=function(c){function d(){var b=null!==c&&c.apply(this,arguments)||this;b.data= void 0;b.options=void 0;b.points=void 0;return b}q(d,c);d.prototype.pointAttribs=function(b,c){var d=H.prototype.pointAttribs.call(this,b,c),g=this.options,m=b.openb)break}}}m.forEach(function(a,b){a.plotX+=J;if("undefined"=== typeof a.plotY||k)0<=a.plotX&&a.plotX<=A.len?k?(a.plotY=A.translate(a.x,0,1,0,1),a.plotX=D(a.y)?C.translate(a.y,0,0,0,1):0):a.plotY=(A.opposite?0:c.yAxis.len)+A.offset:a.shapeArgs={};if((g=m[b-1])&&g.plotX===a.plotX){"undefined"===typeof g.stackIndex&&(g.stackIndex=0);var d=g.stackIndex+1}a.stackIndex=d});this.onSeries=v}}});P(c,"Series/Flags/FlagsSymbols.js",[c["Core/Renderer/RendererRegistry.js"],c["Core/Renderer/SVG/SVGRenderer.js"]],function(c,v){function q(c){C[c+"pin"]=function(q,v,z,p,d){var m= d&&d.anchorX;d=d&&d.anchorY;"circle"===c&&p>z&&(q-=Math.round((p-z)/2),z=p);var b=C[c](q,v,z,p);if(m&&d){var g=m;"circle"===c?g=q+z/2:(q=b[0],z=b[1],"M"===q[0]&&"L"===z[0]&&(g=(q[1]+z[1])/2));b.push(["M",g,v>d?v:v+p],["L",m,d]);b=b.concat(C.circle(m-1,d-1,2,2))}return b}}var C=v.prototype.symbols;C.flag=function(c,q,v,A,p){var d=p&&p.anchorX||c;p=p&&p.anchorY||q;var m=C.circle(d-1,p-1,2,2);m.push(["M",d,p],["L",c,q+A],["L",c,q],["L",c+v,q],["L",c+v,q+A],["L",c,q+A],["Z"]);return m};q("circle");q("square"); c=c.getRendererType();c!==v&&(c.prototype.symbols.circlepin=C.circlepin,c.prototype.symbols.flag=C.flag,c.prototype.symbols.squarepin=C.squarepin);return C});P(c,"Series/Flags/FlagsSeries.js",[c["Series/Flags/FlagsPoint.js"],c["Core/Globals.js"],c["Mixins/OnSeries.js"],c["Core/Color/Palette.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Renderer/SVG/SVGElement.js"],c["Core/Utilities.js"]],function(c,v,A,C,z,D,H){var q=this&&this.__extends||function(){var b=function(c,d){b=Object.setPrototypeOf|| {__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var d in c)c.hasOwnProperty(d)&&(b[d]=c[d])};return b(c,d)};return function(c,d){function g(){this.constructor=c}b(c,d);c.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),p=v.noop,d=z.series,m=z.seriesTypes.column,b=H.addEvent,g=H.defined,L=H.extend,x=H.merge,n=H.objectEach,B=H.wrap;H=function(c){function k(){var b=null!==c&&c.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0; return b}q(k,c);k.prototype.animate=function(b){b&&this.setClip()};k.prototype.drawPoints=function(){var b=this.points,c=this.chart,d=c.renderer,e=c.inverted,k=this.options,a=k.y,m,p=this.yAxis,q={},z=[];for(m=b.length;m--;){var l=b[m];var f=(e?l.plotY:l.plotX)>this.xAxis.len;var I=l.plotX;var h=l.stackIndex;var u=l.options.shape||k.shape;var O=l.plotY;"undefined"!==typeof O&&(O=l.plotY+a-("undefined"!==typeof h&&h*k.stackDistance));l.anchorX=h?void 0:l.plotX;var A=h?void 0:l.plotY;var y="flag"!== u;h=l.graphic;"undefined"!==typeof O&&0<=I&&!f?(h&&l.hasNewShapeType()&&(h=h.destroy()),h||(h=l.graphic=d.label("",null,null,u,null,null,k.useHTML).addClass("highcharts-point").add(this.markerGroup),l.graphic.div&&(l.graphic.div.point=l),h.isNew=!0),h.attr({align:y?"center":"left",width:k.width,height:k.height,"text-align":k.textAlign}),c.styledMode||h.attr(this.pointAttribs(l)).css(x(k.style,l.style)).shadow(k.shadow),0n-m,z=h=864E5*{month:28,year:365}[l]*k-I&&e-36E5<=864E5* {month:31,year:366}[l]*k+I?h=!0:"ytd"===l?(h=q-p+I===e,A=!b):"all"===l&&(h=d.max-d.min>=n-m,O=!b&&t&&h);l=!v&&(x||z||O||g);k=b&&h||h&&!t&&!A||b&&a.frozenStates;l?y=3:k&&(t=!0,y=2);u.state!==y&&(u.setState(y),c&&(c.options[f+1].disabled=l,2===y&&(c.selectedIndex=f+1)),0===y&&r===f&&a.setSelected())})};r.prototype.computeButtonRange=function(a){var b=a.type,c=a.count||1,d={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(d[b])a._range=d[b]*c;else if("month"===b||"year"===b)a._range= 864E5*{month:30,year:365}[b]*c;a._offsetMin=e(a.offsetMin,0);a._offsetMax=e(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin};r.prototype.getInputValue=function(a){a="min"===a?this.minInput:this.maxInput;var b=this.chart.options.rangeSelector,c=this.chart.time;return a?("text"===a.type&&b.inputDateParser||this.defaultInputDateParser)(a.value,c.useUTC,c):0};r.prototype.setInputValue=function(a,b){var c=this.options,d=this.chart.time,e="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox: this.maxDateBox;if(e){var f=e.getAttribute("data-hc-time");f=g(f)?Number(f):void 0;g(b)&&(g(f)&&e.setAttribute("data-hc-time-previous",f),e.setAttribute("data-hc-time",b),f=b);e.value=d.dateFormat(this.inputTypeFormats[e.type]||c.inputEditDateFormat,f);a&&a.attr({text:d.dateFormat(c.inputDateFormat,f)})}};r.prototype.setInputExtremes=function(a,b,c){if(a="min"===a?this.minInput:this.maxInput){var d=this.inputTypeFormats[a.type],e=this.chart.time;d&&(b=e.dateFormat(d,b),a.min!==b&&(a.min=b),c=e.dateFormat(d, c),a.max!==c&&(a.max=c))}};r.prototype.showInput=function(a){var c="min"===a?this.minDateBox:this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&c&&this.inputGroup){var d="text"===a.type,e=this.inputGroup,g=e.translateX;e=e.translateY;var l=this.options.inputBoxWidth;b(a,{width:d?c.width+(l?-2:20)+"px":"auto",height:d?c.height-2+"px":"auto",border:"2px solid silver"});d&&l?b(a,{left:g+c.x+"px",top:e+"px"}):b(a,{left:Math.min(Math.round(c.x+g-(a.offsetWidth-c.width)/2),this.chart.chartWidth- a.offsetWidth)+"px",top:e-(a.offsetHeight-c.height)/2+"px"})}};r.prototype.hideInput=function(a){(a="min"===a?this.minInput:this.maxInput)&&b(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};r.prototype.defaultInputDateParser=function(a,b,c){var d=a.split("/").join("-").split(" ").join("T");-1===d.indexOf("T")&&(d+="T00:00");if(b)d+="Z";else{var e;if(e=A.isSafari)e=d,e=!(6=e?"+"+w(-e)+":00":"-"+w(e)+":00")}d=Date.parse(d);M(d)||(a=a.split("-"),d=Date.UTC(t(a[0]),t(a[1])-1,t(a[2])));c&&b&&M(d)&&(d+=c.getTimezoneOffset(d));return d};r.prototype.drawInput=function(a){function c(){var b=l.getInputValue(a),c=d.xAxis[0],e=d.scroller&&d.scroller.xAxis?d.scroller.xAxis:c,f=e.dataMin;e=e.dataMax;var h=l.maxInput,g=l.minInput;b!==Number(x.getAttribute("data-hc-time-previous"))&&M(b)&&(x.setAttribute("data-hc-time-previous",b),v&&h&&M(f)?b>Number(h.getAttribute("data-hc-time"))? b=void 0:be&&(b=e)),"undefined"!==typeof b&&c.setExtremes(v?b:c.min,v?c.max:b,void 0,void 0,{trigger:"rangeSelectorInput"}))}var d=this.chart,e=this.div,g=this.inputGroup,l=this,k=d.renderer.style||{},r=d.renderer,t=d.options.rangeSelector,v="min"===a,w=p.lang[v?"rangeSelectorFrom":"rangeSelectorTo"];w=r.label(w,0).addClass("highcharts-range-label").attr({padding:w?2:0,height:w?t.inputBoxHeight:0}).add(g);r=r.label("",0).addClass("highcharts-range-input").attr({padding:2, width:t.inputBoxWidth,height:t.inputBoxHeight,"text-align":"center"}).on("click",function(){l.showInput(a);l[a+"Input"].focus()});d.styledMode||r.attr({stroke:t.inputBoxBorderColor,"stroke-width":1});r.add(g);var x=m("input",{name:a,className:"highcharts-range-selector"},void 0,e);x.setAttribute("type",q(t.inputDateFormat||"%b %e, %Y"));d.styledMode||(w.css(N(k,t.labelStyle)),r.css(N({color:z.neutralColor80},k,t.inputStyle)),b(x,n({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)", width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:k.fontSize,fontFamily:k.fontFamily,top:"-9999em"},t.inputStyle)));x.onfocus=function(){l.showInput(a)};x.onblur=function(){x===A.doc.activeElement&&c();l.hideInput(a);l.setInputValue(a);x.blur()};var B=!1;x.onchange=function(){B||(c(),l.hideInput(a),x.blur())};x.onkeypress=function(a){13===a.keyCode&&c()};x.onkeydown=function(a){B=!0;38!==a.keyCode&&40!==a.keyCode||c()};x.onkeyup=function(){B=!1};return{dateBox:r,input:x,label:w}};r.prototype.getPosition= function(){var a=this.chart,b=a.options.rangeSelector;a="top"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}};r.prototype.getYTDExtremes=function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get("FullYear",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}};r.prototype.render=function(a,b){var c=this.chart,d=c.renderer,f=c.container,k=c.options,l=k.rangeSelector,n=e(k.chart.style&& k.chart.style.zIndex,0)+1;k=l.inputEnabled;if(!1!==l.enabled){this.rendered||(this.group=d.g("range-selector-group").attr({zIndex:7}).add(),this.div=m("div",void 0,{position:"relative",height:0,zIndex:n}),this.buttonOptions.length&&this.renderButtons(),f.parentNode&&f.parentNode.insertBefore(this.div,f),k&&(this.inputGroup=d.g("input-group").add(this.group),d=this.drawInput("min"),this.minDateBox=d.dateBox,this.minLabel=d.label,this.minInput=d.input,d=this.drawInput("max"),this.maxDateBox=d.dateBox, this.maxLabel=d.label,this.maxInput=d.input));if(k&&(this.setInputValue("min",a),this.setInputValue("max",b),a=c.scroller&&c.scroller.getUnionExtremes()||c.xAxis[0]||{},g(a.dataMin)&&g(a.dataMax)&&(c=c.xAxis[0].minRange||0,this.setInputExtremes("min",a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-c),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+c,a.dataMax)),this.inputGroup)){var p=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b= a.getBBox().width;b&&(a.attr({x:p}),p+=b+l.inputSpacing)}})}this.alignElements();this.rendered=!0}};r.prototype.renderButtons=function(){var a=this,b=this.buttons,c=this.options,h=p.lang,g=this.chart.renderer,n=N(c.buttonTheme),q=n&&n.states,r=n.width||28;delete n.width;delete n.states;this.buttonGroup=g.g("range-selector-buttons").add(this.group);var t=this.dropdown=m("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div); d(t,"touchstart",function(){t.style.fontSize="16px"});[[A.isMS?"mouseover":"mouseenter"],[A.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(c){var e=c[0],f=c[1];d(t,e,function(){var c=b[a.currentButtonIndex()];c&&k(c.element,f||e)})});this.zoomText=g.label(h&&h.rangeSelectorZoom||"",0).attr({padding:c.buttonTheme.padding,height:c.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(c.labelStyle),n["stroke-width"]=e(n["stroke-width"], 0));m("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,t);this.buttonOptions.forEach(function(c,d){m("option",{textContent:c.title||c.text},void 0,t);b[d]=g.button(c.text,0,0,function(b){var e=c.events&&c.events.click,f;e&&(f=e.call(c,b));!1!==f&&a.clickButton(d);a.isActive=!0},n,q&&q.hover,q&&q.select,q&&q.disabled).attr({"text-align":"center",width:r}).add(a.buttonGroup);c.title&&b[d].attr("title",c.title)})};r.prototype.alignElements=function(){var a=this,b=this.buttonGroup,c=this.buttons, d=this.chart,g=this.group,k=this.inputGroup,m=this.options,n=this.zoomText,p=d.options,q=p.exporting&&!1!==p.exporting.enabled&&p.navigation&&p.navigation.buttonOptions;p=m.buttonPosition;var r=m.inputPosition,t=m.verticalAlign,v=function(b,c){return q&&a.titleCollision(d)&&"top"===t&&"right"===c.align&&c.y-b.getBBox().height-12<(q.y||0)+(q.height||0)+d.spacing[0]?-40:0},w=d.plotLeft;if(g&&p&&r){var x=p.x-d.spacing[3];if(b){this.positionButtons();if(!this.initialButtonGroupWidth){var z=0;n&&(z+=n.getBBox().width+ 5);c.forEach(function(a,b){z+=a.width;b!==c.length-1&&(z+=m.buttonSpacing)});this.initialButtonGroupWidth=z}w-=d.spacing[3];this.updateButtonStates();n=v(b,p);this.alignButtonGroup(n);g.placed=b.placed=d.hasLoaded}b=0;k&&(b=v(k,r),"left"===r.align?x=w:"right"===r.align&&(x=-Math.max(d.axisOffset[1],-b)),k.align({y:r.y,width:k.getBBox().width,align:r.align,x:r.x+x-2},!0,d.spacingBox),k.placed=d.hasLoaded);this.handleCollision(b);g.align({verticalAlign:t},!0,d.spacingBox);k=g.alignAttr.translateY;b= g.getBBox().height+20;v=0;"bottom"===t&&(v=(v=d.legend&&d.legend.options)&&"bottom"===v.verticalAlign&&v.enabled&&!v.floating?d.legend.legendHeight+e(v.margin,10):0,b=b+v-20,v=k-b-(m.floating?0:m.y)-(d.titleOffset?d.titleOffset[2]:0)-10);if("top"===t)m.floating&&(v=0),d.titleOffset&&d.titleOffset[0]&&(v=d.titleOffset[0]),v+=d.margin[0]-d.spacing[0]||0;else if("middle"===t)if(r.y===p.y)v=k;else if(r.y||p.y)v=0>r.y||0>p.y?v-Math.min(r.y,p.y):k-b;g.translate(m.x,m.y+Math.floor(v));p=this.minInput;r= this.maxInput;k=this.dropdown;m.inputEnabled&&p&&r&&(p.style.marginTop=g.translateY+"px",r.style.marginTop=g.translateY+"px");k&&(k.style.marginTop=g.translateY+"px")}};r.prototype.alignButtonGroup=function(a,b){var c=this.chart,d=this.buttonGroup,f=this.options.buttonPosition,g=c.plotLeft-c.spacing[3],k=f.x-c.spacing[3];"right"===f.align?k+=a-g:"center"===f.align&&(k-=g/2);d&&d.align({y:f.y,width:e(b,this.initialButtonGroupWidth),align:f.align,x:k},!0,c.spacingBox)};r.prototype.positionButtons=function(){var a= this.buttons,b=this.chart,c=this.options,d=this.zoomText,g=b.hasLoaded?"animate":"attr",k=c.buttonPosition,m=b.plotLeft,n=m;d&&"hidden"!==d.visibility&&(d[g]({x:e(m+k.x,m)}),n+=k.x+d.getBBox().width+5);this.buttonOptions.forEach(function(b,d){if("hidden"!==a[d].visibility)a[d][g]({x:n}),n+=a[d].width+c.buttonSpacing;else a[d][g]({x:m})})};r.prototype.handleCollision=function(a){var b=this,c=this.chart,d=this.buttonGroup,e=this.inputGroup,g=this.options,k=g.buttonPosition,l=g.dropdown,m=g.inputPosition; g=function(){var a=0;b.buttons.forEach(function(b){b=b.getBBox();b.width>a&&(a=b.width)});return a};var n=function(b){if(e&&d){var c=e.alignAttr.translateX+e.alignOptions.x-a+e.getBBox().x+2,f=e.alignOptions.width,h=d.alignAttr.translateX+d.getBBox().x;return h+b>c&&c+f>h&&k.y=-a?0:-a),translateY:e.alignAttr.translateY+d.getBBox().height+10})};if(d){if("always"===l){this.collapseButtons(a); n(g())&&p();return}"never"===l&&this.expandButtons()}e&&d?m.align===k.align||n(this.initialButtonGroupWidth+20)?"responsive"===l?(this.collapseButtons(a),n(g())&&p()):p():"responsive"===l&&this.expandButtons():d&&"responsive"===l&&(this.initialButtonGroupWidth>c.plotWidth?this.collapseButtons(a):this.expandButtons())};r.prototype.collapseButtons=function(a){var b=this.buttons,c=this.buttonOptions,d=this.chart,g=this.dropdown,k=this.options,l=this.zoomText,m=d.userOptions.rangeSelector&&d.userOptions.rangeSelector.buttonTheme|| {},n=function(a){return{text:a?a+" \u25be":"\u25be",width:"auto",paddingLeft:e(k.buttonTheme.paddingLeft,m.padding,8),paddingRight:e(k.buttonTheme.paddingRight,m.padding,8)}};l&&l.hide();var p=!1;c.forEach(function(a,c){c=b[c];2!==c.state?c.hide():(c.show(),c.attr(n(a.text)),p=!0)});p||(g&&(g.selectedIndex=0),b[0].show(),b[0].attr(n(this.zoomText&&this.zoomText.textStr)));c=k.buttonPosition.align;this.positionButtons();"right"!==c&&"center"!==c||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width); this.showDropdown()};r.prototype.expandButtons=function(){var a=this.buttons,b=this.buttonOptions,c=this.options,d=this.zoomText;this.hideDropdown();d&&d.show();b.forEach(function(b,d){d=a[d];d.show();d.attr({text:b.text,width:c.buttonTheme.width||28,paddingLeft:e(c.buttonTheme.paddingLeft,"unset"),paddingRight:e(c.buttonTheme.paddingRight,"unset")});2>d.state&&d.setState(0)});this.positionButtons()};r.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0e&&0>d||0l+d.width)&&(B?n=q=w(n,l,l+d.width):b=!0);b||v.push(["M",n,p],["L",q,t])}):D.forEach(function(a){var b;n=a.pos;q=n+a.len; p=t=Math.round(m+d.height-F);"pass"!==B&&(pm+d.height)&&(B?p=t=w(p,m,m+d.height):b=!0);b||v.push(["M",n,p],["L",q,t])}));b.path=0B&&q=c&&(z=-(n.translateX+f.width-c));n.attr({x:e+z,y:m,anchorX:g?e:this.opposite?0:d.chartWidth,anchorY:g?this.opposite?d.chartHeight:0:m+f.height/2})}});K.prototype.init=function(){k.apply(this,arguments);this.initCompare(this.options.compare)};K.prototype.setCompare=function(a){this.initCompare(a); this.userOptions.compare=a};K.prototype.initCompare=function(a){this.modifyValue="value"===a||"percent"===a?function(b,c){var d=this.compareValue;return"undefined"!==typeof b&&"undefined"!==typeof d?(b="value"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b):0}:null;this.chart.hasRendered&&(this.isDirty=!0)};K.prototype.processData=function(a){var b,c=-1,d=!0===this.options.compareStart?0:1;M.apply(this,arguments);if(this.xAxis&&this.processedYData){var e=this.processedXData; var f=this.processedYData;var g=f.length;this.pointArrayMap&&(c=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y"));for(b=0;b=this.xAxis.min&&0!==k){this.compareValue=k;break}}}};c(K,"afterGetExtremes",function(a){a=a.dataExtremes;if(this.modifyValue&&a){var b=[this.modifyValue(a.dataMin),this.modifyValue(a.dataMax)];a.dataMin=J(b);a.dataMax=N(b)}});v.prototype.setCompare=function(a,b){this.isXAxis||(this.series.forEach(function(b){b.setCompare(a)}), G(b,!0)&&this.chart.redraw())};H.prototype.tooltipFormatter=function(a){var b=this.series.chart.numberFormatter;a=a.replace("{point.change}",(0