/* Highmaps JS v9.0.1 (2021-02-15) (c) 2011-2021 Torstein Honsi License: www.highcharts.com/license */ (function(V,J){"object"===typeof module&&module.exports?(J["default"]=J,module.exports=V.document?J(V):J):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return J(V)}):(V.Highcharts&&V.Highcharts.error(16,!0),V.Highcharts=J(V))})("undefined"!==typeof window?window:this,function(V){function J(w,l,b,y){w.hasOwnProperty(l)||(w[l]=y.apply(null,b))}var b={};J(b,"Core/Globals.js",[],function(){var w="undefined"!==typeof V?V:"undefined"!==typeof window?window:{},l=w.document, b=w.navigator&&w.navigator.userAgent||"",y=l&&l.createElementNS&&!!l.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,z=/(edge|msie|trident)/i.test(b)&&!w.opera,C=-1!==b.indexOf("Firefox"),v=-1!==b.indexOf("Chrome"),t=C&&4>parseInt(b.split("Firefox/")[1],10),q=function(){};return{product:"Highcharts",version:"9.0.1",deg2rad:2*Math.PI/360,doc:l,hasBidiBug:t,hasTouch:!!w.TouchEvent,isMS:z,isWebKit:-1!==b.indexOf("AppleWebKit"),isFirefox:C,isChrome:v,isSafari:!v&&-1!==b.indexOf("Safari"), isTouchDevice:/(Mobile|Android|Windows Phone)/.test(b),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},supportsPassiveEvents:function(){var h=!1;if(!z){var c=Object.defineProperty({},"passive",{get:function(){h=!0}});w.addEventListener&&w.removeEventListener&&(w.addEventListener("testPassive",q,c),w.removeEventListener("testPassive",q,c))}return h}(),symbolSizes:{},svg:y,win:w,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:q,charts:[],dateFormats:{}}});J(b,"Core/Utilities.js", [b["Core/Globals.js"]],function(w){function l(d,g,M,m){var F=g?"Highcharts error":"Highcharts warning";32===d&&(d=F+": Deprecated member");var W=c(d),O=W?F+" #"+d+": www.highcharts.com/errors/"+d+"/":d.toString();F=function(){if(g)throw Error(O);a.console&&-1===l.messages.indexOf(O)&&console.warn(O)};if("undefined"!==typeof m){var f="";W&&(O+="?");n(m,function(d,a){f+="\n - "+a+": "+d;W&&(O+=encodeURI(a)+"="+encodeURI(d))});O+=f}M?e(M,"displayError",{code:d,message:O,params:m},F):F();l.messages.push(O)} function b(){var d,a=arguments,M={},e=function(a,d){"object"!==typeof a&&(a={});n(d,function(F,D){"__proto__"!==D&&"constructor"!==D&&(!t(F,!0)||h(F)||q(F)?a[D]=d[D]:a[D]=e(a[D]||{},F))});return a};!0===a[0]&&(M=a[1],a=Array.prototype.slice.call(a,2));var F=a.length;for(d=0;da&&-Infinitym[1]){var D=d+ +m[1];0<=D?(m[0]=(+m[0]).toExponential(D).split("e")[0],d=D):(m[0]=m[0].split(".")[0]||0,a=20>d?(m[0]*Math.pow(10, m[1])).toFixed(d):0,m[1]=0)}var O=(Math.abs(m[1]?m[0]:a)+Math.pow(10,-Math.max(d,M)-1)).toFixed(d);M=String(z(O));D=3a?"-":"")+(D?M.substr(0,D)+g:"");a=0>+m[1]&&!n?"0":a+M.substr(D).replace(/(\d{3})(?=\d)/g,"$1"+g);d&&(a+=e+O.slice(-d));m[1]&&0!==+a&&(a+="e"+m[1]);return a}function r(a,d){if(!a)return d;var e=a.split(".").reverse();if(1===e.length)return d[a];for(a=e.pop();"undefined"!==typeof a&&"undefined"!==typeof d&&null!== d;)d=d[a],a=e.pop();return d}function n(a,d,e){for(var M in a)Object.hasOwnProperty.call(a,M)&&d.call(e||a[M],a[M],M,a)}function u(a,d,e){function M(d,F){var e=a.removeEventListener||w.removeEventListenerPolyfill;e&&e.call(a,d,F,!1)}function F(F){var e;if(a.nodeName){if(d){var g={};g[d]=!0}else g=F;n(g,function(a,d){if(F[d])for(e=F[d].length;e--;)M(d,F[d][e].fn)})}}var g="function"===typeof a&&a.prototype||a;if(Object.hasOwnProperty.call(g,"hcEvents")){var m=g.hcEvents;d?(g=m[d]||[],e?(m[d]=g.filter(function(a){return e!== a.fn}),M(d,e)):(F(m),m[d]=[])):(F(m),delete g.hcEvents)}}function e(a,e,M,g){M=M||{};if(d.createEvent&&(a.dispatchEvent||a.fireEvent)){var F=d.createEvent("Events");F.initEvent(e,!0,!0);G(F,M);a.dispatchEvent?a.dispatchEvent(F):a.fireEvent(e,F)}else if(a.hcEvents){M.target||G(M,{preventDefault:function(){M.defaultPrevented=!0},target:a,type:e});F=[];for(var m=a,n=!1;m.hcEvents;)Object.hasOwnProperty.call(m,"hcEvents")&&m.hcEvents[e]&&(F.length&&(n=!0),F.unshift.apply(F,m.hcEvents[e])),m=Object.getPrototypeOf(m); n&&F.sort(function(a,d){return a.order-d.order});F.forEach(function(d){!1===d.fn.call(a,M)&&M.preventDefault()})}g&&!M.defaultPrevented&&g.call(a,M)}var g=w.charts,d=w.doc,a=w.win;"";(l||(l={})).messages=[];var m;Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};var E=Array.prototype.find?function(a,d){return a.find(d)}:function(a,d){var e,g=a.length;for(e=0;ee&&(e=a[d]);return e},arrayMin:function(a){for(var d=a.length,e=a[0];d--;)a[d]d?a=e-1&&(e=Math.floor(g)),Math.max(0,e-w.getStyle(d,"padding-left")-w.getStyle(d,"padding-right"));if("height"===e)return Math.max(0,Math.min(d.offsetHeight,d.scrollHeight)-w.getStyle(d,"padding-top")-w.getStyle(d,"padding-bottom"));a.getComputedStyle|| l(27,!0);if(d=a.getComputedStyle(d,void 0))d=d.getPropertyValue(e),f(g,"opacity"!==e)&&(d=z(d));return d},inArray:function(a,d,e){l(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return d.indexOf(a,e)},isArray:v,isClass:h,isDOMElement:q,isFunction:function(a){return"function"===typeof a},isNumber:c,isObject:t,isString:C,keys:function(a){l(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(a)},merge:b,normalizeTickInterval:function(a,d,e,g,F){var m=a;e=f(e,1);var n=a/ e;d||(d=F?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===g&&(1===e?d=d.filter(function(a){return 0===a%1}):.1>=e&&(d=[1/e])));for(g=0;g=a||!F&&n<=(d[g]+(d[g+1]||d[g]))/2);g++);return m=K(m*e,-Math.round(Math.log(.001)/Math.LN10))},numberFormat:L,objectEach:n,offset:function(e){var g=d.documentElement;e=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:e.top+(a.pageYOffset||g.scrollTop)-(g.clientTop||0),left:e.left+(a.pageXOffset|| g.scrollLeft)-(g.clientLeft||0),width:e.width,height:e.height}},pad:function(a,d,e){return Array((d||2)+1-String(a).replace("-","").length).join(e||"0")+a},pick:f,pInt:z,relativeLength:function(a,d,e){return/%$/.test(a)?d*parseFloat(a)/100+(e||0):parseFloat(a)},removeEvent:u,setOptions:R,splat:function(a){return v(a)?a:[a]},stableSort:function(a,d){var e=a.length,g,F;for(F=0;F>16,(v&65280)>>8,v&255,1]:4===h&&(t=[(v&3840)>>4|(v&3840)>>8,(v&240)>> 4|v&240,(v&15)<<4|v&15,1])}if(!t)for(q=this.parsers.length;q--&&!t;){var c=this.parsers[q];(h=c.regex.exec(v))&&(t=c.parse(h))}}this.rgba=t||[]};l.prototype.get=function(v){var t=this.input,q=this.rgba;if("undefined"!==typeof this.stops){var h=y(t);h.stops=[].concat(h.stops);this.stops.forEach(function(c,p){h.stops[p]=[h.stops[p][0],c.get(v)]})}else h=q&&b(q[0])?"rgb"===v||!v&&1===q[3]?"rgb("+q[0]+","+q[1]+","+q[2]+")":"a"===v?q[3]:"rgba("+q.join(",")+")":t;return h};l.prototype.brighten=function(v){var t, q=this.rgba;if(this.stops)this.stops.forEach(function(h){h.brighten(v)});else if(b(v)&&0!==v)for(t=0;3>t;t++)q[t]+=z(255*v),0>q[t]&&(q[t]=0),255h)for(var c=0;c=p+this.startTime){this.now=this.end;this.pos=1;this.update();var G=k[this.prop]=!0;z(k,function(f){!0!==f&&(G=!1)});G&&c&&c.call(h);l=!1}else this.pos=q.easing((t-this.startTime)/p),this.now=this.start+(this.end-this.start)*this.pos,this.update(),l=!0;return l};l.prototype.initPath=function(l,t,q){function h(f,k){for(;f.length< K;){var n=f[0],u=k[K-f.length];u&&"M"===n[0]&&(f[0]="C"===u[0]?["C",n[1],n[2],n[1],n[2],n[1],n[2]]:["L",n[1],n[2]]);f.unshift(n);G&&f.push(f[f.length-1])}}function c(k,c){for(;k.lengthg.width)g={width:0,height:0}}else g=this.htmlGetBBox();m.isSVG&&(a=g.width,m=g.height,c&&(g.height=m={"11px,17":14,"13px,20":16}[f&&f.fontSize+","+Math.round(m)]||m),e&&(f=e*h,g.width=Math.abs(m*Math.sin(f))+Math.abs(a*Math.cos(f)),g.height=Math.abs(m* Math.cos(f))+Math.abs(a*Math.sin(f))));if(I&&0]*>/g,"").replace(/</g,"<").replace(/>/g,">")};b.prototype.toFront=function(){var a=this.element;a.parentNode.appendChild(a);return this};b.prototype.translate=function(a,d){return this.attr({translateX:a,translateY:d})};b.prototype.updateShadows=function(a,d,e){var g=this.shadows;if(g)for(var m=g.length;m--;)e.call(g[m],"height"===a?Math.max(d-(g[m].cutHeight||0),0):"d"===a?this.d:d,a,g[m])};b.prototype.updateTransform= function(){var a=this.translateX||0,d=this.translateY||0,e=this.scaleX,g=this.scaleY,m=this.inverted,n=this.rotation,D=this.matrix,f=this.element;m&&(a+=this.width,d+=this.height);a=["translate("+a+","+d+")"];r(D)&&a.push("matrix("+D.join(",")+")");m?a.push("rotate(90) scale(-1,1)"):n&&a.push("rotate("+n+" "+A(this.rotationOriginX,f.getAttribute("x"),0)+" "+A(this.rotationOriginY,f.getAttribute("y")||0)+")");(r(e)||r(g))&&a.push("scale("+A(e,1)+" "+A(g,1)+")");a.length&&f.setAttribute("transform", a.join(" "))};b.prototype.visibilitySetter=function(a,d,e){"inherit"===a?e.removeAttribute(d):this[d]!==a&&e.setAttribute(d,a);this[d]=a};b.prototype.xGetter=function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)};b.prototype.zIndexSetter=function(a,d){var e=this.renderer,g=this.parentGroup,m=(g||e).element||e.box,n=this.element,D=!1;e=m===e.box;var f=this.added;var k;r(a)?(n.setAttribute("data-z-index",a),a=+a,this[d]===a&&(f=!1)):r(this[d])&& n.removeAttribute("data-z-index");this[d]=a;if(f){(a=this.zIndex)&&g&&(g.handleZ=!0);d=m.childNodes;for(k=d.length-1;0<=k&&!D;k--){g=d[k];f=g.getAttribute("data-z-index");var E=!r(f);if(g!==n)if(0>a&&E&&!e&&!k)m.insertBefore(n,d[k]),D=!0;else if(N(f)<=a||E&&(!r(a)||0<=a))m.insertBefore(n,d[k+1]||null),D=!0}D||(m.insertBefore(n,d[e?3:0]||null),D=!0)}return D};return b}();b.prototype["stroke-widthSetter"]=b.prototype.strokeSetter;b.prototype.yGetter=b.prototype.xGetter;b.prototype.matrixSetter=b.prototype.rotationOriginXSetter= b.prototype.rotationOriginYSetter=b.prototype.rotationSetter=b.prototype.scaleXSetter=b.prototype.scaleYSetter=b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(a,d){this[d]=a;this.doTransform=!0};y.SVGElement=b;return y.SVGElement});J(b,"Core/Renderer/SVG/SVGLabel.js",[b["Core/Renderer/SVG/SVGElement.js"],b["Core/Utilities.js"]],function(b,l){function w(c,h){v(c)?c!==this[h]&&(this[h]=c,this.updateTextPadding()):this[h]=void 0}var y=this&&this.__extends|| function(){var c=function(h,k){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,f){k.__proto__=f}||function(k,f){for(var c in f)f.hasOwnProperty(c)&&(k[c]=f[c])};return c(h,k)};return function(h,k){function p(){this.constructor=h}c(h,k);h.prototype=null===k?Object.create(k):(p.prototype=k.prototype,new p)}}(),z=l.defined,C=l.extend,v=l.isNumber,t=l.merge,q=l.pick,h=l.removeEvent;return function(c){function p(k,h,f,H,x,K,q,r,n,u){var e=c.call(this)||this;e.paddingSetter=w;e.paddingLeftSetter= w;e.paddingRightSetter=w;e.init(k,"g");e.textStr=h;e.x=f;e.y=H;e.anchorX=K;e.anchorY=q;e.baseline=n;e.className=u;"button"!==u&&e.addClass("highcharts-label");u&&e.addClass("highcharts-"+u);e.text=k.text("",0,0,r).attr({zIndex:1});if("string"===typeof x){var g=/^url\((.*?)\)$/.test(x);if(e.renderer.symbols[x]||g)e.symbolKey=x}e.bBox=p.emptyBBox;e.padding=3;e.baselineOffset=0;e.needsBox=k.styledMode||g;e.deferredAttr={};e.alignFactor=0;return e}y(p,c);p.prototype.alignSetter=function(k){k={left:0, center:.5,right:1}[k];k!==this.alignFactor&&(this.alignFactor=k,this.bBox&&v(this.xSetting)&&this.attr({x:this.xSetting}))};p.prototype.anchorXSetter=function(k,c){this.anchorX=k;this.boxAttr(c,Math.round(k)-this.getCrispAdjust()-this.xSetting)};p.prototype.anchorYSetter=function(k,c){this.anchorY=k;this.boxAttr(c,k-this.ySetting)};p.prototype.boxAttr=function(k,c){this.box?this.box.attr(k,c):this.deferredAttr[k]=c};p.prototype.css=function(k){if(k){var c={};k=t(k);p.textProps.forEach(function(f){"undefined"!== typeof k[f]&&(c[f]=k[f],delete k[f])});this.text.css(c);var f="width"in c;"fontSize"in c||"fontWeight"in c?this.updateTextPadding():f&&this.updateBoxSize()}return b.prototype.css.call(this,k)};p.prototype.destroy=function(){h(this.element,"mouseenter");h(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());b.prototype.destroy.call(this)};p.prototype.fillSetter=function(k,c){k&&(this.needsBox=!0);this.fill=k;this.boxAttr(c,k)};p.prototype.getBBox=function(){var k= this.bBox,c=this.padding,f=q(this.paddingLeft,c);return{width:this.width,height:this.height,x:k.x-f,y:k.y-c}};p.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};p.prototype.heightSetter=function(k){this.heightSetting=k};p.prototype.on=function(k,c){var f=this,h=f.text,x=h&&"SPAN"===h.element.tagName?h:void 0;if(x){var p=function(h){("mouseenter"===k||"mouseleave"===k)&&h.relatedTarget instanceof Element&&(f.element.compareDocumentPosition(h.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY||x.element.compareDocumentPosition(h.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||c.call(f.element,h)};x.on(k,p)}b.prototype.on.call(f,k,p||c);return f};p.prototype.onAdd=function(){var k=this.textStr;this.text.add(this);this.attr({text:z(k)?k:"",x:this.x,y:this.y});this.box&&z(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};p.prototype.rSetter=function(k,c){this.boxAttr(c, k)};p.prototype.shadow=function(k){k&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(k));return this};p.prototype.strokeSetter=function(k,c){this.stroke=k;this.boxAttr(c,k)};p.prototype["stroke-widthSetter"]=function(k,c){k&&(this.needsBox=!0);this["stroke-width"]=k;this.boxAttr(c,k)};p.prototype["text-alignSetter"]=function(k){this.textAlign=k};p.prototype.textSetter=function(k){"undefined"!==typeof k&&this.text.attr({text:k});this.updateTextPadding()};p.prototype.updateBoxSize= function(){var k=this.text.element.style,c={},f=this.padding,h=this.bBox=v(this.widthSetting)&&v(this.heightSetting)&&!this.textAlign||!z(this.text.textStr)?p.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||h.height||0)+2*f;this.baselineOffset=f+Math.min(this.renderer.fontMetrics(k&&k.fontSize,this.text).b,h.height||Infinity);this.needsBox&&(this.box||(k=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),k.addClass(("button"=== this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),k.add(this)),k=this.getCrispAdjust(),c.x=k,c.y=(this.baseline?-this.baselineOffset:0)+k,c.width=Math.round(this.width),c.height=Math.round(this.height),this.box.attr(C(c,this.deferredAttr)),this.deferredAttr={})};p.prototype.updateTextPadding=function(){var c=this.text;this.updateBoxSize();var h=this.baseline?0:this.baselineOffset,f=q(this.paddingLeft,this.padding);z(this.widthSetting)&&this.bBox&& ("center"===this.textAlign||"right"===this.textAlign)&&(f+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(f!==c.x||h!==c.y)c.attr("x",f),c.hasBoxWidthChanged&&(this.bBox=c.getBBox(!0)),"undefined"!==typeof h&&c.attr("y",h);c.x=f;c.y=h};p.prototype.widthSetter=function(c){this.widthSetting=v(c)?c:void 0};p.prototype.getPaddedWidth=function(){var c=this.padding,h=q(this.paddingLeft,c);c=q(this.paddingRight,c);return(this.widthSetting||this.bBox.width||0)+h+c};p.prototype.xSetter= function(c){this.x=c;this.alignFactor&&(c-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(c);this.attr("translateX",this.xSetting)};p.prototype.ySetter=function(c){this.ySetting=this.y=Math.round(c);this.attr("translateY",this.ySetting)};p.emptyBBox={width:0,height:0,x:0,y:0};p.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return p}(b)});J(b,"Core/Renderer/SVG/TextBuilder.js", [b["Core/Globals.js"],b["Core/Utilities.js"],b["Core/Renderer/HTML/AST.js"]],function(b,l,B){var w=b.doc,z=b.SVG_NS,C=l.attr,v=l.isString,t=l.objectEach,q=l.pick;return function(){function h(c){var h=c.styles;this.renderer=c.renderer;this.svgElement=c;this.width=c.textWidth;this.textLineHeight=h&&h.lineHeight;this.textOutline=h&&h.textOutline;this.ellipsis=!(!h||"ellipsis"!==h.textOverflow);this.noWrap=!(!h||"nowrap"!==h.whiteSpace);this.fontSize=h&&h.fontSize}h.prototype.buildSVG=function(){var c= this.svgElement,h=c.element,k=c.renderer,b=q(c.textStr,"").toString(),f=-1!==b.indexOf("<"),H=h.childNodes,x=H.length;k=this.width&&!c.added&&k.box;var K=//g;var l=[b,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(l!==c.textCache){c.textCache=l;for(delete c.actualWidth;x--;)h.removeChild(H[x]);f||this.ellipsis||this.width||-1!==b.indexOf(" ")&&(!this.noWrap||K.test(b))?""!==b&&(k&&k.appendChild(h),b=new B(b),this.modifyTree(b.nodes),b.addToDOM(c.element), this.modifyDOM(),this.ellipsis&&-1!==(h.textContent||"").indexOf("\u2026")&&c.attr("title",this.unescapeEntities(c.textStr||"",["<",">"])),k&&k.removeChild(h)):h.appendChild(w.createTextNode(this.unescapeEntities(b)));v(this.textOutline)&&c.applyTextOutline&&c.applyTextOutline(this.textOutline)}};h.prototype.modifyDOM=function(){var c=this,h=this.svgElement,k=C(h.element,"x");[].forEach.call(h.element.querySelectorAll("tspan.highcharts-br"),function(f){f.nextSibling&&f.previousSibling&&C(f, {dy:c.getLineHeight(f.nextSibling),x:k})});var b=this.width||0;if(b){var f=function(f,p){var x=f.textContent||"",r=x.replace(/([^\^])-/g,"$1- ").split(" "),n=!c.noWrap&&(1f){for(;n<=u;)e=Math.ceil((n+u)/2),k&&(g=H(k,e)),a=d(e,g&&g.length-1),n===u?n=u+1:a>f?u=e-1:n=e;0===u?c.textContent="":h&&u===h.length-1||(c.textContent=g||H(h||k,e))}k&&k.splice(0,e);x.actualWidth=a;x.rotation=q};h.prototype.unescapeEntities=function(c,h){t(this.renderer.escapes,function(k,p){h&&-1!==h.indexOf(k)||(c=c.toString().replace(new RegExp(k,"g"),p))});return c};return h}()});J(b,"Core/Renderer/SVG/SVGRenderer.js", [b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Color/Palette.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGLabel.js"],b["Core/Renderer/HTML/AST.js"],b["Core/Renderer/SVG/TextBuilder.js"],b["Core/Utilities.js"]],function(b,l,B,y,z,C,v,t){var q=t.addEvent,h=t.attr,c=t.createElement,p=t.css,k=t.defined,G=t.destroyObjectProperties,f=t.extend,H=t.isArray,x=t.isNumber,K=t.isObject,L=t.isString,r=t.merge,n=t.pick,u=t.pInt,e=t.uniqueKey,g=l.charts,d=l.deg2rad,a=l.doc,m=l.isFirefox, E=l.isMS,I=l.isWebKit;t=l.noop;var A=l.SVG_NS,N=l.symbolSizes,R=l.win,w,T=function(){function A(a,d,e,g,m,f,n){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,d,e,g,m,f,n)}A.prototype.init=function(d,e,g,f,n,D,c){var F=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"});c||F.css(this.getStyle(f));f=F.element; d.appendChild(f);h(d,"dir","ltr");-1===d.innerHTML.indexOf("xmlns")&&h(f,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=F;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(a.createTextNode("Created with Highcharts 9.0.1"));this.defs=this.createElement("defs").add();this.allowHTML=D;this.forExport=n;this.styledMode=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(e,g,!1);var k;m&&d.getBoundingClientRect&& (e=function(){p(d,{left:0,top:0});k=d.getBoundingClientRect();p(d,{left:Math.ceil(k.left)-k.left+"px",top:Math.ceil(k.top)-k.top+"px"})},e(),this.unSubPixelFix=q(R,"resize",e))};A.prototype.definition=function(a){return(new C([a])).addToDOM(this.defs.element)};A.prototype.getReferenceURL=function(){if((m||I)&&a.getElementsByTagName("base").length){if(!k(w)){var d=e();d=(new C([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:d},children:[{tagName:"rect", attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+d+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(a.body);p(d,{position:"fixed",top:0,left:0,zIndex:9E5});var g=a.elementFromPoint(6,6);w="hitme"===(g&&g.id);a.body.removeChild(d)}if(w)return R.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};A.prototype.getStyle=function(a){return this.style=f({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', fontSize:"12px"},a)};A.prototype.setStyle=function(a){this.boxWrapper.css(this.getStyle(a))};A.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};A.prototype.destroy=function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();G(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};A.prototype.createElement=function(a){var d=new this.Element;d.init(this,a);return d};A.prototype.getRadialAttr= function(a,d){return{cx:a[0]-a[2]/2+d.cx*a[2],cy:a[1]-a[2]/2+d.cy*a[2],r:d.r*a[2]}};A.prototype.buildText=function(a){(new v(a)).buildSVG()};A.prototype.getContrast=function(a){a=b.parse(a).rgba;a[0]*=1;a[1]*=1.2;a[2]*=.5;return 459a?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}};A.prototype.rotCorr=function(a,e,g){var m=a;e&&g&&(m=Math.max(m*Math.cos(e*d),4));return{x:-a/3*Math.sin(e*d),y:m}};A.prototype.pathToSegments=function(a){for(var d=[],e=[],g={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},m=0;m":">","'":"'",'"':"""};T.prototype.symbols={circle:function(a,d,e,g){return this.arc(a+e/2,d+g/2,e/2,g/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(a,d,e,g){return[["M",a,d],["L",a+e,d],["L",a+e,d+g],["L",a,d+g],["Z"]]},triangle:function(a, d,e,g){return[["M",a+e/2,d],["L",a+e,d+g],["L",a,d+g],["Z"]]},"triangle-down":function(a,d,e,g){return[["M",a,d],["L",a+e,d],["L",a+e/2,d+g],["Z"]]},diamond:function(a,d,e,g){return[["M",a+e/2,d],["L",a+e,d+g/2],["L",a+e/2,d+g],["L",a,d+g/2],["Z"]]},arc:function(a,d,e,g,m){var f=[];if(m){var D=m.start||0,c=m.end||0,F=m.r||e;e=m.r||g||e;var u=.001>Math.abs(c-D-2*Math.PI);c-=.001;g=m.innerR;u=n(m.open,u);var E=Math.cos(D),h=Math.sin(D),A=Math.cos(c),I=Math.sin(c);D=n(m.longArc,.001>c-D-Math.PI?0:1); f.push(["M",a+F*E,d+e*h],["A",F,e,0,D,n(m.clockwise,1),a+F*A,d+e*I]);k(g)&&f.push(u?["M",a+g*A,d+g*I]:["L",a+g*A,d+g*I],["A",g,g,0,D,k(m.clockwise)?1-m.clockwise:0,a+g*E,d+g*h]);u||f.push(["Z"])}return f},callout:function(a,d,e,g,m){var f=Math.min(m&&m.r||0,e,g),n=f+6,c=m&&m.anchorX;m=m&&m.anchorY||0;var k=[["M",a+f,d],["L",a+e-f,d],["C",a+e,d,a+e,d,a+e,d+f],["L",a+e,d+g-f],["C",a+e,d+g,a+e,d+g,a+e-f,d+g],["L",a+f,d+g],["C",a,d+g,a,d+g,a,d+g-f],["L",a,d+f],["C",a,d,a,d,a+f,d]];if(!x(c))return k;a+ c>=e?m>d+n&&m=a+c?m>d+n&&mg&&c>a+n&&cm&&c>a+n&&cthis.oldTextWidth)&&((u=this.textPxLength)||(w(c,{width:"",whiteSpace:L||"nowrap"}),u=c.offsetWidth),u=u>r);u&&(/[ \-]/.test(c.textContent||c.innerText)||"ellipsis"===c.style.textOverflow)?(w(c,{width:r+"px",display:"block", whiteSpace:L||"normal"}),this.oldTextWidth=r,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;n!==this.cTT&&(L=h.fontMetrics(c.style.fontSize,c).b,!z(l)||l===(this.oldRotation||0)&&H===this.oldAlign||this.setSpanRotation(l,x,L),this.getSpanCorrection(!z(l)&&this.textPxLength||c.offsetWidth,L,x,l,H));w(c,{left:q+(this.xCorr||0)+"px",top:f+(this.yCorr||0)+"px"});this.cTT=n;this.oldRotation=l;this.oldAlign=H}}else this.alignOnAdd=!0},setSpanRotation:function(h,c,b){var k={},p=this.renderer.getTransformKey(); k[p]=k.transform="rotate("+h+"deg)";k[p+(q?"Origin":"-origin")]=k.transformOrigin=100*c+"% "+b+"px";w(this.element,k)},getSpanCorrection:function(h,c,b){this.xCorr=-h*b;this.yCorr=-c}});return l});J(b,"Core/Renderer/HTML/HTMLRenderer.js",[b["Core/Globals.js"],b["Core/Renderer/HTML/AST.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,l,B,y,z){var w=b.isFirefox,v=b.isMS,t=b.isWebKit,q=b.win,h=z.attr,c=z.createElement,p=z.extend,k=z.pick; p(y.prototype,{getTransformKey:function(){return v&&!/Edge/.test(q.navigator.userAgent)?"-ms-transform":t?"-webkit-transform":w?"MozTransform":q.opera?"-o-transform":""},html:function(b,f,H){var x=this.createElement("span"),q=x.element,L=x.renderer,r=L.isSVG,n=function(f,e){["opacity","visibility"].forEach(function(g){f[g+"Setter"]=function(d,a,m){var n=f.div?f.div.style:e;B.prototype[g+"Setter"].call(this,d,a,m);n&&(n[a]=d)}});f.addedSetters=!0};x.textSetter=function(f){f!==this.textStr&&(delete this.bBox, delete this.oldTextWidth,l.setElementHTML(this.element,k(f,"")),this.textStr=f,x.doTransform=!0)};r&&n(x,x.element.style);x.xSetter=x.ySetter=x.alignSetter=x.rotationSetter=function(f,e){"align"===e?x.alignValue=x.textAlign=f:x[e]=f;x.doTransform=!0};x.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};x.attr({text:b,x:Math.round(f),y:Math.round(H)}).css({position:"absolute"});L.styledMode||x.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}); q.style.whiteSpace="nowrap";x.css=x.htmlCss;r&&(x.add=function(f){var e=L.box.parentNode,g=[];if(this.parentGroup=f){var d=f.div;if(!d){for(;f;)g.push(f),f=f.parentGroup;g.reverse().forEach(function(a){function m(d,e){a[e]=d;"translateX"===e?u.left=d+"px":u.top=d+"px";a.doTransform=!0}var f=h(a.element,"class"),k=a.styles||{};d=a.div=a.div||c("div",f?{className:f}:void 0,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,cursor:k.cursor, pointerEvents:k.pointerEvents},d||e);var u=d.style;p(a,{classSetter:function(a){return function(d){this.element.setAttribute("class",d);a.className=d}}(d),on:function(){g[0].div&&x.on.apply({element:g[0].div},arguments);return a},translateXSetter:m,translateYSetter:m});a.addedSetters||n(a)})}}else d=e;d.appendChild(q);x.added=!0;x.alignOnAdd&&x.htmlUpdateTransform();return x});return x}});return y});J(b,"Core/Time.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,l){var w=b.win,y=l.defined, z=l.error,C=l.extend,v=l.isObject,t=l.merge,q=l.objectEach,h=l.pad,c=l.pick,p=l.splat,k=l.timeUnits;"";l=function(){function l(f){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=w.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(f)}l.prototype.get=function(f,c){if(this.variableTimezone||this.timezoneOffset){var k=c.getTime(),h=k-this.getTimezoneOffset(c);c.setTime(h);f=c["getUTC"+f]();c.setTime(k);return f}return this.useUTC?c["getUTC"+f]():c["get"+f]()};l.prototype.set= function(f,c,k){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===f||"Seconds"===f||"Minutes"===f&&0===this.getTimezoneOffset(c)%36E5)return c["setUTC"+f](k);var h=this.getTimezoneOffset(c);h=c.getTime()-h;c.setTime(h);c["setUTC"+f](k);f=this.getTimezoneOffset(c);h=c.getTime()+f;return c.setTime(h)}return this.useUTC?c["setUTC"+f](k):c["set"+f](k)};l.prototype.update=function(f){var k=c(f&&f.useUTC,!0);this.options=f=t(!0,this.options||{},f);this.Date=f.Date||w.Date||Date;this.timezoneOffset= (this.useUTC=k)&&f.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=k&&!(!f.getTimezoneOffset&&!f.timezone)};l.prototype.makeTime=function(f,k,h,p,q,r){if(this.useUTC){var n=this.Date.UTC.apply(0,arguments);var u=this.getTimezoneOffset(n);n+=u;var e=this.getTimezoneOffset(n);u!==e?n+=e-u:u-36E5!==this.getTimezoneOffset(n-36E5)||b.isSafari||(n-=36E5)}else n=(new this.Date(f,k,c(h,1),c(p,0),c(q,0),c(r,0))).getTime();return n};l.prototype.timezoneOffsetFunction= function(){var f=this,c=this.options,k=c.moment||w.moment;if(!this.useUTC)return function(f){return 6E4*(new Date(f.toString())).getTimezoneOffset()};if(c.timezone){if(k)return function(f){return 6E4*-k.tz(f,c.timezone).utcOffset()};z(25)}return this.useUTC&&c.getTimezoneOffset?function(f){return 6E4*c.getTimezoneOffset(f.valueOf())}:function(){return 6E4*(f.timezoneOffset||0)}};l.prototype.dateFormat=function(f,k,x){var p;if(!y(k)||isNaN(k))return(null===(p=b.defaultOptions.lang)||void 0===p?void 0: p.invalidDate)||"";f=c(f,"%Y-%m-%d %H:%M:%S");var l=this;p=new this.Date(k);var r=this.get("Hours",p),n=this.get("Day",p),u=this.get("Date",p),e=this.get("Month",p),g=this.get("FullYear",p),d=b.defaultOptions.lang,a=null===d||void 0===d?void 0:d.weekdays,m=null===d||void 0===d?void 0:d.shortWeekdays;p=C({a:m?m[n]:a[n].substr(0,3),A:a[n],d:h(u),e:h(u,2," "),w:n,b:d.shortMonths[e],B:d.months[e],m:h(e+1),o:e+1,y:g.toString().substr(2,2),Y:g,H:h(r),k:r,I:h(r%12||12),l:r%12||12,M:h(this.get("Minutes", p)),p:12>r?"AM":"PM",P:12>r?"am":"pm",S:h(p.getSeconds()),L:h(Math.floor(k%1E3),3)},b.dateFormats);q(p,function(a,d){for(;-1!==f.indexOf("%"+d);)f=f.replace("%"+d,"function"===typeof a?a.call(l,k):a)});return x?f.substr(0,1).toUpperCase()+f.substr(1):f};l.prototype.resolveDTLFormat=function(f){return v(f,!0)?f:(f=p(f),{main:f[0],from:f[1],to:f[2]})};l.prototype.getTimeTicks=function(f,h,b,p){var x=this,r=[],n={};var u=new x.Date(h);var e=f.unitRange,g=f.count||1,d;p=c(p,1);if(y(h)){x.set("Milliseconds", u,e>=k.second?0:g*Math.floor(x.get("Milliseconds",u)/g));e>=k.second&&x.set("Seconds",u,e>=k.minute?0:g*Math.floor(x.get("Seconds",u)/g));e>=k.minute&&x.set("Minutes",u,e>=k.hour?0:g*Math.floor(x.get("Minutes",u)/g));e>=k.hour&&x.set("Hours",u,e>=k.day?0:g*Math.floor(x.get("Hours",u)/g));e>=k.day&&x.set("Date",u,e>=k.month?1:Math.max(1,g*Math.floor(x.get("Date",u)/g)));if(e>=k.month){x.set("Month",u,e>=k.year?0:g*Math.floor(x.get("Month",u)/g));var a=x.get("FullYear",u)}e>=k.year&&x.set("FullYear", u,a-a%g);e===k.week&&(a=x.get("Day",u),x.set("Date",u,x.get("Date",u)-a+p+(a4*k.month||x.getTimezoneOffset(h)!==x.getTimezoneOffset(b));h=u.getTime();for(u=1;hr.length&&r.forEach(function(a){0===a%18E5&&"000000000"===x.dateFormat("%H%M%S%L",a)&&(n[a]="day")})}r.info=C(f,{higherRanks:n,totalRange:e*g});return r};return l}();b.Time=l;return b.Time});J(b,"Core/Options.js",[b["Core/Globals.js"],b["Core/Color/Color.js"],b["Core/Color/Palette.js"],b["Core/Time.js"],b["Core/Utilities.js"]],function(b,l,B,y,z){var w=b.isTouchDevice,v=b.svg;l=l.parse;z=z.merge;"";b.defaultOptions={colors:B.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:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:B.highlightColor80,backgroundColor:B.backgroundColor,plotBorderColor:B.neutralColor20},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:B.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:B.neutralColor40,borderRadius:0,navigation:{activeColor:B.highlightColor100,inactiveColor:B.neutralColor20},itemStyle:{color:B.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:B.neutralColor100},itemHiddenStyle:{color:B.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:B.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:v,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:w?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:l(B.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:B.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:B.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};b.defaultOptions.chart.styledMode=!1;"";b.time=new y(z(b.defaultOptions.global,b.defaultOptions.time));b.dateFormat=function(l,q,h){return b.time.dateFormat(l,q,h)};return{dateFormat:b.dateFormat,defaultOptions:b.defaultOptions,time:b.time}});J(b,"Core/Axis/Tick.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,l){var w=b.deg2rad,y=l.clamp,z= l.correctFloat,C=l.defined,v=l.destroyObjectProperties,t=l.extend,q=l.fireEvent,h=l.isNumber,c=l.merge,p=l.objectEach,k=l.pick;"";l=function(){function b(f,c,k,h,b){this.isNewLabel=this.isNew=!0;this.axis=f;this.pos=c;this.type=k||"";this.parameters=b||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;q(this,"init");k||h||this.addLabel()}b.prototype.addLabel=function(){var f=this,c=f.axis,h=c.options,b=c.chart,p=c.categories,r=c.logarithmic,n=c.names,u=f.pos, e=k(f.options&&f.options.labels,h.labels),g=c.tickPositions,d=u===g[0],a=u===g[g.length-1];n=this.parameters.category||(p?k(p[u],n[u],u):u);var m=f.label;p=(!e.step||1===e.step)&&1===c.tickInterval;g=g.info;var E,I;if(c.dateTime&&g){var A=b.time.resolveDTLFormat(h.dateTimeLabelFormats[!h.grid&&g.higherRanks[u]||g.unitName]);var l=A.main}f.isFirst=d;f.isLast=a;f.formatCtx={axis:c,chart:b,isFirst:d,isLast:a,dateTimeLabelFormat:l,tickPositionInfo:g,value:r?z(r.lin2log(n)):n,pos:u};h=c.labelFormatter.call(f.formatCtx, this.formatCtx);if(I=A&&A.list)f.shortenLabel=function(){for(E=0;Ee&&b-g*dr&&(I=Math.round((p-b)/Math.cos(e*w)));else if(p=b+(1-g)*d,b-g* dr&&(m=r-f.x+m*g,E=-1),m=Math.min(a,m),mm||c.autoRotation&&(u.styles||{}).width)I=m;I&&(this.shortenLabel?this.shortenLabel():(A.width=Math.floor(I)+"px",(h.style||{}).textOverflow||(A.textOverflow="ellipsis"),u.css(A)))};b.prototype.moveLabel=function(f,c){var k=this,h=k.label,b=!1,r=k.axis,n=r.reversed;h&&h.textStr===f?(k.movedLabel=h,b=!0,delete k.label):p(r.ticks,function(e){b||e.isNew||e===k||!e.label||e.label.textStr!== f||(k.movedLabel=e.label,b=!0,e.labelPos=k.movedLabel.xy,delete e.label)});if(!b&&(k.labelPos||h)){var u=k.labelPos||h.xy;h=r.horiz?n?0:r.width+r.left:u.x;r=r.horiz?u.y:n?r.width+r.left:0;k.movedLabel=k.createLabel({x:h,y:r},f,c);k.movedLabel&&k.movedLabel.attr({opacity:0})}};b.prototype.render=function(f,c,h){var b=this.axis,p=b.horiz,r=this.pos,n=k(this.tickmarkOffset,b.tickmarkOffset);r=this.getPosition(p,r,n,c);n=r.x;var u=r.y;b=p&&n===b.pos+b.len||!p&&u===b.pos?-1:1;h=k(h,1);this.isActive=!0; this.renderGridLine(c,h,b);this.renderMark(r,h,b);this.renderLabel(r,c,h,f);this.isNew=!1;q(this,"afterRender")};b.prototype.renderGridLine=function(f,c,h){var b=this.axis,p=b.options,r=this.gridLine,n={},u=this.pos,e=this.type,g=k(this.tickmarkOffset,b.tickmarkOffset),d=b.chart.renderer,a=e?e+"Grid":"grid",m=p[a+"LineWidth"],E=p[a+"LineColor"];p=p[a+"LineDashStyle"];r||(b.chart.styledMode||(n.stroke=E,n["stroke-width"]=m,p&&(n.dashstyle=p)),e||(n.zIndex=1),f&&(c=0),this.gridLine=r=d.path().attr(n).addClass("highcharts-"+ (e?e+"-":"")+"grid-line").add(b.gridGroup));if(r&&(h=b.getPlotLinePath({value:u+g,lineWidth:r.strokeWidth()*h,force:"pass",old:f})))r[f||this.isNew?"attr":"animate"]({d:h,opacity:c})};b.prototype.renderMark=function(f,c,h){var b=this.axis,p=b.options,r=b.chart.renderer,n=this.type,u=n?n+"Tick":"tick",e=b.tickSize(u),g=this.mark,d=!g,a=f.x;f=f.y;var m=k(p[u+"Width"],!n&&b.isXAxis?1:0);p=p[u+"Color"];e&&(b.opposite&&(e[0]=-e[0]),d&&(this.mark=g=r.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(b.axisGroup), b.chart.styledMode||g.attr({stroke:p,"stroke-width":m})),g[d?"attr":"animate"]({d:this.getMarkPath(a,f,e[0],g.strokeWidth()*h,b.horiz,r),opacity:c}))};b.prototype.renderLabel=function(f,c,b,p){var x=this.axis,r=x.horiz,n=x.options,u=this.label,e=n.labels,g=e.step;x=k(this.tickmarkOffset,x.tickmarkOffset);var d=!0,a=f.x;f=f.y;u&&h(a)&&(u.xy=f=this.getLabelPosition(a,f,u,r,e,x,p,g),this.isFirst&&!this.isLast&&!k(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!k(n.showLastLabel,1)?d=!1:!r||e.step|| e.rotation||c||0===b||this.handleOverflow(f),g&&p%g&&(d=!1),d&&h(f.y)?(f.opacity=b,u[this.isNewLabel?"attr":"animate"](f),this.isNewLabel=!1):(u.attr("y",-9999),this.isNewLabel=!0))};b.prototype.replaceMovedLabel=function(){var f=this.label,c=this.axis,k=c.reversed;if(f&&!this.isNew){var h=c.horiz?k?c.left:c.width+c.left:f.xy.x;k=c.horiz?f.xy.y:k?c.width+c.top:c.top;f.animate({x:h,y:k,opacity:0},void 0,f.destroy);delete this.label}c.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return b}(); b.Tick=l;return b.Tick});J(b,"Core/Axis/Axis.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Color/Palette.js"],b["Core/Options.js"],b["Core/Axis/Tick.js"],b["Core/Utilities.js"]],function(b,l,B,y,z,C,v){var t=b.animObject,q=z.defaultOptions,h=v.addEvent,c=v.arrayMax,p=v.arrayMin,k=v.clamp,G=v.correctFloat,f=v.defined,H=v.destroyObjectProperties,x=v.erase,w=v.error,L=v.extend,r=v.fireEvent,n=v.format,u=v.getMagnitude,e=v.isArray,g=v.isFunction, d=v.isNumber,a=v.isString,m=v.merge,E=v.normalizeTickInterval,I=v.objectEach,A=v.pick,N=v.relativeLength,R=v.removeEvent,Q=v.splat,T=v.syncTimeout;"";var M=B.deg2rad;b=function(){function b(a,d){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.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(a,d)}b.prototype.init=function(a,d){var e=d.isX,m=this;m.chart= a;m.horiz=a.inverted&&!m.isZAxis?!e:e;m.isXAxis=e;m.coll=m.coll||(e?"xAxis":"yAxis");r(this,"init",{userOptions:d});m.opposite=A(d.opposite,m.opposite);m.side=A(d.side,m.side,m.horiz?m.opposite?0:2:m.opposite?1:3);m.setOptions(d);var c=this.options,n=c.type;m.labelFormatter=c.labels.formatter||m.defaultLabelFormatter;m.userOptions=d;m.minPixelPadding=0;m.reversed=A(c.reversed,m.reversed);m.visible=!1!==c.visible;m.zoomEnabled=!1!==c.zoomEnabled;m.hasNames="category"===n||!0===c.categories;m.categories= c.categories||m.hasNames;m.names||(m.names=[],m.names.keys={});m.plotLinesAndBandsGroups={};m.positiveValuesOnly=!!m.logarithmic;m.isLinked=f(c.linkedTo);m.ticks={};m.labelEdge=[];m.minorTicks={};m.plotLinesAndBands=[];m.alternateBands={};m.len=0;m.minRange=m.userMinRange=c.minRange||c.maxZoom;m.range=c.range;m.offset=c.offset||0;m.max=null;m.min=null;m.crosshair=A(c.crosshair,Q(a.options.tooltip.crosshairs)[e?0:1],!1);d=m.options.events;-1===a.axes.indexOf(m)&&(e?a.axes.splice(a.xAxis.length,0,m): a.axes.push(m),a[m.coll].push(m));m.series=m.series||[];a.inverted&&!m.isZAxis&&e&&"undefined"===typeof m.reversed&&(m.reversed=!0);m.labelRotation=m.options.labels.rotation;I(d,function(a,d){g(a)&&h(m,d,a)});r(this,"afterInit")};b.prototype.setOptions=function(a){this.options=m(b.defaultOptions,"yAxis"===this.coll&&b.defaultYAxisOptions,[b.defaultTopAxisOptions,b.defaultRightAxisOptions,b.defaultBottomAxisOptions,b.defaultLeftAxisOptions][this.side],m(q[this.coll],a));r(this,"afterSetOptions",{userOptions:a})}; b.prototype.defaultLabelFormatter=function(){var a=this.axis,e=d(this.value)?this.value:NaN,g=a.chart.time,m=a.categories,c=this.dateTimeLabelFormat,f=q.lang,k=f.numericSymbols;f=f.numericSymbolMagnitude||1E3;var h=k&&k.length,b=a.options.labels.format;a=a.logarithmic?Math.abs(e):a.tickInterval;var u=this.chart,E=u.numberFormatter;if(b)var A=n(b,this,u);else if(m)A=""+this.value;else if(c)A=g.dateFormat(c,e);else if(h&&1E3<=a)for(;h--&&"undefined"===typeof A;)g=Math.pow(f,h+1),a>=g&&0===10*e%g&&null!== k[h]&&0!==e&&(A=E(e/g,-1)+k[h]);"undefined"===typeof A&&(A=1E4<=Math.abs(e)?E(e,-1):E(e,-1,void 0,""));return A};b.prototype.getSeriesExtremes=function(){var a=this,e=a.chart,g;r(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(m){if(m.visible||!e.options.chart.ignoreHiddenSeries){var c=m.options,n=c.threshold;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=n&& (n=null);if(a.isXAxis){if(c=m.xData,c.length){c=a.logarithmic?c.filter(a.validatePositiveValue):c;g=m.getXExtremes(c);var k=g.min;var h=g.max;d(k)||k instanceof Date||(c=c.filter(d),g=m.getXExtremes(c),k=g.min,h=g.max);c.length&&(a.dataMin=Math.min(A(a.dataMin,k),k),a.dataMax=Math.max(A(a.dataMax,h),h))}}else if(m=m.applyExtremes(),d(m.dataMin)&&(k=m.dataMin,a.dataMin=Math.min(A(a.dataMin,k),k)),d(m.dataMax)&&(h=m.dataMax,a.dataMax=Math.max(A(a.dataMax,h),h)),f(n)&&(a.threshold=n),!c.softThreshold|| a.positiveValuesOnly)a.softThreshold=!1}})});r(this,"afterGetSeriesExtremes")};b.prototype.translate=function(a,e,g,m,c,f){var n=this.linkedParent||this,k=1,h=0,b=m&&n.old?n.old.transA:n.transA;m=m&&n.old?n.old.min:n.min;var D=n.minPixelPadding;c=(n.isOrdinal||n.brokenAxis&&n.brokenAxis.hasBreaks||n.logarithmic&&c)&&n.lin2val;b||(b=n.transA);g&&(k*=-1,h=n.len);n.reversed&&(k*=-1,h-=k*(n.sector||n.len));e?(a=(a*k+h-D)/b+m,c&&(a=n.lin2val(a))):(c&&(a=n.val2lin(a)),a=d(m)?k*(a-m)*b+h+k*D+(d(f)?b*f:0): void 0);return a};b.prototype.toPixels=function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)};b.prototype.toValue=function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)};b.prototype.getPlotLinePath=function(a){function e(a,d,e){if("pass"!==E&&ae)E?a=k(a,d,e):N=!0;return a}var g=this,m=g.chart,c=g.left,f=g.top,n=a.old,h=a.value,b=a.translatedValue,u=a.lineWidth,E=a.force,F,p,I,x,l=n&&m.oldChartHeight||m.chartHeight,q=n&&m.oldChartWidth||m.chartWidth, N,t=g.transB;a={value:h,lineWidth:u,old:n,force:E,acrossPanes:a.acrossPanes,translatedValue:b};r(this,"getPlotLinePath",a,function(a){b=A(b,g.translate(h,null,null,n));b=k(b,-1E5,1E5);F=I=Math.round(b+t);p=x=Math.round(l-b-t);d(b)?g.horiz?(p=f,x=l-g.bottom,F=I=e(F,c,c+g.width)):(F=c,I=q-g.right,p=x=e(p,f,f+g.height)):(N=!0,E=!1);a.path=N&&!E?null:m.renderer.crispLine([["M",F,p],["L",I,x]],u||1)});return a.path};b.prototype.getLinearTickPositions=function(a,d,e){var g=G(Math.floor(d/a)*a);e=G(Math.ceil(e/ a)*a);var m=[],c;G(g+a)===g&&(c=20);if(this.single)return[d];for(d=g;d<=e;){m.push(d);d=G(d+a,c);if(d===f)break;var f=d}return m};b.prototype.getMinorTickInterval=function(){var a=this.options;return!0===a.minorTicks?A(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval};b.prototype.getMinorTickPositions=function(){var a=this.options,d=this.tickPositions,e=this.minorTickInterval,g=[],m=this.pointRangePadding||0,c=this.min-m;m=this.max+m;var f=m-c;if(f&&f/e=this.minRange;var u=this.minRange;var I=(u-e+d)/2;I=[d-I,A(a.min,d-I)];E&&(I[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);d=c(I);e=[d+u,A(a.max,d+u)];E&&(e[2]=g?g.log2lin(this.dataMax):this.dataMax); e=p(e);e-d=x)t= x,b=0;else if(e.dataMax<=x){var R=x;h=0}e.min=A(q,t,e.dataMin);e.max=A(N,R,e.dataMax)}m&&(e.positiveValuesOnly&&!a&&0>=Math.min(e.min,A(e.dataMin,e.min))&&w(10,1,g),e.min=G(m.log2lin(e.min),16),e.max=G(m.log2lin(e.max),16));e.range&&f(e.max)&&(e.userMin=e.min=q=Math.max(e.dataMin,e.minFromRange()),e.userMax=N=e.max,e.range=null);r(e,"foundExtremes");e.beforePadding&&e.beforePadding();e.adjustForMinRange();!(F||e.axisPointRange||e.stacking&&e.stacking.usePercentage||k)&&f(e.min)&&f(e.max)&&(g=e.max- e.min)&&(!f(q)&&b&&(e.min-=g*b),!f(N)&&h&&(e.max+=g*h));d(e.userMin)||(d(c.softMin)&&c.softMine.max&&(e.max=N=c.softMax),d(c.ceiling)&&(e.max=Math.min(e.max,c.ceiling)));l&&f(e.dataMin)&&(x=x||0,!f(q)&&e.min=x?e.min=e.options.minRange?Math.min(x,e.max-e.minRange):x:!f(N)&&e.max>x&&e.dataMax<=x&&(e.max=e.options.minRange?Math.max(x,e.min+e.minRange):x));d(e.min)&&d(e.max)&& !this.chart.polar&&e.min>e.max&&(f(e.options.min)?e.max=e.min:f(e.options.max)&&(e.min=e.max));e.tickInterval=e.min===e.max||"undefined"===typeof e.min||"undefined"===typeof e.max?1:k&&!p&&I===e.linkedParent.options.tickPixelInterval?p=e.linkedParent.tickInterval:A(p,this.tickAmount?(e.max-e.min)/Math.max(this.tickAmount-1,1):void 0,F?1:(e.max-e.min)*I/Math.max(e.len,I));n&&!a&&e.series.forEach(function(a){var d,g;a.processData(e.min!==(null===(d=e.old)||void 0===d?void 0:d.min)||e.max!==(null=== (g=e.old)||void 0===g?void 0:g.max))});e.setAxisTranslation();r(this,"initialAxisTranslation");e.pointRange&&!p&&(e.tickInterval=Math.max(e.pointRange,e.tickInterval));a=A(c.minTickInterval,e.dateTime&&!e.series.some(function(a){return a.noSharedTooltip})?e.closestPointRange:0);!p&&e.tickIntervale.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount|| (e.tickInterval=e.unsquish());this.setTickPositions()};b.prototype.setTickPositions=function(){var a=this.options,d=a.tickPositions;var e=this.getMinorTickInterval();var g=a.tickPositioner,m=this.hasVerticalPanning(),c="colorAxis"===this.coll,n=(c||!m)&&a.startOnTick;m=(c||!m)&&a.endOnTick;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===e&&this.tickInterval?this.tickInterval/5:e;this.single=this.min===this.max&&f(this.min)&& !this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=e=d&&d.slice();!e&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?e=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):(e=[this.min,this.max],w(19,!1,this.chart)),e.length>this.len&&(e=[e[0],e.pop()],e[0]===e[1]&&(e.length=1)),this.tickPositions=e,g&&(g=g.apply(this,[this.min,this.max])))&&(this.tickPositions=e=g);this.paddedTicks=e.slice(0);this.trimTicks(e,n,m);this.isLinked||(this.single&&2>e.length&&!this.categories&&!this.series.some(function(a){return a.is("heatmap")&&"between"===a.options.pointPlacement})&&(this.min-=.5,this.max+=.5),d||g||this.adjustTickAmount()); r(this,"afterSetTickPositions")};b.prototype.trimTicks=function(a,d,e){var g=a[0],m=a[a.length-1],c=!this.isOrdinal&&this.minPointOffset||0;r(this,"trimTicks");if(!this.isLinked){if(d&&-Infinity!==g)this.min=g;else for(;this.min-c>a[0];)a.shift();if(e)this.max=m;else for(;this.max+cd&&(this.finalTickAmt=d,d=5);this.tickAmount= d};b.prototype.adjustTickAmount=function(){var a=this.options,e=this.tickInterval,g=this.tickPositions,m=this.tickAmount,c=this.finalTickAmt,n=g&&g.length,k=A(this.threshold,this.softThreshold?0:null);if(this.hasData()&&d(this.min)&&d(this.max)){if(nm&&(this.tickInterval*= 2,this.setTickPositions());if(f(c)){for(e=a=g.length;e--;)(3===c&&1===e%2||2>=c&&0k&&(d=k)),f(m)&&(ck&&(c=k))),e.displayBtn="undefined"!==typeof d||"undefined"!==typeof c,e.setExtremes(d,c,!1,void 0,{trigger:"zoom"});a.zoomed=!0});return a.zoomed};b.prototype.setAxisSize=function(){var a=this.chart,d=this.options,e=d.offsets||[0,0,0,0],g=this.horiz,m=this.width=Math.round(N(A(d.width,a.plotWidth-e[3]+e[1]),a.plotWidth)),c=this.height=Math.round(N(A(d.height,a.plotHeight-e[0]+e[2]),a.plotHeight)),f=this.top=Math.round(N(A(d.top,a.plotTop+e[0]),a.plotHeight,a.plotTop));d=this.left=Math.round(N(A(d.left, a.plotLeft+e[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-c-f;this.right=a.chartWidth-m-d;this.len=Math.max(g?m:c,0);this.pos=g?d:f};b.prototype.getExtremes=function(){var a=this.logarithmic;return{min:a?G(a.lin2log(this.min)):this.min,max:a?G(a.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};b.prototype.getThreshold=function(a){var d=this.logarithmic,e=d?d.lin2log(this.min):this.min;d=d?d.lin2log(this.max):this.max;null=== a||-Infinity===a?a=e:Infinity===a?a=d:e>a?a=e:dd?a.align="right":195d&&(a.align="left")});return a.align};b.prototype.tickSize=function(a){var d=this.options,e=d["tick"===a?"tickLength":"minorTickLength"],g=A(d["tick"===a?"tickWidth":"minorTickWidth"],"tick"===a&&this.isXAxis&&!this.categories?1:0);if(g&&e){"inside"=== d[a+"Position"]&&(e=-e);var m=[e,g]}a={tickSize:m};r(this,"afterTickSize",a);return a.tickSize};b.prototype.labelMetrics=function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)};b.prototype.unsquish=function(){var a=this.options.labels,d=this.horiz,e=this.tickInterval,g=e,m=this.len/(((this.categories?1:0)+this.max-this.min)/e),c,n=a.rotation,k=this.labelMetrics(), h,b=Number.MAX_VALUE,u,E=Math.max(this.max-this.min,0),p=function(a){var d=a/(m||1);d=1E&&Infinity!==a&&Infinity!==m&&E&&(d=Math.ceil(E/e));return G(d*e)};d?(u=!a.staggerLines&&!a.step&&(f(n)?[n]:m=a){h=p(Math.abs(k.h/Math.sin(M*a)));var d=h+Math.abs(a/360);d(c.step||0))return c.rotation?0:(this.staggerLines||1)*this.len/f;if(!m){a=null===(e=null===c||void 0===c?void 0:c.style)||void 0===e?void 0:e.width;if(void 0!==a)return parseInt(a,10);if(n)return n-g.spacing[3]}return.33*g.chartWidth};b.prototype.renderUnsquish=function(){var d=this.chart,e=d.renderer,g=this.tickPositions,m= this.ticks,c=this.options.labels,f=c&&c.style||{},n=this.horiz,k=this.getSlotWidth(),h=Math.max(1,Math.round(k-2*(c.padding||5))),b={},u=this.labelMetrics(),E=c.style&&c.style.textOverflow,A=0;a(c.rotation)||(b.rotation=c.rotation||0);g.forEach(function(a){a=m[a];a.movedLabel&&a.replaceMovedLabel();a&&a.label&&a.label.textPxLength>A&&(A=a.label.textPxLength)});this.maxLabelLength=A;if(this.autoRotation)A>h&&A>u.h?b.rotation=this.labelRotation:this.labelRotation=0;else if(k){var p=h;if(!E){var I="clip"; for(h=g.length;!n&&h--;){var r=g[h];if(r=m[r].label)r.styles&&"ellipsis"===r.styles.textOverflow?r.css({textOverflow:"clip"}):r.textPxLength>k&&r.css({width:k+"px"}),r.getBBox().height>this.len/g.length-(u.h-u.f)&&(r.specificTextOverflow="ellipsis")}}}b.rotation&&(p=A>.5*d.chartHeight?.33*d.chartHeight:A,E||(I="ellipsis"));if(this.labelAlign=c.align||this.autoLabelAlign(this.labelRotation))b.align=this.labelAlign;g.forEach(function(a){var d=(a=m[a])&&a.label,e=f.width,g={};d&&(d.attr(b),a.shortenLabel? a.shortenLabel():p&&!e&&"nowrap"!==f.whiteSpace&&(p=this.min&&a<=this.max||(null===(e=this.grid)||void 0===e?0:e.isColumn))g[a]||(g[a]=new C(this,a)),m&&g[a].isNew&&g[a].render(d, !0,-1),g[a].render(d)};b.prototype.render=function(){var a=this,e=a.chart,g=a.logarithmic,m=a.options,c=a.isLinked,f=a.tickPositions,n=a.axisTitle,k=a.ticks,h=a.minorTicks,b=a.alternateBands,u=m.stackLabels,E=m.alternateGridColor,A=a.tickmarkOffset,p=a.axisLine,x=a.showAxis,q=t(e.renderer.globalAnimation),l,N;a.labelEdge.length=0;a.overlap=!1;[k,h,b].forEach(function(a){I(a,function(a){a.isActive=!1})});if(a.hasData()||c)a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(d){a.renderMinorTick(d)}), f.length&&(f.forEach(function(d,e){a.renderTick(d,e)}),A&&(0===a.min||a.single)&&(k[-1]||(k[-1]=new C(a,-1,null,!0)),k[-1].render(-1))),E&&f.forEach(function(d,m){N="undefined"!==typeof f[m+1]?f[m+1]+A:a.max-A;0===m%2&&dh&&(!p||n<=c)&&"undefined"!==typeof n&&q.push(n);n>c&&(t=!0);var n=r}}}else h=this.lin2log(h),c=this.lin2log(c),b=p?k.getMinorTickInterval():f.tickInterval,b=C("auto"===b?null:b,this.minorAutoInterval,f.tickPixelInterval/(p?5:1)*(c-h)/((p?l/k.tickPositions.length:l)||1)),b=z(b,void 0,y(b)),q=k.getLinearTickPositions(b,h,c).map(this.log2lin),p||(this.minorAutoInterval=b/5);p||(k.tickInterval=b);return q};b.prototype.lin2log=function(b){return Math.pow(10,b)};b.prototype.log2lin=function(b){return Math.log(b)/ Math.LN10};return b}();l=function(){function b(){}b.compose=function(b){b.keepProps.push("logarithmic");w(b,"init",function(b){var c=this.logarithmic;"logarithmic"!==b.userOptions.type?this.logarithmic=void 0:c||(this.logarithmic=new v(this))});w(b,"afterInit",function(){var b=this.logarithmic;b&&(this.lin2val=function(c){return b.lin2log(c)},this.val2lin=function(c){return b.log2lin(c)})})};return b}();l.compose(b);return l});J(b,"Core/Axis/PlotLineOrBand.js",[b["Core/Axis/Axis.js"],b["Core/Globals.js"], b["Core/Color/Palette.js"],b["Core/Utilities.js"]],function(b,l,B,y){var w=y.arrayMax,C=y.arrayMin,v=y.defined,t=y.destroyObjectProperties,q=y.erase,h=y.extend,c=y.fireEvent,p=y.merge,k=y.objectEach,G=y.pick;y=function(){function f(c,f){this.axis=c;f&&(this.options=f,this.id=f.id)}f.prototype.render=function(){c(this,"render");var f=this,b=f.axis,h=b.horiz,l=b.logarithmic,r=f.options,n=r.label,u=f.label,e=r.to,g=r.from,d=r.value,a=v(g)&&v(e),m=v(d),E=f.svgElem,I=!E,A=[],N=r.color,q=G(r.zIndex,0), t=r.events;A={"class":"highcharts-plot-"+(a?"band ":"line ")+(r.className||"")};var w={},M=b.chart.renderer,z=a?"bands":"lines";l&&(g=l.log2lin(g),e=l.log2lin(e),d=l.log2lin(d));b.chart.styledMode||(m?(A.stroke=N||B.neutralColor40,A["stroke-width"]=G(r.width,1),r.dashStyle&&(A.dashstyle=r.dashStyle)):a&&(A.fill=N||B.highlightColor10,r.borderWidth&&(A.stroke=r.borderColor,A["stroke-width"]=r.borderWidth)));w.zIndex=q;z+="-"+q;(l=b.plotLinesAndBandsGroups[z])||(b.plotLinesAndBandsGroups[z]=l=M.g("plot-"+ z).attr(w).add());I&&(f.svgElem=E=M.path().attr(A).add(l));if(m)A=b.getPlotLinePath({value:d,lineWidth:E.strokeWidth(),acrossPanes:r.acrossPanes});else if(a)A=b.getPlotBandPath(g,e,r);else return;!f.eventsAdded&&t&&(k(t,function(a,d){E.on(d,function(a){t[d].apply(f,[a])})}),f.eventsAdded=!0);(I||!E.d)&&A&&A.length?E.attr({d:A}):E&&(A?(E.show(!0),E.animate({d:A})):E.d&&(E.hide(),u&&(f.label=u=u.destroy())));n&&(v(n.text)||v(n.formatter))&&A&&A.length&&0this.max&&b>this.max;if(k&&f){if(c){var u=k.toString()===f.toString();n=0}for(c=0;cc){n=b;break}if(m[n]&&a.substr(m[n])!=="01-01 00:00:00.000".substr(m[n]))break;"week"!==n&&(b=n)}if(n)var k=d.resolveDTLFormat(g[n]).main;return k};r.prototype.getLabel=function(){var c,f,e,g=this,d=this.chart.renderer,a=this.chart.styledMode,m=this.options,k="tooltip"+(v(m.className)? " "+m.className:""),h=(null===(c=m.style)||void 0===c?void 0:c.pointerEvents)||(!this.followPointer&&m.stickOnContact?"auto":"none"),A;c=function(){g.inContact=!0};var p=function(){var a=g.chart.hoverSeries;g.inContact=!1;if(a&&a.onMouseOut)a.onMouseOut()};if(!this.label){if(this.outside){var r=null===(f=this.chart.options.chart)||void 0===f?void 0:f.style;this.container=A=b.doc.createElement("div");A.className="highcharts-tooltip-container";C(A,{position:"absolute",top:"1px",pointerEvents:h,zIndex:Math.max((null=== (e=this.options.style)||void 0===e?void 0:e.zIndex)||0,((null===r||void 0===r?void 0:r.zIndex)||0)+3)});b.doc.body.appendChild(A);this.renderer=d=new b.Renderer(A,0,0,r,void 0,void 0,d.styledMode)}this.split?this.label=d.g(k):(this.label=d.label("",0,0,m.shape||"callout",null,null,m.useHTML,null,k).attr({padding:m.padding,r:m.borderRadius}),a||this.label.attr({fill:m.backgroundColor,"stroke-width":m.borderWidth}).css(m.style).css({pointerEvents:h}).shadow(m.shadow));a&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+ this.chart.index));if(g.outside&&!g.split){var l=this.label,x=l.xSetter,q=l.ySetter;l.xSetter=function(a){x.call(l,g.distance);A.style.left=a+"px"};l.ySetter=function(a){q.call(l,g.distance);A.style.top=a+"px"}}this.label.on("mouseenter",c).on("mouseleave",p).attr({zIndex:8}).add()}return this.label};r.prototype.getPosition=function(c,b,e){var g=this.chart,d=this.distance,a={},m=g.inverted&&e.h||0,k,n=this.outside,h=n?w.documentElement.clientWidth-2*d:g.chartWidth,u=n?Math.max(w.body.scrollHeight, w.documentElement.scrollHeight,w.body.offsetHeight,w.documentElement.offsetHeight,w.documentElement.clientHeight):g.chartHeight,p=g.pointer.getChartPosition(),r=function(a){var m="x"===a;return[a,m?h:u,m?c:b].concat(n?[m?c*p.scaleX:b*p.scaleY,m?p.left-d+(e.plotX+g.plotLeft)*p.scaleX:p.top-d+(e.plotY+g.plotTop)*p.scaleY,0,m?h:u]:[m?c:b,m?e.plotX+g.plotLeft:e.plotY+g.plotTop,m?g.plotLeft:g.plotTop,m?g.plotLeft+g.plotWidth:g.plotTop+g.plotHeight])},l=r("y"),x=r("x"),q=!this.followPointer&&f(e.ttBelow, !g.inverted===!!e.negative),t=function(e,g,c,f,b,k,h){var E=n?"y"===e?d*p.scaleY:d*p.scaleX:d,u=(c-f)/2,A=fr-m?r:r-m);else if(D)a[e]=Math.max(k,b+m+c>g?b:b+m);else return!1},v=function(e,g,m,c,f){var b;fg-d?b=!1:a[e]=fg-c/2?g-c-2:f-m/2;return b},G=function(a){var d=l;l=x;x=d;k=a},H=function(){!1!==t.apply(0,l)?!1!==v.apply(0,x)||k||(G(!0),H()):k?a.x=a.y=0:(G(!0),H())};(g.inverted||1=v+u&&q.pos+I<=v+u+m-x&&(N=q.pos+I);r=z(r,C.left-w,C.right+w);"number"===typeof N?(A=A.height+1,I=L?L.call(g,k,A,c):e(r,N,b,k),a.push({align:L?0:void 0,anchorX:r,anchorY:N,boxWidth:k,point:c,rank:f(I.rank,b?1:0),size:A,target:I.y, tt:d,x:I.x})):d.isActive=!1}return a},[]);!L&&c.some(function(a){return a.xe[0]?Math.max(Math.abs(e[0]),d.width-e[0]):Math.max(Math.abs(e[0]),d.width);g.height=0> e[1]?Math.max(Math.abs(e[1]),d.height-Math.abs(e[1])):Math.max(Math.abs(e[1]),d.height);this.tracker?this.tracker.attr(g):(this.tracker=f.renderer.rect(g).addClass("highcharts-tracker").add(f),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};r.prototype.styledModeFormat=function(c){return c.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};r.prototype.tooltipFooterHeaderFormatter= function(f,b){var e=b?"footer":"header",g=f.series,d=g.tooltipOptions,a=d.xDateFormat,m=g.xAxis,k=m&&"datetime"===m.options.type&&p(f.key),n=d[e+"Format"];b={isFooter:b,labelConfig:f};h(this,"headerFormatter",b,function(e){k&&!a&&(a=this.getXDateFormat(f,d,m));k&&a&&(f.point&&f.point.tooltipDateKeys||["key"]).forEach(function(d){n=n.replace("{point."+d+"}","{point."+d+":"+a+"}")});g.chart.styledMode&&(n=this.styledModeFormat(n));e.text=c(n,{point:f,series:g},this.chart)});return b.text};r.prototype.update= function(c){this.destroy();G(!0,this.chart.options.tooltip.userOptions,c);this.init(this.chart,G(!0,this.options,c))};r.prototype.updatePosition=function(c){var f=this.chart,e=f.pointer,g=this.getLabel(),d=c.plotX+f.plotLeft;f=c.plotY+f.plotTop;e=e.getChartPosition();c=(this.options.positioner||this.getPosition).call(this,g.width,g.height,c);if(this.outside){var a=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(g.width+a,g.height+a,!1);if(1!==e.scaleX||1!==e.scaleY)C(this.container, {transform:"scale("+e.scaleX+", "+e.scaleY+")"}),d*=e.scaleX,f*=e.scaleY;d+=e.left-c.x;f+=e.top-c.y}this.move(Math.round(c.x),Math.round(c.y||0),d,f)};return r}();b.Tooltip=L;return b.Tooltip});J(b,"Core/Pointer.js",[b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Color/Palette.js"],b["Core/Tooltip.js"],b["Core/Utilities.js"]],function(b,l,B,y,z){var w=b.parse,v=l.charts,t=l.noop,q=z.addEvent,h=z.attr,c=z.css,p=z.defined,k=z.extend,G=z.find,f=z.fireEvent,H=z.isNumber,x=z.isObject,K=z.objectEach, L=z.offset,r=z.pick,n=z.splat;"";b=function(){function b(e,g){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.chart=e;this.hasDragged=!1;this.options=g;this.unbindContainerMouseLeave=function(){};this.unbindContainerMouseEnter=function(){};this.init(e,g)}b.prototype.applyInactiveState=function(e){var g=[],d;(e||[]).forEach(function(a){d=a.series;g.push(d);d.linkedParent&&g.push(d.linkedParent);d.linkedSeries&&(g=g.concat(d.linkedSeries));d.navigatorSeries&&g.push(d.navigatorSeries)}); this.chart.series.forEach(function(a){-1===g.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};b.prototype.destroy=function(){var e=this;"undefined"!==typeof e.unDocMouseMove&&e.unDocMouseMove();this.unbindContainerMouseLeave();l.chartCount||(l.unbindDocumentMouseUp&&(l.unbindDocumentMouseUp=l.unbindDocumentMouseUp()),l.unbindDocumentTouchEnd&&(l.unbindDocumentTouchEnd=l.unbindDocumentTouchEnd()));clearInterval(e.tooltipTimeout);K(e,function(g, d){e[d]=void 0})};b.prototype.drag=function(e){var g=this.chart,d=g.options.chart,a=e.chartX,c=e.chartY,f=this.zoomHor,b=this.zoomVert,k=g.plotLeft,h=g.plotTop,n=g.plotWidth,p=g.plotHeight,u=this.selectionMarker,r=this.mouseDownX||0,l=this.mouseDownY||0,q=x(d.panning)?d.panning&&d.panning.enabled:d.panning,t=d.panKey&&e[d.panKey+"Key"];if(!u||!u.touch)if(ak+n&&(a=k+n),ch+p&&(c=h+p),this.hasDragged=Math.sqrt(Math.pow(r-a,2)+Math.pow(l-c,2)),10a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(d,e);if((e=x(a,!0)&&a.series)&&!(e=!x(f,!0))){e=f.distX-a.distX;var c=f.dist-a.dist,m=(a.series.group&&a.series.group.zIndex)-(f.series.group&&f.series.group.zIndex);e=0<(0!==e&&g?e:0!==c?c:0!==m?m:f.series.index>a.series.index?-1:1)}e&&(f=a)});return f};b.prototype.getChartCoordinatesFromPoint= function(e,c){var d=e.series,a=d.xAxis;d=d.yAxis;var g=r(e.clientX,e.plotX),f=e.shapeArgs;if(a&&d)return c?{chartX:a.len+a.pos-g,chartY:d.len+d.pos-e.plotY}:{chartX:g+a.pos,chartY:e.plotY+d.pos};if(f&&f.x&&f.y)return{chartX:f.x,chartY:f.y}};b.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var e=this.chart.container,c=L(e);this.chartPosition={left:c.left,top:c.top,scaleX:1,scaleY:1};var d=e.offsetWidth;e=e.offsetHeight;2D.max&&(c=D.max-A,w=!0);w?(t-=.8*(t-b[h][0]),"number"===typeof G&&(G-=.8*(G-b[h][1])),d()):b[h]=[t,G];I||(f[h]=r-u,f[p]=A);f=I?1/l:l;m[p]=A;m[h]=c;a[I?e?"scaleY":"scaleX":"scale"+n]=l;a["translate"+n]=f*u+(t-f*q)};b.prototype.reset=function(e,c){var d= this.chart,a=d.hoverSeries,m=d.hoverPoint,g=d.hoverPoints,f=d.tooltip,b=f&&f.shared?g:m;e&&b&&n(b).forEach(function(a){a.series.isCartesian&&"undefined"===typeof a.plotX&&(e=!1)});if(e)f&&b&&n(b).length&&(f.refresh(b),f.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))}):m&&(m.setState(m.state,!0),d.axes.forEach(function(a){a.crosshair&&m.series[a.coll]=== a&&a.drawCrosshair(null,m)})));else{if(m)m.onMouseOut();g&&g.forEach(function(a){a.setState()});if(a)a.onMouseOut();f&&f.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());d.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=d.hoverPoints=d.hoverPoint=null}};b.prototype.runPointActions=function(e,c){var d=this.chart,a=d.tooltip&&d.tooltip.options.enabled?d.tooltip:void 0,m=a?a.shared:!1,g=c||d.hoverPoint,f=g&&g.series||d.hoverSeries;f=this.getHoverData(g,f,d.series,(!e|| "touchmove"!==e.type)&&(!!c||f&&f.directTouch&&this.isDirectTouch),m,e);g=f.hoverPoint;var b=f.hoverPoints;c=(f=f.hoverSeries)&&f.tooltipOptions.followPointer;m=m&&f&&!f.noSharedTooltip;if(g&&(g!==d.hoverPoint||a&&a.isHidden)){(d.hoverPoints||[]).forEach(function(a){-1===b.indexOf(a)&&a.setState()});if(d.hoverSeries!==f)f.onMouseOver();this.applyInactiveState(b);(b||[]).forEach(function(a){a.setState("hover")});d.hoverPoint&&d.hoverPoint.firePointEvent("mouseOut");if(!g.series)return;d.hoverPoints= b;d.hoverPoint=g;g.firePointEvent("mouseOver");a&&a.refresh(m?b:g,e)}else c&&a&&!a.isHidden&&(g=a.getAnchor([{}],e),a.updatePosition({plotX:g[0],plotY:g[1]}));this.unDocMouseMove||(this.unDocMouseMove=q(d.container.ownerDocument,"mousemove",function(a){var d=v[l.hoverChartIndex];if(d)d.pointer.onDocumentMouseMove(a)}));d.axes.forEach(function(a){var c=r((a.crosshair||{}).snap,!0),m;c&&((m=d.hoverPoint)&&m.series[a.coll]===a||(m=G(b,function(d){return d.series[a.coll]===a})));m||!c?a.drawCrosshair(e, m):a.hideCrosshair()})};b.prototype.scaleGroups=function(e,c){var d=this.chart,a;d.series.forEach(function(m){a=e||m.getPlotBox();m.xAxis&&m.xAxis.zoomEnabled&&m.group&&(m.group.attr(a),m.markerGroup&&(m.markerGroup.attr(a),m.markerGroup.clip(c?d.clipRect:null)),m.dataLabelsGroup&&m.dataLabelsGroup.attr(a))});d.clipRect.attr(c||d.clipBox)};b.prototype.setDOMEvents=function(){var e=this,c=this.chart.container,d=c.ownerDocument;c.onmousedown=this.onContainerMouseDown.bind(this);c.onmousemove=this.onContainerMouseMove.bind(this); c.onclick=this.onContainerClick.bind(this);this.unbindContainerMouseEnter=q(c,"mouseenter",this.onContainerMouseEnter.bind(this));this.unbindContainerMouseLeave=q(c,"mouseleave",this.onContainerMouseLeave.bind(this));l.unbindDocumentMouseUp||(l.unbindDocumentMouseUp=q(d,"mouseup",this.onDocumentMouseUp.bind(this)));for(var a=this.chart.renderTo.parentElement;a&&"BODY"!==a.tagName;)q(a,"scroll",function(){delete e.chartPosition}),a=a.parentElement;l.hasTouch&&(q(c,"touchstart",this.onContainerTouchStart.bind(this), {passive:!1}),q(c,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1}),l.unbindDocumentTouchEnd||(l.unbindDocumentTouchEnd=q(d,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};b.prototype.setHoverChartIndex=function(){var e=this.chart,c=l.charts[r(l.hoverChartIndex,-1)];if(c&&c!==e)c.pointer.onContainerMouseLeave({relatedTarget:!0});c&&c.mouseIsDown||(l.hoverChartIndex=e.index)};b.prototype.touch=function(e,c){var d=this.chart,a;this.setHoverChartIndex();if(1===e.touches.length)if(e= this.normalize(e),(a=d.isInsidePlot(e.chartX-d.plotLeft,e.chartY-d.plotTop))&&!d.openMenu){c&&this.runPointActions(e);if("touchmove"===e.type){c=this.pinchDown;var m=c[0]?4<=Math.sqrt(Math.pow(c[0].chartX-e.chartX,2)+Math.pow(c[0].chartY-e.chartY,2)):!1}r(m,!0)&&this.pinch(e)}else c&&this.reset();else 2===e.touches.length&&this.pinch(e)};b.prototype.touchSelect=function(e){return!(!this.chart.options.chart.zoomBySingleTouch||!e.touches||1!==e.touches.length)};b.prototype.zoomOption=function(e){var c= this.chart,d=c.options.chart,a=d.zoomType||"";c=c.inverted;/touch/.test(e.type)&&(a=r(d.pinchType,a));this.zoomX=e=/x/.test(a);this.zoomY=a=/y/.test(a);this.zoomHor=e&&!c||a&&c;this.zoomVert=a&&!c||e&&c;this.hasZoom=e||a};return b}();return l.Pointer=b});J(b,"Core/MSPointer.js",[b["Core/Globals.js"],b["Core/Pointer.js"],b["Core/Utilities.js"]],function(b,l,B){function w(){var c=[];c.item=function(c){return this[c]};p(G,function(f){c.push({pageX:f.pageX,pageY:f.pageY,target:f.target})});return c}function z(c, f,k,h){"touch"!==c.pointerType&&c.pointerType!==c.MSPOINTER_TYPE_TOUCH||!v[b.hoverChartIndex]||(h(c),h=v[b.hoverChartIndex].pointer,h[f]({type:k,target:c.currentTarget,preventDefault:q,touches:w()}))}var C=this&&this.__extends||function(){var c=function(f,b){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var b in f)f.hasOwnProperty(b)&&(c[b]=f[b])};return c(f,b)};return function(f,b){function k(){this.constructor=f}c(f,b);f.prototype=null=== b?Object.create(b):(k.prototype=b.prototype,new k)}}(),v=b.charts,t=b.doc,q=b.noop,h=B.addEvent,c=B.css,p=B.objectEach,k=B.removeEvent,G={},f=!!b.win.PointerEvent;return function(b){function p(){return null!==b&&b.apply(this,arguments)||this}C(p,b);p.prototype.batchMSEvents=function(c){c(this.chart.container,f?"pointerdown":"MSPointerDown",this.onContainerPointerDown);c(this.chart.container,f?"pointermove":"MSPointerMove",this.onContainerPointerMove);c(t,f?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}; p.prototype.destroy=function(){this.batchMSEvents(k);b.prototype.destroy.call(this)};p.prototype.init=function(f,k){b.prototype.init.call(this,f,k);this.hasZoom&&c(f.container,{"-ms-touch-action":"none","touch-action":"none"})};p.prototype.onContainerPointerDown=function(c){z(c,"onContainerTouchStart","touchstart",function(c){G[c.pointerId]={pageX:c.pageX,pageY:c.pageY,target:c.currentTarget}})};p.prototype.onContainerPointerMove=function(c){z(c,"onContainerTouchMove","touchmove",function(c){G[c.pointerId]= {pageX:c.pageX,pageY:c.pageY};G[c.pointerId].target||(G[c.pointerId].target=c.currentTarget)})};p.prototype.onDocumentPointerUp=function(c){z(c,"onDocumentTouchEnd","touchend",function(c){delete G[c.pointerId]})};p.prototype.setDOMEvents=function(){b.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(h)};return p}(l)});J(b,"Core/Series/Point.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Animation/AnimationUtilities.js"],b["Core/Globals.js"],b["Core/Options.js"], b["Core/Utilities.js"]],function(b,l,B,y,z){var w=l.animObject,v=y.defaultOptions,t=z.addEvent,q=z.defined,h=z.erase,c=z.extend,p=z.fireEvent,k=z.format,G=z.getNestedProperty,f=z.isArray,H=z.isFunction,x=z.isNumber,K=z.isObject,L=z.merge,r=z.objectEach,n=z.pick,u=z.syncTimeout,e=z.removeEvent,g=z.uniqueKey;"";l=function(){function d(){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}d.prototype.animateBeforeDestroy=function(){var a=this,d={x:a.startXPos,opacity:0},e,g=a.getGraphicalProps();g.singular.forEach(function(c){e="dataLabel"===c;a[c]=a[c].animate(e?{x:a[c].startXPos,y:a[c].startYPos,opacity:0}:d)});g.plural.forEach(function(d){a[d].forEach(function(d){d.element&&d.animate(c({x:a.startXPos},d.startYPos?{x:d.startXPos,y:d.startYPos}:{}))})})};d.prototype.applyOptions=function(a,e){var m=this.series,g=m.options.pointValKey|| m.pointValKey;a=d.prototype.optionsToObject.call(this,a);c(this,a);this.options=this.options?c(this.options,a):a;a.group&&delete this.group;a.dataLabels&&delete this.dataLabels;g&&(this.y=d.prototype.getNestedProperty.call(this,g));this.formatPrefix=(this.isNull=n(this.isValid&&!this.isValid(),null===this.x||!x(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof e&&m.xAxis&&m.xAxis.hasNames&&(this.x=m.xAxis.nameToX(this));"undefined"===typeof this.x&& m&&(this.x="undefined"===typeof e?m.autoIncrement(this):e);return this};d.prototype.destroy=function(){function a(){if(d.graphic||d.dataLabel||d.dataLabels)e(d),d.destroyElements();for(k in d)d[k]=null}var d=this,c=d.series,g=c.chart;c=c.options.dataSorting;var f=g.hoverPoints,b=w(d.series.chart.renderer.globalAnimation),k;d.legendItem&&g.legend.destroyItem(d);f&&(d.setState(),h(f,d),f.length||(g.hoverPoints=null));if(d===g.hoverPoint)d.onMouseOut();c&&c.enabled?(this.animateBeforeDestroy(),u(a,b.duration)): a();g.pointCount--};d.prototype.destroyElements=function(a){var d=this;a=d.getGraphicalProps(a);a.singular.forEach(function(a){d[a]=d[a].destroy()});a.plural.forEach(function(a){d[a].forEach(function(a){a.element&&a.destroy()});delete d[a]})};d.prototype.firePointEvent=function(a,d,e){var c=this,m=this.series.options;(m.point.events[a]||c.options&&c.options.events&&c.options.events[a])&&c.importEvents();"click"===a&&m.allowPointSelect&&(e=function(a){c.select&&c.select(null,a.ctrlKey||a.metaKey|| a.shiftKey)});p(c,a,d,e)};d.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",""):"")};d.prototype.getGraphicalProps=function(a){var d=this,e= [],c,g={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 f=e[c];d[f]&&g.singular.push(f)}["dataLabel","connector"].forEach(function(e){var c=e+"s";a[e]&&d[c]&&g.plural.push(c)});return g};d.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}};d.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?G(a,this.options):this[a]};d.prototype.getZone=function(){var a=this.series,d=a.zones;a=a.zoneAxis||"y";var e=0,c;for(c=d[e];this[a]>=c.value;)c=d[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=c&&c.color&&!this.options.color?c.color:this.nonZonedColor;return c};d.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName|| this.graphic.element.nodeName))!==this.shapeType};d.prototype.init=function(a,d,e){this.series=a;this.applyOptions(d,e);this.id=q(this.id)?this.id:g();this.resolveColor();a.chart.pointCount++;p(this,"afterInit");return this};d.prototype.optionsToObject=function(a){var e={},c=this.series,g=c.options.keys,b=g||c.pointArrayMap||["y"],k=b.length,h=0,n=0;if(x(a)||null===a)e[b[0]]=a;else if(f(a))for(!g&&a.length>k&&(c=typeof a[0],"string"===c?e.name=a[0]:"number"===c&&(e.x=a[0]),h++);ng-6&&bh?this.maxItemWidth:d.itemWidth;c&&this.itemX-e+a>h&&(this.itemX=e,this.lastLineHeight&&(this.itemY+=b+this.lastLineHeight+f),this.lastLineHeight=0);this.lastItemY=b+this.itemY+f;this.lastLineHeight=Math.max(g,this.lastLineHeight);d._legendItemPos=[this.itemX,this.itemY];c?this.itemX+=a:(this.itemY+= b+g+f,this.lastLineHeight=g);this.offsetWidth=this.widthOption||Math.max((c?this.itemX-e-(d.checkbox?0:k):a)+e,this.offsetWidth)};e.prototype.getAllItems=function(){var d=[];this.chart.series.forEach(function(a){var e=a&&a.options;a&&L(e.showInLegend,p(e.linkedTo)?!1:void 0,!0)&&(d=d.concat(a.legendItems||("point"===e.legendType?a.data:a)))});f(this,"afterGetAllItems",{allItems:d});return d};e.prototype.getAlignment=function(){var d=this.options;return this.proximate?d.align.charAt(0)+"tv":d.floating? "":d.align.charAt(0)+d.verticalAlign.charAt(0)+d.layout.charAt(0)};e.prototype.adjustMargins=function(d,a){var e=this.chart,c=this.options,g=this.getAlignment();g&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(f,b){f.test(g)&&!p(d[b])&&(e[v[b]]=Math.max(e[v[b]],e.legend[(b+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][b]*c[b%2?"x":"y"]+L(c.margin,12)+a[b]+(e.titleOffset[b]||0)))})};e.prototype.proximatePositions=function(){var d=this.chart,a=[],e="left"===this.options.align; this.allItems.forEach(function(c){var g;var f=e;if(c.yAxis){c.xAxis.options.reversed&&(f=!f);c.points&&(g=G(f?c.points:c.points.slice(0).reverse(),function(a){return x(a.plotY)}));f=this.itemMarginTop+c.legendItem.getBBox().height+this.itemMarginBottom;var b=c.yAxis.top-d.plotTop;c.visible?(g=g?g.plotY:c.yAxis.height,g+=b-.3*f):g=b+c.yAxis.height;a.push({target:g,size:f,item:c})}},this);l.distribute(a,d.plotHeight);a.forEach(function(a){a.item._legendItemPos[1]=d.plotTop-d.spacing[0]+a.pos})};e.prototype.render= function(){var d=this.chart,a=d.renderer,e=this.group,c=this.box,g=this.options,b=this.padding;this.itemX=b;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=r(g.width,d.spacingBox.width-b);var k=d.spacingBox.width-2*b-g.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(k/=2);this.maxLegendWidth=this.widthOption||k;e||(this.group=e=a.g("legend").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(e),this.scrollGroup=a.g().add(this.contentGroup)); this.renderTitle();var h=this.getAllItems();n(h,function(a,d){return(a.options&&a.options.legendIndex||0)-(d.options&&d.options.legendIndex||0)});g.reversed&&h.reverse();this.allItems=h;this.display=k=!!h.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;h.forEach(this.renderItem,this);h.forEach(this.layoutItem,this);h=(this.widthOption||this.offsetWidth)+b;var p=this.lastItemY+this.lastLineHeight+this.titleHeight;p=this.handleOverflow(p);p+=b;c||(this.box=c=a.rect().addClass("highcharts-legend-box").attr({r:g.borderRadius}).add(e), c.isNew=!0);d.styledMode||c.attr({stroke:g.borderColor,"stroke-width":g.borderWidth||0,fill:g.backgroundColor||"none"}).shadow(g.shadow);0f&&!1!==p.enabled?(this.clipHeight=h=Math.max(f-20-this.titleHeight-b,0),this.currentPage=L(this.currentPage,1),this.fullHeight=d,D.forEach(function(a,d){var e=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),g=q.length;if(!g||e-q[g-1]>h&&(x||e)!==q[g-1])q.push(x||e),g++;a.pageIx=g-1;x&&(D[d-1].pageIx=g-1);d===D.length-1&&e+c-q[g-1]>h&&e!==x&&(q.push(e),a.pageIx=g);e!==x&&(x=e)}),n||(n=a.clipRect=c.clipRect(0,b,9999, 0),a.contentGroup.clip(n)),t(h),l||(this.nav=l=c.g().attr({zIndex:1}).add(this.group),this.up=c.symbol("triangle",0,0,r,r).add(l),P("upTracker").on("click",function(){a.scroll(-1,u)}),this.pager=c.text("",15,10).addClass("highcharts-legend-navigation"),e.styledMode||this.pager.css(p.style),this.pager.add(l),this.down=c.symbol("triangle-down",0,0,r,r).add(l),P("downTracker").on("click",function(){a.scroll(1,u)})),a.scroll(0),d=f):l&&(t(),this.nav=l.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight= 0);return d};e.prototype.scroll=function(d,a){var e=this,c=this.chart,g=this.pages,b=g.length,k=this.currentPage+d;d=this.clipHeight;var h=this.options.navigation,n=this.pager,p=this.padding;k>b&&(k=b);0=k&&g<=h||n||!m(g))p=!0;c[n?"zoomX":"zoomY"]&&p&&(e=f.zoom(a.min, a.max),f.displayBtn&&(b=!0))});var f=d.resetZoomButton;b&&!f?d.showResetZoom():!b&&J(f)&&(d.resetZoomButton=f.destroy());e&&d.redraw(P(d.options.chart.animation,a&&a.animation,100>d.pointCount))};b.prototype.pan=function(d,e){var c=this,b=c.hoverPoints,g=c.options.chart,f=c.options.mapNavigation&&c.options.mapNavigation.enabled,m;e="object"===typeof e?e:{enabled:e,type:"x"};g&&g.panning&&(g.panning=e);var k=e.type;Q(this,"pan",{originalEvent:d},function(){b&&b.forEach(function(a){a.setState()});var e= [1];"xy"===k?e=[1,0]:"y"===k&&(e=[0]);e.forEach(function(a){var e=c[a?"xAxis":"yAxis"][0],b=e.horiz,g=d[b?"chartX":"chartY"];b=b?"mouseDownX":"mouseDownY";var h=c[b],n=(e.pointRange||0)/2,p=e.reversed&&!c.inverted||!e.reversed&&c.inverted?-1:1,u=e.getExtremes(),r=e.toValue(h-g,!0)+n*p;p=e.toValue(h+e.len-g,!0)-n*p;var l=p=a&&r<=n&&(e.setExtremes(h,r,!1,!1,{trigger:"pan"}),c.resetZoomButton||f||h===a||r===n||!k.match("y")||(c.showResetZoom(),e.displayBtn=!1),m=!0),c[b]=g)});m&&c.redraw(!1);a(c.container,{cursor:"move"})})};return b}();N(ba.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ba.prototype.addAxis,[!0]],yAxis:[ba.prototype.addAxis,[!1]],series:[ba.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(" ")});B.chart=function(a,d,e){return new ba(a, d,e)};B.Chart=ba;"";return ba});J(b,"Mixins/LegendSymbol.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,l){var w=l.merge,y=l.pick;return b.LegendSymbolMixin={drawRectangle:function(b,l){var v=b.symbolHeight,t=b.options.squareSymbol;l.legendSymbol=this.chart.renderer.rect(t?(b.symbolWidth-v)/2:0,b.baseline-v+1,t?v:b.symbolWidth,v,y(b.options.symbolRadius,v/2)).addClass("highcharts-point").attr({zIndex:3}).add(l.legendGroup)},drawLineMarker:function(b){var l=this.options,v=l.marker,t= b.symbolWidth,q=b.symbolHeight,h=q/2,c=this.chart.renderer,p=this.legendGroup;b=b.baseline-Math.round(.3*b.fontMetrics.b);var k={};this.chart.styledMode||(k={"stroke-width":l.lineWidth||0},l.dashStyle&&(k.dashstyle=l.dashStyle));this.legendLine=c.path([["M",0,b],["L",t,b]]).addClass("highcharts-graph").attr(k).add(p);v&&!1!==v.enabled&&t&&(l=Math.min(y(v.radius,h),h),0===this.symbol.indexOf("url")&&(v=w(v,{width:q,height:q}),l=0),this.legendSymbol=v=c.symbol(this.symbol,t/2-l,b-l,2*l,2*l,v).addClass("highcharts-point").add(p), v.isMarker=!0)}}});J(b,"Core/Series/Series.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Globals.js"],b["Mixins/LegendSymbol.js"],b["Core/Options.js"],b["Core/Color/Palette.js"],b["Core/Series/Point.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Utilities.js"]],function(b,l,B,y,z,C,v,t,q){var h=b.animObject,c=b.setAnimation,p=l.hasTouch,k=l.svg,G=l.win,f=y.defaultOptions,w=v.seriesTypes,x=q.addEvent,K=q.arrayMax,L=q.arrayMin,r=q.clamp,n=q.cleanRecursively, u=q.correctFloat,e=q.defined,g=q.erase,d=q.error,a=q.extend,m=q.find,E=q.fireEvent,I=q.getNestedProperty,A=q.isArray,N=q.isFunction,R=q.isNumber,Q=q.isString,T=q.merge,M=q.objectEach,O=q.pick,F=q.removeEvent,J=q.splat,aa=q.syncTimeout;b=function(){function b(){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}b.prototype.init= function(d,e){E(this,"init",{options:e});var c=this,b=d.series,g;this.eventOptions=this.eventOptions||{};this.eventsToUnbind=[];c.chart=d;c.options=e=c.setOptions(e);c.linkedSeries=[];c.bindAxes();a(c,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected});var f=e.events;M(f,function(a,d){N(a)&&c.eventOptions[d]!==a&&(N(c.eventOptions[d])&&F(c,d,c.eventOptions[d]),c.eventOptions[d]=a,x(c,d,a))});if(f&&f.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)d.runTrackerClick= !0;c.getColor();c.getSymbol();c.parallelArrays.forEach(function(a){c[a+"Data"]||(c[a+"Data"]=[])});c.isCartesian&&(d.hasCartesianSeries=!0);b.length&&(g=b[b.length-1]);c._i=O(g&&g._i,-1)+1;c.opacity=c.options.opacity;d.orderSeries(this.insert(b));e.dataSorting&&e.dataSorting.enabled?c.setDataSortingOptions():c.points||c.data||c.setData(e.data,!1);E(this,"afterInit")};b.prototype.is=function(a){return w[a]&&this instanceof w[a]};b.prototype.insert=function(a){var d=this.options.index,e;if(R(d)){for(e= a.length;e--;)if(d>=O(a[e].options.index,a[e]._i)){a.splice(e+1,0,this);break}-1===e&&a.unshift(this);e+=1}else a.push(this);return O(e,a.length-1)};b.prototype.bindAxes=function(){var a=this,e=a.options,c=a.chart,b;E(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(g){c[g].forEach(function(d){b=d.options;if(e[g]===b.index||"undefined"!==typeof e[g]&&e[g]===b.id||"undefined"===typeof e[g]&&0===b.index)a.insert(d.series),a[g]=d,d.isDirty=!0});a[g]||a.optionalAxis===g||d(18,!0,c)})}); E(this,"afterBindAxes")};b.prototype.updateParallelArrays=function(a,d){var e=a.series,c=arguments,b=R(d)?function(c){var b="y"===c&&e.toYData?e.toYData(a):a[c];e[c+"Data"][d]=b}:function(a){Array.prototype[d].apply(e[a+"Data"],Array.prototype.slice.call(c,2))};e.parallelArrays.forEach(b)};b.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?n-this.cropStart:n);!g&&b[n]&&b[n].touched&&(n=void 0);return n};b.prototype.updateData= function(a,d){var c=this.options,b=c.dataSorting,g=this.points,f=[],m,k,h,n=this.requireSorting,p=a.length===g.length,u=!0;this.xIncrement=null;a.forEach(function(a,d){var k=e(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{};var u=k.x;if(k.id||R(u)){if(u=this.findPointIndex(k,h),-1===u||"undefined"===typeof u?f.push(a):g[u]&&a!==c.data[u]?(g[u].update(a,!1,null,!1),g[u].touched=!0,n&&(h=u+1)):g[u]&&(g[u].touched=!0),!p||d!==u||b&&b.enabled||this.hasDerivedData)m=!0}else f.push(a)}, this);if(m)for(a=g.length;a--;)(k=g[a])&&!k.touched&&k.remove&&k.remove(!1,d);else!p||b&&b.enabled?u=!1:(a.forEach(function(a,d){g[d].update&&a!==g[d].y&&g[d].update(a,!1,null,!1)}),f.length=0);g.forEach(function(a){a&&(a.touched=!1)});if(!u)return!1;f.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=K(this.xData),this.autoIncrement());return!0};b.prototype.setData=function(a,e,c,b){var g=this,f=g.points,m=f&&f.length|| 0,k,h=g.options,n=g.chart,p=h.dataSorting,u=null,r=g.xAxis;u=h.turboThreshold;var l=this.xData,q=this.yData,D=(k=g.pointArrayMap)&&k.length,x=h.keys,t=0,E=1,v;a=a||[];k=a.length;e=O(e,!0);p&&p.enabled&&(a=this.sortData(a));!1!==b&&k&&m&&!g.cropped&&!g.hasGroupedData&&g.visible&&!g.isSeriesBoosting&&(v=this.updateData(a,c));if(!v){g.xIncrement=null;g.colorCounter=0;this.parallelArrays.forEach(function(a){g[a+"Data"].length=0});if(u&&k>u)if(u=g.getFirstValidPoint(a),R(u))for(c=0;ca?1:0}).forEach(function(a,d){a.x=d},this);d.linkedSeries&&d.linkedSeries.forEach(function(d){var e= d.options,c=e.data;e.dataSorting&&e.dataSorting.enabled||!c||(c.forEach(function(e,g){c[g]=b(d,e);a[g]&&(c[g].x=a[g].x,c[g].index=g)}),d.setData(c,!1))});return a};b.prototype.getProcessedData=function(a){var e=this.xData,c=this.yData,b=e.length;var g=0;var f=this.xAxis,m=this.options;var k=m.cropThreshold;var h=a||this.getExtremesFromAll||m.getExtremesFromAll,n=this.isCartesian;a=f&&f.val2lin;m=!(!f||!f.logarithmic);var p=this.requireSorting;if(f){f=f.getExtremes();var u=f.min;var r=f.max}if(n&& this.sorted&&!h&&(!k||b>k||this.forceCrop))if(e[b-1]r)e=[],c=[];else if(this.yData&&(e[0]r)){g=this.cropData(this.xData,this.yData,u,r);e=g.xData;c=g.yData;g=g.start;var l=!0}for(k=e.length||1;--k;)if(b=m?a(e[k])-a(e[k-1]):e[k]-e[k-1],0b&&p&&(d(15,!1,this.chart),p=!1);return{xData:e,yData:c,cropped:l,cropStart:g,closestPointRange:q}};b.prototype.processData=function(a){var d=this.xAxis;if(this.isCartesian&&!this.isDirty&&!d.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};b.prototype.cropData=function(a,d,e,c,b){var g=a.length,f=0,m=g,k;b=O(b,this.cropShoulder);for(k=0;k=e){f=Math.max(0,k-b);break}for(e=k;ec){m=e+b;break}return{xData:a.slice(f,m),yData:d.slice(f,m),start:f,end:m}};b.prototype.generatePoints=function(){var d= this.options,e=d.data,c=this.data,b,g=this.processedXData,f=this.processedYData,m=this.pointClass,k=g.length,h=this.cropStart||0,n=this.hasGroupedData;d=d.keys;var p=[],u;c||n||(c=[],c.length=e.length,c=this.data=c);d&&n&&(this.options.keys=!1);for(u=0;u=m&&(b[p-h]||u)<=k;if(l&&u)if(l=r.length)for(;l--;)R(r[l])&&(g[f++]=r[l]);else g[f++]=r}a={dataMin:L(g),dataMax:K(g)};E(this,"afterGetExtremes",{dataExtremes:a});return a};b.prototype.applyExtremes=function(){var a=this.getExtremes(); this.dataMin=a.dataMin;this.dataMax=a.dataMax;return a};b.prototype.getFirstValidPoint=function(a){for(var d=null,e=a.length,c=0;null===d&&c=z&&(z=null),G.total=G.stackTotal=N.total,G.percentage=N.total&&G.y/N.total*100,G.stackY=H,this.irregularWidths||N.setOffset(this.pointXOffset||0,this.barW||0));G.yBottom=e(z)?r(f.translate(z,0,1,0,1),-1E5,1E5):null;h&&(H=this.modifyValue(H,G));G.plotY=void 0;R(H)&&(H=f.translate(H,!1,!0,!1,!0),"undefined"!==typeof H&&(G.plotY=r(H,-1E5,1E5)));G.isInside=this.isPointInside(G);G.clientX=l?u(c.translate(w,0,0,0,1,p)):t;G.negative=G[v]<(a[v+"Threshold"]||q|| 0);G.category=b&&"undefined"!==typeof b[G.x]?b[G.x]:G.x;if(!G.isNull&&!1!==G.visible){"undefined"!==typeof F&&(I=Math.min(I,Math.abs(t-F)));var F=t}G.zone=this.zones.length&&G.getZone();!G.graphic&&this.group&&g&&(G.isNew=!0)}this.closestPointRangePx=I;E(this,"afterTranslate")};b.prototype.getValidPoints=function(a,d,e){var c=this.chart;return(a||this.points||[]).filter(function(a){return d&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!1!==a.visible&&(e||!a.isNull)})};b.prototype.getClipBox=function(a, d){var e=this.options,c=this.chart,b=c.inverted,g=this.xAxis,f=g&&this.yAxis,m=c.options.chart.scrollablePlotArea||{};a&&!1===e.clip&&f?a=b?{y:-c.chartWidth+f.len+f.pos,height:c.chartWidth,width:c.chartHeight,x:-c.chartHeight+g.len+g.pos}:{y:-f.pos,height:c.chartHeight,width:c.chartWidth,x:-g.pos}:(a=this.clipBox||c.clipBox,d&&(a.width=c.plotSizeX,a.x=(c.scrollablePixelsX||0)*(m.scrollPositionX||0)));return d?{width:a.width,x:a.x}:a};b.prototype.setClip=function(a){var d=this.chart,e=this.options, c=d.renderer,b=d.inverted,g=this.clipBox,f=this.getClipBox(a),m=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,a&&a.defer,f.height,e.xAxis,e.yAxis].join(),k=d[m],h=d[m+"m"];a&&(f.width=0,b&&(f.x=d.plotHeight+(!1!==e.clip?0:d.plotTop)));k?d.hasLoaded||k.attr(f):(a&&(d[m+"m"]=h=c.clipRect(b?d.plotSizeX+99:-99,b?-d.plotLeft:-d.plotTop,99,b?d.chartWidth:d.chartHeight)),d[m]=k=c.clipRect(f),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);if(!1!==e.clip|| a)this.group.clip(a||g?k:d.clipRect),this.markerGroup.clip(h),this.sharedClipKey=m;a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),0===k.count.length&&m&&d[m]&&(g||(d[m]=d[m].destroy()),d[m+"m"]&&(d[m+"m"]=d[m+"m"].destroy())))};b.prototype.animate=function(a){var d=this.chart,e=h(this.options.animation);if(a)this.setClip(e);else{var c=this.sharedClipKey;a=d[c];var b=this.getClipBox(e,!0);a&&a.animate(b,e);d[c+"m"]&&d[c+"m"].animate({width:b.width+99,x:b.x-(d.inverted?0:99)}, e)}};b.prototype.afterAnimate=function(){this.setClip();E(this,"afterAnimate");this.finishedAnimating=!0};b.prototype.drawPoints=function(){var a=this.points,d=this.chart,e,c,b=this.options.marker,g=this[this.specialGroup]||this.markerGroup,f=this.xAxis,m=O(b.enabled,!f||f.isRadial?!0:null,this.closestPointRangePx>=b.enabledThreshold*b.radius);if(!1!==b.enabled||this._hasPointMarkers)for(e=0;eI.max;a.resetZones&&0===g&&(g=void 0)});this.clips=f}else a.visible&&(k&&k.show(!0),h&&h.show(!0))};b.prototype.invertGroups=function(a){function d(){["group","markerGroup"].forEach(function(d){e[d]&&(c.renderer.isVML&&e[d].attr({width:e.yAxis.len,height:e.xAxis.len}),e[d].width=e.yAxis.len,e[d].height=e.xAxis.len,e[d].invert(e.isRadialSeries?!1:a))})}var e=this,c=e.chart;e.xAxis&&(e.eventsToUnbind.push(x(c, "resize",d)),d(),e.invertGroups=d)};b.prototype.plotGroup=function(a,d,c,b,g){var f=this[a],m=!f;c={visibility:c,zIndex:b||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(c.opacity=this.opacity);m&&(this[a]=f=this.chart.renderer.g().add(g));f.addClass("highcharts-"+d+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(e(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(f.hasClass("highcharts-tracker")? " highcharts-tracker":""),!0);f.attr(c)[m?"attr":"animate"](this.getPlotBox());return f};b.prototype.getPlotBox=function(){var a=this.chart,d=this.xAxis,e=this.yAxis;a.inverted&&(d=e,e=this.xAxis);return{translateX:d?d.left:a.plotLeft,translateY:e?e.top:a.plotTop,scaleX:1,scaleY:1}};b.prototype.removeEvents=function(a){a||F(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0)};b.prototype.render=function(){var a=this,d=a.chart,e=a.options, c=h(e.animation),b=!a.finishedAnimating&&d.renderer.isSVG&&c.duration,g=a.visible?"inherit":"hidden",f=e.zIndex,m=a.hasRendered,k=d.seriesGroup,n=d.inverted;E(this,"render");var p=a.plotGroup("group","series",g,f,k);a.markerGroup=a.plotGroup("markerGroup","markers",g,f,k);b&&a.animate&&a.animate(!0);p.inverted=O(a.invertible,a.isCartesian)?n:!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(n);!1===e.clip||a.sharedClipKey||m||p.clip(d.clipRect);b&&a.animate&&a.animate();m||(b&&c.defer&&(b+=c.defer),a.animationTimeout=aa(function(){a.afterAnimate()},b||0));a.isDirty=!1;a.hasRendered=!0;E(a,"afterRender")};b.prototype.redraw=function(){var a=this.chart,d=this.isDirty||this.isDirtyData,e=this.group,c=this.xAxis,b=this.yAxis;e&&(a.inverted&&e.attr({width:a.plotWidth,height:a.plotHeight}),e.animate({translateX:O(c&&c.left, a.plotLeft),translateY:O(b&&b.top,a.plotTop)}));this.translate();this.render();d&&delete this.kdTree};b.prototype.searchPoint=function(a,d){var e=this.xAxis,c=this.yAxis,b=this.chart.inverted;return this.searchKDTree({clientX:b?e.len-a.chartY+e.pos:a.chartX-e.pos,plotY:b?c.len-a.chartX+c.pos:a.chartY-c.pos},d,a)};b.prototype.buildKDTree=function(a){function d(a,c,b){var g;if(g=a&&a.length){var f=e.kdAxisArray[c%b];a.sort(function(a,d){return a[f]-d[f]});g=Math.floor(g/2);return{point:a[g],left:d(a.slice(0, g),c+1,b),right:d(a.slice(g+1),c+1,b)}}}this.buildingKdTree=!0;var e=this,c=-1p?"left":"right";r=0>p?"right":"left";d[l]&&(l=b(a,d[l],c+1,h),u=l[k]r;)l--;this.updateParallelArrays(u, "splice",l,0,0);this.updateParallelArrays(u,l);k&&u.name&&(k[r]=u.name);h.splice(l,0,a);p&&(this.data.splice(l,0,null),this.processData());"point"===g.legendType&&this.generatePoints();e&&(f[0]&&f[0].remove?f[0].remove(!1):(f.shift(),this.updateParallelArrays(u,"shift"),h.shift()));!1!==b&&E(this,"addPoint",{point:u});this.isDirtyData=this.isDirty=!0;d&&m.redraw(c)};b.prototype.removePoint=function(a,d,e){var b=this,g=b.data,f=g[a],m=b.points,k=b.chart,h=function(){m&&m.length===g.length&&m.splice(a, 1);g.splice(a,1);b.options.data.splice(a,1);b.updateParallelArrays(f||{series:b},"splice",a,1);f&&f.destroy();b.isDirty=!0;b.isDirtyData=!0;d&&k.redraw()};c(e,k);d=O(d,!0);f?f.firePointEvent("remove",null,h):h()};b.prototype.remove=function(a,d,e,c){function b(){g.destroy(c);f.isDirtyLegend=f.isDirtyBox=!0;f.linkSeries();O(a,!0)&&f.redraw(d)}var g=this,f=g.chart;!1!==e?E(g,"remove",null,b):b()};b.prototype.update=function(e,c){e=n(e,this.userOptions);E(this,"update",{options:e});var b=this,g=b.chart, f=b.userOptions,m=b.initialType||b.type,k=g.options.plotOptions,h=e.type||f.type||g.options.chart.type,p=!(this.hasDerivedData||h&&h!==this.type||"undefined"!==typeof e.pointStart||"undefined"!==typeof e.pointInterval||b.hasOptionChanged("dataGrouping")||b.hasOptionChanged("pointStart")||b.hasOptionChanged("pointInterval")||b.hasOptionChanged("pointIntervalUnit")||b.hasOptionChanged("keys")),u=w[m].prototype,r,l=["eventOptions","navigatorSeries","baseSeries"],q=b.finishedAnimating&&{animation:!1}, x={};p&&(l.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==e.visible&&l.push("area","graph"),b.parallelArrays.forEach(function(a){l.push(a+"Data")}),e.data&&(e.dataSorting&&a(b.options.dataSorting,e.dataSorting),this.setData(e.data,!1)));e=T(f,q,{index:"undefined"===typeof f.index?b.index:f.index,pointStart:O(k&&k.series&&k.series.pointStart,f.pointStart, b.xData[0])},!p&&{data:b.options.data},e);p&&e.data&&(e.data=b.options.data);l=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(l);l.forEach(function(a){l[a]=b[a];delete b[a]});if(w[h||m]){if(f=h!==b.type,b.remove(!1,!1,!1,!0),f)if(Object.setPrototypeOf)Object.setPrototypeOf(b,w[h||m].prototype);else{f=Object.hasOwnProperty.call(b,"hcEvents")&&b.hcEvents;for(r in u)b[r]=void 0;a(b,w[h||m].prototype);f?b.hcEvents=f:delete b.hcEvents}}else d(17,!0,g,{missingModuleFor:h||m});l.forEach(function(a){b[a]= l[a]});b.init(g,e);if(p&&this.points){var A=b.options;!1===A.visible?(x.graphic=1,x.dataLabel=1):b._hasPointLabels||(e=A.marker,h=A.dataLabels,e&&(!1===e.enabled||"symbol"in e)&&(x.graphic=1),h&&!1===h.enabled&&(x.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(x).length&&a.destroyElements(x),!1===A.showInLegend&&a.legendItem&&g.legend.destroyItem(a))},this)}b.initialType=m;g.linkSeries();E(this,"afterUpdate");O(c,!0)&&g.redraw(p?void 0:!1)};b.prototype.setName= function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0};b.prototype.hasOptionChanged=function(a){var d=this.options[a],e=this.chart.options.plotOptions,c=this.userOptions[a];return c?d!==c:d!==O(e&&e[this.type]&&e[this.type][a],e&&e.series&&e.series[a],d)};b.prototype.onMouseOver=function(){var a=this.chart,d=a.hoverSeries;a.pointer.setHoverChartIndex();if(d&&d!==this)d.onMouseOut();this.options.events.mouseOver&&E(this,"mouseOver");this.setState("hover");a.hoverSeries= this};b.prototype.onMouseOut=function(){var a=this.options,d=this.chart,e=d.tooltip,c=d.hoverPoint;d.hoverSeries=null;if(c)c.onMouseOut();this&&a.events.mouseOut&&E(this,"mouseOut");!e||this.stickyTracking||e.shared&&!this.noSharedTooltip||e.hide();d.series.forEach(function(a){a.setState("",!0)})};b.prototype.setState=function(a,d){var e=this,c=e.options,b=e.graph,g=c.inactiveOtherPoints,f=c.states,m=c.lineWidth,k=c.opacity,h=O(f[a||"normal"]&&f[a||"normal"].animation,e.chart.options.chart.animation); c=0;a=a||"";if(e.state!==a&&([e.group,e.markerGroup,e.dataLabelsGroup].forEach(function(d){d&&(e.state&&d.removeClass("highcharts-series-"+e.state),a&&d.addClass("highcharts-series-"+a))}),e.state=a,!e.chart.styledMode)){if(f[a]&&!1===f[a].enabled)return;a&&(m=f[a].lineWidth||m+(f[a].lineWidthPlus||0),k=O(f[a].opacity,k));if(b&&!b.dashstyle)for(f={"stroke-width":m},b.animate(f,h);e["zone-graph-"+c];)e["zone-graph-"+c].animate(f,h),c+=1;g||[e.group,e.markerGroup,e.dataLabelsGroup,e.labelBySeries].forEach(function(a){a&& a.animate({opacity:k},h)})}d&&g&&e.points&&e.setAllPointsToState(a||void 0)};b.prototype.setAllPointsToState=function(a){this.points.forEach(function(d){d.setState&&d.setState(a)})};b.prototype.setVisible=function(a,d){var e=this,c=e.chart,b=e.legendItem,g=c.options.chart.ignoreHiddenSeries,f=e.visible;var m=(e.visible=a=e.options.visible=e.userOptions.visible="undefined"===typeof a?!f:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(e[a])e[a][m]()}); if(c.hoverSeries===e||(c.hoverPoint&&c.hoverPoint.series)===e)e.onMouseOut();b&&c.legend.colorizeItem(e,a);e.isDirty=!0;e.options.stacking&&c.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});e.linkedSeries.forEach(function(d){d.setVisible(a,!1)});g&&(c.isDirtyBox=!0);E(e,m);!1!==d&&c.redraw()};b.prototype.show=function(){this.setVisible(!0)};b.prototype.hide=function(){this.setVisible(!1)};b.prototype.select=function(a){this.selected=a=this.options.selected="undefined"=== typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);E(this,a?"select":"unselect")};b.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:z.backgroundColor,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:z.neutralColor20,lineColor:z.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 b}();a(b.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:B.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:C,requireSorting:!0,sorted:!0});v.series=b;"";"";return b});J(b,"Extensions/ScrollablePlotArea.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/Series/Series.js"], b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,l,B,y,z,C){var v=b.stop,t=C.addEvent,q=C.createElement,h=C.merge,c=C.pick;"";t(B,"afterSetChartSize",function(c){var b=this.options.chart.scrollablePlotArea,p=b&&b.minWidth;b=b&&b.minHeight;if(!this.renderer.forExport){if(p){if(this.scrollablePixelsX=p=Math.max(0,p-this.chartWidth)){this.scrollablePlotBox=h(this.plotBox);this.plotWidth+=p;this.inverted?(this.clipBox.height+=p,this.plotBox.height+=p):(this.clipBox.width+=p,this.plotBox.width+= p);var f={1:{name:"right",value:p}}}}else b&&(this.scrollablePixelsY=p=Math.max(0,b-this.chartHeight))&&(this.scrollablePlotBox=h(this.plotBox),this.plotHeight+=p,this.inverted?(this.clipBox.width+=p,this.plotBox.width+=p):(this.clipBox.height+=p,this.plotBox.height+=p),f={2:{name:"bottom",value:p}});f&&!c.skipAxes&&this.axes.forEach(function(c){f[c.side]?c.getPlotLinePath=function(){var b=f[c.side].name,k=this[b];this[b]=k-f[c.side].value;var h=z.Axis.prototype.getPlotLinePath.apply(this,arguments); this[b]=k;return h}:(c.setAxisSize(),c.setAxisTranslation())})}});t(B,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});B.prototype.setUpScrolling=function(){var c=this,b={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(b.overflowX="auto");this.scrollablePixelsY&&(b.overflowY="auto");this.scrollingParent=q("div",{className:"highcharts-scrolling-parent"}, {position:"relative"},this.renderTo);this.scrollingContainer=q("div",{className:"highcharts-scrolling"},b,this.scrollingParent);t(this.scrollingContainer,"scroll",function(){c.pointer&&delete c.pointer.chartPosition});this.innerContainer=q("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};B.prototype.moveFixedElements=function(){var c=this.container,b=this.fixedRenderer,h=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "), f;this.scrollablePixelsX&&!this.inverted?f=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?f=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?f=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(f=".highcharts-yaxis");f&&h.push(f+":not(.highcharts-radial-axis)",f+"-labels:not(.highcharts-radial-axis-labels)");h.forEach(function(f){[].forEach.call(c.querySelectorAll(f),function(c){(c.namespaceURI===b.SVG_NS?b.box:b.box.parentNode).appendChild(c);c.style.pointerEvents="auto"})})}; B.prototype.applyFixed=function(){var b=this,k,h,f,w=!this.fixedDiv,x=this.options.chart,C=x.scrollablePlotArea;w?(this.fixedDiv=q("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null===(k=x.style)||void 0===k?void 0:k.zIndex)||0)+2,top:0},null,!0),null===(h=this.scrollingContainer)||void 0===h?void 0:h.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=k=new z.Renderer(this.fixedDiv, this.chartWidth,this.chartHeight,null===(f=this.options.chart)||void 0===f?void 0:f.style),this.scrollableMask=k.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":c(C.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),t(this,"afterShowResetZoom",this.moveFixedElements),t(this,"afterLayOutTitles",this.moveFixedElements),t(l,"afterInit",function(){b.scrollableDirty=!0}),t(y,"show",function(){b.scrollableDirty=!0})):this.fixedRenderer.setSize(this.chartWidth, this.chartHeight);if(this.scrollableDirty||w)this.scrollableDirty=!1,this.moveFixedElements();f=this.chartWidth+(this.scrollablePixelsX||0);k=this.chartHeight+(this.scrollablePixelsY||0);v(this.container);this.container.style.width=f+"px";this.container.style.height=k+"px";this.renderer.boxWrapper.attr({width:f,height:k,viewBox:[0,0,f,k].join(" ")});this.chartBackground.attr({width:f,height:k});this.scrollingContainer.style.height=this.chartHeight+"px";w&&(C.scrollPositionX&&(this.scrollingContainer.scrollLeft= this.scrollablePixelsX*C.scrollPositionX),C.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*C.scrollPositionY));k=this.axisOffset;w=this.plotTop-k[0]-1;C=this.plotLeft-k[3]-1;f=this.plotTop+this.plotHeight+k[2]+1;k=this.plotLeft+this.plotWidth+k[1]+1;h=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0);x=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);w=this.scrollablePixelsX?[["M",0,w],["L",this.plotLeft-1,w],["L",this.plotLeft-1,f],["L",0,f],["Z"],["M", h,w],["L",this.chartWidth,w],["L",this.chartWidth,f],["L",h,f],["Z"]]:this.scrollablePixelsY?[["M",C,0],["L",C,this.plotTop-1],["L",k,this.plotTop-1],["L",k,0],["Z"],["M",C,x],["L",C,this.chartHeight],["L",k,this.chartHeight],["L",k,x],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:w})}});J(b,"Core/Axis/StackingAxis.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Utilities.js"]],function(b,l){var w=b.getDeferredAnimation,y=l.addEvent,z=l.destroyObjectProperties, C=l.fireEvent,v=l.objectEach,t=l.pick,q=function(){function b(c){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=c}b.prototype.buildStacks=function(){var c=this.axis,b=c.series,k=t(c.options.reversedStacks,!0),h=b.length,f;if(!c.isXAxis){this.usePercentage=!1;for(f=h;f--;){var l=b[k?f:h-f-1];l.setStackedPoints();l.setGroupedPoints()}for(f=0;fl&&c.shadow));q&&(q.startX=p.xMap,q.isArea=p.isArea)})};q.prototype.getGraphPath=function(b,c,p){var k=this,h=k.options,f=h.step,l,q=[],t=[],v;b=b||k.points;(l=b.reversed)&&b.reverse();(f={right:1,center:2}[f]||f&&3)&&l&&(f=4-f);b=this.getValidPoints(b,!1,!(h.connectNulls&&!c&&!p));b.forEach(function(l,n){var u=l.plotX,e=l.plotY,g=b[n-1];(l.leftCliff||g&&g.rightCliff)&&!p&&(v=!0);l.isNull&&!C(c)&&0b&&v>k?(v=Math.max(b,k),w=2*k-v):vc&&w>k?(w=Math.max(c,k),v=2*k-w):w=Math.abs(a)&&.5d.closestPointRange*d.xAxis.transA;c=d.borderWidth=n(e.borderWidth,c?0:1);var b=d.xAxis,g=d.yAxis,h=e.threshold,l=d.translatedThreshold=g.getThreshold(h),p=n(e.minPointLength, 5),u=d.getColumnMetrics(),r=u.width,q=d.barW=Math.max(r,1+2*c),t=d.pointXOffset=u.offset,v=d.dataMin,x=d.dataMax;a.inverted&&(l-=.5);e.pointPadding&&(q=Math.ceil(q));C.prototype.translate.apply(d);d.points.forEach(function(c){var m=n(c.yBottom,l),A=999+Math.abs(m),E=r,w=c.plotX||0;A=k(c.plotY,-A,g.len+A);var I=w+t,z=q,G=Math.min(A,m),C=Math.max(A,m)-G;if(p&&Math.abs(C)p?m-p:l-(y?p:0)}f(c.options.pointWidth)&&(E=z=Math.ceil(c.options.pointWidth),I-=Math.round((E-r)/2));e.centerInCategory&&(I=d.adjustForMissingColumns(I,E,c,u));c.barX=I;c.pointWidth=E;c.tooltipPos=a.inverted?[k(g.len+g.pos-a.plotLeft-A,g.pos-a.plotLeft,g.len+g.pos-a.plotLeft),b.len+b.pos-a.plotTop-(w||0)-t-z/2,C]:[b.left-a.plotLeft+I+z/2,k(A+g.pos-a.plotTop,g.pos-a.plotTop,g.len+g.pos-a.plotTop),C];c.shapeType=d.pointClass.prototype.shapeType||"rect";c.shapeArgs=d.crispCol.apply(d, c.isNull?[I,l,z,0]:[I,G,z,C])})};b.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};b.prototype.pointAttribs=function(d,a){var e=this.options,b=this.pointAttrToOptions||{};var g=b.stroke||"borderColor";var f=b["stroke-width"]||"borderWidth",k=d&&d.color||this.color,h=d&&d[g]||e[g]||this.color||k,l=d&&d[f]||e[f]||this[f]||0;b=d&&d.options.dashStyle||e.dashStyle;var p=n(d&&d.opacity,e.opacity,1);if(d&&this.zones.length){var u=d.getZone();k=d.options.color|| u&&(u.color||d.nonZonedColor)||this.color;u&&(h=u.borderColor||h,b=u.dashStyle||b,l=u.borderWidth||l)}a&&d&&(d=r(e.states[a],d.options.states&&d.options.states[a]||{}),a=d.brightness,k=d.color||"undefined"!==typeof a&&c(k).brighten(d.brightness).get()||k,h=d[g]||h,l=d[f]||l,b=d.dashStyle||b,p=n(d.opacity,p));g={fill:k,stroke:h,"stroke-width":l,opacity:p};b&&(g.dashstyle=b);return g};b.prototype.drawPoints=function(){var d=this,a=this.chart,e=d.options,c=a.renderer,b=e.animationLimit||250,g;d.points.forEach(function(f){var k= f.graphic,m=!!k,h=k&&a.pointCount\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}});return h}(l);v(y.prototype,{drawTracker:b.prototype.drawTracker, sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});C(y,"afterTranslate",function(){this.applyJitter()});B.registerSeriesType("scatter",y);"";return y});J(b,"Mixins/CenteredSeries.js",[b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Utilities.js"]],function(b,l,B){var w=B.isNumber,z=B.pick,C=B.relativeLength,v=b.deg2rad;return b.CenteredSeriesMixin={getCenter:function(){var b=this.options,q=this.chart,h=2*(b.slicedOffset|| 0),c=q.plotWidth-2*h,p=q.plotHeight-2*h,k=b.center,v=Math.min(c,p),f=b.size,w=b.innerSize||0;"string"===typeof f&&(f=parseFloat(f));"string"===typeof w&&(w=parseFloat(w));b=[z(k[0],"50%"),z(k[1],"50%"),z(f&&0>f?void 0:b.size,"100%"),z(w&&0>w?void 0:b.innerSize||0,"0%")];!q.angular||this instanceof l||(b[3]=0);for(k=0;4>k;++k)f=b[k],q=2>k||2===k&&/%$/.test(f),b[k]=C(f,[c,p,v,b[2]][k])+(q?h:0);b[3]>b[2]&&(b[3]=b[2]);return b},getStartAndEndRadians:function(b,l){b=w(b)?b:0;l=w(l)&&l>b&&360>l-b?l:b+360; return{start:v*(b+-90),end:v*(l+-90)}}}});J(b,"Series/Pie/PiePoint.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Series/Point.js"],b["Core/Utilities.js"]],function(b,l,B){var w=this&&this.__extends||function(){var c=function(b,k){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,b){c.__proto__=b}||function(c,b){for(var f in b)b.hasOwnProperty(f)&&(c[f]=b[f])};return c(b,k)};return function(b,k){function h(){this.constructor=b}c(b,k);b.prototype=null===k?Object.create(k): (h.prototype=k.prototype,new h)}}(),z=b.setAnimation,C=B.addEvent,v=B.defined;b=B.extend;var t=B.isNumber,q=B.pick,h=B.relativeLength;B=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}w(b,c);b.prototype.getConnectorPath=function(){var c=this.labelPosition,b=this.series.options.dataLabels,f=b.connectorShape,h=this.connectorShapes;h[f]&&(f=h[f]);return f.call(this,{x:c.final.x,y:c.final.y,alignment:c.alignment}, c.connectorPosition,b)};b.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};b.prototype.haloPath=function(c){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+c,b.r+c,{innerR:b.r-1,start:b.start,end:b.end})};b.prototype.init=function(){l.prototype.init.apply(this,arguments);var c=this;c.name=q(c.name,"Slice");var b=function(b){c.slice("select"===b.type)};C(c,"select",b);C(c,"unselect", b);return c};b.prototype.isValid=function(){return t(this.y)&&0<=this.y};b.prototype.setVisible=function(c,b){var f=this,k=f.series,h=k.chart,l=k.options.ignoreHiddenPoint;b=q(b,l);c!==f.visible&&(f.visible=f.options.visible=c="undefined"===typeof c?!f.visible:c,k.options.data[k.data.indexOf(f)]=f.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(b){if(f[b])f[b][c?"show":"hide"](c)}),f.legendItem&&h.legend.colorizeItem(f,c),c||"hover"!==f.state||f.setState(""),l&&(k.isDirty= !0),b&&h.redraw())};b.prototype.slice=function(c,b,f){var k=this.series;z(f,k.chart);q(b,!0);this.sliced=this.options.sliced=v(c)?c:!this.sliced;k.options.data[k.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return b}(l);b(B.prototype,{connectorShapes:{fixedOffset:function(c,b,k){var h=b.breakAt;b=b.touchingSliceAt;return[["M",c.x,c.y],k.softConnector?["C",c.x+("left"===c.alignment?-5:5),c.y, 2*h.x-b.x,2*h.y-b.y,h.x,h.y]:["L",h.x,h.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,k){b=b.touchingSliceAt;var l=this.series,f=l.center[0],p=l.chart.plotWidth,q=l.chart.plotLeft;l=c.alignment;var t=this.shapeArgs.r;k=h(k.crookDistance,1);p="left"===l?f+t+(p+q-f-t)*(1-k):q+(f-t)*k;k=["L",p,c.y];f=!0;if("left"===l?p>c.x||pb.x)f=!1;c=[["M",c.x,c.y]];f&&c.push(k);c.push(["L",b.x,b.y]);return c}}});return B}); J(b,"Series/Pie/PieSeries.js",[b["Mixins/CenteredSeries.js"],b["Series/Column/ColumnSeries.js"],b["Core/Globals.js"],b["Mixins/LegendSymbol.js"],b["Core/Color/Palette.js"],b["Series/Pie/PiePoint.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,l,B,y,z,C,v,t,q,h){var c=this&&this.__extends||function(){var c=function(b,f){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,e){c.__proto__=e}||function(c, e){for(var b in e)e.hasOwnProperty(b)&&(c[b]=e[b])};return c(b,f)};return function(b,f){function k(){this.constructor=b}c(b,f);b.prototype=null===f?Object.create(f):(k.prototype=f.prototype,new k)}}(),p=b.getStartAndEndRadians;B=B.noop;var k=h.clamp,w=h.extend,f=h.fireEvent,H=h.merge,x=h.pick,K=h.relativeLength;h=function(b){function h(){var c=null!==b&&b.apply(this,arguments)||this;c.center=void 0;c.data=void 0;c.maxLabelDistance=void 0;c.options=void 0;c.points=void 0;return c}c(h,b);h.prototype.animate= function(c){var b=this,e=b.points,g=b.startAngleRad;c||e.forEach(function(d){var a=d.graphic,e=d.shapeArgs;a&&e&&(a.attr({r:x(d.startR,b.center&&b.center[3]/2),start:g,end:g}),a.animate({r:e.r,start:e.start,end:e.end},b.options.animation))})};h.prototype.drawEmpty=function(){var c=this.startAngleRad,b=this.endAngleRad,e=this.options;if(0===this.total&&this.center){var g=this.center[0];var d=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(g,d,this.center[1]/2,0,c,b).addClass("highcharts-empty-series").add(this.group)); this.graph.attr({d:q.prototype.symbols.arc(g,d,this.center[2]/2,0,{start:c,end:b,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())};h.prototype.drawPoints=function(){var c=this.chart.renderer;this.points.forEach(function(b){b.graphic&&b.hasNewShapeType()&&(b.graphic=b.graphic.destroy());b.graphic||(b.graphic=c[b.shapeType](b.shapeArgs).add(b.series.group), b.delayedRendering=!0)})};h.prototype.generatePoints=function(){b.prototype.generatePoints.call(this);this.updateTotals()};h.prototype.getX=function(c,b,e){var g=this.center,d=this.radii?this.radii[e.index]||0:g[2]/2;c=Math.asin(k((c-g[1])/(d+e.labelDistance),-1,1));return g[0]+(b?-1:1)*Math.cos(c)*(d+e.labelDistance)+(01.5*Math.PI?v-=2*Math.PI:v<-Math.PI/2&&(v+=2*Math.PI);q.slicedTranslation={translateX:Math.round(Math.cos(v)*g),translateY:Math.round(Math.sin(v)*g)};var w=Math.cos(v)*c[2]/2;var z=Math.sin(v)*c[2]/2;q.tooltipPos=[c[0]+.7*w,c[1]+.7*z];q.half=v<-Math.PI/2||v>Math.PI/2?1:0;q.angle=v;t=Math.min(d,q.labelDistance/5);q.labelPosition={natural:{x:c[0]+w+Math.cos(v)*q.labelDistance,y:c[1]+z+Math.sin(v)*q.labelDistance},"final":{}, alignment:0>q.labelDistance?"center":q.half?"right":"left",connectorPosition:{breakAt:{x:c[0]+w+Math.cos(v)*t,y:c[1]+z+Math.sin(v)*t},touchingSliceAt:{x:c[0]+w,y:c[1]+z}}}}f(this,"afterTranslate")};h.prototype.updateTotals=function(){var c,b=0,e=this.points,g=e.length,d=this.options.ignoreHiddenPoint;for(c=0;cn){r(c,function(a, d){return(d.rank||0)-(a.rank||0)});for(h=d=0;h<=n;)h+=c[d].size,d++;k=c.splice(d-1,c.length)}r(c,g);for(c=c.map(function(a){return{size:a.size,targets:[a.target],align:x(a.align,.5)}});a;){for(d=c.length;d--;)a=c[d],h=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=q(h-a.size*a.align,0,b-a.size);d=c.length;for(a=!1;d--;)0c[d].pos&&(c[d-1].size+=c[d].size,c[d-1].targets=c[d-1].targets.concat(c[d].targets),c[d-1].align=.5,c[d-1].pos+c[d-1].size>b&&(c[d-1].pos= b-c[d-1].size),c.splice(d,1),a=!0)}f.push.apply(f,k);d=0;c.some(function(a){var c=0;if(a.targets.some(function(){f[d].pos=a.pos+c;if("undefined"!==typeof e&&Math.abs(f[d].pos-f[d].target)>e)return f.slice(0,d+1).forEach(function(a){delete a.pos}),f.reducedLen=(f.reducedLen||b)-.1*b,f.reducedLen>.1*b&&l.distribute(f,b,e),!0;c+=f[d].size;d++}))return!0});r(f,g)};y.prototype.drawDataLabels=function(){function c(a,d){var c=d.filter;return c?(d=c.operator,a=a[c.property],c=c.value,">"===d&&a>c||"<"=== d&&a="===d&&a>=c||"<="===d&&a<=c||"=="===d&&a==c||"==="===d&&a===c?!0:!1):!0}function b(a,d){var c=[],e;if(w(a)&&!w(d))c=a.map(function(a){return f(a,d)});else if(w(d)&&!w(a))c=d.map(function(d){return f(a,d)});else if(w(a)||w(d))for(e=Math.max(a.length,d.length);e--;)c[e]=f(a[e],d[e]);else c=f(a,d);return c}var e=this,g=e.chart,d=e.options,a=d.dataLabels,m=e.points,l,r=e.hasRendered||0,q=a.animation;q=a.defer?v(g,q,e):{defer:0,duration:0};var t=g.renderer;a=b(b(g.options.plotOptions&&g.options.plotOptions.series&& g.options.plotOptions.series.dataLabels,g.options.plotOptions&&g.options.plotOptions[e.type]&&g.options.plotOptions[e.type].dataLabels),a);p(this,"drawDataLabels");if(w(a)||a.enabled||e._hasPointLabels){var z=e.plotGroup("dataLabelsGroup","data-labels",r?"inherit":"hidden",a.zIndex||6);z.attr({opacity:+r});!r&&(r=e.dataLabelsGroup)&&(e.visible&&z.show(!0),r[d.animation?"animate":"attr"]({opacity:1},q));m.forEach(function(f){l=L(b(a,f.dlOptions||f.options&&f.options.dataLabels));l.forEach(function(a, b){var m=a.enabled&&(!f.isNull||f.dataLabelOnNull)&&c(f,a),n=f.dataLabels?f.dataLabels[b]:f.dataLabel,l=f.connectors?f.connectors[b]:f.connector,p=x(a.distance,f.labelDistance),u=!n;if(m){var r=f.getLabelConfig();var q=x(a[f.formatPrefix+"Format"],a.format);r=h(q)?k(q,r,g):(a[f.formatPrefix+"Formatter"]||a.formatter).call(r,a);q=a.style;var v=a.rotation;g.styledMode||(q.color=x(a.color,q.color,e.color,B.neutralColor100),"contrast"===q.color?(f.contrastColor=t.getContrast(f.color||e.color),q.color= !h(p)&&a.inside||0>p||d.stacking?f.contrastColor:B.neutralColor100):delete f.contrastColor,d.cursor&&(q.cursor=d.cursor));var A={r:a.borderRadius||0,rotation:v,padding:a.padding,zIndex:1};g.styledMode||(A.fill=a.backgroundColor,A.stroke=a.borderColor,A["stroke-width"]=a.borderWidth);H(A,function(a,d){"undefined"===typeof a&&delete A[d]})}!n||m&&h(r)?m&&h(r)&&(n?A.text=r:(f.dataLabels=f.dataLabels||[],n=f.dataLabels[b]=v?t.text(r,0,-9999,a.useHTML).addClass("highcharts-data-label"):t.label(r,0,-9999, a.shape,null,null,a.useHTML,null,"data-label"),b||(f.dataLabel=n),n.addClass(" highcharts-data-label-color-"+f.colorIndex+" "+(a.className||"")+(a.useHTML?" highcharts-tracker":""))),n.options=a,n.attr(A),g.styledMode||n.css(q).shadow(a.shadow),n.added||n.add(z),a.textPath&&!a.useHTML&&(n.setTextPath(f.getDataLabelPath&&f.getDataLabelPath(n)||f.graphic,a.textPath),f.dataLabelPath&&!a.textPath.enabled&&(f.dataLabelPath=f.dataLabelPath.destroy())),e.alignDataLabel(f,n,a,null,u)):(f.dataLabel=f.dataLabel&& f.dataLabel.destroy(),f.dataLabels&&(1===f.dataLabels.length?delete f.dataLabels:delete f.dataLabels[b]),b||delete f.dataLabel,l&&(f.connector=f.connector.destroy(),f.connectors&&(1===f.connectors.length?delete f.connectors:delete f.connectors[b])))})})}p(this,"afterDrawDataLabels")};y.prototype.alignDataLabel=function(b,f,e,g,d){var a=this,k=this.chart,h=this.isCartesian&&k.inverted,n=this.enabledDataSorting,l=x(b.dlBox&&b.dlBox.centerX,b.plotX,-9999),p=x(b.plotY,-9999),r=f.getBBox(),u=e.rotation, q=e.align,t=k.isInsidePlot(l,Math.round(p),h),v="justify"===x(e.overflow,n?"none":"justify"),w=this.visible&&!1!==b.visible&&(b.series.forceDL||n&&!v||t||e.inside&&g&&k.isInsidePlot(l,h?g.x+1:g.y+g.height-1,h));var z=function(c){n&&a.xAxis&&!v&&a.setDataLabelStartPos(b,f,d,t,c)};if(w){var C=k.renderer.fontMetrics(k.styledMode?void 0:e.style.fontSize,f).b;g=c({x:h?this.yAxis.len-p:l,y:Math.round(h?this.xAxis.len-l:p),width:0,height:0},g);c(e,{width:r.width,height:r.height});u?(v=!1,l=k.renderer.rotCorr(C, u),l={x:g.x+(e.x||0)+g.width/2+l.x,y:g.y+(e.y||0)+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},z(l),f[d?"attr":"animate"](l).attr({align:q}),z=(u+720)%360,z=180z,"left"===q?l.y-=z?r.height:0:"center"===q?(l.x-=r.width/2,l.y-=r.height/2):"right"===q&&(l.x-=r.width,l.y-=z?0:r.height),f.placed=!0,f.alignAttr=l):(z(g),f.align(e,null,g),l=f.alignAttr);v&&0<=g.height?this.justifyDataLabel(f,e,l,r,g,d):x(e.crop,!0)&&(w=k.isInsidePlot(l.x,l.y)&&k.isInsidePlot(l.x+r.width,l.y+r.height));if(e.shape&& !u)f[d?"attr":"animate"]({anchorX:h?k.plotWidth-b.plotY:b.plotX,anchorY:h?k.plotHeight-b.plotX:b.plotY})}d&&n&&(f.placed=!1);w||n&&!v||(f.hide(!0),f.placed=!1)};y.prototype.setDataLabelStartPos=function(c,b,e,f,d){var a=this.chart,g=a.inverted,k=this.xAxis,h=k.reversed,n=g?b.height/2:b.width/2;c=(c=c.pointWidth)?c/2:0;k=g?d.x:h?-n-c:k.width-n+c;d=g?h?this.yAxis.height-n+c:-n-c:d.y;b.startXPos=k;b.startYPos=d;f?"hidden"===b.visibility&&(b.show(),b.attr({opacity:0}).animate({opacity:1})):b.attr({opacity:1}).animate({opacity:0}, void 0,b.hide);a.hasRendered&&(e&&b.attr({x:b.startXPos,y:b.startYPos}),b.placed=!0)};y.prototype.justifyDataLabel=function(c,b,e,f,d,a){var g=this.chart,k=b.align,h=b.verticalAlign,n=c.box?0:c.padding||0,l=b.x;l=void 0===l?0:l;var p=b.y;var r=void 0===p?0:p;p=e.x+n;if(0>p){"right"===k&&0<=l?(b.align="left",b.inside=!0):l-=p;var u=!0}p=e.x+f.width-n;p>g.plotWidth&&("left"===k&&0>=l?(b.align="right",b.inside=!0):l+=g.plotWidth-p,u=!0);p=e.y+n;0>p&&("bottom"===h&&0<=r?(b.verticalAlign="top",b.inside= !0):r-=p,u=!0);p=e.y+f.height-n;p>g.plotHeight&&("top"===h&&0>=r?(b.verticalAlign="bottom",b.inside=!0):r+=g.plotHeight-p,u=!0);u&&(b.x=l,b.y=r,c.placed=!a,c.align(b,void 0,d));return u};z.pie&&(z.pie.prototype.dataLabelPositioners={radialDistributionY:function(c){return c.top+c.distributeBox.pos},radialDistributionX:function(c,b,e,f){return c.getX(eb.bottom-2?f:e,b.half,b)},justify:function(c,b,e){return e[0]+(c.half?-1:1)*(b+c.labelDistance)},alignToPlotEdges:function(c,b,e,f){c=c.getBBox().width; return b?c+f:e-c-f},alignToConnectors:function(c,b,e,f){var d=0,a;c.forEach(function(c){a=c.dataLabel.getBBox().width;a>d&&(d=a)});return b?d+f:e-d-f}},z.pie.prototype.drawDataLabels=function(){var c=this,b=c.data,e,g=c.chart,d=c.options.dataLabels||{},a=d.connectorPadding,k,p=g.plotWidth,r=g.plotHeight,q=g.plotLeft,v=Math.round(g.chartWidth/3),w,z=c.center,C=z[2]/2,G=z[1],H,F,L,K,J=[[],[]],D,S,P,Z,U=[0,0,0,0],V=c.dataLabelPositioners,X;c.visible&&(d.enabled||c._hasPointLabels)&&(b.forEach(function(a){a.dataLabel&& a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),y.prototype.drawDataLabels.apply(c),b.forEach(function(a){a.dataLabel&&(a.visible?(J[a.half].push(a),a.dataLabel._pos=null,!h(d.style.width)&&!h(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>v&&(a.dataLabel.css({width:Math.round(.7*v)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(), a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),J.forEach(function(b,f){var k=b.length,m=[],n;if(k){c.sortByAngle(b,f-.5);if(0p-a&&0===f&&(u=Math.round(D+F-p+a),U[1]=Math.max(u,U[1])),0>S-K/2?U[0]=Math.max(Math.round(-S+K/2),U[0]):S+K/2>r&&(U[2]=Math.max(Math.round(S+K/2-r),U[2])),H.sideOverflow=u)}}}),0===t(U)||this.verifyDataLabelOverflow(U))&& (this.placeDataLabels(),this.points.forEach(function(a){X=f(d,a.options.dataLabels);if(k=x(X.connectorWidth,1)){var b;w=a.connector;if((H=a.dataLabel)&&H._pos&&a.visible&&0x(this.translatedThreshold,k.yAxis.len)),n=x(e.inside,!!this.options.stacking);h&&(g=f(h),0>g.y&&(g.height+=g.y,g.y=0),h=g.y+g.height-k.yAxis.len,0=w.x+w.width||z.x+z.width<=w.x||z.y>=w.y+w.height||z.y+z.height<=w.y||((v.labelrank=t(k.minWidth,0)&&this.chartHeight>=t(k.minHeight,0)}).call(this)&& b.push(c._id)};b.prototype.currentOptions=function(c){function b(c,h,l,p){var f;v(c,function(c,n){if(!p&&-1l?this:b,b=(l.max-l.min)*l.transA,l.mapAxis.pixelPadding=l.len-b,l.minPixelPadding=l.mapAxis.pixelPadding/2,b=l.mapAxis.fixTo)){b= b[1]-l.toValue(b[0],!0);b*=l.transA;if(Math.abs(b)>l.minPixelPadding||l.min===l.dataMin&&l.max===l.dataMax)b=0;l.minPixelPadding-=b}}});w(b,"render",function(){this.mapAxis&&(this.mapAxis.fixTo=void 0)})};return b}();l.compose(b);return l});J(b,"Mixins/ColorSeries.js",[],function(){return{colorPointMixin:{setVisible:function(b){var l=this,w=b?"show":"hide";l.visible=l.options.visible=!!b;["graphic","dataLabel"].forEach(function(b){if(l[b])l[b][w]()});this.series.buildKDTree()}},colorSeriesMixin:{optionalAxis:"colorAxis", colorAxis:0,translateColors:function(){var b=this,l=this.options.nullColor,B=this.colorAxis,y=this.colorKey;(this.data.length?this.data:this.points).forEach(function(w){var z=w.getNestedProperty(y);(z=w.options.color||(w.isNull||null===w.value?l:B&&"undefined"!==typeof z?B.toColor(z,w):w.color||b.color))&&w.color!==z&&(w.color=z,"point"===b.options.legendType&&w.legendItem&&b.chart.legend.colorizeItem(w,w.visible))})}}}});J(b,"Core/Axis/ColorAxis.js",[b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"], b["Core/Color/Color.js"],b["Mixins/ColorSeries.js"],b["Core/Animation/Fx.js"],b["Core/Globals.js"],b["Core/Legend.js"],b["Mixins/LegendSymbol.js"],b["Core/Color/Palette.js"],b["Core/Series/Point.js"],b["Core/Series/Series.js"],b["Core/Utilities.js"]],function(b,l,B,y,z,C,v,t,q,h,c,p){var k=this&&this.__extends||function(){var b=function(d,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return b(d, a)};return function(d,a){function c(){this.constructor=d}b(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),w=B.parse;B=y.colorPointMixin;y=y.colorSeriesMixin;var f=C.noop,H=p.addEvent,x=p.erase,K=p.extend,L=p.isNumber,r=p.merge,n=p.pick,u=p.splat;"";K(c.prototype,y);K(h.prototype,B);l.prototype.collectionsWithUpdate.push("colorAxis");l.prototype.collectionsWithInit.colorAxis=[l.prototype.addColorAxis];var e=function(b){function d(a,d){var c=b.call(this,a,d)||this;c.beforePadding= !1;c.chart=void 0;c.coll="colorAxis";c.dataClasses=void 0;c.legendItem=void 0;c.legendItems=void 0;c.name="";c.options=void 0;c.stops=void 0;c.visible=!0;c.init(a,d);return c}k(d,b);d.prototype.init=function(a,c){var e=a.options.legend||{},f=c.layout?"vertical"!==c.layout:"vertical"!==e.layout;e=r(d.defaultOptions,c,{showEmpty:!1,title:null,visible:e.enabled&&(c?!1!==c.visible:!0)});this.coll="colorAxis";this.side=c.side||f?2:1;this.reversed=c.reversed||!f;this.opposite=!f;a.options[this.coll]=e; b.prototype.init.call(this,a,e);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=f;this.zoomEnabled=!1};d.prototype.initDataClasses=function(a){var d=this.chart,c,b=0,e=d.options.chart.colorCount,f=this.options,g=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];a.dataClasses.forEach(function(a,k){a=r(a);c.push(a);if(d.styledMode||!a.color)"category"===f.dataClassColor?(d.styledMode||(k=d.options.colors,e=k.length,a.color=k[b]),a.colorIndex=b,b++,b===e&&(b=0)):a.color= w(f.minColor).tweenTo(w(f.maxColor),2>g?.5:k/(g-1))})};d.prototype.hasData=function(){return!!(this.tickPositions||[]).length};d.prototype.setTickPositions=function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};d.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=w(a[1])})};d.prototype.setOptions=function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker}; d.prototype.setAxisSize=function(){var a=this.legendSymbol,b=this.chart,c=b.options.legend||{},e,f;a?(this.left=c=a.attr("x"),this.top=e=a.attr("y"),this.width=f=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-c-f,this.bottom=b.chartHeight-e-a,this.len=this.horiz?f:a,this.pos=this.horiz?c:e):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||d.defaultLegendLength};d.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/ (this.max-this.min||1)};d.prototype.toColor=function(a,d){var b=this.dataClasses,c=this.stops,e;if(b)for(e=b.length;e--;){var f=b[e];var g=f.from;c=f.to;if(("undefined"===typeof g||a>=g)&&("undefined"===typeof c||a<=c)){var k=f.color;d&&(d.dataClass=e,d.colorIndex=f.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););g=c[e]||c[e+1];c=c[e+1]||g;a=1-(c[0]-a)/(c[0]-g[0]||1);k=g.color.tweenTo(c.color,a)}return k};d.prototype.getOffset=function(){var a=this.legendGroup, c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,b.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=c)};d.prototype.setLegendColor=function(){var a=this.reversed,c=a?1:0;a=a?0:1;c=this.horiz?[c,0,a,0]:[0,a,0,c];this.legendColor={linearGradient:{x1:c[0],y1:c[1],x2:c[2],y2:c[3]},stops:this.stops}};d.prototype.drawLegendSymbol=function(a,c){var b=a.padding,e=a.options,f=this.horiz,g=n(e.symbolWidth,f?d.defaultLegendLength: 12),k=n(e.symbolHeight,f?12:d.defaultLegendLength),h=n(e.labelPadding,f?16:30);e=n(e.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,g,k).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=g+b+(f?e:h);this.legendItemHeight=k+b+(f?h:0)};d.prototype.setState=function(a){this.series.forEach(function(c){c.setState(a)})};d.prototype.setVisible=function(){};d.prototype.getSeriesExtremes=function(){var a=this.series,d=a.length,b;this.dataMin=Infinity; for(this.dataMax=-Infinity;d--;){var e=a[d];var f=e.colorKey=n(e.options.colorKey,e.colorKey,e.pointValKey,e.zoneAxis,"y");var g=e.pointArrayMap;var k=e[f+"Min"]&&e[f+"Max"];if(e[f+"Data"])var h=e[f+"Data"];else if(g){h=[];g=g.indexOf(f);var l=e.yData;if(0<=g&&l)for(b=0;bf+g&&(k=f+g+2);c.plotX=k;c.plotY=this.len-k;b.prototype.drawCrosshair.call(this,a,c);c.plotX=d;c.plotY=e;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup), this.cross.addedToColorAxis=!0,!this.chart.styledMode&&this.crosshair&&this.cross.attr({fill:this.crosshair.color}))}};d.prototype.getPlotLinePath=function(a){var c=this.left,d=a.translatedValue,e=this.top;return L(d)?this.horiz?[["M",d-4,e-6],["L",d+4,e-6],["L",d,e],["Z"]]:[["M",c,d],["L",c-6,d+6],["L",c-6,d-6],["Z"]]:b.prototype.getPlotLinePath.call(this,a)};d.prototype.update=function(a,c){var d=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&d.allItems||this.dataClasses)&& this.destroyItems();b.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))};d.prototype.destroyItems=function(){var a=this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(c){a.legend.destroyItem(c)});a.isDirtyLegend=!0};d.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();b.prototype.destroy.apply(this,[].slice.call(arguments))};d.prototype.remove=function(a){this.destroyItems(); b.prototype.remove.call(this,a)};d.prototype.getDataClassLegendSymbols=function(){var a=this,c=a.chart,d=a.legendItems,b=c.options.legend,e=b.valueDecimals,g=b.valueSuffix||"",k;d.length||a.dataClasses.forEach(function(b,h){var m=!0,l=b.from,n=b.to,p=c.numberFormatter;k="";"undefined"===typeof l?k="< ":"undefined"===typeof n&&(k="> ");"undefined"!==typeof l&&(k+=p(l,e)+g);"undefined"!==typeof l&&"undefined"!==typeof n&&(k+=" - ");"undefined"!==typeof n&&(k+=p(n,e)+g);d.push(K({chart:c,name:k,options:{}, drawLegendSymbol:t.drawRectangle,visible:!0,setState:f,isDataClass:!0,setVisible:function(){m=a.visible=!m;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===h&&a.setVisible(m)})});c.legend.colorizeItem(this,m)}},b))});return d};d.defaultLegendLength=200;d.defaultOptions={lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:q.neutralColor40},labels:{overflow:"justify",rotation:0}, minColor:q.highlightColor10,maxColor:q.highlightColor100,tickLength:5,showInLegend:!0};d.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return d}(b);Array.prototype.push.apply(b.keepProps,e.keepProps);C.ColorAxis=e;["fill","stroke"].forEach(function(c){z.prototype[c+"Setter"]=function(){this.elem.attr(c,w(this.start).tweenTo(w(this.end),this.pos),null,!0)}});H(l,"afterGetAxes",function(){var c=this,d=c.options;this.colorAxis=[];d.colorAxis&&(d.colorAxis= u(d.colorAxis),d.colorAxis.forEach(function(a,d){a.index=d;new e(c,a)}))});H(c,"bindAxes",function(){var c=this.axisTypes;c?-1===c.indexOf("colorAxis")&&c.push("colorAxis"):this.axisTypes=["colorAxis"]});H(v,"afterGetAllItems",function(c){var d=[],a,b;(this.chart.colorAxis||[]).forEach(function(b){(a=b.options)&&a.showInLegend&&(a.dataClasses&&a.visible?d=d.concat(b.getDataClassLegendSymbols()):a.visible&&d.push(b),b.series.forEach(function(d){if(!d.options.showInLegend||a.dataClasses)"point"===d.options.legendType? d.points.forEach(function(a){x(c.allItems,a)}):x(c.allItems,d)}))});for(b=d.length;b--;)c.allItems.unshift(d[b])});H(v,"afterColorizeItem",function(c){c.visible&&c.item.legendColor&&c.item.legendSymbol.attr({fill:c.item.legendColor})});H(v,"afterUpdate",function(){var c=this.chart.colorAxis;c&&c.forEach(function(c,a,b){c.update({},b)})});H(c,"afterTranslate",function(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()});return e});J(b,"Mixins/ColorMapSeries.js", [b["Core/Globals.js"],b["Core/Series/Point.js"],b["Core/Utilities.js"]],function(b,l,B){var w=B.defined;return{colorMapPointMixin:{dataLabelOnNull:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setState:function(b){l.prototype.setState.call(this,b);this.graphic&&this.graphic.attr({zIndex:"hover"===b?1:0})}},colorMapSeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:b.noop, parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:b.seriesTypes.column.prototype.pointAttribs,colorAttribs:function(b){var l={};w(b.color)&&(l[this.colorProp||"fill"]=b.color);return l}}}});J(b,"Maps/MapNavigationOptionsDefault.js",[b["Core/Options.js"],b["Core/Utilities.js"]],function(b,l){l=l.extend;var w={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}}, buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};l(b.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return b.defaultOptions.mapNavigation=w});J(b,"Maps/MapNavigation.js",[b["Core/Chart/Chart.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,l,B){function w(c){c&&(c.preventDefault&&c.preventDefault(),c.stopPropagation&&c.stopPropagation(),c.cancelBubble=!0)}function z(c){this.init(c)} var C=l.doc,v=B.addEvent,t=B.extend,q=B.merge,h=B.objectEach,c=B.pick;z.prototype.init=function(c){this.chart=c;c.mapNavButtons=[]};z.prototype.update=function(b){var k=this.chart,l=k.options.mapNavigation,f,p,x,z,C,r=function(c){this.handler.call(k,c);w(c)},n=k.mapNavButtons;b&&(l=k.options.mapNavigation=q(k.options.mapNavigation,b));for(;n.length;)n.pop().destroy();c(l.enableButtons,l.enabled)&&!k.renderer.forExport&&h(l.buttons,function(c,b){f=q(l.buttonOptions,c);k.styledMode||(p=f.theme,p.style= q(f.theme.style,f.style),z=(x=p.states)&&x.hover,C=x&&x.select);c=k.renderer.button(f.text,0,0,r,p,z,C,0,"zoomIn"===b?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[b]).attr({width:f.width,height:f.height,title:k.options.lang[b],padding:f.padding,zIndex:5}).add();c.handler=f.onclick;v(c.element,"dblclick",w);n.push(c);var e=f,d=v(k,"load",function(){c.align(t(e,{width:c.width,height:2*c.height}),null,e.alignTo);d()})});this.updateEvents(l)}; z.prototype.updateEvents=function(b){var k=this.chart;c(b.enableDoubleClickZoom,b.enabled)||b.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||v(k.container,"dblclick",function(c){k.pointer.onContainerDblClick(c)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());c(b.enableMouseWheelZoom,b.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||v(k.container,"undefined"===typeof C.onmousewheel?"DOMMouseScroll":"mousewheel",function(c){k.pointer.onContainerMouseWheel(c); w(c);return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};t(b.prototype,{fitToBox:function(c,b){[["x","width"],["y","height"]].forEach(function(k){var f=k[0];k=k[1];c[f]+c[k]>b[f]+b[k]&&(c[k]>b[k]?(c[k]=b[k],c[f]=b[f]):c[f]=b[f]+b[k]-c[k]);c[k]>b[k]&&(c[k]=b[k]);c[f]=p.dataMax-p.dataMin&&t.y<=q.dataMin&&t.height>=q.dataMax-q.dataMin;f&&p.mapAxis&&(p.mapAxis.fixTo=[f-p.pos,k]);l&&q.mapAxis&&(q.mapAxis.fixTo=[l-q.pos,h]);"undefined"===typeof b||r?(p.setExtremes(void 0,void 0,!1),q.setExtremes(void 0,void 0,!1)):(p.setExtremes(t.x,t.x+t.width,!1),q.setExtremes(t.y,t.y+t.height,!1));this.redraw()}});v(b, "beforeRender",function(){this.mapNavigation=new z(this);this.mapNavigation.update()});l.MapNavigation=z});J(b,"Maps/MapPointer.js",[b["Core/Pointer.js"],b["Core/Utilities.js"]],function(b,l){var w=l.extend,y=l.pick;l=l.wrap;w(b.prototype,{onContainerDblClick:function(b){var l=this.chart;b=this.normalize(b);l.options.mapNavigation.enableDoubleClickZoomTo?l.pointer.inClass(b.target,"highcharts-tracker")&&l.hoverPoint&&l.hoverPoint.zoomTo():l.isInsidePlot(b.chartX-l.plotLeft,b.chartY-l.plotTop)&&l.mapZoom(.5, l.xAxis[0].toValue(b.chartX),l.yAxis[0].toValue(b.chartY),b.chartX,b.chartY)},onContainerMouseWheel:function(b){var l=this.chart;b=this.normalize(b);var v=b.detail||-(b.wheelDelta/120);l.isInsidePlot(b.chartX-l.plotLeft,b.chartY-l.plotTop)&&l.mapZoom(Math.pow(l.options.mapNavigation.mouseWheelSensitivity,v),l.xAxis[0].toValue(b.chartX),l.yAxis[0].toValue(b.chartY),b.chartX,b.chartY)}});l(b.prototype,"zoomOption",function(b){var l=this.chart.options.mapNavigation;y(l.enableTouchZoom,l.enabled)&&(this.chart.options.chart.pinchType= "xy");b.apply(this,[].slice.call(arguments,1))});l(b.prototype,"pinchTranslate",function(b,l,v,t,q,h,c){b.call(this,l,v,t,q,h,c);"map"===this.chart.options.chart.type&&this.hasZoom&&(b=t.scaleX>t.scaleY,this.pinchTranslateDirection(!b,l,v,t,q,h,c,b?t.scaleX:t.scaleY))})});J(b,"Maps/MapSymbols.js",[b["Core/Globals.js"],b["Core/Renderer/SVG/SVGRenderer.js"]],function(b,l){function w(b,l,v,t,q,h,c,p){return[["M",b+q,l],["L",b+v-h,l],["C",b+v-h/2,l,b+v,l+h/2,b+v,l+h],["L",b+v,l+t-c],["C",b+v,l+t-c/2, b+v-c/2,l+t,b+v-c,l+t],["L",b+p,l+t],["C",b+p/2,l+t,b,l+t-p/2,b,l+t-p],["L",b,l+q],["C",b,l+q/2,b+q/2,l,b+q,l],["Z"]]}var y=b.Renderer;l.prototype.symbols.topbutton=function(b,l,v,t,q){q=q&&q.r||0;return w(b-1,l-1,v,t,q,q,0,0)};l.prototype.symbols.bottombutton=function(b,l,v,t,q){q=q&&q.r||0;return w(b-1,l-1,v,t,0,0,q,q)};y!==l&&["topbutton","bottombutton"].forEach(function(b){y.prototype.symbols[b]=l.prototype.symbols[b]});return l.prototype.symbols});J(b,"Maps/Map.js",[b["Core/Chart/Chart.js"], b["Core/Globals.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,l,B,y){var w=y.getOptions,C=y.merge,v=y.pick,t;(function(l){l.maps={};l.mapChart=function(h,c,l){var k="string"===typeof h||h.nodeName,p=arguments[k?1:0],f=p,q={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},t=w().credits;var z=p.series;p.series=null;p=C({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:v(t.mapText,' \u00a9 {geojson.copyrightShort}'), mapTextFull:v(t.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:q,yAxis:C(q,{reversed:!0})},p,{chart:{inverted:!1,alignTicks:!1}});p.series=f.series=z;return k?new b(h,p,l):new b(p,c)};l.splitPath=function(b){"string"===typeof b&&(b=b.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),b=b.split(/[ ,;]+/).map(function(b){return/[A-za-z]/.test(b)?b:parseFloat(b)}));return B.prototype.pathToSegments(b)}})(t||(t={}));l.Map=t.mapChart;l.mapChart=t.mapChart;l.maps= t.maps;return t});J(b,"Series/Map/MapPoint.js",[b["Mixins/ColorMapSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l,B){var w=this&&this.__extends||function(){var b=function(l,t){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var c in h)h.hasOwnProperty(c)&&(b[c]=h[c])};return b(l,t)};return function(l,t){function q(){this.constructor=l}b(l,t);l.prototype=null===t?Object.create(t):(q.prototype=t.prototype,new q)}}(); b=b.colorMapPointMixin;var z=B.extend;l=function(b){function l(){var l=null!==b&&b.apply(this,arguments)||this;l.options=void 0;l.path=void 0;l.series=void 0;return l}w(l,b);l.prototype.applyOptions=function(l,q){var h=this.series;l=b.prototype.applyOptions.call(this,l,q);q=h.joinBy;h.mapData&&h.mapMap&&(q=b.prototype.getNestedProperty.call(l,q[1]),(q="undefined"!==typeof q&&h.mapMap[q])?(h.xyFromShape&&(l.x=q._midX,l.y=q._midY),z(l,q)):l.value=l.value||null);return l};l.prototype.onMouseOver=function(l){B.clearTimeout(this.colorInterval); if(null!==this.value||this.series.options.nullInteraction)b.prototype.onMouseOver.call(this,l);else this.series.onMouseOut(l)};l.prototype.zoomTo=function(){var b=this.series;b.xAxis.setExtremes(this._minX,this._maxX,!1);b.yAxis.setExtremes(this._minY,this._maxY,!1);b.chart.redraw()};return l}(l.seriesTypes.scatter.prototype.pointClass);z(l.prototype,{dataLabelOnNull:b.dataLabelOnNull,isValid:b.isValid,setState:b.setState});return l});J(b,"Series/Map/MapSeries.js",[b["Mixins/ColorMapSeries.js"],b["Core/Globals.js"], b["Mixins/LegendSymbol.js"],b["Maps/Map.js"],b["Series/Map/MapPoint.js"],b["Core/Color/Palette.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,l,B,y,z,C,v,t,q,h){var c=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return b(a,c)};return function(a,c){function d(){this.constructor= a}b(a,c);a.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();b=b.colorMapSeriesMixin;var p=l.noop,k=y.maps,w=y.splitPath;y=t.seriesTypes;var f=y.column,H=y.scatter;y=h.extend;var x=h.fireEvent,K=h.getNestedProperty,L=h.isArray,r=h.isNumber,n=h.merge,u=h.objectEach,e=h.pick,g=h.splat;h=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.baseTrans=void 0;a.chart=void 0;a.data=void 0;a.group=void 0;a.joinBy=void 0;a.options=void 0;a.points=void 0;a.transformGroup= void 0;return a}c(a,b);a.prototype.animate=function(a){var b=this.options.animation,c=this.group,d=this.xAxis,e=this.yAxis,f=d.pos,g=e.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?c.attr({translateX:f+d.len/2,translateY:g+e.len/2,scaleX:.001,scaleY:.001}):c.animate({translateX:f,translateY:g,scaleX:1,scaleY:1},b))};a.prototype.animateDrilldown=function(a){var b=this.chart.plotBox,c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],d=c.bBox,e=this.chart.options.drilldown.animation; a||(a=Math.min(d.width/b.width,d.height/b.height),c.shapeArgs={scaleX:a,scaleY:a,translateX:d.x,translateY:d.y},this.points.forEach(function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},e)}))};a.prototype.animateDrillupFrom=function(a){f.prototype.animateDrillupFrom.call(this,a)};a.prototype.animateDrillupTo=function(a){f.prototype.animateDrillupTo.call(this,a)};a.prototype.doFullTranslate=function(){return this.isDirtyData||this.chart.isResizing|| this.chart.renderer.isVML||!this.baseTrans};a.prototype.drawMapDataLabels=function(){v.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};a.prototype.drawPoints=function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.group,g=a.chart,k=g.renderer,h=this.baseTrans;a.transformGroup||(a.transformGroup=k.g().attr({scaleX:1,scaleY:1}).add(d),a.transformGroup.survive=!0);if(a.doFullTranslate())g.hasRendered&&!g.styledMode&&a.points.forEach(function(b){b.shapeArgs&& (b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),a.group=a.transformGroup,f.prototype.drawPoints.apply(a),a.group=d,a.points.forEach(function(b){if(b.graphic){var c="";b.name&&(c+="highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase());b.properties&&b.properties["hc-key"]&&(c+=" highcharts-key-"+b.properties["hc-key"].toLowerCase());c&&b.graphic.addClass(c);g.styledMode&&b.graphic.css(a.pointAttribs(b,b.selected&&"select"||void 0))}}),this.baseTrans={originX:b.min-b.minPixelPadding/b.transA, originY:c.min-c.minPixelPadding/c.transA+(c.reversed?0:c.len/c.transA),transAX:b.transA,transAY:c.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1});else{var l=b.transA/h.transAX;var n=c.transA/h.transAY;var p=b.toPixels(h.originX,!0);var r=c.toPixels(h.originY,!0);.99l&&.99n&&(n=l=1,p=Math.round(p),r=Math.round(r));var u=this.transformGroup;if(g.renderer.globalAnimation){var q=u.attr("translateX");var t=u.attr("translateY");var v=u.attr("scaleX"); var w=u.attr("scaleY");u.attr({animator:0}).animate({animator:1},{step:function(a,b){u.attr({translateX:q+(p-q)*b.pos,translateY:t+(r-t)*b.pos,scaleX:v+(l-v)*b.pos,scaleY:w+(n-w)*b.pos})}})}else u.attr({translateX:p,translateY:r,scaleX:l,scaleY:n})}g.styledMode||d.element.setAttribute("stroke-width",e(a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"],1)/(l||1));this.drawMapDataLabels()};a.prototype.getBox=function(a){var b=Number.MAX_VALUE,c=-b,d=b,f=-b,g=b,k=b, h=this.xAxis,l=this.yAxis,m;(a||[]).forEach(function(a){if(a.path){"string"===typeof a.path?a.path=w(a.path):"M"===a.path[0]&&(a.path=q.prototype.pathToSegments(a.path));var h=a.path||[],l=-b,n=b,p=-b,r=b,u=a.properties;a._foundBox||(h.forEach(function(a){var b=a[a.length-2];a=a[a.length-1];"number"===typeof b&&"number"===typeof a&&(n=Math.min(n,b),l=Math.max(l,b),r=Math.min(r,a),p=Math.max(p,a))}),a._midX=n+(l-n)*e(a.middleX,u&&u["hc-middle-x"],.5),a._midY=r+(p-r)*e(a.middleY,u&&u["hc-middle-y"], .5),a._maxX=l,a._minX=n,a._maxY=p,a._minY=r,a.labelrank=e(a.labelrank,(l-n)*(p-r)),a._foundBox=!0);c=Math.max(c,a._maxX);d=Math.min(d,a._minX);f=Math.max(f,a._maxY);g=Math.min(g,a._minY);k=Math.min(a._maxX-a._minX,a._maxY-a._minY,k);m=!0}});m&&(this.minY=Math.min(g,e(this.minY,b)),this.maxY=Math.max(f,e(this.maxY,-b)),this.minX=Math.min(d,e(this.minX,b)),this.maxX=Math.max(c,e(this.maxX,-b)),h&&"undefined"===typeof h.options.minRange&&(h.minRange=Math.min(5*k,(this.maxX-this.minX)/5,h.minRange||b)), l&&"undefined"===typeof l.options.minRange&&(l.minRange=Math.min(5*k,(this.maxY-this.minY)/5,l.minRange||b)))};a.prototype.getExtremes=function(){var a=v.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);r(b)&&(this.valueMin=b);r(a)&&(this.valueMax=a);return{dataMin:this.minY,dataMax:this.maxY}};a.prototype.hasData=function(){return!!this.processedXData.length};a.prototype.pointAttribs=function(a,b){b=a.series.chart.styledMode? this.colorAttribs(a):f.prototype.pointAttribs.call(this,a,b);b["stroke-width"]=e(a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],"inherit");return b};a.prototype.render=function(){var a=this,b=v.prototype.render;a.chart.renderer.isVML&&3E3p.length&&"string"===typeof b[0]&&(a[c]["hc-key"]=b[0],++d);for(var f=0;f"},turboThreshold:0, allAreas:!0,borderColor:C.neutralColor20,borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:C.neutralColor20},inactive:{opacity:1}}});return a}(H);y(h.prototype,{type:"map",axisTypes:b.axisTypes,colorAttribs:b.colorAttribs,colorKey:b.colorKey,directTouch:!0,drawDataLabels:p,drawGraph:p,drawLegendSymbol:B.drawRectangle,forceDL:!0,getExtremesFromAll:!0,getSymbol:b.getSymbol,parallelArrays:b.parallelArrays,pointArrayMap:b.pointArrayMap,pointClass:z, preserveAspectRatio:!0,searchPoint:p,trackerGroups:b.trackerGroups,useMapGeometry:!0});t.registerSeriesType("map",h);"";return h});J(b,"Series/MapLine/MapLineSeries.js",[b["Series/Map/MapSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l,B){var w=this&&this.__extends||function(){var b=function(l,h){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var c in h)h.hasOwnProperty(c)&&(b[c]=h[c])};return b(l,h)};return function(l, h){function c(){this.constructor=l}b(l,h);l.prototype=null===h?Object.create(h):(c.prototype=h.prototype,new c)}}(),z=l.series,C=B.extend,v=B.merge;B=function(l){function q(){var b=null!==l&&l.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}w(q,l);q.prototype.pointAttribs=function(h,c){h=b.prototype.pointAttribs.call(this,h,c);h.fill=this.options.fillColor;return h};q.defaultOptions=v(b.defaultOptions,{lineWidth:1,fillColor:"none"});return q}(b);C(B.prototype,{type:"mapline", colorProp:"stroke",drawLegendSymbol:z.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});l.registerSeriesType("mapline",B);"";return B});J(b,"Series/MapPoint/MapPointPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l){var w=this&&this.__extends||function(){var b=function(l,v){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,l){b.__proto__=l}||function(b,l){for(var h in l)l.hasOwnProperty(h)&&(b[h]=l[h])};return b(l, v)};return function(l,v){function t(){this.constructor=l}b(l,v);l.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}(),y=l.merge;return function(b){function l(){var l=null!==b&&b.apply(this,arguments)||this;l.options=void 0;l.series=void 0;return l}w(l,b);l.prototype.applyOptions=function(l,t){l="undefined"!==typeof l.lat&&"undefined"!==typeof l.lon?y(l,this.series.chart.fromLatLonToPoint(l)):l;return b.prototype.applyOptions.call(this,l,t)};return l}(b.seriesTypes.scatter.prototype.pointClass)}); J(b,"Series/MapPoint/MapPointSeries.js",[b["Series/MapPoint/MapPointPoint.js"],b["Core/Color/Palette.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l,B,y){var w=this&&this.__extends||function(){var b=function(h,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var k in c)c.hasOwnProperty(k)&&(b[k]=c[k])};return b(h,c)};return function(h,c){function l(){this.constructor=h}b(h,c);h.prototype=null===c?Object.create(c): (l.prototype=c.prototype,new l)}}(),C=B.seriesTypes.scatter,v=y.extend,t=y.merge;y=function(b){function h(){var c=null!==b&&b.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}w(h,b);h.prototype.drawDataLabels=function(){b.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};h.defaultOptions=t(C.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:l.neutralColor100}}}); return h}(C);v(y.prototype,{type:"mappoint",forceDL:!0,pointClass:b});B.registerSeriesType("mappoint",y);"";return y});J(b,"Series/Bubble/BubblePoint.js",[b["Core/Series/Point.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l,B){var w=this&&this.__extends||function(){var b=function(l,v){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,l){b.__proto__=l}||function(b,l){for(var h in l)l.hasOwnProperty(h)&&(b[h]=l[h])};return b(l,v)};return function(l,v){function t(){this.constructor= l}b(l,v);l.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}();B=B.extend;l=function(l){function z(){var b=null!==l&&l.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}w(z,l);z.prototype.haloPath=function(l){return b.prototype.haloPath.call(this,0===l?0:(this.marker?this.marker.radius||0:0)+l)};return z}(l.seriesTypes.scatter.prototype.pointClass);B(l.prototype,{ttBelow:!1});return l});J(b,"Series/Bubble/BubbleLegend.js",[b["Core/Chart/Chart.js"],b["Core/Color/Color.js"], b["Core/Globals.js"],b["Core/Legend.js"],b["Core/Color/Palette.js"],b["Core/Series/Series.js"],b["Core/Utilities.js"]],function(b,l,B,y,z,C,v){var t=l.parse,q=B.noop;l=v.addEvent;var h=v.arrayMax,c=v.arrayMin,p=v.isNumber,k=v.merge,w=v.objectEach,f=v.pick,H=v.setOptions,x=v.stableSort,K=v.wrap;"";H({legend:{bubbleLegend:{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0, allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:10,color:void 0},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}});H=function(){function b(b,c){this.options=this.symbols=this.visible=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics= this.chart=void 0;this.setState=q;this.init(b,c)}b.prototype.init=function(b,c){this.options=b;this.visible=!0;this.chart=c.chart;this.legend=c};b.prototype.addToLegend=function(b){b.splice(this.options.legendIndex,0,this)};b.prototype.drawLegendSymbol=function(b){var c=this.chart,k=this.options,e=f(b.options.itemDistance,20),g=k.ranges;var d=k.connectorDistance;this.fontMetrics=c.renderer.fontMetrics(k.labels.style.fontSize.toString()+"px");g&&g.length&&p(g[0].value)?(x(g,function(a,b){return b.value- a.value}),this.ranges=g,this.setOptions(),this.render(),c=this.getMaxLabelSize(),g=this.ranges[0].radius,b=2*g,d=d-g+c.width,d=0=c&&this.renderRange(b)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};b.prototype.renderRange= function(b){var c=this.options,f=c.labels,e=this.chart.renderer,g=this.symbols,d=g.labels,a=b.center,k=Math.abs(b.radius),h=c.connectorDistance||0,l=f.align,p=f.style.fontSize;h=this.legend.options.rtl||"left"===l?-h:h;f=c.connectorWidth;var r=this.ranges[0].radius||0,q=a-k-c.borderWidth/2+f/2;p=p/2-(this.fontMetrics.h-p)/2;var t=e.styledMode;"center"===l&&(h=0,c.connectorDistance=0,b.labelStyle.align="center");l=q+c.labels.y;var v=r+h+c.labels.x;g.bubbleItems.push(e.circle(r,a+((q%1?1:.5)-(f%2?0: .5)),k).attr(t?{}:b.bubbleStyle).addClass((t?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-symbol "+(c.className||"")).add(this.legendSymbol));g.connectors.push(e.path(e.crispLine([["M",r,q],["L",r+h,q]],c.connectorWidth)).attr(t?{}:b.connectorStyle).addClass((t?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(c.connectorClassName||"")).add(this.legendSymbol));b=e.text(this.formatLabel(b),v,l+p).attr(t?{}:b.labelStyle).addClass("highcharts-bubble-legend-labels "+ (c.labels.className||"")).add(this.legendSymbol);d.push(b);b.placed=!0;b.alignAttr={x:v,y:l+p}};b.prototype.getMaxLabelSize=function(){var b,c;this.symbols.labels.forEach(function(f){c=f.getBBox(!0);b=b?c.width>b.width?c:b:c});return b||{}};b.prototype.formatLabel=function(b){var c=this.options,f=c.labels.formatter;c=c.labels.format;var e=this.chart.numberFormatter;return c?v.format(c,b):f?f.call(b):e(b.value,1)};b.prototype.hideOverlappingLabels=function(){var b=this.chart,c=this.symbols;!this.options.labels.allowOverlap&& c&&(b.hideOverlappingLabels(c.labels),c.labels.forEach(function(b,e){b.newOpacity?b.newOpacity!==b.oldOpacity&&c.connectors[e].show():c.connectors[e].hide()}))};b.prototype.getRanges=function(){var b=this.legend.bubbleLegend,l=b.options.ranges,u,e=Number.MAX_VALUE,g=-Number.MAX_VALUE;b.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(u=a.zData.filter(p),u.length&&(e=f(a.options.zMin,Math.min(e,Math.max(c(u),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),g=f(a.options.zMax, Math.max(g,h(u)))))});var d=e===g?[{value:g}]:[{value:e},{value:(e+g)/2},{value:g,autoRanges:!0}];l.length&&l[0].radius&&d.reverse();d.forEach(function(a,b){l&&l[b]&&(d[b]=k(!1,l[b],a))});return d};b.prototype.predictBubbleSizes=function(){var b=this.chart,c=this.fontMetrics,f=b.legend.options,e="horizontal"===f.layout,g=e?b.legend.lastLineHeight:0,d=b.plotSizeX,a=b.plotSizeY,h=b.series[this.options.seriesIndex];b=Math.ceil(h.minPxSize);var k=Math.ceil(h.maxPxSize);h=h.options.maxSize;var l=Math.min(a, d);if(f.floating||!/%$/.test(h))c=k;else if(h=parseFloat(h),c=(l+g-c.h/2)*h/100/(h/100+1),e&&a-c>=d||!e&&d-c>=a)c=k;return[b,Math.ceil(c)]};b.prototype.updateRanges=function(b,c){var f=this.legend.options.bubbleLegend;f.minSize=b;f.maxSize=c;f.ranges=this.getRanges()};b.prototype.correctSizes=function(){var b=this.legend,c=this.chart.series[this.options.seriesIndex];1g.height&&(g.height=b[e].itemHeight);g.step=h}return c};y.prototype.retranslateItems=function(b){var c,f,h,e=this.options.rtl,g=0;this.allItems.forEach(function(d, a){c=d.legendGroup.translateX;f=d._legendItemPos[1];if((h=d.movementX)||e&&d.ranges)h=e?c-d.options.maxSize/2:c+h,d.legendGroup.attr({translateX:h});a>b[g].step&&g++;d.legendGroup.attr({translateY:Math.round(f+b[g].height/2)});d._legendItemPos[1]=f+b[g].height/2})};l(C,"legendItemClick",function(){var b=this.chart,c=this.visible,f=this.chart.legend;f&&f.bubbleLegend&&(this.visible=!c,this.ignoreSeries=c,b=0<=b.getVisibleBubbleSeriesIndex(),f.bubbleLegend.visible!==b&&(f.update({bubbleLegend:{enabled:b}}), f.bubbleLegend.visible=b),this.visible=c)});K(b.prototype,"drawChartBox",function(b,c,f){var h=this.legend,e=0<=this.getVisibleBubbleSeriesIndex();if(h&&h.options.enabled&&h.bubbleLegend&&h.options.bubbleLegend.autoRanges&&e){var g=h.bubbleLegend.options;e=h.bubbleLegend.predictBubbleSizes();h.bubbleLegend.updateRanges(e[0],e[1]);g.placed||(h.group.placed=!1,h.allItems.forEach(function(b){b.legendGroup.translateY=null}));h.render();this.getMargins();this.axes.forEach(function(b){b.visible&&b.render(); g.placed||(b.setScale(),b.updateNames(),w(b.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});g.placed=!0;this.getMargins();b.call(this,c,f);h.bubbleLegend.correctSizes();h.retranslateItems(h.getLinesHeights())}else b.call(this,c,f),h&&h.options.enabled&&h.bubbleLegend&&(h.render(),h.retranslateItems(h.getLinesHeights()))});B.BubbleLegend=H;return B.BubbleLegend});J(b,"Series/Bubble/BubbleSeries.js",[b["Core/Axis/Axis.js"],b["Series/Bubble/BubblePoint.js"],b["Core/Color/Color.js"],b["Core/Globals.js"], b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l,B,y,z,C,v){var t=this&&this.__extends||function(){var b=function(c,f){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,f)};return function(c,f){function e(){this.constructor=c}b(c,f);c.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}(),q=B.parse;B=y.noop;var h=C.seriesTypes; y=h.column;var c=h.scatter,p=v.arrayMax,k=v.arrayMin,w=v.clamp,f=v.extend,H=v.isNumber,x=v.merge,K=v.pick,L=v.pInt;v=function(b){function h(){var c=null!==b&&b.apply(this,arguments)||this;c.data=void 0;c.maxPxSize=void 0;c.minPxSize=void 0;c.options=void 0;c.points=void 0;c.radii=void 0;c.yData=void 0;c.zData=void 0;return c}t(h,b);h.prototype.animate=function(b){!b&&this.points.length=this.minPxSize/2?(d.marker=f(d.marker,{radius:a,width:2*a,height:2*a}),d.dlBox={x:d.plotX-a,y:d.plotY-a,width:2*a,height:2*a}):d.shapeArgs=d.plotY=d.dlBox=void 0}};h.defaultOptions=x(c.defaultOptions,{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"}, turboThreshold:0,zThreshold:0,zoneAxis:"z"});return h}(c);f(v.prototype,{alignDataLabel:y.prototype.alignDataLabel,applyZones:B,bubblePadding:!0,buildKDTree:B,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:l,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});b.prototype.beforePadding=function(){var b=this,c=this.len,f=this.chart,e=0,g=c,d=this.isXAxis,a=d?"xData":"yData",h=this.min,l={},q=Math.min(f.plotWidth,f.plotHeight),t=Number.MAX_VALUE, v=-Number.MAX_VALUE,x=this.max-h,z=c/x,y=[];this.series.forEach(function(a){var c=a.options;!a.bubblePadding||!a.visible&&f.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(a),d&&(["minSize","maxSize"].forEach(function(a){var b=c[a],d=/%$/.test(b);b=L(b);l[a]=d?q*b/100:b}),a.minPxSize=l.minSize,a.maxPxSize=Math.max(l.maxSize,l.minSize),a=a.zData.filter(H),a.length&&(t=K(c.zMin,w(k(a),!1===c.displayNegative?c.zThreshold:-Number.MAX_VALUE,t)),v=K(c.zMax,Math.max(v,p(a))))))});y.forEach(function(c){var f= c[a],k=f.length;d&&c.getRadii(t,v,c);if(0"},states:{hover:{halo:!1,brightness:.2}}});return h}(w);H(v.prototype,{alignDataLabel:k.prototype.alignDataLabel,axisTypes:b.axisTypes,colorAttribs:b.colorAttribs,colorKey:b.colorKey,directTouch:!0,drawLegendSymbol:y.drawRectangle,getBox:h,getExtremesFromAll:!0,getSymbol:c.prototype.getSymbol,hasPointSpecificOptions:!0,parallelArrays:b.parallelArrays, pointArrayMap:["y","value"],pointClass:B,trackerGroups:b.trackerGroups});C.registerSeriesType("heatmap",v);"";"";return v});J(b,"Extensions/GeoJSON.js",[b["Core/Chart/Chart.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,l,B){function w(b,c){var h,k=!1,l=b.x,f=b.y;b=0;for(h=c.length-1;bf;var t=c[h][1]>f;q!==t&&l<(c[h][0]-c[b][0])*(f-c[b][1])/(c[h][1]-c[b][1])+c[b][0]&&(k=!k)}return k}var z=l.win,C=B.error,v=B.extend,t=B.format,q=B.merge;B=B.wrap;"";b.prototype.transformFromLatLon= function(b,c){var h,k=(null===(h=this.userOptions.chart)||void 0===h?void 0:h.proj4)||z.proj4;if(!k)return C(21,!1,this),{x:0,y:null};b=k(c.crs,[b.lon,b.lat]);h=c.cosAngle||c.rotation&&Math.cos(c.rotation);k=c.sinAngle||c.rotation&&Math.sin(c.rotation);b=c.rotation?[b[0]*h+b[1]*k,-b[0]*k+b[1]*h]:b;return{x:((b[0]-(c.xoffset||0))*(c.scale||1)+(c.xpan||0))*(c.jsonres||1)+(c.jsonmarginX||0),y:(((c.yoffset||0)-b[1])*(c.scale||1)+(c.ypan||0))*(c.jsonres||1)-(c.jsonmarginY||0)}};b.prototype.transformToLatLon= function(b,c){if("undefined"===typeof z.proj4)C(21,!1,this);else{b={x:((b.x-(c.jsonmarginX||0))/(c.jsonres||1)-(c.xpan||0))/(c.scale||1)+(c.xoffset||0),y:((-b.y-(c.jsonmarginY||0))/(c.jsonres||1)+(c.ypan||0))/(c.scale||1)+(c.yoffset||0)};var h=c.cosAngle||c.rotation&&Math.cos(c.rotation),k=c.sinAngle||c.rotation&&Math.sin(c.rotation);c=z.proj4(c.crs,"WGS84",c.rotation?{x:b.x*h+b.y*-k,y:b.x*k+b.y*h}:b);return{lat:c.y,lon:c.x}}};b.prototype.fromPointToLatLon=function(b){var c=this.mapTransforms,h;if(c){for(h in c)if(Object.hasOwnProperty.call(c, h)&&c[h].hitZone&&w({x:b.x,y:-b.y},c[h].hitZone.coordinates[0]))return this.transformToLatLon(b,c[h]);return this.transformToLatLon(b,c["default"])}C(22,!1,this)};b.prototype.fromLatLonToPoint=function(b){var c=this.mapTransforms,h;if(!c)return C(22,!1,this),{x:0,y:null};for(h in c)if(Object.hasOwnProperty.call(c,h)&&c[h].hitZone){var k=this.transformFromLatLon(b,c[h]);if(w({x:k.x,y:-k.y},c[h].hitZone.coordinates[0]))return k}return this.transformFromLatLon(b,c["default"])};l.geojson=function(b,c, l){var h=[],p=[],f=function(b){b.forEach(function(b,c){0===c?p.push(["M",b[0],-b[1]]):p.push(["L",b[0],-b[1]])})};c=c||"map";b.features.forEach(function(b){var k=b.geometry,l=k.type;k=k.coordinates;b=b.properties;var q;p=[];"map"===c||"mapbubble"===c?("Polygon"===l?(k.forEach(f),p.push(["Z"])):"MultiPolygon"===l&&(k.forEach(function(b){b.forEach(f)}),p.push(["Z"])),p.length&&(q={path:p})):"mapline"===c?("LineString"===l?f(k):"MultiLineString"===l&&k.forEach(f),p.length&&(q={path:p})):"mappoint"=== c&&"Point"===l&&(q={x:k[0],y:-k[1]});q&&h.push(v(q,{name:b.name||b.NAME,properties:b}))});l&&b.copyrightShort&&(l.chart.mapCredits=t(l.chart.options.credits.mapText,{geojson:b}),l.chart.mapCreditsFull=t(l.chart.options.credits.mapTextFull,{geojson:b}));return h};B(b.prototype,"addCredits",function(b,c){c=q(!0,this.options.credits,c);this.mapCredits&&(c.href=null);b.call(this,c);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});J(b,"masters/modules/map.src.js",[], function(){});J(b,"masters/highmaps.src.js",[b["masters/highcharts.src.js"]],function(b){b.product="Highmaps";return b});b["masters/highmaps.src.js"]._modules=b;return b["masters/highmaps.src.js"]}); //# sourceMappingURL=highmaps.js.map