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