/* Highcharts JS v10.2.1 (2022-08-29) (c) 2009-2021 Torstein Honsi License: www.highcharts.com/license */ (function(Z,L){"object"===typeof module&&module.exports?(L["default"]=L,module.exports=Z.document?L(Z):L):"function"===typeof define&&define.amd?define("highcharts/highcharts",function(){return L(Z)}):(Z.Highcharts&&Z.Highcharts.error(16,!0),Z.Highcharts=L(Z))})("undefined"!==typeof window?window:this,function(Z){function L(a,B,f,G){a.hasOwnProperty(B)||(a[B]=G.apply(null,f),"function"===typeof CustomEvent&&Z.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:a[B]}})))} var f={};L(f,"Core/Globals.js",[],function(){var a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="10.2.1";a.win="undefined"!==typeof Z?Z:{};a.doc=a.win.document;a.svg=a.doc&&a.doc.createElementNS&&!!a.doc.createElementNS(a.SVG_NS,"svg").createSVGRect;a.userAgent=a.win.navigator&&a.win.navigator.userAgent||"";a.isChrome=-1!==a.userAgent.indexOf("Chrome");a.isFirefox=-1!==a.userAgent.indexOf("Firefox");a.isMS=/(edge|msie|trident)/i.test(a.userAgent)&&!a.win.opera; a.isSafari=!a.isChrome&&-1!==a.userAgent.indexOf("Safari");a.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(a.userAgent);a.isWebKit=-1!==a.userAgent.indexOf("AppleWebKit");a.deg2rad=2*Math.PI/360;a.hasBidiBug=a.isFirefox&&4>parseInt(a.userAgent.split("Firefox/")[1],10);a.hasTouch=!!a.win.TouchEvent;a.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a.noop=function(){};a.supportsPassiveEvents=function(){var f=!1;if(!a.isMS){var B=Object.defineProperty({},"passive",{get:function(){f= !0}});a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",a.noop,B),a.win.removeEventListener("testPassive",a.noop,B))}return f}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={};a.chartCount=0})(a||(a={}));"";return a});L(f,"Core/Utilities.js",[f["Core/Globals.js"]],function(a){function f(n,b,h,w){var u=b?"Highcharts error":"Highcharts warning";32===n&&(n=""+u+": Deprecated member");var q=p(n),K=q?""+u+" #"+n+": www.highcharts.com/errors/"+n+"/": n.toString();if("undefined"!==typeof w){var t="";q&&(K+="?");J(w,function(b,n){t+="\n - ".concat(n,": ").concat(b);q&&(K+=encodeURI(n)+"="+encodeURI(b))});K+=t}E(a,"displayError",{chart:h,code:n,message:K,params:w},function(){if(b)throw Error(K);d.console&&-1===f.messages.indexOf(K)&&console.warn(K)});f.messages.push(K)}function A(b,d){var n={};J(b,function(w,u){if(I(b[u],!0)&&!b.nodeType&&d[u])w=A(b[u],d[u]),Object.keys(w).length&&(n[u]=w);else if(I(b[u])||b[u]!==d[u]||u in b&&!(u in d))n[u]=b[u]}); return n}function G(b,d){return parseInt(b,d||10)}function y(b){return"string"===typeof b}function F(b){b=Object.prototype.toString.call(b);return"[object Array]"===b||"[object Array Iterator]"===b}function I(b,d){return!!b&&"object"===typeof b&&(!d||!F(b))}function v(b){return I(b)&&"number"===typeof b.nodeType}function r(b){var d=b&&b.constructor;return!(!I(b,!0)||v(b)||!d||!d.name||"Object"===d.name)}function p(b){return"number"===typeof b&&!isNaN(b)&&Infinity>b&&-Infinity=u-1&&(u=Math.floor(h)),Math.max(0,u-(w(b,"padding-left",!0)||0)-(w(b,"padding-right",!0)||0));if("height"===u)return Math.max(0,Math.min(b.offsetHeight,b.scrollHeight)-(w(b,"padding-top",!0)||0)-(w(b, "padding-bottom",!0)||0));d.getComputedStyle||f(27,!0);if(b=d.getComputedStyle(b,void 0)){var n=b.getPropertyValue(u);g(h,"opacity"!==u)&&(n=G(n))}return n}function J(b,d,h){for(var w in b)Object.hasOwnProperty.call(b,w)&&d.call(h||b[w],b[w],w,b)}function D(b,d,h){function w(d,C){var w=b.removeEventListener||a.removeEventListenerPolyfill;w&&w.call(b,d,C,!1)}function n(n){var C;if(b.nodeName){if(d){var u={};u[d]=!0}else u=n;J(u,function(b,d){if(n[d])for(C=n[d].length;C--;)w(d,n[d][C].fn)})}}var u= "function"===typeof b&&b.prototype||b;if(Object.hasOwnProperty.call(u,"hcEvents")){var q=u.hcEvents;d?(u=q[d]||[],h?(q[d]=u.filter(function(b){return h!==b.fn}),w(d,h)):(n(q),q[d]=[])):(n(q),delete u.hcEvents)}}function E(b,d,h,w){h=h||{};if(x.createEvent&&(b.dispatchEvent||b.fireEvent&&b!==a)){var n=x.createEvent("Events");n.initEvent(d,!0,!0);h=k(n,h);b.dispatchEvent?b.dispatchEvent(h):b.fireEvent(d,h)}else if(b.hcEvents){h.target||k(h,{preventDefault:function(){h.defaultPrevented=!0},target:b, type:d});n=[];for(var u=b,q=!1;u.hcEvents;)Object.hasOwnProperty.call(u,"hcEvents")&&u.hcEvents[d]&&(n.length&&(q=!0),n.unshift.apply(n,u.hcEvents[d])),u=Object.getPrototypeOf(u);q&&n.sort(function(b,d){return b.order-d.order});n.forEach(function(d){!1===d.fn.call(b,h)&&h.preventDefault()})}w&&!h.defaultPrevented&&w.call(b,h)}var t=a.charts,x=a.doc,d=a.win;(f||(f={})).messages=[];Math.easeInOutSine=function(b){return-.5*(Math.cos(Math.PI*b)-1)};var h=Array.prototype.find?function(b,d){return b.find(d)}: function(b,d){var n,w=b.length;for(n=0;nn&&(n=b[d]);return n},arrayMin:function(b){for(var d=b.length,n=b[0];d--;)b[d]d?b=h&&(d=[1/h])));for(w=0;w=b||!q&&u<=(d[w]+(d[w+1]||d[w]))/2);w++);return n=z(n*h,-Math.round(Math.log(.001)/Math.LN10))},objectEach:J,offset:function(b){var h=x.documentElement;b=b.parentElement||b.parentNode?b.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:b.top+(d.pageYOffset||h.scrollTop)-(h.clientTop||0),left:b.left+(d.pageXOffset||h.scrollLeft)- (h.clientLeft||0),width:b.width,height:b.height}},pad:function(b,d,h){return Array((d||2)+1-String(b).replace("-","").length).join(h||"0")+b},pick:g,pInt:G,relativeLength:function(b,d,h){return/%$/.test(b)?d*parseFloat(b)/100+(h||0):parseFloat(b)},removeEvent:D,splat:function(b){return F(b)?b:[b]},stableSort:function(b,d){var h=b.length,w,n;for(n=0;n>16,(p&65280)>>8,p&255,1]:4===r&&(v=[(p&3840)>>4|(p&3840)>>8,(p&240)>>4|p&240,(p&15)<<4|p&15,1])}if(!v)for(p=f.parsers.length;p--&&!v;){var e=f.parsers[p];(r=e.regex.exec(a))&&(v=e.parse(r))}}v&&(this.rgba=v)};f.prototype.get=function(a){var v=this.input,r=this.rgba;if("object"===typeof v&&"undefined"!==typeof this.stops){var p=G(v);p.stops=[].slice.call(p.stops);this.stops.forEach(function(e,c){p.stops[c]=[p.stops[c][0],e.get(a)]});return p}return r&& B(r[0])?"rgb"===a||!a&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===a?"".concat(r[3]):"rgba("+r.join(",")+")":v};f.prototype.brighten=function(a){var v=this.rgba;if(this.stops)this.stops.forEach(function(p){p.brighten(a)});else if(B(a)&&0!==a)for(var r=0;3>r;r++)v[r]+=y(255*a),0>v[r]&&(v[r]=0),255t?"AM":"PM",P:12>t?"am":"pm",S:p(k.getSeconds()),L:p(Math.floor(g%1E3),3)},a.dateFormats);r(k, function(b,d){for(;-1!==c.indexOf("%"+d);)c=c.replace("%"+d,"function"===typeof b?b.call(m,g):b)});return l?c.substr(0,1).toUpperCase()+c.substr(1):c};m.prototype.resolveDTLFormat=function(g){return I(g,!0)?g:(g=c(g),{main:g[0],from:g[1],to:g[2]})};m.prototype.getTimeTicks=function(c,g,l,m){var z=this,t=[],x={},d=new z.Date(g),h=c.unitRange,b=c.count||1,q;m=e(m,1);if(G(g)){z.set("Milliseconds",d,h>=k.second?0:b*Math.floor(z.get("Milliseconds",d)/b));h>=k.second&&z.set("Seconds",d,h>=k.minute?0:b* Math.floor(z.get("Seconds",d)/b));h>=k.minute&&z.set("Minutes",d,h>=k.hour?0:b*Math.floor(z.get("Minutes",d)/b));h>=k.hour&&z.set("Hours",d,h>=k.day?0:b*Math.floor(z.get("Hours",d)/b));h>=k.day&&z.set("Date",d,h>=k.month?1:Math.max(1,b*Math.floor(z.get("Date",d)/b)));if(h>=k.month){z.set("Month",d,h>=k.year?0:b*Math.floor(z.get("Month",d)/b));var n=z.get("FullYear",d)}h>=k.year&&z.set("FullYear",d,n-n%b);h===k.week&&(n=z.get("Day",d),z.set("Date",d,z.get("Date",d)-n+m+(n4*k.month||z.getTimezoneOffset(g)!==z.getTimezoneOffset(l));g=d.getTime();for(d=1;gt.length&&t.forEach(function(b){0===b%18E5&&"000000000"===z.dateFormat("%H%M%S%L", b)&&(x[b]="day")})}t.info=F(c,{higherRanks:x,totalRange:h*b});return t};m.prototype.getDateFormat=function(c,g,e,l){var m=this.dateFormat("%m-%d %H:%M:%S.%L",g),t={millisecond:15,second:12,minute:9,hour:6,day:3},x="millisecond";for(d in k){if(c===k.week&&+this.dateFormat("%w",g)===e&&"00:00:00.000"===m.substr(6)){var d="week";break}if(k[d]>c){d=x;break}if(t[d]&&m.substr(t[d])!=="01-01 00:00:00.000".substr(t[d]))break;"week"!==d&&(x=d)}return this.resolveDTLFormat(l[d]).main};return m}();"";return f}); L(f,"Core/DefaultOptions.js",[f["Core/Chart/ChartDefaults.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Color/Palettes.js"],f["Core/Time.js"],f["Core/Utilities.js"]],function(a,f,A,G,y,F){f=f.parse;var B=F.merge,v={colors:G.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:a,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:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute", width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:A.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y", month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:A.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:f("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0, href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};v.chart.styledMode=!1;"";var r=new y(B(v.global,v.time));a={defaultOptions:v,defaultTime:r,getOptions:function(){return v},setOptions:function(a){B(!0,v,a);if(a.time||a.global)A.time?A.time.update(B(v.global,v.time,a.global,a.time)):A.time=r;return v}};"";return a});L(f,"Core/Animation/Fx.js",[f["Core/Color/Color.js"], f["Core/Globals.js"],f["Core/Utilities.js"]],function(a,f,A){var B=a.parse,y=f.win,F=A.isNumber,I=A.objectEach;return function(){function a(a,p,e){this.pos=NaN;this.options=p;this.elem=a;this.prop=e}a.prototype.dSetter=function(){var a=this.paths,p=a&&a[0];a=a&&a[1];var e=this.now||0,c=[];if(1!==e&&p&&a)if(p.length===a.length&&1>e)for(var k=0;k=g+this.startTime){this.now= this.end;this.pos=1;this.update();var m=l[this.prop]=!0;I(l,function(c){!0!==c&&(m=!1)});m&&k&&k.call(c);a=!1}else this.pos=e.easing((p-this.startTime)/g),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a=!0;return a};a.prototype.initPath=function(a,p,e){function c(c,g){for(;c.lengthm[1]){var p=e+ +m[1];0<=p?(m[0]=(+m[0]).toExponential(p).split("e")[0],e=p):(m[0]=m[0].split(".")[0]||0,a=20>e?(m[0]*Math.pow(10,m[1])).toFixed(e):0,m[1]=0)}p=(Math.abs(m[1]?m[0]:a)+Math.pow(10,-Math.max(e,l)- 1)).toFixed(e);l=String(r(p));var f=3a?"-":"")+(f?l.substr(0,f)+k:"");a=0>+m[1]&&!z?"0":a+l.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+k);e&&(a+=c+p.slice(-e));m[1]&&0!==+a&&(a+="e"+m[1]);return a}var G=a.defaultOptions,y=a.defaultTime,F=f.getNestedProperty,I=f.isNumber,v=f.pick,r=f.pInt;return{dateFormat:function(a,e,c){return y.dateFormat(a,e,c)},format:function(a,e,c){var k="{",g=!1,l=/f$/,m=/\.([0-9])/,z=G.lang,f=c&&c.time|| y;c=c&&c.numberFormatter||B;for(var p=[];a;){var D=a.indexOf(k);if(-1===D)break;var E=a.slice(0,D);if(g){E=E.split(":");k=F(E.shift()||"",e);if(E.length&&"number"===typeof k)if(E=E.join(":"),l.test(E)){var t=parseInt((E.match(m)||["","-1"])[1],10);null!==k&&(k=c(k,t,z.decimalPoint,-1c){G(a,k);for(N=l=0;N<=c;)N+=a[l].size,l++;z=a.splice(l-1,a.length)}G(a,g);for(a=a.map(function(c){return{size:c.size,targets:[c.target],align:A(c.align,.5)}});m;){for(l=a.length;l--;)c=a[l],k=(Math.min.apply(0,c.targets)+Math.max.apply(0,c.targets))/ 2,c.pos=f(k-c.size*c.align,0,r-c.size);l=a.length;for(m=!1;l--;)0a[l].pos&&(a[l-1].size+=a[l].size,a[l-1].targets=a[l-1].targets.concat(a[l].targets),a[l-1].align=.5,a[l-1].pos+a[l-1].size>r&&(a[l-1].pos=r-a[l-1].size),a.splice(l,1),m=!0)}e.push.apply(e,z);l=0;a.some(function(c){var g=0;return(c.targets||[]).some(function(){e[l].pos=c.pos+g;if("undefined"!==typeof p&&Math.abs(e[l].pos-e[l].target)>p)return e.slice(0,l+1).forEach(function(c){return delete c.pos}),e.reducedLen= (e.reducedLen||r)-.1*r,e.reducedLen>.1*r&&B(e,r,p),!0;g+=e[l].size;l++;return!1})});G(e,g);return e}a.distribute=B})(y||(y={}));return y});L(f,"Core/Renderer/SVG/SVGElement.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(a,f,A,G){var B=a.animate,F=a.animObject,I=a.stop,v=A.deg2rad,r=A.doc,p=A.svg,e=A.SVG_NS,c=A.win,k=G.addEvent,g=G.attr,l=G.createElement,m=G.css,z=G.defined,N=G.erase,J=G.extend,D=G.fireEvent,E=G.isArray, t=G.isFunction,x=G.isString,d=G.merge,h=G.objectEach,b=G.pick,q=G.pInt,n=G.syncTimeout,u=G.uniqueKey;a=function(){function a(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=e;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}a.prototype._defaultGetter=function(d){d=b(this[d+"Value"],this[d],this.element?this.element.getAttribute(d):null,0);/^[\-0-9\.]+$/.test(d)&&(d=parseFloat(d));return d};a.prototype._defaultSetter= function(b,d,c){c.setAttribute(d,b)};a.prototype.add=function(b){var d=this.renderer,c=this.element;b&&(this.parentGroup=b);this.parentInverted=b&&b.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&d.buildText(this);this.added=!0;if(!b||b.handleZ||this.zIndex)var h=this.zIndexSetter();h||(b?b.element:d.box).appendChild(c);if(this.onAdd)this.onAdd();return this};a.prototype.addClass=function(b,d){var c=d?"":this.attr("class")||"";b=(b||"").split(/ /g).reduce(function(b,d){-1=== c.indexOf(d)&&b.push(d);return b},c?[c]:[]).join(" ");b!==c&&this.attr("class",b);return this};a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};a.prototype.align=function(d,c,h){var w={},n=this.renderer,C=n.alignedObjects,M,g,q;if(d){if(this.alignOptions=d,this.alignByTranslate=c,!h||x(h))this.alignTo=M=h||"renderer",N(C,this),C.push(this),h=void 0}else d=this.alignOptions,c=this.alignByTranslate,M=this.alignTo;h=b(h,n[M],"scrollablePlotBox"===M? n.plotBox:void 0,n);M=d.align;var u=d.verticalAlign;n=(h.x||0)+(d.x||0);C=(h.y||0)+(d.y||0);"right"===M?g=1:"center"===M&&(g=2);g&&(n+=(h.width-(d.width||0))/g);w[c?"translateX":"x"]=Math.round(n);"bottom"===u?q=1:"middle"===u&&(q=2);q&&(C+=(h.height-(d.height||0))/q);w[c?"translateY":"y"]=Math.round(C);this[this.placed?"animate":"attr"](w);this.placed=!0;this.alignAttr=w;return this};a.prototype.alignSetter=function(b){var d={left:"start",center:"middle",right:"end"};d[b]&&(this.alignValue=b,this.element.setAttribute("text-anchor", d[b]))};a.prototype.animate=function(d,c,g){var w=this,q=F(b(c,this.renderer.globalAnimation,!0));c=q.defer;b(r.hidden,r.msHidden,r.webkitHidden,!1)&&(q.duration=0);0!==q.duration?(g&&(q.complete=g),n(function(){w.element&&B(w,d,q)},c)):(this.attr(d,void 0,g||q.complete),h(d,function(b,d){q.step&&q.step.call(this,b,{prop:d,pos:1,elem:this})},this));return this};a.prototype.applyTextOutline=function(b){var d=this.element;-1!==b.indexOf("contrast")&&(b=b.replace(/contrast/g,this.renderer.getContrast(d.style.fill))); var c=b.split(" ");b=c[c.length-1];if((c=c[0])&&"none"!==c&&A.svg){this.fakeTS=!0;this.ySetter=this.xSetter;c=c.replace(/(^[\d\.]+)(.*?)$/g,function(b,d,c){return 2*Number(d)+c});this.removeTextOutline();var h=r.createElementNS(e,"tspan");g(h,{"class":"highcharts-text-outline",fill:b,stroke:b,"stroke-width":c,"stroke-linejoin":"round"});b=d.querySelector("textPath")||d;[].forEach.call(b.childNodes,function(b){var d=b.cloneNode(!0);d.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(b){return d.removeAttribute(b)}); h.appendChild(d)});var w=0;[].forEach.call(b.querySelectorAll("text tspan"),function(b){w+=Number(b.getAttribute("dy"))});c=r.createElementNS(e,"tspan");c.textContent="\u200b";g(c,{x:Number(d.getAttribute("x")),dy:-w});h.appendChild(c);b.insertBefore(h,b.firstChild)}};a.prototype.attr=function(b,d,c,n){var w=this.element,C=this.symbolCustomAttribs,M,g=this,q,u;if("string"===typeof b&&"undefined"!==typeof d){var e=b;b={};b[e]=d}"string"===typeof b?g=(this[b+"Getter"]||this._defaultGetter).call(this, b,w):(h(b,function(d,c){q=!1;n||I(this,c);this.symbolName&&-1!==C.indexOf(c)&&(M||(this.symbolAttr(b),M=!0),q=!0);!this.rotation||"x"!==c&&"y"!==c||(this.doTransform=!0);q||(u=this[c+"Setter"]||this._defaultSetter,u.call(this,d,c,w),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(c)&&this.updateShadows(c,d,u))},this),this.afterSetters());c&&c.call(this);return g};a.prototype.clip=function(b){return this.attr("clip-path",b?"url("+this.renderer.url+"#"+b.id+ ")":"none")};a.prototype.crisp=function(b,d){d=d||b.strokeWidth||0;var c=Math.round(d)%2/2;b.x=Math.floor(b.x||this.x||0)+c;b.y=Math.floor(b.y||this.y||0)+c;b.width=Math.floor((b.width||this.width||0)-2*c);b.height=Math.floor((b.height||this.height||0)-2*c);z(b.strokeWidth)&&(b.strokeWidth=d);return b};a.prototype.complexColor=function(b,c,n){var g=this.renderer,q,C,M,w,e,a,t,H,l,m,k=[],x;D(this.renderer,"complexColor",{args:arguments},function(){b.radialGradient?C="radialGradient":b.linearGradient&& (C="linearGradient");if(C){M=b[C];e=g.gradients;a=b.stops;l=n.radialReference;E(M)&&(b[C]=M={x1:M[0],y1:M[1],x2:M[2],y2:M[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===C&&l&&!z(M.gradientUnits)&&(w=M,M=d(M,g.getRadialAttr(l,w),{gradientUnits:"userSpaceOnUse"}));h(M,function(b,d){"id"!==d&&k.push(d,b)});h(a,function(b){k.push(b)});k=k.join(",");if(e[k])m=e[k].attr("id");else{M.id=m=u();var O=e[k]=g.createElement(C).attr(M).add(g.defs);O.radAttr=w;O.stops=[];a.forEach(function(b){0===b[1].indexOf("rgba")? (q=f.parse(b[1]),t=q.get("rgb"),H=q.get("a")):(t=b[1],H=1);b=g.createElement("stop").attr({offset:b[0],"stop-color":t,"stop-opacity":H}).add(O);O.stops.push(b)})}x="url("+g.url+"#"+m+")";n.setAttribute(c,x);n.gradient=k;b.toString=function(){return x}}})};a.prototype.css=function(b){var c=this.styles,n={},g=this.element,u=!c;b.color&&(b.fill=b.color);c&&h(b,function(b,d){c&&c[d]!==b&&(n[d]=b,u=!0)});if(u){c&&(b=J(c,n));if(null===b.width||"auto"===b.width)delete this.textWidth;else if("text"===g.nodeName.toLowerCase()&& b.width)var C=this.textWidth=q(b.width);this.styles=b;C&&!p&&this.renderer.forExport&&delete b.width;var M=d(b);g.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(b){return M&&delete M[b]});m(g,M);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),b.textOutline&&this.applyTextOutline(b.textOutline))}return this};a.prototype.dashstyleSetter=function(d){var c=this["stroke-width"];"inherit"===c&&(c=1);if(d=d&&d.toLowerCase()){var h=d.replace("shortdashdotdot", "3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(d=h.length;d--;)h[d]=""+q(h[d])*b(c,NaN);d=h.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",d)}};a.prototype.destroy=function(){var b=this,d=b.element||{},c=b.renderer,n=d.ownerSVGElement,g=c.isSVG&&"SPAN"===d.nodeName&&b.parentGroup||void 0;d.onclick=d.onmouseout= d.onmouseover=d.onmousemove=d.point=null;I(b);if(b.clipPath&&n){var C=b.clipPath;[].forEach.call(n.querySelectorAll("[clip-path],[CLIP-PATH]"),function(b){-1H.width)H={x:0,y:0,width:0,height:0}}else H=this.htmlGetBBox(); if(g.isSVG&&(g=H.width,d=H.height,w&&(H.height=d={"11px,17":14,"13px,20":16}[""+(l||"")+",".concat(Math.round(d))]||d),c)){w=Number(n.getAttribute("y")||0)-H.y;h={right:1,center:.5}[h||0]||0;C=c*v;l=(c-90)*v;var x=g*Math.cos(C);c=g*Math.sin(C);O=Math.cos(l);C=Math.sin(l);g=H.x+h*(g-x)+w*O;l=g+x;O=l-d*O;x=O-x;w=H.y+w-h*c+w*C;h=w+c;d=h-d*C;c=d-c;H.x=Math.min(g,l,O,x);H.y=Math.min(w,h,d,c);H.width=Math.max(g,l,O,x)-H.x;H.height=Math.max(w,h,d,c)-H.y}if(k&&(""===q||0]*>/g,"").replace(/</g,"<").replace(/>/g, ">")};a.prototype.toFront=function(){var b=this.element;b.parentNode.appendChild(b);return this};a.prototype.translate=function(b,d){return this.attr({translateX:b,translateY:d})};a.prototype.updateShadows=function(b,d,c){var h=this.shadows;if(h)for(var g=h.length;g--;)c.call(h[g],"height"===b?Math.max(d-(h[g].cutHeight||0),0):"d"===b?this.d:d,b,h[g])};a.prototype.updateTransform=function(){var d=this.scaleX,c=this.scaleY,h=this.inverted,g=this.rotation,n=this.matrix,C=this.element,q=this.translateX|| 0,u=this.translateY||0;h&&(q+=this.width,u+=this.height);q=["translate("+q+","+u+")"];z(n)&&q.push("matrix("+n.join(",")+")");h?q.push("rotate(90) scale(-1,1)"):g&&q.push("rotate("+g+" "+b(this.rotationOriginX,C.getAttribute("x"),0)+" "+b(this.rotationOriginY,C.getAttribute("y")||0)+")");(z(d)||z(c))&&q.push("scale("+b(d,1)+" "+b(c,1)+")");q.length&&!(this.text||this).textPath&&C.setAttribute("transform",q.join(" "))};a.prototype.visibilitySetter=function(b,d,c){"inherit"===b?c.removeAttribute(d): this[d]!==b&&c.setAttribute(d,b);this[d]=b};a.prototype.xGetter=function(b){"circle"===this.element.nodeName&&("x"===b?b="cx":"y"===b&&(b="cy"));return this._defaultGetter(b)};a.prototype.zIndexSetter=function(b,d){var c=this.renderer,h=this.parentGroup,g=(h||c).element||c.box,C=this.element;c=g===c.box;var n=!1;var u=this.added;var e;z(b)?(C.setAttribute("data-z-index",b),b=+b,this[d]===b&&(u=!1)):z(this[d])&&C.removeAttribute("data-z-index");this[d]=b;if(u){(b=this.zIndex)&&h&&(h.handleZ=!0);d= g.childNodes;for(e=d.length-1;0<=e&&!n;e--){h=d[e];u=h.getAttribute("data-z-index");var a=!z(u);if(h!==C)if(0>b&&a&&!c&&!e)g.insertBefore(C,d[e]),n=!0;else if(q(u)<=b||a&&(!z(b)||0<=b))g.insertBefore(C,d[e+1]||null),n=!0}n||(g.insertBefore(C,d[c?3:0]||null),n=!0)}return n};return a}();a.prototype["stroke-widthSetter"]=a.prototype.strokeSetter;a.prototype.yGetter=a.prototype.xGetter;a.prototype.matrixSetter=a.prototype.rotationOriginXSetter=a.prototype.rotationOriginYSetter=a.prototype.rotationSetter= a.prototype.scaleXSetter=a.prototype.scaleYSetter=a.prototype.translateXSetter=a.prototype.translateYSetter=a.prototype.verticalAlignSetter=function(b,d){this[d]=b;this.doTransform=!0};"";return a});L(f,"Core/Renderer/RendererRegistry.js",[f["Core/Globals.js"]],function(a){var f;(function(f){f.rendererTypes={};var B;f.getRendererType=function(a){void 0===a&&(a=B);return f.rendererTypes[a]||f.rendererTypes[B]};f.registerRendererType=function(y,A,I){f.rendererTypes[y]=A;if(!B||I)B=y,a.Renderer=A}})(f|| (f={}));return f});L(f,"Core/Renderer/SVG/SVGLabel.js",[f["Core/Renderer/SVG/SVGElement.js"],f["Core/Utilities.js"]],function(a,f){var B=this&&this.__extends||function(){var a=function(e,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,g){c.__proto__=g}||function(c,g){for(var e in g)g.hasOwnProperty(e)&&(c[e]=g[e])};return a(e,c)};return function(e,c){function k(){this.constructor=e}a(e,c);e.prototype=null===c?Object.create(c):(k.prototype=c.prototype,new k)}}(),G=f.defined, y=f.extend,F=f.isNumber,I=f.merge,v=f.pick,r=f.removeEvent;return function(f){function e(c,a,g,l,m,z,p,r,D,E){var t=f.call(this)||this;t.paddingLeftSetter=t.paddingSetter;t.paddingRightSetter=t.paddingSetter;t.init(c,"g");t.textStr=a;t.x=g;t.y=l;t.anchorX=z;t.anchorY=p;t.baseline=D;t.className=E;t.addClass("button"===E?"highcharts-no-tooltip":"highcharts-label");E&&t.addClass("highcharts-"+E);t.text=c.text(void 0,0,0,r).attr({zIndex:1});var k;"string"===typeof m&&((k=/^url\((.*?)\)$/.test(m))||t.renderer.symbols[m])&& (t.symbolKey=m);t.bBox=e.emptyBBox;t.padding=3;t.baselineOffset=0;t.needsBox=c.styledMode||k;t.deferredAttr={};t.alignFactor=0;return t}B(e,f);e.prototype.alignSetter=function(c){c={left:0,center:.5,right:1}[c];c!==this.alignFactor&&(this.alignFactor=c,this.bBox&&F(this.xSetting)&&this.attr({x:this.xSetting}))};e.prototype.anchorXSetter=function(c,e){this.anchorX=c;this.boxAttr(e,Math.round(c)-this.getCrispAdjust()-this.xSetting)};e.prototype.anchorYSetter=function(c,e){this.anchorY=c;this.boxAttr(e, c-this.ySetting)};e.prototype.boxAttr=function(c,e){this.box?this.box.attr(c,e):this.deferredAttr[c]=e};e.prototype.css=function(c){if(c){var k={};c=I(c);e.textProps.forEach(function(g){"undefined"!==typeof c[g]&&(k[g]=c[g],delete c[g])});this.text.css(k);var g="width"in k;"fontSize"in k||"fontWeight"in k?this.updateTextPadding():g&&this.updateBoxSize()}return a.prototype.css.call(this,c)};e.prototype.destroy=function(){r(this.element,"mouseenter");r(this.element,"mouseleave");this.text&&this.text.destroy(); this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};e.prototype.fillSetter=function(c,e){c&&(this.needsBox=!0);this.fill=c;this.boxAttr(e,c)};e.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var c=this.padding,e=v(this.paddingLeft,c);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-c}};e.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};e.prototype.heightSetter=function(c){this.heightSetting=c};e.prototype.onAdd=function(){var c=this.textStr;this.text.add(this);this.attr({text:G(c)?c:"",x:this.x,y:this.y});this.box&&G(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};e.prototype.paddingSetter=function(c,e){F(c)?c!==this[e]&&(this[e]=c,this.updateTextPadding()):this[e]=void 0};e.prototype.rSetter=function(c,e){this.boxAttr(e,c)};e.prototype.shadow=function(c){c&&!this.renderer.styledMode&& (this.updateBoxSize(),this.box&&this.box.shadow(c));return this};e.prototype.strokeSetter=function(c,e){this.stroke=c;this.boxAttr(e,c)};e.prototype["stroke-widthSetter"]=function(c,e){c&&(this.needsBox=!0);this["stroke-width"]=c;this.boxAttr(e,c)};e.prototype["text-alignSetter"]=function(c){this.textAlign=c};e.prototype.textSetter=function(c){"undefined"!==typeof c&&this.text.attr({text:c});this.updateTextPadding()};e.prototype.updateBoxSize=function(){var c=this.text,a=c.element.style,g={},l=this.padding, m=this.bBox=F(this.widthSetting)&&F(this.heightSetting)&&!this.textAlign||!G(c.textStr)?e.emptyBBox:c.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||m.height||0)+2*l;a=this.renderer.fontMetrics(a&&a.fontSize,c);this.baselineOffset=l+Math.min((this.text.firstLineMetrics||a).b,m.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-a.h)/2);this.needsBox&&!c.textPath&&(this.box||(c=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(), c.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),c.add(this)),c=this.getCrispAdjust(),g.x=c,g.y=(this.baseline?-this.baselineOffset:0)+c,g.width=Math.round(this.width),g.height=Math.round(this.height),this.box.attr(y(g,this.deferredAttr)),this.deferredAttr={})};e.prototype.updateTextPadding=function(){var c=this.text;if(!c.textPath){this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,g=v(this.paddingLeft,this.padding); G(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(g+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(g!==c.x||e!==c.y)c.attr("x",g),c.hasBoxWidthChanged&&(this.bBox=c.getBBox(!0)),"undefined"!==typeof e&&c.attr("y",e);c.x=g;c.y=e}};e.prototype.widthSetter=function(c){this.widthSetting=F(c)?c:void 0};e.prototype.getPaddedWidth=function(){var c=this.padding,e=v(this.paddingLeft,c);c=v(this.paddingRight,c);return(this.widthSetting||this.bBox.width|| 0)+e+c};e.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)};e.prototype.ySetter=function(c){this.ySetting=this.y=Math.round(c);this.attr("translateY",this.ySetting)};e.emptyBBox={width:0,height:0,x:0,y:0};e.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return e}(a)}); L(f,"Core/Renderer/SVG/Symbols.js",[f["Core/Utilities.js"]],function(a){function f(a,f,p,e,c){var k=[];if(c){var g=c.start||0,l=I(c.r,p);p=I(c.r,e||p);var m=(c.end||0)-.001;e=c.innerR;var z=I(c.open,.001>Math.abs((c.end||0)-g-2*Math.PI)),N=Math.cos(g),r=Math.sin(g),D=Math.cos(m),E=Math.sin(m);g=I(c.longArc,.001>m-g-Math.PI?0:1);k.push(["M",a+l*N,f+p*r],["A",l,p,0,g,I(c.clockwise,1),a+l*D,f+p*E]);y(e)&&k.push(z?["M",a+e*D,f+e*E]:["L",a+e*D,f+e*E],["A",e,e,0,g,y(c.clockwise)?1-c.clockwise:0,a+e*N,f+ e*r]);z||k.push(["Z"])}return k}function A(a,f,p,e,c){return c&&c.r?G(a,f,p,e,c):[["M",a,f],["L",a+p,f],["L",a+p,f+e],["L",a,f+e],["Z"]]}function G(a,f,p,e,c){c=c&&c.r||0;return[["M",a+c,f],["L",a+p-c,f],["C",a+p,f,a+p,f,a+p,f+c],["L",a+p,f+e-c],["C",a+p,f+e,a+p,f+e,a+p-c,f+e],["L",a+c,f+e],["C",a,f+e,a,f+e,a,f+e-c],["L",a,f+c],["C",a,f,a,f,a+c,f]]}var y=a.defined,F=a.isNumber,I=a.pick;return{arc:f,callout:function(a,f,p,e,c){var k=Math.min(c&&c.r||0,p,e),g=k+6,l=c&&c.anchorX;c=c&&c.anchorY||0;var m= G(a,f,p,e,{r:k});if(!F(l))return m;a+l>=p?c>f+g&&c=a+l?c>f+g&&ce&&l>a+g&&lc&&l>a+g&&l/g,E=[k,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(E!==g.textCache){g.textCache=E;delete g.actualWidth;for(E=J.length;E--;)e.removeChild(J[E]);f||this.ellipsis||this.width||g.textPath||-1!==k.indexOf(" ")&&(!this.noWrap||D.test(k))?""!==k&&(m&&m.appendChild(e),k=new a(k),this.modifyTree(k.nodes), k.addToDOM(e),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||"").indexOf("\u2026")&&g.attr("title",this.unescapeEntities(g.textStr||"",["<",">"])),m&&m.removeChild(e)):e.appendChild(B.createTextNode(this.unescapeEntities(k)));p(this.textOutline)&&g.applyTextOutline&&g.applyTextOutline(this.textOutline)}};k.prototype.modifyDOM=function(){var c=this,a=this.svgElement,e=I(a.element,"x");a.firstLineMetrics=void 0;for(var k;k=a.element.firstChild;)if(/^[\s\u200B]*$/.test(k.textContent||" "))a.element.removeChild(k); else break;[].forEach.call(a.element.querySelectorAll("tspan.highcharts-br"),function(g,t){g.nextSibling&&g.previousSibling&&(0===t&&1===g.previousSibling.nodeType&&(a.firstLineMetrics=a.renderer.fontMetrics(void 0,g.previousSibling)),I(g,{dy:c.getLineHeight(g.nextSibling),x:e}))});var f=this.width||0;if(f){var p=function(g,t){var m=g.textContent||"",d=m.replace(/([^\^])-/g,"$1- ").split(" "),h=!c.noWrap&&(1f){for(;d<=h;)b=Math.ceil((d+h)/2),e&&(q=p(e,b)),u=n(b,q&&q.length-1),d===h?d=h+1:u>f?h=b-1:d=b;0===h? c.textContent="":a&&h===a.length-1||(c.textContent=q||p(a||e,b))}e&&e.splice(0,b);g.actualWidth=u;g.rotation=t};k.prototype.unescapeEntities=function(c,a){e(this.renderer.escapes,function(g,e){a&&-1!==a.indexOf(g)||(c=c.toString().replace(new RegExp(g,"g"),e))});return c};return k}()});L(f,"Core/Renderer/SVG/SVGRenderer.js",[f["Core/Renderer/HTML/AST.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Renderer/RendererRegistry.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Renderer/SVG/SVGLabel.js"], f["Core/Renderer/SVG/Symbols.js"],f["Core/Renderer/SVG/TextBuilder.js"],f["Core/Utilities.js"]],function(a,f,A,G,y,F,I,v,r){var p=A.charts,e=A.deg2rad,c=A.doc,k=A.isFirefox,g=A.isMS,l=A.isWebKit,m=A.noop,z=A.SVG_NS,N=A.symbolSizes,J=A.win,D=r.addEvent,E=r.attr,t=r.createElement,x=r.css,d=r.defined,h=r.destroyObjectProperties,b=r.extend,q=r.isArray,n=r.isNumber,u=r.isObject,K=r.isString,w=r.merge,S=r.pick,P=r.pInt,B=r.uniqueKey,V;A=function(){function C(b,d,c,h,a,C,g){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(b,d,c,h,a,C,g)}C.prototype.init=function(b,d,h,a,C,g,n){var e=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),q=e.element;n||e.css(this.getStyle(a));b.appendChild(q);E(b,"dir","ltr");-1===b.innerHTML.indexOf("xmlns")&&E(q,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=q;this.boxWrapper=e;this.alignedObjects= [];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(c.createTextNode("Created with Highcharts 10.2.1"));this.defs=this.createElement("defs").add();this.allowHTML=g;this.forExport=C;this.styledMode=n;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(d,h,!1);var u;k&&b.getBoundingClientRect&&(d=function(){x(b,{left:0,top:0});u=b.getBoundingClientRect();x(b,{left:Math.ceil(u.left)-u.left+"px",top:Math.ceil(u.top)-u.top+"px"})},d(),this.unSubPixelFix= D(J,"resize",d))};C.prototype.definition=function(b){return(new a([b])).addToDOM(this.defs.element)};C.prototype.getReferenceURL=function(){if((k||l)&&c.getElementsByTagName("base").length){if(!d(V)){var b=B();b=(new a([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:b},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(b,")"),fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(c.body); x(b,{position:"fixed",top:0,left:0,zIndex:9E5});var h=c.elementFromPoint(6,6);V="hitme"===(h&&h.id);c.body.removeChild(b)}if(V)return J.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};C.prototype.getStyle=function(d){return this.style=b({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},d)};C.prototype.setStyle=function(b){this.boxWrapper.css(this.getStyle(b))};C.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width}; C.prototype.destroy=function(){var b=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();h(this.gradients||{});this.gradients=null;b&&(this.defs=b.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};C.prototype.createElement=function(b){var d=new this.Element;d.init(this,b);return d};C.prototype.getRadialAttr=function(b,d){return{cx:b[0]-b[2]/2+(d.cx||0)*b[2],cy:b[1]-b[2]/2+(d.cy||0)*b[2],r:(d.r||0)*b[2]}};C.prototype.buildText=function(b){(new v(b)).buildSVG()}; C.prototype.getContrast=function(b){b=f.parse(b).rgba.map(function(b){b/=255;return.03928>=b?b/12.92:Math.pow((b+.055)/1.055,2.4)});b=.2126*b[0]+.7152*b[1]+.0722*b[2];return 1.05/(b+.05)>(b+.05)/.05?"#FFFFFF":"#000000"};C.prototype.button=function(d,c,h,C,e,n,q,t,k,m){void 0===e&&(e={});var H=this.label(d,c,h,k,void 0,void 0,m,void 0,"button"),M=this.styledMode;d=e.states||{};var l=0;e=w(e);delete e.states;var O=w({color:"#333333",cursor:"pointer",fontWeight:"normal"},e.style);delete e.style;var f= a.filterUserAttributes(e);H.attr(w({padding:8,r:2},f));if(!M){f=w({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},f);n=w(f,{fill:"#e6e6e6"},a.filterUserAttributes(n||d.hover||{}));var x=n.style;delete n.style;q=w(f,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a.filterUserAttributes(q||d.select||{}));var z=q.style;delete q.style;t=w(f,{style:{color:"#cccccc"}},a.filterUserAttributes(t||d.disabled||{}));var T=t.style;delete t.style}D(H.element,g?"mouseover":"mouseenter",function(){3!== l&&H.setState(1)});D(H.element,g?"mouseout":"mouseleave",function(){3!==l&&H.setState(l)});H.setState=function(b){1!==b&&(H.state=l=b);H.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][b||0]);M||(H.attr([f,n,q,t][b||0]),b=[O,x,z,T][b||0],u(b)&&H.css(b))};M||H.attr(f).css(b({cursor:"default"},O));return H.on("touchstart",function(b){return b.stopPropagation()}).on("click",function(b){3!==l&&C.call(H,b)})};C.prototype.crispLine= function(b,c,h){void 0===h&&(h="round");var a=b[0],C=b[1];d(a[1])&&a[1]===C[1]&&(a[1]=C[1]=Math[h](a[1])-c%2/2);d(a[2])&&a[2]===C[2]&&(a[2]=C[2]=Math[h](a[2])+c%2/2);return b};C.prototype.path=function(d){var c=this.styledMode?{}:{fill:"none"};q(d)?c.d=d:u(d)&&b(c,d);return this.createElement("path").attr(c)};C.prototype.circle=function(b,d,c){b=u(b)?b:"undefined"===typeof b?{}:{x:b,y:d,r:c};d=this.createElement("circle");d.xSetter=d.ySetter=function(b,d,c){c.setAttribute("c"+d,b)};return d.attr(b)}; C.prototype.arc=function(b,d,c,h,a,C){u(b)?(h=b,d=h.y,c=h.r,b=h.x):h={innerR:h,start:a,end:C};b=this.symbol("arc",b,d,c,c,h);b.r=c;return b};C.prototype.rect=function(b,d,c,h,a,C){a=u(b)?b.r:a;var e=this.createElement("rect");b=u(b)?b:"undefined"===typeof b?{}:{x:b,y:d,width:Math.max(c,0),height:Math.max(h,0)};this.styledMode||("undefined"!==typeof C&&(b["stroke-width"]=C,b=e.crisp(b)),b.fill="none");a&&(b.r=a);e.rSetter=function(b,d,c){e.r=b;E(c,{rx:b,ry:b})};e.rGetter=function(){return e.r||0}; return e.attr(b)};C.prototype.setSize=function(b,d,c){this.width=b;this.height=d;this.boxWrapper.animate({width:b,height:d},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:S(c,!0)?void 0:0});this.alignElements()};C.prototype.g=function(b){var d=this.createElement("g");return b?d.attr({"class":"highcharts-"+b}):d};C.prototype.image=function(b,d,c,h,a,C){var e={preserveAspectRatio:"none"},g=function(b,d){b.setAttributeNS?b.setAttributeNS("http://www.w3.org/1999/xlink", "href",d):b.setAttribute("hc-svg-href",d)};n(d)&&(e.x=d);n(c)&&(e.y=c);n(h)&&(e.width=h);n(a)&&(e.height=a);var q=this.createElement("image").attr(e);d=function(d){g(q.element,b);C.call(q,d)};C?(g(q.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),c=new J.Image,D(c,"load",d),c.src=b,c.complete&&d({})):g(q.element,b);return q};C.prototype.symbol=function(h,a,C,e,g,n){var q=this,u=/^url\((.*?)\)$/,H=u.test(h),k=!H&&(this.symbols[h]?h:"circle"),m=k&&this.symbols[k], l;if(m){"number"===typeof a&&(l=m.call(this.symbols,Math.round(a||0),Math.round(C||0),e||0,g||0,n));var f=this.path(l);q.styledMode||f.attr("fill","none");b(f,{symbolName:k||void 0,x:a,y:C,width:e,height:g});n&&b(f,n)}else if(H){var M=h.match(u)[1];var w=f=this.image(M);w.imgwidth=S(N[M]&&N[M].width,n&&n.width);w.imgheight=S(N[M]&&N[M].height,n&&n.height);var z=function(b){return b.attr({width:b.width,height:b.height})};["width","height"].forEach(function(b){w[b+"Setter"]=function(b,c){var h=this["img"+ c];this[c]=b;d(h)&&(n&&"within"===n.backgroundSize&&this.width&&this.height&&(h=Math.round(h*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(c,h),this.alignByTranslate||(b=((this[c]||0)-h)/2,this.attr("width"===c?{translateX:b}:{translateY:b})))}});d(a)&&w.attr({x:a,y:C});w.isImg=!0;d(w.imgwidth)&&d(w.imgheight)?z(w):(w.attr({width:0,height:0}),t("img",{onload:function(){var b=p[q.chartIndex];0===this.width&&(x(this,{position:"absolute",top:"-999em"}), c.body.appendChild(this));N[M]={width:this.width,height:this.height};w.imgwidth=this.width;w.imgheight=this.height;w.element&&z(w);this.parentNode&&this.parentNode.removeChild(this);q.imgCount--;if(!q.imgCount&&b&&!b.hasLoaded)b.onload()},src:M}),this.imgCount++)}return f};C.prototype.clipRect=function(b,d,c,h){var a=B()+"-",C=this.createElement("clipPath").attr({id:a}).add(this.defs);b=this.rect(b,d,c,h,0).add(C);b.id=a;b.clipPath=C;b.count=0;return b};C.prototype.text=function(b,c,h,a){var C={}; if(a&&(this.allowHTML||!this.forExport))return this.html(b,c,h);C.x=Math.round(c||0);h&&(C.y=Math.round(h));d(b)&&(C.text=b);b=this.createElement("text").attr(C);if(!a||this.forExport&&!this.allowHTML)b.xSetter=function(b,d,c){for(var h=c.getElementsByTagName("tspan"),a=c.getAttribute(d),C=0,e;Cb?b+3:Math.round(1.2*b);return{h:d,b:Math.round(.8*d),f:b}};C.prototype.rotCorr=function(b,d,c){var h=b;d&&c&&(h=Math.max(h*Math.cos(d*e),4));return{x:-b/3*Math.sin(d*e),y:h}};C.prototype.pathToSegments=function(b){for(var d=[],c=[],h={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},a=0;a":">","'":"'",'"':"""},symbols:I,draw:m});G.registerRendererType("svg",A,!0);"";return A});L(f,"Core/Renderer/HTML/HTMLElement.js", [f["Core/Globals.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Utilities.js"]],function(a,f,A){var B=this&&this.__extends||function(){var c=function(a,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return c(a,e)};return function(a,e){function g(){this.constructor=a}c(a,e);a.prototype=null===e?Object.create(e):(g.prototype=e.prototype,new g)}}(),y=a.isFirefox,F=a.isMS,I=a.isWebKit,v=a.win, r=A.css,p=A.defined,e=A.extend,c=A.pick,k=A.pInt;return function(a){function g(){return null!==a&&a.apply(this,arguments)||this}B(g,a);g.compose=function(c){if(-1===g.composedClasses.indexOf(c)){g.composedClasses.push(c);var a=g.prototype,e=c.prototype;e.getSpanCorrection=a.getSpanCorrection;e.htmlCss=a.htmlCss;e.htmlGetBBox=a.htmlGetBBox;e.htmlUpdateTransform=a.htmlUpdateTransform;e.setSpanRotation=a.setSpanRotation}return c};g.prototype.getSpanCorrection=function(c,a,e){this.xCorr=-c*e;this.yCorr= -a};g.prototype.htmlCss=function(a){var g="SPAN"===this.element.tagName&&a&&"width"in a,k=c(g&&a.width,void 0);if(g){delete a.width;this.textWidth=k;var m=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=e(this.styles,a);r(this.element,a);m&&this.htmlUpdateTransform();return this};g.prototype.htmlGetBBox=function(){var c=this.element;return{x:c.offsetLeft,y:c.offsetTop,width:c.offsetWidth,height:c.offsetHeight}};g.prototype.htmlUpdateTransform=function(){if(this.added){var c= this.renderer,a=this.element,e=this.translateX||0,g=this.translateY||0,f=this.x||0,l=this.y||0,t=this.textAlign||"left",x={left:0,center:.5,right:1}[t],d=this.styles;d=d&&d.whiteSpace;r(a,{marginLeft:e,marginTop:g});!c.styledMode&&this.shadows&&this.shadows.forEach(function(b){r(b,{marginLeft:e+1,marginTop:g+1})});this.inverted&&[].forEach.call(a.childNodes,function(b){c.invertChild(b,a)});if("SPAN"===a.tagName){var h=this.rotation,b=this.textWidth&&k(this.textWidth),q=[h,t,a.innerHTML,this.textWidth, this.textAlign].join(),n=void 0;n=!1;if(b!==this.oldTextWidth){if(this.textPxLength)var u=this.textPxLength;else r(a,{width:"",whiteSpace:d||"nowrap"}),u=a.offsetWidth;(b>this.oldTextWidth||u>b)&&(/[ \-]/.test(a.textContent||a.innerText)||"ellipsis"===a.style.textOverflow)&&(r(a,{width:u>b||h?b+"px":"auto",display:"block",whiteSpace:d||"normal"}),this.oldTextWidth=b,n=!0)}this.hasBoxWidthChanged=n;q!==this.cTT&&(n=c.fontMetrics(a.style.fontSize,a).b,!p(h)||h===(this.oldRotation||0)&&t===this.oldAlign|| this.setSpanRotation(h,x,n),this.getSpanCorrection(!p(h)&&this.textPxLength||a.offsetWidth,n,x,h,t));r(a,{left:f+(this.xCorr||0)+"px",top:l+(this.yCorr||0)+"px"});this.cTT=q;this.oldRotation=h;this.oldAlign=t}}else this.alignOnAdd=!0};g.prototype.setSpanRotation=function(c,a,e){var g={},k=F&&!/Edge/.test(v.navigator.userAgent)?"-ms-transform":I?"-webkit-transform":y?"MozTransform":v.opera?"-o-transform":void 0;k&&(g[k]=g.transform="rotate("+c+"deg)",g[k+(y?"Origin":"-origin")]=g.transformOrigin=100* a+"% "+e+"px",r(this.element,g))};g.composedClasses=[];return g}(f)});L(f,"Core/Renderer/HTML/HTMLRenderer.js",[f["Core/Renderer/HTML/AST.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Utilities.js"]],function(a,f,A,G){var B=this&&this.__extends||function(){var a=function(e,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return a(e,c)};return function(e, c){function k(){this.constructor=e}a(e,c);e.prototype=null===c?Object.create(c):(k.prototype=c.prototype,new k)}}(),F=G.attr,I=G.createElement,v=G.extend,r=G.pick;return function(p){function e(){return null!==p&&p.apply(this,arguments)||this}B(e,p);e.compose=function(c){-1===e.composedClasses.indexOf(c)&&(e.composedClasses.push(c),c.prototype.html=e.prototype.html);return c};e.prototype.html=function(c,e,g){var k=this.createElement("span"),m=k.element,z=k.renderer,p=z.isSVG,J=function(c,a){["opacity", "visibility"].forEach(function(e){c[e+"Setter"]=function(g,d,h){var b=c.div?c.div.style:a;f.prototype[e+"Setter"].call(this,g,d,h);b&&(b[d]=g)}});c.addedSetters=!0};k.textSetter=function(c){c!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,r(c,"")),this.textStr=c,k.doTransform=!0)};p&&J(k,k.element.style);k.xSetter=k.ySetter=k.alignSetter=k.rotationSetter=function(c,a){"align"===a?k.alignValue=k.textAlign=c:k[a]=c;k.doTransform=!0};k.afterSetters=function(){this.doTransform&& (this.htmlUpdateTransform(),this.doTransform=!1)};k.attr({text:c,x:Math.round(e),y:Math.round(g)}).css({position:"absolute"});z.styledMode||k.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});m.style.whiteSpace="nowrap";k.css=k.htmlCss;p&&(k.add=function(c){var a=z.box.parentNode,e=[];if(this.parentGroup=c){var g=c.div;if(!g){for(;c;)e.push(c),c=c.parentGroup;e.reverse().forEach(function(d){function c(b,c){d[c]=b;"translateX"===c?n.left=b+"px":n.top=b+"px";d.doTransform=!0}var b= F(d.element,"class"),q=d.styles||{};g=d.div=d.div||I("div",b?{className:b}:void 0,{position:"absolute",left:(d.translateX||0)+"px",top:(d.translateY||0)+"px",display:d.display,opacity:d.opacity,cursor:q.cursor,pointerEvents:q.pointerEvents,visibility:d.visibility},g||a);var n=g.style;v(d,{classSetter:function(b){return function(d){this.element.setAttribute("class",d);b.className=d}}(g),on:function(){e[0].div&&k.on.apply({element:e[0].div,onEvents:d.onEvents},arguments);return d},translateXSetter:c, translateYSetter:c});d.addedSetters||J(d)})}}else g=a;g.appendChild(m);k.added=!0;k.alignOnAdd&&k.htmlUpdateTransform();return k});return k};e.composedClasses=[];return e}(A)});L(f,"Core/Axis/AxisDefaults.js",[],function(){var a;(function(a){a.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"}, week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1, reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};a.defaultYAxisOptions= {reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};a.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}}; a.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};a.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};a.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(a||(a={}));return a});L(f,"Core/Foundation.js",[f["Core/Utilities.js"]],function(a){var f=a.addEvent,A=a.isFunction,G=a.objectEach,y=a.removeEvent,F;(function(a){a.registerEventOptions=function(a,r){a.eventOptions=a.eventOptions||{};G(r.events,function(p,e){a.eventOptions[e]!== p&&(a.eventOptions[e]&&(y(a,e,a.eventOptions[e]),delete a.eventOptions[e]),A(p)&&(a.eventOptions[e]=p,f(a,e,p)))})}})(F||(F={}));return F});L(f,"Core/Axis/Tick.js",[f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(a,f,A){var B=f.deg2rad,y=A.clamp,F=A.correctFloat,I=A.defined,v=A.destroyObjectProperties,r=A.extend,p=A.fireEvent,e=A.isNumber,c=A.merge,k=A.objectEach,g=A.pick;f=function(){function f(c,a,e,g,k){this.isNewLabel=this.isNew=!0;this.axis=c;this.pos=a;this.type= e||"";this.parameters=k||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;p(this,"init");e||g||this.addLabel()}f.prototype.addLabel=function(){var c=this,k=c.axis,f=k.options,l=k.chart,D=k.categories,E=k.logarithmic,t=k.names,x=c.pos,d=g(c.options&&c.options.labels,f.labels),h=k.tickPositions,b=x===h[0],q=x===h[h.length-1],n=(!d.step||1===d.step)&&1===k.tickInterval;h=h.info;var u=c.label,K;D=this.parameters.category||(D?g(D[x],t[x],x):x);E&&e(D)&&(D=F(E.lin2log(D))); if(k.dateTime)if(h){var w=l.time.resolveDTLFormat(f.dateTimeLabelFormats[!f.grid&&h.higherRanks[x]||h.unitName]);var S=w.main}else e(D)&&(S=k.dateTime.getXDateFormat(D,f.dateTimeLabelFormats||{}));c.isFirst=b;c.isLast=q;var P={axis:k,chart:l,dateTimeLabelFormat:S,isFirst:b,isLast:q,pos:x,tick:c,tickPositionInfo:h,value:D};p(this,"labelFormat",P);var B=function(b){return d.formatter?d.formatter.call(b,b):d.format?(b.text=k.defaultLabelFormatter.call(b),a.format(d.format,b,l)):k.defaultLabelFormatter.call(b, b)};f=B.call(P,P);var V=w&&w.list;c.shortenLabel=V?function(){for(K=0;Kd&&k-h*bm&&(w=Math.round((f-k)/Math.cos(d* B)));else if(f=k+(1-h)*b,k-h*bm&&(u=m-c.x+u*h,l=-1),u=Math.min(q,u),uu||a.autoRotation&&(x.styles||{}).width)w=u;w&&(this.shortenLabel?this.shortenLabel():(n.width=Math.floor(w)+"px",(e.style||{}).textOverflow||(n.textOverflow="ellipsis"),x.css(n)))};f.prototype.moveLabel=function(c,a){var e=this,g=e.label,f=e.axis,m=f.reversed,t=!1;g&&g.textStr===c?(e.movedLabel=g,t=!0,delete e.label):k(f.ticks,function(d){t|| d.isNew||d===e||!d.label||d.label.textStr!==c||(e.movedLabel=d.label,t=!0,d.labelPos=e.movedLabel.xy,delete d.label)});if(!t&&(e.labelPos||g)){var x=e.labelPos||g.xy;g=f.horiz?m?0:f.width+f.left:x.x;f=f.horiz?x.y:m?f.width+f.left:0;e.movedLabel=e.createLabel({x:g,y:f},c,a);e.movedLabel&&e.movedLabel.attr({opacity:0})}};f.prototype.render=function(c,a,e){var k=this.axis,f=k.horiz,m=this.pos,t=g(this.tickmarkOffset,k.tickmarkOffset);m=this.getPosition(f,m,t,a);t=m.x;var x=m.y;k=f&&t===k.pos+k.len|| !f&&x===k.pos?-1:1;f=g(e,this.label&&this.label.newOpacity,1);e=g(e,1);this.isActive=!0;this.renderGridLine(a,e,k);this.renderMark(m,e,k);this.renderLabel(m,a,f,c);this.isNew=!1;p(this,"afterRender")};f.prototype.renderGridLine=function(c,a,e){var k=this.axis,f=k.options,m={},t=this.pos,x=this.type,d=g(this.tickmarkOffset,k.tickmarkOffset),h=k.chart.renderer,b=this.gridLine,q=f.gridLineWidth,n=f.gridLineColor,u=f.gridLineDashStyle;"minor"===this.type&&(q=f.minorGridLineWidth,n=f.minorGridLineColor, u=f.minorGridLineDashStyle);b||(k.chart.styledMode||(m.stroke=n,m["stroke-width"]=q||0,m.dashstyle=u),x||(m.zIndex=1),c&&(a=0),this.gridLine=b=h.path().attr(m).addClass("highcharts-"+(x?x+"-":"")+"grid-line").add(k.gridGroup));if(b&&(e=k.getPlotLinePath({value:t+d,lineWidth:b.strokeWidth()*e,force:"pass",old:c})))b[c||this.isNew?"attr":"animate"]({d:e,opacity:a})};f.prototype.renderMark=function(c,a,e){var k=this.axis,f=k.options,m=k.chart.renderer,t=this.type,x=k.tickSize(t?t+"Tick":"tick"),d=c.x; c=c.y;var h=g(f["minor"!==t?"tickWidth":"minorTickWidth"],!t&&k.isXAxis?1:0);f=f["minor"!==t?"tickColor":"minorTickColor"];var b=this.mark,q=!b;x&&(k.opposite&&(x[0]=-x[0]),b||(this.mark=b=m.path().addClass("highcharts-"+(t?t+"-":"")+"tick").add(k.axisGroup),k.chart.styledMode||b.attr({stroke:f,"stroke-width":h})),b[q?"attr":"animate"]({d:this.getMarkPath(d,c,x[0],b.strokeWidth()*e,k.horiz,m),opacity:a}))};f.prototype.renderLabel=function(c,a,k,f){var m=this.axis,l=m.horiz,t=m.options,x=this.label, d=t.labels,h=d.step;m=g(this.tickmarkOffset,m.tickmarkOffset);var b=c.x;c=c.y;var q=!0;x&&e(b)&&(x.xy=c=this.getLabelPosition(b,c,x,l,d,m,f,h),this.isFirst&&!this.isLast&&!t.showFirstLabel||this.isLast&&!this.isFirst&&!t.showLastLabel?q=!1:!l||d.step||d.rotation||a||0===k||this.handleOverflow(c),h&&f%h&&(q=!1),q&&e(c.y)?(c.opacity=k,x[this.isNewLabel?"attr":"animate"](c).show(!0),this.isNewLabel=!1):(x.hide(),this.isNewLabel=!0))};f.prototype.replaceMovedLabel=function(){var c=this.label,a=this.axis, e=a.reversed;if(c&&!this.isNew){var g=a.horiz?e?a.left:a.width+a.left:c.xy.x;e=a.horiz?c.xy.y:e?a.width+a.top:a.top;c.animate({x:g,y:e,opacity:0},void 0,c.destroy);delete this.label}a.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return f}();"";return f});L(f,"Core/Axis/Axis.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/AxisDefaults.js"],f["Core/Color/Color.js"],f["Core/DefaultOptions.js"],f["Core/Foundation.js"],f["Core/Globals.js"],f["Core/Axis/Tick.js"],f["Core/Utilities.js"]], function(a,f,A,G,y,F,I,v){var r=a.animObject,p=G.defaultOptions,e=y.registerEventOptions,c=F.deg2rad,k=v.arrayMax,g=v.arrayMin,l=v.clamp,m=v.correctFloat,z=v.defined,N=v.destroyObjectProperties,J=v.erase,D=v.error,E=v.extend,t=v.fireEvent,x=v.isArray,d=v.isNumber,h=v.isString,b=v.merge,q=v.normalizeTickInterval,n=v.objectEach,u=v.pick,K=v.relativeLength,w=v.removeEvent,S=v.splat,P=v.syncTimeout,B=function(b,d){return q(d,void 0,void 0,u(b.options.allowDecimals,.5>d||void 0!==b.tickAmount),!!b.tickAmount)}; a=function(){function a(b,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.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(b,d)}a.prototype.init=function(b,c){var a=c.isX;this.chart=b;this.horiz=b.inverted&&!this.isZAxis?!a:a;this.isXAxis=a;this.coll=this.coll||(a?"xAxis":"yAxis");t(this,"init",{userOptions:c});this.opposite=u(c.opposite, this.opposite);this.side=u(c.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(c);var h=this.options,g=h.labels,C=h.type;this.userOptions=c;this.minPixelPadding=0;this.reversed=u(h.reversed,this.reversed);this.visible=h.visible;this.zoomEnabled=h.zoomEnabled;this.hasNames="category"===C||!0===h.categories;this.categories=h.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic; this.isLinked=z(h.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=h.minRange||h.maxZoom;this.range=h.range;this.offset=h.offset||0;this.min=this.max=null;c=u(h.crosshair,S(b.options.tooltip.crosshairs)[a?0:1]);this.crosshair=!0===c?{}:c;-1===b.axes.indexOf(this)&&(a?b.axes.splice(b.xAxis.length,0,this):b.axes.push(this),b[this.coll].push(this));this.series=this.series||[];b.inverted&&!this.isZAxis&& a&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=d(g.rotation)?g.rotation:void 0;e(this,h);t(this,"afterInit")};a.prototype.setOptions=function(d){this.options=b(f.defaultXAxisOptions,"yAxis"===this.coll&&f.defaultYAxisOptions,[f.defaultTopAxisOptions,f.defaultRightAxisOptions,f.defaultBottomAxisOptions,f.defaultLeftAxisOptions][this.side],b(p[this.coll],d));t(this,"afterSetOptions",{userOptions:d})};a.prototype.defaultLabelFormatter=function(b){var c=this.axis;b=this.chart.numberFormatter; var a=d(this.value)?this.value:NaN,h=c.chart.time,e=this.dateTimeLabelFormat,g=p.lang,C=g.numericSymbols;g=g.numericSymbolMagnitude||1E3;var n=c.logarithmic?Math.abs(a):c.tickInterval,q=C&&C.length;if(c.categories)var k="".concat(this.value);else if(e)k=h.dateFormat(e,a);else if(q&&1E3<=n)for(;q--&&"undefined"===typeof k;)c=Math.pow(g,q+1),n>=c&&0===10*a%c&&null!==C[q]&&0!==a&&(k=b(a/c,-1)+C[q]);"undefined"===typeof k&&(k=1E4<=Math.abs(a)?b(a,-1):b(a,-1,void 0,""));return k};a.prototype.getSeriesExtremes= function(){var b=this,c=b.chart,a;t(this,"getSeriesExtremes",null,function(){b.hasVisibleSeries=!1;b.dataMin=b.dataMax=b.threshold=null;b.softThreshold=!b.isXAxis;b.stacking&&b.stacking.buildStacks();b.series.forEach(function(h){if(h.visible||!c.options.chart.ignoreHiddenSeries){var e=h.options,g=e.threshold;b.hasVisibleSeries=!0;b.positiveValuesOnly&&0>=g&&(g=null);if(b.isXAxis){if(e=h.xData,e.length){e=b.logarithmic?e.filter(b.validatePositiveValue):e;a=h.getXExtremes(e);var n=a.min;var C=a.max; d(n)||n instanceof Date||(e=e.filter(d),a=h.getXExtremes(e),n=a.min,C=a.max);e.length&&(b.dataMin=Math.min(u(b.dataMin,n),n),b.dataMax=Math.max(u(b.dataMax,C),C))}}else if(h=h.applyExtremes(),d(h.dataMin)&&(n=h.dataMin,b.dataMin=Math.min(u(b.dataMin,n),n)),d(h.dataMax)&&(C=h.dataMax,b.dataMax=Math.max(u(b.dataMax,C),C)),z(g)&&(b.threshold=g),!e.softThreshold||b.positiveValuesOnly)b.softThreshold=!1}})});t(this,"afterGetSeriesExtremes")};a.prototype.translate=function(b,c,a,h,e,g){var n=this.linkedParent|| this,C=h&&n.old?n.old.min:n.min;if(!d(C))return NaN;var q=n.minPixelPadding;e=(n.isOrdinal||n.brokenAxis&&n.brokenAxis.hasBreaks||n.logarithmic&&e)&&n.lin2val;var k=1,u=0;h=h&&n.old?n.old.transA:n.transA;h||(h=n.transA);a&&(k*=-1,u=n.len);n.reversed&&(k*=-1,u-=k*(n.sector||n.len));c?(g=(b*k+u-q)/h+C,e&&(g=n.lin2val(g))):(e&&(b=n.val2lin(b)),b=k*(b-C)*h,g=(n.isRadial?b:m(b))+u+k*q+(d(g)?h*g:0));return g};a.prototype.toPixels=function(b,d){return this.translate(b,!1,!this.horiz,void 0,!0)+(d?0:this.pos)}; a.prototype.toValue=function(b,d){return this.translate(b-(d?0:this.pos),!0,!this.horiz,void 0,!0)};a.prototype.getPlotLinePath=function(b){function c(b,d,c){if("pass"!==x&&bc)x?b=l(b,d,c):r=!0;return b}var a=this,h=a.chart,e=a.left,g=a.top,n=b.old,C=b.value,q=b.lineWidth,k=n&&h.oldChartHeight||h.chartHeight,f=n&&h.oldChartWidth||h.chartWidth,w=a.transB,m=b.translatedValue,x=b.force,K,p,z,E,r;b={value:C,lineWidth:q,old:n,force:x,acrossPanes:b.acrossPanes,translatedValue:m};t(this,"getPlotLinePath", b,function(b){m=u(m,a.translate(C,void 0,void 0,n));m=l(m,-1E5,1E5);K=z=Math.round(m+w);p=E=Math.round(k-m-w);d(m)?a.horiz?(p=g,E=k-a.bottom,K=z=c(K,e,e+a.width)):(K=e,z=f-a.right,p=E=c(p,g,g+a.height)):(r=!0,x=!1);b.path=r&&!x?null:h.renderer.crispLine([["M",K,p],["L",z,E]],q||1)});return b.path};a.prototype.getLinearTickPositions=function(b,d,c){var a=m(Math.floor(d/b)*b);c=m(Math.ceil(c/b)*b);var h=[],e;m(a+b)===a&&(e=20);if(this.single)return[d];for(d=a;d<=c;){h.push(d);d=m(d+b,e);if(d===g)break; var g=d}return h};a.prototype.getMinorTickInterval=function(){var b=this.options;return!0===b.minorTicks?u(b.minorTickInterval,"auto"):!1===b.minorTicks?null:b.minorTickInterval};a.prototype.getMinorTickPositions=function(){var b=this.options,d=this.tickPositions,c=this.minorTickInterval,a=this.pointRangePadding||0,h=this.min-a;a=this.max+a;var e=a-h,g=[];if(e&&e/c=this.minRange;var m=this.minRange;var x=(m-a+c)/2;x=[c-x,u(b.min,c-x)];t&&(x[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);c=k(x);a=[c+m,u(b.max,c+m)];t&&(a[2]=d?d.log2lin(this.dataMax):this.dataMax);a=g(a);a-c=w)p=w,C=0;else if(this.dataMax<=w){var E=w;f=0}this.min=u(l,p,this.dataMin);this.max=u(K,E,this.dataMax)}a&&(this.positiveValuesOnly&&!b&&0>=Math.min(this.min,u(this.dataMin,this.min))&&D(10,1,c),this.min=m(a.log2lin(this.min),16),this.max=m(a.log2lin(this.max),16));this.range&&z(this.max)&&(this.userMin=this.min=l=Math.max(this.dataMin,this.minFromRange()),this.userMax=K=this.max,this.range=null);t(this,"foundExtremes");this.beforePadding&&this.beforePadding(); this.adjustForMinRange();!(q||this.axisPointRange||this.stacking&&this.stacking.usePercentage||g)&&z(this.min)&&z(this.max)&&(c=this.max-this.min)&&(!z(l)&&C&&(this.min-=c*C),!z(K)&&f&&(this.max+=c*f));d(this.userMin)||(d(h.softMin)&&h.softMinthis.max&&(this.max=K=h.softMax),d(h.ceiling)&&(this.max=Math.min(this.max,h.ceiling)));k&&z(this.dataMin)&&(w=w||0,!z(l)&&this.min< w&&this.dataMin>=w?this.min=this.options.minRange?Math.min(w,this.max-this.minRange):w:!z(K)&&this.max>w&&this.dataMax<=w&&(this.max=this.options.minRange?Math.max(w,this.min+this.minRange):w));d(this.min)&&d(this.max)&&!this.chart.polar&&this.min>this.max&&(z(this.options.min)?this.max=this.min:z(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:g&&this.linkedParent&&!x&&n===this.linkedParent.options.tickPixelInterval? x=this.linkedParent.tickInterval:u(x,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,q?1:(this.max-this.min)*n/Math.max(this.len,n));if(e&&!b){var r=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(b){b.forceCrop=b.forceCropping&&b.forceCropping();b.processData(r)});t(this,"postProcessData",{hasExtemesChanged:r})}this.setAxisTranslation();t(this,"initialAxisTranslation");this.pointRange&&!x&&(this.tickInterval=Math.max(this.pointRange, this.tickInterval));b=u(h.minTickInterval,this.dateTime&&!this.series.some(function(b){return b.noSharedTooltip})?this.closestPointRange:0);!x&&this.tickIntervalMath.max(2*this.len, 200)))if(this.dateTime)c=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,b.units),this.min,this.max,b.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)c=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var g=b=this.tickInterval;g<=2*b;)if(c=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&c.length>this.tickAmount)this.tickInterval=B(this,g*=1.1);else break; else c=[this.min,this.max],D(19,!1,this.chart);c.length>this.len&&(c=[c[0],c.pop()],c[0]===c[1]&&(c.length=1));this.tickPositions=c;h&&(h=h.apply(this,[this.min,this.max]))&&(this.tickPositions=c=h)}this.paddedTicks=c.slice(0);this.trimTicks(c,e,a);this.isLinked||(this.single&&2>c.length&&!this.categories&&!this.series.some(function(b){return b.is("heatmap")&&"between"===b.options.pointPlacement})&&(this.min-=.5,this.max+=.5),d||h||this.adjustTickAmount());t(this,"afterSetTickPositions")};a.prototype.trimTicks= function(b,d,c){var a=b[0],h=b[b.length-1],e=!this.isOrdinal&&this.minPointOffset||0;t(this,"trimTicks");if(!this.isLinked){if(d&&-Infinity!==a)this.min=a;else for(;this.min-e>b[0];)b.shift();if(c)this.max=h;else for(;this.max+ec&&(this.finalTickAmt=c,c=5);this.tickAmount=c};a.prototype.adjustTickAmount=function(){var b=this,c=b.finalTickAmt,a=b.max,h=b.min,e=b.options,g=b.tickPositions,n=b.tickAmount,q=b.thresholdAlignment,k=g&&g.length,f=u(b.threshold,b.softThreshold?0:null);var t=b.tickInterval;if(d(q)){var x=.5>q?Math.ceil(q*(n-1)):Math.floor(q*(n-1));e.reversed&&(x=n-1-x)}if(b.hasData()&&d(h)&&d(a)){q=function(){b.transA*=(k-1)/(n-1);b.min=e.startOnTick? g[0]:Math.min(h,g[0]);b.max=e.endOnTick?g[g.length-1]:Math.max(a,g[g.length-1])};if(d(x)&&d(b.threshold)){for(;g[x]!==f||g.length!==n||g[0]>h||g[g.length-1]b.threshold?g.unshift(m(g[0]-t)):g.push(m(g[g.length-1]+t));if(t>8*b.tickInterval)break;t*=2}q()}else if(k=c&&0n&&(d=n)),z(h)&&(en&&(e=n))),c.displayBtn="undefined"!==typeof d||"undefined"!==typeof e,c.setExtremes(d,e,!1,void 0,{trigger:"zoom"});b.zoomed=!0});return b.zoomed};a.prototype.setAxisSize=function(){var b=this.chart,d=this.options,c=d.offsets||[0,0,0,0],a=this.horiz,h= this.width=Math.round(K(u(d.width,b.plotWidth-c[3]+c[1]),b.plotWidth)),e=this.height=Math.round(K(u(d.height,b.plotHeight-c[0]+c[2]),b.plotHeight)),g=this.top=Math.round(K(u(d.top,b.plotTop+c[0]),b.plotHeight,b.plotTop));d=this.left=Math.round(K(u(d.left,b.plotLeft+c[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-e-g;this.right=b.chartWidth-h-d;this.len=Math.max(a?h:e,0);this.pos=a?d:g};a.prototype.getExtremes=function(){var b=this.logarithmic;return{min:b?m(b.lin2log(this.min)):this.min, max:b?m(b.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a.prototype.getThreshold=function(b){var d=this.logarithmic,c=d?d.lin2log(this.min):this.min;d=d?d.lin2log(this.max):this.max;null===b||-Infinity===b?b=c:Infinity===b?b=d:c>b?b=c:dd?b.align="right": 195d&&(b.align="left")});return b.align};a.prototype.tickSize=function(b){var d=this.options,c=u(d["tick"===b?"tickWidth":"minorTickWidth"],"tick"===b&&this.isXAxis&&!this.categories?1:0),a=d["tick"===b?"tickLength":"minorTickLength"];if(c&&a){"inside"===d[b+"Position"]&&(a=-a);var h=[a,c]}b={tickSize:h};t(this,"afterTickSize",b);return b.tickSize};a.prototype.labelMetrics=function(){var b=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize, this.ticks[b]&&this.ticks[b].label)};a.prototype.unsquish=function(){var b=this.options.labels,a=this.horiz,h=this.tickInterval,e=this.len/(((this.categories?1:0)+this.max-this.min)/h),g=b.rotation,n=this.labelMetrics(),q=Math.max(this.max-this.min,0),k=function(b){var d=b/(e||1);d=1q&&Infinity!==b&&Infinity!==e&&q&&(d=Math.ceil(q/h));return m(d*h)},f=h,t,x,w=Number.MAX_VALUE;if(a){if(!b.staggerLines&&!b.step)if(d(g))var l=[g];else e=b){x=k(Math.abs(n.h/Math.sin(c*b)));var d=x+Math.abs(b/360);dh.step)return h.rotation?0:(this.staggerLines||1)*this.len/e;if(!a){b=h.style.width; if(void 0!==b)return parseInt(String(b),10);if(g)return g-c.spacing[3]}return.33*c.chartWidth};a.prototype.renderUnsquish=function(){var b=this.chart,d=b.renderer,c=this.tickPositions,a=this.ticks,e=this.options.labels,g=e.style,n=this.horiz,q=this.getSlotWidth(),k=Math.max(1,Math.round(q-2*e.padding)),u={},f=this.labelMetrics(),t=g.textOverflow,x=0;h(e.rotation)||(u.rotation=e.rotation||0);c.forEach(function(b){b=a[b];b.movedLabel&&b.replaceMovedLabel();b&&b.label&&b.label.textPxLength>x&&(x=b.label.textPxLength)}); this.maxLabelLength=x;if(this.autoRotation)x>k&&x>f.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(q){var w=k;if(!t){var m="clip";for(k=c.length;!n&&k--;){var l=c[k];if(l=a[l].label)l.styles&&"ellipsis"===l.styles.textOverflow?l.css({textOverflow:"clip"}):l.textPxLength>q&&l.css({width:q+"px"}),l.getBBox().height>this.len/c.length-(f.h-f.f)&&(l.specificTextOverflow="ellipsis")}}}u.rotation&&(w=x>.5*b.chartHeight?.33*b.chartHeight:x,t||(m="ellipsis"));if(this.labelAlign=e.align||this.autoLabelAlign(this.labelRotation))u.align= this.labelAlign;c.forEach(function(b){var d=(b=a[b])&&b.label,c=g.width,h={};d&&(d.attr(u),b.shortenLabel?b.shortenLabel():w&&!c&&"nowrap"!==g.whiteSpace&&(w=this.min&&b<=this.max||this.grid&&this.grid.isColumn)a[b]||(a[b]=new I(this,b)),c&&a[b].isNew&&a[b].render(d, !0,-1),a[b].render(d)};a.prototype.render=function(){var b=this,c=b.chart,a=b.logarithmic,h=b.options,e=b.isLinked,g=b.tickPositions,q=b.axisTitle,k=b.ticks,u=b.minorTicks,f=b.alternateBands,x=h.stackLabels,l=h.alternateGridColor,w=b.tickmarkOffset,m=b.axisLine,K=b.showAxis,p=r(c.renderer.globalAnimation),z,E;b.labelEdge.length=0;b.overlap=!1;[k,u,f].forEach(function(b){n(b,function(b){b.isActive=!1})});if(b.hasData()||e){var D=b.chart.hasRendered&&b.old&&d(b.old.min);b.minorTickInterval&&!b.categories&& b.getMinorTickPositions().forEach(function(d){b.renderMinorTick(d,D)});g.length&&(g.forEach(function(d,c){b.renderTick(d,c,D)}),w&&(0===b.min||b.single)&&(k[-1]||(k[-1]=new I(b,-1,null,!0)),k[-1].render(-1)));l&&g.forEach(function(d,h){E="undefined"!==typeof g[h+1]?g[h+1]+w:b.max-w;0===h%2&&da&&(!f||l<=e)&&"undefined"!==typeof l&&p.push(l);l>e&&(t=!0);l=d}}}else a=this.lin2log(a),e=this.lin2log(e),c=f?g.getMinorTickInterval():l.tickInterval, c=G("auto"===c?null:c,this.minorAutoInterval,l.tickPixelInterval/(f?5:1)*(e-a)/((f?k/g.tickPositions.length:k)||1)),c=A(c),p=g.getLinearTickPositions(c,a,e).map(this.log2lin),f||(this.minorAutoInterval=c/5);f||(g.tickInterval=c);return p};a.prototype.lin2log=function(c){return Math.pow(10,c)};a.prototype.log2lin=function(c){return Math.log(c)/Math.LN10};return a}();a.Additions=p})(y||(y={}));return y});L(f,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[f["Core/Utilities.js"]],function(a){var f= a.erase,A=a.extend,G=a.isNumber,y;(function(a){var B=[],v;a.compose=function(a,e){v||(v=a);-1===B.indexOf(e)&&(B.push(e),A(e.prototype,r.prototype));return e};var r=function(){function a(){}a.prototype.getPlotBandPath=function(a,c,k){void 0===k&&(k=this.options);var e=this.getPlotLinePath({value:c,force:!0,acrossPanes:k.acrossPanes}),f=[],m=this.horiz;c=!G(this.min)||!G(this.max)||athis.max&&c>this.max;a=this.getPlotLinePath({value:a,force:!0,acrossPanes:k.acrossPanes});k= 1;if(a&&e){if(c){var p=a.toString()===e.toString();k=0}for(c=0;cH-g?H:H-g); else if(w)e[b]=Math.max(q,n+g+c>d?n:n+g);else return!1},v=function(b,d,c,a,g){var n;gd-h?n=!1:e[b]=gd-a/2?d-a-2:g-c/2;return n},H=function(b){var d=l;l=p;p=d;E=b},T=function(){!1!==r.apply(0,l)?!1!==v.apply(0,p)||E||(H(!0),T()):E?e.x=e.y=0:(H(!0),T())};(a.inverted||1d})&&(d=d.map(function(d){var c=b(d.anchorX,d.anchorY,d.point.isHeader,d.boxWidth,!1);return g(d,{target:c.y, x:c.x})}));a.cleanSplit();v(d,F);var G=Q,aa=Q;d.forEach(function(b){var d=b.x,c=b.boxWidth;b=b.isHeader;b||(a.outside&&Q+daa&&(aa=Q+d))});d.forEach(function(b){var d=b.x,c=b.anchorX,h=b.pos,e=b.point.isHeader;h={visibility:"undefined"===typeof h?"hidden":"inherit",x:d,y:h+y,anchorX:c,anchorY:b.anchorY};if(a.outside&&db[0]?Math.max(Math.abs(b[0]),e.width- b[0]):Math.max(Math.abs(b[0]),e.width);a.height=0>b[1]?Math.max(Math.abs(b[1]),e.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),e.height);this.tracker?this.tracker.attr(a):(this.tracker=c.renderer.rect(a).addClass("highcharts-tracker").add(c),d.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};a.prototype.styledModeFormat=function(d){return d.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')}; a.prototype.tooltipFooterHeaderFormatter=function(d,c){var b=d.series,a=b.tooltipOptions,e=b.xAxis,h=e&&e.dateTime;e={isFooter:c,labelConfig:d};var g=a.xDateFormat,f=a[c?"footerFormat":"headerFormat"];l(this,"headerFormatter",e,function(c){h&&!g&&z(d.key)&&(g=h.getXDateFormat(d.key,a.dateTimeLabelFormats));h&&g&&(d.point&&d.point.tooltipDateKeys||["key"]).forEach(function(b){f=f.replace("{point."+b+"}","{point."+b+":"+g+"}")});b.chart.styledMode&&(f=this.styledModeFormat(f));c.text=B(f,{point:d,series:b}, this.chart)});return e.text};a.prototype.update=function(d){this.destroy();J(!0,this.chart.options.tooltip.userOptions,d);this.init(this.chart,J(!0,this.options,d))};a.prototype.updatePosition=function(d){var c=this.chart,b=this.options,a=c.pointer,g=this.getLabel();a=a.getChartPosition();var f=(b.positioner||this.getPosition).call(this,g.width,g.height,d),k=d.plotX+c.plotLeft;d=d.plotY+c.plotTop;if(this.outside){b=b.borderWidth+2*this.distance;this.renderer.setSize(g.width+b,g.height+b,!1);if(1!== a.scaleX||1!==a.scaleY)e(this.container,{transform:"scale(".concat(a.scaleX,", ").concat(a.scaleY,")")}),k*=a.scaleX,d*=a.scaleY;k+=a.left-f.x;d+=a.top-f.y}this.move(Math.round(f.x),Math.round(f.y||0),k,d)};return a}();"";return a});L(f,"Core/Series/Point.js",[f["Core/Renderer/HTML/AST.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/DefaultOptions.js"],f["Core/FormatUtilities.js"],f["Core/Utilities.js"]],function(a,f,A,G,y){var B=f.animObject,I=A.defaultOptions,v=G.format,r=y.addEvent,p=y.defined, e=y.erase,c=y.extend,k=y.fireEvent,g=y.getNestedProperty,l=y.isArray,m=y.isFunction,z=y.isNumber,N=y.isObject,J=y.merge,D=y.objectEach,E=y.pick,t=y.syncTimeout,x=y.removeEvent,d=y.uniqueKey;f=function(){function h(){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.shapeArgs=this.series=void 0;this.visible=!0;this.x=void 0}h.prototype.animateBeforeDestroy=function(){var b=this, d={x:b.startXPos,opacity:0},a=b.getGraphicalProps();a.singular.forEach(function(c){b[c]=b[c].animate("dataLabel"===c?{x:b[c].startXPos,y:b[c].startYPos,opacity:0}:d)});a.plural.forEach(function(d){b[d].forEach(function(d){d.element&&d.animate(c({x:b.startXPos},d.startYPos?{x:d.startXPos,y:d.startYPos}:{}))})})};h.prototype.applyOptions=function(b,d){var a=this.series,e=a.options.pointValKey||a.pointValKey;b=h.prototype.optionsToObject.call(this,b);c(this,b);this.options=this.options?c(this.options, b):b;b.group&&delete this.group;b.dataLabels&&delete this.dataLabels;e&&(this.y=h.prototype.getNestedProperty.call(this,e));this.formatPrefix=(this.isNull=E(this.isValid&&!this.isValid(),null===this.x||!z(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof d&&a.xAxis&&a.xAxis.hasNames&&(this.x=a.xAxis.nameToX(this));"undefined"===typeof this.x&&a?this.x="undefined"===typeof d?a.autoIncrement():d:z(b.x)&&a.options.relativeXValue&&(this.x=a.autoIncrement(b.x)); return this};h.prototype.destroy=function(){function b(){if(d.graphic||d.dataLabel||d.dataLabels)x(d),d.destroyElements();for(f in d)d[f]=null}var d=this,c=d.series,a=c.chart;c=c.options.dataSorting;var h=a.hoverPoints,g=B(d.series.chart.renderer.globalAnimation),f;d.legendItem&&a.legend.destroyItem(d);h&&(d.setState(),e(h,d),h.length||(a.hoverPoints=null));if(d===a.hoverPoint)d.onMouseOut();c&&c.enabled?(this.animateBeforeDestroy(),t(b,g.duration)):b();a.pointCount--};h.prototype.destroyElements= function(b){var d=this;b=d.getGraphicalProps(b);b.singular.forEach(function(b){d[b]=d[b].destroy()});b.plural.forEach(function(b){d[b].forEach(function(b){b.element&&b.destroy()});delete d[b]})};h.prototype.firePointEvent=function(b,d,c){var a=this,e=this.series.options;(e.point.events[b]||a.options&&a.options.events&&a.options.events[b])&&a.importEvents();"click"===b&&e.allowPointSelect&&(c=function(b){a.select&&a.select(null,b.ctrlKey||b.metaKey||b.shiftKey)});k(a,b,d,c)};h.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",""):"")};h.prototype.getGraphicalProps=function(b){var d=this,c=[],a={singular:[],plural:[]},e;b=b||{graphic:1,dataLabel:1}; b.graphic&&c.push("graphic","upperGraphic","shadowGroup");b.dataLabel&&c.push("dataLabel","dataLabelPath","dataLabelUpper","connector");for(e=c.length;e--;){var h=c[e];d[h]&&a.singular.push(h)}["dataLabel","connector"].forEach(function(c){var e=c+"s";b[c]&&d[e]&&a.plural.push(e)});return a};h.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}};h.prototype.getNestedProperty=function(b){if(b)return 0===b.indexOf("custom.")?g(b,this.options):this[b]};h.prototype.getZone=function(){var b=this.series,d=b.zones;b=b.zoneAxis||"y";var c,a=0;for(c=d[a];this[b]>=c.value;)c=d[++a];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=c&&c.color&&!this.options.color?c.color:this.nonZonedColor;return c};h.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!== this.shapeType};h.prototype.init=function(b,c,a){this.series=b;this.applyOptions(c,a);this.id=p(this.id)?this.id:d();this.resolveColor();b.chart.pointCount++;k(this,"afterInit");return this};h.prototype.optionsToObject=function(b){var d=this.series,c=d.options.keys,a=c||d.pointArrayMap||["y"],e=a.length,g={},f=0,k=0;if(z(b)||null===b)g[a[0]]=b;else if(l(b))for(!c&&b.length>e&&(d=typeof b[0],"string"===d?g.name=b[0]:"number"===d&&(g.x=b[0]),f++);kg+k&&(D=g+k),Cf+t&&(C=f+t),this.hasDragged=Math.sqrt(Math.pow(l-D,2)+Math.pow(p-C,2)),10b.options.findNearestPointBy.indexOf("y");b=b.searchPoint(d,c);if((c=m(b,!0)&&b.series)&&!(c=!m(g,!0))){c=g.distX-b.distX;var e=g.dist-b.dist,h=(b.series.group&&b.series.group.zIndex)-(g.series.group&&g.series.group.zIndex);c=0<(0!==c&&a?c:0!==e?e:0!==h?h:g.series.index>b.series.index?-1:1)}c&&(g=b)});return g};a.prototype.getChartCoordinatesFromPoint= function(c,a){var d=c.series,e=d.xAxis;d=d.yAxis;var b=c.shapeArgs;if(e&&d){var g=J(c.clientX,c.plotX),f=c.plotY||0;c.isNode&&b&&l(b.x)&&l(b.y)&&(g=b.x,f=b.y);return a?{chartX:d.len+d.pos-f,chartY:e.len+e.pos-g}:{chartX:g+e.pos,chartY:f+d.pos}}if(b&&b.x&&b.y)return{chartX:b.x,chartY:b.y}};a.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var c=this.chart.container,a=N(c);this.chartPosition={left:a.left,top:a.top,scaleX:1,scaleY:1};var d=c.offsetWidth;c=c.offsetHeight; 2p.max&&(d=p.max-D,U=!0);U?(O-=.8*(O-f[n][0]),"number"===typeof E&&(E-=.8*(E-f[n][1])),a()):f[n]=[O,E];t||(g[n]=H-l,g[m]=D);g=t?1/T:T;b[m]=D;b[n]=d;e[t?c?"scaleY":"scaleX":"scale"+q]=T;e["translate"+q]=g*l+(O-g*r)};a.prototype.reset=function(c,a){var d=this.chart,e=d.hoverSeries,b=d.hoverPoint,g=d.hoverPoints,f=d.tooltip,k=f&&f.shared?g:b;c&&k&&D(k).forEach(function(b){b.series.isCartesian&& "undefined"===typeof b.plotX&&(c=!1)});if(c)f&&k&&D(k).length&&(f.refresh(k),f.shared&&g?g.forEach(function(b){b.setState(b.state,!0);b.series.isCartesian&&(b.series.xAxis.crosshair&&b.series.xAxis.drawCrosshair(null,b),b.series.yAxis.crosshair&&b.series.yAxis.drawCrosshair(null,b))}):b&&(b.setState(b.state,!0),d.axes.forEach(function(c){c.crosshair&&b.series[c.coll]===c&&c.drawCrosshair(null,b)})));else{if(b)b.onMouseOut();g&&g.forEach(function(b){b.setState()});if(e)e.onMouseOut();f&&f.hide(a); this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());d.axes.forEach(function(b){b.hideCrosshair()});this.hoverX=d.hoverPoints=d.hoverPoint=null}};a.prototype.runPointActions=function(c,e){var d=this.chart,h=d.tooltip&&d.tooltip.options.enabled?d.tooltip:void 0,b=h?h.shared:!1,g=e||d.hoverPoint,f=g&&g.series||d.hoverSeries;e=this.getHoverData(g,f,d.series,(!c||"touchmove"!==c.type)&&(!!e||f&&f.directTouch&&this.isDirectTouch),b,c);g=e.hoverPoint;f=e.hoverSeries;var u=e.hoverPoints;e=f&& f.tooltipOptions.followPointer&&!f.tooltipOptions.split;var m=b&&f&&!f.noSharedTooltip;if(g&&(g!==d.hoverPoint||h&&h.isHidden)){(d.hoverPoints||[]).forEach(function(b){-1===u.indexOf(b)&&b.setState()});if(d.hoverSeries!==f)f.onMouseOver();this.applyInactiveState(u);(u||[]).forEach(function(b){b.setState("hover")});d.hoverPoint&&d.hoverPoint.firePointEvent("mouseOut");if(!g.series)return;d.hoverPoints=u;d.hoverPoint=g;g.firePointEvent("mouseOver",void 0,function(){h&&g&&h.refresh(m?u:g,c)})}else e&& h&&!h.isHidden&&(b=h.getAnchor([{}],c),d.isInsidePlot(b[0],b[1],{visiblePlotOnly:!0})&&h.updatePosition({plotX:b[0],plotY:b[1]}));this.unDocMouseMove||(this.unDocMouseMove=v(d.container.ownerDocument,"mousemove",function(b){var c=F[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}),this.eventsToUnbind.push(this.unDocMouseMove));d.axes.forEach(function(b){var a=J((b.crosshair||{}).snap,!0),e;a&&((e=d.hoverPoint)&&e.series[b.coll]===b||(e=k(u,function(c){return c.series&&c.series[b.coll]=== b})));e||!a?b.drawCrosshair(c,e):b.hideCrosshair()})};a.prototype.scaleGroups=function(c,a){var d=this.chart;d.series.forEach(function(e){var b=c||e.getPlotBox();e.group&&(e.xAxis&&e.xAxis.zoomEnabled||d.mapView)&&(e.group.attr(b),e.markerGroup&&(e.markerGroup.attr(b),e.markerGroup.clip(a?d.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(b))});d.clipRect.attr(a||d.clipBox)};a.prototype.setDOMEvents=function(){var c=this,e=this.chart.container,d=e.ownerDocument;e.onmousedown=this.onContainerMouseDown.bind(this); e.onmousemove=this.onContainerMouseMove.bind(this);e.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(v(e,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(v(e,"mouseleave",this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=v(d,"mouseup",this.onDocumentMouseUp.bind(this)));for(var h=this.chart.renderTo.parentElement;h&&"BODY"!==h.tagName;)this.eventsToUnbind.push(v(h,"scroll",function(){delete c.chartPosition})),h= h.parentElement;f.hasTouch&&(this.eventsToUnbind.push(v(e,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(v(e,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=v(d,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=function(){var c=this.chart,e=f.charts[J(a.hoverChartIndex,-1)];if(e&&e!==c)e.pointer.onContainerMouseLeave({relatedTarget:c.container}); e&&e.mouseIsDown||(a.hoverChartIndex=c.index)};a.prototype.touch=function(c,a){var d=this.chart,e;this.setHoverChartIndex();if(1===c.touches.length)if(c=this.normalize(c),(e=d.isInsidePlot(c.chartX-d.plotLeft,c.chartY-d.plotTop,{visiblePlotOnly:!0}))&&!d.openMenu){a&&this.runPointActions(c);if("touchmove"===c.type){a=this.pinchDown;var b=a[0]?4<=Math.sqrt(Math.pow(a[0].chartX-c.chartX,2)+Math.pow(a[0].chartY-c.chartY,2)):!1}J(b,!0)&&this.pinch(c)}else a&&this.reset();else 2===c.touches.length&&this.pinch(c)}; a.prototype.touchSelect=function(c){return!(!this.chart.options.chart.zooming.singleTouch||!c.touches||1!==c.touches.length)};a.prototype.zoomOption=function(c){var a=this.chart,d=a.options.chart;a=a.inverted;var e=d.zooming.type||"";/touch/.test(c.type)&&(e=J(d.zooming.pinchType,e));this.zoomX=c=/x/.test(e);this.zoomY=d=/y/.test(e);this.zoomHor=c&&!a||d&&a;this.zoomVert=d&&!a||c&&a;this.hasZoom=c||d};return a}();"";return a});L(f,"Core/MSPointer.js",[f["Core/Globals.js"],f["Core/Pointer.js"],f["Core/Utilities.js"]], function(a,f,A){function B(){var c=[];c.item=function(c){return this[c]};k(l,function(a){c.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return c}function y(c,a,e,g){var k=I[f.hoverChartIndex||NaN];"touch"!==c.pointerType&&c.pointerType!==c.MSPOINTER_TYPE_TOUCH||!k||(k=k.pointer,g(c),k[a]({type:e,target:c.currentTarget,preventDefault:r,touches:B()}))}var F=this&&this.__extends||function(){var c=function(a,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__= a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return c(a,e)};return function(a,e){function g(){this.constructor=a}c(a,e);a.prototype=null===e?Object.create(e):(g.prototype=e.prototype,new g)}}(),I=a.charts,v=a.doc,r=a.noop,p=a.win,e=A.addEvent,c=A.css,k=A.objectEach,g=A.removeEvent,l={},m=!!p.PointerEvent;return function(f){function k(){return null!==f&&f.apply(this,arguments)||this}F(k,f);k.isRequired=function(){return!(a.hasTouch||!p.PointerEvent&&!p.MSPointerEvent)};k.prototype.batchMSEvents= function(c){c(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown);c(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove);c(v,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};k.prototype.destroy=function(){this.batchMSEvents(g);f.prototype.destroy.call(this)};k.prototype.init=function(a,e){f.prototype.init.call(this,a,e);this.hasZoom&&c(a.container,{"-ms-touch-action":"none","touch-action":"none"})};k.prototype.onContainerPointerDown= function(c){y(c,"onContainerTouchStart","touchstart",function(c){l[c.pointerId]={pageX:c.pageX,pageY:c.pageY,target:c.currentTarget}})};k.prototype.onContainerPointerMove=function(c){y(c,"onContainerTouchMove","touchmove",function(c){l[c.pointerId]={pageX:c.pageX,pageY:c.pageY};l[c.pointerId].target||(l[c.pointerId].target=c.currentTarget)})};k.prototype.onDocumentPointerUp=function(c){y(c,"onDocumentTouchEnd","touchend",function(c){delete l[c.pointerId]})};k.prototype.setDOMEvents=function(){f.prototype.setDOMEvents.call(this); (this.hasZoom||this.followTouchMove)&&this.batchMSEvents(e)};return k}(f)});L(f,"Core/Legend/Legend.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Core/Series/Point.js"],f["Core/Renderer/RendererUtilities.js"],f["Core/Utilities.js"]],function(a,f,A,G,y,F){var B=a.animObject,v=a.setAnimation,r=f.format;a=A.isFirefox;var p=A.marginNames;A=A.win;var e=y.distribute,c=F.addEvent,k=F.createElement,g=F.css,l=F.defined,m=F.discardElement,z=F.find,N=F.fireEvent, J=F.isNumber,D=F.merge,E=F.pick,t=F.relativeLength,x=F.stableSort,d=F.syncTimeout;y=F.wrap;F=function(){function a(b,c){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options=void 0;this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup= void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=b;this.init(b,c)}a.prototype.init=function(b,a){this.chart=b;this.setOptions(a);a.enabled&&(this.render(),c(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=c(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};a.prototype.setOptions=function(b){var c=E(b.padding, 8);this.options=b;this.chart.styledMode||(this.itemStyle=b.itemStyle,this.itemHiddenStyle=D(this.itemStyle,b.itemHiddenStyle));this.itemMarginTop=b.itemMarginTop||0;this.itemMarginBottom=b.itemMarginBottom||0;this.padding=c;this.initialItemY=c-5;this.symbolWidth=E(b.symbolWidth,16);this.pages=[];this.proximate="proximate"===b.layout&&!this.chart.inverted;this.baseline=void 0};a.prototype.update=function(b,c){var a=this.chart;this.setOptions(D(!0,this.options,b));this.destroy();a.isDirtyLegend=a.isDirtyBox= !0;E(c,!0)&&a.redraw();N(this,"afterUpdate")};a.prototype.colorizeItem=function(b,c){b.legendGroup[c?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var a=this.options,d=b.legendItem,e=b.legendLine,g=b.legendSymbol,h=this.itemHiddenStyle.color;a=c?a.itemStyle.color:h;var f=c?b.color||h:h,k=b.options&&b.options.marker,q={fill:f};d&&d.css({fill:a,color:a});e&&e.attr({stroke:f});g&&(k&&g.isMarker&&(q=b.pointAttribs(),c||(q.stroke=q.fill=h)),g.attr(q))}N(this,"afterColorizeItem", {item:b,visible:c})};a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};a.prototype.positionItem=function(b){var c=this,a=this.options,d=a.symbolPadding,e=!a.rtl,g=b._legendItemPos;a=g[0];g=g[1];var h=b.checkbox,f=b.legendGroup;f&&f.element&&(d={translateX:e?a:this.legendWidth-a-2*d-4,translateY:g},e=function(){N(c,"afterPositionItem",{item:b})},l(f.translateY)?f.animate(d,void 0,e):(f.attr(d),e()));h&&(h.x=a,h.y=g)}; a.prototype.destroyItem=function(b){var c=b.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(c){b[c]&&(b[c]=b[c].destroy())});c&&m(b.checkbox)};a.prototype.destroy=function(){function b(b){this[b]&&(this[b]=this[b].destroy())}this.getAllItems().forEach(function(c){["legendItem","legendGroup"].forEach(b,c)});"clipRect up down pager nav box title group".split(" ").forEach(b,this);this.display=null};a.prototype.positionCheckboxes=function(){var b=this.group&&this.group.alignAttr, c=this.clipHeight||this.legendHeight,a=this.titleHeight;if(b){var d=b.translateY;this.allItems.forEach(function(e){var h=e.checkbox;if(h){var f=d+a+h.y+(this.scrollOffset||0)+3;g(h,{left:b.translateX+e.checkboxOffset+h.x-20+"px",top:f+"px",display:this.proximate||f>d-6&&f1.5*a?c.height:a))};a.prototype.layoutItem=function(b){var c=this.options,a=this.padding,d="horizontal"===c.layout,e=b.itemHeight,g=this.itemMarginBottom,h=this.itemMarginTop,f=d?E(c.itemDistance,20):0,k=this.maxLegendWidth;c=c.alignColumns&&this.totalItemWidth>k?this.maxItemWidth:b.itemWidth;d&&this.itemX-a+c>k&&(this.itemX=a,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+g),this.lastLineHeight=0);this.lastItemY=h+this.itemY+g;this.lastLineHeight= Math.max(e,this.lastLineHeight);b._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=c:(this.itemY+=h+e+g,this.lastLineHeight=e);this.offsetWidth=this.widthOption||Math.max((d?this.itemX-a-(b.checkbox?0:f):c)+a,this.offsetWidth)};a.prototype.getAllItems=function(){var b=[];this.chart.series.forEach(function(c){var a=c&&c.options;c&&E(a.showInLegend,l(a.linkedTo)?!1:void 0,!0)&&(b=b.concat(c.legendItems||("point"===a.legendType?c.data:c)))});N(this,"afterGetAllItems",{allItems:b});return b};a.prototype.getAlignment= function(){var b=this.options;return this.proximate?b.align.charAt(0)+"tv":b.floating?"":b.align.charAt(0)+b.verticalAlign.charAt(0)+b.layout.charAt(0)};a.prototype.adjustMargins=function(b,c){var a=this.chart,d=this.options,e=this.getAlignment();e&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(g,h){g.test(e)&&!l(b[h])&&(a[p[h]]=Math.max(a[p[h]],a.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*d[h%2?"x":"y"]+E(d.margin,12)+c[h]+(a.titleOffset[h]||0)))})}; a.prototype.proximatePositions=function(){var b=this.chart,c=[],a="left"===this.options.align;this.allItems.forEach(function(d){var e;var g=a;if(d.yAxis){d.xAxis.options.reversed&&(g=!g);d.points&&(e=z(g?d.points:d.points.slice(0).reverse(),function(b){return J(b.plotY)}));g=this.itemMarginTop+d.legendItem.getBBox().height+this.itemMarginBottom;var h=d.yAxis.top-b.plotTop;d.visible?(e=e?e.plotY:d.yAxis.height,e+=h-.3*g):e=h+d.yAxis.height;c.push({target:e,size:g,item:d})}},this);e(c,b.plotHeight).forEach(function(c){c.item._legendItemPos&& c.pos&&(c.item._legendItemPos[1]=b.plotTop-b.spacing[0]+c.pos)})};a.prototype.render=function(){var b=this.chart,c=b.renderer,a=this.options,d=this.padding,e=this.getAllItems(),g=this.group,h=this.box;this.itemX=d;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=t(a.width,b.spacingBox.width-d);var f=b.spacingBox.width-2*d-a.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(f/=2);this.maxLegendWidth=this.widthOption||f;g||(this.group=g=c.g("legend").addClass(a.className|| "").attr({zIndex:7}).add(),this.contentGroup=c.g().attr({zIndex:1}).add(g),this.scrollGroup=c.g().add(this.contentGroup));this.renderTitle();x(e,function(b,c){return(b.options&&b.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});a.reversed&&e.reverse();this.allItems=e;this.display=f=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;e.forEach(this.renderItem,this);e.forEach(this.layoutItem,this);e=(this.widthOption||this.offsetWidth)+d;var k=this.lastItemY+ this.lastLineHeight+this.titleHeight;k=this.handleOverflow(k);k+=d;h||(this.box=h=c.rect().addClass("highcharts-legend-box").attr({r:a.borderRadius}).add(g));b.styledMode||h.attr({stroke:a.borderColor,"stroke-width":a.borderWidth||0,fill:a.backgroundColor||"none"}).shadow(a.shadow);if(0g&&!1!==m.enabled?(this.clipHeight=H=Math.max(g-20-this.titleHeight-f,0),this.currentPage=E(this.currentPage,1),this.fullHeight=b,x.forEach(function(b,c){var a=b._legendItemPos[1],d=Math.round(b.legendItem.getBBox().height), e=p.length;if(!e||a-p[e-1]>H&&(T||a)!==p[e-1])p.push(T||a),e++;b.pageIx=e-1;T&&(x[c-1].pageIx=e-1);c===x.length-1&&a+d-p[e-1]>H&&d<=H&&(p.push(a),b.pageIx=e);a!==T&&(T=a)}),D||(D=c.clipRect=d.clipRect(0,f,9999,0),c.contentGroup.clip(D)),r(H),O||(this.nav=O=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,t,t).add(O),z("upTracker").on("click",function(){c.scroll(-1,l)}),this.pager=d.text("",15,10).addClass("highcharts-legend-navigation"),!a.styledMode&&m.style&&this.pager.css(m.style), this.pager.add(O),this.down=d.symbol("triangle-down",0,0,t,t).add(O),z("downTracker").on("click",function(){c.scroll(1,l)})),c.scroll(0),b=g):O&&(r(),this.nav=O.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return b};a.prototype.scroll=function(b,c){var a=this,e=this.chart,g=this.pages,h=g.length,f=this.clipHeight,k=this.options.navigation,m=this.pager,l=this.padding,q=this.currentPage+b;q>h&&(q=h);0=Math.max(k+g,l.pos)&&f<=Math.min(k+g+e.width,l.pos+l.len)||(b.isInsidePlot=!1)}!a.ignoreY&&b.isInsidePlot&&(d=m&&(d?m.xAxis:m.yAxis)||{pos:h,len:Infinity},a=a.paneCoordinates? d.pos+c:h+c,a>=Math.max(n+h,d.pos)&&a<=Math.min(n+h+e.height,d.pos+d.len)||(b.isInsidePlot=!1));R(this,"afterIsInsidePlot",b);return b.isInsidePlot};a.prototype.redraw=function(b){R(this,"beforeRedraw");var c=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,d=this.pointer,e=this.legend,g=this.userOptions.legend,h=this.renderer,f=h.isHidden(),k=[],n=this.isDirtyBox,m=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);B(this.hasRendered?b:!1,this);f&&this.temporaryDisplay(); this.layOutTitles();for(b=a.length;b--;){var l=a[b];if(l.options.stacking||l.options.centerInCategory){var H=!0;if(l.isDirty){var q=!0;break}}}if(q)for(b=a.length;b--;)l=a[b],l.options.stacking&&(l.isDirty=!0);a.forEach(function(b){b.isDirty&&("point"===b.options.legendType?("function"===typeof b.updateTotals&&b.updateTotals(),m=!0):g&&(g.labelFormatter||g.labelFormat)&&(m=!0));b.isDirtyData&&R(b,"updatedData")});m&&e&&e.options.enabled&&(e.render(),this.isDirtyLegend=!1);H&&this.getStacks();c.forEach(function(b){b.updateNames(); b.setScale()});this.getMargins();c.forEach(function(b){b.isDirty&&(n=!0)});c.forEach(function(b){var c=b.min+","+b.max;b.extKey!==c&&(b.extKey=c,k.push(function(){R(b,"afterSetExtremes",L(b.eventArgs,b.getExtremes()));delete b.eventArgs}));(n||H)&&b.redraw()});n&&this.drawChartBox();R(this,"predraw");a.forEach(function(b){(n||b.isDirty)&&b.visible&&b.redraw();b.isDirtyData=!1});d&&d.reset(!0);h.draw();R(this,"redraw");R(this,"render");f&&this.temporaryDisplay(!0);k.forEach(function(b){b.call()})}; a.prototype.get=function(b){function c(c){return c.id===b||c.options&&c.options.id===b}for(var a=this.series,d=ca(this.axes,c)||ca(this.series,c),e=0;!d&&e=f&&d<=k||n||!X(d))l=!0;a[n?"zoomX":"zoomY"]&&l&&(g=h.zoom(b.min,b.max),h.displayBtn&&(e=!0))});var h=c.resetZoomButton;e&&!h?c.showResetZoom():!e&&O(h)&&(c.resetZoomButton=h.destroy());g&&c.redraw(Q(c.options.chart.animation,b&&b.animation,100>c.pointCount))}; a.prototype.pan=function(b,c){var a=this,d=a.hoverPoints;c="object"===typeof c?c:{enabled:c,type:"x"};var e=a.options.chart;e&&e.panning&&(e.panning=c);var g=c.type,h;R(this,"pan",{originalEvent:b},function(){d&&d.forEach(function(b){b.setState()});var c=a.xAxis;"xy"===g?c=c.concat(a.yAxis):"y"===g&&(c=a.yAxis);var e={};c.forEach(function(c){if(c.options.panningEnabled&&!c.options.isInternal){var d=c.horiz,f=b[d?"chartX":"chartY"];d=d?"mouseDownX":"mouseDownY";var k=a[d],n=c.minPointOffset||0,l=c.reversed&& !a.inverted||!c.reversed&&a.inverted?-1:1,m=c.getExtremes(),H=c.toValue(k-f,!0)+n*l,q=c.toValue(k+c.len-f,!0)-(n*l||c.isXAxis&&c.pointRangePadding||0),u=q=l&&H<=q&&(c.setExtremes(k,H,!1,!1,{trigger:"pan"}),!a.resetZoomButton&&k!==l&&H!==q&&g.match("y")&&(a.showResetZoom(),c.displayBtn= !1),h=!0),e[d]=f)}});Y(e,function(b,c){a[c]=b});h&&a.redraw(!1);P(a.container,{cursor:"move"})})};return a}();L(a.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a.prototype.addAxis,[!0]],yAxis:[a.prototype.addAxis,[!1]],series:[a.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "), propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return a});L(f,"Core/Legend/LegendSymbol.js",[f["Core/Utilities.js"]],function(a){var f=a.merge,A=a.pick,G;(function(a){a.drawLineMarker=function(a){var B=this.options,v=a.symbolWidth,r=a.symbolHeight,p=r/2,e=this.chart.renderer,c=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var k={},g=B.marker;this.chart.styledMode||(k={"stroke-width":B.lineWidth|| 0},B.dashStyle&&(k.dashstyle=B.dashStyle));this.legendLine=e.path([["M",0,a],["L",v,a]]).addClass("highcharts-graph").attr(k).add(c);g&&!1!==g.enabled&&v&&(B=Math.min(A(g.radius,p),p),0===this.symbol.indexOf("url")&&(g=f(g,{width:r,height:r}),B=0),this.legendSymbol=v=e.symbol(this.symbol,v/2-B,a-B,2*B,2*B,g).addClass("highcharts-point").add(c),v.isMarker=!0)};a.drawRectangle=function(a,f){var v=a.symbolHeight,r=a.options.squareSymbol;f.legendSymbol=this.chart.renderer.rect(r?(a.symbolWidth-v)/2:0, a.baseline-v+1,r?v:a.symbolWidth,v,A(a.options.symbolRadius,v/2)).addClass("highcharts-point").attr({zIndex:3}).add(f.legendGroup)}})(G||(G={}));return G});L(f,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc", lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{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"}});L(f,"Core/Series/Series.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/DefaultOptions.js"],f["Core/Foundation.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Series/Point.js"],f["Core/Series/SeriesDefaults.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Utilities.js"]],function(a,f,A,G,y,F,I,v, r,p){var e=a.animObject,c=a.setAnimation,k=f.defaultOptions,g=A.registerEventOptions,l=G.hasTouch,m=G.svg,z=G.win,B=v.seriesTypes,J=p.addEvent,D=p.arrayMax,E=p.arrayMin,t=p.clamp,x=p.cleanRecursively,d=p.correctFloat,h=p.defined,b=p.erase,q=p.error,n=p.extend,u=p.find,K=p.fireEvent,w=p.getNestedProperty,S=p.isArray,P=p.isNumber,X=p.isString,V=p.merge,C=p.objectEach,M=p.pick,L=p.removeEvent,ca=p.splat,R=p.syncTimeout;a=function(){function a(){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}a.prototype.init=function(b,c){K(this,"init",{options:c});var a=this,d=b.series;this.eventsToUnbind=[];a.chart=b;a.options=a.setOptions(c);c=a.options;a.linkedSeries=[];a.bindAxes();n(a,{name:c.name,state:"",visible:!1!==c.visible,selected:!0===c.selected});g(this,c);var e=c.events;if(e&&e.click||c.point&&c.point.events&&c.point.events.click|| c.allowPointSelect)b.runTrackerClick=!0;a.getColor();a.getSymbol();a.parallelArrays.forEach(function(b){a[b+"Data"]||(a[b+"Data"]=[])});a.isCartesian&&(b.hasCartesianSeries=!0);var h;d.length&&(h=d[d.length-1]);a._i=M(h&&h._i,-1)+1;a.opacity=a.options.opacity;b.orderSeries(this.insert(d));c.dataSorting&&c.dataSorting.enabled?a.setDataSortingOptions():a.points||a.data||a.setData(c.data,!1);K(this,"afterInit")};a.prototype.is=function(b){return B[b]&&this instanceof B[b]};a.prototype.insert=function(b){var c= this.options.index,a;if(P(c)){for(a=b.length;a--;)if(c>=M(b[a].options.index,b[a]._i)){b.splice(a+1,0,this);break}-1===a&&b.unshift(this);a+=1}else b.push(this);return M(a,b.length-1)};a.prototype.bindAxes=function(){var b=this,c=b.options,a=b.chart,d;K(this,"bindAxes",null,function(){(b.axisTypes||[]).forEach(function(e){var g=0;a[e].forEach(function(a){d=a.options;if(c[e]===g&&!d.isInternal||"undefined"!==typeof c[e]&&c[e]===d.id||"undefined"===typeof c[e]&&0===d.index)b.insert(a.series),b[e]=a, a.isDirty=!0;d.isInternal||g++});b[e]||b.optionalAxis===e||q(18,!0,a)})});K(this,"afterBindAxes")};a.prototype.updateParallelArrays=function(b,c){var a=b.series,d=arguments,e=P(c)?function(d){var e="y"===d&&a.toYData?a.toYData(b):b[d];a[d+"Data"][c]=e}:function(b){Array.prototype[c].apply(a[b+"Data"],Array.prototype.slice.call(d,2))};a.parallelArrays.forEach(e)};a.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&& this.yData&&0=this.cropStart?k-this.cropStart:k);!f&&P(k)&&e[k]&&e[k].touched&&(k=void 0);return k};a.prototype.updateData=function(b,c){var a=this.options,d=a.dataSorting,e=this.points,g=[],f=this.requireSorting,k=b.length===e.length,n,l,m,q=!0;this.xIncrement=null;b.forEach(function(b,c){var l=h(b)&&this.pointClass.prototype.optionsToObject.call({series:this}, b)||{},q=l.x;if(l.id||P(q)){if(l=this.findPointIndex(l,m),-1===l||"undefined"===typeof l?g.push(b):e[l]&&b!==a.data[l]?(e[l].update(b,!1,null,!1),e[l].touched=!0,f&&(m=l+1)):e[l]&&(e[l].touched=!0),!k||c!==l||d&&d.enabled||this.hasDerivedData)n=!0}else g.push(b)},this);if(n)for(b=e.length;b--;)(l=e[b])&&!l.touched&&l.remove&&l.remove(!1,c);else!k||d&&d.enabled?q=!1:(b.forEach(function(b,c){b!==e[c].y&&e[c].update&&e[c].update(b,!1,null,!1)}),g.length=0);e.forEach(function(b){b&&(b.touched=!1)});if(!q)return!1; g.forEach(function(b){this.addPoint(b,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=D(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(b,c,a,d){void 0===c&&(c=!0);var e=this,g=e.points,h=g&&g.length||0,f=e.options,k=e.chart,n=f.dataSorting,l=e.xAxis,m=f.turboThreshold,p=this.xData,u=this.yData,t=e.pointArrayMap;t=t&&t.length;var H=f.keys,x,r=0,z=1,O=null;if(!k.options.chart.allowMutatingData){f.data&&delete e.options.data;e.userOptions.data&& delete e.userOptions.data;var w=V(!0,b)}b=w||b||[];w=b.length;n&&n.enabled&&(b=this.sortData(b));k.options.chart.allowMutatingData&&!1!==d&&w&&h&&!e.cropped&&!e.hasGroupedData&&e.visible&&!e.boosted&&(x=this.updateData(b,a));if(!x){e.xIncrement=null;e.colorCounter=0;this.parallelArrays.forEach(function(b){e[b+"Data"].length=0});if(m&&w>m)if(O=e.getFirstValidPoint(b),P(O))for(a=0;ab?1:0}).forEach(function(b, c){b.x=c},this);c.linkedSeries&&c.linkedSeries.forEach(function(c){var a=c.options,e=a.data;a.dataSorting&&a.dataSorting.enabled||!e||(e.forEach(function(a,g){e[g]=d(c,a);b[g]&&(e[g].x=b[g].x,e[g].index=g)}),c.setData(e,!1))});return b};a.prototype.getProcessedData=function(b){var c=this.xAxis,a=this.options,d=a.cropThreshold,e=b||this.getExtremesFromAll||a.getExtremesFromAll,g=this.isCartesian;b=c&&c.val2lin;a=!(!c||!c.logarithmic);var h=0,f=this.xData,k=this.yData,n=this.requireSorting;var l=!1; var m=f.length;if(c){l=c.getExtremes();var p=l.min;var u=l.max;l=!(!c.categories||c.names.length)}if(g&&this.sorted&&!e&&(!d||m>d||this.forceCrop))if(f[m-1]u)f=[],k=[];else if(this.yData&&(f[0]u)){var t=this.cropData(this.xData,this.yData,p,u);f=t.xData;k=t.yData;h=t.start;t=!0}for(d=f.length||1;--d;)if(c=a?b(f[d])-b(f[d-1]):f[d]-f[d-1],0c&&n&&!l&&(q(15,!1,this.chart),n=!1);return{xData:f,yData:k,cropped:t,cropStart:h,closestPointRange:H}}; a.prototype.processData=function(b){var c=this.xAxis;if(this.isCartesian&&!this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!b)return!1;b=this.getProcessedData();this.cropped=b.cropped;this.cropStart=b.cropStart;this.processedXData=b.xData;this.processedYData=b.yData;this.closestPointRange=this.basePointRange=b.closestPointRange;K(this,"afterProcessData")};a.prototype.cropData=function(b,c,a,d,e){var g=b.length,h,f=0,k=g;e=M(e,this.cropShoulder);for(h=0;h=a){f=Math.max(0,h-e);break}for(a= h;ad){k=a+e;break}return{xData:b.slice(f,k),yData:c.slice(f,k),start:f,end:k}};a.prototype.generatePoints=function(){var b=this.options,c=this.processedData||b.data,a=this.processedXData,d=this.processedYData,e=this.pointClass,g=a.length,h=this.cropStart||0,f=this.hasGroupedData,k=b.keys,l=[];b=b.dataGrouping&&b.dataGrouping.groupAll?h:0;var m,q,p=this.data;if(!p&&!f){var u=[];u.length=c.length;p=this.data=u}k&&f&&(this.options.keys=!1);for(q=0;q=k&&(e[f-h]||p)<=n;if(u&& p)if(u=q.length)for(;u--;)P(q[u])&&(g[l++]=q[u]);else g[l++]=q}b={activeYData:g,dataMin:E(g),dataMax:D(g)};K(this,"afterGetExtremes",{dataExtremes:b});return b};a.prototype.applyExtremes=function(){var b=this.getExtremes();this.dataMin=b.dataMin;this.dataMax=b.dataMax;return b};a.prototype.getFirstValidPoint=function(b){for(var c=b.length,a=0,d=null;null===d&&a=B&&(B=null),w.total=w.stackTotal=E.total,w.percentage=E.total&&w.y/E.total*100,w.stackY=v,this.irregularWidths||E.setOffset(this.pointXOffset||0,this.barW||0));w.yBottom=h(B)?t(f.translate(B,0,1,0,1),-1E5,1E5):null;this.dataModify&&(v= this.dataModify.modifyValue(v,x));w.plotY=void 0;P(v)&&(E=f.translate(v,!1,!0,!1,!0),"undefined"!==typeof E&&(w.plotY=t(E,-1E5,1E5)));w.isInside=this.isPointInside(w);w.clientX=m?d(a.translate(C,0,0,0,1,l)):r;w.negative=w[u]<(b[u+"Threshold"]||q||0);w.category=M(e&&e[w.x],w.x);if(!w.isNull&&!1!==w.visible){"undefined"!==typeof y&&(z=Math.min(z,Math.abs(r-y)));var y=r}w.zone=this.zones.length?w.getZone():void 0;!w.graphic&&this.group&&g&&(w.isNew=!0)}this.closestPointRangePx=z;K(this,"afterTranslate")}; a.prototype.getValidPoints=function(b,c,a){var d=this.chart;return(b||this.points||[]).filter(function(b){return c&&!d.isInsidePlot(b.plotX,b.plotY,{inverted:d.inverted})?!1:!1!==b.visible&&(a||!b.isNull)})};a.prototype.getClipBox=function(){var b=this.chart,c=this.xAxis,a=this.yAxis,d=V(b.clipBox);c&&c.len!==b.plotSizeX&&(d.width=c.len);a&&a.len!==b.plotSizeY&&(d.height=a.len);return d};a.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis|| 0)};a.prototype.setClip=function(){var b=this.chart,c=this.group,a=this.markerGroup,d=b.sharedClips;b=b.renderer;var e=this.getClipBox(),g=this.getSharedClipKey(),h=d[g];h?h.animate(e):d[g]=h=b.clipRect(e);c&&c.clip(!1===this.options.clip?void 0:h);a&&a.clip()};a.prototype.animate=function(b){var c=this.chart,a=this.group,d=this.markerGroup,g=c.inverted,h=e(this.options.animation),f=[this.getSharedClipKey(),h.duration,h.easing,h.defer].join(),k=c.sharedClips[f],n=c.sharedClips[f+"m"];if(b&&a)h=this.getClipBox(), k?k.attr("height",h.height):(h.width=0,g&&(h.x=c.plotHeight),k=c.renderer.clipRect(h),c.sharedClips[f]=k,n=c.renderer.clipRect({x:g?(c.plotSizeX||0)+99:-99,y:g?-c.plotLeft:-c.plotTop,width:99,height:g?c.chartWidth:c.chartHeight}),c.sharedClips[f+"m"]=n),a.clip(k),d&&d.clip(n);else if(k&&!k.hasClass("highcharts-animating")){c=this.getClipBox();var l=h.step;d&&d.element.childNodes.length&&(h.step=function(b,c){l&&l.apply(c,arguments);n&&n.element&&n.attr(c.prop,"width"===c.prop?b+99:b)});k.addClass("highcharts-animating").animate(c, h)}};a.prototype.afterAnimate=function(){var b=this;this.setClip();C(this.chart.sharedClips,function(c,a,d){c&&!b.chart.container.querySelector('[clip-path="url(#'.concat(c.id,')"]'))&&(c.destroy(),delete d[a])});this.finishedAnimating=!0;K(this,"afterAnimate")};a.prototype.drawPoints=function(){var b=this.points,c=this.chart,a=this.options.marker,d=this[this.specialGroup]||this.markerGroup,e=this.xAxis,g=M(a.enabled,!e||e.isRadial?!0:null,this.closestPointRangePx>=a.enabledThreshold*a.radius),h, f;if(!1!==a.enabled||this._hasPointMarkers)for(h=0;hD.max;b.resetZones&&0===m&&(m=void 0)});this.clips=e}else b.visible&&(g&&g.show(),h&&h.show())};a.prototype.invertGroups= function(b){function c(){["group","markerGroup"].forEach(function(c){a[c]&&(d.renderer.isVML&&a[c].attr({width:a.yAxis.len,height:a.xAxis.len}),a[c].width=a.yAxis.len,a[c].height=a.xAxis.len,a[c].invert(a.isRadialSeries?!1:b))})}var a=this,d=a.chart;a.xAxis&&(a.eventsToUnbind.push(J(d,"resize",c)),c(),a.invertGroups=c)};a.prototype.plotGroup=function(b,c,a,d,e){var g=this[b],f=!g;a={visibility:a,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(a.opacity= this.opacity);f&&(this[b]=g=this.chart.renderer.g().add(e));g.addClass("highcharts-"+c+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(h(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(g.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);g.attr(a)[f?"attr":"animate"](this.getPlotBox());return g};a.prototype.getPlotBox=function(){var b=this.chart,c=this.xAxis,a=this.yAxis;b.inverted&&(c=a,a=this.xAxis);return{translateX:c?c.left: b.plotLeft,translateY:a?a.top:b.plotTop,scaleX:1,scaleY:1}};a.prototype.removeEvents=function(b){b||L(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(b){b()}),this.eventsToUnbind.length=0)};a.prototype.render=function(){var b=this,c=b.chart,a=b.options,d=e(a.animation),g=b.visible?"inherit":"hidden",h=a.zIndex,f=b.hasRendered,k=c.seriesGroup,n=c.inverted;c=!b.finishedAnimating&&c.renderer.isSVG?d.duration:0;K(this,"render");var l=b.plotGroup("group","series",g,h,k);b.markerGroup= b.plotGroup("markerGroup","markers",g,h,k);!1!==a.clip&&b.setClip();b.animate&&c&&b.animate(!0);l.inverted=M(b.invertible,b.isCartesian)?n:!1;b.drawGraph&&(b.drawGraph(),b.applyZones());b.visible&&b.drawPoints();b.drawDataLabels&&b.drawDataLabels();b.redrawPoints&&b.redrawPoints();b.drawTracker&&!1!==b.options.enableMouseTracking&&b.drawTracker();b.invertGroups(n);b.animate&&c&&b.animate();f||(c&&d.defer&&(c+=d.defer),b.animationTimeout=R(function(){b.afterAnimate()},c||0));b.isDirty=!1;b.hasRendered= !0;K(b,"afterRender")};a.prototype.redraw=function(){var b=this.chart,c=this.isDirty||this.isDirtyData,a=this.group,d=this.xAxis,e=this.yAxis;a&&(b.inverted&&a.attr({width:b.plotWidth,height:b.plotHeight}),a.animate({translateX:M(d&&d.left,b.plotLeft),translateY:M(e&&e.top,b.plotTop)}));this.translate();this.render();c&&delete this.kdTree};a.prototype.searchPoint=function(b,c){var a=this.xAxis,d=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?a.len-b.chartY+a.pos:b.chartX-a.pos, plotY:e?d.len-b.chartX+d.pos:b.chartY-d.pos},c,b)};a.prototype.buildKDTree=function(b){function c(b,d,e){var g=b&&b.length;if(g){var h=a.kdAxisArray[d%e];b.sort(function(b,c){return b[h]-c[h]});g=Math.floor(g/2);return{point:b[g],left:c(b.slice(0,g),d+1,e),right:c(b.slice(g+1),d+1,e)}}}this.buildingKdTree=!0;var a=this,d=-1m?"left":"right";p=0>m?"right":"left";c[u]&&(u=d(b,c[u],a+1,n),q=u[k]p;)u--;this.updateParallelArrays(q,"splice",u,0,0);this.updateParallelArrays(q,u);k&&q.name&&(k[p]=q.name);n.splice(u,0,b);if(m||this.processedData)this.data.splice(u,0,null),this.processData();"point"===g.legendType&&this.generatePoints(); a&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(q,"shift"),n.shift()));!1!==e&&K(this,"addPoint",{point:q});this.isDirtyData=this.isDirty=!0;c&&f.redraw(d)};a.prototype.removePoint=function(b,a,d){var e=this,g=e.data,h=g[b],f=e.points,k=e.chart,n=function(){f&&f.length===g.length&&f.splice(b,1);g.splice(b,1);e.options.data.splice(b,1);e.updateParallelArrays(h||{series:e},"splice",b,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;a&&k.redraw()};c(d,k);a=M(a,!0);h?h.firePointEvent("remove", null,n):n()};a.prototype.remove=function(b,c,a,d){function e(){g.destroy(d);h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();M(b,!0)&&h.redraw(c)}var g=this,h=g.chart;!1!==a?K(g,"remove",null,e):e()};a.prototype.update=function(b,c){b=x(b,this.userOptions);K(this,"update",{options:b});var a=this,d=a.chart,e=a.userOptions,g=a.initialType||a.type,h=d.options.plotOptions,f=B[g].prototype,k=a.finishedAnimating&&{animation:!1},l={},m,p=["eventOptions","navigatorSeries","baseSeries"],u=b.type||e.type||d.options.chart.type, t=!(this.hasDerivedData||u&&u!==this.type||"undefined"!==typeof b.pointStart||"undefined"!==typeof b.pointInterval||"undefined"!==typeof b.relativeXValue||b.joinBy||b.mapData||a.hasOptionChanged("dataGrouping")||a.hasOptionChanged("pointStart")||a.hasOptionChanged("pointInterval")||a.hasOptionChanged("pointIntervalUnit")||a.hasOptionChanged("keys"));u=u||g;t&&(p.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels", "clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==b.visible&&p.push("area","graph"),a.parallelArrays.forEach(function(b){p.push(b+"Data")}),b.data&&(b.dataSorting&&n(a.options.dataSorting,b.dataSorting),this.setData(b.data,!1)));b=V(e,k,{index:"undefined"===typeof e.index?a.index:e.index,pointStart:M(h&&h.series&&h.series.pointStart,e.pointStart,a.xData[0])},!t&&{data:a.options.data},b);t&&b.data&&(b.data=a.options.data);p=["group","markerGroup","dataLabelsGroup", "transformGroup"].concat(p);p.forEach(function(b){p[b]=a[b];delete a[b]});h=!1;if(B[u]){if(h=u!==a.type,a.remove(!1,!1,!1,!0),h)if(Object.setPrototypeOf)Object.setPrototypeOf(a,B[u].prototype);else{k=Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents;for(m in f)a[m]=void 0;n(a,B[u].prototype);k?a.hcEvents=k:delete a.hcEvents}}else q(17,!0,d,{missingModuleFor:u});p.forEach(function(b){a[b]=p[b]});a.init(d,b);if(t&&this.points){var w=a.options;!1===w.visible?(l.graphic=1,l.dataLabel=1):a._hasPointLabels|| (b=w.marker,f=w.dataLabels,!b||!1!==b.enabled&&(e.marker&&e.marker.symbol)===b.symbol||(l.graphic=1),f&&!1===f.enabled&&(l.dataLabel=1));this.points.forEach(function(b){b&&b.series&&(b.resolveColor(),Object.keys(l).length&&b.destroyElements(l),!1===w.showInLegend&&b.legendItem&&d.legend.destroyItem(b))},this)}a.initialType=g;d.linkSeries();h&&a.linkedSeries.length&&(a.isDirtyData=!0);K(this,"afterUpdate");M(c,!0)&&d.redraw(t?void 0:!1)};a.prototype.setName=function(b){this.name=this.options.name= this.userOptions.name=b;this.chart.isDirtyLegend=!0};a.prototype.hasOptionChanged=function(b){var c=this.options[b],a=this.chart.options.plotOptions,d=this.userOptions[b];return d?c!==d:c!==M(a&&a[this.type]&&a[this.type][b],a&&a.series&&a.series[b],c)};a.prototype.onMouseOver=function(){var b=this.chart,c=b.hoverSeries;b.pointer.setHoverChartIndex();if(c&&c!==this)c.onMouseOut();this.options.events.mouseOver&&K(this,"mouseOver");this.setState("hover");b.hoverSeries=this};a.prototype.onMouseOut=function(){var b= this.options,c=this.chart,a=c.tooltip,d=c.hoverPoint;c.hoverSeries=null;if(d)d.onMouseOut();this&&b.events.mouseOut&&K(this,"mouseOut");!a||this.stickyTracking||a.shared&&!this.noSharedTooltip||a.hide();c.series.forEach(function(b){b.setState("",!0)})};a.prototype.setState=function(b,c){var a=this,d=a.options,e=a.graph,g=d.inactiveOtherPoints,h=d.states,f=M(h[b||"normal"]&&h[b||"normal"].animation,a.chart.options.chart.animation),k=d.lineWidth,l=0,n=d.opacity;b=b||"";if(a.state!==b&&([a.group,a.markerGroup, a.dataLabelsGroup].forEach(function(c){c&&(a.state&&c.removeClass("highcharts-series-"+a.state),b&&c.addClass("highcharts-series-"+b))}),a.state=b,!a.chart.styledMode)){if(h[b]&&!1===h[b].enabled)return;b&&(k=h[b].lineWidth||k+(h[b].lineWidthPlus||0),n=M(h[b].opacity,n));if(e&&!e.dashstyle)for(d={"stroke-width":k},e.animate(d,f);a["zone-graph-"+l];)a["zone-graph-"+l].animate(d,f),l+=1;g||[a.group,a.markerGroup,a.dataLabelsGroup,a.labelBySeries].forEach(function(b){b&&b.animate({opacity:n},f)})}c&& g&&a.points&&a.setAllPointsToState(b||void 0)};a.prototype.setAllPointsToState=function(b){this.points.forEach(function(c){c.setState&&c.setState(b)})};a.prototype.setVisible=function(b,c){var a=this,d=a.chart,e=a.legendItem,g=d.options.chart.ignoreHiddenSeries,h=a.visible,f=(a.visible=b=a.options.visible=a.userOptions.visible="undefined"===typeof b?!h:b)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(b){if(a[b])a[b][f]()});if(d.hoverSeries===a||(d.hoverPoint&& d.hoverPoint.series)===a)a.onMouseOut();e&&d.legend.colorizeItem(a,b);a.isDirty=!0;a.options.stacking&&d.series.forEach(function(b){b.options.stacking&&b.visible&&(b.isDirty=!0)});a.linkedSeries.forEach(function(c){c.setVisible(b,!1)});g&&(d.isDirtyBox=!0);K(a,f);!1!==c&&d.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide=function(){this.setVisible(!1)};a.prototype.select=function(b){this.selected=b=this.options.selected="undefined"===typeof b?!this.selected:b;this.checkbox&& (this.checkbox.checked=b);K(this,b?"select":"unselect")};a.prototype.shouldShowTooltip=function(b,c,a){void 0===a&&(a={});a.series=this;a.visiblePlotOnly=!0;return this.chart.isInsidePlot(b,c,a)};a.defaultOptions=I;a.types=v.seriesTypes;a.registerType=v.registerSeriesType;return a}();n(a.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:y.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:F, requireSorting:!0,sorted:!0});v.series=a;"";"";return a});L(f,"Extensions/ScrollablePlotArea.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/Axis.js"],f["Core/Chart/Chart.js"],f["Core/Series/Series.js"],f["Core/Renderer/RendererRegistry.js"],f["Core/Utilities.js"]],function(a,f,A,G,y,F){var B=a.stop,v=F.addEvent,r=F.createElement,p=F.defined,e=F.merge,c=F.pick;v(A,"afterSetChartSize",function(c){var a=this.options.chart.scrollablePlotArea,k=a&&a.minWidth;a=a&&a.minHeight;if(!this.renderer.forExport){if(k){if(this.scrollablePixelsX= k=Math.max(0,k-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=e(this.plotBox);this.plotBox.width=this.plotWidth+=k;this.inverted?this.clipBox.height+=k:this.clipBox.width+=k;var m={1:{name:"right",value:k}}}}else a&&(this.scrollablePixelsY=k=Math.max(0,a-this.chartHeight),p(k)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=e(this.plotBox),this.plotBox.height=this.plotHeight+=k,this.inverted?this.clipBox.width+=k:this.clipBox.height+=k,m={2:{name:"bottom",value:k}})); m&&!c.skipAxes&&this.axes.forEach(function(c){m[c.side]?c.getPlotLinePath=function(){var a=m[c.side].name,e=this[a];this[a]=e-m[c.side].value;var g=f.prototype.getPlotLinePath.apply(this,arguments);this[a]=e;return g}:(c.setAxisSize(),c.setAxisTranslation())})}});v(A,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});A.prototype.setUpScrolling=function(){var c=this,a={WebkitOverflowScrolling:"touch", overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(a.overflowX="auto");this.scrollablePixelsY&&(a.overflowY="auto");this.scrollingParent=r("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=r("div",{className:"highcharts-scrolling"},a,this.scrollingParent);v(this.scrollingContainer,"scroll",function(){c.pointer&&delete c.pointer.chartPosition});this.innerContainer=r("div",{className:"highcharts-inner-container"},null,this.scrollingContainer); this.innerContainer.appendChild(this.container);this.setUpScrolling=null};A.prototype.moveFixedElements=function(){var c=this.container,a=this.fixedRenderer,e=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),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&&e.push(""+f+":not(.highcharts-radial-axis)",""+f+"-labels:not(.highcharts-radial-axis-labels)");e.forEach(function(e){[].forEach.call(c.querySelectorAll(e),function(c){(c.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(c);c.style.pointerEvents="auto"})})};A.prototype.applyFixed= function(){var a=!this.fixedDiv,e=this.options.chart,f=e.scrollablePlotArea,m=y.getRendererType();a?(this.fixedDiv=r("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new m(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style), this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":c(f.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),v(this,"afterShowResetZoom",this.moveFixedElements),v(this,"afterApplyDrilldown",this.moveFixedElements),v(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a)this.scrollableDirty=!1,this.moveFixedElements();e=this.chartWidth+(this.scrollablePixelsX|| 0);m=this.chartHeight+(this.scrollablePixelsY||0);B(this.container);this.container.style.width=e+"px";this.container.style.height=m+"px";this.renderer.boxWrapper.attr({width:e,height:m,viewBox:[0,0,e,m].join(" ")});this.chartBackground.attr({width:e,height:m});this.scrollingContainer.style.height=this.chartHeight+"px";a&&(f.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*f.scrollPositionX),f.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*f.scrollPositionY)); m=this.axisOffset;a=this.plotTop-m[0]-1;f=this.plotLeft-m[3]-1;e=this.plotTop+this.plotHeight+m[2]+1;m=this.plotLeft+this.plotWidth+m[1]+1;var p=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),A=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a=this.scrollablePixelsX?[["M",0,a],["L",this.plotLeft-1,a],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",p,a],["L",this.chartWidth,a],["L",this.chartWidth,e],["L",p,e],["Z"]]:this.scrollablePixelsY?[["M",f,0],["L",f,this.plotTop-1],["L",m,this.plotTop- 1],["L",m,0],["Z"],["M",f,A],["L",f,this.chartHeight],["L",m,this.chartHeight],["L",m,A],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a})};v(f,"afterInit",function(){this.chart.scrollableDirty=!0});v(G,"show",function(){this.chart.scrollableDirty=!0});""});L(f,"Core/Axis/Stacking/StackItem.js",[f["Core/FormatUtilities.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(a,f,A){var B=a.format,y=f.series,F=A.defined,I=A.destroyObjectProperties, v=A.isNumber,r=A.pick;a=function(){function a(a,c,f,g,l){var e=a.chart.inverted;this.axis=a;this.isNegative=f;this.options=c=c||{};this.x=g;this.cumulative=this.total=null;this.points={};this.hasValidPoints=!1;this.stack=l;this.rightCliff=this.leftCliff=0;this.alignOptions={align:c.align||(e?f?"left":"right":"center"),verticalAlign:c.verticalAlign||(e?"middle":f?"bottom":"top"),y:c.y,x:c.x};this.textAlign=c.textAlign||(e?f?"right":"left":"center")}a.prototype.destroy=function(){I(this,this.axis)}; a.prototype.render=function(a){var c=this.axis.chart,e=this.options,g=e.format;g=g?B(g,this,c):e.formatter.call(this);this.label?this.label.attr({text:g,visibility:"hidden"}):(this.label=c.renderer.label(g,null,null,e.shape,null,null,e.useHTML,!1,"stack-labels"),g={r:e.borderRadius||0,text:g,rotation:e.rotation,padding:r(e.padding,5),visibility:"hidden"},c.styledMode||(g.fill=e.backgroundColor,g.stroke=e.borderColor,g["stroke-width"]=e.borderWidth,this.label.css(e.style)),this.label.attr(g),this.label.added|| this.label.add(a));this.label.labelrank=c.plotSizeY};a.prototype.setOffset=function(a,c,f,g,l){var e=this.axis,k=e.chart;g=e.translate(e.stacking.usePercentage?100:g?g:this.total,0,0,0,1);f=e.translate(f?f:0);a=r(l,k.xAxis[0].translate(this.x))+a;e=F(g)&&this.getStackBox(k,this,a,g,c,Math.abs(g-f),e);c=this.label;f=this.isNegative;var p=this.textAlign;c&&e&&(a=c.getBBox(),l=c.padding,g="justify"===r(this.options.overflow,"justify"),p="left"===p?k.inverted?-l:l:"right"===p?a.width:k.inverted&&"center"=== p?a.width/2:k.inverted?f?a.width+l:-l:a.width/2,f=k.inverted?a.height/2:f?-l:a.height,this.alignOptions.x=r(this.options.x,0),this.alignOptions.y=r(this.options.y,0),e.x-=p,e.y-=f,c.align(this.alignOptions,null,e),k.isInsidePlot(c.alignAttr.x+p-this.alignOptions.x,c.alignAttr.y+f-this.alignOptions.y)?c.show():(c.hide(),g=!1),g&&y.prototype.justifyDataLabel.call(this.axis,c,this.alignOptions,c.alignAttr,a,e),c.attr({x:c.alignAttr.x,y:c.alignAttr.y}),r(!g&&this.options.crop,!0)&&((k=v(c.x)&&v(c.y)&& k.isInsidePlot(c.x-l+c.width,c.y)&&k.isInsidePlot(c.x+l,c.y))||c.hide()))};a.prototype.getStackBox=function(a,c,f,g,l,m,p){var e=c.axis.reversed,k=a.inverted,r=p.height+p.pos-(k?a.plotLeft:a.plotTop);c=c.isNegative&&!e||!c.isNegative&&e;return{x:k?c?g-p.right:g-m+p.pos-a.plotLeft:f+a.xAxis[0].transB-a.plotLeft,y:k?p.height-f-l:c?r-g-m:r-g,width:k?m:l,height:k?l:m}};return a}();"";return a});L(f,"Core/Axis/Stacking/StackingAxis.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/Axis.js"], f["Core/Series/SeriesRegistry.js"],f["Core/Axis/Stacking/StackItem.js"],f["Core/Utilities.js"]],function(a,f,A,G,y){function B(){var b=this,c=b.inverted;b.yAxis.forEach(function(b){b.stacking&&b.stacking.stacks&&b.hasVisibleSeries&&(b.stacking.oldStacks=b.stacking.stacks)});b.series.forEach(function(a){var e=a.xAxis&&a.xAxis.options||{};!a.options.stacking||!0!==a.visible&&!1!==b.options.chart.ignoreHiddenSeries||(a.stackKey=[a.type,d(a.options.stack,""),c?e.top:e.left,c?e.height:e.width].join())})} function I(){var b=this.stacking;if(b){var c=b.stacks;x(c,function(b,a){J(b);c[a]=null});b&&b.stackTotalGroup&&b.stackTotalGroup.destroy()}}function v(){this.stacking||(this.stacking=new h(this))}function r(b,c,a,d){!N(b)||b.x!==c||d&&b.stackKey!==d?b={x:c,index:0,key:d,stackKey:d}:b.index++;b.key=[a,c,b.index].join();return b}function p(){var b=this,c=b.stackKey,a=b.yAxis.stacking.stacks,d=b.processedXData,e=b[b.options.stacking+"Stacker"],h;e&&[c,"-"+c].forEach(function(c){for(var g=d.length,f, k;g--;)f=d[g],h=b.getStackIndicator(h,f,b.index,c),(k=(f=a[c]&&a[c][f])&&f.points[h.key])&&e.call(b,k,f,g)})}function e(b,c,a){c=c.total?100/c.total:0;b[0]=z(b[0]*c);b[1]=z(b[1]*c);this.stackedYData[a]=b[1]}function c(){var b=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1k&&f.shadow));p&&(p.startX=e.xMap,p.isArea=e.isArea)})};v.prototype.getGraphPath=function(a,f,e){var c=this,k=c.options,g=[],l=[],m,p=k.step;a=a||c.points;var r=a.reversed;r&&a.reverse();(p={right:1, center:2}[p]||p&&3)&&r&&(p=4-p);a=this.getValidPoints(a,!1,!(k.connectNulls&&!f&&!e));a.forEach(function(r,z){var E=r.plotX,t=r.plotY,x=a[z-1];(r.leftCliff||x&&x.rightCliff)&&!e&&(m=!0);r.isNull&&!y(f)&&0a&&r>k?(r=Math.max(a,k),v=2*k-r):re&&v>k?(v=Math.max(e,k),r=2*k-v):v=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA;f=a.borderWidth=D(b.borderWidth,f?0:1);var k=a.xAxis,l=a.yAxis,m=b.threshold,p=a.translatedThreshold=l.getThreshold(m),t=D(b.minPointLength,5),r=a.getColumnMetrics(),x=r.width,E=a.pointXOffset=r.offset,C=a.dataMin,v=a.dataMax,z=a.barW=Math.max(x,1+2*f);e.inverted&&(p-=.5);b.pointPadding&&(z=Math.ceil(z)); y.prototype.translate.apply(a);a.points.forEach(function(d){var f=D(d.yBottom,p),h=999+Math.abs(f),n=d.plotX||0;h=c(d.plotY,-h,l.len+h);var q=Math.min(h,f),u=Math.max(h,f)-q,w=x,y=n+E,A=z;t&&Math.abs(u)t?f-t:p-(n?t:0));g(d.options.pointWidth)&&(w=A=Math.ceil(d.options.pointWidth),y-=Math.round((w-x)/2));b.centerInCategory&&(y=a.adjustForMissingColumns(y, w,d,r));d.barX=y;d.pointWidth=w;d.tooltipPos=e.inverted?[c(l.len+l.pos-e.plotLeft-h,l.pos-e.plotLeft,l.len+l.pos-e.plotLeft),k.len+k.pos-e.plotTop-y-A/2,u]:[k.left-e.plotLeft+y+A/2,c(h+l.pos-e.plotTop,l.pos-e.plotTop,l.len+l.pos-e.plotTop),u];d.shapeType=a.pointClass.prototype.shapeType||"rect";d.shapeArgs=a.crispCol.apply(a,d.isNull?[y,p,A,0]:[y,q,A,u])})};f.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};f.prototype.pointAttribs=function(a, c){var b=this.options,d=this.pointAttrToOptions||{},e=d.stroke||"borderColor",f=d["stroke-width"]||"borderWidth",g=a&&a.color||this.color,h=a&&a[e]||b[e]||g;d=a&&a.options.dashStyle||b.dashStyle;var k=a&&a[f]||b[f]||this[f]||0,l=D(a&&a.opacity,b.opacity,1);if(a&&this.zones.length){var m=a.getZone();g=a.options.color||m&&(m.color||a.nonZonedColor)||this.color;m&&(h=m.borderColor||h,d=m.dashStyle||d,k=m.borderWidth||k)}c&&a&&(a=J(b.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness, g=a.color||"undefined"!==typeof c&&p(g).brighten(a.brightness).get()||g,h=a[e]||h,k=a[f]||k,d=a.dashStyle||d,l=D(a.opacity,l));e={fill:g,stroke:h,"stroke-width":k,opacity:l};d&&(e.dashstyle=d);return e};f.prototype.drawPoints=function(){var a=this,c=this.chart,b=a.options,e=c.renderer,f=b.animationLimit||250,g;a.points.forEach(function(d){var h=d.graphic,k=!!h,l=h&&c.pointCount"===c&&a>b||"<"===c&&a="===c&&a>=b||"<="===c&&a<=b||"=="===c&&a==b||"==="===c&&a===b?!0:!1):!0}function m(){var a=this,e=a.chart,b=a.options,f=a.points,m=a.hasRendered||0,t=e.renderer,x=e.options.chart, w=x.backgroundColor;x=x.plotBackgroundColor;var z=t.getContrast(p(x)&&x||p(w)&&w||"#000000"),D=b.dataLabels,A;w=D.animation;w=D.defer?B(e,w,a):{defer:0,duration:0};D=E(E(e.options.plotOptions&&e.options.plotOptions.series&&e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[a.type]&&e.options.plotOptions[a.type].dataLabels),D);v(this,"drawDataLabels");if(r(D)||D.enabled||a._hasPointLabels){var G=a.plotGroup("dataLabelsGroup","data-labels",m?"inherit":"hidden",D.zIndex|| 6);G.attr({opacity:+m});!m&&(m=a.dataLabelsGroup)&&(a.visible&&G.show(),m[b.animation?"animate":"attr"]({opacity:1},w));f.forEach(function(d){A=g(E(D,d.dlOptions||d.options&&d.options.dataLabels));A.forEach(function(f,g){var h=f.enabled&&(!d.isNull||d.dataLabelOnNull)&&l(d,f),m=d.connectors?d.connectors[g]:d.connector,n=d.dataLabels?d.dataLabels[g]:d.dataLabel,p=!n,q=k(f.distance,d.labelDistance);if(h){var u=d.getLabelConfig();var r=k(f[d.formatPrefix+"Format"],f.format);u=F(r)?y(r,u,e):(f[d.formatPrefix+ "Formatter"]||f.formatter).call(u,f);r=f.style;var x=f.rotation;e.styledMode||(r.color=k(f.color,r.color,a.color,"#000000"),"contrast"===r.color?(d.contrastColor=t.getContrast(d.color||a.color),r.color=!F(q)&&f.inside||0>q||b.stacking?d.contrastColor:z):delete d.contrastColor,b.cursor&&(r.cursor=b.cursor));var w={r:f.borderRadius||0,rotation:x,padding:f.padding,zIndex:1};e.styledMode||(w.fill=f.backgroundColor,w.stroke=f.borderColor,w["stroke-width"]=f.borderWidth);c(w,function(b,a){"undefined"=== typeof b&&delete w[a]})}!n||h&&F(u)&&!!n.div===!!f.useHTML&&(n.rotation&&f.rotation||n.rotation===f.rotation)||(p=!0,d.dataLabel=n=d.dataLabel&&d.dataLabel.destroy(),d.dataLabels&&(1===d.dataLabels.length?delete d.dataLabels:delete d.dataLabels[g]),g||delete d.dataLabel,m&&(d.connector=d.connector.destroy(),d.connectors&&(1===d.connectors.length?delete d.connectors:delete d.connectors[g])));h&&F(u)?(n?w.text=u:(d.dataLabels=d.dataLabels||[],n=d.dataLabels[g]=x?t.text(u,0,0,f.useHTML).addClass("highcharts-data-label"): t.label(u,0,0,f.shape,null,null,f.useHTML,null,"data-label"),g||(d.dataLabel=n),n.addClass(" highcharts-data-label-color-"+d.colorIndex+" "+(f.className||"")+(f.useHTML?" highcharts-tracker":""))),n.options=f,n.attr(w),e.styledMode||n.css(r).shadow(f.shadow),f.textPath&&!f.useHTML&&(n.setTextPath(d.getDataLabelPath&&d.getDataLabelPath(n)||d.graphic,f.textPath),d.dataLabelPath&&!f.textPath.enabled&&(d.dataLabelPath=d.dataLabelPath.destroy())),n.added||n.add(G),a.alignDataLabel(d,n,f,null,p)):n&&n.hide()})})}v(this, "afterDrawDataLabels")}function D(a,c,b,e,f,g){var d=this.chart,h=c.align,k=c.verticalAlign,l=a.box?0:a.padding||0,m=c.x;m=void 0===m?0:m;var n=c.y;n=void 0===n?0:n;var p=(b.x||0)+l;if(0>p){"right"===h&&0<=m?(c.align="left",c.inside=!0):m-=p;var t=!0}p=(b.x||0)+e.width-l;p>d.plotWidth&&("left"===h&&0>=m?(c.align="right",c.inside=!0):m+=d.plotWidth-p,t=!0);p=b.y+l;0>p&&("bottom"===k&&0<=n?(c.verticalAlign="top",c.inside=!0):n-=p,t=!0);p=(b.y||0)+e.height-l;p>d.plotHeight&&("top"===k&&0>=n?(c.verticalAlign= "bottom",c.inside=!0):n+=d.plotHeight-p,t=!0);t&&(c.x=m,c.y=n,a.placed=!g,a.align(c,void 0,f));return t}function E(a,c){var b=[],d;if(r(a)&&!r(c))b=a.map(function(b){return e(b,c)});else if(r(c)&&!r(a))b=c.map(function(b){return e(a,b)});else if(r(a)||r(c))for(d=Math.max(a.length,c.length);d--;)b[d]=e(a[d],c[d]);else b=e(a,c);return b}function t(a,c,b,e,f){var d=this.chart,g=d.inverted,h=this.xAxis,k=h.reversed,l=g?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=g?f.x:k?-l-a:h.width-l+a; c.startYPos=g?k?this.yAxis.height-l+a:-l-a:f.y;e?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);d.hasRendered&&(b&&c.attr({x:c.startXPos,y:c.startYPos}),c.placed=!0)}var x=[];a.compose=function(a){if(-1===x.indexOf(a)){var c=a.prototype;x.push(a);c.alignDataLabel=f;c.drawDataLabels=m;c.justifyDataLabel=D;c.setDataLabelStartPos=t}}})(l||(l={}));"";return l});L(f,"Series/Column/ColumnDataLabel.js",[f["Core/Series/DataLabel.js"], f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(a,f,A){var B=f.series,y=A.merge,F=A.pick,I;(function(f){function r(a,c,f,g,l){var e=this.chart.inverted,k=a.series,p=(k.xAxis?k.xAxis.len:this.chart.plotSizeX)||0;k=(k.yAxis?k.yAxis.len:this.chart.plotSizeY)||0;var r=a.dlBox||a.shapeArgs,v=F(a.below,a.plotY>F(this.translatedThreshold,k)),E=F(f.inside,!!this.options.stacking);r&&(g=y(r),0>g.y&&(g.height+=g.y,g.y=0),r=g.y+g.height-k,0\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}});return f}(F);I(f.prototype,{drawTracker:y.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});G(f,"afterTranslate",function(){this.applyJitter()});a.registerSeriesType("scatter",f);"";return f});L(f,"Series/CenteredUtilities.js", [f["Core/Globals.js"],f["Core/Series/Series.js"],f["Core/Utilities.js"]],function(a,f,A){var B=a.deg2rad,y=A.fireEvent,F=A.isNumber,I=A.pick,v=A.relativeLength,r;(function(a){a.getCenter=function(){var a=this.options,c=this.chart,k=2*(a.slicedOffset||0),g=c.plotWidth-2*k,l=c.plotHeight-2*k,m=a.center,p=Math.min(g,l),r=a.thickness,B=a.size,D=a.innerSize||0;"string"===typeof B&&(B=parseFloat(B));"string"===typeof D&&(D=parseFloat(D));a=[I(m[0],"50%"),I(m[1],"50%"),I(B&&0>B?void 0:a.size,"100%"),I(D&& 0>D?void 0:a.innerSize||0,"0%")];!c.angular||this instanceof f||(a[3]=0);for(m=0;4>m;++m)B=a[m],c=2>m||2===m&&/%$/.test(B),a[m]=v(B,[g,l,p,a[2]][m])+(c?k:0);a[3]>a[2]&&(a[3]=a[2]);F(r)&&2*ra&&360>c-a?c:a+360;return{start:B*(a+-90),end:B*(c+-90)}}})(r||(r={}));"";return r});L(f,"Series/Pie/PiePoint.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Series/Point.js"], f["Core/Utilities.js"]],function(a,f,A){var B=this&&this.__extends||function(){var a=function(c,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])};return a(c,e)};return function(c,e){function f(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}(),y=a.setAnimation,F=A.addEvent,I=A.defined;a=A.extend;var v=A.isNumber,r=A.pick,p=A.relativeLength;f=function(a){function c(){var c= null!==a&&a.apply(this,arguments)||this;c.labelDistance=void 0;c.options=void 0;c.series=void 0;return c}B(c,a);c.prototype.getConnectorPath=function(){var a=this.labelPosition,c=this.series.options.dataLabels,e=this.connectorShapes,f=c.connectorShape;e[f]&&(f=e[f]);return f.call(this,{x:a.final.x,y:a.final.y,alignment:a.alignment},a.connectorPosition,c)};c.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};c.prototype.haloPath=function(a){var c= this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:c.r-1,start:c.start,end:c.end})};c.prototype.init=function(){var c=this;a.prototype.init.apply(this,arguments);this.name=r(this.name,"Slice");var e=function(a){c.slice("select"===a.type)};F(this,"select",e);F(this,"unselect",e);return this};c.prototype.isValid=function(){return v(this.y)&&0<=this.y};c.prototype.setVisible=function(a,c){var e=this,f=this.series,g=f.chart,k=f.options.ignoreHiddenPoint; c=r(c,k);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,f.options.data[f.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(c){if(e[c])e[c][a?"show":"hide"](a)}),this.legendItem&&g.legend.colorizeItem(this,a),a||"hover"!==this.state||this.setState(""),k&&(f.isDirty=!0),c&&g.redraw())};c.prototype.slice=function(a,c,e){var f=this.series;y(e,f.chart);r(c,!0);this.sliced=this.options.sliced=I(a)?a:!this.sliced; f.options.data[f.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return c}(f);a(f.prototype,{connectorShapes:{fixedOffset:function(a,c,f){var e=c.breakAt;c=c.touchingSliceAt;return[["M",a.x,a.y],f.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*e.x-c.x,2*e.y-c.y,e.x,e.y]:["L",e.x,e.y],["L",c.x,c.y]]},straight:function(a,c){c=c.touchingSliceAt;return[["M",a.x,a.y],["L",c.x,c.y]]},crookedLine:function(a, c,f){c=c.touchingSliceAt;var e=this.series,k=e.center[0],m=e.chart.plotWidth,r=e.chart.plotLeft;e=a.alignment;var v=this.shapeArgs.r;f=p(f.crookDistance,1);m="left"===e?k+v+(m+r-k-v)*(1-f):r+(k-v)*f;f=["L",m,a.y];k=!0;if("left"===e?m>a.x||mc.x)k=!1;a=[["M",a.x,a.y]];k&&a.push(f);a.push(["L",c.x,c.y]);return a}}});return f});L(f,"Series/Pie/PieSeries.js",[f["Series/CenteredUtilities.js"],f["Series/Column/ColumnSeries.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Series/Pie/PiePoint.js"], f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/Symbols.js"],f["Core/Utilities.js"]],function(a,f,A,G,y,F,I,v,r){var p=this&&this.__extends||function(){var a=function(c,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])};return a(c,e)};return function(c,e){function f(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}(), e=a.getStartAndEndRadians;A=A.noop;var c=r.clamp,k=r.extend,g=r.fireEvent,l=r.merge,m=r.pick,z=r.relativeLength;r=function(a){function f(){var c=null!==a&&a.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}p(f,a);f.prototype.animate=function(a){var c=this,e=c.points,f=c.startAngleRad;a||e.forEach(function(a){var d=a.graphic,b=a.shapeArgs;d&&b&&(d.attr({r:m(a.startR,c.center&&c.center[3]/2),start:f,end:f}),d.animate({r:b.r, start:b.start,end:b.end},c.options.animation))})};f.prototype.drawEmpty=function(){var a=this.startAngleRad,c=this.endAngleRad,e=this.options;if(0===this.total&&this.center){var f=this.center[0];var d=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f,d,this.center[1]/2,0,a,c).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:v.arc(f,d,this.center[2]/2,0,{start:a,end:c,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":e.borderWidth, fill:e.fillColor||"none",stroke:e.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};f.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=c.graphic.destroy());c.graphic||(c.graphic=a[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})};f.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};f.prototype.getX=function(a,e,f){var g=this.center, d=this.radii?this.radii[f.index]||0:g[2]/2;a=Math.asin(c((a-g[1])/(d+f.labelDistance),-1,1));return g[0]+(e?-1:1)*Math.cos(a)*(d+f.labelDistance)+(01.5*Math.PI?B-=2*Math.PI:B<-Math.PI/ 2&&(B+=2*Math.PI);w.slicedTranslation={translateX:Math.round(Math.cos(B)*f),translateY:Math.round(Math.sin(B)*f)};y=Math.cos(B)*a[2]/2;var D=Math.sin(B)*a[2]/2;w.tooltipPos=[a[0]+.7*y,a[1]+.7*D];w.half=B<-Math.PI/2||B>Math.PI/2?1:0;w.angle=B;v=Math.min(k,w.labelDistance/5);w.labelPosition={natural:{x:a[0]+y+Math.cos(B)*w.labelDistance,y:a[1]+D+Math.sin(B)*w.labelDistance},"final":{},alignment:0>w.labelDistance?"center":w.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+y+Math.cos(B)*v,y:a[1]+ D+Math.sin(B)*v},touchingSliceAt:{x:a[0]+y,y:a[1]+D}}}}g(this,"afterTranslate")};f.prototype.updateTotals=function(){var a=this.points,c=a.length,e=this.options.ignoreHiddenPoint,f,d=0;for(f=0;fB&&(b.dataLabel.css({width:Math.round(.7*B)+"px"}),b.dataLabel.shortened=!0)):(b.dataLabel=b.dataLabel.destroy(),b.dataLabels&&1===b.dataLabels.length&&delete b.dataLabels))}),E.forEach(function(c,f){var h=c.length, n=[],t;if(h){a.sortByAngle(c,f-.5);if(0l-b&&0===f&&(q=Math.round(O+N-l+b),D[1]=Math.max(q,D[1])),0>W-L/2?D[0]=Math.max(Math.round(-W+L/2),D[0]):W+L/2>m&&(D[2]=Math.max(Math.round(W+L/2-m),D[2])),J.sideOverflow=q)}}}),0===r(D)||this.verifyDataLabelOverflow(D))&&(this.placeDataLabels(),this.points.forEach(function(b){Q=c(g,b.options.dataLabels);if(G=k(Q.connectorWidth, 1)){var e;F=b.connector;if((J=b.dataLabel)&&J._pos&&b.visible&&0c.bottom-2?e:d,c.half,c)},justify:function(a, c,d){return d[0]+(a.half?-1:1)*(c+a.labelDistance)},alignToPlotEdges:function(a,c,d,e){a=a.getBBox().width;return c?a+e:d-a-e},alignToConnectors:function(a,c,d,e){var b=0,f;a.forEach(function(a){f=a.dataLabel.getBBox().width;f>b&&(b=f)});return c?b+e:d-b-e}};f.compose=function(c){a.compose(v);-1===D.indexOf(c)&&(D.push(c),c=c.prototype,c.dataLabelPositioners=E,c.alignDataLabel=B,c.drawDataLabels=l,c.placeDataLabels=m,c.verifyDataLabelOverflow=y)}})(l||(l={}));return l});L(f,"Extensions/OverlappingDataLabels.js", [f["Core/Chart/Chart.js"],f["Core/Utilities.js"]],function(a,f){function B(a,e){var c=!1;if(a){var f=a.newOpacity;a.oldOpacity!==f&&(a.alignAttr&&a.placed?(a[f?"removeClass":"addClass"]("highcharts-data-label-hidden"),c=!0,a.alignAttr.opacity=f,a[a.isOld?"animate":"attr"](a.alignAttr,null,function(){e.styledMode||a.css({pointerEvents:f?"auto":"none"})}),y(e,"afterHideOverlappingLabel")):a.attr({opacity:f}));a.isOld=!0}return c}var G=f.addEvent,y=f.fireEvent,F=f.isArray,I=f.isNumber,v=f.objectEach, r=f.pick;G(a,"render",function(){var a=this,e=[];(this.labelCollectors||[]).forEach(function(a){e=e.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&v(a.stacking.stacks,function(a){v(a,function(a){a.label&&e.push(a.label)})})});(this.series||[]).forEach(function(c){var f=c.options.dataLabels;c.visible&&(!1!==f.enabled||c._hasPointLabels)&&(f=function(c){return c.forEach(function(c){c.visible&&(F(c.dataLabels)?c.dataLabels:c.dataLabel? [c.dataLabel]:[]).forEach(function(f){var g=f.options;f.labelrank=r(g.labelrank,c.labelrank,c.shapeArgs&&c.shapeArgs.height);g.allowOverlap?(f.oldOpacity=f.opacity,f.newOpacity=1,B(f,a)):e.push(f)})})},f(c.nodes||[]),f(c.points))});this.hideOverlappingLabels(e)});a.prototype.hideOverlappingLabels=function(a){var e=this,c=a.length,f=e.renderer,g,l,m,p=!1;var r=function(a){var c,e=a.box?0:a.padding||0,d=c=0,g;if(a&&(!a.alignAttr||a.placed)){var b=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var k=a.parentGroup; a.width||(c=a.getBBox(),a.width=c.width,a.height=c.height,c=f.fontMetrics(null,a.element).h);var l=a.width-2*e;(g={left:"0",center:"0.5",right:"1"}[a.alignValue])?d=+g*l:I(a.x)&&Math.round(a.x)!==a.translateX&&(d=a.x-a.translateX);return{x:b.x+(k.translateX||0)+e-(d||0),y:b.y+(k.translateY||0)+e-c,width:a.width-2*e,height:a.height-2*e}}};for(l=0;l=v.x+v.width||D.x+D.width<=v.x||D.y>=v.y+v.height||D.y+D.height<=v.y||((r.labelrank=v(e.minWidth,0)&&this.chartHeight>=v(e.minHeight,0)}).call(this)&&c.push(a._id)};a.prototype.setResponsive=function(a,c){var e=this,f=this.options.responsive,g=this.currentResponsive,k=[];!c&&f&& f.rules&&f.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=p());e.matchResponsiveRule(a,k)},this);c=F.apply(void 0,k.map(function(a){return A((f||{}).rules||[],function(c){return c._id===a})}).map(function(a){return a&&a.chartOptions}));c.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(g&&g.ruleIds)&&(g&&this.update(g.undoOptions,a,!0),k?(g=this.currentOptions(c),g.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:c,undoOptions:g},this.update(c,a,!0)):this.currentResponsive= void 0)};return a}()})(e||(e={}));"";"";return e});L(f,"masters/highcharts.src.js",[f["Core/Globals.js"],f["Core/Utilities.js"],f["Core/DefaultOptions.js"],f["Core/Animation/Fx.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/Renderer/HTML/AST.js"],f["Core/FormatUtilities.js"],f["Core/Renderer/RendererUtilities.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Renderer/HTML/HTMLElement.js"],f["Core/Renderer/HTML/HTMLRenderer.js"],f["Core/Axis/Axis.js"], f["Core/Axis/DateTimeAxis.js"],f["Core/Axis/LogarithmicAxis.js"],f["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],f["Core/Axis/Tick.js"],f["Core/Tooltip.js"],f["Core/Series/Point.js"],f["Core/Pointer.js"],f["Core/MSPointer.js"],f["Core/Legend/Legend.js"],f["Core/Chart/Chart.js"],f["Core/Axis/Stacking/StackingAxis.js"],f["Core/Axis/Stacking/StackItem.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Series/Column/ColumnSeries.js"],f["Series/Column/ColumnDataLabel.js"],f["Series/Pie/PieSeries.js"], f["Series/Pie/PieDataLabel.js"],f["Core/Series/DataLabel.js"],f["Core/Responsive.js"],f["Core/Color/Color.js"],f["Core/Time.js"]],function(a,f,A,G,y,F,I,v,r,p,e,c,k,g,l,m,z,L,J,D,E,t,x,d,h,b,q,n,u,K,w,S,P,X,V){a.animate=y.animate;a.animObject=y.animObject;a.getDeferredAnimation=y.getDeferredAnimation;a.setAnimation=y.setAnimation;a.stop=y.stop;a.timers=G.timers;a.AST=F;a.Axis=k;a.Chart=x;a.chart=x.chart;a.Fx=G;a.Legend=t;a.PlotLineOrBand=m;a.Point=J;a.Pointer=E.isRequired()?E:D;a.Series=b;a.StackItem= h;a.SVGElement=r;a.SVGRenderer=p;a.Tick=z;a.Time=V;a.Tooltip=L;a.Color=X;a.color=X.parse;c.compose(p);e.compose(r);a.defaultOptions=A.defaultOptions;a.getOptions=A.getOptions;a.time=A.defaultTime;a.setOptions=A.setOptions;a.dateFormat=I.dateFormat;a.format=I.format;a.numberFormat=I.numberFormat;a.addEvent=f.addEvent;a.arrayMax=f.arrayMax;a.arrayMin=f.arrayMin;a.attr=f.attr;a.clearTimeout=f.clearTimeout;a.correctFloat=f.correctFloat;a.createElement=f.createElement;a.css=f.css;a.defined=f.defined;a.destroyObjectProperties= f.destroyObjectProperties;a.discardElement=f.discardElement;a.distribute=v.distribute;a.erase=f.erase;a.error=f.error;a.extend=f.extend;a.extendClass=f.extendClass;a.find=f.find;a.fireEvent=f.fireEvent;a.getMagnitude=f.getMagnitude;a.getStyle=f.getStyle;a.inArray=f.inArray;a.isArray=f.isArray;a.isClass=f.isClass;a.isDOMElement=f.isDOMElement;a.isFunction=f.isFunction;a.isNumber=f.isNumber;a.isObject=f.isObject;a.isString=f.isString;a.keys=f.keys;a.merge=f.merge;a.normalizeTickInterval=f.normalizeTickInterval; a.objectEach=f.objectEach;a.offset=f.offset;a.pad=f.pad;a.pick=f.pick;a.pInt=f.pInt;a.relativeLength=f.relativeLength;a.removeEvent=f.removeEvent;a.seriesType=q.seriesType;a.splat=f.splat;a.stableSort=f.stableSort;a.syncTimeout=f.syncTimeout;a.timeUnits=f.timeUnits;a.uniqueKey=f.uniqueKey;a.useSerialIds=f.useSerialIds;a.wrap=f.wrap;u.compose(n);S.compose(b);g.compose(k);l.compose(k);w.compose(K);m.compose(k);P.compose(x);d.compose(k,x,b);return a});f["masters/highcharts.src.js"]._modules=f;return f["masters/highcharts.src.js"]}); //# sourceMappingURL=highcharts.js.map