/*
 Highcharts JS v10.2.1 (2022-10-13)

 (c) 2009-2021 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(Z,M){"object"===typeof module&&module.exports?(M["default"]=M,module.exports=Z.document?M(Z):M):"function"===typeof define&&define.amd?define("highcharts/highcharts",function(){return M(Z)}):(Z.Highcharts&&Z.Highcharts.error(16,!0),Z.Highcharts=M(Z))})("undefined"!==typeof window?window:this,function(Z){function M(a,y,f,F){a.hasOwnProperty(y)||(a[y]=F.apply(null,f),"function"===typeof CustomEvent&&Z.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:y,module:a[y]}})))}
var f={};M(f,"Core/Globals.js",[],function(){var a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="10.2.1";a.win="undefined"!==typeof Z?Z:{};a.doc=a.win.document;a.svg=a.doc&&a.doc.createElementNS&&!!a.doc.createElementNS(a.SVG_NS,"svg").createSVGRect;a.userAgent=a.win.navigator&&a.win.navigator.userAgent||"";a.isChrome=-1!==a.userAgent.indexOf("Chrome");a.isFirefox=-1!==a.userAgent.indexOf("Firefox");a.isMS=/(edge|msie|trident)/i.test(a.userAgent)&&!a.win.opera;
a.isSafari=!a.isChrome&&-1!==a.userAgent.indexOf("Safari");a.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(a.userAgent);a.isWebKit=-1!==a.userAgent.indexOf("AppleWebKit");a.deg2rad=2*Math.PI/360;a.hasBidiBug=a.isFirefox&&4>parseInt(a.userAgent.split("Firefox/")[1],10);a.hasTouch=!!a.win.TouchEvent;a.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a.noop=function(){};a.supportsPassiveEvents=function(){var f=!1;if(!a.isMS){var y=Object.defineProperty({},"passive",{get:function(){f=
!0}});a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",a.noop,y),a.win.removeEventListener("testPassive",a.noop,y))}return f}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={};a.chartCount=0})(a||(a={}));"";return a});M(f,"Core/Utilities.js",[f["Core/Globals.js"]],function(a){function f(b,w,g,z){var r=w?"Highcharts error":"Highcharts warning";32===b&&(b=""+r+": Deprecated member");var l=n(b),q=l?""+r+" #"+b+": www.highcharts.com/errors/"+b+"/":
b.toString();if("undefined"!==typeof z){var A="";l&&(q+="?");H(z,function(b,r){A+="\n - ".concat(r,": ").concat(b);l&&(q+=encodeURI(r)+"="+encodeURI(b))});q+=A}v(a,"displayError",{chart:g,code:b,message:q,params:z},function(){if(w)throw Error(q);d.console&&-1===f.messages.indexOf(q)&&console.warn(q)});f.messages.push(q)}function x(b,d){var r={};H(b,function(z,w){if(I(b[w],!0)&&!b.nodeType&&d[w])z=x(b[w],d[w]),Object.keys(z).length&&(r[w]=z);else if(I(b[w])||b[w]!==d[w]||w in b&&!(w in d))r[w]=b[w]});
return r}function F(b,d){return parseInt(b,d||10)}function C(b){return"string"===typeof b}function E(b){b=Object.prototype.toString.call(b);return"[object Array]"===b||"[object Array Iterator]"===b}function I(b,d){return!!b&&"object"===typeof b&&(!d||!E(b))}function u(b){return I(b)&&"number"===typeof b.nodeType}function t(b){var r=b&&b.constructor;return!(!I(b,!0)||u(b)||!r||!r.name||"Object"===r.name)}function n(b){return"number"===typeof b&&!isNaN(b)&&Infinity>b&&-Infinity<b}function h(b){return"undefined"!==
typeof b&&null!==b}function c(b,d,g){var r=C(d)&&!h(g),w,l=function(d,z){h(d)?b.setAttribute(z,d):r?(w=b.getAttribute(z))||"class"!==z||(w=b.getAttribute(z+"Name")):b.removeAttribute(z)};C(d)?l(g,d):H(d,l);return w}function k(b,d){var r;b||(b={});for(r in d)b[r]=d[r];return b}function e(){for(var b=arguments,d=b.length,g=0;g<d;g++){var z=b[g];if("undefined"!==typeof z&&null!==z)return z}}function m(b,d){a.isMS&&!a.svg&&d&&h(d.opacity)&&(d.filter="alpha(opacity=".concat(100*d.opacity,")"));k(b.style,
d)}function p(b){return Math.pow(10,Math.floor(Math.log(b)/Math.LN10))}function D(b,d){return 1E14<b?b:parseFloat(b.toPrecision(d||14))}function L(b,w,g){var r=a.getStyle||L;if("width"===w)return w=Math.min(b.offsetWidth,b.scrollWidth),g=b.getBoundingClientRect&&b.getBoundingClientRect().width,g<w&&g>=w-1&&(w=Math.floor(g)),Math.max(0,w-(r(b,"padding-left",!0)||0)-(r(b,"padding-right",!0)||0));if("height"===w)return Math.max(0,Math.min(b.offsetHeight,b.scrollHeight)-(r(b,"padding-top",!0)||0)-(r(b,
"padding-bottom",!0)||0));d.getComputedStyle||f(27,!0);if(b=d.getComputedStyle(b,void 0)){var l=b.getPropertyValue(w);e(g,"opacity"!==w)&&(l=F(l))}return l}function H(b,d,g){for(var r in b)Object.hasOwnProperty.call(b,r)&&d.call(g||b[r],b[r],r,b)}function J(b,d,g){function r(d,B){var r=b.removeEventListener||a.removeEventListenerPolyfill;r&&r.call(b,d,B,!1)}function w(z){var B;if(b.nodeName){if(d){var K={};K[d]=!0}else K=z;H(K,function(b,d){if(z[d])for(B=z[d].length;B--;)r(d,z[d][B].fn)})}}var l=
"function"===typeof b&&b.prototype||b;if(Object.hasOwnProperty.call(l,"hcEvents")){var q=l.hcEvents;d?(l=q[d]||[],g?(q[d]=l.filter(function(b){return g!==b.fn}),r(d,g)):(w(q),q[d]=[])):(w(q),delete l.hcEvents)}}function v(b,d,g,z){g=g||{};if(q.createEvent&&(b.dispatchEvent||b.fireEvent&&b!==a)){var r=q.createEvent("Events");r.initEvent(d,!0,!0);g=k(r,g);b.dispatchEvent?b.dispatchEvent(g):b.fireEvent(d,g)}else if(b.hcEvents){g.target||k(g,{preventDefault:function(){g.defaultPrevented=!0},target:b,
type:d});r=[];for(var w=b,l=!1;w.hcEvents;)Object.hasOwnProperty.call(w,"hcEvents")&&w.hcEvents[d]&&(r.length&&(l=!0),r.unshift.apply(r,w.hcEvents[d])),w=Object.getPrototypeOf(w);l&&r.sort(function(b,d){return b.order-d.order});r.forEach(function(d){!1===d.fn.call(b,g)&&g.preventDefault()})}z&&!g.defaultPrevented&&z.call(b,g)}var l=a.charts,q=a.doc,d=a.win;(f||(f={})).messages=[];Math.easeInOutSine=function(b){return-.5*(Math.cos(Math.PI*b)-1)};var g=Array.prototype.find?function(b,d){return b.find(d)}:
function(b,d){var r,z=b.length;for(r=0;r<z;r++)if(d(b[r],r))return b[r]};H({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(b,d){a[d]=function(r){var z;f(32,!1,void 0,(z={},z["Highcharts.".concat(d)]="use Array.".concat(b),z));return Array.prototype[b].apply(r,[].slice.call(arguments,1))}});var b,A=function(){var d=Math.random().toString(36).substring(2,9)+"-",g=0;return function(){return"highcharts-"+(b?"":d)+g++}}();d.jQuery&&(d.jQuery.fn.highcharts=function(){var b=
[].slice.call(arguments);if(this[0])return b[0]?(new (a[C(b[0])?b.shift():"Chart"])(this[0],b[0],b[1]),this):l[c(this[0],"data-highcharts-chart")]});g={addEvent:function(b,d,g,z){void 0===z&&(z={});var r="function"===typeof b&&b.prototype||b;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});r=r.hcEvents;a.Point&&b instanceof a.Point&&b.series&&b.series.chart&&(b.series.chart.runTrackerClick=!0);var w=b.addEventListener||a.addEventListenerPolyfill;w&&w.call(b,d,g,a.supportsPassiveEvents?{passive:void 0===
z.passive?-1!==d.indexOf("touch"):z.passive,capture:!1}:!1);r[d]||(r[d]=[]);r[d].push({fn:g,order:"number"===typeof z.order?z.order:Infinity});r[d].sort(function(b,d){return b.order-d.order});return function(){J(b,d,g)}},arrayMax:function(b){for(var d=b.length,r=b[0];d--;)b[d]>r&&(r=b[d]);return r},arrayMin:function(b){for(var d=b.length,r=b[0];d--;)b[d]<r&&(r=b[d]);return r},attr:c,clamp:function(b,d,g){return b>d?b<g?b:g:d},cleanRecursively:x,clearTimeout:function(b){h(b)&&clearTimeout(b)},correctFloat:D,
createElement:function(b,d,g,z,l){b=q.createElement(b);d&&k(b,d);l&&m(b,{padding:"0",border:"none",margin:"0"});g&&m(b,g);z&&z.appendChild(b);return b},css:m,defined:h,destroyObjectProperties:function(b,d){H(b,function(g,z){g&&g!==d&&g.destroy&&g.destroy();delete b[z]})},discardElement:function(b){b&&b.parentElement&&b.parentElement.removeChild(b)},erase:function(b,d){for(var g=b.length;g--;)if(b[g]===d){b.splice(g,1);break}},error:f,extend:k,extendClass:function(b,d){var g=function(){};g.prototype=
new b;k(g.prototype,d);return g},find:g,fireEvent:v,getMagnitude:p,getNestedProperty:function(b,g){for(b=b.split(".");b.length&&h(g);){var r=b.shift();if("undefined"===typeof r||"__proto__"===r)return;g=g[r];if(!h(g)||"function"===typeof g||"number"===typeof g.nodeType||g===d)return}return g},getStyle:L,inArray:function(b,d,g){f(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return d.indexOf(b,g)},isArray:E,isClass:t,isDOMElement:u,isFunction:function(b){return"function"===typeof b},isNumber:n,
isObject:I,isString:C,keys:function(b){f(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(b)},merge:function(){var b,d=arguments,g={},z=function(b,d){"object"!==typeof b&&(b={});H(d,function(g,B){"__proto__"!==B&&"constructor"!==B&&(!I(g,!0)||t(g)||u(g)?b[B]=d[B]:b[B]=z(b[B]||{},g))});return b};!0===d[0]&&(g=d[1],d=Array.prototype.slice.call(d,2));var l=d.length;for(b=0;b<l;b++)g=z(g,d[b]);return g},normalizeTickInterval:function(b,d,g,z,l){var r=b;g=e(g,p(b));var q=b/g;d||(d=
l?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===z&&(1===g?d=d.filter(function(b){return 0===b%1}):.1>=g&&(d=[1/g])));for(z=0;z<d.length&&!(r=d[z],l&&r*g>=b||!l&&q<=(d[z]+(d[z+1]||d[z]))/2);z++);return r=D(r*g,-Math.round(Math.log(.001)/Math.LN10))},objectEach:H,offset:function(b){var g=q.documentElement;b=b.parentElement||b.parentNode?b.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:b.top+(d.pageYOffset||g.scrollTop)-(g.clientTop||0),left:b.left+(d.pageXOffset||g.scrollLeft)-
(g.clientLeft||0),width:b.width,height:b.height}},pad:function(b,d,g){return Array((d||2)+1-String(b).replace("-","").length).join(g||"0")+b},pick:e,pInt:F,relativeLength:function(b,d,g){return/%$/.test(b)?d*parseFloat(b)/100+(g||0):parseFloat(b)},removeEvent:J,splat:function(b){return E(b)?b:[b]},stableSort:function(b,d){var g=b.length,z,l;for(l=0;l<g;l++)b[l].safeI=l;b.sort(function(b,g){z=d(b,g);return 0===z?b.safeI-g.safeI:z});for(l=0;l<g;l++)delete b[l].safeI},syncTimeout:function(b,d,g){if(0<
d)return setTimeout(b,d,g);b.call(0,g);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:A,useSerialIds:function(d){return b=e(d,b)},wrap:function(b,d,g){var z=b[d];b[d]=function(){var b=Array.prototype.slice.call(arguments),d=arguments,l=this;l.proceed=function(){z.apply(l,arguments.length?arguments:d)};b.unshift(z);b=g.apply(this,b);l.proceed=null;return b}}};"";return g});M(f,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,
panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});M(f,"Core/Color/Color.js",[f["Core/Globals.js"],f["Core/Utilities.js"]],
function(a,f){var y=f.isNumber,F=f.merge,C=f.pInt;f=function(){function f(y){this.rgba=[NaN,NaN,NaN,NaN];this.input=y;var u=a.Color;if(u&&u!==f)return new u(y);if(!(this instanceof f))return new f(y);this.init(y)}f.parse=function(a){return a?new f(a):f.None};f.prototype.init=function(a){var u;if("object"===typeof a&&"undefined"!==typeof a.stops)this.stops=a.stops.map(function(c){return new f(c[1])});else if("string"===typeof a){this.input=a=f.names[a.toLowerCase()]||a;if("#"===a.charAt(0)){var t=
a.length;var n=parseInt(a.substr(1),16);7===t?u=[(n&16711680)>>16,(n&65280)>>8,n&255,1]:4===t&&(u=[(n&3840)>>4|(n&3840)>>8,(n&240)>>4|n&240,(n&15)<<4|n&15,1])}if(!u)for(n=f.parsers.length;n--&&!u;){var h=f.parsers[n];(t=h.regex.exec(a))&&(u=h.parse(t))}}u&&(this.rgba=u)};f.prototype.get=function(a){var u=this.input,t=this.rgba;if("object"===typeof u&&"undefined"!==typeof this.stops){var n=F(u);n.stops=[].slice.call(n.stops);this.stops.forEach(function(h,c){n.stops[c]=[n.stops[c][0],h.get(a)]});return n}return t&&
y(t[0])?"rgb"===a||!a&&1===t[3]?"rgb("+t[0]+","+t[1]+","+t[2]+")":"a"===a?"".concat(t[3]):"rgba("+t.join(",")+")":u};f.prototype.brighten=function(a){var u=this.rgba;if(this.stops)this.stops.forEach(function(n){n.brighten(a)});else if(y(a)&&0!==a)for(var t=0;3>t;t++)u[t]+=C(255*a),0>u[t]&&(u[t]=0),255<u[t]&&(u[t]=255);return this};f.prototype.setOpacity=function(a){this.rgba[3]=a;return this};f.prototype.tweenTo=function(a,u){var t=this.rgba,n=a.rgba;if(!y(t[0])||!y(n[0]))return a.input||"none";a=
1!==n[3]||1!==t[3];return(a?"rgba(":"rgb(")+Math.round(n[0]+(t[0]-n[0])*(1-u))+","+Math.round(n[1]+(t[1]-n[1])*(1-u))+","+Math.round(n[2]+(t[2]-n[2])*(1-u))+(a?","+(n[3]+(t[3]-n[3])*(1-u)):"")+")"};f.names={white:"#ffffff",black:"#000000"};f.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(a){return[C(a[1]),C(a[2]),C(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[C(a[1]),
C(a[2]),C(a[3]),1]}}];f.None=new f("");return f}();"";return f});M(f,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});M(f,"Core/Time.js",[f["Core/Globals.js"],f["Core/Utilities.js"]],function(a,f){var y=a.win,F=f.defined,C=f.error,E=f.extend,I=f.isObject,u=f.merge,t=f.objectEach,n=f.pad,h=f.pick,c=f.splat,k=f.timeUnits,e=a.isSafari&&y.Intl&&y.Intl.DateTimeFormat.prototype.formatRange,m=a.isSafari&&
y.Intl&&!y.Intl.DateTimeFormat.prototype.formatRange;f=function(){function p(c){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=y.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(c)}p.prototype.get=function(c,e){if(this.variableTimezone||this.timezoneOffset){var h=e.getTime(),m=h-this.getTimezoneOffset(e);e.setTime(m);c=e["getUTC"+c]();e.setTime(h);return c}return this.useUTC?e["getUTC"+c]():e["get"+c]()};p.prototype.set=function(c,h,m){if(this.variableTimezone||
this.timezoneOffset){if("Milliseconds"===c||"Seconds"===c||"Minutes"===c&&0===this.getTimezoneOffset(h)%36E5)return h["setUTC"+c](m);var p=this.getTimezoneOffset(h);p=h.getTime()-p;h.setTime(p);h["setUTC"+c](m);c=this.getTimezoneOffset(h);p=h.getTime()+c;return h.setTime(p)}return this.useUTC||e&&"FullYear"===c?h["setUTC"+c](m):h["set"+c](m)};p.prototype.update=function(c){void 0===c&&(c={});var e=h(c.useUTC,!0);this.options=c=u(!0,this.options,c);this.Date=c.Date||y.Date||Date;this.timezoneOffset=
(this.useUTC=e)&&c.timezoneOffset||void 0;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=e&&!(!c.getTimezoneOffset&&!c.timezone)};p.prototype.makeTime=function(c,e,p,k,v,l){if(this.useUTC){var q=this.Date.UTC.apply(0,arguments);var d=this.getTimezoneOffset(q);q+=d;var g=this.getTimezoneOffset(q);d!==g?q+=g-d:d-36E5!==this.getTimezoneOffset(q-36E5)||m||(q-=36E5)}else q=(new this.Date(c,e,h(p,1),h(k,0),h(v,0),h(l,0))).getTime();return q};p.prototype.timezoneOffsetFunction=
function(){var c=this,e=this.options,h=e.getTimezoneOffset,m=e.moment||y.moment;if(!this.useUTC)return function(c){return 6E4*(new Date(c.toString())).getTimezoneOffset()};if(e.timezone){if(m)return function(c){return 6E4*-m.tz(c,e.timezone).utcOffset()};C(25)}return this.useUTC&&h?function(c){return 6E4*h(c.valueOf())}:function(){return 6E4*(c.timezoneOffset||0)}};p.prototype.dateFormat=function(c,e,m){if(!F(e)||isNaN(e))return a.defaultOptions.lang&&a.defaultOptions.lang.invalidDate||"";c=h(c,"%Y-%m-%d %H:%M:%S");
var p=this,k=new this.Date(e),l=this.get("Hours",k),q=this.get("Day",k),d=this.get("Date",k),g=this.get("Month",k),b=this.get("FullYear",k),A=a.defaultOptions.lang,r=A&&A.weekdays,w=A&&A.shortWeekdays;k=E({a:w?w[q]:r[q].substr(0,3),A:r[q],d:n(d),e:n(d,2," "),w:q,b:A.shortMonths[g],B:A.months[g],m:n(g+1),o:g+1,y:b.toString().substr(2,2),Y:b,H:n(l),k:l,I:n(l%12||12),l:l%12||12,M:n(this.get("Minutes",k)),p:12>l?"AM":"PM",P:12>l?"am":"pm",S:n(k.getSeconds()),L:n(Math.floor(e%1E3),3)},a.dateFormats);t(k,
function(b,d){for(;-1!==c.indexOf("%"+d);)c=c.replace("%"+d,"function"===typeof b?b.call(p,e):b)});return m?c.substr(0,1).toUpperCase()+c.substr(1):c};p.prototype.resolveDTLFormat=function(e){return I(e,!0)?e:(e=c(e),{main:e[0],from:e[1],to:e[2]})};p.prototype.getTimeTicks=function(c,e,m,p){var v=this,l=[],q={},d=new v.Date(e),g=c.unitRange,b=c.count||1,A;p=h(p,1);if(F(e)){v.set("Milliseconds",d,g>=k.second?0:b*Math.floor(v.get("Milliseconds",d)/b));g>=k.second&&v.set("Seconds",d,g>=k.minute?0:b*
Math.floor(v.get("Seconds",d)/b));g>=k.minute&&v.set("Minutes",d,g>=k.hour?0:b*Math.floor(v.get("Minutes",d)/b));g>=k.hour&&v.set("Hours",d,g>=k.day?0:b*Math.floor(v.get("Hours",d)/b));g>=k.day&&v.set("Date",d,g>=k.month?1:Math.max(1,b*Math.floor(v.get("Date",d)/b)));if(g>=k.month){v.set("Month",d,g>=k.year?0:b*Math.floor(v.get("Month",d)/b));var r=v.get("FullYear",d)}g>=k.year&&v.set("FullYear",d,r-r%b);g===k.week&&(r=v.get("Day",d),v.set("Date",d,v.get("Date",d)-r+p+(r<p?-7:0)));r=v.get("FullYear",
d);p=v.get("Month",d);var w=v.get("Date",d),N=v.get("Hours",d);e=d.getTime();!v.variableTimezone&&v.useUTC||!F(m)||(A=m-e>4*k.month||v.getTimezoneOffset(e)!==v.getTimezoneOffset(m));e=d.getTime();for(d=1;e<m;)l.push(e),e=g===k.year?v.makeTime(r+d*b,0):g===k.month?v.makeTime(r,p+d*b):!A||g!==k.day&&g!==k.week?A&&g===k.hour&&1<b?v.makeTime(r,p,w,N+d*b):e+g*b:v.makeTime(r,p,w+d*b*(g===k.day?1:7)),d++;l.push(e);g<=k.hour&&1E4>l.length&&l.forEach(function(b){0===b%18E5&&"000000000"===v.dateFormat("%H%M%S%L",
b)&&(q[b]="day")})}l.info=E(c,{higherRanks:q,totalRange:g*b});return l};p.prototype.getDateFormat=function(c,e,h,p){var m=this.dateFormat("%m-%d %H:%M:%S.%L",e),l={millisecond:15,second:12,minute:9,hour:6,day:3},q="millisecond";for(d in k){if(c===k.week&&+this.dateFormat("%w",e)===h&&"00:00:00.000"===m.substr(6)){var d="week";break}if(k[d]>c){d=q;break}if(l[d]&&m.substr(l[d])!=="01-01 00:00:00.000".substr(l[d]))break;"week"!==d&&(q=d)}return this.resolveDTLFormat(p[d]).main};return p}();"";return f});
M(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,x,F,C,E){f=f.parse;var y=E.merge,u={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:x.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:x.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',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"}};u.chart.styledMode=!1;"";var t=new C(y(u.global,u.time));a={defaultOptions:u,defaultTime:t,getOptions:function(){return u},setOptions:function(a){y(!0,u,a);if(a.time||a.global)x.time?x.time.update(y(u.global,u.time,a.global,a.time)):x.time=t;return u}};"";return a});M(f,"Core/Animation/Fx.js",[f["Core/Color/Color.js"],
f["Core/Globals.js"],f["Core/Utilities.js"]],function(a,f,x){var y=a.parse,C=f.win,E=x.isNumber,I=x.objectEach;return function(){function a(a,n,h){this.pos=NaN;this.options=n;this.elem=a;this.prop=h}a.prototype.dSetter=function(){var a=this.paths,n=a&&a[0];a=a&&a[1];var h=this.now||0,c=[];if(1!==h&&n&&a)if(n.length===a.length&&1>h)for(var k=0;k<a.length;k++){for(var e=n[k],m=a[k],p=[],D=0;D<m.length;D++){var L=e[D],H=m[D];E(L)&&E(H)&&("A"!==m[0]||4!==D&&5!==D)?p[D]=L+h*(H-L):p[D]=H}c.push(p)}else c=
a;else c=this.toD||[];this.elem.attr("d",c,void 0,!0)};a.prototype.update=function(){var a=this.elem,n=this.prop,h=this.now,c=this.options.step;if(this[n+"Setter"])this[n+"Setter"]();else a.attr?a.element&&a.attr(n,h,null,!0):a.style[n]=h+this.unit;c&&c.call(a,h,this)};a.prototype.run=function(t,n,h){var c=this,k=c.options,e=function(h){return e.stopped?!1:c.step(h)},m=C.requestAnimationFrame||function(c){setTimeout(c,13)},p=function(){for(var c=0;c<a.timers.length;c++)a.timers[c]()||a.timers.splice(c--,
1);a.timers.length&&m(p)};t!==n||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=n,this.unit=h,this.now=this.start,this.pos=0,e.elem=this.elem,e.prop=this.prop,e()&&1===a.timers.push(e)&&m(p)):(delete k.curAnim[this.prop],k.complete&&0===Object.keys(k.curAnim).length&&k.complete.call(this.elem))};a.prototype.step=function(a){var n=+new Date,h=this.options,c=this.elem,k=h.complete,e=h.duration,m=h.curAnim;if(c.attr&&!c.element)a=!1;else if(a||n>=e+this.startTime){this.now=
this.end;this.pos=1;this.update();var p=m[this.prop]=!0;I(m,function(c){!0!==c&&(p=!1)});p&&k&&k.call(c);a=!1}else this.pos=h.easing((n-this.startTime)/e),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a=!0;return a};a.prototype.initPath=function(a,n,h){function c(c,l){for(;c.length<J;){var q=c[0],d=l[J-c.length];d&&"M"===q[0]&&(c[0]="C"===d[0]?["C",q[1],q[2],q[1],q[2],q[1],q[2]]:["L",q[1],q[2]]);c.unshift(q);p&&(q=c.pop(),c.push(c[c.length-1],q))}}function k(c,l){for(;c.length<
J;)if(l=c[Math.floor(c.length/D)-1].slice(),"C"===l[0]&&(l[1]=l[5],l[2]=l[6]),p){var q=c[Math.floor(c.length/D)].slice();c.splice(c.length/2,0,l,q)}else c.push(l)}var e=a.startX,m=a.endX;h=h.slice();var p=a.isArea,D=p?2:1;n=n&&n.slice();if(!n)return[h,h];if(e&&m&&m.length){for(a=0;a<e.length;a++)if(e[a]===m[0]){var L=a;break}else if(e[0]===m[m.length-e.length+a]){L=a;var H=!0;break}else if(e[e.length-1]===m[m.length-e.length+a]){L=e.length-a;break}"undefined"===typeof L&&(n=[])}if(n.length&&E(L)){var J=
h.length+L*D;H?(c(n,h),k(h,n)):(c(h,n),k(n,h))}return[n,h]};a.prototype.fillSetter=function(){a.prototype.strokeSetter.apply(this,arguments)};a.prototype.strokeSetter=function(){this.elem.attr(this.prop,y(this.start).tweenTo(y(this.end),this.pos),void 0,!0)};a.timers=[];return a}()});M(f,"Core/Animation/AnimationUtilities.js",[f["Core/Animation/Fx.js"],f["Core/Utilities.js"]],function(a,f){function y(c){return t(c)?n({duration:500,defer:0},c):{duration:c?500:0,defer:0}}function F(c,e){for(var h=a.timers.length;h--;)a.timers[h].elem!==
c||e&&e!==a.timers[h].prop||(a.timers[h].stopped=!0)}var C=f.defined,E=f.getStyle,I=f.isArray,u=f.isNumber,t=f.isObject,n=f.merge,h=f.objectEach,c=f.pick;return{animate:function(c,e,m){var p,k="",L,H;if(!t(m)){var f=arguments;m={duration:f[2],easing:f[3],complete:f[4]}}u(m.duration)||(m.duration=400);m.easing="function"===typeof m.easing?m.easing:Math[m.easing]||Math.easeInOutSine;m.curAnim=n(e);h(e,function(h,l){F(c,l);H=new a(c,m,l);L=void 0;"d"===l&&I(e.d)?(H.paths=H.initPath(c,c.pathArray,e.d),
H.toD=e.d,p=0,L=1):c.attr?p=c.attr(l):(p=parseFloat(E(c,l))||0,"opacity"!==l&&(k="px"));L||(L=h);"string"===typeof L&&L.match("px")&&(L=L.replace(/px/g,""));H.run(p,L,k)})},animObject:y,getDeferredAnimation:function(c,e,h){var p=y(e),m=0,k=0;(h?[h]:c.series).forEach(function(c){c=y(c.options.animation);m=e&&C(e.defer)?p.defer:Math.max(m,c.duration+c.defer);k=Math.min(p.duration,c.duration)});c.renderer.forExport&&(m=0);return{defer:Math.max(0,m-k),duration:Math.min(m,k)}},setAnimation:function(h,
e){e.renderer.globalAnimation=c(h,e.options.chart.animation,!0)},stop:F}});M(f,"Core/Renderer/HTML/AST.js",[f["Core/Globals.js"],f["Core/Utilities.js"]],function(a,f){var y=a.SVG_NS,F=f.attr,C=f.createElement,E=f.css,I=f.error,u=f.isFunction,t=f.isString,n=f.objectEach,h=f.splat,c=(f=a.win.trustedTypes)&&u(f.createPolicy)&&f.createPolicy("highcharts",{createHTML:function(c){return c}}),k=c?c.createHTML(""):"";try{var e=!!(new DOMParser).parseFromString(k,"text/html")}catch(m){e=!1}u=function(){function m(c){this.nodes=
"string"===typeof c?this.parseMarkup(c):c}m.filterUserAttributes=function(c){n(c,function(e,h){var p=!0;-1===m.allowedAttributes.indexOf(h)&&(p=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(h)&&(p=t(e)&&m.allowedReferences.some(function(c){return 0===e.indexOf(c)}));p||(I(33,!1,void 0,{"Invalid attribute in config":"".concat(h)}),delete c[h])});return c};m.parseStyle=function(c){return c.split(";").reduce(function(c,e){e=e.split(":").map(function(c){return c.trim()});var h=e.shift();
h&&e.length&&(c[h.replace(/-([a-z])/g,function(c){return c[1].toUpperCase()})]=e.join(":"));return c},{})};m.setElementHTML=function(c,e){c.innerHTML=m.emptyHTML;e&&(new m(e)).addToDOM(c)};m.prototype.addToDOM=function(c){function e(c,p){var k;h(c).forEach(function(c){var l=c.tagName,q=c.textContent?a.doc.createTextNode(c.textContent):void 0,d=m.bypassHTMLFiltering;if(l)if("#text"===l)var g=q;else if(-1!==m.allowedTags.indexOf(l)||d){l=a.doc.createElementNS("svg"===l?y:p.namespaceURI||y,l);var b=
c.attributes||{};n(c,function(d,g){"tagName"!==g&&"attributes"!==g&&"children"!==g&&"style"!==g&&"textContent"!==g&&(b[g]=d)});F(l,d?b:m.filterUserAttributes(b));c.style&&E(l,c.style);q&&l.appendChild(q);e(c.children||[],l);g=l}else I(33,!1,void 0,{"Invalid tagName in config":l});g&&p.appendChild(g);k=g});return k}return e(this.nodes,c)};m.prototype.parseMarkup=function(h){var p=[];h=h.trim().replace(/ style=(["'])/g," data-style=$1");if(e)h=(new DOMParser).parseFromString(c?c.createHTML(h):h,"text/html");
else{var k=C("div");k.innerHTML=h;h={body:k}}var a=function(c,e){var l=c.nodeName.toLowerCase(),q={tagName:l};"#text"===l&&(q.textContent=c.textContent||"");if(l=c.attributes){var d={};[].forEach.call(l,function(b){"data-style"===b.name?q.style=m.parseStyle(b.value):d[b.name]=b.value});q.attributes=d}if(c.childNodes.length){var g=[];[].forEach.call(c.childNodes,function(b){a(b,g)});g.length&&(q.children=g)}e.push(q)};[].forEach.call(h.body.childNodes,function(c){return a(c,p)});return p};m.allowedAttributes=
"aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" ");
m.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");m.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead tbody tspan td th tr u ul #text".split(" ");m.emptyHTML=k;m.bypassHTMLFiltering=!1;return m}();"";return u});
M(f,"Core/FormatUtilities.js",[f["Core/DefaultOptions.js"],f["Core/Utilities.js"]],function(a,f){function y(a,h,c,k){a=+a||0;h=+h;var e=F.lang,m=(a.toString().split(".")[1]||"").split("e")[0].length,p=a.toString().split("e"),D=h;if(-1===h)h=Math.min(m,20);else if(!I(h))h=2;else if(h&&p[1]&&0>p[1]){var n=h+ +p[1];0<=n?(p[0]=(+p[0]).toExponential(n).split("e")[0],h=n):(p[0]=p[0].split(".")[0]||0,a=20>h?(p[0]*Math.pow(10,p[1])).toFixed(h):0,p[1]=0)}n=(Math.abs(p[1]?p[0]:a)+Math.pow(10,-Math.max(h,m)-
1)).toFixed(h);m=String(t(n));var f=3<m.length?m.length%3:0;c=u(c,e.decimalPoint);k=u(k,e.thousandsSep);a=(0>a?"-":"")+(f?m.substr(0,f)+k:"");a=0>+p[1]&&!D?"0":a+m.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+k);h&&(a+=c+n.slice(-h));p[1]&&0!==+a&&(a+="e"+p[1]);return a}var F=a.defaultOptions,C=a.defaultTime,E=f.getNestedProperty,I=f.isNumber,u=f.pick,t=f.pInt;return{dateFormat:function(a,h,c){return C.dateFormat(a,h,c)},format:function(a,h,c){var k="{",e=!1,m=/f$/,p=/\.([0-9])/,D=F.lang,f=c&&c.time||
C;c=c&&c.numberFormatter||y;for(var n=[];a;){var u=a.indexOf(k);if(-1===u)break;var v=a.slice(0,u);if(e){v=v.split(":");k=E(v.shift()||"",h);if(v.length&&"number"===typeof k)if(v=v.join(":"),m.test(v)){var l=parseInt((v.match(p)||["","-1"])[1],10);null!==k&&(k=c(k,l,D.decimalPoint,-1<v.indexOf(",")?D.thousandsSep:""))}else k=f.dateFormat(v,k);n.push(k)}else n.push(v);a=a.slice(u+1);k=(e=!e)?"}":"{"}n.push(a);return n.join("")},numberFormat:y}});M(f,"Core/Renderer/RendererUtilities.js",[f["Core/Utilities.js"]],
function(a){var f=a.clamp,x=a.pick,F=a.stableSort,C;(function(a){function y(a,t,n){var h=a,c=h.reducedLen||t,k=function(c,e){return(e.rank||0)-(c.rank||0)},e=function(c,e){return c.target-e.target},m,p=!0,D=[],L=0;for(m=a.length;m--;)L+=a[m].size;if(L>c){F(a,k);for(L=m=0;L<=c;)L+=a[m].size,m++;D=a.splice(m-1,a.length)}F(a,e);for(a=a.map(function(c){return{size:c.size,targets:[c.target],align:x(c.align,.5)}});p;){for(m=a.length;m--;)c=a[m],k=(Math.min.apply(0,c.targets)+Math.max.apply(0,c.targets))/
2,c.pos=f(k-c.size*c.align,0,t-c.size);m=a.length;for(p=!1;m--;)0<m&&a[m-1].pos+a[m-1].size>a[m].pos&&(a[m-1].size+=a[m].size,a[m-1].targets=a[m-1].targets.concat(a[m].targets),a[m-1].align=.5,a[m-1].pos+a[m-1].size>t&&(a[m-1].pos=t-a[m-1].size),a.splice(m,1),p=!0)}h.push.apply(h,D);m=0;a.some(function(c){var e=0;return(c.targets||[]).some(function(){h[m].pos=c.pos+e;if("undefined"!==typeof n&&Math.abs(h[m].pos-h[m].target)>n)return h.slice(0,m+1).forEach(function(c){return delete c.pos}),h.reducedLen=
(h.reducedLen||t)-.1*t,h.reducedLen>.1*t&&y(h,t,n),!0;e+=h[m].size;m++;return!1})});F(h,e);return h}a.distribute=y})(C||(C={}));return C});M(f,"Core/Renderer/SVG/SVGElement.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(a,f,x,F){var y=a.animate,E=a.animObject,I=a.stop,u=x.deg2rad,t=x.doc,n=x.svg,h=x.SVG_NS,c=x.win,k=F.addEvent,e=F.attr,m=F.createElement,p=F.css,D=F.defined,L=F.erase,H=F.extend,J=F.fireEvent,v=F.isArray,
l=F.isFunction,q=F.isString,d=F.merge,g=F.objectEach,b=F.pick,A=F.pInt,r=F.syncTimeout,w=F.uniqueKey;a=function(){function a(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=h;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}a.prototype._defaultGetter=function(d){d=b(this[d+"Value"],this[d],this.element?this.element.getAttribute(d):null,0);/^[\-0-9\.]+$/.test(d)&&(d=parseFloat(d));return d};a.prototype._defaultSetter=
function(b,d,g){g.setAttribute(d,b)};a.prototype.add=function(b){var d=this.renderer,g=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 c=this.zIndexSetter();c||(b?b.element:d.box).appendChild(g);if(this.onAdd)this.onAdd();return this};a.prototype.addClass=function(b,d){var g=d?"":this.attr("class")||"";b=(b||"").split(/ /g).reduce(function(b,d){-1===
g.indexOf(d)&&b.push(d);return b},g?[g]:[]).join(" ");b!==g&&this.attr("class",b);return this};a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};a.prototype.align=function(d,g,c){var l={},z=this.renderer,B=z.alignedObjects,K,e,r;if(d){if(this.alignOptions=d,this.alignByTranslate=g,!c||q(c))this.alignTo=K=c||"renderer",L(B,this),B.push(this),c=void 0}else d=this.alignOptions,g=this.alignByTranslate,K=this.alignTo;c=b(c,z[K],"scrollablePlotBox"===K?
z.plotBox:void 0,z);K=d.align;var a=d.verticalAlign;z=(c.x||0)+(d.x||0);B=(c.y||0)+(d.y||0);"right"===K?e=1:"center"===K&&(e=2);e&&(z+=(c.width-(d.width||0))/e);l[g?"translateX":"x"]=Math.round(z);"bottom"===a?r=1:"middle"===a&&(r=2);r&&(B+=(c.height-(d.height||0))/r);l[g?"translateY":"y"]=Math.round(B);this[this.placed?"animate":"attr"](l);this.placed=!0;this.alignAttr=l;return this};a.prototype.alignSetter=function(b){var d={left:"start",center:"middle",right:"end"};d[b]&&(this.alignValue=b,this.element.setAttribute("text-anchor",
d[b]))};a.prototype.animate=function(d,c,l){var z=this,e=E(b(c,this.renderer.globalAnimation,!0));c=e.defer;b(t.hidden,t.msHidden,t.webkitHidden,!1)&&(e.duration=0);0!==e.duration?(l&&(e.complete=l),r(function(){z.element&&y(z,d,e)},c)):(this.attr(d,void 0,l||e.complete),g(d,function(b,d){e.step&&e.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 g=b.split(" ");b=g[g.length-1];if((g=g[0])&&"none"!==g&&x.svg){this.fakeTS=!0;g=g.replace(/(^[\d\.]+)(.*?)$/g,function(b,d,g){return 2*Number(d)+g});this.removeTextOutline();var c=t.createElementNS(h,"tspan");e(c,{"class":"highcharts-text-outline",fill:b,stroke:b,"stroke-width":g,"stroke-linejoin":"round"});b=d.querySelector("textPath")||d;[].forEach.call(b.childNodes,function(b){var d=b.cloneNode(!0);d.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(b){return d.removeAttribute(b)});
c.appendChild(d)});var l=0;[].forEach.call(b.querySelectorAll("text tspan"),function(b){l+=Number(b.getAttribute("dy"))});g=t.createElementNS(h,"tspan");g.textContent="\u200b";e(g,{x:Number(d.getAttribute("x")),dy:-l});c.appendChild(g);b.insertBefore(c,b.firstChild)}};a.prototype.attr=function(b,d,c,l){var z=this.element,B=this.symbolCustomAttribs,K,e=this,r,q;if("string"===typeof b&&"undefined"!==typeof d){var a=b;b={};b[a]=d}"string"===typeof b?e=(this[b+"Getter"]||this._defaultGetter).call(this,
b,z):(g(b,function(d,g){r=!1;l||I(this,g);this.symbolName&&-1!==B.indexOf(g)&&(K||(this.symbolAttr(b),K=!0),r=!0);!this.rotation||"x"!==g&&"y"!==g||(this.doTransform=!0);r||(q=this[g+"Setter"]||this._defaultSetter,q.call(this,d,g,z),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(g)&&this.updateShadows(g,d,q))},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 g=Math.round(d)%2/2;b.x=Math.floor(b.x||this.x||0)+g;b.y=Math.floor(b.y||this.y||0)+g;b.width=Math.floor((b.width||this.width||0)-2*g);b.height=Math.floor((b.height||this.height||0)-2*g);D(b.strokeWidth)&&(b.strokeWidth=d);return b};a.prototype.complexColor=function(b,c,l){var e=this.renderer,r,B,K,q,z,a,A,G,h,m,p=[],k;J(this.renderer,"complexColor",{args:arguments},function(){b.radialGradient?B="radialGradient":b.linearGradient&&
(B="linearGradient");if(B){K=b[B];z=e.gradients;a=b.stops;h=l.radialReference;v(K)&&(b[B]=K={x1:K[0],y1:K[1],x2:K[2],y2:K[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===B&&h&&!D(K.gradientUnits)&&(q=K,K=d(K,e.getRadialAttr(h,q),{gradientUnits:"userSpaceOnUse"}));g(K,function(b,d){"id"!==d&&p.push(d,b)});g(a,function(b){p.push(b)});p=p.join(",");if(z[p])m=z[p].attr("id");else{K.id=m=w();var P=z[p]=e.createElement(B).attr(K).add(e.defs);P.radAttr=q;P.stops=[];a.forEach(function(b){0===b[1].indexOf("rgba")?
(r=f.parse(b[1]),A=r.get("rgb"),G=r.get("a")):(A=b[1],G=1);b=e.createElement("stop").attr({offset:b[0],"stop-color":A,"stop-opacity":G}).add(P);P.stops.push(b)})}k="url("+e.url+"#"+m+")";l.setAttribute(c,k);l.gradient=p;b.toString=function(){return k}}})};a.prototype.css=function(b){var c=this.styles,l={},e=this.element,r=!c;b.color&&(b.fill=b.color);c&&g(b,function(b,d){c&&c[d]!==b&&(l[d]=b,r=!0)});if(r){c&&(b=H(c,l));if(null===b.width||"auto"===b.width)delete this.textWidth;else if("text"===e.nodeName.toLowerCase()&&
b.width)var B=this.textWidth=A(b.width);this.styles=b;B&&!n&&this.renderer.forExport&&delete b.width;var K=d(b);e.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(b){return K&&delete K[b]});p(e,K);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),b.textOutline&&this.applyTextOutline(b.textOutline))}return this};a.prototype.dashstyleSetter=function(d){var g=this["stroke-width"];"inherit"===g&&(g=1);if(d=d&&d.toLowerCase()){var c=d.replace("shortdashdotdot",
"3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(d=c.length;d--;)c[d]=""+A(c[d])*b(g,NaN);d=c.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",d)}};a.prototype.destroy=function(){var b=this,d=b.element||{},c=b.renderer,l=d.ownerSVGElement,e=c.isSVG&&"SPAN"===d.nodeName&&b.parentGroup||void 0;d.onclick=d.onmouseout=
d.onmouseover=d.onmousemove=d.point=null;I(b);if(b.clipPath&&l){var B=b.clipPath;[].forEach.call(l.querySelectorAll("[clip-path],[CLIP-PATH]"),function(b){-1<b.getAttribute("clip-path").indexOf(B.element.id)&&b.removeAttribute("clip-path")});b.clipPath=B.destroy()}if(b.stops){for(l=0;l<b.stops.length;l++)b.stops[l].destroy();b.stops.length=0;b.stops=void 0}b.safeRemoveChild(d);for(c.styledMode||b.destroyShadows();e&&e.div&&0===e.div.childNodes.length;)d=e.parentGroup,b.safeRemoveChild(e.div),delete e.div,
e=d;b.alignTo&&L(c.alignedObjects,b);g(b,function(d,g){b[g]&&b[g].parentGroup===b&&b[g].destroy&&b[g].destroy();delete b[g]})};a.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(b){this.safeRemoveChild(b)},this);this.shadows=void 0};a.prototype.dSetter=function(b,d,g){v(b)&&("string"===typeof b[0]&&(b=this.renderer.pathToSegments(b)),this.pathArray=b,b=b.reduce(function(b,d,g){return d&&d.join?(g?b+" ":"")+d.join(" "):(d||"").toString()},""));/(NaN| {2}|^$)/.test(b)&&(b="M 0 0");
this[d]!==b&&(g.setAttribute(d,b),this[d]=b)};a.prototype.fadeOut=function(d){var g=this;g.animate({opacity:0},{duration:b(d,150),complete:function(){g.hide()}})};a.prototype.fillSetter=function(b,d,g){"string"===typeof b?g.setAttribute(d,b):b&&this.complexColor(b,d,g)};a.prototype.getBBox=function(d,g){var c=this.alignValue,e=this.element,r=this.renderer,B=this.styles,K=this.textStr,q=r.cache,A=r.cacheKeys,h=e.namespaceURI===this.SVG_NS;g=b(g,this.rotation,0);var w=r.styledMode?e&&a.prototype.getStyle.call(e,
"font-size"):B&&B.fontSize,G;if(D(K)){var m=K.toString();-1===m.indexOf("<")&&(m=m.replace(/[0-9]/g,"0"));m+=["",g,w,this.textWidth,c,B&&B.textOverflow,B&&B.fontWeight].join()}m&&!d&&(G=q[m]);if(!G){if(h||r.forExport){try{var k=this.fakeTS&&function(b){var d=e.querySelector(".highcharts-text-outline");d&&p(d,{display:b})};l(k)&&k("none");G=e.getBBox?H({},e.getBBox()):{width:e.offsetWidth,height:e.offsetHeight,x:0,y:0};l(k)&&k("")}catch(U){""}if(!G||0>G.width)G={x:0,y:0,width:0,height:0}}else G=this.htmlGetBBox();
if(r.isSVG&&(r=G.width,d=G.height,h&&(G.height=d={"11px,17":14,"13px,20":16}[""+(w||"")+",".concat(Math.round(d))]||d),g)){h=Number(e.getAttribute("y")||0)-G.y;c={right:1,center:.5}[c||0]||0;B=g*u;w=(g-90)*u;var z=r*Math.cos(B);g=r*Math.sin(B);k=Math.cos(w);B=Math.sin(w);r=G.x+c*(r-z)+h*k;w=r+z;k=w-d*k;z=k-z;h=G.y+h-c*g+h*B;c=h+g;d=c-d*B;g=d-g;G.x=Math.min(r,w,k,z);G.y=Math.min(h,c,d,g);G.width=Math.max(r,w,k,z)-G.x;G.height=Math.max(h,c,d,g)-G.y}if(m&&(""===K||0<G.height)){for(;250<A.length;)delete q[A.shift()];
q[m]||A.push(m);q[m]=G}}return G};a.prototype.getStyle=function(b){return c.getComputedStyle(this.element||this,"").getPropertyValue(b)};a.prototype.hasClass=function(b){return-1!==(""+this.attr("class")).split(" ").indexOf(b)};a.prototype.hide=function(){return this.attr({visibility:"hidden"})};a.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};a.prototype.init=function(b,d){this.element="span"===d?m(d):t.createElementNS(this.SVG_NS,d);this.renderer=b;J(this,"afterInit")};a.prototype.invert=
function(b){this.inverted=b;this.updateTransform();return this};a.prototype.on=function(b,d){var g=this.onEvents;if(g[b])g[b]();g[b]=k(this.element,b,d);return this};a.prototype.opacitySetter=function(b,d,g){this.opacity=b=Number(Number(b).toFixed(3));g.setAttribute(d,b)};a.prototype.removeClass=function(b){return this.attr("class",(""+this.attr("class")).replace(q(b)?new RegExp("(^| )".concat(b,"( |$)")):b," ").replace(/ +/g," ").trim())};a.prototype.removeTextOutline=function(){var b=this.element.querySelector("tspan.highcharts-text-outline");
b&&this.safeRemoveChild(b)};a.prototype.safeRemoveChild=function(b){var d=b.parentNode;d&&d.removeChild(b)};a.prototype.setRadialReference=function(b){var d=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=b;d&&d.radAttr&&d.animate(this.renderer.getRadialAttr(b,d.radAttr));return this};a.prototype.setTextPath=function(b,g){var c=this;g=d(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},g);var l=this.renderer.url,e=this.text||
this,B=e.textPath,K=g.attributes,r=g.enabled;b=b||B&&B.path;B&&B.undo();b&&r?(g=k(e,"afterModifyTree",function(d){if(b&&r){var g=b.attr("id");g||b.attr("id",g=w());var B={x:0,y:0};D(K.dx)&&(B.dx=K.dx,delete K.dx);D(K.dy)&&(B.dy=K.dy,delete K.dy);e.attr(B);c.attr({transform:""});c.box&&(c.box=c.box.destroy());B=d.nodes.slice(0);d.nodes.length=0;d.nodes[0]={tagName:"textPath",attributes:H(K,{"text-anchor":K.textAnchor,href:""+l+"#".concat(g)}),children:B}}}),e.textPath={path:b,undo:g}):(e.attr({dx:0,
dy:0}),delete e.textPath);this.added&&(e.textCache="",this.renderer.buildText(e));return this};a.prototype.shadow=function(b,d,c){var l=[],r=this.element,B=this.oldShadowOptions,K={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},q=!1,a;!0===b?a=K:"object"===typeof b&&(a=H(K,b));a&&(a&&B&&g(a,function(b,d){b!==B[d]&&(q=!0)}),q&&this.destroyShadows(),this.oldShadowOptions=a);if(!a)this.destroyShadows();else if(!this.shadows){var h=a.opacity/a.width;
var A=this.parentInverted?"translate(".concat(a.offsetY,", ").concat(a.offsetX,")"):"translate(".concat(a.offsetX,", ").concat(a.offsetY,")");for(K=1;K<=a.width;K++){var G=r.cloneNode(!1);var w=2*a.width+1-2*K;e(G,{stroke:b.color||"#000000","stroke-opacity":h*K,"stroke-width":w,transform:A,fill:"none"});G.setAttribute("class",(G.getAttribute("class")||"")+" highcharts-shadow");c&&(e(G,"height",Math.max(e(G,"height")-w,0)),G.cutHeight=w);d?d.element.appendChild(G):r.parentNode&&r.parentNode.insertBefore(G,
r);l.push(G)}this.shadows=l}return this};a.prototype.show=function(b){void 0===b&&(b=!0);return this.attr({visibility:b?"inherit":"visible"})};a.prototype.strokeSetter=function(b,d,g){this[d]=b;this.stroke&&this["stroke-width"]?(a.prototype.fillSetter.call(this,this.stroke,"stroke",g),g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===d&&0===b&&this.hasStroke?(g.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(g.setAttribute("stroke-width",
this["stroke-width"]),this.hasStroke=!0)};a.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var b=this.getStyle("stroke-width"),d=0;if(b.indexOf("px")===b.length-2)d=A(b);else if(""!==b){var g=t.createElementNS(h,"rect");e(g,{width:b,"stroke-width":0});this.element.parentNode.appendChild(g);d=g.getBBox().width;g.parentNode.removeChild(g)}return d};a.prototype.symbolAttr=function(d){var g=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(c){g[c]=
b(d[c],g[c])});g.attr({d:g.renderer.symbols[g.symbolName](g.x,g.y,g.width,g.height,g)})};a.prototype.textSetter=function(b){b!==this.textStr&&(delete this.textPxLength,this.textStr=b,this.added&&this.renderer.buildText(this))};a.prototype.titleSetter=function(d){var g=this.element,c=g.getElementsByTagName("title")[0]||t.createElementNS(this.SVG_NS,"title");g.insertBefore?g.insertBefore(c,g.firstChild):g.appendChild(c);c.textContent=String(b(d,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/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,g){var c=this.shadows;if(c)for(var l=c.length;l--;)g.call(c[l],"height"===b?Math.max(d-(c[l].cutHeight||0),0):"d"===b?this.d:d,b,c[l])};a.prototype.updateTransform=function(){var d=this.scaleX,g=this.scaleY,c=this.inverted,l=this.rotation,e=this.matrix,B=this.element,K=this.translateX||
0,r=this.translateY||0;c&&(K+=this.width,r+=this.height);K=["translate("+K+","+r+")"];D(e)&&K.push("matrix("+e.join(",")+")");c?K.push("rotate(90) scale(-1,1)"):l&&K.push("rotate("+l+" "+b(this.rotationOriginX,B.getAttribute("x"),0)+" "+b(this.rotationOriginY,B.getAttribute("y")||0)+")");(D(d)||D(g))&&K.push("scale("+b(d,1)+" "+b(g,1)+")");K.length&&!(this.text||this).textPath&&B.setAttribute("transform",K.join(" "))};a.prototype.visibilitySetter=function(b,d,g){"inherit"===b?g.removeAttribute(d):
this[d]!==b&&g.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 g=this.renderer,c=this.parentGroup,l=(c||g).element||g.box,B=this.element;g=l===g.box;var e=!1;var r=this.added;var q;D(b)?(B.setAttribute("data-z-index",b),b=+b,this[d]===b&&(r=!1)):D(this[d])&&B.removeAttribute("data-z-index");this[d]=b;if(r){(b=this.zIndex)&&c&&(c.handleZ=!0);d=
l.childNodes;for(q=d.length-1;0<=q&&!e;q--){c=d[q];r=c.getAttribute("data-z-index");var a=!D(r);if(c!==B)if(0>b&&a&&!g&&!q)l.insertBefore(B,d[q]),e=!0;else if(A(r)<=b||a&&(!D(b)||0<=b))l.insertBefore(B,d[q+1]||null),e=!0}e||(l.insertBefore(B,d[g?3:0]||null),e=!0)}return e};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});M(f,"Core/Renderer/RendererRegistry.js",[f["Core/Globals.js"]],function(a){var f;(function(f){f.rendererTypes={};var y;f.getRendererType=function(a){void 0===a&&(a=y);return f.rendererTypes[a]||f.rendererTypes[y]};f.registerRendererType=function(C,x,I){f.rendererTypes[C]=x;if(!y||I)y=C,a.Renderer=x}})(f||
(f={}));return f});M(f,"Core/Renderer/SVG/SVGLabel.js",[f["Core/Renderer/SVG/SVGElement.js"],f["Core/Utilities.js"]],function(a,f){var y=this&&this.__extends||function(){var a=function(h,c){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(h,c)};return function(h,c){function k(){this.constructor=h}a(h,c);h.prototype=null===c?Object.create(c):(k.prototype=c.prototype,new k)}}(),F=f.defined,
C=f.extend,E=f.isNumber,I=f.merge,u=f.pick,t=f.removeEvent;return function(f){function h(c,a,e,m,p,D,n,H,t,v){var l=f.call(this)||this;l.paddingLeftSetter=l.paddingSetter;l.paddingRightSetter=l.paddingSetter;l.init(c,"g");l.textStr=a;l.x=e;l.y=m;l.anchorX=D;l.anchorY=n;l.baseline=t;l.className=v;l.addClass("button"===v?"highcharts-no-tooltip":"highcharts-label");v&&l.addClass("highcharts-"+v);l.text=c.text(void 0,0,0,H).attr({zIndex:1});var q;"string"===typeof p&&((q=/^url\((.*?)\)$/.test(p))||l.renderer.symbols[p])&&
(l.symbolKey=p);l.bBox=h.emptyBBox;l.padding=3;l.baselineOffset=0;l.needsBox=c.styledMode||q;l.deferredAttr={};l.alignFactor=0;return l}y(h,f);h.prototype.alignSetter=function(c){c={left:0,center:.5,right:1}[c];c!==this.alignFactor&&(this.alignFactor=c,this.bBox&&E(this.xSetting)&&this.attr({x:this.xSetting}))};h.prototype.anchorXSetter=function(c,a){this.anchorX=c;this.boxAttr(a,Math.round(c)-this.getCrispAdjust()-this.xSetting)};h.prototype.anchorYSetter=function(c,a){this.anchorY=c;this.boxAttr(a,
c-this.ySetting)};h.prototype.boxAttr=function(c,a){this.box?this.box.attr(c,a):this.deferredAttr[c]=a};h.prototype.css=function(c){if(c){var k={};c=I(c);h.textProps.forEach(function(e){"undefined"!==typeof c[e]&&(k[e]=c[e],delete c[e])});this.text.css(k);var e="width"in k;"fontSize"in k||"fontWeight"in k?this.updateTextPadding():e&&this.updateBoxSize()}return a.prototype.css.call(this,c)};h.prototype.destroy=function(){t(this.element,"mouseenter");t(this.element,"mouseleave");this.text&&this.text.destroy();
this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};h.prototype.fillSetter=function(c,a){c&&(this.needsBox=!0);this.fill=c;this.boxAttr(a,c)};h.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var c=this.padding,a=u(this.paddingLeft,c);return{width:this.width,height:this.height,x:this.bBox.x-a,y:this.bBox.y-c}};h.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};h.prototype.heightSetter=function(c){this.heightSetting=c};h.prototype.onAdd=function(){var c=this.textStr;this.text.add(this);this.attr({text:F(c)?c:"",x:this.x,y:this.y});this.box&&F(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};h.prototype.paddingSetter=function(c,a){E(c)?c!==this[a]&&(this[a]=c,this.updateTextPadding()):this[a]=void 0};h.prototype.rSetter=function(c,a){this.boxAttr(a,c)};h.prototype.shadow=function(c){c&&!this.renderer.styledMode&&
(this.updateBoxSize(),this.box&&this.box.shadow(c));return this};h.prototype.strokeSetter=function(c,a){this.stroke=c;this.boxAttr(a,c)};h.prototype["stroke-widthSetter"]=function(c,a){c&&(this.needsBox=!0);this["stroke-width"]=c;this.boxAttr(a,c)};h.prototype["text-alignSetter"]=function(c){this.textAlign=c};h.prototype.textSetter=function(c){"undefined"!==typeof c&&this.text.attr({text:c});this.updateTextPadding()};h.prototype.updateBoxSize=function(){var c=this.text,a=c.element.style,e={},m=this.padding,
p=this.bBox=E(this.widthSetting)&&E(this.heightSetting)&&!this.textAlign||!F(c.textStr)?h.emptyBBox:c.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||p.height||0)+2*m;a=this.renderer.fontMetrics(a&&a.fontSize,c);this.baselineOffset=m+Math.min((this.text.firstLineMetrics||a).b,p.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-a.h)/2);this.needsBox&&!c.textPath&&(this.box||(c=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),
c.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),c.add(this)),c=this.getCrispAdjust(),e.x=c,e.y=(this.baseline?-this.baselineOffset:0)+c,e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(C(e,this.deferredAttr)),this.deferredAttr={})};h.prototype.updateTextPadding=function(){var c=this.text;if(!c.textPath){this.updateBoxSize();var a=this.baseline?0:this.baselineOffset,e=u(this.paddingLeft,this.padding);
F(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(e+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(e!==c.x||a!==c.y)c.attr("x",e),c.hasBoxWidthChanged&&(this.bBox=c.getBBox(!0)),"undefined"!==typeof a&&c.attr("y",a);c.x=e;c.y=a}};h.prototype.widthSetter=function(c){this.widthSetting=E(c)?c:void 0};h.prototype.getPaddedWidth=function(){var c=this.padding,a=u(this.paddingLeft,c);c=u(this.paddingRight,c);return(this.widthSetting||this.bBox.width||
0)+a+c};h.prototype.xSetter=function(c){this.x=c;this.alignFactor&&(c-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(c);this.attr("translateX",this.xSetting)};h.prototype.ySetter=function(c){this.ySetting=this.y=Math.round(c);this.attr("translateY",this.ySetting)};h.emptyBBox={width:0,height:0,x:0,y:0};h.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return h}(a)});
M(f,"Core/Renderer/SVG/Symbols.js",[f["Core/Utilities.js"]],function(a){function f(a,f,n,h,c){var k=[];if(c){var e=c.start||0,m=I(c.r,n);n=I(c.r,h||n);var p=(c.end||0)-.001;h=c.innerR;var D=I(c.open,.001>Math.abs((c.end||0)-e-2*Math.PI)),L=Math.cos(e),H=Math.sin(e),t=Math.cos(p),v=Math.sin(p);e=I(c.longArc,.001>p-e-Math.PI?0:1);k.push(["M",a+m*L,f+n*H],["A",m,n,0,e,I(c.clockwise,1),a+m*t,f+n*v]);C(h)&&k.push(D?["M",a+h*t,f+h*v]:["L",a+h*t,f+h*v],["A",h,h,0,e,C(c.clockwise)?1-c.clockwise:0,a+h*L,f+
h*H]);D||k.push(["Z"])}return k}function x(a,f,n,h,c){return c&&c.r?F(a,f,n,h,c):[["M",a,f],["L",a+n,f],["L",a+n,f+h],["L",a,f+h],["Z"]]}function F(a,f,n,h,c){c=c&&c.r||0;return[["M",a+c,f],["L",a+n-c,f],["C",a+n,f,a+n,f,a+n,f+c],["L",a+n,f+h-c],["C",a+n,f+h,a+n,f+h,a+n-c,f+h],["L",a+c,f+h],["C",a,f+h,a,f+h,a,f+h-c],["L",a,f+c],["C",a,f,a,f,a+c,f]]}var C=a.defined,E=a.isNumber,I=a.pick;return{arc:f,callout:function(a,f,n,h,c){var k=Math.min(c&&c.r||0,n,h),e=k+6,m=c&&c.anchorX;c=c&&c.anchorY||0;var p=
F(a,f,n,h,{r:k});if(!E(m))return p;a+m>=n?c>f+e&&c<f+h-e?p.splice(3,1,["L",a+n,c-6],["L",a+n+6,c],["L",a+n,c+6],["L",a+n,f+h-k]):p.splice(3,1,["L",a+n,h/2],["L",m,c],["L",a+n,h/2],["L",a+n,f+h-k]):0>=a+m?c>f+e&&c<f+h-e?p.splice(7,1,["L",a,c+6],["L",a-6,c],["L",a,c-6],["L",a,f+k]):p.splice(7,1,["L",a,h/2],["L",m,c],["L",a,h/2],["L",a,f+k]):c&&c>h&&m>a+e&&m<a+n-e?p.splice(5,1,["L",m+6,f+h],["L",m,f+h+6],["L",m-6,f+h],["L",a+k,f+h]):c&&0>c&&m>a+e&&m<a+n-e&&p.splice(1,1,["L",m-6,f],["L",m,f-6],["L",m+
6,f],["L",n-k,f]);return p},circle:function(a,t,n,h){return f(a+n/2,t+h/2,n/2,h/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(a,f,n,h){return[["M",a+n/2,f],["L",a+n,f+h/2],["L",a+n/2,f+h],["L",a,f+h/2],["Z"]]},rect:x,roundedRect:F,square:x,triangle:function(a,f,n,h){return[["M",a+n/2,f],["L",a+n,f+h],["L",a,f+h],["Z"]]},"triangle-down":function(a,f,n,h){return[["M",a,f],["L",a+n,f],["L",a+n/2,f+h],["Z"]]}}});M(f,"Core/Renderer/SVG/TextBuilder.js",[f["Core/Renderer/HTML/AST.js"],
f["Core/Globals.js"],f["Core/Utilities.js"]],function(a,f,x){var y=f.doc,C=f.SVG_NS,E=f.win,I=x.attr,u=x.extend,t=x.fireEvent,n=x.isString,h=x.objectEach,c=x.pick;return function(){function k(c){var a=c.styles;this.renderer=c.renderer;this.svgElement=c;this.width=c.textWidth;this.textLineHeight=a&&a.lineHeight;this.textOutline=a&&a.textOutline;this.ellipsis=!(!a||"ellipsis"!==a.textOverflow);this.noWrap=!(!a||"nowrap"!==a.whiteSpace);this.fontSize=a&&a.fontSize}k.prototype.buildSVG=function(){var e=
this.svgElement,h=e.element,p=e.renderer,k=c(e.textStr,"").toString(),f=-1!==k.indexOf("<"),H=h.childNodes;p=this.width&&!e.added&&p.box;var J=/<br.*?>/g,v=[k,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(v!==e.textCache){e.textCache=v;delete e.actualWidth;for(v=H.length;v--;)h.removeChild(H[v]);f||this.ellipsis||this.width||e.textPath||-1!==k.indexOf(" ")&&(!this.noWrap||J.test(k))?""!==k&&(p&&p.appendChild(h),k=new a(k),this.modifyTree(k.nodes),
k.addToDOM(h),this.modifyDOM(),this.ellipsis&&-1!==(h.textContent||"").indexOf("\u2026")&&e.attr("title",this.unescapeEntities(e.textStr||"",["&lt;","&gt;"])),p&&p.removeChild(h)):h.appendChild(y.createTextNode(this.unescapeEntities(k)));n(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}};k.prototype.modifyDOM=function(){var c=this,a=this.svgElement,h=I(a.element,"x");a.firstLineMetrics=void 0;for(var k;k=a.element.firstChild;)if(/^[\s\u200B]*$/.test(k.textContent||" "))a.element.removeChild(k);
else break;[].forEach.call(a.element.querySelectorAll("tspan.highcharts-br"),function(e,l){e.nextSibling&&e.previousSibling&&(0===l&&1===e.previousSibling.nodeType&&(a.firstLineMetrics=a.renderer.fontMetrics(void 0,e.previousSibling)),I(e,{dy:c.getLineHeight(e.nextSibling),x:h}))});var f=this.width||0;if(f){var n=function(e,l){var q=e.textContent||"",d=q.replace(/([^\^])-/g,"$1- ").split(" "),g=!c.noWrap&&(1<d.length||1<a.element.childNodes.length),b=c.getLineHeight(l),A=0,r=a.actualWidth;if(c.ellipsis)q&&
c.truncate(e,q,void 0,0,Math.max(0,f-parseInt(c.fontSize||12,10)),function(b,d){return b.substring(0,d)+"\u2026"});else if(g){q=[];for(g=[];l.firstChild&&l.firstChild!==e;)g.push(l.firstChild),l.removeChild(l.firstChild);for(;d.length;)d.length&&!c.noWrap&&0<A&&(q.push(e.textContent||""),e.textContent=d.join(" ").replace(/- /g,"-")),c.truncate(e,void 0,d,0===A?r||0:0,f,function(b,g){return d.slice(0,g).join(" ").replace(/- /g,"-")}),r=a.actualWidth,A++;g.forEach(function(b){l.insertBefore(b,e)});
q.forEach(function(d){l.insertBefore(y.createTextNode(d),e);d=y.createElementNS(C,"tspan");d.textContent="\u200b";I(d,{dy:b,x:h});l.insertBefore(d,e)})}},J=function(c){[].slice.call(c.childNodes).forEach(function(l){l.nodeType===E.Node.TEXT_NODE?n(l,c):(-1!==l.className.baseVal.indexOf("highcharts-br")&&(a.actualWidth=0),J(l))})};J(a.element)}};k.prototype.getLineHeight=function(c){var a;c=c.nodeType===E.Node.TEXT_NODE?c.parentElement:c;this.renderer.styledMode||(a=c&&/(px|em)$/.test(c.style.fontSize)?
c.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(a,c||this.svgElement.element).h};k.prototype.modifyTree=function(c){var a=this,e=function(h,p){var k=h.attributes;k=void 0===k?{}:k;var m=h.children,f=h.style;f=void 0===f?{}:f;var l=h.tagName,q=a.renderer.styledMode;if("b"===l||"strong"===l)q?k["class"]="highcharts-strong":f.fontWeight="bold";else if("i"===l||"em"===l)q?k["class"]="highcharts-emphasized":
f.fontStyle="italic";f&&f.color&&(f.fill=f.color);"br"===l?(k["class"]="highcharts-br",h.textContent="\u200b",(p=c[p+1])&&p.textContent&&(p.textContent=p.textContent.replace(/^ +/gm,""))):"a"===l&&m&&m.some(function(d){return"#text"===d.tagName})&&(h.children=[{children:m,tagName:"tspan"}]);"#text"!==l&&"a"!==l&&(h.tagName="tspan");u(h,{attributes:k,style:f});m&&m.filter(function(d){return"#text"!==d.tagName}).forEach(e)};c.forEach(e);t(this.svgElement,"afterModifyTree",{nodes:c})};k.prototype.truncate=
function(c,a,h,k,f,n){var e=this.svgElement,p=e.renderer,l=e.rotation,q=[],d=h?1:0,g=(a||h||"").length,b=g,A,r=function(b,d){d=d||b;var g=c.parentNode;if(g&&"undefined"===typeof q[d])if(g.getSubStringLength)try{q[d]=k+g.getSubStringLength(0,h?d+1:d)}catch(O){""}else p.getSpanWidth&&(c.textContent=n(a||h,b),q[d]=k+p.getSpanWidth(e,c));return q[d]};e.rotation=0;var w=r(c.textContent.length);if(k+w>f){for(;d<=g;)b=Math.ceil((d+g)/2),h&&(A=n(h,b)),w=r(b,A&&A.length-1),d===g?d=g+1:w>f?g=b-1:d=b;0===g?
c.textContent="":a&&g===a.length-1||(c.textContent=A||n(a||h,b))}h&&h.splice(0,b);e.actualWidth=w;e.rotation=l};k.prototype.unescapeEntities=function(c,a){h(this.renderer.escapes,function(e,h){a&&-1!==a.indexOf(e)||(c=c.toString().replace(new RegExp(e,"g"),h))});return c};return k}()});M(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,x,F,C,E,I,u,t){var n=x.charts,h=x.deg2rad,c=x.doc,k=x.isFirefox,e=x.isMS,m=x.isWebKit,p=x.noop,D=x.SVG_NS,L=x.symbolSizes,H=x.win,J=t.addEvent,v=t.attr,l=t.createElement,q=t.css,d=t.defined,g=t.destroyObjectProperties,b=t.extend,A=t.isArray,r=t.isNumber,w=t.isObject,N=t.isString,z=t.merge,S=t.pick,O=t.pInt,y=t.uniqueKey,X;x=function(){function B(b,d,g,c,a,B,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,g,c,a,B,l)}B.prototype.init=function(b,d,g,a,B,l,e){var r=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),K=r.element;e||r.css(this.getStyle(a));b.appendChild(K);v(b,"dir","ltr");-1===b.innerHTML.indexOf("xmlns")&&v(K,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=K;this.boxWrapper=r;this.alignedObjects=
[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(c.createTextNode("Created with Highcharts 10.2.1"));this.defs=this.createElement("defs").add();this.allowHTML=l;this.forExport=B;this.styledMode=e;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(d,g,!1);var h;k&&b.getBoundingClientRect&&(d=function(){q(b,{left:0,top:0});h=b.getBoundingClientRect();q(b,{left:Math.ceil(h.left)-h.left+"px",top:Math.ceil(h.top)-h.top+"px"})},d(),this.unSubPixelFix=
J(H,"resize",d))};B.prototype.definition=function(b){return(new a([b])).addToDOM(this.defs.element)};B.prototype.getReferenceURL=function(){if((k||m)&&c.getElementsByTagName("base").length){if(!d(X)){var b=y();b=(new a([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:b},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(b,")"),fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(c.body);
q(b,{position:"fixed",top:0,left:0,zIndex:9E5});var g=c.elementFromPoint(6,6);X="hitme"===(g&&g.id);c.body.removeChild(b)}if(X)return H.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};B.prototype.getStyle=function(d){return this.style=b({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},d)};B.prototype.setStyle=function(b){this.boxWrapper.css(this.getStyle(b))};B.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};
B.prototype.destroy=function(){var b=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();g(this.gradients||{});this.gradients=null;b&&(this.defs=b.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};B.prototype.createElement=function(b){var d=new this.Element;d.init(this,b);return d};B.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]}};B.prototype.buildText=function(b){(new u(b)).buildSVG()};
B.prototype.getContrast=function(b){b=f.parse(b).rgba.map(function(b){b/=255;return.03928>=b?b/12.92:Math.pow((b+.055)/1.055,2.4)});b=.2126*b[0]+.7152*b[1]+.0722*b[2];return 1.05/(b+.05)>(b+.05)/.05?"#FFFFFF":"#000000"};B.prototype.button=function(d,g,c,B,l,r,h,q,A,p){void 0===l&&(l={});var G=this.label(d,g,c,A,void 0,void 0,p,void 0,"button"),K=this.styledMode;d=l.states||{};var k=0;l=z(l);delete l.states;var m=z({color:"#333333",cursor:"pointer",fontWeight:"normal"},l.style);delete l.style;var f=
a.filterUserAttributes(l);G.attr(z({padding:8,r:2},f));if(!K){f=z({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},f);r=z(f,{fill:"#e6e6e6"},a.filterUserAttributes(r||d.hover||{}));var P=r.style;delete r.style;h=z(f,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a.filterUserAttributes(h||d.select||{}));var Q=h.style;delete h.style;q=z(f,{style:{color:"#cccccc"}},a.filterUserAttributes(q||d.disabled||{}));var v=q.style;delete q.style}J(G.element,e?"mouseover":"mouseenter",function(){3!==
k&&G.setState(1)});J(G.element,e?"mouseout":"mouseleave",function(){3!==k&&G.setState(k)});G.setState=function(b){1!==b&&(G.state=k=b);G.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][b||0]);K||(G.attr([f,r,h,q][b||0]),b=[m,P,Q,v][b||0],w(b)&&G.css(b))};K||(G.attr(f).css(b({cursor:"default"},m)),p&&G.text.css({pointerEvents:"none"}));return G.on("touchstart",function(b){return b.stopPropagation()}).on("click",
function(b){3!==k&&B.call(G,b)})};B.prototype.crispLine=function(b,g,c){void 0===c&&(c="round");var a=b[0],B=b[1];d(a[1])&&a[1]===B[1]&&(a[1]=B[1]=Math[c](a[1])-g%2/2);d(a[2])&&a[2]===B[2]&&(a[2]=B[2]=Math[c](a[2])+g%2/2);return b};B.prototype.path=function(d){var g=this.styledMode?{}:{fill:"none"};A(d)?g.d=d:w(d)&&b(g,d);return this.createElement("path").attr(g)};B.prototype.circle=function(b,d,g){b=w(b)?b:"undefined"===typeof b?{}:{x:b,y:d,r:g};d=this.createElement("circle");d.xSetter=d.ySetter=
function(b,d,g){g.setAttribute("c"+d,b)};return d.attr(b)};B.prototype.arc=function(b,d,g,c,a,B){w(b)?(c=b,d=c.y,g=c.r,b=c.x):c={innerR:c,start:a,end:B};b=this.symbol("arc",b,d,g,g,c);b.r=g;return b};B.prototype.rect=function(b,d,g,c,a,B){a=w(b)?b.r:a;var l=this.createElement("rect");b=w(b)?b:"undefined"===typeof b?{}:{x:b,y:d,width:Math.max(g,0),height:Math.max(c,0)};this.styledMode||("undefined"!==typeof B&&(b["stroke-width"]=B,b=l.crisp(b)),b.fill="none");a&&(b.r=a);l.rSetter=function(b,d,g){l.r=
b;v(g,{rx:b,ry:b})};l.rGetter=function(){return l.r||0};return l.attr(b)};B.prototype.setSize=function(b,d,g){this.width=b;this.height=d;this.boxWrapper.animate({width:b,height:d},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:S(g,!0)?void 0:0});this.alignElements()};B.prototype.g=function(b){var d=this.createElement("g");return b?d.attr({"class":"highcharts-"+b}):d};B.prototype.image=function(b,d,g,c,a,B){var l={preserveAspectRatio:"none"},e=function(b,
d){b.setAttributeNS?b.setAttributeNS("http://www.w3.org/1999/xlink","href",d):b.setAttribute("hc-svg-href",d)};r(d)&&(l.x=d);r(g)&&(l.y=g);r(c)&&(l.width=c);r(a)&&(l.height=a);var h=this.createElement("image").attr(l);d=function(d){e(h.element,b);B.call(h,d)};B?(e(h.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),g=new H.Image,J(g,"load",d),g.src=b,g.complete&&d({})):e(h.element,b);return h};B.prototype.symbol=function(g,a,B,e,r,h){var G=this,A=/^url\((.*?)\)$/,
w=A.test(g),K=!w&&(this.symbols[g]?g:"circle"),p=K&&this.symbols[K],k;if(p){"number"===typeof a&&(k=p.call(this.symbols,Math.round(a||0),Math.round(B||0),e||0,r||0,h));var f=this.path(k);G.styledMode||f.attr("fill","none");b(f,{symbolName:K||void 0,x:a,y:B,width:e,height:r});h&&b(f,h)}else if(w){var m=g.match(A)[1];var z=f=this.image(m);z.imgwidth=S(L[m]&&L[m].width,h&&h.width);z.imgheight=S(L[m]&&L[m].height,h&&h.height);var v=function(b){return b.attr({width:b.width,height:b.height})};["width",
"height"].forEach(function(b){z[b+"Setter"]=function(b,g){var c=this["img"+g];this[g]=b;d(c)&&(h&&"within"===h.backgroundSize&&this.width&&this.height&&(c=Math.round(c*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(g,c),this.alignByTranslate||(b=((this[g]||0)-c)/2,this.attr("width"===g?{translateX:b}:{translateY:b})))}});d(a)&&z.attr({x:a,y:B});z.isImg=!0;d(z.imgwidth)&&d(z.imgheight)?v(z):(z.attr({width:0,height:0}),l("img",{onload:function(){var b=
n[G.chartIndex];0===this.width&&(q(this,{position:"absolute",top:"-999em"}),c.body.appendChild(this));L[m]={width:this.width,height:this.height};z.imgwidth=this.width;z.imgheight=this.height;z.element&&v(z);this.parentNode&&this.parentNode.removeChild(this);G.imgCount--;if(!G.imgCount&&b&&!b.hasLoaded)b.onload()},src:m}),this.imgCount++)}return f};B.prototype.clipRect=function(b,d,g,c){var a=y()+"-",B=this.createElement("clipPath").attr({id:a}).add(this.defs);b=this.rect(b,d,g,c,0).add(B);b.id=a;
b.clipPath=B;b.count=0;return b};B.prototype.text=function(b,g,c,a){var B={};if(a&&(this.allowHTML||!this.forExport))return this.html(b,g,c);B.x=Math.round(g||0);c&&(B.y=Math.round(c));d(b)&&(B.text=b);b=this.createElement("text").attr(B);if(!a||this.forExport&&!this.allowHTML)b.xSetter=function(b,d,g){for(var c=g.getElementsByTagName("tspan"),a=g.getAttribute(d),B=0,l;B<c.length;B++)l=c[B],l.getAttribute(d)===a&&l.setAttribute(d,b);g.setAttribute(d,b)};return b};B.prototype.fontMetrics=function(b,
d){b=!this.styledMode&&/px/.test(b)||!H.getComputedStyle?b||d&&d.style&&d.style.fontSize||this.style&&this.style.fontSize:d&&C.prototype.getStyle.call(d,"font-size");b=/px/.test(b)?O(b):12;d=24>b?b+3:Math.round(1.2*b);return{h:d,b:Math.round(.8*d),f:b}};B.prototype.rotCorr=function(b,d,g){var c=b;d&&g&&(c=Math.max(c*Math.cos(d*h),4));return{x:-b/3*Math.sin(d*h),y:c}};B.prototype.pathToSegments=function(b){for(var d=[],g=[],c={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},a=0;a<b.length;a++)N(g[0])&&r(b[a])&&
g.length===c[g[0].toUpperCase()]&&b.splice(a,0,g[0].replace("M","L").replace("m","l")),"string"===typeof b[a]&&(g.length&&d.push(g.slice(0)),g.length=0),g.push(b[a]);d.push(g.slice(0));return d};B.prototype.label=function(b,d,g,c,a,B,l,e,r){return new E(this,b,d,g,c,a,B,l,e,r)};B.prototype.alignElements=function(){this.alignedObjects.forEach(function(b){return b.align()})};return B}();b(x.prototype,{Element:C,SVG_NS:D,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:I,
draw:p});F.registerRendererType("svg",x,!0);"";return x});M(f,"Core/Renderer/HTML/HTMLElement.js",[f["Core/Globals.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Utilities.js"]],function(a,f,x){var y=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 h(){this.constructor=a}c(a,e);a.prototype=null===e?
Object.create(e):(h.prototype=e.prototype,new h)}}(),C=a.isFirefox,E=a.isMS,I=a.isWebKit,u=a.win,t=x.css,n=x.defined,h=x.extend,c=x.pick,k=x.pInt;return function(a){function e(){return null!==a&&a.apply(this,arguments)||this}y(e,a);e.compose=function(c){if(-1===e.composedClasses.indexOf(c)){e.composedClasses.push(c);var a=e.prototype,h=c.prototype;h.getSpanCorrection=a.getSpanCorrection;h.htmlCss=a.htmlCss;h.htmlGetBBox=a.htmlGetBBox;h.htmlUpdateTransform=a.htmlUpdateTransform;h.setSpanRotation=a.setSpanRotation}return c};
e.prototype.getSpanCorrection=function(c,a,e){this.xCorr=-c*e;this.yCorr=-a};e.prototype.htmlCss=function(a){var e="SPAN"===this.element.tagName&&a&&"width"in a,k=c(e&&a.width,void 0);if(e){delete a.width;this.textWidth=k;var f=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=h(this.styles,a);t(this.element,a);f&&this.htmlUpdateTransform();return this};e.prototype.htmlGetBBox=function(){var c=this.element;return{x:c.offsetLeft,y:c.offsetTop,width:c.offsetWidth,
height:c.offsetHeight}};e.prototype.htmlUpdateTransform=function(){if(this.added){var c=this.renderer,a=this.element,e=this.translateX||0,h=this.translateY||0,f=this.x||0,m=this.y||0,l=this.textAlign||"left",q={left:0,center:.5,right:1}[l],d=this.styles;d=d&&d.whiteSpace;t(a,{marginLeft:e,marginTop:h});!c.styledMode&&this.shadows&&this.shadows.forEach(function(b){t(b,{marginLeft:e+1,marginTop:h+1})});this.inverted&&[].forEach.call(a.childNodes,function(b){c.invertChild(b,a)});if("SPAN"===a.tagName){var g=
this.rotation,b=this.textWidth&&k(this.textWidth),A=[g,l,a.innerHTML,this.textWidth,this.textAlign].join(),r=void 0;r=!1;if(b!==this.oldTextWidth){if(this.textPxLength)var w=this.textPxLength;else t(a,{width:"",whiteSpace:d||"nowrap"}),w=a.offsetWidth;(b>this.oldTextWidth||w>b)&&(/[ \-]/.test(a.textContent||a.innerText)||"ellipsis"===a.style.textOverflow)&&(t(a,{width:w>b||g?b+"px":"auto",display:"block",whiteSpace:d||"normal"}),this.oldTextWidth=b,r=!0)}this.hasBoxWidthChanged=r;A!==this.cTT&&(r=
c.fontMetrics(a.style.fontSize,a).b,!n(g)||g===(this.oldRotation||0)&&l===this.oldAlign||this.setSpanRotation(g,q,r),this.getSpanCorrection(!n(g)&&this.textPxLength||a.offsetWidth,r,q,g,l));t(a,{left:f+(this.xCorr||0)+"px",top:m+(this.yCorr||0)+"px"});this.cTT=A;this.oldRotation=g;this.oldAlign=l}}else this.alignOnAdd=!0};e.prototype.setSpanRotation=function(c,a,e){var h={},k=E&&!/Edge/.test(u.navigator.userAgent)?"-ms-transform":I?"-webkit-transform":C?"MozTransform":u.opera?"-o-transform":void 0;
k&&(h[k]=h.transform="rotate("+c+"deg)",h[k+(C?"Origin":"-origin")]=h.transformOrigin=100*a+"% "+e+"px",t(this.element,h))};e.composedClasses=[];return e}(f)});M(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,x,F){var y=this&&this.__extends||function(){var a=function(h,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,
a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return a(h,c)};return function(h,c){function k(){this.constructor=h}a(h,c);h.prototype=null===c?Object.create(c):(k.prototype=c.prototype,new k)}}(),E=F.attr,I=F.createElement,u=F.extend,t=F.pick;return function(n){function h(){return null!==n&&n.apply(this,arguments)||this}y(h,n);h.compose=function(c){-1===h.composedClasses.indexOf(c)&&(h.composedClasses.push(c),c.prototype.html=h.prototype.html);return c};h.prototype.html=function(c,h,e){var k=
this.createElement("span"),p=k.element,n=k.renderer,L=n.isSVG,H=function(c,a){["opacity","visibility"].forEach(function(l){c[l+"Setter"]=function(e,d,g){var b=c.div?c.div.style:a;f.prototype[l+"Setter"].call(this,e,d,g);b&&(b[d]=e)}});c.addedSetters=!0};k.textSetter=function(c){c!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,t(c,"")),this.textStr=c,k.doTransform=!0)};L&&H(k,k.element.style);k.xSetter=k.ySetter=k.alignSetter=k.rotationSetter=function(c,a){"align"===
a?k.alignValue=k.textAlign=c:k[a]=c;k.doTransform=!0};k.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};k.attr({text:c,x:Math.round(h),y:Math.round(e)}).css({position:"absolute"});n.styledMode||k.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});p.style.whiteSpace="nowrap";k.css=k.htmlCss;L&&(k.add=function(c){var a=n.box.parentNode,l=[];if(this.parentGroup=c){var e=c.div;if(!e){for(;c;)l.push(c),c=c.parentGroup;l.reverse().forEach(function(d){function g(b,
g){d[g]=b;"translateX"===g?h.left=b+"px":h.top=b+"px";d.doTransform=!0}var b=E(d.element,"class"),c=d.styles||{};e=d.div=d.div||I("div",b?{className:b}:void 0,{position:"absolute",left:(d.translateX||0)+"px",top:(d.translateY||0)+"px",display:d.display,opacity:d.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:d.visibility},e||a);var h=e.style;u(d,{classSetter:function(b){return function(d){this.element.setAttribute("class",d);b.className=d}}(e),on:function(){l[0].div&&k.on.apply({element:l[0].div,
onEvents:d.onEvents},arguments);return d},translateXSetter:g,translateYSetter:g});d.addedSetters||H(d)})}}else e=a;e.appendChild(p);k.added=!0;k.alignOnAdd&&k.htmlUpdateTransform();return k});return k};h.composedClasses=[];return h}(x)});M(f,"Core/Axis/AxisDefaults.js",[],function(){var a;(function(a){a.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},
minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,
minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",
gridLineWidth:void 0,tickColor:"#ccd6eb"};a.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};
a.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};a.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};a.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};a.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(a||(a={}));return a});M(f,"Core/Foundation.js",[f["Core/Utilities.js"]],function(a){var f=a.addEvent,x=a.isFunction,F=a.objectEach,C=a.removeEvent,E;(function(a){a.registerEventOptions=function(a,t){a.eventOptions=
a.eventOptions||{};F(t.events,function(n,h){a.eventOptions[h]!==n&&(a.eventOptions[h]&&(C(a,h,a.eventOptions[h]),delete a.eventOptions[h]),x(n)&&(a.eventOptions[h]=n,f(a,h,n)))})}})(E||(E={}));return E});M(f,"Core/Axis/Tick.js",[f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(a,f,x){var y=f.deg2rad,C=x.clamp,E=x.correctFloat,I=x.defined,u=x.destroyObjectProperties,t=x.extend,n=x.fireEvent,h=x.isNumber,c=x.merge,k=x.objectEach,e=x.pick;f=function(){function f(c,a,
e,h,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;n(this,"init");e||h||this.addLabel()}f.prototype.addLabel=function(){var c=this,k=c.axis,f=k.options,m=k.chart,J=k.categories,v=k.logarithmic,l=k.names,q=c.pos,d=e(c.options&&c.options.labels,f.labels),g=k.tickPositions,b=q===g[0],A=q===g[g.length-1],r=(!d.step||1===d.step)&&1===k.tickInterval;g=g.info;var w=c.label,
N;J=this.parameters.category||(J?e(J[q],l[q],q):q);v&&h(J)&&(J=E(v.lin2log(J)));if(k.dateTime)if(g){var z=m.time.resolveDTLFormat(f.dateTimeLabelFormats[!f.grid&&g.higherRanks[q]||g.unitName]);var S=z.main}else h(J)&&(S=k.dateTime.getXDateFormat(J,f.dateTimeLabelFormats||{}));c.isFirst=b;c.isLast=A;var O={axis:k,chart:m,dateTimeLabelFormat:S,isFirst:b,isLast:A,pos:q,tick:c,tickPositionInfo:g,value:J};n(this,"labelFormat",O);var u=function(b){return d.formatter?d.formatter.call(b,b):d.format?(b.text=
k.defaultLabelFormatter.call(b,b),a.format(d.format,b,m)):k.defaultLabelFormatter.call(b,b)};f=u.call(O,O);var X=z&&z.list;c.shortenLabel=X?function(){for(N=0;N<X.length;N++)if(t(O,{dateTimeLabelFormat:X[N]}),w.attr({text:u.call(O,O)}),w.getBBox().width<k.getSlotWidth(c)-2*d.padding)return;w.attr({text:""})}:void 0;r&&k._addedPlotLB&&c.moveLabel(f,d);I(w)||c.movedLabel?w&&w.textStr!==f&&!r&&(!w.textWidth||d.style.width||w.styles.width||w.css({width:null}),w.attr({text:f}),w.textPxLength=w.getBBox().width):
(c.label=w=c.createLabel({x:0,y:0},f,d),c.rotation=0)};f.prototype.createLabel=function(a,e,h){var k=this.axis,f=k.chart;if(a=I(e)&&h.enabled?f.renderer.text(e,a.x,a.y,h.useHTML).add(k.labelGroup):null)f.styledMode||a.css(c(h.style)),a.textPxLength=a.getBBox().width;return a};f.prototype.destroy=function(){u(this,this.axis)};f.prototype.getPosition=function(c,a,e,h){var k=this.axis,f=k.chart,l=h&&f.oldChartHeight||f.chartHeight;c={x:c?E(k.translate(a+e,void 0,void 0,h)+k.transB):k.left+k.offset+(k.opposite?
(h&&f.oldChartWidth||f.chartWidth)-k.right-k.left:0),y:c?l-k.bottom+k.offset-(k.opposite?k.height:0):E(l-k.translate(a+e,void 0,void 0,h)-k.transB)};c.y=C(c.y,-1E5,1E5);n(this,"afterGetPosition",{pos:c});return c};f.prototype.getLabelPosition=function(c,a,e,h,k,f,l,q){var d=this.axis,g=d.transA,b=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,A=d.staggerLines,r=d.tickRotCorr||{x:0,y:0},w=h||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),p={};e=0===d.side?e.rotation?
-8:-e.getBBox().height:2===d.side?r.y+8:Math.cos(e.rotation*y)*(r.y-e.getBBox(!1,0).height/2);I(k.y)&&(e=0===d.side&&d.horiz?k.y+e:k.y);c=c+k.x+w+r.x-(f&&h?f*g*(b?-1:1):0);a=a+e-(f&&!h?f*g*(b?1:-1):0);A&&(h=l/(q||1)%A,d.opposite&&(h=A-h-1),a+=d.labelOffset/A*h);p.x=c;p.y=Math.round(a);n(this,"afterGetLabelPosition",{pos:p,tickmarkOffset:f,index:l});return p};f.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};f.prototype.getMarkPath=function(c,
a,e,h,k,f){return f.crispLine([["M",c,a],["L",c+(k?0:-e),a+(k?e:0)]],h)};f.prototype.handleOverflow=function(c){var a=this.axis,h=a.options.labels,k=c.x,f=a.chart.chartWidth,m=a.chart.spacing,l=e(a.labelLeft,Math.min(a.pos,m[3]));m=e(a.labelRight,Math.max(a.isRadial?0:a.pos+a.len,f-m[1]));var q=this.label,d=this.rotation,g={left:0,center:.5,right:1}[a.labelAlign||q.attr("align")],b=q.getBBox().width,A=a.getSlotWidth(this),r={},w=A,p=1,z;if(d||"justify"!==h.overflow)0>d&&k-g*b<l?z=Math.round(k/Math.cos(d*
y)-l):0<d&&k+g*b>m&&(z=Math.round((f-k)/Math.cos(d*y)));else if(f=k+(1-g)*b,k-g*b<l?w=c.x+w*(1-g)-l:f>m&&(w=m-c.x+w*g,p=-1),w=Math.min(A,w),w<A&&"center"===a.labelAlign&&(c.x+=p*(A-w-g*(A-Math.min(b,w)))),b>w||a.autoRotation&&(q.styles||{}).width)z=w;z&&(this.shortenLabel?this.shortenLabel():(r.width=Math.floor(z)+"px",(h.style||{}).textOverflow||(r.textOverflow="ellipsis"),q.css(r)))};f.prototype.moveLabel=function(c,a){var e=this,h=e.label,f=e.axis,m=f.reversed,l=!1;h&&h.textStr===c?(e.movedLabel=
h,l=!0,delete e.label):k(f.ticks,function(d){l||d.isNew||d===e||!d.label||d.label.textStr!==c||(e.movedLabel=d.label,l=!0,d.labelPos=e.movedLabel.xy,delete d.label)});if(!l&&(e.labelPos||h)){var q=e.labelPos||h.xy;h=f.horiz?m?0:f.width+f.left:q.x;f=f.horiz?q.y:m?f.width+f.left:0;e.movedLabel=e.createLabel({x:h,y:f},c,a);e.movedLabel&&e.movedLabel.attr({opacity:0})}};f.prototype.render=function(c,a,h){var k=this.axis,f=k.horiz,m=this.pos,l=e(this.tickmarkOffset,k.tickmarkOffset);m=this.getPosition(f,
m,l,a);l=m.x;var q=m.y;k=f&&l===k.pos+k.len||!f&&q===k.pos?-1:1;f=e(h,this.label&&this.label.newOpacity,1);h=e(h,1);this.isActive=!0;this.renderGridLine(a,h,k);this.renderMark(m,h,k);this.renderLabel(m,a,f,c);this.isNew=!1;n(this,"afterRender")};f.prototype.renderGridLine=function(c,a,h){var k=this.axis,f=k.options,m={},l=this.pos,q=this.type,d=e(this.tickmarkOffset,k.tickmarkOffset),g=k.chart.renderer,b=this.gridLine,A=f.gridLineWidth,r=f.gridLineColor,w=f.gridLineDashStyle;"minor"===this.type&&
(A=f.minorGridLineWidth,r=f.minorGridLineColor,w=f.minorGridLineDashStyle);b||(k.chart.styledMode||(m.stroke=r,m["stroke-width"]=A||0,m.dashstyle=w),q||(m.zIndex=1),c&&(a=0),this.gridLine=b=g.path().attr(m).addClass("highcharts-"+(q?q+"-":"")+"grid-line").add(k.gridGroup));if(b&&(h=k.getPlotLinePath({value:l+d,lineWidth:b.strokeWidth()*h,force:"pass",old:c})))b[c||this.isNew?"attr":"animate"]({d:h,opacity:a})};f.prototype.renderMark=function(c,a,h){var k=this.axis,f=k.options,m=k.chart.renderer,l=
this.type,q=k.tickSize(l?l+"Tick":"tick"),d=c.x;c=c.y;var g=e(f["minor"!==l?"tickWidth":"minorTickWidth"],!l&&k.isXAxis?1:0);f=f["minor"!==l?"tickColor":"minorTickColor"];var b=this.mark,A=!b;q&&(k.opposite&&(q[0]=-q[0]),b||(this.mark=b=m.path().addClass("highcharts-"+(l?l+"-":"")+"tick").add(k.axisGroup),k.chart.styledMode||b.attr({stroke:f,"stroke-width":g})),b[A?"attr":"animate"]({d:this.getMarkPath(d,c,q[0],b.strokeWidth()*h,k.horiz,m),opacity:a}))};f.prototype.renderLabel=function(c,a,k,f){var m=
this.axis,p=m.horiz,l=m.options,q=this.label,d=l.labels,g=d.step;m=e(this.tickmarkOffset,m.tickmarkOffset);var b=c.x;c=c.y;var A=!0;q&&h(b)&&(q.xy=c=this.getLabelPosition(b,c,q,p,d,m,f,g),this.isFirst&&!this.isLast&&!l.showFirstLabel||this.isLast&&!this.isFirst&&!l.showLastLabel?A=!1:!p||d.step||d.rotation||a||0===k||this.handleOverflow(c),g&&f%g&&(A=!1),A&&h(c.y)?(c.opacity=k,q[this.isNewLabel?"attr":"animate"](c).show(!0),this.isNewLabel=!1):(q.hide(),this.isNewLabel=!0))};f.prototype.replaceMovedLabel=
function(){var c=this.label,a=this.axis,e=a.reversed;if(c&&!this.isNew){var h=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:h,y:e,opacity:0},void 0,c.destroy);delete this.label}a.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return f}();"";return f});M(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,x,F,C,E,I,u){var t=a.animObject,n=F.defaultOptions,h=C.registerEventOptions,c=E.deg2rad,k=u.arrayMax,e=u.arrayMin,m=u.clamp,p=u.correctFloat,D=u.defined,L=u.destroyObjectProperties,H=u.erase,y=u.error,v=u.extend,l=u.fireEvent,q=u.isArray,d=u.isNumber,g=u.isString,b=u.merge,A=u.normalizeTickInterval,r=u.objectEach,w=u.pick,N=u.relativeLength,z=u.removeEvent,S=u.splat,O=u.syncTimeout,W=function(b,d){return A(d,void 0,void 0,w(b.options.allowDecimals,
.5>d||void 0!==b.tickAmount),!!b.tickAmount)};a=function(){function a(b,d){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=
this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(b,d)}a.prototype.init=function(b,a){var c=a.isX;this.chart=b;this.horiz=b.inverted&&!this.isZAxis?!c:c;this.isXAxis=c;this.coll=this.coll||(c?"xAxis":"yAxis");l(this,
"init",{userOptions:a});this.opposite=w(a.opposite,this.opposite);this.side=w(a.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(a);var g=this.options,e=g.labels,B=g.type;this.userOptions=a;this.minPixelPadding=0;this.reversed=w(g.reversed,this.reversed);this.visible=g.visible;this.zoomEnabled=g.zoomEnabled;this.hasNames="category"===B||!0===g.categories;this.categories=g.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups=
{};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=D(g.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=g.minRange||g.maxZoom;this.range=g.range;this.offset=g.offset||0;this.min=this.max=null;a=w(g.crosshair,S(b.options.tooltip.crosshairs)[c?0:1]);this.crosshair=!0===a?{}:a;-1===b.axes.indexOf(this)&&(c?b.axes.splice(b.xAxis.length,0,this):b.axes.push(this),b[this.coll].push(this));this.series=
this.series||[];b.inverted&&!this.isZAxis&&c&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=d(e.rotation)?e.rotation:void 0;h(this,g);l(this,"afterInit")};a.prototype.setOptions=function(d){this.options=b(f.defaultXAxisOptions,"yAxis"===this.coll&&f.defaultYAxisOptions,[f.defaultTopAxisOptions,f.defaultRightAxisOptions,f.defaultBottomAxisOptions,f.defaultLeftAxisOptions][this.side],b(n[this.coll],d));l(this,"afterSetOptions",{userOptions:d})};a.prototype.defaultLabelFormatter=
function(b){var a=this.axis;b=this.chart.numberFormatter;var c=d(this.value)?this.value:NaN,g=a.chart.time,e=this.dateTimeLabelFormat,l=n.lang,B=l.numericSymbols;l=l.numericSymbolMagnitude||1E3;var h=a.logarithmic?Math.abs(c):a.tickInterval,r=B&&B.length;if(a.categories)var k="".concat(this.value);else if(e)k=g.dateFormat(e,c);else if(r&&1E3<=h)for(;r--&&"undefined"===typeof k;)a=Math.pow(l,r+1),h>=a&&0===10*c%a&&null!==B[r]&&0!==c&&(k=b(c/a,-1)+B[r]);"undefined"===typeof k&&(k=1E4<=Math.abs(c)?b(c,
-1):b(c,-1,void 0,""));return k};a.prototype.getSeriesExtremes=function(){var b=this,a=b.chart,c;l(this,"getSeriesExtremes",null,function(){b.hasVisibleSeries=!1;b.dataMin=b.dataMax=b.threshold=null;b.softThreshold=!b.isXAxis;b.stacking&&b.stacking.buildStacks();b.series.forEach(function(g){if(g.visible||!a.options.chart.ignoreHiddenSeries){var e=g.options,l=e.threshold;b.hasVisibleSeries=!0;b.positiveValuesOnly&&0>=l&&(l=null);if(b.isXAxis){if(e=g.xData,e.length){e=b.logarithmic?e.filter(b.validatePositiveValue):
e;c=g.getXExtremes(e);var h=c.min;var B=c.max;d(h)||h instanceof Date||(e=e.filter(d),c=g.getXExtremes(e),h=c.min,B=c.max);e.length&&(b.dataMin=Math.min(w(b.dataMin,h),h),b.dataMax=Math.max(w(b.dataMax,B),B))}}else if(g=g.applyExtremes(),d(g.dataMin)&&(h=g.dataMin,b.dataMin=Math.min(w(b.dataMin,h),h)),d(g.dataMax)&&(B=g.dataMax,b.dataMax=Math.max(w(b.dataMax,B),B)),D(l)&&(b.threshold=l),!e.softThreshold||b.positiveValuesOnly)b.softThreshold=!1}})});l(this,"afterGetSeriesExtremes")};a.prototype.translate=
function(b,a,c,g,e,l){var h=this.linkedParent||this,B=g&&h.old?h.old.min:h.min;if(!d(B))return NaN;var r=h.minPixelPadding;e=(h.isOrdinal||h.brokenAxis&&h.brokenAxis.hasBreaks||h.logarithmic&&e)&&h.lin2val;var k=1,q=0;g=g&&h.old?h.old.transA:h.transA;g||(g=h.transA);c&&(k*=-1,q=h.len);h.reversed&&(k*=-1,q-=k*(h.sector||h.len));a?(l=(b*k+q-r)/g+B,e&&(l=h.lin2val(l))):(e&&(b=h.val2lin(b)),b=k*(b-B)*g,l=(h.isRadial?b:p(b))+q+k*r+(d(l)?g*l:0));return l};a.prototype.toPixels=function(b,d){return this.translate(b,
!1,!this.horiz,void 0,!0)+(d?0:this.pos)};a.prototype.toValue=function(b,d){return this.translate(b-(d?0:this.pos),!0,!this.horiz,void 0,!0)};a.prototype.getPlotLinePath=function(b){function a(b,d,c){if("pass"!==p&&b<d||b>c)p?b=m(b,d,c):t=!0;return b}var c=this,g=c.chart,e=c.left,h=c.top,B=b.old,r=b.value,k=b.lineWidth,q=B&&g.oldChartHeight||g.chartHeight,f=B&&g.oldChartWidth||g.chartWidth,A=c.transB,z=b.translatedValue,p=b.force,n,N,v,O,t;b={value:r,lineWidth:k,old:B,force:p,acrossPanes:b.acrossPanes,
translatedValue:z};l(this,"getPlotLinePath",b,function(b){z=w(z,c.translate(r,void 0,void 0,B));z=m(z,-1E5,1E5);n=v=Math.round(z+A);N=O=Math.round(q-z-A);d(z)?c.horiz?(N=h,O=q-c.bottom,n=v=a(n,e,e+c.width)):(n=e,v=f-c.right,N=O=a(N,h,h+c.height)):(t=!0,p=!1);b.path=t&&!p?null:g.renderer.crispLine([["M",n,N],["L",v,O]],k||1)});return b.path};a.prototype.getLinearTickPositions=function(b,d,c){var a=p(Math.floor(d/b)*b);c=p(Math.ceil(c/b)*b);var g=[],e;p(a+b)===a&&(e=20);if(this.single)return[d];for(d=
a;d<=c;){g.push(d);d=p(d+b,e);if(d===h)break;var h=d}return g};a.prototype.getMinorTickInterval=function(){var b=this.options;return!0===b.minorTicks?w(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,g=this.min-a;a=this.max+a;var e=a-g,h=[];if(e&&e/c<this.len/3){var l=this.logarithmic;if(l)this.paddedTicks.forEach(function(b,d,a){d&&h.push.apply(h,
l.getLogTickPositions(c,a[d-1],a[d],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())h=h.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(c),g,a,b.startOfWeek));else for(b=g+(d[0]-g)%c;b<=a&&b!==h[0];b+=c)h.push(b)}0!==h.length&&this.trimTicks(h);return h};a.prototype.adjustForMinRange=function(){var b=this.options,d=this.logarithmic,a=this.min,c=this.max,g=0,h,l,r,q;this.isXAxis&&"undefined"===typeof this.minRange&&!d&&(D(b.min)||D(b.max)||D(b.floor)||D(b.ceiling)?
this.minRange=null:(this.series.forEach(function(b){r=b.xData;q=b.xIncrement?1:r.length-1;if(1<r.length)for(h=q;0<h;h--)if(l=r[h]-r[h-1],!g||l<g)g=l}),this.minRange=Math.min(5*g,this.dataMax-this.dataMin)));if(c-a<this.minRange){var f=this.dataMax-this.dataMin>=this.minRange;var A=this.minRange;var m=(A-c+a)/2;m=[a-m,w(b.min,a-m)];f&&(m[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);a=k(m);c=[a+A,w(b.max,a+A)];f&&(c[2]=d?d.log2lin(this.dataMax):this.dataMax);c=e(c);c-a<A&&
(m[0]=c-A,m[1]=w(b.min,c-A),a=k(m))}this.min=a;this.max=c};a.prototype.getClosest=function(){var b;this.categories?b=1:this.series.forEach(function(d){var a=d.closestPointRange,c=d.visible||!d.chart.options.chart.ignoreHiddenSeries;!d.noSharedTooltip&&D(a)&&c&&(b=D(b)?Math.min(b,a):a)});return b};a.prototype.nameToX=function(b){var d=q(this.options.categories),a=d?this.categories:this.names,c=b.options.x;b.series.requireSorting=!1;D(c)||(c=this.options.uniqueNames&&a?d?a.indexOf(b.name):w(a.keys[b.name],
-1):b.series.autoIncrement());if(-1===c){if(!d&&a)var g=a.length}else g=c;"undefined"!==typeof g?(this.names[g]=b.name,this.names.keys[b.name]=g):b.x&&(g=b.x);return g};a.prototype.updateNames=function(){var b=this,d=this.names;0<d.length&&(Object.keys(d.keys).forEach(function(b){delete d.keys[b]}),d.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(d){d.xIncrement=null;if(!d.points||d.isDirtyData)b.max=Math.max(b.max,d.xData.length-1),d.processData(),d.generatePoints();
d.data.forEach(function(a,c){if(a&&a.options&&"undefined"!==typeof a.name){var g=b.nameToX(a);"undefined"!==typeof g&&g!==a.x&&(a.x=g,d.xData[c]=g)}})}))};a.prototype.setAxisTranslation=function(){var b=this,d=b.max-b.min,a=b.linkedParent,c=!!b.categories,e=b.isXAxis,h=b.axisPointRange||0,r=0,k=0,q=b.transA;if(e||c||h){var f=b.getClosest();a?(r=a.minPointOffset,k=a.pointRangePadding):b.series.forEach(function(d){var a=c?1:e?w(d.options.pointRange,f,0):b.axisPointRange||0,l=d.options.pointPlacement;
h=Math.max(h,a);if(!b.single||c)d=d.is("xrange")?!e:e,r=Math.max(r,d&&g(l)?0:a/2),k=Math.max(k,d&&"on"===l?0:a)});a=b.ordinal&&b.ordinal.slope&&f?b.ordinal.slope/f:1;b.minPointOffset=r*=a;b.pointRangePadding=k*=a;b.pointRange=Math.min(h,b.single&&c?1:d);e&&(b.closestPointRange=f)}b.translationSlope=b.transA=q=b.staticScale||b.len/(d+k||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=q*r;l(this,"afterSetAxisTranslation")};a.prototype.minFromRange=function(){return this.max-this.range};a.prototype.setTickInterval=
function(b){var a=this.chart,c=this.logarithmic,g=this.options,e=this.isXAxis,h=this.isLinked,r=g.tickPixelInterval,k=this.categories,q=this.softThreshold,f=g.maxPadding,B=g.minPadding,A=d(g.tickInterval)&&0<=g.tickInterval?g.tickInterval:void 0,m=d(this.threshold)?this.threshold:null;this.dateTime||k||h||this.getTickAmount();var z=w(this.userMin,g.min);var n=w(this.userMax,g.max);if(h){this.linkedParent=a[this.coll][g.linkedTo];var N=this.linkedParent.getExtremes();this.min=w(N.min,N.dataMin);this.max=
w(N.max,N.dataMax);g.type!==this.linkedParent.options.type&&y(11,1,a)}else{if(q&&D(m))if(this.dataMin>=m)N=m,B=0;else if(this.dataMax<=m){var v=m;f=0}this.min=w(z,N,this.dataMin);this.max=w(n,v,this.dataMax)}c&&(this.positiveValuesOnly&&!b&&0>=Math.min(this.min,w(this.dataMin,this.min))&&y(10,1,a),this.min=p(c.log2lin(this.min),16),this.max=p(c.log2lin(this.max),16));this.range&&D(this.max)&&(this.userMin=this.min=z=Math.max(this.dataMin,this.minFromRange()),this.userMax=n=this.max,this.range=null);
l(this,"foundExtremes");this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(k||this.axisPointRange||this.stacking&&this.stacking.usePercentage||h)&&D(this.min)&&D(this.max)&&(a=this.max-this.min)&&(!D(z)&&B&&(this.min-=a*B),!D(n)&&f&&(this.max+=a*f));d(this.userMin)||(d(g.softMin)&&g.softMin<this.min&&(this.min=z=g.softMin),d(g.floor)&&(this.min=Math.max(this.min,g.floor)));d(this.userMax)||(d(g.softMax)&&g.softMax>this.max&&(this.max=n=g.softMax),d(g.ceiling)&&(this.max=Math.min(this.max,
g.ceiling)));q&&D(this.dataMin)&&(m=m||0,!D(z)&&this.min<m&&this.dataMin>=m?this.min=this.options.minRange?Math.min(m,this.max-this.minRange):m:!D(n)&&this.max>m&&this.dataMax<=m&&(this.max=this.options.minRange?Math.max(m,this.min+this.minRange):m));d(this.min)&&d(this.max)&&!this.chart.polar&&this.min>this.max&&(D(this.options.min)?this.max=this.min:D(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:h&&
this.linkedParent&&!A&&r===this.linkedParent.options.tickPixelInterval?A=this.linkedParent.tickInterval:w(A,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,k?1:(this.max-this.min)*r/Math.max(this.len,r));if(e&&!b){var O=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(O)});l(this,"postProcessData",{hasExtremesChanged:O})}this.setAxisTranslation();l(this,"initialAxisTranslation");
this.pointRange&&!A&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));b=w(g.minTickInterval,this.dateTime&&!this.series.some(function(b){return b.noSharedTooltip})?this.closestPointRange:0);!A&&this.tickInterval<b&&(this.tickInterval=b);this.dateTime||this.logarithmic||A||(this.tickInterval=W(this,this.tickInterval));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};a.prototype.setTickPositions=function(){var b=this.options,a=b.tickPositions,c=b.tickPositioner,
g=this.getMinorTickInterval(),e=this.hasVerticalPanning(),h="colorAxis"===this.coll,r=(h||!e)&&b.startOnTick;e=(h||!e)&&b.endOnTick;h=[];var k;this.tickmarkOffset=this.categories&&"between"===b.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===g&&this.tickInterval?this.tickInterval/5:g;this.single=this.min===this.max&&D(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==b.allowDecimals);if(a)h=a.slice();else if(d(this.min)&&d(this.max)){if(this.ordinal&&
this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)h=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)h=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(g=b=this.tickInterval;g<=2*b;)if(h=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&
h.length>this.tickAmount)this.tickInterval=W(this,g*=1.1);else break;else h=[this.min,this.max],y(19,!1,this.chart);h.length>this.len&&(h=[h[0],h[h.length-1]],h[0]===h[1]&&(h.length=1));c&&(this.tickPositions=h,(k=c.apply(this,[this.min,this.max]))&&(h=k))}this.tickPositions=h;this.paddedTicks=h.slice(0);this.trimTicks(h,r,e);!this.isLinked&&d(this.min)&&d(this.max)&&(this.single&&2>h.length&&!this.categories&&!this.series.some(function(b){return b.is("heatmap")&&"between"===b.options.pointPlacement})&&
(this.min-=.5,this.max+=.5),a||k||this.adjustTickAmount());l(this,"afterSetTickPositions")};a.prototype.trimTicks=function(b,d,a){var c=b[0],g=b[b.length-1],h=!this.isOrdinal&&this.minPointOffset||0;l(this,"trimTicks");if(!this.isLinked){if(d&&-Infinity!==c)this.min=c;else for(;this.min-h>b[0];)b.shift();if(a)this.max=g;else for(;this.max+h<b[b.length-1];)b.pop();0===b.length&&D(c)&&!this.options.tickPositions&&b.push((g+c)/2)}};a.prototype.alignToOthers=function(){var b=this,a=[this],c=b.options,
g="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,h=[],e;b.thresholdAlignment=void 0;if((!1!==this.chart.options.chart.alignTicks&&c.alignTicks||g)&&!1!==c.startOnTick&&!1!==c.endOnTick&&!b.logarithmic){var l=function(b){var d=b.options;return[b.horiz?d.left:d.top,d.width,d.height,d.pane].join()},r=l(this);this.chart[this.coll].forEach(function(d){var c=d.series;c.length&&c.some(function(b){return b.visible})&&d!==b&&l(d)===r&&(e=!0,a.push(d))})}if(e&&g){a.forEach(function(a){a=a.getThresholdAlignment(b);
d(a)&&h.push(a)});var k=1<h.length?h.reduce(function(b,d){return b+d},0)/h.length:void 0;a.forEach(function(b){b.thresholdAlignment=k})}return e};a.prototype.getThresholdAlignment=function(b){(!d(this.dataMin)||this!==b&&this.series.some(function(b){return b.isDirty||b.isDirtyData}))&&this.getSeriesExtremes();if(d(this.threshold))return b=m((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(b=1-b),b};a.prototype.getTickAmount=function(){var b=this.options,
d=b.tickPixelInterval,a=b.tickAmount;!D(b.tickInterval)&&!a&&this.len<d&&!this.isRadial&&!this.logarithmic&&b.startOnTick&&b.endOnTick&&(a=2);!a&&this.alignToOthers()&&(a=Math.ceil(this.len/d)+1);4>a&&(this.finalTickAmt=a,a=5);this.tickAmount=a};a.prototype.adjustTickAmount=function(){var b=this,a=b.finalTickAmt,c=b.max,g=b.min,h=b.options,e=b.tickPositions,l=b.tickAmount,r=b.thresholdAlignment,k=e&&e.length,q=w(b.threshold,b.softThreshold?0:null);var f=b.tickInterval;if(d(r)){var A=.5>r?Math.ceil(r*
(l-1)):Math.floor(r*(l-1));h.reversed&&(A=l-1-A)}if(b.hasData()&&d(g)&&d(c)){r=function(){b.transA*=(k-1)/(l-1);b.min=h.startOnTick?e[0]:Math.min(g,e[0]);b.max=h.endOnTick?e[e.length-1]:Math.max(c,e[e.length-1])};if(d(A)&&d(b.threshold)){for(;e[A]!==q||e.length!==l||e[0]>g||e[e.length-1]<c;){e.length=0;for(e.push(b.threshold);e.length<l;)void 0===e[A]||e[A]>b.threshold?e.unshift(p(e[0]-f)):e.push(p(e[e.length-1]+f));if(f>8*b.tickInterval)break;f*=2}r()}else if(k<l){for(;e.length<l;)e.length%2||g===
q?e.push(p(e[e.length-1]+f)):e.unshift(p(e[0]-f));r()}if(D(a)){for(f=q=e.length;f--;)(3===a&&1===f%2||2>=a&&0<f&&f<q-1)&&e.splice(f,1);b.finalTickAmt=void 0}}};a.prototype.setScale=function(){var b=!1,d=!1;this.series.forEach(function(a){b=b||a.isDirtyData||a.isDirty;d=d||a.xAxis&&a.xAxis.isDirty||!1});this.setAxisSize();var a=this.len!==(this.old&&this.old.len);a||b||d||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?
(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=a||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();b&&this.panningState&&(this.panningState.isDirty=!0);l(this,"afterSetScale")};a.prototype.setExtremes=function(b,d,a,c,g){var e=this,h=e.chart;a=w(a,!0);e.series.forEach(function(b){delete b.kdTree});g=v(g,{min:b,max:d});l(e,"setExtremes",g,
function(){e.userMin=b;e.userMax=d;e.eventArgs=g;a&&h.redraw(c)})};a.prototype.zoom=function(b,d){var a=this,c=this.dataMin,g=this.dataMax,e=this.options,h=Math.min(c,w(e.min,c)),r=Math.max(g,w(e.max,g));b={newMin:b,newMax:d};l(this,"zoom",b,function(b){var d=b.newMin,e=b.newMax;if(d!==a.min||e!==a.max)a.allowZoomOutside||(D(c)&&(d<h&&(d=h),d>r&&(d=r)),D(g)&&(e<h&&(e=h),e>r&&(e=r))),a.displayBtn="undefined"!==typeof d||"undefined"!==typeof e,a.setExtremes(d,e,!1,void 0,{trigger:"zoom"});b.zoomed=
!0});return b.zoomed};a.prototype.setAxisSize=function(){var b=this.chart,d=this.options,a=d.offsets||[0,0,0,0],c=this.horiz,g=this.width=Math.round(N(w(d.width,b.plotWidth-a[3]+a[1]),b.plotWidth)),e=this.height=Math.round(N(w(d.height,b.plotHeight-a[0]+a[2]),b.plotHeight)),h=this.top=Math.round(N(w(d.top,b.plotTop+a[0]),b.plotHeight,b.plotTop));d=this.left=Math.round(N(w(d.left,b.plotLeft+a[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-e-h;this.right=b.chartWidth-g-d;this.len=Math.max(c?
g:e,0);this.pos=c?d:h};a.prototype.getExtremes=function(){var b=this.logarithmic;return{min:b?p(b.lin2log(this.min)):this.min,max:b?p(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,a=d?d.lin2log(this.min):this.min;d=d?d.lin2log(this.max):this.max;null===b||-Infinity===b?b=a:Infinity===b?b=d:a>b?b=a:d<b&&(b=d);return this.translate(b,0,1,0,1)};a.prototype.autoLabelAlign=
function(b){var d=(w(b,0)-90*this.side+720)%360;b={align:"center"};l(this,"autoLabelAlign",b,function(b){15<d&&165>d?b.align="right":195<d&&345>d&&(b.align="left")});return b.align};a.prototype.tickSize=function(b){var d=this.options,a=w(d["tick"===b?"tickWidth":"minorTickWidth"],"tick"===b&&this.isXAxis&&!this.categories?1:0),c=d["tick"===b?"tickLength":"minorTickLength"];if(a&&c){"inside"===d[b+"Position"]&&(c=-c);var g=[c,a]}b={tickSize:g};l(this,"afterTickSize",b);return b.tickSize};a.prototype.labelMetrics=
function(){var b=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[b]&&this.ticks[b].label)};a.prototype.unsquish=function(){var b=this.options.labels,a=this.horiz,g=this.tickInterval,e=this.len/(((this.categories?1:0)+this.max-this.min)/g),h=b.rotation,l=this.labelMetrics(),r=Math.max(this.max-this.min,0),k=function(b){var d=b/(e||1);d=1<d?Math.ceil(d):1;d*g>r&&Infinity!==b&&Infinity!==e&&r&&(d=Math.ceil(r/g));return p(d*
g)},q=g,f=Number.MAX_VALUE;if(a){if(!b.staggerLines)if(d(h))var A=[h];else e<b.autoRotationLimit&&(A=b.autoRotation);if(A)for(var m=a=void 0,z=0,n=A;z<n.length;z++){var N=n[z];if(N===h||N&&-90<=N&&90>=N)if(a=k(Math.abs(l.h/Math.sin(c*N))),m=a+Math.abs(N/360),m<f){f=m;var v=N;q=a}}}else q=k(l.h);this.autoRotation=A;this.labelRotation=w(v,d(h)?h:0);return b.step?g:q};a.prototype.getSlotWidth=function(b){var a=this.chart,c=this.horiz,g=this.options.labels,e=Math.max(this.tickPositions.length-(this.categories?
0:1),1),h=a.margin[3];if(b&&d(b.slotWidth))return b.slotWidth;if(c&&2>g.step)return g.rotation?0:(this.staggerLines||1)*this.len/e;if(!c){b=g.style.width;if(void 0!==b)return parseInt(String(b),10);if(h)return h-a.spacing[3]}return.33*a.chartWidth};a.prototype.renderUnsquish=function(){var b=this.chart,d=b.renderer,a=this.tickPositions,c=this.ticks,e=this.options.labels,h=e.style,l=this.horiz,r=this.getSlotWidth(),k=Math.max(1,Math.round(r-2*e.padding)),q={},f=this.labelMetrics(),A=h.textOverflow,
w=0;g(e.rotation)||(q.rotation=e.rotation||0);a.forEach(function(b){b=c[b];b.movedLabel&&b.replaceMovedLabel();b&&b.label&&b.label.textPxLength>w&&(w=b.label.textPxLength)});this.maxLabelLength=w;if(this.autoRotation)w>k&&w>f.h?q.rotation=this.labelRotation:this.labelRotation=0;else if(r){var m=k;if(!A){var z="clip";for(k=a.length;!l&&k--;){var p=a[k];if(p=c[p].label)p.styles&&"ellipsis"===p.styles.textOverflow?p.css({textOverflow:"clip"}):p.textPxLength>r&&p.css({width:r+"px"}),p.getBBox().height>
this.len/a.length-(f.h-f.f)&&(p.specificTextOverflow="ellipsis")}}}q.rotation&&(m=w>.5*b.chartHeight?.33*b.chartHeight:w,A||(z="ellipsis"));if(this.labelAlign=e.align||this.autoLabelAlign(this.labelRotation))q.align=this.labelAlign;a.forEach(function(b){var d=(b=c[b])&&b.label,a=h.width,g={};d&&(d.attr(q),b.shortenLabel?b.shortenLabel():m&&!a&&"nowrap"!==h.whiteSpace&&(m<d.textPxLength||"SPAN"===d.element.tagName)?(g.width=m+"px",A||(g.textOverflow=d.specificTextOverflow||z),d.css(g)):d.styles&&d.styles.width&&
!g.width&&!a&&d.css({width:null}),delete d.specificTextOverflow,b.rotation=q.rotation)},this);this.tickRotCorr=d.rotCorr(f.b,this.labelRotation||0,0!==this.side)};a.prototype.hasData=function(){return this.series.some(function(b){return b.hasData()})||this.options.showEmpty&&D(this.min)&&D(this.max)};a.prototype.addTitle=function(d){var a=this.chart.renderer,c=this.horiz,g=this.opposite,e=this.options.title,h=this.chart.styledMode,l;this.axisTitle||((l=e.textAlign)||(l=(c?{low:"left",middle:"center",
high:"right"}:{low:g?"right":"left",middle:"center",high:g?"left":"right"})[e.align]),this.axisTitle=a.text(e.text||"",0,0,e.useHTML).attr({zIndex:7,rotation:e.rotation,align:l}).addClass("highcharts-axis-title"),h||this.axisTitle.css(b(e.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);h||e.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[d?"show":"hide"](d)};a.prototype.generateTick=function(b){var d=this.ticks;d[b]?d[b].addLabel():d[b]=new I(this,
b)};a.prototype.getOffset=function(){var b=this,d=this,a=d.chart,c=d.horiz,g=d.options,e=d.side,h=d.ticks,k=d.tickPositions,q=d.coll,f=d.axisParent,A=a.renderer,m=a.inverted&&!d.isZAxis?[1,0,3,2][e]:e,z=d.hasData(),p=g.title,n=g.labels,N=a.axisOffset;a=a.clipOffset;var v=[-1,1,1,-1][e],O=g.className,t,S=0,ka=0,ba=0;d.showAxis=t=z||g.showEmpty;d.staggerLines=d.horiz&&n.staggerLines||void 0;if(!d.axisGroup){var fa=function(d,a,c){return A.g(d).attr({zIndex:c}).addClass("highcharts-".concat(q.toLowerCase()).concat(a,
" ")+(b.isRadial?"highcharts-radial-axis".concat(a," "):"")+(O||"")).add(f)};d.gridGroup=fa("grid","-grid",g.gridZIndex);d.axisGroup=fa("axis","",g.zIndex);d.labelGroup=fa("axis-labels","-labels",n.zIndex)}z||d.isLinked?(k.forEach(function(b){d.generateTick(b)}),d.renderUnsquish(),d.reserveSpaceDefault=0===e||2===e||{1:"left",3:"right"}[e]===d.labelAlign,w(n.reserveSpace,"center"===d.labelAlign?!0:null,d.reserveSpaceDefault)&&k.forEach(function(b){ba=Math.max(h[b].getLabelSize(),ba)}),d.staggerLines&&
(ba*=d.staggerLines),d.labelOffset=ba*(d.opposite?-1:1)):r(h,function(b,d){b.destroy();delete h[d]});if(p&&p.text&&!1!==p.enabled&&(d.addTitle(t),t&&!1!==p.reserveSpace)){d.titleOffset=S=d.axisTitle.getBBox()[c?"height":"width"];var H=p.offset;ka=D(H)?0:w(p.margin,c?5:10)}d.renderLine();d.offset=v*w(g.offset,N[e]?N[e]+(g.margin||0):0);d.tickRotCorr=d.tickRotCorr||{x:0,y:0};p=0===e?-d.labelMetrics().h:2===e?d.tickRotCorr.y:0;z=Math.abs(ba)+ka;ba&&(z=z-p+v*(c?w(n.y,d.tickRotCorr.y+8*v):n.x));d.axisTitleMargin=
w(H,z);d.getMaxLabelDimensions&&(d.maxLabelDimensions=d.getMaxLabelDimensions(h,k));"colorAxis"!==q&&(c=this.tickSize("tick"),N[e]=Math.max(N[e],(d.axisTitleMargin||0)+S+v*d.offset,z,k&&k.length&&c?c[0]+v*d.offset:0),g=!d.axisLine||g.offset?0:2*Math.floor(d.axisLine.strokeWidth()/2),a[m]=Math.max(a[m],g));l(this,"afterGetOffset")};a.prototype.getLinePath=function(b){var d=this.chart,a=this.opposite,c=this.offset,g=this.horiz,e=this.left+(a?this.width:0)+c;c=d.chartHeight-this.bottom-(a?this.height:
0)+c;a&&(b*=-1);return d.renderer.crispLine([["M",g?this.left:e,g?c:this.top],["L",g?d.chartWidth-this.right:e,g?c:d.chartHeight-this.bottom]],b)};a.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};a.prototype.getTitlePosition=function(){var b=this.horiz,d=this.left,a=this.top,c=this.len,
g=this.options.title,e=b?d:a,h=this.opposite,r=this.offset,k=g.x,q=g.y,f=this.axisTitle,A=this.chart.renderer.fontMetrics(g.style.fontSize,f);f=f?Math.max(f.getBBox(!1,0).height-A.h-1,0):0;c={low:e+(b?0:c),middle:e+c/2,high:e+(b?c:0)}[g.align];d=(b?a+this.height:d)+(b?1:-1)*(h?-1:1)*(this.axisTitleMargin||0)+[-f,f,A.f,-f][this.side];b={x:b?c+k:d+(h?this.width:0)+r+k,y:b?d+q-(h?this.height:0)+r:c+q};l(this,"afterGetTitlePosition",{titlePosition:b});return b};a.prototype.renderMinorTick=function(b,
d){var a=this.minorTicks;a[b]||(a[b]=new I(this,b,"minor"));d&&a[b].isNew&&a[b].render(null,!0);a[b].render(null,!1,1)};a.prototype.renderTick=function(b,d,a){var c=this.ticks;if(!this.isLinked||b>=this.min&&b<=this.max||this.grid&&this.grid.isColumn)c[b]||(c[b]=new I(this,b)),a&&c[b].isNew&&c[b].render(d,!0,-1),c[b].render(d)};a.prototype.render=function(){var b=this,a=b.chart,c=b.logarithmic,g=b.options,e=b.isLinked,h=b.tickPositions,k=b.axisTitle,f=b.ticks,q=b.minorTicks,A=b.alternateBands,w=g.stackLabels,
m=g.alternateGridColor,z=b.tickmarkOffset,p=b.axisLine,n=b.showAxis,N=t(a.renderer.globalAnimation),v,S;b.labelEdge.length=0;b.overlap=!1;[f,q,A].forEach(function(b){r(b,function(b){b.isActive=!1})});if(b.hasData()||e){var D=b.chart.hasRendered&&b.old&&d(b.old.min);b.minorTickInterval&&!b.categories&&b.getMinorTickPositions().forEach(function(d){b.renderMinorTick(d,D)});h.length&&(h.forEach(function(d,a){b.renderTick(d,a,D)}),z&&(0===b.min||b.single)&&(f[-1]||(f[-1]=new I(b,-1,null,!0)),f[-1].render(-1)));
m&&h.forEach(function(d,g){S="undefined"!==typeof h[g+1]?h[g+1]+z:b.max-z;0===g%2&&d<b.max&&S<=b.max+(a.polar?-z:z)&&(A[d]||(A[d]=new E.PlotLineOrBand(b)),v=d+z,A[d].options={from:c?c.lin2log(v):v,to:c?c.lin2log(S):S,color:m,className:"highcharts-alternate-grid"},A[d].render(),A[d].isActive=!0)});b._addedPlotLB||(b._addedPlotLB=!0,(g.plotLines||[]).concat(g.plotBands||[]).forEach(function(d){b.addPlotBandOrLine(d)}))}[f,q,A].forEach(function(b){var d=[],c=N.duration;r(b,function(b,a){b.isActive||
(b.render(a,!1,0),b.isActive=!1,d.push(a))});O(function(){for(var a=d.length;a--;)b[d[a]]&&!b[d[a]].isActive&&(b[d[a]].destroy(),delete b[d[a]])},b!==A&&a.hasRendered&&c?c:0)});p&&(p[p.isPlaced?"animate":"attr"]({d:this.getLinePath(p.strokeWidth())}),p.isPlaced=!0,p[n?"show":"hide"](n));k&&n&&(g=b.getTitlePosition(),k[k.isNew?"attr":"animate"](g),k.isNew=!1);w&&w.enabled&&b.stacking&&b.stacking.renderStackTotals();b.old={len:b.len,max:b.max,min:b.min,transA:b.transA,userMax:b.userMax,userMin:b.userMin};
b.isDirty=!1;l(this,"afterRender")};a.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(b){b.render()}));this.series.forEach(function(b){b.isDirty=!0})};a.prototype.getKeepProps=function(){return this.keepProps||a.keepProps};a.prototype.destroy=function(b){var d=this,a=d.plotLinesAndBands,c=this.eventOptions;l(this,"destroy",{keepEvents:b});b||z(d);[d.ticks,d.minorTicks,d.alternateBands].forEach(function(b){L(b)});if(a)for(b=a.length;b--;)a[b].destroy();
"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(b){d[b]&&(d[b]=d[b].destroy())});for(var g in d.plotLinesAndBandsGroups)d.plotLinesAndBandsGroups[g]=d.plotLinesAndBandsGroups[g].destroy();r(d,function(b,a){-1===d.getKeepProps().indexOf(a)&&delete d[a]});this.eventOptions=c};a.prototype.drawCrosshair=function(b,d){var a=this.crosshair,c=w(a&&a.snap,!0),g=this.chart,e,h=this.cross;l(this,"drawCrosshair",{e:b,point:d});b||(b=this.cross&&this.cross.e);if(a&&
!1!==(D(d)||!c)){c?D(d)&&(e=w("colorAxis"!==this.coll?d.crosshairPos:null,this.isXAxis?d.plotX:this.len-d.plotY)):e=b&&(this.horiz?b.chartX-this.pos:this.len-b.chartY+this.pos);if(D(e)){var r={value:d&&(this.isXAxis?d.x:w(d.stackY,d.y)),translatedValue:e};g.polar&&v(r,{isCrosshair:!0,chartX:b&&b.chartX,chartY:b&&b.chartY,point:d});r=this.getPlotLinePath(r)||null}if(!D(r)){this.hideCrosshair();return}c=this.categories&&!this.isRadial;h||(this.cross=h=g.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+
(c?"category ":"thin ")+(a.className||"")).attr({zIndex:w(a.zIndex,2)}).add(),g.styledMode||(h.attr({stroke:a.color||(c?x.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":w(a.width,1)}).css({"pointer-events":"none"}),a.dashStyle&&h.attr({dashstyle:a.dashStyle})));h.show().attr({d:r});c&&!a.width&&h.attr({"stroke-width":this.transA});this.cross.e=b}else this.hideCrosshair();l(this,"afterDrawCrosshair",{e:b,point:d})};a.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();
l(this,"afterHideCrosshair")};a.prototype.hasVerticalPanning=function(){var b=this.chart.options.chart.panning;return!!(b&&b.enabled&&/y/.test(b.type))};a.prototype.validatePositiveValue=function(b){return d(b)&&0<b};a.prototype.update=function(d,a){var c=this.chart;d=b(this.userOptions,d);this.destroy(!0);this.init(c,d);c.isDirtyBox=!0;w(a,!0)&&c.redraw()};a.prototype.remove=function(b){for(var d=this.chart,a=this.coll,c=this.series,g=c.length;g--;)c[g]&&c[g].remove(!1);H(d.axes,this);H(d[a],this);
d[a].forEach(function(b,d){b.options.index=b.userOptions.index=d});this.destroy();d.isDirtyBox=!0;w(b,!0)&&d.redraw()};a.prototype.setTitle=function(b,d){this.update({title:b},d)};a.prototype.setCategories=function(b,d){this.update({categories:b},d)};a.defaultOptions=f.defaultXAxisOptions;a.keepProps="extKey hcEvents names series userMax userMin".split(" ");return a}();"";return a});M(f,"Core/Axis/DateTimeAxis.js",[f["Core/Utilities.js"]],function(a){var f=a.addEvent,x=a.getMagnitude,F=a.normalizeTickInterval,
C=a.timeUnits,E;(function(a){function u(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function t(a){"datetime"!==a.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new h(this))}var n=[];a.compose=function(a){-1===n.indexOf(a)&&(n.push(a),a.keepProps.push("dateTime"),a.prototype.getTimeTicks=u,f(a,"init",t));return a};var h=function(){function a(a){this.axis=a}a.prototype.normalizeTimeTickInterval=function(a,c){var e=c||[["millisecond",[1,2,5,10,20,25,50,
100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];c=e[e.length-1];var h=C[c[0]],k=c[1],f;for(f=0;f<e.length&&!(c=e[f],h=C[c[0]],k=c[1],e[f+1]&&a<=(h*k[k.length-1]+C[e[f+1][0]])/2);f++);h===C.year&&a<5*h&&(k=[1,2,5]);a=F(a/h,k,"year"===c[0]?Math.max(x(a/h),1):1);return{unitRange:h,count:a,unitName:c[0]}};a.prototype.getXDateFormat=function(a,c){var e=this.axis,h=e.chart.time;return e.closestPointRange?
h.getDateFormat(e.closestPointRange,a,e.options.startOfWeek,c)||h.resolveDTLFormat(c.year).main:h.resolveDTLFormat(c.day).main};return a}();a.Additions=h})(E||(E={}));return E});M(f,"Core/Axis/LogarithmicAxis.js",[f["Core/Utilities.js"]],function(a){var f=a.addEvent,x=a.normalizeTickInterval,F=a.pick,C;(function(a){function y(a){var c=this.logarithmic;"logarithmic"!==a.userOptions.type?this.logarithmic=void 0:c||(this.logarithmic=new n(this))}function u(){var a=this.logarithmic;a&&(this.lin2val=function(c){return a.lin2log(c)},
this.val2lin=function(c){return a.log2lin(c)})}var t=[];a.compose=function(a){-1===t.indexOf(a)&&(t.push(a),a.keepProps.push("logarithmic"),f(a,"init",y),f(a,"afterInit",u));return a};var n=function(){function a(a){this.axis=a}a.prototype.getLogTickPositions=function(a,h,e,f){var c=this.axis,k=c.len,m=c.options,n=[];f||(this.minorAutoInterval=void 0);if(.5<=a)a=Math.round(a),n=c.getLinearTickPositions(a,h,e);else if(.08<=a){var t=Math.floor(h),v,l=m=void 0;for(k=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,
2,3,4,5,6,7,8,9];t<e+1&&!l;t++){var q=k.length;for(v=0;v<q&&!l;v++){var d=this.log2lin(this.lin2log(t)*k[v]);d>h&&(!f||m<=e)&&"undefined"!==typeof m&&n.push(m);m>e&&(l=!0);m=d}}}else h=this.lin2log(h),e=this.lin2log(e),a=f?c.getMinorTickInterval():m.tickInterval,a=F("auto"===a?null:a,this.minorAutoInterval,m.tickPixelInterval/(f?5:1)*(e-h)/((f?k/c.tickPositions.length:k)||1)),a=x(a),n=c.getLinearTickPositions(a,h,e).map(this.log2lin),f||(this.minorAutoInterval=a/5);f||(c.tickInterval=a);return n};
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=n})(C||(C={}));return C});M(f,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[f["Core/Utilities.js"]],function(a){var f=a.erase,x=a.extend,F=a.isNumber,C;(function(a){var y=[],u;a.compose=function(a,h){u||(u=a);-1===y.indexOf(h)&&(y.push(h),x(h.prototype,t.prototype));return h};var t=function(){function a(){}a.prototype.getPlotBandPath=function(a,c,k){void 0===
k&&(k=this.options);var e=this.getPlotLinePath({value:c,force:!0,acrossPanes:k.acrossPanes}),h=[],f=this.horiz;c=!F(this.min)||!F(this.max)||a<this.min&&c<this.min||a>this.max&&c>this.max;a=this.getPlotLinePath({value:a,force:!0,acrossPanes:k.acrossPanes});k=1;if(a&&e){if(c){var n=a.toString()===e.toString();k=0}for(c=0;c<a.length;c+=2){var t=a[c],u=a[c+1],y=e[c],v=e[c+1];"M"!==t[0]&&"L"!==t[0]||"M"!==u[0]&&"L"!==u[0]||"M"!==y[0]&&"L"!==y[0]||"M"!==v[0]&&"L"!==v[0]||(f&&y[1]===t[1]?(y[1]+=k,v[1]+=
k):f||y[2]!==t[2]||(y[2]+=k,v[2]+=k),h.push(["M",t[1],t[2]],["L",u[1],u[2]],["L",v[1],v[2]],["L",y[1],y[2]],["Z"]));h.isFlat=n}}return h};a.prototype.addPlotBand=function(a){return this.addPlotBandOrLine(a,"plotBands")};a.prototype.addPlotLine=function(a){return this.addPlotBandOrLine(a,"plotLines")};a.prototype.addPlotBandOrLine=function(a,c){var h=this,e=this.userOptions,f=new u(this,a);this.visible&&(f=f.render());if(f){this._addedPlotLB||(this._addedPlotLB=!0,(e.plotLines||[]).concat(e.plotBands||
[]).forEach(function(a){h.addPlotBandOrLine(a)}));if(c){var p=e[c]||[];p.push(a);e[c]=p}this.plotLinesAndBands.push(f)}return f};a.prototype.removePlotBandOrLine=function(a){var c=this.plotLinesAndBands,h=this.options,e=this.userOptions;if(c){for(var m=c.length;m--;)c[m].id===a&&c[m].destroy();[h.plotLines||[],e.plotLines||[],h.plotBands||[],e.plotBands||[]].forEach(function(c){for(m=c.length;m--;)(c[m]||{}).id===a&&f(c,c[m])})}};a.prototype.removePlotBand=function(a){this.removePlotBandOrLine(a)};
a.prototype.removePlotLine=function(a){this.removePlotBandOrLine(a)};return a}()})(C||(C={}));return C});M(f,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[f["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],f["Core/Utilities.js"]],function(a,f){var y=f.arrayMax,F=f.arrayMin,C=f.defined,E=f.destroyObjectProperties,I=f.erase,u=f.fireEvent,t=f.merge,n=f.objectEach,h=f.pick;f=function(){function c(a,c){this.axis=a;c&&(this.options=c,this.id=c.id)}c.compose=function(h){return a.compose(c,h)};c.prototype.render=
function(){u(this,"render");var a=this,c=a.axis,f=c.horiz,p=c.logarithmic,D=a.options,y=D.color,H=h(D.zIndex,0),J=D.events,v={},l=c.chart.renderer,q=D.label,d=a.label,g=D.to,b=D.from,A=D.value,r=a.svgElem,w=[],N=C(b)&&C(g);w=C(A);var z=!r,S={"class":"highcharts-plot-"+(N?"band ":"line ")+(D.className||"")},O=N?"bands":"lines";p&&(b=p.log2lin(b),g=p.log2lin(g),A=p.log2lin(A));c.chart.styledMode||(w?(S.stroke=y||"#999999",S["stroke-width"]=h(D.width,1),D.dashStyle&&(S.dashstyle=D.dashStyle)):N&&(S.fill=
y||"#e6ebf5",D.borderWidth&&(S.stroke=D.borderColor,S["stroke-width"]=D.borderWidth)));v.zIndex=H;O+="-"+H;(p=c.plotLinesAndBandsGroups[O])||(c.plotLinesAndBandsGroups[O]=p=l.g("plot-"+O).attr(v).add());z&&(a.svgElem=r=l.path().attr(S).add(p));if(w)w=c.getPlotLinePath({value:A,lineWidth:r.strokeWidth(),acrossPanes:D.acrossPanes});else if(N)w=c.getPlotBandPath(b,g,D);else return;!a.eventsAdded&&J&&(n(J,function(b,d){r.on(d,function(b){J[d].apply(a,[b])})}),a.eventsAdded=!0);(z||!r.d)&&w&&w.length?
r.attr({d:w}):r&&(w?(r.show(),r.animate({d:w})):r.d&&(r.hide(),d&&(a.label=d=d.destroy())));q&&(C(q.text)||C(q.formatter))&&w&&w.length&&0<c.width&&0<c.height&&!w.isFlat?(q=t({align:f&&N&&"center",x:f?!N&&4:10,verticalAlign:!f&&N&&"middle",y:f?N?16:10:N?6:-4,rotation:f&&!N&&90},q),this.renderLabel(q,w,N,H)):d&&d.hide();return a};c.prototype.renderLabel=function(a,c,h,f){var e=this.axis,k=e.chart.renderer,m=this.label;m||(this.label=m=k.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||
a.align,rotation:a.rotation,"class":"highcharts-plot-"+(h?"band":"line")+"-label "+(a.className||""),zIndex:f}).add(),e.chart.styledMode||m.css(t({textOverflow:"ellipsis"},a.style)));f=c.xBounds||[c[0][1],c[1][1],h?c[2][1]:c[0][1]];c=c.yBounds||[c[0][2],c[1][2],h?c[2][2]:c[0][2]];h=F(f);k=F(c);m.align(a,!1,{x:h,y:k,width:y(f)-h,height:y(c)-k});m.alignValue&&"left"!==m.alignValue||m.css({width:(90===m.rotation?e.height-(m.alignAttr.y-e.top):e.width-(m.alignAttr.x-e.left))+"px"});m.show(!0)};c.prototype.getLabelText=
function(a){return C(a.formatter)?a.formatter.call(this):a.text};c.prototype.destroy=function(){I(this.axis.plotLinesAndBands,this);delete this.axis;E(this)};return c}();"";"";return f});M(f,"Core/Tooltip.js",[f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Core/Renderer/RendererUtilities.js"],f["Core/Renderer/RendererRegistry.js"],f["Core/Utilities.js"]],function(a,f,x,F,C){var y=a.format,I=f.doc,u=x.distribute,t=C.clamp,n=C.css,h=C.defined,c=C.discardElement,k=C.extend,e=C.fireEvent,m=C.isArray,
p=C.isNumber,D=C.isString,L=C.merge,H=C.pick,J=C.splat,v=C.syncTimeout;a=function(){function a(a,d){this.allowShared=!0;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=a;this.init(a,d)}a.prototype.applyFilter=function(){var a=this.chart;a.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+a.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},
{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};a.prototype.bodyFormatter=function(a){return a.map(function(a){var d=a.series.tooltipOptions;return(d[(a.point.formatPrefix||"point")+"Formatter"]||a.point.tooltipFormatter).call(a.point,d[(a.point.formatPrefix||"point")+"Format"]||"")})};a.prototype.cleanSplit=
function(a){this.chart.series.forEach(function(d){var c=d&&d.tt;c&&(!c.isActive||a?d.tt=c.destroy():c.isActive=!1)})};a.prototype.defaultFormatter=function(a){var d=this.points||J(this);var c=[a.tooltipFooterHeaderFormatter(d[0])];c=c.concat(a.bodyFormatter(d));c.push(a.tooltipFooterHeaderFormatter(d[0],!0));return c};a.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),
c(this.container));C.clearTimeout(this.hideTimer);C.clearTimeout(this.tooltipTimeout)};a.prototype.getAnchor=function(a,d){var c=this.chart,b=c.pointer,e=c.inverted,h=c.plotTop,l=c.plotLeft,f,k,q=0,m=0;a=J(a);this.followPointer&&d?("undefined"===typeof d.chartX&&(d=b.normalize(d)),b=[d.chartX-l,d.chartY-h]):a[0].tooltipPos?b=a[0].tooltipPos:(a.forEach(function(b){f=b.series.yAxis;k=b.series.xAxis;q+=b.plotX||0;m+=b.plotLow?(b.plotLow+(b.plotHigh||0))/2:b.plotY||0;k&&f&&(e?(q+=h+c.plotHeight-k.len-
k.pos,m+=l+c.plotWidth-f.len-f.pos):(q+=k.pos-l,m+=f.pos-h))}),q/=a.length,m/=a.length,b=[e?c.plotWidth-m:q,e?c.plotHeight-q:m],this.shared&&1<a.length&&d&&(e?b[0]=d.chartX-l:b[1]=d.chartY-h));return b.map(Math.round)};a.prototype.getLabel=function(){var a=this,d=this.chart.styledMode,c=this.options,b=this.split&&this.allowShared,e="tooltip"+(h(c.className)?" "+c.className:""),l=c.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),k,m=this.chart.renderer;if(a.label){var z=!a.label.hasClass("highcharts-label");
(b&&!z||!b&&z)&&a.destroy()}if(!this.label){if(this.outside){z=this.chart.options.chart.style;var p=F.getRendererType();this.container=k=f.doc.createElement("div");k.className="highcharts-tooltip-container";n(k,{position:"absolute",top:"1px",pointerEvents:l,zIndex:Math.max(this.options.style.zIndex||0,(z&&z.zIndex||0)+3)});f.doc.body.appendChild(k);this.renderer=m=new p(k,0,0,z,void 0,void 0,m.styledMode)}b?this.label=m.g(e):(this.label=m.label("",0,0,c.shape,void 0,void 0,c.useHTML,void 0,e).attr({padding:c.padding,
r:c.borderRadius}),d||this.label.attr({fill:c.backgroundColor,"stroke-width":c.borderWidth}).css(c.style).css({pointerEvents:l}).shadow(c.shadow));d&&c.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(a.outside&&!a.split){var v=this.label,t=v.xSetter,D=v.ySetter;v.xSetter=function(b){t.call(v,a.distance);k.style.left=b+"px"};v.ySetter=function(b){D.call(v,a.distance);k.style.top=b+"px"}}this.label.attr({zIndex:8}).add()}return this.label};a.prototype.getPosition=
function(a,d,c){var b=this.chart,g=this.distance,e={},h=b.inverted&&c.h||0,l=this.outside,f=l?I.documentElement.clientWidth-2*g:b.chartWidth,k=l?Math.max(I.body.scrollHeight,I.documentElement.scrollHeight,I.body.offsetHeight,I.documentElement.offsetHeight,I.documentElement.clientHeight):b.chartHeight,q=b.pointer.getChartPosition(),m=function(e){var h="x"===e;return[e,h?f:k,h?a:d].concat(l?[h?a*q.scaleX:d*q.scaleY,h?q.left-g+(c.plotX+b.plotLeft)*q.scaleX:q.top-g+(c.plotY+b.plotTop)*q.scaleY,0,h?f:
k]:[h?a:d,h?c.plotX+b.plotLeft:c.plotY+b.plotTop,h?b.plotLeft:b.plotTop,h?b.plotLeft+b.plotWidth:b.plotTop+b.plotHeight])},p=m("y"),n=m("x"),v;m=!!c.negative;!b.polar&&b.hoverSeries&&b.hoverSeries.yAxis&&b.hoverSeries.yAxis.reversed&&(m=!m);var t=!this.followPointer&&H(c.ttBelow,!b.inverted===m),D=function(b,a,d,c,f,r,k){var A=l?"y"===b?g*q.scaleY:g*q.scaleX:g,w=(d-c)/2,m=c<f-g,G=f+g+c<a,z=f-A-d+w;f=f+A-w;if(t&&G)e[b]=f;else if(!t&&m)e[b]=z;else if(m)e[b]=Math.min(k-c,0>z-h?z:z-h);else if(G)e[b]=
Math.max(r,f+h+d>a?f:f+h);else return!1},u=function(b,a,d,c,h){var l;h<g||h>a-g?l=!1:e[b]=h<d/2?1:h>a-c/2?a-c-2:h-d/2;return l},y=function(b){var a=p;p=n;n=a;v=b},G=function(){!1!==D.apply(0,p)?!1!==u.apply(0,n)||v||(y(!0),G()):v?e.x=e.y=0:(y(!0),G())};(b.inverted||1<this.len)&&y();G();return e};a.prototype.hide=function(a){var d=this;C.clearTimeout(this.hideTimer);a=H(a,this.options.hideDelay);this.isHidden||(this.hideTimer=v(function(){d.getLabel().fadeOut(a?void 0:a);d.isHidden=!0},a))};a.prototype.init=
function(a,d){this.chart=a;this.options=d;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=d.split&&!a.inverted&&!a.polar;this.shared=d.shared||this.split;this.outside=H(d.outside,!(!a.scrollablePixelsX&&!a.scrollablePixelsY))};a.prototype.shouldStickOnContact=function(a){return!(this.followPointer||!this.options.stickOnContact||a&&!this.chart.pointer.inClass(a.target,"highcharts-tooltip"))};a.prototype.move=function(a,d,c,b){var g=this,e=g.now,h=!1!==g.options.animation&&!g.isHidden&&
(1<Math.abs(a-e.x)||1<Math.abs(d-e.y)),l=g.followPointer||1<g.len;k(e,{x:h?(2*e.x+a)/3:a,y:h?(e.y+d)/2:d,anchorX:l?void 0:h?(2*e.anchorX+c)/3:c,anchorY:l?void 0:h?(e.anchorY+b)/2:b});g.getLabel().attr(e);g.drawTracker();h&&(C.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){g&&g.move(a,d,c,b)},32))};a.prototype.refresh=function(a,d){var c=this.chart,b=this.options,h=J(a),l=h[0],f=[],k=b.formatter||this.defaultFormatter,q=this.shared,p=c.styledMode,n={};if(b.enabled&&l.series){C.clearTimeout(this.hideTimer);
this.allowShared=!(!m(a)&&a.series&&a.series.noSharedTooltip);this.followPointer=!this.split&&l.series.tooltipOptions.followPointer;a=this.getAnchor(a,d);var v=a[0],t=a[1];q&&this.allowShared?(c.pointer.applyInactiveState(h),h.forEach(function(b){b.setState("hover");f.push(b.getLabelConfig())}),n={x:l.category,y:l.y},n.points=f):n=l.getLabelConfig();this.len=f.length;k=k.call(n,this);q=l.series;this.distance=H(q.tooltipOptions.distance,16);if(!1===k)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(k,
h);else{var B=v,D=t;d&&c.pointer.isDirectTouch&&(B=d.chartX-c.plotLeft,D=d.chartY-c.plotTop);if(c.polar||!1===q.options.clip||h.some(function(b){return b.series.shouldShowTooltip(B,D)}))d=this.getLabel(),b.style.width&&!p||d.css({width:this.chart.spacingBox.width+"px"}),d.attr({text:k&&k.join?k.join(""):k}),d.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+H(l.colorIndex,q.colorIndex)),p||d.attr({stroke:b.borderColor||l.color||q.color||"#666666"}),this.updatePosition({plotX:v,
plotY:t,negative:l.negative,ttBelow:l.ttBelow,h:a[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}e(this,"refresh")}};a.prototype.renderSplit=function(a,d){function c(a,d,c,g,e){void 0===e&&(e=!0);c?(d=U?0:x,a=t(a-g/2,Q.left,Q.right-g-(b.outside?V:0))):(d-=T,a=e?a-g-C:a+C,a=t(a,e?a:Q.left,Q.right));return{x:a,y:d}}var b=this,e=b.chart,h=b.chart,l=h.chartWidth,f=h.chartHeight,q=h.plotHeight,m=h.plotLeft,p=h.plotTop,n=h.pointer,v=h.scrollablePixelsY;
v=void 0===v?0:v;var B=h.scrollablePixelsX,K=h.scrollingContainer;K=void 0===K?{scrollLeft:0,scrollTop:0}:K;var y=K.scrollLeft;K=K.scrollTop;var L=h.styledMode,C=b.distance,J=b.options,G=b.options.positioner,Q=b.outside&&"number"!==typeof B?I.documentElement.getBoundingClientRect():{left:y,right:y+l,top:K,bottom:K+f},P=b.getLabel(),Y=this.renderer||e.renderer,U=!(!e.xAxis[0]||!e.xAxis[0].opposite);e=n.getChartPosition();var V=e.left;e=e.top;var T=p+K,aa=0,x=q-v;D(a)&&(a=[!1,a]);a=a.slice(0,d.length+
1).reduce(function(a,g,e){if(!1!==g&&""!==g){e=d[e-1]||{isHeader:!0,plotX:d[0].plotX,plotY:q,series:{}};var h=e.isHeader,l=h?b:e.series;g=g.toString();var f=l.tt,k=e.isHeader;var r=e.series;var A="highcharts-color-"+H(e.colorIndex,r.colorIndex,"none");f||(f={padding:J.padding,r:J.borderRadius},L||(f.fill=J.backgroundColor,f["stroke-width"]=J.borderWidth),f=Y.label("",0,0,J[k?"headerShape":"shape"],void 0,void 0,J.useHTML).addClass((k?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+A).attr(f).add(P));
f.isActive=!0;f.attr({text:g});L||f.css(J.style).shadow(J.shadow).attr({stroke:J.borderColor||e.color||r.color||"#333333"});l=l.tt=f;k=l.getBBox();g=k.width+l.strokeWidth();h&&(aa=k.height,x+=aa,U&&(T-=aa));r=e.plotX;r=void 0===r?0:r;A=e.plotY;A=void 0===A?0:A;f=e.series;if(e.isHeader){r=m+r;var w=p+q/2}else{var z=f.xAxis,n=f.yAxis;r=z.pos+t(r,-C,z.len+C);f.shouldShowTooltip(0,n.pos-p+A,{ignoreX:!0})&&(w=n.pos+A)}r=t(r,Q.left-C,Q.right+C);"number"===typeof w?(k=k.height+1,A=G?G.call(b,g,k,e):c(r,
w,h,g),a.push({align:G?0:void 0,anchorX:r,anchorY:w,boxWidth:g,point:e,rank:H(A.rank,h?1:0),size:k,target:A.y,tt:l,x:A.x})):l.isActive=!1}return a},[]);!G&&a.some(function(a){var d=(b.outside?V:0)+a.anchorX;return d<Q.left&&d+a.boxWidth<Q.right?!0:d<V-Q.left+a.boxWidth&&Q.right-d>d})&&(a=a.map(function(b){var a=c(b.anchorX,b.anchorY,b.point.isHeader,b.boxWidth,!1);return k(b,{target:a.y,x:a.x})}));b.cleanSplit();u(a,x);var E=V,F=V;a.forEach(function(a){var d=a.x,c=a.boxWidth;a=a.isHeader;a||(b.outside&&
V+d<E&&(E=V+d),!a&&b.outside&&E+c>F&&(F=V+d))});a.forEach(function(a){var d=a.x,c=a.anchorX,g=a.pos,e=a.point.isHeader;g={visibility:"undefined"===typeof g?"hidden":"inherit",x:d,y:g+T,anchorX:c,anchorY:a.anchorY};if(b.outside&&d<c){var h=V-E;0<h&&(e||(g.x=d+h,g.anchorX=c+h),e&&(g.x=(F-E)/2,g.anchorX=c+h))}a.tt.attr(g)});a=b.container;v=b.renderer;b.outside&&a&&v&&(h=P.getBBox(),v.setSize(h.width+h.x,h.height+h.y,!1),a.style.left=E+"px",a.style.top=e+"px")};a.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var a=
this.chart,d=this.label,c=this.shared?a.hoverPoints:a.hoverPoint;if(d&&c){var b={x:0,y:0,width:0,height:0};c=this.getAnchor(c);var e=d.getBBox();c[0]+=a.plotLeft-d.translateX;c[1]+=a.plotTop-d.translateY;b.x=Math.min(0,c[0]);b.y=Math.min(0,c[1]);b.width=0>c[0]?Math.max(Math.abs(c[0]),e.width-c[0]):Math.max(Math.abs(c[0]),e.width);b.height=0>c[1]?Math.max(Math.abs(c[1]),e.height-Math.abs(c[1])):Math.max(Math.abs(c[1]),e.height);this.tracker?this.tracker.attr(b):(this.tracker=d.renderer.rect(b).addClass("highcharts-tracker").add(d),
a.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()};a.prototype.styledModeFormat=function(a){return a.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};a.prototype.tooltipFooterHeaderFormatter=function(a,d){var c=a.series,b=c.tooltipOptions,h=c.xAxis,l=h&&h.dateTime;h={isFooter:d,labelConfig:a};var f=b.xDateFormat,k=b[d?"footerFormat":"headerFormat"];
e(this,"headerFormatter",h,function(d){l&&!f&&p(a.key)&&(f=l.getXDateFormat(a.key,b.dateTimeLabelFormats));l&&f&&(a.point&&a.point.tooltipDateKeys||["key"]).forEach(function(b){k=k.replace("{point."+b+"}","{point."+b+":"+f+"}")});c.chart.styledMode&&(k=this.styledModeFormat(k));d.text=y(k,{point:a,series:c},this.chart)});return h.text};a.prototype.update=function(a){this.destroy();L(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,L(!0,this.options,a))};a.prototype.updatePosition=
function(a){var d=this.chart,c=this.options,b=d.pointer,e=this.getLabel();b=b.getChartPosition();var h=(c.positioner||this.getPosition).call(this,e.width,e.height,a),l=a.plotX+d.plotLeft;a=a.plotY+d.plotTop;if(this.outside){c=c.borderWidth+2*this.distance;this.renderer.setSize(e.width+c,e.height+c,!1);if(1!==b.scaleX||1!==b.scaleY)n(this.container,{transform:"scale(".concat(b.scaleX,", ").concat(b.scaleY,")")}),l*=b.scaleX,a*=b.scaleY;l+=b.left-h.x;a+=b.top-h.y}this.move(Math.round(h.x),Math.round(h.y||
0),l,a)};return a}();"";return a});M(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,x,F,C){var y=f.animObject,I=x.defaultOptions,u=F.format,t=C.addEvent,n=C.defined,h=C.erase,c=C.extend,k=C.fireEvent,e=C.getNestedProperty,m=C.isArray,p=C.isFunction,D=C.isNumber,L=C.isObject,H=C.merge,J=C.objectEach,v=C.pick,l=C.syncTimeout,q=C.removeEvent,d=C.uniqueKey;
f=function(){function g(){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}g.prototype.animateBeforeDestroy=function(){var b=this,a={x:b.startXPos,opacity:0},d=b.getGraphicalProps();d.singular.forEach(function(d){b[d]=b[d].animate("dataLabel"===d?{x:b[d].startXPos,y:b[d].startYPos,opacity:0}:a)});d.plural.forEach(function(a){b[a].forEach(function(a){a.element&&
a.animate(c({x:b.startXPos},a.startYPos?{x:a.startXPos,y:a.startYPos}:{}))})})};g.prototype.applyOptions=function(b,a){var d=this.series,e=d.options.pointValKey||d.pointValKey;b=g.prototype.optionsToObject.call(this,b);c(this,b);this.options=this.options?c(this.options,b):b;b.group&&delete this.group;b.dataLabels&&delete this.dataLabels;e&&(this.y=g.prototype.getNestedProperty.call(this,e));this.formatPrefix=(this.isNull=v(this.isValid&&!this.isValid(),null===this.x||!D(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:D(b.x)&&d.options.relativeXValue&&(this.x=d.autoIncrement(b.x));return this};g.prototype.destroy=function(){function b(){if(a.graphic||a.graphics||a.dataLabel||a.dataLabels)q(a),a.destroyElements();for(f in a)a[f]=null}var a=this,d=a.series,c=d.chart;d=d.options.dataSorting;var g=c.hoverPoints,e=y(a.series.chart.renderer.globalAnimation),
f;a.legendItem&&c.legend.destroyItem(a);g&&(a.setState(),h(g,a),g.length||(c.hoverPoints=null));if(a===c.hoverPoint)a.onMouseOut();d&&d.enabled?(this.animateBeforeDestroy(),l(b,e.duration)):b();c.pointCount--};g.prototype.destroyElements=function(b){var a=this;b=a.getGraphicalProps(b);b.singular.forEach(function(b){a[b]=a[b].destroy()});b.plural.forEach(function(b){a[b].forEach(function(b){b.element&&b.destroy()});delete a[b]})};g.prototype.firePointEvent=function(b,a,d){var c=this,g=this.series.options;
(g.point.events[b]||c.options&&c.options.events&&c.options.events[b])&&c.importEvents();"click"===b&&g.allowPointSelect&&(d=function(b){c.select&&c.select(null,b.ctrlKey||b.metaKey||b.shiftKey)});k(c,b,a,d)};g.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",""):"")};g.prototype.getGraphicalProps=function(b){var a=this,d=[],c={singular:[],plural:[]},g;b=b||{graphic:1,dataLabel:1};b.graphic&&d.push("graphic","shadowGroup");b.dataLabel&&d.push("dataLabel","dataLabelPath","dataLabelUpper","connector");for(g=d.length;g--;){var e=d[g];a[e]&&c.singular.push(e)}["graphic","dataLabel","connector"].forEach(function(d){var g=d+"s";b[d]&&a[g]&&c.plural.push(g)});
return c};g.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}};g.prototype.getNestedProperty=function(b){if(b)return 0===b.indexOf("custom.")?e(b,this.options):this[b]};g.prototype.getZone=function(){var b=this.series,a=b.zones;b=b.zoneAxis||"y";var d,c=0;for(d=a[c];this[b]>=d.value;)d=a[++c];this.nonZonedColor||(this.nonZonedColor=
this.color);this.color=d&&d.color&&!this.options.color?d.color:this.nonZonedColor;return d};g.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};g.prototype.init=function(b,a,c){this.series=b;this.applyOptions(a,c);this.id=n(this.id)?this.id:d();this.resolveColor();b.chart.pointCount++;k(this,"afterInit");return this};g.prototype.optionsToObject=function(b){var a=this.series,d=a.options.keys,c=d||a.pointArrayMap||["y"],
e=c.length,h={},l=0,f=0;if(D(b)||null===b)h[c[0]]=b;else if(m(b))for(!d&&b.length>e&&(a=typeof b[0],"string"===a?h.name=b[0]:"number"===a&&(h.x=b[0]),l++);f<e;)d&&"undefined"===typeof b[l]||(0<c[f].indexOf(".")?g.prototype.setNestedProperty(h,b[l],c[f]):h[c[f]]=b[l]),l++,f++;else"object"===typeof b&&(h=b,b.dataLabels&&(a._hasPointLabels=!0),b.marker&&(a._hasPointMarkers=!0));return h};g.prototype.resolveColor=function(){var b=this.series,a=b.chart.styledMode;var d=b.chart.options.chart.colorCount;
delete this.nonZonedColor;if(b.options.colorByPoint){if(!a){d=b.options.colors||b.chart.options.colors;var c=d[b.colorCounter];d=d.length}a=b.colorCounter;b.colorCounter++;b.colorCounter===d&&(b.colorCounter=0)}else a||(c=b.color),a=b.colorIndex;this.colorIndex=v(this.options.colorIndex,a);this.color=v(this.options.color,c)};g.prototype.setNestedProperty=function(b,a,d){d.split(".").reduce(function(b,d,c,g){b[d]=g.length-1===c?a:L(b[d],!0)?b[d]:{};return b[d]},b);return b};g.prototype.shouldDraw=
function(){return!this.isNull};g.prototype.tooltipFormatter=function(b){var a=this.series,d=a.tooltipOptions,c=v(d.valueDecimals,""),g=d.valuePrefix||"",e=d.valueSuffix||"";a.chart.styledMode&&(b=a.chart.tooltip.styledModeFormat(b));(a.pointArrayMap||["y"]).forEach(function(a){a="{point."+a;if(g||e)b=b.replace(RegExp(a+"}","g"),g+a+"}"+e);b=b.replace(RegExp(a+"}","g"),a+":,."+c+"f}")});return u(b,{point:this,series:this.series},a.chart)};g.prototype.update=function(b,a,d,c){function g(){e.applyOptions(b);
var c=l&&e.hasMockGraphic;c=null===e.y?!c:c;l&&c&&(e.graphic=l.destroy(),delete e.hasMockGraphic);L(b,!0)&&(l&&l.element&&b&&b.marker&&"undefined"!==typeof b.marker.symbol&&(e.graphic=l.destroy()),b&&b.dataLabels&&e.dataLabel&&(e.dataLabel=e.dataLabel.destroy()),e.connector&&(e.connector=e.connector.destroy()));r=e.index;h.updateParallelArrays(e,r);k.data[r]=L(k.data[r],!0)||L(b,!0)?e.options:v(b,k.data[r]);h.isDirty=h.isDirtyData=!0;!h.fixedBox&&h.hasCartesianSeries&&(f.isDirtyBox=!0);"point"===
k.legendType&&(f.isDirtyLegend=!0);a&&f.redraw(d)}var e=this,h=e.series,l=e.graphic,f=h.chart,k=h.options,r;a=v(a,!0);!1===c?g():e.firePointEvent("update",{options:b},g)};g.prototype.remove=function(b,a){this.series.removePoint(this.series.data.indexOf(this),b,a)};g.prototype.select=function(b,a){var d=this,c=d.series,g=c.chart;this.selectedStaging=b=v(b,!d.selected);d.firePointEvent(b?"select":"unselect",{accumulate:a},function(){d.selected=d.options.selected=b;c.options.data[c.data.indexOf(d)]=
d.options;d.setState(b&&"select");a||g.getSelectedPoints().forEach(function(b){var a=b.series;b.selected&&b!==d&&(b.selected=b.options.selected=!1,a.options.data[a.data.indexOf(b)]=b.options,b.setState(g.hoverPoints&&a.options.inactiveOtherPoints?"inactive":""),b.firePointEvent("unselect"))})});delete this.selectedStaging};g.prototype.onMouseOver=function(b){var a=this.series.chart,d=a.pointer;b=b?d.normalize(b):d.getChartCoordinatesFromPoint(this,a.inverted);d.runPointActions(b,this)};g.prototype.onMouseOut=
function(){var b=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(b.hoverPoints||[]).forEach(function(b){b.setState()});b.hoverPoints=b.hoverPoint=null};g.prototype.importEvents=function(){if(!this.hasImportedEvents){var b=this,a=H(b.series.options.point,b.options).events;b.events=a;J(a,function(a,d){p(a)&&t(b,d,a)});this.hasImportedEvents=!0}};g.prototype.setState=function(b,d){var g=this.series,e=this.state,h=g.options.states[b||"normal"]||{},l=I.plotOptions[g.type].marker&&
g.options.marker,f=l&&!1===l.enabled,q=l&&l.states&&l.states[b||"normal"]||{},m=!1===q.enabled,A=this.marker||{},p=g.chart,n=l&&g.markerAttribs,t=g.halo,u,y=g.stateMarkerGraphic;b=b||"";if(!(b===this.state&&!d||this.selected&&"select"!==b||!1===h.enabled||b&&(m||f&&!1===q.enabled)||b&&A.states&&A.states[b]&&!1===A.states[b].enabled)){this.state=b;n&&(u=g.markerAttribs(this,b));if(this.graphic&&!this.hasMockGraphic){e&&this.graphic.removeClass("highcharts-point-"+e);b&&this.graphic.addClass("highcharts-point-"+
b);if(!p.styledMode){e=g.pointAttribs(this,b);var H=v(p.options.chart.animation,h.animation);var G=e.opacity;D(G)&&((this.dataLabels||[]).forEach(function(b){b&&!b.hasClass("highcharts-data-label-hidden")&&b.animate({opacity:G},H)}),this.connector&&this.connector.animate({opacity:G},H));this.graphic.animate(e,H)}u&&this.graphic.animate(u,v(p.options.chart.animation,q.animation,l.animation));y&&y.hide()}else{if(b&&q){l=A.symbol||g.symbol;y&&y.currentSymbol!==l&&(y=y.destroy());if(u)if(y)y[d?"animate":
"attr"]({x:u.x,y:u.y});else l&&(g.stateMarkerGraphic=y=p.renderer.symbol(l,u.x,u.y,u.width,u.height).add(g.markerGroup),y.currentSymbol=l);!p.styledMode&&y&&"inactive"!==this.state&&y.attr(g.pointAttribs(this,b))}y&&(y[b&&this.isInside?"show":"hide"](),y.element.point=this,y.addClass(this.getClassName(),!0))}h=h.halo;u=(y=this.graphic||y)&&y.visibility||"inherit";h&&h.size&&y&&"hidden"!==u&&!this.isCluster?(t||(g.halo=t=p.renderer.path().add(y.parentGroup)),t.show()[d?"animate":"attr"]({d:this.haloPath(h.size)}),
t.attr({"class":"highcharts-halo highcharts-color-"+v(this.colorIndex,g.colorIndex)+(this.className?" "+this.className:""),visibility:u,zIndex:-1}),t.point=this,p.styledMode||t.attr(c({fill:this.color||g.color,"fill-opacity":h.opacity},a.filterUserAttributes(h.attributes||{})))):t&&t.point&&t.point.haloPath&&t.animate({d:t.point.haloPath(0)},null,t.hide);k(this,"afterSetState",{state:b})}};g.prototype.haloPath=function(b){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-b,this.plotY-
b,2*b,2*b)};return g}();"";return f});M(f,"Core/Pointer.js",[f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Tooltip.js"],f["Core/Utilities.js"]],function(a,f,x,F){var y=a.parse,E=f.charts,I=f.noop,u=F.addEvent,t=F.attr,n=F.css,h=F.defined,c=F.extend,k=F.find,e=F.fireEvent,m=F.isNumber,p=F.isObject,D=F.objectEach,L=F.offset,H=F.pick,J=F.splat;a=function(){function a(a,c){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=!1;this.options=
c;this.init(a,c)}a.prototype.applyInactiveState=function(a){var c=[],d;(a||[]).forEach(function(a){d=a.series;c.push(d);d.linkedParent&&c.push(d.linkedParent);d.linkedSeries&&(c=c.concat(d.linkedSeries));d.navigatorSeries&&c.push(d.navigatorSeries)});this.chart.series.forEach(function(a){-1===c.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};a.prototype.destroy=function(){var c=this;this.eventsToUnbind.forEach(function(a){return a()});this.eventsToUnbind=
[];f.chartCount||(a.unbindDocumentMouseUp&&(a.unbindDocumentMouseUp=a.unbindDocumentMouseUp()),a.unbindDocumentTouchEnd&&(a.unbindDocumentTouchEnd=a.unbindDocumentTouchEnd()));clearInterval(c.tooltipTimeout);D(c,function(a,d){c[d]=void 0})};a.prototype.drag=function(a){var c=this.chart,d=c.options.chart,g=this.zoomHor,b=this.zoomVert,e=c.plotLeft,h=c.plotTop,l=c.plotWidth,f=c.plotHeight,k=this.mouseDownX||0,m=this.mouseDownY||0,n=p(d.panning)?d.panning&&d.panning.enabled:d.panning,v=d.panKey&&a[d.panKey+
"Key"],t=a.chartX,B=a.chartY,u=this.selectionMarker;if(!u||!u.touch)if(t<e?t=e:t>e+l&&(t=e+l),B<h?B=h:B>h+f&&(B=h+f),this.hasDragged=Math.sqrt(Math.pow(k-t,2)+Math.pow(m-B,2)),10<this.hasDragged){var D=c.isInsidePlot(k-e,m-h,{visiblePlotOnly:!0});!c.hasCartesianSeries&&!c.mapView||!this.zoomX&&!this.zoomY||!D||v||u||(this.selectionMarker=u=c.renderer.rect(e,h,g?1:l,b?1:f,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),c.styledMode||u.attr({fill:d.selectionMarkerFill||y("#335cad").setOpacity(.25).get()}));
u&&g&&(g=t-k,u.attr({width:Math.abs(g),x:(0<g?0:g)+k}));u&&b&&(g=B-m,u.attr({height:Math.abs(g),y:(0<g?0:g)+m}));D&&!u&&n&&c.pan(a,d.panning)}};a.prototype.dragStart=function(a){var c=this.chart;c.mouseIsDown=a.type;c.cancelClick=!1;c.mouseDownX=this.mouseDownX=a.chartX;c.mouseDownY=this.mouseDownY=a.chartY};a.prototype.drop=function(a){var l=this,d=this.chart,g=this.hasPinched;if(this.selectionMarker){var b=this.selectionMarker,f=b.attr?b.attr("x"):b.x,k=b.attr?b.attr("y"):b.y,w=b.attr?b.attr("width"):
b.width,p=b.attr?b.attr("height"):b.height,z={originalEvent:a,xAxis:[],yAxis:[],x:f,y:k,width:w,height:p},v=!!d.mapView;if(this.hasDragged||g)d.axes.forEach(function(b){if(b.zoomEnabled&&h(b.min)&&(g||l[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&m(f)&&m(k)){var d=b.horiz,c="touchend"===a.type?b.minPixelPadding:0,e=b.toValue((d?f:k)+c);d=b.toValue((d?f+w:k+p)-c);z[b.coll].push({axis:b,min:Math.min(e,d),max:Math.max(e,d)});v=!0}}),v&&e(d,"selection",z,function(b){d.zoom(c(b,g?{animation:!1}:null))});
m(d.index)&&(this.selectionMarker=this.selectionMarker.destroy());g&&this.scaleGroups()}d&&m(d.index)&&(n(d.container,{cursor:d._cursor}),d.cancelClick=10<this.hasDragged,d.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};a.prototype.findNearestKDPoint=function(a,c,d){var g;a.forEach(function(b){var a=!(b.noSharedTooltip&&c)&&0>b.options.findNearestPointBy.indexOf("y");b=b.searchPoint(d,a);if((a=p(b,!0)&&b.series)&&!(a=!p(g,!0))){a=g.distX-b.distX;var e=g.dist-b.dist,h=(b.series.group&&
b.series.group.zIndex)-(g.series.group&&g.series.group.zIndex);a=0<(0!==a&&c?a:0!==e?e:0!==h?h:g.series.index>b.series.index?-1:1)}a&&(g=b)});return g};a.prototype.getChartCoordinatesFromPoint=function(a,c){var d=a.series,g=d.xAxis;d=d.yAxis;var b=a.shapeArgs;if(g&&d){var e=H(a.clientX,a.plotX),h=a.plotY||0;a.isNode&&b&&m(b.x)&&m(b.y)&&(e=b.x,h=b.y);return c?{chartX:d.len+d.pos-h,chartY:g.len+g.pos-e}:{chartX:e+g.pos,chartY:h+d.pos}}if(b&&b.x&&b.y)return{chartX:b.x,chartY:b.y}};a.prototype.getChartPosition=
function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,c=L(a);this.chartPosition={left:c.left,top:c.top,scaleX:1,scaleY:1};var d=a.offsetWidth;a=a.offsetHeight;2<d&&2<a&&(this.chartPosition.scaleX=c.width/d,this.chartPosition.scaleY=c.height/a);return this.chartPosition};a.prototype.getCoordinates=function(a){var c={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(d){c[d.isXAxis?"xAxis":"yAxis"].push({axis:d,value:d.toValue(a[d.horiz?"chartX":"chartY"])})});return c};
a.prototype.getHoverData=function(a,c,d,g,b,h){var f=[];g=!(!g||!a);var l=function(a){return a.visible&&!(!b&&a.directTouch)&&H(a.options.enableMouseTracking,!0)},m={chartX:h?h.chartX:void 0,chartY:h?h.chartY:void 0,shared:b};e(this,"beforeGetHoverData",m);var q=c&&!c.stickyTracking?[c]:d.filter(function(b){return b.stickyTracking&&(m.filter||l)(b)});var A=g||!h?a:this.findNearestKDPoint(q,b,h);c=A&&A.series;A&&(b&&!c.noSharedTooltip?(q=d.filter(function(b){return m.filter?m.filter(b):l(b)&&!b.noSharedTooltip}),
q.forEach(function(b){var a=k(b.points,function(b){return b.x===A.x&&!b.isNull});p(a)&&(b.boosted&&b.boost&&(a=b.boost.getPoint(a)),f.push(a))})):f.push(A));m={hoverPoint:A};e(this,"afterGetHoverData",m);return{hoverPoint:m.hoverPoint,hoverSeries:c,hoverPoints:f}};a.prototype.getPointFromEvent=function(a){a=a.target;for(var c;a&&!c;)c=a.point,a=a.parentNode;return c};a.prototype.onTrackerMouseOut=function(a){a=a.relatedTarget||a.toElement;var c=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!c||
!a||c.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+c.index)&&this.inClass(a,"highcharts-tracker")))c.onMouseOut()};a.prototype.inClass=function(a,c){for(var d;a;){if(d=t(a,"class")){if(-1!==d.indexOf(c))return!0;if(-1!==d.indexOf("highcharts-container"))return!1}a=a.parentElement}};a.prototype.init=function(a,c){this.options=c;this.chart=a;this.runChartClick=!(!c.chart.events||!c.chart.events.click);this.pinchDown=[];this.lastValidTouch={};x&&(a.tooltip=
new x(a,c.tooltip));this.setDOMEvents()};a.prototype.normalize=function(a,e){var d=a.touches,g=d?d.length?d.item(0):H(d.changedTouches,a.changedTouches)[0]:a;e||(e=this.getChartPosition());d=g.pageX-e.left;g=g.pageY-e.top;d/=e.scaleX;g/=e.scaleY;return c(a,{chartX:Math.round(d),chartY:Math.round(g)})};a.prototype.onContainerClick=function(a){var h=this.chart,d=h.hoverPoint;a=this.normalize(a);var g=h.plotLeft,b=h.plotTop;h.cancelClick||(d&&this.inClass(a.target,"highcharts-tracker")?(e(d.series,"click",
c(a,{point:d})),h.hoverPoint&&d.firePointEvent("click",a)):(c(a,this.getCoordinates(a)),h.isInsidePlot(a.chartX-g,a.chartY-b,{visiblePlotOnly:!0})&&e(h,"click",a)))};a.prototype.onContainerMouseDown=function(a){var c=1===((a.buttons||a.button)&1);a=this.normalize(a);if(f.isFirefox&&0!==a.button)this.onContainerMouseMove(a);if("undefined"===typeof a.button||c)this.zoomOption(a),c&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};a.prototype.onContainerMouseLeave=function(c){var e=E[H(a.hoverChartIndex,
-1)],d=this.chart.tooltip;c=this.normalize(c);e&&(c.relatedTarget||c.toElement)&&(e.pointer.reset(),e.pointer.chartPosition=void 0);d&&!d.isHidden&&this.reset()};a.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};a.prototype.onContainerMouseMove=function(a){var c=this.chart,d=c.tooltip;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===c.mouseIsDown||this.touchSelect(a))&&this.drag(a);c.openMenu||!this.inClass(a.target,"highcharts-tracker")&&
!c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||d&&d.shouldStickOnContact(a)||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};a.prototype.onDocumentTouchEnd=function(c){var e=E[H(a.hoverChartIndex,-1)];e&&e.pointer.drop(c)};a.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};a.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);
else this.zoomOption(a),this.touch(a,!0)};a.prototype.onDocumentMouseMove=function(a){var c=this.chart,d=c.tooltip,g=this.chartPosition;a=this.normalize(a,g);!g||c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||d&&d.shouldStickOnContact(a)||this.inClass(a.target,"highcharts-tracker")||this.reset()};a.prototype.onDocumentMouseUp=function(c){var e=E[H(a.hoverChartIndex,-1)];e&&e.pointer.drop(c)};a.prototype.pinch=function(a){var h=this,d=h.chart,g=h.pinchDown,b=a.touches||
[],f=b.length,k=h.lastValidTouch,l=h.hasZoom,m={},p=1===f&&(h.inClass(a.target,"highcharts-tracker")&&d.runTrackerClick||h.runChartClick),n={},v=h.chart.tooltip;v=1===f&&H(v&&v.options.followTouchMove,!0);var t=h.selectionMarker;1<f?h.initiated=!0:v&&(h.initiated=!1);l&&h.initiated&&!p&&!1!==a.cancelable&&a.preventDefault();[].map.call(b,function(b){return h.normalize(b)});"touchstart"===a.type?([].forEach.call(b,function(b,a){g[a]={chartX:b.chartX,chartY:b.chartY}}),k.x=[g[0].chartX,g[1]&&g[1].chartX],
k.y=[g[0].chartY,g[1]&&g[1].chartY],d.axes.forEach(function(b){if(b.zoomEnabled){var a=d.bounds[b.horiz?"h":"v"],c=b.minPixelPadding,g=b.toPixels(Math.min(H(b.options.min,b.dataMin),b.dataMin)),e=b.toPixels(Math.max(H(b.options.max,b.dataMax),b.dataMax)),h=Math.max(g,e);a.min=Math.min(b.pos,Math.min(g,e)-c);a.max=Math.max(b.pos+b.len,h+c)}}),h.res=!0):v?this.runPointActions(h.normalize(a)):g.length&&(e(d,"touchpan",{originalEvent:a},function(){t||(h.selectionMarker=t=c({destroy:I,touch:!0},d.plotBox));
h.pinchTranslate(g,b,m,t,n,k);h.hasPinched=l;h.scaleGroups(m,n)}),h.res&&(h.res=!1,this.reset(!1,0)))};a.prototype.pinchTranslate=function(a,c,d,g,b,e){this.zoomHor&&this.pinchTranslateDirection(!0,a,c,d,g,b,e);this.zoomVert&&this.pinchTranslateDirection(!1,a,c,d,g,b,e)};a.prototype.pinchTranslateDirection=function(a,c,d,g,b,e,h,f){var k=this.chart,l=a?"x":"y",r=a?"X":"Y",m="chart"+r,A=a?"width":"height",w=k["plot"+(a?"Left":"Top")],p=k.inverted,q=k.bounds[a?"h":"v"],n=1===c.length,v=c[0][m],t=!n&&
c[1][m];c=function(){"number"===typeof D&&20<Math.abs(v-t)&&(Q=f||Math.abs(P-D)/Math.abs(v-t));G=(w-P)/Q+v;u=k["plot"+(a?"Width":"Height")]/Q};var u,G,Q=f||1,P=d[0][m],D=!n&&d[1][m];c();d=G;if(d<q.min){d=q.min;var U=!0}else d+u>q.max&&(d=q.max-u,U=!0);U?(P-=.8*(P-h[l][0]),"number"===typeof D&&(D-=.8*(D-h[l][1])),c()):h[l]=[P,D];p||(e[l]=G-w,e[A]=u);e=p?1/Q:Q;b[A]=u;b[l]=d;g[p?a?"scaleY":"scaleX":"scale"+r]=Q;g["translate"+r]=e*w+(P-e*v)};a.prototype.reset=function(a,c){var d=this.chart,g=d.hoverSeries,
b=d.hoverPoint,e=d.hoverPoints,h=d.tooltip,f=h&&h.shared?e:b;a&&f&&J(f).forEach(function(b){b.series.isCartesian&&"undefined"===typeof b.plotX&&(a=!1)});if(a)h&&f&&J(f).length&&(h.refresh(f),h.shared&&e?e.forEach(function(b){b.setState(b.state,!0);b.series.isCartesian&&(b.series.xAxis.crosshair&&b.series.xAxis.drawCrosshair(null,b),b.series.yAxis.crosshair&&b.series.yAxis.drawCrosshair(null,b))}):b&&(b.setState(b.state,!0),d.axes.forEach(function(a){a.crosshair&&b.series[a.coll]===a&&a.drawCrosshair(null,
b)})));else{if(b)b.onMouseOut();e&&e.forEach(function(b){b.setState()});if(g)g.onMouseOut();h&&h.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());d.axes.forEach(function(b){b.hideCrosshair()});this.hoverX=d.hoverPoints=d.hoverPoint=null}};a.prototype.runPointActions=function(c,e){var d=this.chart,g=d.tooltip&&d.tooltip.options.enabled?d.tooltip:void 0,b=g?g.shared:!1,h=e||d.hoverPoint,f=h&&h.series||d.hoverSeries;e=this.getHoverData(h,f,d.series,(!c||"touchmove"!==c.type)&&
(!!e||f&&f.directTouch&&this.isDirectTouch),b,c);h=e.hoverPoint;f=e.hoverSeries;var l=e.hoverPoints;e=f&&f.tooltipOptions.followPointer&&!f.tooltipOptions.split;var m=b&&f&&!f.noSharedTooltip;if(h&&(h!==d.hoverPoint||g&&g.isHidden)){(d.hoverPoints||[]).forEach(function(b){-1===l.indexOf(b)&&b.setState()});if(d.hoverSeries!==f)f.onMouseOver();this.applyInactiveState(l);(l||[]).forEach(function(b){b.setState("hover")});d.hoverPoint&&d.hoverPoint.firePointEvent("mouseOut");if(!h.series)return;d.hoverPoints=
l;d.hoverPoint=h;h.firePointEvent("mouseOver",void 0,function(){g&&h&&g.refresh(m?l:h,c)})}else e&&g&&!g.isHidden&&(b=g.getAnchor([{}],c),d.isInsidePlot(b[0],b[1],{visiblePlotOnly:!0})&&g.updatePosition({plotX:b[0],plotY:b[1]}));this.unDocMouseMove||(this.unDocMouseMove=u(d.container.ownerDocument,"mousemove",function(b){var d=E[a.hoverChartIndex];if(d)d.pointer.onDocumentMouseMove(b)}),this.eventsToUnbind.push(this.unDocMouseMove));d.axes.forEach(function(b){var a=H((b.crosshair||{}).snap,!0),g;
a&&((g=d.hoverPoint)&&g.series[b.coll]===b||(g=k(l,function(a){return a.series&&a.series[b.coll]===b})));g||!a?b.drawCrosshair(c,g):b.hideCrosshair()})};a.prototype.scaleGroups=function(a,c){var d=this.chart;d.series.forEach(function(g){var b=a||g.getPlotBox();g.group&&(g.xAxis&&g.xAxis.zoomEnabled||d.mapView)&&(g.group.attr(b),g.markerGroup&&(g.markerGroup.attr(b),g.markerGroup.clip(c?d.clipRect:null)),g.dataLabelsGroup&&g.dataLabelsGroup.attr(b))});d.clipRect.attr(c||d.clipBox)};a.prototype.setDOMEvents=
function(){var c=this,e=this.chart.container,d=e.ownerDocument;e.onmousedown=this.onContainerMouseDown.bind(this);e.onmousemove=this.onContainerMouseMove.bind(this);e.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(u(e,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(u(e,"mouseleave",this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=u(d,"mouseup",this.onDocumentMouseUp.bind(this)));for(var g=this.chart.renderTo.parentElement;g&&
"BODY"!==g.tagName;)this.eventsToUnbind.push(u(g,"scroll",function(){delete c.chartPosition})),g=g.parentElement;f.hasTouch&&(this.eventsToUnbind.push(u(e,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(u(e,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=u(d,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=function(){var c=this.chart,e=f.charts[H(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 d=this.chart,g;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(g=d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0}))&&!d.openMenu){c&&this.runPointActions(a);if("touchmove"===a.type){c=this.pinchDown;var b=c[0]?4<=Math.sqrt(Math.pow(c[0].chartX-a.chartX,2)+Math.pow(c[0].chartY-a.chartY,2)):
!1}H(b,!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.zooming.singleTouch||!a.touches||1!==a.touches.length)};a.prototype.zoomOption=function(a){var c=this.chart,d=c.options.chart;c=c.inverted;var g=d.zooming.type||"";/touch/.test(a.type)&&(g=H(d.zooming.pinchType,g));this.zoomX=a=/x/.test(g);this.zoomY=d=/y/.test(g);this.zoomHor=a&&!c||d&&c;this.zoomVert=d&&!c||a&&c;this.hasZoom=a||d};return a}();
"";return a});M(f,"Core/MSPointer.js",[f["Core/Globals.js"],f["Core/Pointer.js"],f["Core/Utilities.js"]],function(a,f,x){function y(){var a=[];a.item=function(a){return this[a]};k(p,function(c){a.push({pageX:c.pageX,pageY:c.pageY,target:c.target})});return a}function C(a,c,e,h){var k=I[f.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!k||(k=k.pointer,h(a),k[c]({type:e,target:a.currentTarget,preventDefault:t,touches:y()}))}var E=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 h(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(h.prototype=e.prototype,new h)}}(),I=a.charts,u=a.doc,t=a.noop,n=a.win,h=x.addEvent,c=x.css,k=x.objectEach,e=x.pick,m=x.removeEvent,p={},D=!!n.PointerEvent;return function(f){function k(){return null!==f&&f.apply(this,arguments)||
this}E(k,f);k.isRequired=function(){return!(a.hasTouch||!n.PointerEvent&&!n.MSPointerEvent)};k.prototype.batchMSEvents=function(a){a(this.chart.container,D?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,D?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(u,D?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};k.prototype.destroy=function(){this.batchMSEvents(m);f.prototype.destroy.call(this)};k.prototype.init=function(a,e){f.prototype.init.call(this,
a,e);this.hasZoom&&c(a.container,{"-ms-touch-action":"none","touch-action":"none"})};k.prototype.onContainerPointerDown=function(a){C(a,"onContainerTouchStart","touchstart",function(a){p[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};k.prototype.onContainerPointerMove=function(a){C(a,"onContainerTouchMove","touchmove",function(a){p[a.pointerId]={pageX:a.pageX,pageY:a.pageY};p[a.pointerId].target||(p[a.pointerId].target=a.currentTarget)})};k.prototype.onDocumentPointerUp=function(a){C(a,
"onDocumentTouchEnd","touchend",function(a){delete p[a.pointerId]})};k.prototype.setDOMEvents=function(){var a=this.chart.tooltip;f.prototype.setDOMEvents.call(this);(this.hasZoom||e(a&&a.options.followTouchMove,!0))&&this.batchMSEvents(h)};return k}(f)});M(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,x,F,C,E){var y=a.animObject,
u=a.setAnimation,t=f.format,n=x.marginNames,h=C.distribute,c=E.addEvent,k=E.createElement,e=E.css,m=E.defined,p=E.discardElement,D=E.find,L=E.fireEvent,H=E.isNumber,J=E.merge,v=E.pick,l=E.relativeLength,q=E.stableSort,d=E.syncTimeout;a=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(),c(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=c(this.chart,"render",function(){this.legend.proximatePositions();
this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};a.prototype.setOptions=function(b){var a=v(b.padding,8);this.options=b;this.chart.styledMode||(this.itemStyle=b.itemStyle,this.itemHiddenStyle=J(this.itemStyle,b.itemHiddenStyle));this.itemMarginTop=b.itemMarginTop||0;this.itemMarginBottom=b.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=v(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(J(!0,this.options,b));this.destroy();d.isDirtyLegend=d.isDirtyBox=!0;v(a,!0)&&d.redraw();L(this,"afterUpdate")};a.prototype.colorizeItem=function(b,a){var d=b.legendItem||{},c=d.group,g=d.label,e=d.line;d=d.symbol;if(c)c[a?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var h=this.options;c=this.itemHiddenStyle.color;h=a?h.itemStyle.color:c;var f=a?b.color||c:c,k=b.options&&b.options.marker,l={fill:f};
g&&g.css({fill:h,color:h});e&&e.attr({stroke:f});d&&(k&&d.isMarker&&(l=b.pointAttribs(),a||(l.stroke=l.fill=c)),d.attr(l))}L(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=b.legendItem||{},c=d.group,g=d.x;g=void 0===g?0:g;d=d.y;d=void 0===d?0:d;var e=this.options,h=e.symbolPadding,f=!e.rtl;e=b.checkbox;c&&c.element&&(h=
{translateX:f?g:this.legendWidth-g-2*h-4,translateY:d},c[m(c.translateY)?"animate":"attr"](h,void 0,function(){L(a,"afterPositionItem",{item:b})}));e&&(e.x=g,e.y=d)};a.prototype.destroyItem=function(b){for(var a=b.checkbox,d=b.legendItem||{},c=0,g=["group","label","line","symbol"];c<g.length;c++){var e=g[c];d[e]&&(d[e]=d[e].destroy())}a&&p(a);b.legendItem=void 0};a.prototype.destroy=function(){for(var b=0,a=this.getAllItems();b<a.length;b++)this.destroyItem(a[b]);b=0;for(a="clipRect up down pager nav box title group".split(" ");b<
a.length;b++){var d=a[b];this[d]&&(this[d]=this[d].destroy())}this.display=null};a.prototype.positionCheckboxes=function(){var b=this.group&&this.group.alignAttr,a=this.clipHeight||this.legendHeight,d=this.titleHeight;if(b){var c=b.translateY;this.allItems.forEach(function(g){var h=g.checkbox;if(h){var f=c+d+h.y+(this.scrollOffset||0)+3;e(h,{left:b.translateX+g.checkboxOffset+h.x-20+"px",top:f+"px",display:this.proximate||f>c-6&&f<c+a-6?"":"none"})}},this)}};a.prototype.renderTitle=function(){var b=
this.options,a=this.padding,d=b.title,c=0;d.text&&(this.title||(this.title=this.chart.renderer.label(d.text,a-3,a-4,void 0,void 0,void 0,b.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(d.style),this.title.add(this.group)),d.width||this.title.css({width:this.maxLegendWidth+"px"}),b=this.title.getBBox(),c=b.height,this.offsetWidth=b.width,this.contentGroup.attr({translateY:c}));this.titleHeight=c};a.prototype.setText=function(b){var a=this.options;b.legendItem.label.attr({text:a.labelFormat?
t(a.labelFormat,b,this.chart):a.labelFormatter.call(b)})};a.prototype.renderItem=function(b){var a=b.legendItem=b.legendItem||{},d=this.chart,c=d.renderer,g=this.options,e=this.symbolWidth,h=g.symbolPadding||0,f=this.itemStyle,k=this.itemHiddenStyle,l="horizontal"===g.layout?v(g.itemDistance,20):0,m=!g.rtl,p=!b.series,n=!p&&b.series.drawLegendSymbol?b.series:b,q=n.options,t=this.createCheckboxForItem&&q&&q.showCheckbox,u=g.useHTML,G=b.options.className,Q=a.label;q=e+h+l+(t?20:0);Q||(a.group=c.g("legend-item").addClass("highcharts-"+
n.type+"-series highcharts-color-"+b.colorIndex+(G?" "+G:"")+(p?" highcharts-series-"+b.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.label=Q=c.text("",m?e+h:-h,this.baseline||0,u),d.styledMode||Q.css(J(b.visible?f:k)),Q.attr({align:m?"left":"right",zIndex:2}).add(a.group),this.baseline||(this.fontMetrics=c.fontMetrics(d.styledMode?12:f.fontSize,Q),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,Q.attr("y",this.baseline),this.symbolHeight=g.symbolHeight||this.fontMetrics.f,g.squareSymbol&&
(this.symbolWidth=v(g.symbolWidth,Math.max(this.symbolHeight,16)),q=this.symbolWidth+h+l+(t?20:0),m&&Q.attr("x",this.symbolWidth+h))),n.drawLegendSymbol(this,b),this.setItemEvents&&this.setItemEvents(b,Q,u));t&&!b.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(b);this.colorizeItem(b,b.visible);!d.styledMode&&f.width||Q.css({width:(g.itemWidth||this.widthOption||d.spacingBox.width)-q+"px"});this.setText(b);d=Q.getBBox();c=this.fontMetrics&&this.fontMetrics.h||0;b.itemWidth=b.checkboxOffset=
g.itemWidth||a.labelWidth||d.width+q;this.maxItemWidth=Math.max(this.maxItemWidth,b.itemWidth);this.totalItemWidth+=b.itemWidth;this.itemHeight=b.itemHeight=Math.round(a.labelHeight||(d.height>1.5*c?d.height:c))};a.prototype.layoutItem=function(b){var a=this.options,d=this.padding,c="horizontal"===a.layout,g=b.itemHeight,e=this.itemMarginBottom,h=this.itemMarginTop,f=c?v(a.itemDistance,20):0,k=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>k?this.maxItemWidth:b.itemWidth;var l=b.legendItem||
{};c&&this.itemX-d+a>k&&(this.itemX=d,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+e),this.lastLineHeight=0);this.lastItemY=h+this.itemY+e;this.lastLineHeight=Math.max(g,this.lastLineHeight);l.x=this.itemX;l.y=this.itemY;c?this.itemX+=a:(this.itemY+=h+g+e,this.lastLineHeight=g);this.offsetWidth=this.widthOption||Math.max((c?this.itemX-d-(b.checkbox?0:f):a)+d,this.offsetWidth)};a.prototype.getAllItems=function(){var b=[];this.chart.series.forEach(function(a){var d=a&&a.options;a&&v(d.showInLegend,
m(d.linkedTo)?!1:void 0,!0)&&(b=b.concat((a.legendItem||{}).labels||("point"===d.legendType?a.data:a)))});L(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 d=this.chart,c=this.options,g=this.getAlignment();g&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(e,
h){e.test(g)&&!m(b[h])&&(d[n[h]]=Math.max(d[n[h]],d.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*c[h%2?"x":"y"]+v(c.margin,12)+a[h]+(d.titleOffset[h]||0)))})};a.prototype.proximatePositions=function(){var b=this.chart,a=[],d="left"===this.options.align;this.allItems.forEach(function(c){var g;var e=d;if(c.yAxis){c.xAxis.options.reversed&&(e=!e);c.points&&(g=D(e?c.points:c.points.slice(0).reverse(),function(b){return H(b.plotY)}));e=this.itemMarginTop+c.legendItem.label.getBBox().height+
this.itemMarginBottom;var h=c.yAxis.top-b.plotTop;c.visible?(g=g?g.plotY:c.yAxis.height,g+=h-.3*e):g=h+c.yAxis.height;a.push({target:g,size:e,item:c})}},this);for(var c,g=0,e=h(a,b.plotHeight);g<e.length;g++){var f=e[g];c=f.item.legendItem||{};f.pos&&(c.y=b.plotTop-b.spacing[0]+f.pos)}};a.prototype.render=function(){var b=this.chart,a=b.renderer,d=this.options,c=this.padding,g=this.getAllItems(),e=this.group,h=this.box;this.itemX=c;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=
l(d.width,b.spacingBox.width-c);var f=b.spacingBox.width-2*c-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(f/=2);this.maxLegendWidth=this.widthOption||f;e||(this.group=e=a.g("legend").addClass(d.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(e),this.scrollGroup=a.g().add(this.contentGroup));this.renderTitle();q(g,function(b,a){return(b.options&&b.options.legendIndex||0)-(a.options&&a.options.legendIndex||0)});d.reversed&&g.reverse();this.allItems=
g;this.display=f=!!g.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;g.forEach(this.renderItem,this);g.forEach(this.layoutItem,this);g=(this.widthOption||this.offsetWidth)+c;var k=this.lastItemY+this.lastLineHeight+this.titleHeight;k=this.handleOverflow(k);k+=c;h||(this.box=h=a.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(e));b.styledMode||h.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);
if(0<g&&0<k)h[h.placed?"animate":"attr"](h.crisp.call({},{x:0,y:0,width:g,height:k},h.strokeWidth()));e[f?"show":"hide"]();b.styledMode&&"none"===e.getStyle("display")&&(g=k=0);this.legendWidth=g;this.legendHeight=k;f&&this.align();this.proximate||this.positionItems();L(this,"afterRender")};a.prototype.align=function(b){void 0===b&&(b=this.chart.spacingBox);var a=this.chart,d=this.options,c=b.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<a.titleOffset[0]?c+=a.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&
0<a.titleOffset[2]&&(c-=a.titleOffset[2]);c!==b.y&&(b=J(b,{y:c}));a.hasRendered||(this.group.placed=!1);this.group.align(J(d,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":d.verticalAlign}),!0,b)};a.prototype.handleOverflow=function(b){var a=this,d=this.chart,c=d.renderer,g=this.options,e=g.y,h="top"===g.verticalAlign,f=this.padding,k=g.maxHeight,l=g.navigation,m=v(l.animation,!0),p=l.arrowSize||12,n=this.pages,q=this.allItems,t=function(b){"number"===typeof b?
U.attr({height:b}):U&&(a.clipRect=U.destroy(),a.contentGroup.clip());a.contentGroup.div&&(a.contentGroup.div.style.clip=b?"rect("+f+"px,9999px,"+(f+b)+"px,0)":"auto")},u=function(b){a[b]=c.circle(0,0,1.3*p).translate(p/2,p/2).add(D);d.styledMode||a[b].attr("fill","rgba(0,0,0,0.0001)");return a[b]},G,Q,P;e=d.spacingBox.height+(h?-e:e)-f;var D=this.nav,U=this.clipRect;"horizontal"!==g.layout||"middle"===g.verticalAlign||g.floating||(e/=2);k&&(e=Math.min(e,k));n.length=0;b&&0<e&&b>e&&!1!==l.enabled?
(this.clipHeight=G=Math.max(e-20-this.titleHeight-f,0),this.currentPage=v(this.currentPage,1),this.fullHeight=b,q.forEach(function(b,a){P=b.legendItem||{};b=P.y||0;var d=Math.round(P.label.getBBox().height),c=n.length;if(!c||b-n[c-1]>G&&(Q||b)!==n[c-1])n.push(Q||b),c++;P.pageIx=c-1;Q&&((q[a-1].legendItem||{}).pageIx=c-1);a===q.length-1&&b+d-n[c-1]>G&&d<=G&&(n.push(b),P.pageIx=c);b!==Q&&(Q=b)}),U||(U=a.clipRect=c.clipRect(0,f,9999,0),a.contentGroup.clip(U)),t(G),D||(this.nav=D=c.g().attr({zIndex:1}).add(this.group),
this.up=c.symbol("triangle",0,0,p,p).add(D),u("upTracker").on("click",function(){a.scroll(-1,m)}),this.pager=c.text("",15,10).addClass("highcharts-legend-navigation"),!d.styledMode&&l.style&&this.pager.css(l.style),this.pager.add(D),this.down=c.symbol("triangle-down",0,0,p,p).add(D),u("downTracker").on("click",function(){a.scroll(1,m)})),a.scroll(0),b=e):D&&(t(),this.nav=D.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return b};a.prototype.scroll=function(b,a){var c=this,g=this.chart,
e=this.pages,h=e.length,f=this.clipHeight,k=this.options.navigation,l=this.pager,m=this.padding,p=this.currentPage+b;p>h&&(p=h);0<p&&("undefined"!==typeof a&&u(a,g),this.nav.attr({translateX:m,translateY:f+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(b){b.attr({"class":1===p?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:p+"/"+h}),[this.down,this.downTracker].forEach(function(b){b.attr({x:18+this.pager.getBBox().width,
"class":p===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),g.styledMode||(this.up.attr({fill:1===p?k.inactiveColor:k.activeColor}),this.upTracker.css({cursor:1===p?"default":"pointer"}),this.down.attr({fill:p===h?k.inactiveColor:k.activeColor}),this.downTracker.css({cursor:p===h?"default":"pointer"})),this.scrollOffset=-e[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=p,this.positionCheckboxes(),b=y(v(a,g.renderer.globalAnimation,
!0)),d(function(){L(c,"afterScroll",{currentPage:p})},b.duration))};a.prototype.setItemEvents=function(b,a,d){var c=this,g=b.legendItem||{},e=c.chart.renderer.boxWrapper,h=b instanceof F,f="highcharts-legend-"+(h?"point":"series")+"-active",k=c.chart.styledMode,l=function(a){c.allItems.forEach(function(d){b!==d&&[d].concat(d.linkedSeries||[]).forEach(function(b){b.setState(a,!h)})})},m=0;for(d=d?[a,g.symbol]:[g.group];m<d.length;m++)if(g=d[m])g.on("mouseover",function(){b.visible&&l("inactive");b.setState("hover");
b.visible&&e.addClass(f);k||a.css(c.options.itemHoverStyle)}).on("mouseout",function(){c.chart.styledMode||a.css(J(b.visible?c.itemStyle:c.itemHiddenStyle));l("");e.removeClass(f);b.setState()}).on("click",function(a){var d=function(){b.setVisible&&b.setVisible();l(b.visible?"inactive":"")};e.removeClass(f);a={browserEvent:a};b.firePointEvent?b.firePointEvent("legendItemClick",a,d):L(b,"legendItemClick",a,d)})};a.prototype.createCheckboxForItem=function(b){b.checkbox=k("input",{type:"checkbox",className:"highcharts-legend-checkbox",
checked:b.selected,defaultChecked:b.selected},this.options.itemCheckboxStyle,this.chart.container);c(b.checkbox,"click",function(a){L(b.series||b,"checkboxClick",{checked:a.target.checked,item:b},function(){b.select()})})};return a}();"";return a});M(f,"Core/Series/SeriesRegistry.js",[f["Core/Globals.js"],f["Core/DefaultOptions.js"],f["Core/Series/Point.js"],f["Core/Utilities.js"]],function(a,f,x,F){var y=f.defaultOptions,E=F.extendClass,I=F.merge,u;(function(f){function n(a,c){var h=y.plotOptions||
{},e=c.defaultOptions,m=c.prototype;m.type=a;m.pointClass||(m.pointClass=x);e&&(h[a]=e);f.seriesTypes[a]=c}f.seriesTypes=a.seriesTypes;f.registerSeriesType=n;f.seriesType=function(a,c,k,e,m){var h=y.plotOptions||{};c=c||"";h[a]=I(h[c],k);n(a,E(f.seriesTypes[c]||function(){},e));f.seriesTypes[a].prototype.type=a;m&&(f.seriesTypes[a].prototype.pointClass=E(x,m));return f.seriesTypes[a]}})(u||(u={}));return u});M(f,"Core/Chart/Chart.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/Axis.js"],
f["Core/FormatUtilities.js"],f["Core/Foundation.js"],f["Core/Globals.js"],f["Core/Legend/Legend.js"],f["Core/MSPointer.js"],f["Core/DefaultOptions.js"],f["Core/Pointer.js"],f["Core/Renderer/RendererRegistry.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Time.js"],f["Core/Utilities.js"],f["Core/Renderer/HTML/AST.js"]],function(a,f,x,F,C,E,I,u,t,n,h,c,k,e,m){var p=a.animate,D=a.animObject,y=a.setAnimation,H=x.numberFormat,J=F.registerEventOptions,v=C.charts,l=
C.doc,q=C.marginNames,d=C.svg,g=C.win,b=u.defaultOptions,A=u.defaultTime,r=h.seriesTypes,w=e.addEvent,N=e.attr,z=e.cleanRecursively,S=e.createElement,O=e.css,W=e.defined,X=e.discardElement,B=e.erase,K=e.error,M=e.extend,ca=e.find,R=e.fireEvent,da=e.getStyle,G=e.isArray,Q=e.isNumber,P=e.isObject,Y=e.isString,U=e.merge,V=e.objectEach,T=e.pick,aa=e.pInt,ha=e.relativeLength,ia=e.removeEvent,ea=e.splat,ja=e.syncTimeout,la=e.uniqueKey;a=function(){function a(b,a,d){this.series=this.renderTo=this.renderer=
this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(b,
a,d)}a.chart=function(b,d,c){return new a(b,d,c)};a.prototype.getArgs=function(b,a,d){Y(b)||b.nodeName?(this.renderTo=b,this.init(a,d)):this.init(b,a)};a.prototype.init=function(a,d){var c=a.plotOptions||{};R(this,"init",{args:arguments},function(){var g=U(b,a),e=g.chart;V(g.plotOptions,function(a,b){P(a)&&(a.tooltip=c[b]&&U(c[b].tooltip)||void 0)});g.tooltip.userOptions=a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;this.userOptions=a;this.margin=[];this.spacing=[];this.bounds={h:{},
v:{}};this.labelCollectors=[];this.callback=d;this.isResizing=0;var h=e.zooming=e.zooming||{};a.chart&&!a.chart.zooming&&(h.resetButton=e.resetZoomButton);h.key=T(h.key,e.zoomKey);h.pinchType=T(h.pinchType,e.pinchType);h.singleTouch=T(h.singleTouch,e.zoomBySingleTouch);h.type=T(h.type,e.zoomType);this.options=g;this.axes=[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new k(a.time):C.time;this.numberFormatter=e.numberFormatter||H;this.styledMode=e.styledMode;this.hasCartesianSeries=
e.showAxes;this.index=v.length;v.push(this);C.chartCount++;J(this,e);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;R(this,"afterInit");this.firstRender()})};a.prototype.initSeries=function(a){var b=this.options.chart;b=a.type||b.type||b.defaultSeriesType;var d=r[b];d||K(17,!0,this,{missingModuleFor:b});b=new d;"function"===typeof b.init&&b.init(this,a);return b};a.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(a){a.points||a.data||
!a.enabledDataSorting||a.setData(a.options.data,!1)})};a.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(a,b){return a.linkedSeries.length||b.linkedSeries.length?b.linkedSeries.length-a.linkedSeries.length:0})};a.prototype.orderSeries=function(a){var b=this.series;a=a||0;for(var d=b.length;a<d;++a)b[a]&&(b[a].index=a,b[a].name=b[a].getName())};a.prototype.isInsidePlot=function(a,b,d){void 0===d&&(d={});var c=this.inverted,g=this.plotBox,e=this.plotLeft,h=this.plotTop,
f=this.scrollablePlotBox,k=0;var l=0;d.visiblePlotOnly&&this.scrollingContainer&&(l=this.scrollingContainer,k=l.scrollLeft,l=l.scrollTop);var m=d.series;g=d.visiblePlotOnly&&f||g;f=d.inverted?b:a;b=d.inverted?a:b;a={x:f,y:b,isInsidePlot:!0};if(!d.ignoreX){var p=m&&(c?m.yAxis:m.xAxis)||{pos:e,len:Infinity};f=d.paneCoordinates?p.pos+f:e+f;f>=Math.max(k+e,p.pos)&&f<=Math.min(k+e+g.width,p.pos+p.len)||(a.isInsidePlot=!1)}!d.ignoreY&&a.isInsidePlot&&(c=m&&(c?m.xAxis:m.yAxis)||{pos:h,len:Infinity},d=d.paneCoordinates?
c.pos+b:h+b,d>=Math.max(l+h,c.pos)&&d<=Math.min(l+h+g.height,c.pos+c.len)||(a.isInsidePlot=!1));R(this,"afterIsInsidePlot",a);return a.isInsidePlot};a.prototype.redraw=function(a){R(this,"beforeRedraw");var b=this.hasCartesianSeries?this.axes:this.colorAxis||[],d=this.series,c=this.pointer,g=this.legend,e=this.userOptions.legend,h=this.renderer,f=h.isHidden(),k=[],l=this.isDirtyBox,m=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);y(this.hasRendered?a:!1,this);f&&this.temporaryDisplay();
this.layOutTitles();for(a=d.length;a--;){var p=d[a];if(p.options.stacking||p.options.centerInCategory){var G=!0;if(p.isDirty){var r=!0;break}}}if(r)for(a=d.length;a--;)p=d[a],p.options.stacking&&(p.isDirty=!0);d.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),m=!0):e&&(e.labelFormatter||e.labelFormat)&&(m=!0));a.isDirtyData&&R(a,"updatedData")});m&&g&&g.options.enabled&&(g.render(),this.isDirtyLegend=!1);G&&this.getStacks();b.forEach(function(a){a.updateNames();
a.setScale()});this.getMargins();b.forEach(function(a){a.isDirty&&(l=!0)});b.forEach(function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,k.push(function(){R(a,"afterSetExtremes",M(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(l||G)&&a.redraw()});l&&this.drawChartBox();R(this,"predraw");d.forEach(function(a){(l||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});c&&c.reset(!0);h.draw();R(this,"redraw");R(this,"render");f&&this.temporaryDisplay(!0);k.forEach(function(a){a.call()})};
a.prototype.get=function(a){function b(b){return b.id===a||b.options&&b.options.id===a}for(var d=this.series,c=ca(this.axes,b)||ca(this.series,b),g=0;!c&&g<d.length;g++)c=ca(d[g].points||[],b);return c};a.prototype.getAxes=function(){var a=this,b=this.options,d=b.xAxis=ea(b.xAxis||{});b=b.yAxis=ea(b.yAxis||{});R(this,"getAxes");d.forEach(function(a,b){a.index=b;a.isX=!0});b.forEach(function(a,b){a.index=b});d.concat(b).forEach(function(b){new f(a,b)});R(this,"afterGetAxes")};a.prototype.getSelectedPoints=
function(){return this.series.reduce(function(a,b){b.getPointsCollection().forEach(function(b){T(b.selectedStaging,b.selected)&&a.push(b)});return a},[])};a.prototype.getSelectedSeries=function(){return this.series.filter(function(a){return a.selected})};a.prototype.setTitle=function(a,b,d){this.applyDescription("title",a);this.applyDescription("subtitle",b);this.applyDescription("caption",void 0);this.layOutTitles(d)};a.prototype.applyDescription=function(a,b){var d=this,c="title"===a?{color:"#333333",
fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};c=this.options[a]=U(!this.styledMode&&{style:c},this.options[a],b);var g=this[a];g&&b&&(this[a]=g=g.destroy());c&&!g&&(g=this.renderer.text(c.text,0,0,c.useHTML).attr({align:c.align,"class":"highcharts-"+a,zIndex:c.zIndex||4}).add(),g.update=function(b){d[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](b)},this.styledMode||g.css(c.style),this[a]=g)};a.prototype.layOutTitles=function(a){var b=[0,0,0],d=this.renderer,
c=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var g=this[a],e=this.options[a],h=e.verticalAlign||"top";a="title"===a?"top"===h?-3:0:"top"===h?b[0]+2:0;var f;if(g){this.styledMode||(f=e.style&&e.style.fontSize);f=d.fontMetrics(f,g).b;g.css({width:(e.width||c.width+(e.widthAdjust||0))+"px"});var k=Math.round(g.getBBox(e.useHTML).height);g.align(M({y:"bottom"===h?f:a+f,height:k},e),!1,"spacingBox");e.floating||("top"===h?b[0]=Math.ceil(b[0]+k):"bottom"===h&&(b[2]=Math.ceil(b[2]+
k)))}},this);b[0]&&"top"===(this.options.title.verticalAlign||"top")&&(b[0]+=this.options.title.margin);b[2]&&"bottom"===this.options.caption.verticalAlign&&(b[2]+=this.options.caption.margin);var g=!this.titleOffset||this.titleOffset.join(",")!==b.join(",");this.titleOffset=b;R(this,"afterLayOutTitles");!this.isDirtyBox&&g&&(this.isDirtyBox=this.isDirtyLegend=g,this.hasRendered&&T(a,!0)&&this.isDirtyBox&&this.redraw())};a.prototype.getChartSize=function(){var a=this.options.chart,b=a.width;a=a.height;
var d=this.renderTo;W(b)||(this.containerWidth=da(d,"width"));W(a)||(this.containerHeight=da(d,"height"));this.chartWidth=Math.max(0,b||this.containerWidth||600);this.chartHeight=Math.max(0,ha(a,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};a.prototype.temporaryDisplay=function(a){var b=this.renderTo;if(a)for(;b&&b.style;)b.hcOrigStyle&&(O(b,b.hcOrigStyle),delete b.hcOrigStyle),b.hcOrigDetached&&(l.body.removeChild(b),b.hcOrigDetached=!1),b=b.parentNode;else for(;b&&b.style;){l.body.contains(b)||
b.parentNode||(b.hcOrigDetached=!0,l.body.appendChild(b));if("none"===da(b,"display",!1)||b.hcOricDetached)b.hcOrigStyle={display:b.style.display,height:b.style.height,overflow:b.style.overflow},a={display:"block",overflow:"hidden"},b!==this.renderTo&&(a.height=0),O(b,a),b.offsetWidth||b.style.setProperty("display","block","important");b=b.parentNode;if(b===l.body)break}};a.prototype.setClassName=function(a){this.container.className="highcharts-container "+(a||"")};a.prototype.getContainer=function(){var a=
this.options,b=a.chart,g=la(),e,h=this.renderTo;h||(this.renderTo=h=b.renderTo);Y(h)&&(this.renderTo=h=l.getElementById(h));h||K(13,!0,this);var f=aa(N(h,"data-highcharts-chart"));Q(f)&&v[f]&&v[f].hasRendered&&v[f].destroy();N(h,"data-highcharts-chart",this.index);h.innerHTML=m.emptyHTML;b.skipClone||h.offsetWidth||this.temporaryDisplay();this.getChartSize();f=this.chartWidth;var k=this.chartHeight;O(h,{overflow:"hidden"});this.styledMode||(e=M({position:"relative",overflow:"hidden",width:f+"px",
height:k+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},b.style||{}));this.container=g=S("div",{id:g},e,h);this._cursor=g.style.cursor;this.renderer=new (b.renderer||!d?n.getRendererType(b.renderer):c)(g,f,k,void 0,b.forExport,a.exporting&&a.exporting.allowHTML,this.styledMode);y(void 0,this);this.setClassName(b.className);if(this.styledMode)for(var p in a.defs)this.renderer.definition(a.defs[p]);
else this.renderer.setStyle(b.style);this.renderer.chartIndex=this.index;R(this,"afterGetContainer")};a.prototype.getMargins=function(a){var b=this.spacing,d=this.margin,c=this.titleOffset;this.resetMargins();c[0]&&!W(d[0])&&(this.plotTop=Math.max(this.plotTop,c[0]+b[0]));c[2]&&!W(d[2])&&(this.marginBottom=Math.max(this.marginBottom,c[2]+b[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(d,b);R(this,"getMargins");a||this.getAxisMargins()};a.prototype.getAxisMargins=function(){var a=
this,b=a.axisOffset=[0,0,0,0],d=a.colorAxis,c=a.margin,g=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?g(a.axes):d&&d.length&&g(d);q.forEach(function(d,g){W(c[g])||(a[d]+=b[g])});a.setChartSize()};a.prototype.reflow=function(a){var b=this,d=b.options.chart,c=b.renderTo,h=W(d.width)&&W(d.height),f=d.width||da(c,"width");d=d.height||da(c,"height");c=a?a.target:g;delete b.pointer.chartPosition;if(!h&&!b.isPrinting&&f&&d&&(c===g||c===l)){if(f!==b.containerWidth||d!==
b.containerHeight)e.clearTimeout(b.reflowTimeout),b.reflowTimeout=ja(function(){b.container&&b.setSize(void 0,void 0,!1)},a?100:0);b.containerWidth=f;b.containerHeight=d}};a.prototype.setReflow=function(a){var b=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=w(g,"resize",function(a){b.options&&b.reflow(a)}),w(this,"destroy",this.unbindReflow))};a.prototype.setSize=function(a,b,d){var c=this,g=c.renderer;c.isResizing+=1;y(d,c);d=
g.globalAnimation;c.oldChartHeight=c.chartHeight;c.oldChartWidth=c.chartWidth;"undefined"!==typeof a&&(c.options.chart.width=a);"undefined"!==typeof b&&(c.options.chart.height=b);c.getChartSize();c.styledMode||(d?p:O)(c.container,{width:c.chartWidth+"px",height:c.chartHeight+"px"},d);c.setChartSize(!0);g.setSize(c.chartWidth,c.chartHeight,d);c.axes.forEach(function(a){a.isDirty=!0;a.setScale()});c.isDirtyLegend=!0;c.isDirtyBox=!0;c.layOutTitles();c.getMargins();c.redraw(d);c.oldChartHeight=null;R(c,
"resize");ja(function(){c&&R(c,"endResize",null,function(){--c.isResizing})},D(d).duration)};a.prototype.setChartSize=function(a){var b=this.inverted,d=this.renderer,c=this.chartWidth,g=this.chartHeight,e=this.options.chart,h=this.spacing,f=this.clipOffset,k,l,m,p;this.plotLeft=k=Math.round(this.plotLeft);this.plotTop=l=Math.round(this.plotTop);this.plotWidth=m=Math.max(0,Math.round(c-k-this.marginRight));this.plotHeight=p=Math.max(0,Math.round(g-l-this.marginBottom));this.plotSizeX=b?p:m;this.plotSizeY=
b?m:p;this.plotBorderWidth=e.plotBorderWidth||0;this.spacingBox=d.spacingBox={x:h[3],y:h[0],width:c-h[3]-h[1],height:g-h[0]-h[2]};this.plotBox=d.plotBox={x:k,y:l,width:m,height:p};b=2*Math.floor(this.plotBorderWidth/2);c=Math.ceil(Math.max(b,f[3])/2);g=Math.ceil(Math.max(b,f[0])/2);this.clipBox={x:c,y:g,width:Math.floor(this.plotSizeX-Math.max(b,f[1])/2-c),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(b,f[2])/2-g))};a||(this.axes.forEach(function(a){a.setAxisSize();a.setAxisTranslation()}),
d.alignElements());R(this,"afterSetChartSize",{skipAxes:a})};a.prototype.resetMargins=function(){R(this,"resetMargins");var a=this,b=a.options.chart;["margin","spacing"].forEach(function(d){var c=b[d],g=P(c)?c:[c,c,c,c];["Top","Right","Bottom","Left"].forEach(function(c,e){a[d][e]=T(b[d+c],g[e])})});q.forEach(function(b,d){a[b]=T(a.margin[d],a.spacing[d])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]};a.prototype.drawChartBox=function(){var a=this.options.chart,b=this.renderer,d=this.chartWidth,
c=this.chartHeight,g=this.styledMode,e=this.plotBGImage,h=a.backgroundColor,f=a.plotBackgroundColor,k=a.plotBackgroundImage,l=this.plotLeft,m=this.plotTop,p=this.plotWidth,G=this.plotHeight,r=this.plotBox,n=this.clipRect,q=this.clipBox,P=this.chartBackground,w=this.plotBackground,A=this.plotBorder,v,t="animate";P||(this.chartBackground=P=b.rect().addClass("highcharts-background").add(),t="attr");if(g)var Q=v=P.strokeWidth();else{Q=a.borderWidth||0;v=Q+(a.shadow?8:0);h={fill:h||"none"};if(Q||P["stroke-width"])h.stroke=
a.borderColor,h["stroke-width"]=Q;P.attr(h).shadow(a.shadow)}P[t]({x:v/2,y:v/2,width:d-v-Q%2,height:c-v-Q%2,r:a.borderRadius});t="animate";w||(t="attr",this.plotBackground=w=b.rect().addClass("highcharts-plot-background").add());w[t](r);g||(w.attr({fill:f||"none"}).shadow(a.plotShadow),k&&(e?(k!==e.attr("href")&&e.attr("href",k),e.animate(r)):this.plotBGImage=b.image(k,l,m,p,G).add()));n?n.animate({width:q.width,height:q.height}):this.clipRect=b.clipRect(q);t="animate";A||(t="attr",this.plotBorder=
A=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());g||A.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});A[t](A.crisp({x:l,y:m,width:p,height:G},-A.strokeWidth()));this.isDirtyBox=!1;R(this,"afterDrawChartBox")};a.prototype.propFromSeries=function(){var a=this,b=a.options.chart,d=a.options.series,c,g,e;["inverted","angular","polar"].forEach(function(h){g=r[b.type||b.defaultSeriesType];e=b[h]||g&&g.prototype[h];for(c=d&&d.length;!e&&c--;)(g=r[d[c].type])&&
g.prototype[h]&&(e=!0);a[h]=e})};a.prototype.linkSeries=function(){var a=this,b=a.series;b.forEach(function(a){a.linkedSeries.length=0});b.forEach(function(b){var d=b.options.linkedTo;Y(d)&&(d=":previous"===d?a.series[b.index-1]:a.get(d))&&d.linkedParent!==b&&(d.linkedSeries.push(b),b.linkedParent=d,d.enabledDataSorting&&b.setDataSortingOptions(),b.visible=T(b.options.visible,d.options.visible,b.visible))});R(this,"afterLinkSeries")};a.prototype.renderSeries=function(){this.series.forEach(function(a){a.translate();
a.render()})};a.prototype.renderLabels=function(){var a=this,b=a.options.labels;b.items&&b.items.forEach(function(d){var c=M(b.style,d.style),g=aa(c.left)+a.plotLeft,e=aa(c.top)+a.plotTop+12;delete c.left;delete c.top;a.renderer.text(d.html,g,e).attr({zIndex:2}).css(c).add()})};a.prototype.render=function(){var a=this.axes,b=this.colorAxis,d=this.renderer,c=this.options,g=function(a){a.forEach(function(a){a.visible&&a.render()})},e=0;this.setTitle();this.legend=new E(this,c.legend);this.getStacks&&
this.getStacks();this.getMargins(!0);this.setChartSize();c=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return e=21,!0});var h=this.plotHeight=Math.max(this.plotHeight-e,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var f=1.1<c/this.plotWidth,k=1.05<h/this.plotHeight;if(f||k)a.forEach(function(a){(a.horiz&&f||!a.horiz&&k)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?g(a):b&&b.length&&g(b);
this.seriesGroup||(this.seriesGroup=d.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};a.prototype.addCredits=function(a){var b=this,d=U(!0,this.options.credits,a);d.enabled&&!this.credits&&(this.credits=this.renderer.text(d.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){d.href&&(g.location.href=d.href)}).attr({align:d.position.align,zIndex:8}),b.styledMode||
this.credits.css(d.style),this.credits.add().align(d.position),this.credits.update=function(a){b.credits=b.credits.destroy();b.addCredits(a)})};a.prototype.destroy=function(){var a=this,b=a.axes,d=a.series,c=a.container,g=c&&c.parentNode,e;R(a,"destroy");a.renderer.forExport?B(v,a):v[a.index]=void 0;C.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");ia(a);for(e=b.length;e--;)b[e]=b[e].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(e=d.length;e--;)d[e]=
d[e].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(b){var d=a[b];d&&d.destroy&&(a[b]=d.destroy())});c&&(c.innerHTML=m.emptyHTML,ia(c),g&&X(c));V(a,function(b,d){delete a[d]})};a.prototype.firstRender=function(){var a=this,b=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();
a.getAxes();(G(b.series)?b.series:[]).forEach(function(b){a.initSeries(b)});a.linkSeries();a.setSeriesData();R(a,"beforeRender");t&&(I.isRequired()?a.pointer=new I(a,b):a.pointer=new t(a,b));a.render();a.pointer.getChartPosition();if(!a.renderer.imgCount&&!a.hasLoaded)a.onload();a.temporaryDisplay(!0)}};a.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&"undefined"!==typeof this.index&&a.apply(this,[this])},this);R(this,"load");R(this,"render");W(this.index)&&
this.setReflow(this.options.chart.reflow);this.warnIfA11yModuleNotLoaded();this.hasLoaded=!0};a.prototype.warnIfA11yModuleNotLoaded=function(){var a=this.options,b=this.title;a&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":b&&b.element.textContent||""}),a.accessibility&&!1===a.accessibility.enabled||K('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',
!1,this))};a.prototype.addSeries=function(a,b,d){var c=this,g;a&&(b=T(b,!0),R(c,"addSeries",{options:a},function(){g=c.initSeries(a);c.isDirtyLegend=!0;c.linkSeries();g.enabledDataSorting&&g.setData(a.data,!1);R(c,"afterAddSeries",{series:g});b&&c.redraw(d)}));return g};a.prototype.addAxis=function(a,b,d,c){return this.createAxis(b?"xAxis":"yAxis",{axis:a,redraw:d,animation:c})};a.prototype.addColorAxis=function(a,b,d){return this.createAxis("colorAxis",{axis:a,redraw:b,animation:d})};a.prototype.createAxis=
function(a,b){a=new f(this,U(b.axis,{index:this[a].length,isX:"xAxis"===a}));T(b.redraw,!0)&&this.redraw(b.animation);return a};a.prototype.showLoading=function(a){var b=this,d=b.options,c=d.loading,g=function(){e&&O(e,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})},e=b.loadingDiv,h=b.loadingSpan;e||(b.loadingDiv=e=S("div",{className:"highcharts-loading highcharts-loading-hidden"},null,b.container));h||(b.loadingSpan=h=S("span",{className:"highcharts-loading-inner"},
null,e),w(b,"redraw",g));e.className="highcharts-loading";m.setElementHTML(h,T(a,d.lang.loading,""));b.styledMode||(O(e,M(c.style,{zIndex:10})),O(h,c.labelStyle),b.loadingShown||(O(e,{opacity:0,display:""}),p(e,{opacity:c.style.opacity||.5},{duration:c.showDuration||0})));b.loadingShown=!0;g()};a.prototype.hideLoading=function(){var a=this.options,b=this.loadingDiv;b&&(b.className="highcharts-loading highcharts-loading-hidden",this.styledMode||p(b,{opacity:0},{duration:a.loading.hideDuration||100,
complete:function(){O(b,{display:"none"})}}));this.loadingShown=!1};a.prototype.update=function(a,b,d,c){var g=this,e={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},h=a.isResponsiveOptions,f=[],l,m;R(g,"update",{options:a});h||g.setResponsive(!1,!0);a=z(a,g.options);g.userOptions=U(g.userOptions,a);var p=a.chart;if(p){U(!0,g.options.chart,p);"className"in p&&g.setClassName(p.className);"reflow"in p&&g.setReflow(p.reflow);if("inverted"in p||"polar"in p||"type"in
p){g.propFromSeries();var G=!0}"alignTicks"in p&&(G=!0);"events"in p&&J(this,p);V(p,function(a,b){-1!==g.propsRequireUpdateSeries.indexOf("chart."+b)&&(l=!0);-1!==g.propsRequireDirtyBox.indexOf(b)&&(g.isDirtyBox=!0);-1!==g.propsRequireReflow.indexOf(b)&&(h?g.isDirtyBox=!0:m=!0)});!g.styledMode&&p.style&&g.renderer.setStyle(g.options.chart.style||{})}!g.styledMode&&a.colors&&(this.options.colors=a.colors);a.time&&(this.time===A&&(this.time=new k(a.time)),U(!0,g.options.time,a.time));V(a,function(b,
d){if(g[d]&&"function"===typeof g[d].update)g[d].update(b,!1);else if("function"===typeof g[e[d]])g[e[d]](b);else"colors"!==d&&-1===g.collectionsWithUpdate.indexOf(d)&&U(!0,g.options[d],a[d]);"chart"!==d&&-1!==g.propsRequireUpdateSeries.indexOf(d)&&(l=!0)});this.collectionsWithUpdate.forEach(function(b){if(a[b]){var c=[];g[b].forEach(function(a,b){a.options.isInternal||c.push(T(a.options.index,b))});ea(a[b]).forEach(function(a,e){var h=W(a.id),f;h&&(f=g.get(a.id));!f&&g[b]&&(f=g[b][c?c[e]:e])&&h&&
W(f.options.id)&&(f=void 0);f&&f.coll===b&&(f.update(a,!1),d&&(f.touched=!0));!f&&d&&g.collectionsWithInit[b]&&(g.collectionsWithInit[b][0].apply(g,[a].concat(g.collectionsWithInit[b][1]||[]).concat([!1])).touched=!0)});d&&g[b].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:f.push(a)})}});f.forEach(function(a){a.chart&&a.remove&&a.remove(!1)});G&&g.axes.forEach(function(a){a.update({},!1)});l&&g.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);G=p&&
p.width;p=p&&(Y(p.height)?ha(p.height,G||g.chartWidth):p.height);m||Q(G)&&G!==g.chartWidth||Q(p)&&p!==g.chartHeight?g.setSize(G,p,c):T(b,!0)&&g.redraw(c);R(g,"afterUpdate",{options:a,redraw:b,animation:c})};a.prototype.setSubtitle=function(a,b){this.applyDescription("subtitle",a);this.layOutTitles(b)};a.prototype.setCaption=function(a,b){this.applyDescription("caption",a);this.layOutTitles(b)};a.prototype.showResetZoom=function(){function a(){d.zoomOut()}var d=this,c=b.lang,g=d.options.chart.zooming.resetButton,
e=g.theme,h="chart"===g.relativeTo||"spacingBox"===g.relativeTo?null:"scrollablePlotBox";R(this,"beforeShowResetZoom",null,function(){d.resetZoomButton=d.renderer.button(c.resetZoom,null,null,a,e).attr({align:g.position.align,title:c.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(g.position,!1,h)});R(this,"afterShowResetZoom")};a.prototype.zoomOut=function(){R(this,"selection",{resetSelection:!0},this.zoom)};a.prototype.zoom=function(a){var b=this,d=b.pointer,c=b.inverted?d.mouseDownX:
d.mouseDownY,g=!1,e;!a||a.resetSelection?(b.axes.forEach(function(a){e=a.zoom()}),d.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var h=a.axis,f=b.inverted?h.left:h.top,k=b.inverted?f+h.width:f+h.height,l=h.isXAxis,m=!1;if(!l&&c>=f&&c<=k||l||!W(c))m=!0;d[l?"zoomX":"zoomY"]&&m&&(e=h.zoom(a.min,a.max),h.displayBtn&&(g=!0))});var h=b.resetZoomButton;g&&!h?b.showResetZoom():!g&&P(h)&&(b.resetZoomButton=h.destroy());e&&b.redraw(T(b.options.chart.animation,a&&a.animation,100>b.pointCount))};
a.prototype.pan=function(a,b){var d=this,c=d.hoverPoints;b="object"===typeof b?b:{enabled:b,type:"x"};var g=d.options.chart;g&&g.panning&&(g.panning=b);var e=b.type,h;R(this,"pan",{originalEvent:a},function(){c&&c.forEach(function(a){a.setState()});var b=d.xAxis;"xy"===e?b=b.concat(d.yAxis):"y"===e&&(b=d.yAxis);var g={};b.forEach(function(b){if(b.options.panningEnabled&&!b.options.isInternal){var c=b.horiz,f=a[c?"chartX":"chartY"];c=c?"mouseDownX":"mouseDownY";var k=d[c],l=b.minPointOffset||0,m=b.reversed&&
!d.inverted||!b.reversed&&d.inverted?-1:1,p=b.getExtremes(),G=b.toValue(k-f,!0)+l*m,r=b.toValue(k+b.len-f,!0)-(l*m||b.isXAxis&&b.pointRangePadding||0),n=r<G;m=b.hasVerticalPanning();k=n?r:G;G=n?G:r;var q=b.panningState;!m||b.isXAxis||q&&!q.isDirty||b.series.forEach(function(a){var b=a.getProcessedData(!0);b=a.getExtremes(b.yData,!0);q||(q={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});Q(b.dataMin)&&Q(b.dataMax)&&(q.startMin=Math.min(T(a.options.threshold,Infinity),b.dataMin,q.startMin),q.startMax=
Math.max(T(a.options.threshold,-Infinity),b.dataMax,q.startMax))});m=Math.min(T(q&&q.startMin,p.dataMin),l?p.min:b.toValue(b.toPixels(p.min)-b.minPixelPadding));r=Math.max(T(q&&q.startMax,p.dataMax),l?p.max:b.toValue(b.toPixels(p.max)+b.minPixelPadding));b.panningState=q;b.isOrdinal||(l=m-k,0<l&&(G+=l,k=m),l=G-r,0<l&&(G=r,k-=l),b.series.length&&k!==p.min&&G!==p.max&&k>=m&&G<=r&&(b.setExtremes(k,G,!1,!1,{trigger:"pan"}),!d.resetZoomButton&&k!==m&&G!==r&&e.match("y")&&(d.showResetZoom(),b.displayBtn=
!1),h=!0),g[c]=f)}});V(g,function(a,b){d[b]=a});h&&d.redraw(!1);O(d.container,{cursor:"move"})})};return a}();M(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});M(f,"Core/Legend/LegendSymbol.js",[f["Core/Utilities.js"]],function(a){var f=a.merge,x=a.pick,F;(function(a){a.drawLineMarker=function(a){var y=this.legendItem=this.legendItem||{},u=this.options,t=a.symbolWidth,n=a.symbolHeight,h=n/2,c=this.chart.renderer,k=y.group;a=a.baseline-Math.round(.3*a.fontMetrics.b);var e={},m=u.marker;this.chart.styledMode||
(e={"stroke-width":u.lineWidth||0},u.dashStyle&&(e.dashstyle=u.dashStyle));y.line=c.path([["M",0,a],["L",t,a]]).addClass("highcharts-graph").attr(e).add(k);m&&!1!==m.enabled&&t&&(u=Math.min(x(m.radius,h),h),0===this.symbol.indexOf("url")&&(m=f(m,{width:n,height:n}),u=0),y.symbol=y=c.symbol(this.symbol,t/2-u,a-u,2*u,2*u,m).addClass("highcharts-point").add(k),y.isMarker=!0)};a.drawRectangle=function(a,f){f=f.legendItem||{};var u=a.symbolHeight,t=a.options.squareSymbol;f.symbol=this.chart.renderer.rect(t?
(a.symbolWidth-u)/2:0,a.baseline-u+1,t?u:a.symbolWidth,u,x(a.options.symbolRadius,u/2)).addClass("highcharts-point").attr({zIndex:3}).add(f.group)}})(F||(F={}));return F});M(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"}});M(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,x,F,C,E,I,u,
t,n){var h=a.animObject,c=a.setAnimation,k=f.defaultOptions,e=x.registerEventOptions,m=F.hasTouch,p=F.svg,D=F.win,y=u.seriesTypes,H=n.addEvent,J=n.arrayMax,v=n.arrayMin,l=n.clamp,q=n.cleanRecursively,d=n.correctFloat,g=n.defined,b=n.erase,A=n.error,r=n.extend,w=n.find,N=n.fireEvent,z=n.getNestedProperty,S=n.isArray,O=n.isNumber,W=n.isString,X=n.merge,B=n.objectEach,K=n.pick,M=n.removeEvent,ca=n.splat,R=n.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(a,b){N(this,"init",{options:b});var d=this,c=a.series;this.eventsToUnbind=[];d.chart=a;d.options=d.setOptions(b);b=d.options;d.linkedSeries=[];d.bindAxes();r(d,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});e(this,b);var g=b.events;if(g&&g.click||b.point&&b.point.events&&b.point.events.click||
b.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();d.parallelArrays.forEach(function(a){d[a+"Data"]||(d[a+"Data"]=[])});d.isCartesian&&(a.hasCartesianSeries=!0);var h;c.length&&(h=c[c.length-1]);d._i=K(h&&h._i,-1)+1;d.opacity=d.options.opacity;a.orderSeries(this.insert(c));b.dataSorting&&b.dataSorting.enabled?d.setDataSortingOptions():d.points||d.data||d.setData(b.data,!1);N(this,"afterInit")};a.prototype.is=function(a){return y[a]&&this instanceof y[a]};a.prototype.insert=function(a){var b=
this.options.index,d;if(O(b)){for(d=a.length;d--;)if(b>=K(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return K(d,a.length-1)};a.prototype.bindAxes=function(){var a=this,b=a.options,d=a.chart,c;N(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(g){var e=0;d[g].forEach(function(d){c=d.options;if(b[g]===e&&!c.isInternal||"undefined"!==typeof b[g]&&b[g]===c.id||"undefined"===typeof b[g]&&0===c.index)a.insert(d.series),a[g]=d,
d.isDirty=!0;c.isInternal||e++});a[g]||a.optionalAxis===g||A(18,!0,d)})});N(this,"afterBindAxes")};a.prototype.updateParallelArrays=function(a,b){var d=a.series,c=arguments,g=O(b)?function(c){var g="y"===c&&d.toYData?d.toYData(a):a[c];d[c+"Data"][b]=g}:function(a){Array.prototype[b].apply(d[a+"Data"],Array.prototype.slice.call(c,2))};d.parallelArrays.forEach(g)};a.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&
this.yData&&0<this.yData.length};a.prototype.autoIncrement=function(a){var b=this.options,d=b.pointIntervalUnit,c=b.relativeXValue,g=this.chart.time,e=this.xIncrement,h;e=K(e,b.pointStart,0);this.pointInterval=h=K(this.pointInterval,b.pointInterval,1);c&&O(a)&&(h*=a);d&&(b=new g.Date(e),"day"===d?g.set("Date",b,g.get("Date",b)+h):"month"===d?g.set("Month",b,g.get("Month",b)+h):"year"===d&&g.set("FullYear",b,g.get("FullYear",b)+h),h=b.getTime()-e);if(c&&O(a))return e+h;this.xIncrement=e+h;return e};
a.prototype.setDataSortingOptions=function(){var a=this.options;r(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});g(a.pointRange)||(a.pointRange=1)};a.prototype.setOptions=function(a){var b=this.chart,d=b.options,c=d.plotOptions,e=b.userOptions||{};a=X(a);b=b.styledMode;var h={plotOptions:c,userOptions:a};N(this,"setOptions",h);var f=h.plotOptions[this.type],l=e.plotOptions||{};this.userOptions=h.userOptions;e=X(f,c.series,e.plotOptions&&e.plotOptions[this.type],a);this.tooltipOptions=
X(k.tooltip,k.plotOptions.series&&k.plotOptions.series.tooltip,k.plotOptions[this.type].tooltip,d.tooltip.userOptions,c.series&&c.series.tooltip,c[this.type].tooltip,a.tooltip);this.stickyTracking=K(a.stickyTracking,l[this.type]&&l[this.type].stickyTracking,l.series&&l.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:e.stickyTracking);null===f.marker&&delete e.marker;this.zoneAxis=e.zoneAxis;c=this.zones=(e.zones||[]).slice();!e.negativeColor&&!e.negativeFillColor||e.zones||
(d={value:e[this.zoneAxis+"Threshold"]||e.threshold||0,className:"highcharts-negative"},b||(d.color=e.negativeColor,d.fillColor=e.negativeFillColor),c.push(d));c.length&&g(c[c.length-1].value)&&c.push(b?{}:{color:this.color,fillColor:this.fillColor});N(this,"afterSetOptions",{options:e});return e};a.prototype.getName=function(){return K(this.options.name,"Series "+(this.index+1))};a.prototype.getCyclic=function(a,b,d){var c=this.chart,e=this.userOptions,h=a+"Index",f=a+"Counter",k=d?d.length:K(c.options.chart[a+
"Count"],c[a+"Count"]);if(!b){var l=K(e[h],e["_"+h]);g(l)||(c.series.length||(c[f]=0),e["_"+h]=l=c[f]%k,c[f]+=1);d&&(b=d[l])}"undefined"!==typeof l&&(this[h]=l);this[a]=b};a.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||k.plotOptions[this.type].color,this.chart.options.colors)};a.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};a.prototype.getSymbol=
function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};a.prototype.findPointIndex=function(a,b){var d=a.id,c=a.x,g=this.points,e=this.options.dataSorting,h,f;if(d)e=this.chart.get(d),e instanceof E&&(h=e);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(h=function(b){return!b.touched&&b.index===a.index},e&&e.matchByName?h=function(b){return!b.touched&&b.name===a.name}:this.options.relativeXValue&&(h=function(b){return!b.touched&&
b.options.x===a.x}),h=w(g,h),!h)return;if(h){var k=h&&h.index;"undefined"!==typeof k&&(f=!0)}"undefined"===typeof k&&O(c)&&(k=this.xData.indexOf(c,b));-1!==k&&"undefined"!==typeof k&&this.cropped&&(k=k>=this.cropStart?k-this.cropStart:k);!f&&O(k)&&g[k]&&g[k].touched&&(k=void 0);return k};a.prototype.updateData=function(a,b){var d=this.options,c=d.dataSorting,e=this.points,h=[],f=this.requireSorting,k=a.length===e.length,l,m,p,r=!0;this.xIncrement=null;a.forEach(function(a,b){var m=g(a)&&this.pointClass.prototype.optionsToObject.call({series:this},
a)||{},r=m.x;if(m.id||O(r)){if(m=this.findPointIndex(m,p),-1===m||"undefined"===typeof m?h.push(a):e[m]&&a!==d.data[m]?(e[m].update(a,!1,null,!1),e[m].touched=!0,f&&(p=m+1)):e[m]&&(e[m].touched=!0),!k||b!==m||c&&c.enabled||this.hasDerivedData)l=!0}else h.push(a)},this);if(l)for(a=e.length;a--;)(m=e[a])&&!m.touched&&m.remove&&m.remove(!1,b);else!k||c&&c.enabled?r=!1:(a.forEach(function(a,b){a!==e[b].y&&e[b].update&&e[b].update(a,!1,null,!1)}),h.length=0);e.forEach(function(a){a&&(a.touched=!1)});if(!r)return!1;
h.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=J(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(a,b,d,c){void 0===b&&(b=!0);var g=this,e=g.points,h=e&&e.length||0,f=g.options,k=g.chart,l=f.dataSorting,m=g.xAxis,p=f.turboThreshold,r=this.xData,n=this.yData,q=g.pointArrayMap;q=q&&q.length;var G=f.keys,w,t=0,v=1,P=null;if(!k.options.chart.allowMutatingData){f.data&&delete g.options.data;g.userOptions.data&&
delete g.userOptions.data;var z=X(!0,a)}a=z||a||[];z=a.length;l&&l.enabled&&(a=this.sortData(a));k.options.chart.allowMutatingData&&!1!==c&&z&&h&&!g.cropped&&!g.hasGroupedData&&g.visible&&!g.boosted&&(w=this.updateData(a,d));if(!w){g.xIncrement=null;g.colorCounter=0;this.parallelArrays.forEach(function(a){g[a+"Data"].length=0});if(p&&z>p)if(P=g.getFirstValidPoint(a),O(P))for(d=0;d<z;d++)r[d]=this.autoIncrement(),n[d]=a[d];else if(S(P))if(q)if(P.length===q)for(d=0;d<z;d++)r[d]=this.autoIncrement(),
n[d]=a[d];else for(d=0;d<z;d++)c=a[d],r[d]=c[0],n[d]=c.slice(1,q+1);else if(G&&(t=G.indexOf("x"),v=G.indexOf("y"),t=0<=t?t:0,v=0<=v?v:1),1===P.length&&(v=0),t===v)for(d=0;d<z;d++)r[d]=this.autoIncrement(),n[d]=a[d][v];else for(d=0;d<z;d++)c=a[d],r[d]=c[t],n[d]=c[v];else A(12,!1,k);else for(d=0;d<z;d++)"undefined"!==typeof a[d]&&(c={series:g},g.pointClass.prototype.applyOptions.apply(c,[a[d]]),g.updateParallelArrays(c,d));n&&W(n[0])&&A(14,!0,k);g.data=[];g.options.data=g.userOptions.data=a;for(d=h;d--;)e[d]&&
e[d].destroy&&e[d].destroy();m&&(m.minRange=m.userMinRange);g.isDirty=k.isDirtyBox=!0;g.isDirtyData=!!e;d=!1}"point"===f.legendType&&(this.processData(),this.generatePoints());b&&k.redraw(d)};a.prototype.sortData=function(a){var b=this,d=b.options.dataSorting.sortKey||"y",c=function(a,b){return g(b)&&a.pointClass.prototype.optionsToObject.call({series:a},b)||{}};a.forEach(function(d,g){a[g]=c(b,d);a[g].index=g},this);a.concat().sort(function(a,b){a=z(d,a);b=z(d,b);return b<a?-1:b>a?1:0}).forEach(function(a,
b){a.x=b},this);b.linkedSeries&&b.linkedSeries.forEach(function(b){var d=b.options,g=d.data;d.dataSorting&&d.dataSorting.enabled||!g||(g.forEach(function(d,e){g[e]=c(b,d);a[e]&&(g[e].x=a[e].x,g[e].index=e)}),b.setData(g,!1))});return a};a.prototype.getProcessedData=function(a){var b=this.xAxis,d=this.options,c=d.cropThreshold,g=a||this.getExtremesFromAll||d.getExtremesFromAll,e=this.isCartesian;a=b&&b.val2lin;d=!(!b||!b.logarithmic);var h=0,f=this.xData,k=this.yData,l=this.requireSorting;var m=!1;
var p=f.length;if(b){m=b.getExtremes();var r=m.min;var n=m.max;m=!(!b.categories||b.names.length)}if(e&&this.sorted&&!g&&(!c||p>c||this.forceCrop))if(f[p-1]<r||f[0]>n)f=[],k=[];else if(this.yData&&(f[0]<r||f[p-1]>n)){var q=this.cropData(this.xData,this.yData,r,n);f=q.xData;k=q.yData;h=q.start;q=!0}for(c=f.length||1;--c;)if(b=d?a(f[c])-a(f[c-1]):f[c]-f[c-1],0<b&&("undefined"===typeof G||b<G))var G=b;else 0>b&&l&&!m&&(A(15,!1,this.chart),l=!1);return{xData:f,yData:k,cropped:q,cropStart:h,closestPointRange:G}};
a.prototype.processData=function(a){var b=this.xAxis;if(this.isCartesian&&!this.isDirty&&!b.isDirty&&!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData();this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange;N(this,"afterProcessData")};a.prototype.cropData=function(a,b,d,c,g){var e=a.length,h,f=0,k=e;g=K(g,this.cropShoulder);for(h=0;h<e;h++)if(a[h]>=d){f=Math.max(0,h-g);break}for(d=
h;d<e;d++)if(a[d]>c){k=d+g;break}return{xData:a.slice(f,k),yData:b.slice(f,k),start:f,end:k}};a.prototype.generatePoints=function(){var a=this.options,b=this.processedData||a.data,d=this.processedXData,c=this.processedYData,g=this.pointClass,e=d.length,h=this.cropStart||0,f=this.hasGroupedData,k=a.keys,l=[];a=a.dataGrouping&&a.dataGrouping.groupAll?h:0;var m,p,n=this.data;if(!n&&!f){var q=[];q.length=b.length;n=this.data=q}k&&f&&(this.options.keys=!1);for(p=0;p<e;p++){q=h+p;if(f){var w=(new g).init(this,
[d[p]].concat(ca(c[p])));w.dataGroup=this.groupMap[a+p];w.dataGroup.options&&(w.options=w.dataGroup.options,r(w,w.dataGroup.options),delete w.dataLabels)}else(w=n[q])||"undefined"===typeof b[q]||(n[q]=w=(new g).init(this,b[q],d[p]));w&&(w.index=f?a+p:q,l[p]=w)}this.options.keys=k;if(n&&(e!==(m=n.length)||f))for(p=0;p<m;p++)p!==h||f||(p+=e),n[p]&&(n[p].destroyElements(),n[p].plotX=void 0);this.data=n;this.points=l;N(this,"afterGeneratePoints")};a.prototype.getXExtremes=function(a){return{min:v(a),
max:J(a)}};a.prototype.getExtremes=function(a,b){var d=this.xAxis,c=this.yAxis,g=this.processedXData||this.xData,e=[],h=this.requireSorting?this.cropShoulder:0;c=c?c.positiveValuesOnly:!1;var f,k=0,l=0,m=0;a=a||this.stackedYData||this.processedYData||[];var p=a.length;if(d){var r=d.getExtremes();k=r.min;l=r.max}for(f=0;f<p;f++){var n=g[f];r=a[f];var q=(O(r)||S(r))&&(r.length||0<r||!c);n=b||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!d||(g[f+h]||n)>=k&&(g[f-h]||n)<=l;if(q&&
n)if(q=r.length)for(;q--;)O(r[q])&&(e[m++]=r[q]);else e[m++]=r}a={activeYData:e,dataMin:v(e),dataMax:J(e)};N(this,"afterGetExtremes",{dataExtremes:a});return a};a.prototype.applyExtremes=function(){var a=this.getExtremes();this.dataMin=a.dataMin;this.dataMax=a.dataMax;return a};a.prototype.getFirstValidPoint=function(a){for(var b=a.length,d=0,c=null;null===c&&d<b;)c=a[d],d++;return c};a.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,
b=a.stacking,c=this.xAxis,e=c.categories,h=this.enabledDataSorting,f=this.yAxis,k=this.points,m=k.length,p=this.pointPlacementToXValue(),r=!!p,n=a.threshold,q=a.startFromThreshold?n:0,w=this.zoneAxis||"y",A,v,t=Number.MAX_VALUE;for(A=0;A<m;A++){var z=k[A],B=z.x,u=void 0,D=void 0,y=z.y,H=z.low,C=b&&f.stacking&&f.stacking.stacks[(this.negStacks&&y<(q?0:n)?"-":"")+this.stackKey];if(f.positiveValuesOnly&&!f.validatePositiveValue(y)||c.positiveValuesOnly&&!c.validatePositiveValue(B))z.isNull=!0;z.plotX=
v=d(l(c.translate(B,0,0,0,1,p,"flags"===this.type),-1E5,1E5));if(b&&this.visible&&C&&C[B]){var x=this.getStackIndicator(x,B,this.index);z.isNull||(u=C[B],D=u.points[x.key])}S(D)&&(H=D[0],y=D[1],H===q&&x.key===C[B].base&&(H=K(O(n)&&n,f.min)),f.positiveValuesOnly&&0>=H&&(H=null),z.total=z.stackTotal=u.total,z.percentage=u.total&&z.y/u.total*100,z.stackY=y,this.irregularWidths||u.setOffset(this.pointXOffset||0,this.barW||0));z.yBottom=g(H)?l(f.translate(H,0,1,0,1),-1E5,1E5):null;this.dataModify&&(y=
this.dataModify.modifyValue(y,A));z.plotY=void 0;O(y)&&(u=f.translate(y,!1,!0,!1,!0),"undefined"!==typeof u&&(z.plotY=l(u,-1E5,1E5)));z.isInside=this.isPointInside(z);z.clientX=r?d(c.translate(B,0,0,0,1,p)):v;z.negative=z[w]<(a[w+"Threshold"]||n||0);z.category=K(e&&e[z.x],z.x);if(!z.isNull&&!1!==z.visible){"undefined"!==typeof L&&(t=Math.min(t,Math.abs(v-L)));var L=v}z.zone=this.zones.length?z.getZone():void 0;!z.graphic&&this.group&&h&&(z.isNew=!0)}this.closestPointRangePx=t;N(this,"afterTranslate")};
a.prototype.getValidPoints=function(a,b,d){var c=this.chart;return(a||this.points||[]).filter(function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,{inverted:c.inverted})?!1:!1!==a.visible&&(d||!a.isNull)})};a.prototype.getClipBox=function(){var a=this.chart,b=this.xAxis,d=this.yAxis,c=X(a.clipBox);b&&b.len!==a.plotSizeX&&(c.width=b.len);d&&d.len!==a.plotSizeY&&(c.height=d.len);return c};a.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||
0)};a.prototype.setClip=function(){var a=this.chart,b=this.group,d=this.markerGroup,c=a.sharedClips;a=a.renderer;var g=this.getClipBox(),e=this.getSharedClipKey(),h=c[e];h?h.animate(g):c[e]=h=a.clipRect(g);b&&b.clip(!1===this.options.clip?void 0:h);d&&d.clip()};a.prototype.animate=function(a){var b=this.chart,d=this.group,c=this.markerGroup,g=b.inverted,e=h(this.options.animation),f=[this.getSharedClipKey(),e.duration,e.easing,e.defer].join(),k=b.sharedClips[f],l=b.sharedClips[f+"m"];if(a&&d)e=this.getClipBox(),
k?k.attr("height",e.height):(e.width=0,g&&(e.x=b.plotHeight),k=b.renderer.clipRect(e),b.sharedClips[f]=k,l=b.renderer.clipRect({x:g?(b.plotSizeX||0)+99:-99,y:g?-b.plotLeft:-b.plotTop,width:99,height:g?b.chartWidth:b.chartHeight}),b.sharedClips[f+"m"]=l),d.clip(k),c&&c.clip(l);else if(k&&!k.hasClass("highcharts-animating")){b=this.getClipBox();var m=e.step;c&&c.element.childNodes.length&&(e.step=function(a,b){m&&m.apply(b,arguments);l&&l.element&&l.attr(b.prop,"width"===b.prop?a+99:a)});k.addClass("highcharts-animating").animate(b,
e)}};a.prototype.afterAnimate=function(){var a=this;this.setClip();B(this.chart.sharedClips,function(b,d,c){b&&!a.chart.container.querySelector('[clip-path="url(#'.concat(b.id,')"]'))&&(b.destroy(),delete c[d])});this.finishedAnimating=!0;N(this,"afterAnimate")};a.prototype.drawPoints=function(a){void 0===a&&(a=this.points);var b=this.chart,d=this.options.marker,c=this[this.specialGroup]||this.markerGroup,g=this.xAxis,e=K(d.enabled,!g||g.isRadial?!0:null,this.closestPointRangePx>=d.enabledThreshold*
d.radius),h,f;if(!1!==d.enabled||this._hasPointMarkers)for(h=0;h<a.length;h++){var k=a[h];var l=(f=k.graphic)?"animate":"attr";var m=k.marker||{};var p=!!k.marker;if((e&&"undefined"===typeof m.enabled||m.enabled)&&!k.isNull&&!1!==k.visible){var r=K(m.symbol,this.symbol,"rect");var n=this.markerAttribs(k,k.selected&&"select");this.enabledDataSorting&&(k.startXPos=g.reversed?-(n.width||0):g.width);var q=!1!==k.isInside;f?f[q?"show":"hide"](q).animate(n):q&&(0<(n.width||0)||k.hasImage)&&(k.graphic=f=
b.renderer.symbol(r,n.x,n.y,n.width,n.height,p?m:d).add(c),this.enabledDataSorting&&b.hasRendered&&(f.attr({x:k.startXPos}),l="animate"));f&&"animate"===l&&f[q?"show":"hide"](q).animate(n);if(f&&!b.styledMode)f[l](this.pointAttribs(k,k.selected&&"select"));f&&f.addClass(k.getClassName(),!0)}else f&&(k.graphic=f.destroy())}};a.prototype.markerAttribs=function(a,b){var d=this.options,c=d.marker,g=a.marker||{},e=g.symbol||c.symbol,h=K(g.radius,c&&c.radius);b&&(c=c.states[b],b=g.states&&g.states[b],h=
K(b&&b.radius,c&&c.radius,h&&h+(c&&c.radiusPlus||0)));a.hasImage=e&&0===e.indexOf("url");a.hasImage&&(h=0);a=O(h)?{x:d.crisp?Math.floor(a.plotX-h):a.plotX-h,y:a.plotY-h}:{};h&&(a.width=a.height=2*h);return a};a.prototype.pointAttribs=function(a,b){var d=this.options.marker,c=a&&a.options,g=c&&c.marker||{},e=c&&c.color,h=a&&a.color,f=a&&a.zone&&a.zone.color,k=this.color;a=K(g.lineWidth,d.lineWidth);c=1;k=e||f||h||k;e=g.fillColor||d.fillColor||k;h=g.lineColor||d.lineColor||k;b=b||"normal";d=d.states[b]||
{};b=g.states&&g.states[b]||{};a=K(b.lineWidth,d.lineWidth,a+K(b.lineWidthPlus,d.lineWidthPlus,0));e=b.fillColor||d.fillColor||e;h=b.lineColor||d.lineColor||h;c=K(b.opacity,d.opacity,c);return{stroke:h,"stroke-width":a,fill:e,opacity:c}};a.prototype.destroy=function(a){var d=this,c=d.chart,g=/AppleWebKit\/533/.test(D.navigator.userAgent),e=d.data||[],h,f,k,l;N(d,"destroy",{keepEventsForUpdate:a});this.removeEvents(a);(d.axisTypes||[]).forEach(function(a){(l=d[a])&&l.series&&(b(l.series,d),l.isDirty=
l.forceRedraw=!0)});d.legendItem&&d.chart.legend.destroyItem(d);for(f=e.length;f--;)(k=e[f])&&k.destroy&&k.destroy();d.clips&&d.clips.forEach(function(a){return a.destroy()});n.clearTimeout(d.animationTimeout);B(d,function(a,b){a instanceof t&&!a.survive&&(h=g&&"group"===b?"hide":"destroy",a[h]())});c.hoverSeries===d&&(c.hoverSeries=void 0);b(c.series,d);c.orderSeries();B(d,function(b,c){a&&"hcEvents"===c||delete d[c]})};a.prototype.applyZones=function(){var a=this,b=this.chart,d=b.renderer,c=this.zones,
g=this.clips||[],e=this.graph,h=this.area,f=Math.max(b.plotWidth,b.plotHeight),k=this[(this.zoneAxis||"y")+"Axis"],m=b.inverted,p,r,n,q,w,A,v,t,z=!1;if(c.length&&(e||h)&&k&&"undefined"!==typeof k.min){var B=k.reversed;var u=k.horiz;e&&!this.showLine&&e.hide();h&&h.hide();var D=k.getExtremes();c.forEach(function(c,G){p=B?u?b.plotWidth:0:u?0:k.toPixels(D.min)||0;p=l(K(r,p),0,f);r=l(Math.round(k.toPixels(K(c.value,D.max),!0)||0),0,f);z&&(p=r=k.toPixels(D.max));q=Math.abs(p-r);w=Math.min(p,r);A=Math.max(p,
r);k.isXAxis?(n={x:m?A:w,y:0,width:q,height:f},u||(n.x=b.plotHeight-n.x)):(n={x:0,y:m?A:w,width:f,height:q},u&&(n.y=b.plotWidth-n.y));m&&d.isVML&&(n=k.isXAxis?{x:0,y:B?w:A,height:n.width,width:b.chartWidth}:{x:n.y-b.plotLeft-b.spacingBox.x,y:0,width:n.height,height:b.chartHeight});g[G]?g[G].animate(n):g[G]=d.clipRect(n);v=a["zone-area-"+G];t=a["zone-graph-"+G];e&&t&&t.clip(g[G]);h&&v&&v.clip(g[G]);z=c.value>D.max;a.resetZones&&0===r&&(r=void 0)});this.clips=g}else a.visible&&(e&&e.show(),h&&h.show())};
a.prototype.invertGroups=function(a){function b(){["group","markerGroup"].forEach(function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(d.isRadialSeries?!1:a))})}var d=this,c=d.chart;d.xAxis&&(d.eventsToUnbind.push(H(c,"resize",b)),b(),d.invertGroups=b)};a.prototype.plotGroup=function(a,b,d,c,e){var h=this[a],f=!h;d={visibility:d,zIndex:c||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===
this.state||(d.opacity=this.opacity);f&&(this[a]=h=this.chart.renderer.g().add(e));h.addClass("highcharts-"+b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(g(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(h.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);h.attr(d)[f?"attr":"animate"](this.getPlotBox());return h};a.prototype.getPlotBox=function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);
return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}};a.prototype.removeEvents=function(a){a||M(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0)};a.prototype.render=function(){var a=this,b=a.chart,d=a.options,c=h(d.animation),g=a.visible?"inherit":"hidden",e=d.zIndex,f=a.hasRendered,k=b.seriesGroup,l=b.inverted;b=!a.finishedAnimating&&b.renderer.isSVG?c.duration:0;N(this,"render");var m=a.plotGroup("group",
"series",g,e,k);a.markerGroup=a.plotGroup("markerGroup","markers",g,e,k);!1!==d.clip&&a.setClip();a.animate&&b&&a.animate(!0);m.inverted=K(a.invertible,a.isCartesian)?l:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(l);a.animate&&b&&a.animate();f||(b&&c.defer&&(b+=c.defer),a.animationTimeout=R(function(){a.afterAnimate()},
b||0));a.isDirty=!1;a.hasRendered=!0;N(a,"afterRender")};a.prototype.redraw=function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,g=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:K(c&&c.left,a.plotLeft),translateY:K(g&&g.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree};a.prototype.searchPoint=function(a,b){var d=this.xAxis,c=this.yAxis,g=this.chart.inverted;return this.searchKDTree({clientX:g?
d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:g?c.len-a.chartX+c.pos:a.chartY-c.pos},b,a)};a.prototype.buildKDTree=function(a){function b(a,c,g){var e=a&&a.length;if(e){var h=d.kdAxisArray[c%g];a.sort(function(a,b){return a[h]-b[h]});e=Math.floor(e/2);return{point:a[e],left:b(a.slice(0,e),c+1,g),right:b(a.slice(e+1),c+1,g)}}}this.buildingKdTree=!0;var d=this,c=-1<d.options.findNearestPointBy.indexOf("y")?2:1;delete d.kdTree;R(function(){d.kdTree=b(d.getValidPoints(null,!d.directTouch),c,c);d.buildingKdTree=
!1},d.options.kdNow||a&&"touchstart"===a.type?0:1)};a.prototype.searchKDTree=function(a,b,d){function c(a,b,d,l){var m=b.point,p=e.kdAxisArray[d%l],r=m,n=g(a[h])&&g(m[h])?Math.pow(a[h]-m[h],2):null;var q=g(a[f])&&g(m[f])?Math.pow(a[f]-m[f],2):null;q=(n||0)+(q||0);m.dist=g(q)?Math.sqrt(q):Number.MAX_VALUE;m.distX=g(n)?Math.sqrt(n):Number.MAX_VALUE;p=a[p]-m[p];q=0>p?"left":"right";n=0>p?"right":"left";b[q]&&(q=c(a,b[q],d+1,l),r=q[k]<r[k]?q:m);b[n]&&Math.sqrt(p*p)<r[k]&&(a=c(a,b[n],d+1,l),r=a[k]<r[k]?
a:r);return r}var e=this,h=this.kdAxisArray[0],f=this.kdAxisArray[1],k=b?"distX":"dist";b=-1<e.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(d);if(this.kdTree)return c(a,this.kdTree,b,b)};a.prototype.pointPlacementToXValue=function(){var a=this.options,b=a.pointRange,d=this.xAxis;a=a.pointPlacement;"between"===a&&(a=d.reversed?-.5:.5);return O(a)?a*(b||d.pointRange):0};a.prototype.isPointInside=function(a){var b=this.chart,d=this.xAxis,c=this.yAxis;
return"undefined"!==typeof a.plotY&&"undefined"!==typeof a.plotX&&0<=a.plotY&&a.plotY<=(c?c.len:b.plotHeight)&&0<=a.plotX&&a.plotX<=(d?d.len:b.plotWidth)};a.prototype.drawTracker=function(){var a=this,b=a.options,d=b.trackByArea,c=[].concat(d?a.areaPath:a.graphPath),g=a.chart,e=g.pointer,h=g.renderer,f=g.options.tooltip.snap,k=a.tracker,l=function(b){if(g.hoverSeries!==a)a.onMouseOver()},r="rgba(192,192,192,"+(p?.0001:.002)+")";k?k.attr({d:c}):a.graph&&(a.tracker=h.path(c).attr({visibility:a.visible?
"inherit":"hidden",zIndex:2}).addClass(d?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),g.styledMode||a.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:r,fill:d?r:"none","stroke-width":a.graph.strokeWidth()+(d?0:2*f)}),[a.tracker,a.markerGroup,a.dataLabelsGroup].forEach(function(a){if(a&&(a.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(a){e.onTrackerMouseOut(a)}),b.cursor&&!g.styledMode&&a.css({cursor:b.cursor}),m))a.on("touchstart",
l)}));N(this,"afterDrawTracker")};a.prototype.addPoint=function(a,b,d,c,g){var e=this.options,h=this.data,f=this.chart,k=this.xAxis;k=k&&k.hasNames&&k.names;var l=e.data,m=this.xData,p;b=K(b,!0);var r={series:this};this.pointClass.prototype.applyOptions.apply(r,[a]);var n=r.x;var q=m.length;if(this.requireSorting&&n<m[q-1])for(p=!0;q&&m[q-1]>n;)q--;this.updateParallelArrays(r,"splice",q,0,0);this.updateParallelArrays(r,q);k&&r.name&&(k[n]=r.name);l.splice(q,0,a);if(p||this.processedData)this.data.splice(q,
0,null),this.processData();"point"===e.legendType&&this.generatePoints();d&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(r,"shift"),l.shift()));!1!==g&&N(this,"addPoint",{point:r});this.isDirtyData=this.isDirty=!0;b&&f.redraw(c)};a.prototype.removePoint=function(a,b,d){var g=this,e=g.data,h=e[a],f=g.points,k=g.chart,l=function(){f&&f.length===e.length&&f.splice(a,1);e.splice(a,1);g.options.data.splice(a,1);g.updateParallelArrays(h||{series:g},"splice",a,1);h&&h.destroy();
g.isDirty=!0;g.isDirtyData=!0;b&&k.redraw()};c(d,k);b=K(b,!0);h?h.firePointEvent("remove",null,l):l()};a.prototype.remove=function(a,b,d,c){function g(){e.destroy(c);h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();K(a,!0)&&h.redraw(b)}var e=this,h=e.chart;!1!==d?N(e,"remove",null,g):g()};a.prototype.update=function(a,b){a=q(a,this.userOptions);N(this,"update",{options:a});var d=this,c=d.chart,g=d.userOptions,e=d.initialType||d.type,h=c.options.plotOptions,f=y[e].prototype,k=d.finishedAnimating&&{animation:!1},
l={},m=["eventOptions","navigatorSeries","baseSeries"],p=a.type||g.type||c.options.chart.type,n=!(this.hasDerivedData||p&&p!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval||"undefined"!==typeof a.relativeXValue||a.joinBy||a.mapData||d.hasOptionChanged("dataGrouping")||d.hasOptionChanged("pointStart")||d.hasOptionChanged("pointInterval")||d.hasOptionChanged("pointIntervalUnit")||d.hasOptionChanged("keys"));p=p||e;n&&(m.push("data","isDirtyData","points","processedData",
"processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&m.push("area","graph"),d.parallelArrays.forEach(function(a){m.push(a+"Data")}),a.data&&(a.dataSorting&&r(d.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=X(g,k,{index:"undefined"===typeof g.index?d.index:g.index,pointStart:K(h&&h.series&&h.series.pointStart,g.pointStart,d.xData[0])},!n&&{data:d.options.data},
a);n&&a.data&&(a.data=d.options.data);m=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(m);m.forEach(function(a){m[a]=d[a];delete d[a]});h=!1;if(y[p]){if(h=p!==d.type,d.remove(!1,!1,!1,!0),h)if(Object.setPrototypeOf)Object.setPrototypeOf(d,y[p].prototype);else{k=Object.hasOwnProperty.call(d,"hcEvents")&&d.hcEvents;for(w in f)d[w]=void 0;r(d,y[p].prototype);k?d.hcEvents=k:delete d.hcEvents}}else A(17,!0,c,{missingModuleFor:p});m.forEach(function(a){d[a]=m[a]});d.init(c,
a);if(n&&this.points){a=d.options;if(!1===a.visible)l.graphic=1,l.dataLabel=1;else if(!d._hasPointLabels){f=a.marker;var w=a.dataLabels;!f||!1!==f.enabled&&(g.marker&&g.marker.symbol)===f.symbol||(l.graphic=1);w&&!1===w.enabled&&(l.dataLabel=1)}g=0;for(f=this.points;g<f.length;g++)(w=f[g])&&w.series&&(w.resolveColor(),Object.keys(l).length&&w.destroyElements(l),!1===a.showInLegend&&w.legendItem&&c.legend.destroyItem(w))}d.initialType=e;c.linkSeries();h&&d.linkedSeries.length&&(d.isDirtyData=!0);N(this,
"afterUpdate");K(b,!0)&&c.redraw(n?void 0:!1)};a.prototype.setName=function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0};a.prototype.hasOptionChanged=function(a){var b=this.options[a],d=this.chart.options.plotOptions,c=this.userOptions[a];return c?b!==c:b!==K(d&&d[this.type]&&d[this.type][a],d&&d.series&&d.series[a],b)};a.prototype.onMouseOver=function(){var a=this.chart,b=a.hoverSeries;a.pointer.setHoverChartIndex();if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&
N(this,"mouseOver");this.setState("hover");a.hoverSeries=this};a.prototype.onMouseOut=function(){var a=this.options,b=this.chart,d=b.tooltip,c=b.hoverPoint;b.hoverSeries=null;if(c)c.onMouseOut();this&&a.events.mouseOut&&N(this,"mouseOut");!d||this.stickyTracking||d.shared&&!this.noSharedTooltip||d.hide();b.series.forEach(function(a){a.setState("",!0)})};a.prototype.setState=function(a,b){var d=this,c=d.options,g=d.graph,e=c.inactiveOtherPoints,h=c.states,f=K(h[a||"normal"]&&h[a||"normal"].animation,
d.chart.options.chart.animation),k=c.lineWidth,l=0,m=c.opacity;a=a||"";if(d.state!==a&&([d.group,d.markerGroup,d.dataLabelsGroup].forEach(function(b){b&&(d.state&&b.removeClass("highcharts-series-"+d.state),a&&b.addClass("highcharts-series-"+a))}),d.state=a,!d.chart.styledMode)){if(h[a]&&!1===h[a].enabled)return;a&&(k=h[a].lineWidth||k+(h[a].lineWidthPlus||0),m=K(h[a].opacity,m));if(g&&!g.dashstyle)for(c={"stroke-width":k},g.animate(c,f);d["zone-graph-"+l];)d["zone-graph-"+l].animate(c,f),l+=1;e||
[d.group,d.markerGroup,d.dataLabelsGroup,d.labelBySeries].forEach(function(a){a&&a.animate({opacity:m},f)})}b&&e&&d.points&&d.setAllPointsToState(a||void 0)};a.prototype.setAllPointsToState=function(a){this.points.forEach(function(b){b.setState&&b.setState(a)})};a.prototype.setVisible=function(a,b){var d=this,c=d.chart,g=c.options.chart.ignoreHiddenSeries,e=d.visible,h=(d.visible=a=d.options.visible=d.userOptions.visible="undefined"===typeof a?!e:a)?"show":"hide";["group","dataLabelsGroup","markerGroup",
"tracker","tt"].forEach(function(a){if(d[a])d[a][h]()});if(c.hoverSeries===d||(c.hoverPoint&&c.hoverPoint.series)===d)d.onMouseOut();d.legendItem&&c.legend.colorizeItem(d,a);d.isDirty=!0;d.options.stacking&&c.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});d.linkedSeries.forEach(function(b){b.setVisible(a,!1)});g&&(c.isDirtyBox=!0);N(d,h);!1!==b&&c.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide=function(){this.setVisible(!1)};a.prototype.select=
function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);N(this,a?"select":"unselect")};a.prototype.shouldShowTooltip=function(a,b,d){void 0===d&&(d={});d.series=this;d.visiblePlotOnly=!0;return this.chart.isInsidePlot(a,b,d)};a.defaultOptions=I;a.types=u.seriesTypes;a.registerType=u.registerSeriesType;return a}();r(a.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:C.drawLineMarker,
isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:E,requireSorting:!0,sorted:!0});u.series=a;"";"";return a});M(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,x,F,C,E){var y=a.stop,u=E.addEvent,t=E.createElement,n=E.defined,h=E.merge,c=E.pick;u(x,"afterSetChartSize",function(a){var c=
this.options.chart.scrollablePlotArea,k=c&&c.minWidth;c=c&&c.minHeight;if(!this.renderer.forExport){if(k){if(this.scrollablePixelsX=k=Math.max(0,k-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox);this.plotBox.width=this.plotWidth+=k;this.inverted?this.clipBox.height+=k:this.clipBox.width+=k;var p={1:{name:"right",value:k}}}}else c&&(this.scrollablePixelsY=k=Math.max(0,c-this.chartHeight),n(k)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox),
this.plotBox.height=this.plotHeight+=k,this.inverted?this.clipBox.width+=k:this.clipBox.height+=k,p={2:{name:"bottom",value:k}}));p&&!a.skipAxes&&this.axes.forEach(function(a){p[a.side]?a.getPlotLinePath=function(){var c=p[a.side].name,e=this[c];this[c]=e-p[a.side].value;var h=f.prototype.getPlotLinePath.apply(this,arguments);this[c]=e;return h}:(a.setAxisSize(),a.setAxisTranslation())})}});u(x,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),
this.applyFixed()):this.fixedDiv&&this.applyFixed()});x.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=t("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=t("div",{className:"highcharts-scrolling"},c,this.scrollingParent);u(this.scrollingContainer,"scroll",
function(){a.pointer&&delete a.pointer.chartPosition});this.innerContainer=t("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};x.prototype.moveFixedElements=function(){var a=this.container,c=this.fixedRenderer,h=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-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&&h.push(""+f+":not(.highcharts-radial-axis)",""+f+"-labels:not(.highcharts-radial-axis-labels)");h.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"})})};x.prototype.applyFixed=function(){var a=!this.fixedDiv,e=this.options.chart,h=e.scrollablePlotArea,f=C.getRendererType();a?(this.fixedDiv=t("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new f(this.fixedDiv,this.chartWidth,
this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":c(h.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),u(this,"afterShowResetZoom",this.moveFixedElements),u(this,"afterApplyDrilldown",this.moveFixedElements),u(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a)this.scrollableDirty=!1,this.moveFixedElements();
e=this.chartWidth+(this.scrollablePixelsX||0);f=this.chartHeight+(this.scrollablePixelsY||0);y(this.container);this.container.style.width=e+"px";this.container.style.height=f+"px";this.renderer.boxWrapper.attr({width:e,height:f,viewBox:[0,0,e,f].join(" ")});this.chartBackground.attr({width:e,height:f});this.scrollingContainer.style.height=this.chartHeight+"px";a&&(h.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*h.scrollPositionX),h.scrollPositionY&&(this.scrollingContainer.scrollTop=
this.scrollablePixelsY*h.scrollPositionY));f=this.axisOffset;a=this.plotTop-f[0]-1;h=this.plotLeft-f[3]-1;e=this.plotTop+this.plotHeight+f[2]+1;f=this.plotLeft+this.plotWidth+f[1]+1;var n=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),x=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a=this.scrollablePixelsX?[["M",0,a],["L",this.plotLeft-1,a],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",n,a],["L",this.chartWidth,a],["L",this.chartWidth,e],["L",n,e],["Z"]]:this.scrollablePixelsY?
[["M",h,0],["L",h,this.plotTop-1],["L",f,this.plotTop-1],["L",f,0],["Z"],["M",h,x],["L",h,this.chartHeight],["L",f,this.chartHeight],["L",f,x],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a})};u(f,"afterInit",function(){this.chart.scrollableDirty=!0});u(F,"show",function(){this.chart.scrollableDirty=!0});""});M(f,"Core/Axis/Stacking/StackItem.js",[f["Core/FormatUtilities.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(a,f,x){var y=a.format,
C=f.series,E=x.defined,I=x.destroyObjectProperties,u=x.isNumber,t=x.pick;a=function(){function a(a,c,f,e,m){var h=a.chart.inverted;this.axis=a;this.isNegative=f;this.options=c=c||{};this.x=e;this.cumulative=this.total=null;this.points={};this.hasValidPoints=!1;this.stack=m;this.rightCliff=this.leftCliff=0;this.alignOptions={align:c.align||(h?f?"left":"right":"center"),verticalAlign:c.verticalAlign||(h?"middle":f?"bottom":"top"),y:c.y,x:c.x};this.textAlign=c.textAlign||(h?f?"right":"left":"center")}
a.prototype.destroy=function(){I(this,this.axis)};a.prototype.render=function(a){var c=this.axis.chart,h=this.options,e=h.format;e=e?y(e,this,c):h.formatter.call(this);this.label?this.label.attr({text:e,visibility:"hidden"}):(this.label=c.renderer.label(e,null,null,h.shape,null,null,h.useHTML,!1,"stack-labels"),e={r:h.borderRadius||0,text:e,rotation:h.rotation,padding:t(h.padding,5),visibility:"hidden"},c.styledMode||(e.fill=h.backgroundColor,e.stroke=h.borderColor,e["stroke-width"]=h.borderWidth,
this.label.css(h.style)),this.label.attr(e),this.label.added||this.label.add(a));this.label.labelrank=c.plotSizeY};a.prototype.setOffset=function(a,c,f,e,m){var h=this.axis,k=h.chart;e=h.translate(h.stacking.usePercentage?100:e?e:this.total,0,0,0,1);f=h.translate(f?f:0);a=t(m,k.xAxis[0].translate(this.x))+a;h=E(e)&&this.getStackBox(k,this,a,e,c,Math.abs(e-f),h);c=this.label;f=this.isNegative;var n=this.textAlign;c&&h&&(a=c.getBBox(),m=c.padding,e="justify"===t(this.options.overflow,"justify"),n="left"===
n?k.inverted?-m:m:"right"===n?a.width:k.inverted&&"center"===n?a.width/2:k.inverted?f?a.width+m:-m:a.width/2,f=k.inverted?a.height/2:f?-m:a.height,this.alignOptions.x=t(this.options.x,0),this.alignOptions.y=t(this.options.y,0),h.x-=n,h.y-=f,c.align(this.alignOptions,null,h),k.isInsidePlot(c.alignAttr.x+n-this.alignOptions.x,c.alignAttr.y+f-this.alignOptions.y)?c.show():(c.hide(),e=!1),e&&C.prototype.justifyDataLabel.call(this.axis,c,this.alignOptions,c.alignAttr,a,h),c.attr({x:c.alignAttr.x,y:c.alignAttr.y}),
t(!e&&this.options.crop,!0)&&((k=u(c.x)&&u(c.y)&&k.isInsidePlot(c.x-m+c.width,c.y)&&k.isInsidePlot(c.x+m,c.y))||c.hide()))};a.prototype.getStackBox=function(a,c,f,e,m,p,n){var h=c.axis.reversed,k=a.inverted,t=n.height+n.pos-(k?a.plotLeft:a.plotTop);c=c.isNegative&&!h||!c.isNegative&&h;return{x:k?c?e-n.right:e-p+n.pos-a.plotLeft:f+a.xAxis[0].transB-a.plotLeft,y:k?n.height-f-m:c?t-e-p:t-e,width:k?p:m,height:k?m:p}};return a}();"";return a});M(f,"Core/Axis/Stacking/StackingAxis.js",[f["Core/Animation/AnimationUtilities.js"],
f["Core/Axis/Axis.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Axis/Stacking/StackItem.js"],f["Core/Utilities.js"]],function(a,f,x,F,C){function y(){var a=this,b=a.inverted;a.yAxis.forEach(function(a){a.stacking&&a.stacking.stacks&&a.hasVisibleSeries&&(a.stacking.oldStacks=a.stacking.stacks)});a.series.forEach(function(c){var g=c.xAxis&&c.xAxis.options||{};!c.options.stacking||!0!==c.visible&&!1!==a.options.chart.ignoreHiddenSeries||(c.stackKey=[c.type,d(c.options.stack,""),b?g.top:g.left,b?g.height:
g.width].join())})}function I(){var a=this.stacking;if(a){var b=a.stacks;q(b,function(a,d){H(a);b[d]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function u(){this.stacking||(this.stacking=new g(this))}function t(a,b,d,c){!L(a)||a.x!==b||c&&a.stackKey!==c?a={x:b,index:0,key:c,stackKey:c}:a.index++;a.key=[d,b,a.index].join();return a}function n(){var a=this,b=a.stackKey,d=a.yAxis.stacking.stacks,c=a.processedXData,g=a[a.options.stacking+"Stacker"],e;g&&[b,"-"+b].forEach(function(b){for(var h=
c.length,f,k;h--;)f=c[h],e=a.getStackIndicator(e,f,a.index,b),(k=(f=d[b]&&d[b][f])&&f.points[e.key])&&g.call(a,k,f,h)})}function h(a,b,d){b=b.total?100/b.total:0;a[0]=D(a[0]*b);a[1]=D(a[1]*b);this.stackedYData[d]=a[1]}function c(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?m.setStackedPoints.call(this,"group"):a&&q(a.stacks,function(b,d){"group"===d.slice(-5)&&(q(b,function(a){return a.destroy()}),
delete a.stacks[d])})}function k(a){var b=a||this.options.stacking;if(b&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var c=this.processedXData,g=this.processedYData,e=[],h=g.length,f=this.options,k=f.threshold,l=d(f.startFromThreshold&&k,0);f=f.stack;a=a?""+this.type+",".concat(b):this.stackKey;var m="-"+a,p=this.negStacks,n=this.yAxis,q=n.stacking.stacks,t=n.stacking.oldStacks,A,u;n.stacking.stacksTouched+=1;for(u=0;u<h;u++){var y=c[u];var H=g[u];var C=this.getStackIndicator(C,
y,this.index);var x=C.key;var J=(A=p&&H<(l?0:k))?m:a;q[J]||(q[J]={});q[J][y]||(t[J]&&t[J][y]?(q[J][y]=t[J][y],q[J][y].total=null):q[J][y]=new F(n,n.options.stackLabels,!!A,y,f));J=q[J][y];null!==H?(J.points[x]=J.points[this.index]=[d(J.cumulative,l)],L(J.cumulative)||(J.base=x),J.touched=n.stacking.stacksTouched,0<C.index&&!1===this.singleStacks&&(J.points[x][0]=J.points[this.index+","+y+",0"][0])):J.points[x]=J.points[this.index]=null;"percent"===b?(A=A?a:m,p&&q[A]&&q[A][y]?(A=q[A][y],J.total=A.total=
Math.max(A.total,J.total)+Math.abs(H)||0):J.total=D(J.total+(Math.abs(H)||0))):"group"===b?(v(H)&&(H=H[0]),null!==H&&(J.total=(J.total||0)+1)):J.total=D(J.total+(H||0));J.cumulative="group"===b?(J.total||1)-1:d(J.cumulative,l)+(H||0);null!==H&&(J.points[x].push(J.cumulative),e[u]=J.cumulative,J.hasValidPoints=!0)}"percent"===b&&(n.stacking.usePercentage=!0);"group"!==b&&(this.stackedYData=e);n.stacking.oldStacks={}}}var e=a.getDeferredAnimation,m=x.series.prototype,p=C.addEvent,D=C.correctFloat,L=
C.defined,H=C.destroyObjectProperties,J=C.fireEvent,v=C.isArray,l=C.isNumber,q=C.objectEach,d=C.pick,g=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=function(){var a=this.axis,b=a.series,d=a.options.reversedStacks,c=b.length,g;if(!a.isXAxis){this.usePercentage=!1;for(g=c;g--;){var e=b[d?g:c-g-1];e.setStackedPoints();e.setGroupedPoints()}for(g=0;g<c;g++)b[g].modifyStacks();J(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=
this.stacks=this.oldStacks;q(a,function(a){q(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,b=a.stacks;a.axis.isXAxis||q(b,function(b){q(b,function(d,c){l(d.touched)&&d.touched<a.stacksTouched?(d.destroy(),delete b[c]):(d.total=null,d.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,b=a.chart,d=b.renderer,c=this.stacks;a=e(b,a.options.stackLabels&&a.options.stackLabels.animation||!1);var g=this.stackTotalGroup=this.stackTotalGroup||
d.g("stack-labels").attr({zIndex:6,opacity:0}).add();g.translate(b.plotLeft,b.plotTop);q(c,function(a){q(a,function(a){a.render(g)})});g.animate({opacity:1},a)};return a}(),b;(function(a){var b=[];a.compose=function(a,d,g){-1===b.indexOf(a)&&(b.push(a),p(a,"init",u),p(a,"destroy",I));-1===b.indexOf(d)&&(b.push(d),d.prototype.getStacks=y);-1===b.indexOf(g)&&(b.push(g),a=g.prototype,a.getStackIndicator=t,a.modifyStacks=n,a.percentStacker=h,a.setGroupedPoints=c,a.setStackedPoints=k)}})(b||(b={}));return b});
M(f,"Series/Line/LineSeries.js",[f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(a,f,x){var y=this&&this.__extends||function(){var a=function(f,t){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var c in h)h.hasOwnProperty(c)&&(a[c]=h[c])};return a(f,t)};return function(f,t){function n(){this.constructor=f}a(f,t);f.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),C=x.defined,
E=x.merge;x=function(f){function u(){var a=null!==f&&f.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}y(u,f);u.prototype.drawGraph=function(){var a=this,f=this.options,h=(this.gappedPath||this.getGraphPath).call(this),c=this.chart.styledMode,k=[["graph","highcharts-graph"]];c||k[0].push(f.lineColor||this.color||"#cccccc",f.dashStyle);k=a.getZonesGraphs(k);k.forEach(function(e,k){var m=e[0],n=a[m],t=n?"animate":"attr";n?(n.endX=a.preventGraphAnimation?null:h.xMap,
n.animate({d:h})):h.length&&(a[m]=n=a.chart.renderer.path(h).addClass(e[1]).attr({zIndex:1}).add(a.group));n&&!c&&(m={stroke:e[2],"stroke-width":f.lineWidth,fill:a.fillGraph&&a.color||"none"},e[3]?m.dashstyle=e[3]:"square"!==f.linecap&&(m["stroke-linecap"]=m["stroke-linejoin"]="round"),n[t](m).shadow(2>k&&f.shadow));n&&(n.startX=h.xMap,n.isArea=h.isArea)})};u.prototype.getGraphPath=function(a,f,h){var c=this,k=c.options,e=[],m=[],p,n=k.step;a=a||c.points;var t=a.reversed;t&&a.reverse();(n={right:1,
center:2}[n]||n&&3)&&t&&(n=4-n);a=this.getValidPoints(a,!1,!(k.connectNulls&&!f&&!h));a.forEach(function(t,u){var v=t.plotX,l=t.plotY,q=a[u-1];(t.leftCliff||q&&q.rightCliff)&&!h&&(p=!0);t.isNull&&!C(f)&&0<u?p=!k.connectNulls:t.isNull&&!f?p=!0:(0===u||p?u=[["M",t.plotX,t.plotY]]:c.getPointSpline?u=[c.getPointSpline(a,t,u)]:n?(u=1===n?[["L",q.plotX,l]]:2===n?[["L",(q.plotX+v)/2,q.plotY],["L",(q.plotX+v)/2,l]]:[["L",v,q.plotY]],u.push(["L",v,l])):u=[["L",v,l]],m.push(t.x),n&&(m.push(t.x),2===n&&m.push(t.x)),
e.push.apply(e,u),p=!1)});e.xMap=m;return c.graphPath=e};u.prototype.getZonesGraphs=function(a){this.zones.forEach(function(f,h){h=["zone-graph-"+h,"highcharts-graph highcharts-zone-graph-"+h+" "+(f.className||"")];this.chart.styledMode||h.push(f.color||this.color,f.dashStyle||this.options.dashStyle);a.push(h)},this);return a};u.defaultOptions=E(a.defaultOptions,{});return u}(a);f.registerSeriesType("line",x);"";return x});M(f,"Series/Area/AreaSeries.js",[f["Core/Color/Color.js"],f["Core/Legend/LegendSymbol.js"],
f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(a,f,x,F){var y=this&&this.__extends||function(){var a=function(c,h){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,h)};return function(c,h){function e(){this.constructor=c}a(c,h);c.prototype=null===h?Object.create(h):(e.prototype=h.prototype,new e)}}(),E=a.parse,I=x.seriesTypes.line;a=F.extend;var u=F.merge,t=F.objectEach,
n=F.pick;F=function(a){function c(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}y(c,a);c.prototype.drawGraph=function(){this.areaPath=[];a.prototype.drawGraph.apply(this);var c=this,e=this.areaPath,h=this.options,f=[["area","highcharts-area",this.color,h.fillColor]];this.zones.forEach(function(a,e){f.push(["zone-area-"+e,"highcharts-area highcharts-zone-area-"+e+" "+a.className,a.color||c.color,a.fillColor||h.fillColor])});f.forEach(function(a){var f=
a[0],k={},m=c[f],p=m?"animate":"attr";m?(m.endX=c.preventGraphAnimation?null:e.xMap,m.animate({d:e})):(k.zIndex=0,m=c[f]=c.chart.renderer.path(e).addClass(a[1]).add(c.group),m.isArea=!0);c.chart.styledMode||(k.fill=n(a[3],E(a[2]).setOpacity(n(h.fillOpacity,.75)).get()));m[p](k);m.startX=e.xMap;m.shiftUnit=h.step?2:1})};c.prototype.getGraphPath=function(a){var c=I.prototype.getGraphPath,h=this.options,f=h.stacking,k=this.yAxis,t=[],u=[],y=this.index,v=k.stacking.stacks[this.stackKey],l=h.threshold,
q=Math.round(k.getThreshold(h.threshold));h=n(h.connectNulls,"percent"===f);var d=function(b,d,c){var g=a[b];b=f&&v[g.x].points[y];var e=g[c+"Null"]||0;c=g[c+"Cliff"]||0;g=!0;if(c||e){var h=(e?b[0]:b[1])+c;var m=b[0]+c;g=!!e}else!f&&a[d]&&a[d].isNull&&(h=m=l);"undefined"!==typeof h&&(u.push({plotX:r,plotY:null===h?q:k.getThreshold(h),isNull:g,isCliff:!0}),t.push({plotX:r,plotY:null===m?q:k.getThreshold(m),doCurve:!1}))};a=a||this.points;f&&(a=this.getStackPoints(a));for(var g=0,b=a.length;g<b;++g){f||
(a[g].leftCliff=a[g].rightCliff=a[g].leftNull=a[g].rightNull=void 0);var A=a[g].isNull;var r=n(a[g].rectPlotX,a[g].plotX);var w=f?n(a[g].yBottom,q):q;if(!A||h)h||d(g,g-1,"left"),A&&!f&&h||(u.push(a[g]),t.push({x:g,plotX:r,plotY:w})),h||d(g,g+1,"right")}d=c.call(this,u,!0,!0);t.reversed=!0;A=c.call(this,t,!0,!0);(w=A[0])&&"M"===w[0]&&(A[0]=["L",w[1],w[2]]);A=d.concat(A);A.length&&A.push(["Z"]);c=c.call(this,u,!1,h);A.xMap=d.xMap;this.areaPath=A;return c};c.prototype.getStackPoints=function(a){var c=
this,h=[],f=[],k=this.xAxis,u=this.yAxis,y=u.stacking.stacks[this.stackKey],x={},v=u.series,l=v.length,q=u.options.reversedStacks?1:-1,d=v.indexOf(c);a=a||this.points;if(this.options.stacking){for(var g=0;g<a.length;g++)a[g].leftNull=a[g].rightNull=void 0,x[a[g].x]=a[g];t(y,function(a,b){null!==a.total&&f.push(b)});f.sort(function(a,b){return a-b});var b=v.map(function(a){return a.visible});f.forEach(function(a,g){var e=0,m,p;if(x[a]&&!x[a].isNull)h.push(x[a]),[-1,1].forEach(function(e){var h=1===
e?"rightNull":"leftNull",k=y[f[g+e]],n=0;if(k)for(var r=d;0<=r&&r<l;){var w=v[r].index;m=k.points[w];m||(w===c.index?x[a][h]=!0:b[r]&&(p=y[a].points[w])&&(n-=p[1]-p[0]));r+=q}x[a][1===e?"rightCliff":"leftCliff"]=n});else{for(var r=d;0<=r&&r<l;){if(m=y[a].points[v[r].index]){e=m[1];break}r+=q}e=n(e,0);e=u.translate(e,0,1,0,1);h.push({isNull:!0,plotX:k.translate(a,0,0,0,1),x:a,plotY:e,yBottom:e})}})}return h};c.defaultOptions=u(I.defaultOptions,{threshold:0});return c}(I);a(F.prototype,{singleStacks:!1,
drawLegendSymbol:f.drawRectangle});x.registerSeriesType("area",F);"";return F});M(f,"Series/Spline/SplineSeries.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(a,f){var y=this&&this.__extends||function(){var a=function(f,t){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var c in h)h.hasOwnProperty(c)&&(a[c]=h[c])};return a(f,t)};return function(f,t){function n(){this.constructor=f}a(f,t);f.prototype=null===t?Object.create(t):
(n.prototype=t.prototype,new n)}}(),F=a.seriesTypes.line,C=f.merge,E=f.pick;f=function(a){function f(){var f=null!==a&&a.apply(this,arguments)||this;f.data=void 0;f.options=void 0;f.points=void 0;return f}y(f,a);f.prototype.getPointSpline=function(a,f,h){var c=f.plotX||0,k=f.plotY||0,e=a[h-1];h=a[h+1];if(e&&!e.isNull&&!1!==e.doCurve&&!f.isCliff&&h&&!h.isNull&&!1!==h.doCurve&&!f.isCliff){a=e.plotY||0;var m=h.plotX||0;h=h.plotY||0;var p=0;var n=(1.5*c+(e.plotX||0))/2.5;var t=(1.5*k+a)/2.5;m=(1.5*c+
m)/2.5;var u=(1.5*k+h)/2.5;m!==n&&(p=(u-t)*(m-c)/(m-n)+k-u);t+=p;u+=p;t>a&&t>k?(t=Math.max(a,k),u=2*k-t):t<a&&t<k&&(t=Math.min(a,k),u=2*k-t);u>h&&u>k?(u=Math.max(h,k),t=2*k-u):u<h&&u<k&&(u=Math.min(h,k),t=2*k-u);f.rightContX=m;f.rightContY=u}f=["C",E(e.rightContX,e.plotX,0),E(e.rightContY,e.plotY,0),E(n,c,0),E(t,k,0),c,k];e.rightContX=e.rightContY=void 0;return f};f.defaultOptions=C(F.defaultOptions);return f}(F);a.registerSeriesType("spline",f);"";return f});M(f,"Series/AreaSpline/AreaSplineSeries.js",
[f["Series/Spline/SplineSeries.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(a,f,x,F){var y=this&&this.__extends||function(){var a=function(h,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(h,c)};return function(h,c){function f(){this.constructor=h}a(h,c);h.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),
E=x.seriesTypes,I=E.area;E=E.area.prototype;var u=F.extend,t=F.merge;F=function(f){function h(){var a=null!==f&&f.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}y(h,f);h.defaultOptions=t(a.defaultOptions,I.defaultOptions);return h}(a);u(F.prototype,{getGraphPath:E.getGraphPath,getStackPoints:E.getStackPoints,drawGraph:E.drawGraph,drawLegendSymbol:f.drawRectangle});x.registerSeriesType("areaspline",F);"";return F});M(f,"Series/Column/ColumnSeries.js",[f["Core/Animation/AnimationUtilities.js"],
f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(a,f,x,F,C,E,I){var u=this&&this.__extends||function(){var a=function(c,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(c,d)};return function(c,d){function g(){this.constructor=c}a(c,d);c.prototype=null===d?Object.create(d):
(g.prototype=d.prototype,new g)}}(),t=a.animObject,n=f.parse,h=x.hasTouch;a=x.noop;var c=I.clamp,k=I.css,e=I.defined,m=I.extend,p=I.fireEvent,y=I.isArray,L=I.isNumber,H=I.merge,J=I.pick,v=I.objectEach;I=function(a){function f(){var d=null!==a&&a.apply(this,arguments)||this;d.borderWidth=void 0;d.data=void 0;d.group=void 0;d.options=void 0;d.points=void 0;return d}u(f,a);f.prototype.animate=function(a){var d=this,b=this.yAxis,e=d.options,h=this.chart.inverted,f={},k=h?"translateX":"translateY";if(a)f.scaleY=
.001,a=c(b.toPixels(e.threshold),b.pos,b.pos+b.len),h?f.translateX=a-b.len:f.translateY=a,d.clipBox&&d.setClip(),d.group.attr(f);else{var l=Number(d.group.attr(k));d.group.animate({scaleY:1},m(t(d.options.animation),{step:function(a,c){d.group&&(f[k]=l+c.pos*(b.pos-l),d.group.attr(f))}}))}};f.prototype.init=function(d,c){a.prototype.init.apply(this,arguments);var b=this;d=b.chart;d.hasRendered&&d.series.forEach(function(a){a.type===b.type&&(a.isDirty=!0)})};f.prototype.getColumnMetrics=function(){var a=
this,c=a.options,b=a.xAxis,e=a.yAxis,h=b.options.reversedStacks;h=b.reversed&&!h||!b.reversed&&h;var f={},k,l=0;!1===c.grouping?l=1:a.chart.series.forEach(function(b){var d=b.yAxis,c=b.options;if(b.type===a.type&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&e.len===d.len&&e.pos===d.pos){if(c.stacking&&"group"!==c.stacking){k=b.stackKey;"undefined"===typeof f[k]&&(f[k]=l++);var g=f[k]}else!1!==c.grouping&&(g=l++);b.columnIndex=g}});var m=Math.min(Math.abs(b.transA)*(b.ordinal&&b.ordinal.slope||
c.pointRange||b.closestPointRange||b.tickInterval||1),b.len),p=m*c.groupPadding,n=(m-2*p)/(l||1);c=Math.min(c.maxPointWidth||b.len,J(c.pointWidth,n*(1-2*c.pointPadding)));a.columnMetrics={width:c,offset:(n-c)/2+(p+((a.columnIndex||0)+(h?1:0))*n-m/2)*(h?-1:1),paddedWidth:n,columnCount:l};return a.columnMetrics};f.prototype.crispCol=function(a,c,b,e){var d=this.chart,g=this.borderWidth,h=-(g%2?.5:0);g=g%2?.5:1;d.inverted&&d.renderer.isVML&&(g+=1);this.options.crisp&&(b=Math.round(a+b)+h,a=Math.round(a)+
h,b-=a);e=Math.round(c+e)+g;h=.5>=Math.abs(c)&&.5<e;c=Math.round(c)+g;e-=c;h&&e&&(--c,e+=1);return{x:a,y:c,width:b,height:e}};f.prototype.adjustForMissingColumns=function(a,c,b,e){var d=this,g=this.options.stacking;if(!b.isNull&&1<e.columnCount){var h=this.yAxis.options.reversedStacks,f=0,k=h?0:-e.columnCount;v(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof b.x){var c=a[b.x.toString()];c&&(a=c.points[d.index],g?(a&&(f=k),c.hasValidPoints&&(h?k++:k--)):y(a)&&(a=Object.keys(c.points).filter(function(a){return!a.match(",")&&
c.points[a]&&1<c.points[a].length}).map(parseFloat).sort(function(a,b){return b-a}),f=a.indexOf(d.index),k=a.length))}});a=(b.plotX||0)+((k-1)*e.paddedWidth+c)/2-c-f*e.paddedWidth}return a};f.prototype.translate=function(){var a=this,g=a.chart,b=a.options,h=a.dense=2>a.closestPointRange*a.xAxis.transA;h=a.borderWidth=J(b.borderWidth,h?0:1);var f=a.xAxis,k=a.yAxis,l=b.threshold,m=a.translatedThreshold=k.getThreshold(l),p=J(b.minPointLength,5),n=a.getColumnMetrics(),q=n.width,t=a.pointXOffset=n.offset,
v=a.dataMin,u=a.dataMax,y=a.barW=Math.max(q,1+2*h);g.inverted&&(m-=.5);b.pointPadding&&(y=Math.ceil(y));C.prototype.translate.apply(a);a.points.forEach(function(d){var h=J(d.yBottom,m),r=999+Math.abs(h),w=d.plotX||0;r=c(d.plotY,-r,k.len+r);var A=Math.min(r,h),z=Math.max(r,h)-A,B=q,D=w+t,x=y;p&&Math.abs(z)<p&&(z=p,w=!k.reversed&&!d.negative||k.reversed&&d.negative,L(l)&&L(u)&&d.y===l&&u<=l&&(k.min||0)<l&&(v!==u||(k.max||0)<=l)&&(w=!w),A=Math.abs(A-m)>p?h-p:m-(w?p:0));e(d.options.pointWidth)&&(B=x=
Math.ceil(d.options.pointWidth),D-=Math.round((B-q)/2));b.centerInCategory&&(D=a.adjustForMissingColumns(D,B,d,n));d.barX=D;d.pointWidth=B;d.tooltipPos=g.inverted?[c(k.len+k.pos-g.plotLeft-r,k.pos-g.plotLeft,k.len+k.pos-g.plotLeft),f.len+f.pos-g.plotTop-D-x/2,z]:[f.left-g.plotLeft+D+x/2,c(r+k.pos-g.plotTop,k.pos-g.plotTop,k.len+k.pos-g.plotTop),z];d.shapeType=a.pointClass.prototype.shapeType||"rect";d.shapeArgs=a.crispCol.apply(a,d.isNull?[D,m,x,0]:[D,A,x,z])})};f.prototype.drawGraph=function(){this.group[this.dense?
"addClass":"removeClass"]("highcharts-dense-data")};f.prototype.pointAttribs=function(a,c){var b=this.options,d=this.pointAttrToOptions||{},g=d.stroke||"borderColor",h=d["stroke-width"]||"borderWidth",e=a&&a.color||this.color,f=a&&a[g]||b[g]||e;d=a&&a.options.dashStyle||b.dashStyle;var k=a&&a[h]||b[h]||this[h]||0,l=J(a&&a.opacity,b.opacity,1);if(a&&this.zones.length){var m=a.getZone();e=a.options.color||m&&(m.color||a.nonZonedColor)||this.color;m&&(f=m.borderColor||f,d=m.dashStyle||d,k=m.borderWidth||
k)}c&&a&&(a=H(b.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||"undefined"!==typeof c&&n(e).brighten(a.brightness).get()||e,f=a[g]||f,k=a[h]||k,d=a.dashStyle||d,l=J(a.opacity,l));g={fill:e,stroke:f,"stroke-width":k,opacity:l};d&&(g.dashstyle=d);return g};f.prototype.drawPoints=function(a){void 0===a&&(a=this.points);var d=this,b=this.chart,c=d.options,h=b.renderer,e=c.animationLimit||250,f;a.forEach(function(a){var g=a.graphic,k=!!g,l=g&&b.pointCount<e?"animate":"attr";
if(L(a.plotY)&&null!==a.y){f=a.shapeArgs;g&&a.hasNewShapeType()&&(g=g.destroy());d.enabledDataSorting&&(a.startXPos=d.xAxis.reversed?-(f?f.width||0:0):d.xAxis.width);g||(a.graphic=g=h[a.shapeType](f).add(a.group||d.group))&&d.enabledDataSorting&&b.hasRendered&&b.pointCount<e&&(g.attr({x:a.startXPos}),k=!0,l="animate");if(g&&k)g[l](H(f));if(c.borderRadius)g[l]({r:c.borderRadius});b.styledMode||g[l](d.pointAttribs(a,a.selected&&"select")).shadow(!1!==a.allowShadow&&c.shadow,null,c.stacking&&!c.borderRadius);
g&&(g.addClass(a.getClassName(),!0),g.attr({visibility:a.visible?"inherit":"hidden"}))}else g&&(a.graphic=g.destroy())})};f.prototype.drawTracker=function(){var a=this,c=a.chart,b=c.pointer,e=function(a){var d=b.getPointFromEvent(a);"undefined"!==typeof d&&(b.isDirectTouch=!0,d.onMouseOver(a))},f;a.points.forEach(function(a){f=y(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);f.forEach(function(b){b.div?b.div.point=a:b.element.point=a})});a._hasTracking||
(a.trackerGroups.forEach(function(d){if(a[d]){a[d].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(a){b.onTrackerMouseOut(a)});if(h)a[d].on("touchstart",e);!c.styledMode&&a.options.cursor&&a[d].css(k).css({cursor:a.options.cursor})}}),a._hasTracking=!0);p(this,"afterDrawTracker")};f.prototype.remove=function(){var a=this,c=a.chart;c.hasRendered&&c.series.forEach(function(b){b.type===a.type&&(b.isDirty=!0)});C.prototype.remove.apply(a,arguments)};f.defaultOptions=H(C.defaultOptions,
{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"});return f}(C);m(I.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:F.drawRectangle,getSymbol:a,negStacks:!0,trackerGroups:["group",
"dataLabelsGroup"]});E.registerSeriesType("column",I);"";"";return I});M(f,"Core/Series/DataLabel.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/FormatUtilities.js"],f["Core/Utilities.js"]],function(a,f,x){var y=a.getDeferredAnimation,C=f.format,E=x.defined,I=x.extend,u=x.fireEvent,t=x.isArray,n=x.isString,h=x.merge,c=x.objectEach,k=x.pick,e=x.splat,m;(function(a){function f(a,c,b,e,h){var d=this,g=this.chart,f=this.isCartesian&&g.inverted,l=this.enabledDataSorting,m=k(a.dlBox&&a.dlBox.centerX,
a.plotX),p=a.plotY,n=b.rotation,q=b.align,r=E(m)&&E(p)&&g.isInsidePlot(m,Math.round(p),{inverted:f,paneCoordinates:!0,series:d}),t=function(b){l&&d.xAxis&&!v&&d.setDataLabelStartPos(a,c,h,r,b)},v="justify"===k(b.overflow,l?"none":"justify"),u=this.visible&&!1!==a.visible&&(a.series.forceDL||l&&!v||r||k(b.inside,!!this.options.stacking)&&e&&g.isInsidePlot(m,f?e.x+1:e.y+e.height-1,{inverted:f,paneCoordinates:!0,series:d}));if(u&&E(m)&&E(p)){n&&c.attr({align:q});q=c.getBBox(!0);var y=[0,0];var A=g.renderer.fontMetrics(g.styledMode?
void 0:b.style.fontSize,c).b;e=I({x:f?this.yAxis.len-p:m,y:Math.round(f?this.xAxis.len-m:p),width:0,height:0},e);I(b,{width:q.width,height:q.height});n?(v=!1,y=g.renderer.rotCorr(A,n),m={x:e.x+(b.x||0)+e.width/2+y.x,y:e.y+(b.y||0)+{top:0,middle:.5,bottom:1}[b.verticalAlign]*e.height},y=[q.x-Number(c.attr("x")),q.y-Number(c.attr("y"))],t(m),c[h?"attr":"animate"](m)):(t(e),c.align(b,void 0,e),m=c.alignAttr);v&&0<=e.height?this.justifyDataLabel(c,b,m,q,e,h):k(b.crop,!0)&&(e=m.x,t=m.y,e+=y[0],t+=y[1],
u=g.isInsidePlot(e,t,{paneCoordinates:!0,series:d})&&g.isInsidePlot(e+q.width,t+q.height,{paneCoordinates:!0,series:d}));if(b.shape&&!n)c[h?"attr":"animate"]({anchorX:f?g.plotWidth-a.plotY:a.plotX,anchorY:f?g.plotHeight-a.plotX:a.plotY})}h&&l&&(c.placed=!1);u||l&&!v?c.show():(c.hide(),c.placed=!1)}function m(a,c){var b=c.filter;return b?(c=b.operator,a=a[b.property],b=b.value,">"===c&&a>b||"<"===c&&a<b||">="===c&&a>=b||"<="===c&&a<=b||"=="===c&&a==b||"==="===c&&a===b?!0:!1):!0}function p(a){void 0===
a&&(a=this.points);var d=this,b=d.chart,h=d.options,f=d.hasRendered||0,l=b.renderer,p=b.options.chart,q=p.backgroundColor;p=p.plotBackgroundColor;var D=l.getContrast(n(p)&&p||n(q)&&q||"#000000"),x=h.dataLabels,J;q=x.animation;q=x.defer?y(b,q,d):{defer:0,duration:0};x=v(v(b.options.plotOptions&&b.options.plotOptions.series&&b.options.plotOptions.series.dataLabels,b.options.plotOptions&&b.options.plotOptions[d.type]&&b.options.plotOptions[d.type].dataLabels),x);u(this,"drawDataLabels");if(t(x)||x.enabled||
d._hasPointLabels){var H=d.plotGroup("dataLabelsGroup","data-labels",f?"inherit":"hidden",x.zIndex||6);H.attr({opacity:+f});!f&&(f=d.dataLabelsGroup)&&(d.visible&&H.show(),f[h.animation?"animate":"attr"]({opacity:1},q));a.forEach(function(a){J=e(v(x,a.dlOptions||a.options&&a.options.dataLabels));J.forEach(function(g,e){var f=g.enabled&&(!a.isNull||a.dataLabelOnNull)&&m(a,g),p=a.connectors?a.connectors[e]:a.connector,n=a.dataLabels?a.dataLabels[e]:a.dataLabel,q=!n,r=k(g.distance,a.labelDistance);if(f){var t=
a.getLabelConfig();var v=k(g[a.formatPrefix+"Format"],g.format);t=E(v)?C(v,t,b):(g[a.formatPrefix+"Formatter"]||g.formatter).call(t,g);v=g.style;var u=g.rotation;b.styledMode||(v.color=k(g.color,v.color,d.color,"#000000"),"contrast"===v.color?(a.contrastColor=l.getContrast(a.color||d.color),v.color=!E(r)&&g.inside||0>r||h.stacking?a.contrastColor:D):delete a.contrastColor,h.cursor&&(v.cursor=h.cursor));var w={r:g.borderRadius||0,rotation:u,padding:g.padding,zIndex:1};b.styledMode||(w.fill=g.backgroundColor,
w.stroke=g.borderColor,w["stroke-width"]=g.borderWidth);c(w,function(a,b){"undefined"===typeof a&&delete w[b]})}!n||f&&E(t)&&!!n.div===!!g.useHTML&&(n.rotation&&g.rotation||n.rotation===g.rotation)||(q=!0,a.dataLabel=n=a.dataLabel&&a.dataLabel.destroy(),a.dataLabels&&(1===a.dataLabels.length?delete a.dataLabels:delete a.dataLabels[e]),e||delete a.dataLabel,p&&(a.connector=a.connector.destroy(),a.connectors&&(1===a.connectors.length?delete a.connectors:delete a.connectors[e])));f&&E(t)?(n?w.text=t:
(a.dataLabels=a.dataLabels||[],n=a.dataLabels[e]=u?l.text(t,0,0,g.useHTML).addClass("highcharts-data-label"):l.label(t,0,0,g.shape,null,null,g.useHTML,null,"data-label"),e||(a.dataLabel=n),n.addClass(" highcharts-data-label-color-"+a.colorIndex+" "+(g.className||"")+(g.useHTML?" highcharts-tracker":""))),n.options=g,n.attr(w),b.styledMode||n.css(v).shadow(g.shadow),(e=g[a.formatPrefix+"TextPath"]||g.textPath)&&!g.useHTML&&(n.setTextPath(a.getDataLabelPath&&a.getDataLabelPath(n)||a.graphic,e),a.dataLabelPath&&
!e.enabled&&(a.dataLabelPath=a.dataLabelPath.destroy())),n.added||n.add(H),d.alignDataLabel(a,n,g,null,q)):n&&n.hide()})})}u(this,"afterDrawDataLabels")}function x(a,c,b,e,h,f){var d=this.chart,g=c.align,k=c.verticalAlign,l=a.box?0:a.padding||0,m=c.x;m=void 0===m?0:m;var n=c.y;n=void 0===n?0:n;var p=(b.x||0)+l;if(0>p){"right"===g&&0<=m?(c.align="left",c.inside=!0):m-=p;var q=!0}p=(b.x||0)+e.width-l;p>d.plotWidth&&("left"===g&&0>=m?(c.align="right",c.inside=!0):m+=d.plotWidth-p,q=!0);p=b.y+l;0>p&&
("bottom"===k&&0<=n?(c.verticalAlign="top",c.inside=!0):n-=p,q=!0);p=(b.y||0)+e.height-l;p>d.plotHeight&&("top"===k&&0>=n?(c.verticalAlign="bottom",c.inside=!0):n+=d.plotHeight-p,q=!0);q&&(c.x=m,c.y=n,a.placed=!f,a.align(c,void 0,h));return q}function v(a,c){var b=[],d;if(t(a)&&!t(c))b=a.map(function(a){return h(a,c)});else if(t(c)&&!t(a))b=c.map(function(b){return h(a,b)});else if(t(a)||t(c))for(d=Math.max(a.length,c.length);d--;)b[d]=h(a[d],c[d]);else b=h(a,c);return b}function l(a,c,b,e,h){var d=
this.chart,g=d.inverted,f=this.xAxis,k=f.reversed,l=g?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=g?h.x:k?-l-a:f.width-l+a;c.startYPos=g?k?this.yAxis.height-l+a:-l-a:h.y;e?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);d.hasRendered&&(b&&c.attr({x:c.startXPos,y:c.startYPos}),c.placed=!0)}var q=[];a.compose=function(a){if(-1===q.indexOf(a)){var c=a.prototype;q.push(a);c.alignDataLabel=f;c.drawDataLabels=
p;c.justifyDataLabel=x;c.setDataLabelStartPos=l}}})(m||(m={}));"";return m});M(f,"Series/Column/ColumnDataLabel.js",[f["Core/Series/DataLabel.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(a,f,x){var y=f.series,C=x.merge,E=x.pick,I;(function(f){function t(a,c,f,e,m){var h=this.chart.inverted,k=a.series,n=(k.xAxis?k.xAxis.len:this.chart.plotSizeX)||0;k=(k.yAxis?k.yAxis.len:this.chart.plotSizeY)||0;var t=a.dlBox||a.shapeArgs,u=E(a.below,a.plotY>E(this.translatedThreshold,k)),
v=E(f.inside,!!this.options.stacking);t&&(e=C(t),0>e.y&&(e.height+=e.y,e.y=0),t=e.y+e.height-k,0<t&&t<e.height&&(e.height-=t),h&&(e={x:k-e.y-e.height,y:n-e.x-e.width,width:e.height,height:e.width}),v||(h?(e.x+=u?0:e.width,e.width=0):(e.y+=u?e.height:0,e.height=0)));f.align=E(f.align,!h||v?"center":u?"right":"left");f.verticalAlign=E(f.verticalAlign,h||v?"middle":u?"top":"bottom");y.prototype.alignDataLabel.call(this,a,c,f,e,m);f.inside&&a.contrastColor&&c.css({color:a.contrastColor})}var n=[];f.compose=
function(h){a.compose(y);-1===n.indexOf(h)&&(n.push(h),h.prototype.alignDataLabel=t)}})(I||(I={}));return I});M(f,"Series/Bar/BarSeries.js",[f["Series/Column/ColumnSeries.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(a,f,x){var y=this&&this.__extends||function(){var a=function(f,t){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var c in h)h.hasOwnProperty(c)&&(a[c]=h[c])};return a(f,t)};return function(f,t){function n(){this.constructor=
f}a(f,t);f.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),C=x.extend,E=x.merge;x=function(f){function u(){var a=null!==f&&f.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}y(u,f);u.defaultOptions=E(a.defaultOptions,{});return u}(a);C(x.prototype,{inverted:!0});f.registerSeriesType("bar",x);"";return x});M(f,"Series/Scatter/ScatterSeries.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(a,f){var y=this&&this.__extends||
function(){var a=function(f,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var c in h)h.hasOwnProperty(c)&&(a[c]=h[c])};return a(f,h)};return function(f,h){function c(){this.constructor=f}a(f,h);f.prototype=null===h?Object.create(h):(c.prototype=h.prototype,new c)}}(),F=a.seriesTypes,C=F.column,E=F.line;F=f.addEvent;var I=f.extend,u=f.merge;f=function(a){function f(){var h=null!==a&&a.apply(this,arguments)||this;h.data=void 0;h.options=
void 0;h.points=void 0;return h}y(f,a);f.prototype.applyJitter=function(){var a=this,c=this.options.jitter,f=this.points.length;c&&this.points.forEach(function(e,h){["x","y"].forEach(function(k,m){var p="plot"+k.toUpperCase();if(c[k]&&!e.isNull){var n=a[k+"Axis"];var t=c[k]*n.transA;if(n&&!n.isLog){var v=Math.max(0,e[p]-t);n=Math.min(n.len,e[p]+t);m=1E4*Math.sin(h+m*f);e[p]=v+(n-v)*(m-Math.floor(m));"x"===k&&(e.clientX=e.plotX)}}})})};f.prototype.drawGraph=function(){this.options.lineWidth?a.prototype.drawGraph.call(this):
this.graph&&(this.graph=this.graph.destroy())};f.defaultOptions=u(E.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return f}(E);I(f.prototype,{drawTracker:C.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],
takeOrdinalPosition:!1});F(f,"afterTranslate",function(){this.applyJitter()});a.registerSeriesType("scatter",f);"";return f});M(f,"Series/CenteredUtilities.js",[f["Core/Globals.js"],f["Core/Series/Series.js"],f["Core/Utilities.js"]],function(a,f,x){var y=a.deg2rad,C=x.fireEvent,E=x.isNumber,I=x.pick,u=x.relativeLength,t;(function(a){a.getCenter=function(){var a=this.options,c=this.chart,k=2*(a.slicedOffset||0),e=c.plotWidth-2*k,m=c.plotHeight-2*k,p=a.center,n=Math.min(e,m),t=a.thickness,y=a.size,
x=a.innerSize||0;"string"===typeof y&&(y=parseFloat(y));"string"===typeof x&&(x=parseFloat(x));a=[I(p[0],"50%"),I(p[1],"50%"),I(y&&0>y?void 0:a.size,"100%"),I(x&&0>x?void 0:a.innerSize||0,"0%")];!c.angular||this instanceof f||(a[3]=0);for(p=0;4>p;++p)y=a[p],c=2>p||2===p&&/%$/.test(y),a[p]=u(y,[e,m,n,a[2]][p])+(c?k:0);a[3]>a[2]&&(a[3]=a[2]);E(t)&&2*t<a[2]&&0<t&&(a[3]=a[2]-2*t);C(this,"afterGetCenter",{positions:a});return a};a.getStartAndEndRadians=function(a,c){a=E(a)?a:0;c=E(c)&&c>a&&360>c-a?c:a+
360;return{start:y*(a+-90),end:y*(c+-90)}}})(t||(t={}));"";return t});M(f,"Series/Pie/PiePoint.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Series/Point.js"],f["Core/Utilities.js"]],function(a,f,x){var y=this&&this.__extends||function(){var a=function(c,h){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,h)};return function(c,h){function e(){this.constructor=c}a(c,h);c.prototype=
null===h?Object.create(h):(e.prototype=h.prototype,new e)}}(),C=a.setAnimation,E=x.addEvent,I=x.defined;a=x.extend;var u=x.isNumber,t=x.pick,n=x.relativeLength;f=function(a){function c(){var c=null!==a&&a.apply(this,arguments)||this;c.labelDistance=void 0;c.options=void 0;c.series=void 0;return c}y(c,a);c.prototype.getConnectorPath=function(){var a=this.labelPosition,c=this.series.options.dataLabels,h=this.connectorShapes,f=c.connectorShape;h[f]&&(f=h[f]);return f.call(this,{x:a.final.x,y:a.final.y,
alignment:a.alignment},a.connectorPosition,c)};c.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};c.prototype.haloPath=function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:c.r-1,start:c.start,end:c.end})};c.prototype.init=function(){var c=this;a.prototype.init.apply(this,arguments);this.name=t(this.name,"Slice");var e=function(a){c.slice("select"===a.type)};E(this,
"select",e);E(this,"unselect",e);return this};c.prototype.isValid=function(){return u(this.y)&&0<=this.y};c.prototype.setVisible=function(a,c){var e=this,h=this.series,f=h.chart,k=h.options.ignoreHiddenPoint;c=t(c,k);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,h.options.data[h.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(c){if(e[c])e[c][a?"show":"hide"](a)}),this.legendItem&&f.legend.colorizeItem(this,
a),a||"hover"!==this.state||this.setState(""),k&&(h.isDirty=!0),c&&f.redraw())};c.prototype.slice=function(a,c,h){var e=this.series;C(h,e.chart);t(c,!0);this.sliced=this.options.sliced=I(a)?a:!this.sliced;e.options.data[e.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return c}(f);a(f.prototype,{connectorShapes:{fixedOffset:function(a,c,f){var e=c.breakAt;c=c.touchingSliceAt;return[["M",a.x,
a.y],f.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*e.x-c.x,2*e.y-c.y,e.x,e.y]:["L",e.x,e.y],["L",c.x,c.y]]},straight:function(a,c){c=c.touchingSliceAt;return[["M",a.x,a.y],["L",c.x,c.y]]},crookedLine:function(a,c,f){c=c.touchingSliceAt;var e=this.series,h=e.center[0],k=e.chart.plotWidth,t=e.chart.plotLeft;e=a.alignment;var u=this.shapeArgs.r;f=n(f.crookDistance,1);k="left"===e?h+u+(k+t-h-u)*(1-f):t+(h-u)*f;f=["L",k,a.y];h=!0;if("left"===e?k>a.x||k<c.x:k<a.x||k>c.x)h=!1;a=[["M",a.x,a.y]];
h&&a.push(f);a.push(["L",c.x,c.y]);return a}}});return f});M(f,"Series/Pie/PieSeriesDefaults.js",[],function(){"";return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,
stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}});M(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["Series/Pie/PieSeriesDefaults.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/Symbols.js"],f["Core/Utilities.js"]],function(a,f,x,F,C,E,I,u,t,n){var h=
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 d in c)c.hasOwnProperty(d)&&(a[d]=c[d])};return a(c,e)};return function(c,e){function h(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(h.prototype=e.prototype,new h)}}(),c=a.getStartAndEndRadians;x=x.noop;var k=n.clamp,e=n.extend,m=n.fireEvent,p=n.merge,y=n.pick,L=n.relativeLength;n=function(a){function e(){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}h(e,a);e.prototype.animate=function(a){var c=this,e=c.points,d=c.startAngleRad;a||e.forEach(function(a){var b=a.graphic,g=a.shapeArgs;b&&g&&(b.attr({r:y(a.startR,c.center&&c.center[3]/2),start:d,end:d}),b.animate({r:g.r,start:g.start,end:g.end},c.options.animation))})};e.prototype.drawEmpty=function(){var a=this.startAngleRad,c=this.endAngleRad,e=this.options;if(0===this.total&&
this.center){var d=this.center[0];var g=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(d,g,this.center[1]/2,0,a,c).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:t.arc(d,g,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())};e.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)})};e.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};e.prototype.getX=function(a,c,e){var d=this.center,g=this.radii?this.radii[e.index]||0:d[2]/2;a=Math.asin(k((a-d[1])/(g+e.labelDistance),-1,1));return d[0]+(c?-1:1)*Math.cos(a)*(g+e.labelDistance)+(0<e.labelDistance?
(c?-1:1)*this.options.dataLabels.padding:0)};e.prototype.hasData=function(){return!!this.processedXData.length};e.prototype.redrawPoints=function(){var a=this,c=a.chart,e=c.renderer,d=a.options.shadow,g,b,h,f;this.drawEmpty();!d||a.shadowGroup||c.styledMode||(a.shadowGroup=e.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(k){var l={};b=k.graphic;if(!k.isNull&&b){var m=void 0;f=k.shapeArgs;g=k.getTranslate();c.styledMode||(m=k.shadowGroup,d&&!m&&(m=k.shadowGroup=e.g("shadow").add(a.shadowGroup)),
m&&m.attr(g),h=a.pointAttribs(k,k.selected&&"select"));k.delayedRendering?(b.setRadialReference(a.center).attr(f).attr(g),c.styledMode||b.attr(h).attr({"stroke-linejoin":"round"}).shadow(d,m),k.delayedRendering=!1):(b.setRadialReference(a.center),c.styledMode||p(!0,l,h),p(!0,l,f,g),b.animate(l));b.attr({visibility:k.visible?"inherit":"hidden"});b.addClass(k.getClassName(),!0)}else b&&(k.graphic=b.destroy())})};e.prototype.sortByAngle=function(a,c){a.sort(function(a,d){return"undefined"!==typeof a.angle&&
(d.angle-a.angle)*c})};e.prototype.translate=function(a){m(this,"translate");this.generatePoints();var e=this.options,h=e.slicedOffset,d=h+(e.borderWidth||0),g=c(e.startAngle,e.endAngle),b=this.startAngleRad=g.start;g=(this.endAngleRad=g.end)-b;var f=this.points,k=e.dataLabels.distance;e=e.ignoreHiddenPoint;var n=f.length,p,t=0;a||(this.center=a=this.getCenter());for(p=0;p<n;p++){var u=f[p];var v=b+t*g;!u.isValid()||e&&!u.visible||(t+=u.percentage/100);var x=b+t*g;var C={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/
2,start:Math.round(1E3*v)/1E3,end:Math.round(1E3*x)/1E3};u.shapeType="arc";u.shapeArgs=C;u.labelDistance=y(u.options.dataLabels&&u.options.dataLabels.distance,k);u.labelDistance=L(u.labelDistance,C.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,u.labelDistance);x=(x+v)/2;x>1.5*Math.PI?x-=2*Math.PI:x<-Math.PI/2&&(x+=2*Math.PI);u.slicedTranslation={translateX:Math.round(Math.cos(x)*h),translateY:Math.round(Math.sin(x)*h)};C=Math.cos(x)*a[2]/2;var B=Math.sin(x)*a[2]/2;u.tooltipPos=[a[0]+
.7*C,a[1]+.7*B];u.half=x<-Math.PI/2||x>Math.PI/2?1:0;u.angle=x;v=Math.min(d,u.labelDistance/5);u.labelPosition={natural:{x:a[0]+C+Math.cos(x)*u.labelDistance,y:a[1]+B+Math.sin(x)*u.labelDistance},"final":{},alignment:0>u.labelDistance?"center":u.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+C+Math.cos(x)*v,y:a[1]+B+Math.sin(x)*v},touchingSliceAt:{x:a[0]+C,y:a[1]+B}}}}m(this,"afterTranslate")};e.prototype.updateTotals=function(){var a=this.points,c=a.length,e=this.options.ignoreHiddenPoint,
d,g=0;for(d=0;d<c;d++){var b=a[d];!b.isValid()||e&&!b.visible||(g+=b.y)}this.total=g;for(d=0;d<c;d++)b=a[d],b.percentage=0<g&&(b.visible||!e)?b.y/g*100:0,b.total=g};e.defaultOptions=p(I.defaultOptions,E);return e}(I);e(n.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:F.drawRectangle,drawTracker:f.prototype.drawTracker,getCenter:a.getCenter,getSymbol:x,isCartesian:!1,noSharedTooltip:!0,pointAttribs:f.prototype.pointAttribs,pointClass:C,requireSorting:!1,searchPoint:x,trackerGroups:["group",
"dataLabelsGroup"]});u.registerSeriesType("pie",n);return n});M(f,"Series/Pie/PieDataLabel.js",[f["Core/Series/DataLabel.js"],f["Core/Globals.js"],f["Core/Renderer/RendererUtilities.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(a,f,x,F,C){var y=f.noop,I=x.distribute,u=F.series,t=C.arrayMax,n=C.clamp,h=C.defined,c=C.merge,k=C.pick,e=C.relativeLength,m;(function(f){function m(){var a=this,e=a.data,d=a.chart,g=a.options.dataLabels||{},b=g.connectorPadding,f=d.plotWidth,m=d.plotHeight,
n=d.plotLeft,p=Math.round(d.chartWidth/3),v=a.center,y=v[2]/2,x=v[1],C=[[],[]],D=[0,0,0,0],B=a.dataLabelPositioners,E,F,J,H,L,G,M,P,Y,U,V,T;a.visible&&(g.enabled||a._hasPointLabels)&&(e.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),u.prototype.drawDataLabels.apply(a),e.forEach(function(a){a.dataLabel&&(a.visible?(C[a.half].push(a),a.dataLabel._pos=null,!h(g.style.width)&&!h(a.options.dataLabels&&
a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>p&&(a.dataLabel.css({width:Math.round(.7*p)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),C.forEach(function(c,e){var l=c.length,p=[],q;if(l){a.sortByAngle(c,e-.5);if(0<a.maxLabelDistance){var r=Math.max(0,x-y-a.maxLabelDistance);var t=Math.min(x+y+a.maxLabelDistance,d.plotHeight);c.forEach(function(a){0<a.labelDistance&&a.dataLabel&&
(a.top=Math.max(0,x-y-a.labelDistance),a.bottom=Math.min(x+y+a.labelDistance,d.plotHeight),q=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+q/2,size:q,rank:a.y},p.push(a.distributeBox))});r=t+q-r;I(p,r,r/5)}for(V=0;V<l;V++){E=c[V];G=E.labelPosition;H=E.dataLabel;U=!1===E.visible?"hidden":"inherit";Y=r=G.natural.y;p&&h(E.distributeBox)&&("undefined"===typeof E.distributeBox.pos?U="hidden":(M=E.distributeBox.size,Y=B.radialDistributionY(E)));delete E.positionIndex;
if(g.justify)P=B.justify(E,y,v);else switch(g.alignTo){case "connectors":P=B.alignToConnectors(c,e,f,n);break;case "plotEdges":P=B.alignToPlotEdges(H,e,f,n);break;default:P=B.radialDistributionX(a,E,Y,r)}H._attr={visibility:U,align:G.alignment};T=E.options.dataLabels||{};H._pos={x:P+k(T.x,g.x)+({left:b,right:-b}[G.alignment]||0),y:Y+k(T.y,g.y)-10};G.final.x=P;G.final.y=Y;k(g.crop,!0)&&(L=H.getBBox().width,r=null,P-L<b&&1===e?(r=Math.round(L-P+b),D[3]=Math.max(r,D[3])):P+L>f-b&&0===e&&(r=Math.round(P+
L-f+b),D[1]=Math.max(r,D[1])),0>Y-M/2?D[0]=Math.max(Math.round(-Y+M/2),D[0]):Y+M/2>m&&(D[2]=Math.max(Math.round(Y+M/2-m),D[2])),H.sideOverflow=r)}}}),0===t(D)||this.verifyDataLabelOverflow(D))&&(this.placeDataLabels(),this.points.forEach(function(b){T=c(g,b.options.dataLabels);if(F=k(T.connectorWidth,1)){var e;J=b.connector;if((H=b.dataLabel)&&H._pos&&b.visible&&0<b.labelDistance){U=H._attr.visibility;if(e=!J)b.connector=J=d.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+
b.colorIndex+(b.className?" "+b.className:"")).add(a.dataLabelsGroup),d.styledMode||J.attr({"stroke-width":F,stroke:T.connectorColor||b.color||"#666666"});J[e?"attr":"animate"]({d:b.getConnectorPath()});J.attr("visibility",U)}else J&&(b.connector=J.destroy())}}))}function p(){this.points.forEach(function(a){var c=a.dataLabel,d;c&&a.visible&&((d=c._pos)?(c.sideOverflow&&(c._attr.width=Math.max(c.getBBox().width-c.sideOverflow,0),c.css({width:c._attr.width+"px",textOverflow:(this.options.dataLabels.style||
{}).textOverflow||"ellipsis"}),c.shortened=!0),c.attr(c._attr),c[c.moved?"animate":"attr"](d),c.moved=!0):c&&c.attr({y:-9999}));delete a.distributeBox},this)}function x(a){var c=this.center,d=this.options,g=d.center,b=d.minSize||80,h=null!==d.size;if(!h){if(null!==g[0])var f=Math.max(c[2]-Math.max(a[1],a[3]),b);else f=Math.max(c[2]-a[1]-a[3],b),c[0]+=(a[3]-a[1])/2;null!==g[1]?f=n(f,b,c[2]-Math.max(a[0],a[2])):(f=n(f,b,c[2]-a[0]-a[2]),c[1]+=(a[0]-a[2])/2);f<c[2]?(c[2]=f,c[3]=Math.min(d.thickness?Math.max(0,
f-2*d.thickness):Math.max(0,e(d.innerSize||0,f)),f),this.translate(c),this.drawDataLabels&&this.drawDataLabels()):h=!0}return h}var C=[],v={radialDistributionY:function(a){return a.top+a.distributeBox.pos},radialDistributionX:function(a,c,d,e){return a.getX(d<c.top+2||d>c.bottom-2?e:d,c.half,c)},justify:function(a,c,d){return d[0]+(a.half?-1:1)*(c+a.labelDistance)},alignToPlotEdges:function(a,c,d,e){a=a.getBBox().width;return c?a+e:d-a-e},alignToConnectors:function(a,c,d,e){var b=0,g;a.forEach(function(a){g=
a.dataLabel.getBBox().width;g>b&&(b=g)});return c?b+e:d-b-e}};f.compose=function(c){a.compose(u);-1===C.indexOf(c)&&(C.push(c),c=c.prototype,c.dataLabelPositioners=v,c.alignDataLabel=y,c.drawDataLabels=m,c.placeDataLabels=p,c.verifyDataLabelOverflow=x)}})(m||(m={}));return m});M(f,"Extensions/OverlappingDataLabels.js",[f["Core/Chart/Chart.js"],f["Core/Utilities.js"]],function(a,f){function y(a,f){var c=!1;if(a){var h=a.newOpacity;a.oldOpacity!==h&&(a.alignAttr&&a.placed?(a[h?"removeClass":"addClass"]("highcharts-data-label-hidden"),
c=!0,a.alignAttr.opacity=h,a[a.isOld?"animate":"attr"](a.alignAttr,null,function(){f.styledMode||a.css({pointerEvents:h?"auto":"none"})}),C(f,"afterHideOverlappingLabel")):a.attr({opacity:h}));a.isOld=!0}return c}var F=f.addEvent,C=f.fireEvent,E=f.isArray,I=f.isNumber,u=f.objectEach,t=f.pick;F(a,"render",function(){var a=this,f=[];(this.labelCollectors||[]).forEach(function(a){f=f.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&
u(a.stacking.stacks,function(a){u(a,function(a){a.label&&f.push(a.label)})})});(this.series||[]).forEach(function(c){var h=c.options.dataLabels;c.visible&&(!1!==h.enabled||c._hasPointLabels)&&(h=function(c){return c.forEach(function(c){c.visible&&(E(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[]).forEach(function(e){var h=e.options;e.labelrank=t(h.labelrank,c.labelrank,c.shapeArgs&&c.shapeArgs.height);h.allowOverlap?(e.oldOpacity=e.opacity,e.newOpacity=1,y(e,a)):f.push(e)})})},h(c.nodes||
[]),h(c.points))});this.hideOverlappingLabels(f)});a.prototype.hideOverlappingLabels=function(a){var f=this,c=a.length,k=f.renderer,e,m,n,t=!1;var u=function(a){var c,e=a.box?0:a.padding||0,d=c=0,g;if(a&&(!a.alignAttr||a.placed)){var b=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var f=a.parentGroup;a.width||(c=a.getBBox(),a.width=c.width,a.height=c.height,c=k.fontMetrics(null,a.element).h);var h=a.width-2*e;(g={left:"0",center:"0.5",right:"1"}[a.alignValue])?d=+g*h:I(a.x)&&Math.round(a.x)!==a.translateX&&
(d=a.x-a.translateX);return{x:b.x+(f.translateX||0)+e-(d||0),y:b.y+(f.translateY||0)+e-c,width:a.width-2*e,height:a.height-2*e}}};for(m=0;m<c;m++)if(e=a[m])e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=u(e);a.sort(function(a,c){return(c.labelrank||0)-(a.labelrank||0)});for(m=0;m<c;m++){var x=(u=a[m])&&u.absoluteBox;for(e=m+1;e<c;++e){var E=(n=a[e])&&n.absoluteBox;!x||!E||u===n||0===u.newOpacity||0===n.newOpacity||"hidden"===u.visibility||"hidden"===n.visibility||E.x>=x.x+x.width||E.x+E.width<=
x.x||E.y>=x.y+x.height||E.y+E.height<=x.y||((u.labelrank<n.labelrank?u:n).newOpacity=0)}}a.forEach(function(a){y(a,f)&&(t=!0)});t&&C(f,"afterHideAllOverlappingLabels")}});M(f,"Core/Responsive.js",[f["Core/Utilities.js"]],function(a){var f=a.extend,x=a.find,F=a.isArray,C=a.isObject,E=a.merge,I=a.objectEach,u=a.pick,t=a.splat,n=a.uniqueKey,h;(function(a){var c=[];a.compose=function(a){-1===c.indexOf(a)&&(c.push(a),f(a.prototype,e.prototype));return a};var e=function(){function a(){}a.prototype.currentOptions=
function(a){function c(a,f,h,k){var d;I(a,function(a,b){if(!k&&-1<e.collectionsWithUpdate.indexOf(b)&&f[b])for(a=t(a),h[b]=[],d=0;d<Math.max(a.length,f[b].length);d++)f[b][d]&&(void 0===a[d]?h[b][d]=f[b][d]:(h[b][d]={},c(a[d],f[b][d],h[b][d],k+1)));else C(a)?(h[b]=F(a)?[]:{},c(a,f[b]||{},h[b],k+1)):h[b]="undefined"===typeof f[b]?null:f[b]})}var e=this,f={};c(a,this.options,f,0);return f};a.prototype.matchResponsiveRule=function(a,c){var e=a.condition;(e.callback||function(){return this.chartWidth<=
u(e.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=u(e.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=u(e.minWidth,0)&&this.chartHeight>=u(e.minHeight,0)}).call(this)&&c.push(a._id)};a.prototype.setResponsive=function(a,c){var e=this,f=this.options.responsive,h=this.currentResponsive,k=[];!c&&f&&f.rules&&f.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=n());e.matchResponsiveRule(a,k)},this);c=E.apply(void 0,k.map(function(a){return x((f||{}).rules||[],function(c){return c._id===a})}).map(function(a){return a&&
a.chartOptions}));c.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(h&&h.ruleIds)&&(h&&this.update(h.undoOptions,a,!0),k?(h=this.currentOptions(c),h.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:c,undoOptions:h},this.update(c,a,!0)):this.currentResponsive=void 0)};return a}()})(h||(h={}));"";"";return h});M(f,"masters/highcharts.src.js",[f["Core/Globals.js"],f["Core/Utilities.js"],f["Core/DefaultOptions.js"],f["Core/Animation/Fx.js"],f["Core/Animation/AnimationUtilities.js"],
f["Core/Renderer/HTML/AST.js"],f["Core/FormatUtilities.js"],f["Core/Renderer/RendererUtilities.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Renderer/HTML/HTMLElement.js"],f["Core/Renderer/HTML/HTMLRenderer.js"],f["Core/Axis/Axis.js"],f["Core/Axis/DateTimeAxis.js"],f["Core/Axis/LogarithmicAxis.js"],f["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],f["Core/Axis/Tick.js"],f["Core/Tooltip.js"],f["Core/Series/Point.js"],f["Core/Pointer.js"],f["Core/MSPointer.js"],
f["Core/Legend/Legend.js"],f["Core/Chart/Chart.js"],f["Core/Axis/Stacking/StackingAxis.js"],f["Core/Axis/Stacking/StackItem.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Series/Column/ColumnSeries.js"],f["Series/Column/ColumnDataLabel.js"],f["Series/Pie/PieSeries.js"],f["Series/Pie/PieDataLabel.js"],f["Core/Series/DataLabel.js"],f["Core/Responsive.js"],f["Core/Color/Color.js"],f["Core/Time.js"]],function(a,f,x,F,C,E,I,u,t,n,h,c,k,e,m,p,D,L,H,J,v,l,q,d,g,b,A,r,w,N,z,M,O,W,X){a.animate=
C.animate;a.animObject=C.animObject;a.getDeferredAnimation=C.getDeferredAnimation;a.setAnimation=C.setAnimation;a.stop=C.stop;a.timers=F.timers;a.AST=E;a.Axis=k;a.Chart=q;a.chart=q.chart;a.Fx=F;a.Legend=l;a.PlotLineOrBand=p;a.Point=H;a.Pointer=v.isRequired()?v:J;a.Series=b;a.StackItem=g;a.SVGElement=t;a.SVGRenderer=n;a.Tick=D;a.Time=X;a.Tooltip=L;a.Color=W;a.color=W.parse;c.compose(n);h.compose(t);a.defaultOptions=x.defaultOptions;a.getOptions=x.getOptions;a.time=x.defaultTime;a.setOptions=x.setOptions;
a.dateFormat=I.dateFormat;a.format=I.format;a.numberFormat=I.numberFormat;a.addEvent=f.addEvent;a.arrayMax=f.arrayMax;a.arrayMin=f.arrayMin;a.attr=f.attr;a.clearTimeout=f.clearTimeout;a.correctFloat=f.correctFloat;a.createElement=f.createElement;a.css=f.css;a.defined=f.defined;a.destroyObjectProperties=f.destroyObjectProperties;a.discardElement=f.discardElement;a.distribute=u.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=A.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;w.compose(r);M.compose(b);e.compose(k);m.compose(k);z.compose(N);p.compose(k);O.compose(q);d.compose(k,q,b);return a});f["masters/highcharts.src.js"]._modules=f;return f["masters/highcharts.src.js"]});
//# sourceMappingURL=highcharts.js.map