123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705 |
- /*
- Highmaps JS v9.1.1 (2021-06-03)
- (c) 2011-2021 Torstein Honsi
- License: www.highcharts.com/license
- */
- 'use strict';(function(X,J){"object"===typeof module&&module.exports?(J["default"]=J,module.exports=X.document?J(X):J):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return J(X)}):(X.Highcharts&&X.Highcharts.error(16,!0),X.Highcharts=J(X))})("undefined"!==typeof window?window:this,function(X){function J(u,a,C,D){u.hasOwnProperty(a)||(u[a]=D.apply(null,C))}var a={};J(a,"Core/Globals.js",[],function(){var u="undefined"!==typeof X?X:"undefined"!==typeof window?window:
- {},a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="9.1.1";a.win=u;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 u=!1;if(!a.isMS){var n=Object.defineProperty({},"passive",{get:function(){u=!0}});a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",
- a.noop,n),a.win.removeEventListener("testPassive",a.noop,n))}return u}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={}})(a||(a={}));return a});J(a,"Core/Utilities.js",[a["Core/Globals.js"]],function(a){function u(c,e,g,l){var G=e?"Highcharts error":"Highcharts warning";32===c&&(c=G+": Deprecated member");var b=d(c),v=b?G+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString();if("undefined"!==typeof l){var q="";b&&(v+="?");E(l,function(c,e){q+="\n - "+e+": "+c;b&&(v+=encodeURI(e)+
- "="+encodeURI(c))});v+=q}r(a,"displayError",{chart:g,code:c,message:v,params:l},function(){if(e)throw Error(v);m.console&&-1===u.messages.indexOf(v)&&console.warn(v)});u.messages.push(v)}function C(c,e){var g={};E(c,function(l,m){if(y(c[m],!0)&&!c.nodeType&&e[m])l=C(c[m],e[m]),Object.keys(l).length&&(g[m]=l);else if(y(c[m])||c[m]!==e[m])g[m]=c[m]});return g}function D(c,e){return parseInt(c,e||10)}function z(c){return"string"===typeof c}function A(c){c=Object.prototype.toString.call(c);return"[object Array]"===
- c||"[object Array Iterator]"===c}function y(c,e){return!!c&&"object"===typeof c&&(!e||!A(c))}function p(c){return y(c)&&"number"===typeof c.nodeType}function h(c){var e=c&&c.constructor;return!(!y(c,!0)||p(c)||!e||!e.name||"Object"===e.name)}function d(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity<c}function f(c){return"undefined"!==typeof c&&null!==c}function b(c,e,g){var l;z(e)?f(g)?c.setAttribute(e,g):c&&c.getAttribute&&((l=c.getAttribute(e))||"class"!==e||(l=c.getAttribute(e+
- "Name"))):E(e,function(e,g){c.setAttribute(g,e)});return l}function k(c,e){var g;c||(c={});for(g in e)c[g]=e[g];return c}function B(){for(var c=arguments,e=c.length,g=0;g<e;g++){var l=c[g];if("undefined"!==typeof l&&null!==l)return l}}function t(c,e){a.isMS&&!a.svg&&e&&"undefined"!==typeof e.opacity&&(e.filter="alpha(opacity="+100*e.opacity+")");k(c.style,e)}function H(c,g,l,m,b){c=e.createElement(c);g&&k(c,g);b&&t(c,{padding:"0",border:"none",margin:"0"});l&&t(c,l);m&&m.appendChild(c);return c}function K(c,
- e){return parseFloat(c.toPrecision(e||14))}function w(c,e,g){var l=a.getStyle||w;if("width"===e)return e=Math.min(c.offsetWidth,c.scrollWidth),g=c.getBoundingClientRect&&c.getBoundingClientRect().width,g<e&&g>=e-1&&(e=Math.floor(g)),Math.max(0,e-(l(c,"padding-left",!0)||0)-(l(c,"padding-right",!0)||0));if("height"===e)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(l(c,"padding-top",!0)||0)-(l(c,"padding-bottom",!0)||0));m.getComputedStyle||u(27,!0);if(c=m.getComputedStyle(c,void 0)){var b=
- c.getPropertyValue(e);B(g,"opacity"!==e)&&(b=D(b))}return b}function E(c,e,g){for(var l in c)Object.hasOwnProperty.call(c,l)&&e.call(g||c[l],c[l],l,c)}function x(c,e,g){function l(e,g){var l=c.removeEventListener||a.removeEventListenerPolyfill;l&&l.call(c,e,g,!1)}function m(g){var I;if(c.nodeName){if(e){var m={};m[e]=!0}else m=g;E(m,function(c,e){if(g[e])for(I=g[e].length;I--;)l(e,g[e][I].fn)})}}var b="function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(b,"hcEvents")){var v=b.hcEvents;
- e?(b=v[e]||[],g?(v[e]=b.filter(function(c){return g!==c.fn}),l(e,g)):(m(v),v[e]=[])):(m(v),delete b.hcEvents)}}function r(c,g,l,m){l=l||{};if(e.createEvent&&(c.dispatchEvent||c.fireEvent&&c!==a)){var b=e.createEvent("Events");b.initEvent(g,!0,!0);l=k(b,l);c.dispatchEvent?c.dispatchEvent(l):c.fireEvent(g,l)}else if(c.hcEvents){l.target||k(l,{preventDefault:function(){l.defaultPrevented=!0},target:c,type:g});b=[];for(var v=c,q=!1;v.hcEvents;)Object.hasOwnProperty.call(v,"hcEvents")&&v.hcEvents[g]&&
- (b.length&&(q=!0),b.unshift.apply(b,v.hcEvents[g])),v=Object.getPrototypeOf(v);q&&b.sort(function(c,e){return c.order-e.order});b.forEach(function(e){!1===e.fn.call(c,l)&&l.preventDefault()})}m&&!l.defaultPrevented&&m.call(c,l)}var q=a.charts,e=a.doc,m=a.win;"";(u||(u={})).messages=[];var c;Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var g=Array.prototype.find?function(c,e){return c.find(e)}:function(c,e){var g,l=c.length;for(g=0;g<l;g++)if(e(c[g],g))return c[g]};E({map:"map",
- each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(c,e){a[e]=function(g){var l;u(32,!1,void 0,(l={},l["Highcharts."+e]="use Array."+c,l));return Array.prototype[c].apply(g,[].slice.call(arguments,1))}});var l,v=function(){var c=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(l?"":c)+e++}}();m.jQuery&&(m.jQuery.fn.highcharts=function(){var c=[].slice.call(arguments);if(this[0])return c[0]?(new (a[z(c[0])?c.shift():"Chart"])(this[0],c[0],c[1]),
- this):q[b(this[0],"data-highcharts-chart")]});return{addEvent:function(c,e,g,l){void 0===l&&(l={});var m="function"===typeof c&&c.prototype||c;Object.hasOwnProperty.call(m,"hcEvents")||(m.hcEvents={});m=m.hcEvents;a.Point&&c instanceof a.Point&&c.series&&c.series.chart&&(c.series.chart.runTrackerClick=!0);var b=c.addEventListener||a.addEventListenerPolyfill;b&&b.call(c,e,g,a.supportsPassiveEvents?{passive:void 0===l.passive?-1!==e.indexOf("touch"):l.passive,capture:!1}:!1);m[e]||(m[e]=[]);m[e].push({fn:g,
- order:"number"===typeof l.order?l.order:Infinity});m[e].sort(function(c,e){return c.order-e.order});return function(){x(c,e,g)}},arrayMax:function(c){for(var e=c.length,g=c[0];e--;)c[e]>g&&(g=c[e]);return g},arrayMin:function(c){for(var e=c.length,g=c[0];e--;)c[e]<g&&(g=c[e]);return g},attr:b,clamp:function(c,e,g){return c>e?c<g?c:g:e},cleanRecursively:C,clearTimeout:function(c){f(c)&&clearTimeout(c)},correctFloat:K,createElement:H,css:t,defined:f,destroyObjectProperties:function(c,e){E(c,function(g,
- l){g&&g!==e&&g.destroy&&g.destroy();delete c[l]})},discardElement:function(e){c||(c=H("div"));e&&c.appendChild(e);c.innerHTML=""},erase:function(c,e){for(var g=c.length;g--;)if(c[g]===e){c.splice(g,1);break}},error:u,extend:k,extendClass:function(c,e){var g=function(){};g.prototype=new c;k(g.prototype,e);return g},find:g,fireEvent:r,getMagnitude:function(c){return Math.pow(10,Math.floor(Math.log(c)/Math.LN10))},getNestedProperty:function(c,e){for(c=c.split(".");c.length&&f(e);){var g=c.shift();if("undefined"===
- typeof g||"__proto__"===g)return;e=e[g];if(!f(e)||"function"===typeof e||"number"===typeof e.nodeType||e===m)return}return e},getStyle:w,inArray:function(c,e,g){u(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return e.indexOf(c,g)},isArray:A,isClass:h,isDOMElement:p,isFunction:function(c){return"function"===typeof c},isNumber:d,isObject:y,isString:z,keys:function(c){u(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(c)},merge:function(){var c,e=arguments,g={},l=function(c,
- e){"object"!==typeof c&&(c={});E(e,function(g,m){"__proto__"!==m&&"constructor"!==m&&(!y(g,!0)||h(g)||p(g)?c[m]=e[m]:c[m]=l(c[m]||{},g))});return c};!0===e[0]&&(g=e[1],e=Array.prototype.slice.call(e,2));var m=e.length;for(c=0;c<m;c++)g=l(g,e[c]);return g},normalizeTickInterval:function(c,e,g,l,m){var b=c;g=B(g,1);var v=c/g;e||(e=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===l&&(1===g?e=e.filter(function(c){return 0===c%1}):.1>=g&&(e=[1/g])));for(l=0;l<e.length&&!(b=e[l],m&&b*g>=c||!m&&v<=(e[l]+
- (e[l+1]||e[l]))/2);l++);return b=K(b*g,-Math.round(Math.log(.001)/Math.LN10))},objectEach:E,offset:function(c){var g=e.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(m.pageYOffset||g.scrollTop)-(g.clientTop||0),left:c.left+(m.pageXOffset||g.scrollLeft)-(g.clientLeft||0),width:c.width,height:c.height}},pad:function(c,e,g){return Array((e||2)+1-String(c).replace("-","").length).join(g||"0")+c},pick:B,pInt:D,relativeLength:function(c,
- e,g){return/%$/.test(c)?e*parseFloat(c)/100+(g||0):parseFloat(c)},removeEvent:x,splat:function(c){return A(c)?c:[c]},stableSort:function(c,e){var g=c.length,l,m;for(m=0;m<g;m++)c[m].safeI=m;c.sort(function(c,g){l=e(c,g);return 0===l?c.safeI-g.safeI:l});for(m=0;m<g;m++)delete c[m].safeI},syncTimeout:function(c,e,g){if(0<e)return setTimeout(c,e,g);c.call(0,g);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:v,useSerialIds:function(c){return l=
- B(c,l)},wrap:function(c,e,g){var l=c[e];c[e]=function(){var c=Array.prototype.slice.call(arguments),e=arguments,m=this;m.proceed=function(){l.apply(m,arguments.length?arguments:e)};c.unshift(l);c=g.apply(this,c);m.proceed=null;return c}}}});J(a,"Core/Color/Palette.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),backgroundColor:"#ffffff",neutralColor100:"#000000",neutralColor80:"#333333",neutralColor60:"#666666",neutralColor40:"#999999",
- neutralColor20:"#cccccc",neutralColor10:"#e6e6e6",neutralColor5:"#f2f2f2",neutralColor3:"#f7f7f7",highlightColor100:"#003399",highlightColor80:"#335cad",highlightColor60:"#6685c2",highlightColor20:"#ccd6eb",highlightColor10:"#e6ebf5",positiveColor:"#06b535",negativeColor:"#f21313"}});J(a,"Core/Chart/ChartDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,
- 15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:a.highlightColor80,backgroundColor:a.backgroundColor,plotBorderColor:a.neutralColor20}});J(a,"Core/Color/Color.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n){var u=n.isNumber,D=n.merge,z=n.pInt;n=function(){function n(u){this.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(h){return[z(h[1]),
- z(h[2]),z(h[3]),parseFloat(h[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(h){return[z(h[1]),z(h[2]),z(h[3]),1]}}];this.rgba=[];var p=a.Color;if(p&&p!==n)return new p(u);if(!(this instanceof n))return new n(u);this.init(u)}n.parse=function(a){return new n(a)};n.prototype.init=function(a){var p,h;if((this.input=a=n.names[a&&a.toLowerCase?a.toLowerCase():""]||a)&&a.stops)this.stops=a.stops.map(function(b){return new n(b[1])});else{if(a&&a.charAt&&
- "#"===a.charAt()){var d=a.length;a=parseInt(a.substr(1),16);7===d?p=[(a&16711680)>>16,(a&65280)>>8,a&255,1]:4===d&&(p=[(a&3840)>>4|(a&3840)>>8,(a&240)>>4|a&240,(a&15)<<4|a&15,1])}if(!p)for(h=this.parsers.length;h--&&!p;){var f=this.parsers[h];(d=f.regex.exec(a))&&(p=f.parse(d))}}this.rgba=p||[]};n.prototype.get=function(a){var p=this.input,h=this.rgba;if("undefined"!==typeof this.stops){var d=D(p);d.stops=[].concat(d.stops);this.stops.forEach(function(f,b){d.stops[b]=[d.stops[b][0],f.get(a)]})}else d=
- h&&u(h[0])?"rgb"===a||!a&&1===h[3]?"rgb("+h[0]+","+h[1]+","+h[2]+")":"a"===a?h[3]:"rgba("+h.join(",")+")":p;return d};n.prototype.brighten=function(a){var p,h=this.rgba;if(this.stops)this.stops.forEach(function(d){d.brighten(a)});else if(u(a)&&0!==a)for(p=0;3>p;p++)h[p]+=z(255*a),0>h[p]&&(h[p]=0),255<h[p]&&(h[p]=255);return this};n.prototype.setOpacity=function(a){this.rgba[3]=a;return this};n.prototype.tweenTo=function(a,p){var h=this.rgba,d=a.rgba;d.length&&h&&h.length?(a=1!==d[3]||1!==h[3],p=(a?
- "rgba(":"rgb(")+Math.round(d[0]+(h[0]-d[0])*(1-p))+","+Math.round(d[1]+(h[1]-d[1])*(1-p))+","+Math.round(d[2]+(h[2]-d[2])*(1-p))+(a?","+(d[3]+(h[3]-d[3])*(1-p)):"")+")"):p=a.input||"none";return p};n.names={white:"#ffffff",black:"#000000"};return n}();"";return n});J(a,"Core/Time.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n){var u=a.win,D=n.defined,z=n.error,A=n.extend,y=n.isObject,p=n.merge,h=n.objectEach,d=n.pad,f=n.pick,b=n.splat,k=n.timeUnits,B=a.isSafari&&Intl.DateTimeFormat.prototype.formatRange,
- t=a.isSafari&&!Intl.DateTimeFormat.prototype.formatRange;n=function(){function H(b){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=u.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(b)}H.prototype.get=function(b,f){if(this.variableTimezone||this.timezoneOffset){var k=f.getTime(),d=k-this.getTimezoneOffset(f);f.setTime(d);b=f["getUTC"+b]();f.setTime(k);return b}return this.useUTC?f["getUTC"+b]():f["get"+b]()};H.prototype.set=function(b,f,k){if(this.variableTimezone||
- this.timezoneOffset){if("Milliseconds"===b||"Seconds"===b||"Minutes"===b&&0===this.getTimezoneOffset(f)%36E5)return f["setUTC"+b](k);var d=this.getTimezoneOffset(f);d=f.getTime()-d;f.setTime(d);f["setUTC"+b](k);b=this.getTimezoneOffset(f);d=f.getTime()+b;return f.setTime(d)}return this.useUTC||B&&"FullYear"===b?f["setUTC"+b](k):f["set"+b](k)};H.prototype.update=function(b){var k=f(b&&b.useUTC,!0);this.options=b=p(!0,this.options||{},b);this.Date=b.Date||u.Date||Date;this.timezoneOffset=(this.useUTC=
- k)&&b.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=k&&!(!b.getTimezoneOffset&&!b.timezone)};H.prototype.makeTime=function(b,k,d,h,r,q){if(this.useUTC){var e=this.Date.UTC.apply(0,arguments);var m=this.getTimezoneOffset(e);e+=m;var c=this.getTimezoneOffset(e);m!==c?e+=c-m:m-36E5!==this.getTimezoneOffset(e-36E5)||t||(e-=36E5)}else e=(new this.Date(b,k,f(d,1),f(h,0),f(r,0),f(q,0))).getTime();return e};H.prototype.timezoneOffsetFunction=function(){var b=this,
- f=this.options,k=f.moment||u.moment;if(!this.useUTC)return function(b){return 6E4*(new Date(b.toString())).getTimezoneOffset()};if(f.timezone){if(k)return function(b){return 6E4*-k.tz(b,f.timezone).utcOffset()};z(25)}return this.useUTC&&f.getTimezoneOffset?function(b){return 6E4*f.getTimezoneOffset(b.valueOf())}:function(){return 6E4*(b.timezoneOffset||0)}};H.prototype.dateFormat=function(b,k,B){if(!D(k)||isNaN(k))return a.defaultOptions.lang&&a.defaultOptions.lang.invalidDate||"";b=f(b,"%Y-%m-%d %H:%M:%S");
- var w=this,r=new this.Date(k),q=this.get("Hours",r),e=this.get("Day",r),m=this.get("Date",r),c=this.get("Month",r),g=this.get("FullYear",r),l=a.defaultOptions.lang,v=l&&l.weekdays,G=l&&l.shortWeekdays;r=A({a:G?G[e]:v[e].substr(0,3),A:v[e],d:d(m),e:d(m,2," "),w:e,b:l.shortMonths[c],B:l.months[c],m:d(c+1),o:c+1,y:g.toString().substr(2,2),Y:g,H:d(q),k:q,I:d(q%12||12),l:q%12||12,M:d(this.get("Minutes",r)),p:12>q?"AM":"PM",P:12>q?"am":"pm",S:d(r.getSeconds()),L:d(Math.floor(k%1E3),3)},a.dateFormats);h(r,
- function(c,e){for(;-1!==b.indexOf("%"+e);)b=b.replace("%"+e,"function"===typeof c?c.call(w,k):c)});return B?b.substr(0,1).toUpperCase()+b.substr(1):b};H.prototype.resolveDTLFormat=function(f){return y(f,!0)?f:(f=b(f),{main:f[0],from:f[1],to:f[2]})};H.prototype.getTimeTicks=function(b,d,h,x){var r=this,q=[],e={},m=new r.Date(d),c=b.unitRange,g=b.count||1,l;x=f(x,1);if(D(d)){r.set("Milliseconds",m,c>=k.second?0:g*Math.floor(r.get("Milliseconds",m)/g));c>=k.second&&r.set("Seconds",m,c>=k.minute?0:g*
- Math.floor(r.get("Seconds",m)/g));c>=k.minute&&r.set("Minutes",m,c>=k.hour?0:g*Math.floor(r.get("Minutes",m)/g));c>=k.hour&&r.set("Hours",m,c>=k.day?0:g*Math.floor(r.get("Hours",m)/g));c>=k.day&&r.set("Date",m,c>=k.month?1:Math.max(1,g*Math.floor(r.get("Date",m)/g)));if(c>=k.month){r.set("Month",m,c>=k.year?0:g*Math.floor(r.get("Month",m)/g));var v=r.get("FullYear",m)}c>=k.year&&r.set("FullYear",m,v-v%g);c===k.week&&(v=r.get("Day",m),r.set("Date",m,r.get("Date",m)-v+x+(v<x?-7:0)));v=r.get("FullYear",
- m);x=r.get("Month",m);var w=r.get("Date",m),B=r.get("Hours",m);d=m.getTime();!r.variableTimezone&&r.useUTC||!D(h)||(l=h-d>4*k.month||r.getTimezoneOffset(d)!==r.getTimezoneOffset(h));d=m.getTime();for(m=1;d<h;)q.push(d),d=c===k.year?r.makeTime(v+m*g,0):c===k.month?r.makeTime(v,x+m*g):!l||c!==k.day&&c!==k.week?l&&c===k.hour&&1<g?r.makeTime(v,x,w,B+m*g):d+c*g:r.makeTime(v,x,w+m*g*(c===k.day?1:7)),m++;q.push(d);c<=k.hour&&1E4>q.length&&q.forEach(function(c){0===c%18E5&&"000000000"===r.dateFormat("%H%M%S%L",
- c)&&(e[c]="day")})}q.info=A(b,{higherRanks:e,totalRange:c*g});return q};return H}();"";return n});J(a,"Core/DefaultOptions.js",[a["Core/Globals.js"],a["Core/Chart/ChartDefaults.js"],a["Core/Color/Color.js"],a["Core/Color/Palette.js"],a["Core/Time.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A){var u=a.isTouchDevice,p=a.svg;C=C.parse;var h=A.merge;"";var d={colors:D.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:n,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:D.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:D.neutralColor40,borderRadius:0,navigation:{activeColor:D.highlightColor100,inactiveColor:D.neutralColor20},itemStyle:{color:D.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},
- itemHoverStyle:{color:D.neutralColor100},itemHiddenStyle:{color:D.neutralColor20},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:D.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:p,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",
- second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:u?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:C(D.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:D.neutralColor80,cursor:"default",fontSize:"12px",
- whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:D.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};d.chart.styledMode=!1;"";var f=new z(h(d.global,d.time));return{defaultOptions:d,defaultTime:f,getOptions:function(){return d},setOptions:function(b){h(!0,d,b);if(b.time||b.global)a.time?a.time.update(h(d.global,d.time,b.global,b.time)):a.time=f;return d}}});J(a,"Core/Animation/Fx.js",
- [a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,C){var u=a.parse,z=n.win,A=C.isNumber,y=C.objectEach;return function(){function a(h,d,f){this.pos=NaN;this.options=d;this.elem=h;this.prop=f}a.prototype.dSetter=function(){var h=this.paths,d=h&&h[0];h=h&&h[1];var f=this.now||0,b=[];if(1!==f&&d&&h)if(d.length===h.length&&1>f)for(var k=0;k<h.length;k++){for(var a=d[k],t=h[k],H=[],K=0;K<t.length;K++){var w=a[K],E=t[K];A(w)&&A(E)&&("A"!==t[0]||4!==K&&5!==K)?H[K]=w+f*(E-
- w):H[K]=E}b.push(H)}else b=h;else b=this.toD||[];this.elem.attr("d",b,void 0,!0)};a.prototype.update=function(){var h=this.elem,d=this.prop,f=this.now,b=this.options.step;if(this[d+"Setter"])this[d+"Setter"]();else h.attr?h.element&&h.attr(d,f,null,!0):h.style[d]=f+this.unit;b&&b.call(h,f,this)};a.prototype.run=function(h,d,f){var b=this,k=b.options,B=function(f){return B.stopped?!1:b.step(f)},t=z.requestAnimationFrame||function(b){setTimeout(b,13)},H=function(){for(var b=0;b<a.timers.length;b++)a.timers[b]()||
- a.timers.splice(b--,1);a.timers.length&&t(H)};h!==d||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=h,this.end=d,this.unit=f,this.now=this.start,this.pos=0,B.elem=this.elem,B.prop=this.prop,B()&&1===a.timers.push(B)&&t(H)):(delete k.curAnim[this.prop],k.complete&&0===Object.keys(k.curAnim).length&&k.complete.call(this.elem))};a.prototype.step=function(h){var d=+new Date,f=this.options,b=this.elem,k=f.complete,a=f.duration,t=f.curAnim;if(b.attr&&!b.element)h=!1;else if(h||
- d>=a+this.startTime){this.now=this.end;this.pos=1;this.update();var H=t[this.prop]=!0;y(t,function(b){!0!==b&&(H=!1)});H&&k&&k.call(b);h=!1}else this.pos=f.easing((d-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),h=!0;return h};a.prototype.initPath=function(h,d,f){function b(b,q){for(;b.length<x;){var e=b[0],m=q[x-b.length];m&&"M"===e[0]&&(b[0]="C"===m[0]?["C",e[1],e[2],e[1],e[2],e[1],e[2]]:["L",e[1],e[2]]);b.unshift(e);H&&(e=b.pop(),b.push(b[b.length-1],e))}}
- function k(b,q){for(;b.length<x;)if(q=b[Math.floor(b.length/K)-1].slice(),"C"===q[0]&&(q[1]=q[5],q[2]=q[6]),H){var e=b[Math.floor(b.length/K)].slice();b.splice(b.length/2,0,q,e)}else b.push(q)}var a=h.startX,t=h.endX;f=f.slice();var H=h.isArea,K=H?2:1;d=d&&d.slice();if(!d)return[f,f];if(a&&t&&t.length){for(h=0;h<a.length;h++)if(a[h]===t[0]){var w=h;break}else if(a[0]===t[t.length-a.length+h]){w=h;var E=!0;break}else if(a[a.length-1]===t[t.length-a.length+h]){w=a.length-h;break}"undefined"===typeof w&&
- (d=[])}if(d.length&&A(w)){var x=f.length+w*K;E?(b(d,f),k(f,d)):(b(f,d),k(d,f))}return[d,f]};a.prototype.fillSetter=function(){a.prototype.strokeSetter.apply(this,arguments)};a.prototype.strokeSetter=function(){this.elem.attr(this.prop,u(this.start).tweenTo(u(this.end),this.pos),null,!0)};a.timers=[];return a}()});J(a,"Core/Animation/AnimationUtilities.js",[a["Core/Animation/Fx.js"],a["Core/Utilities.js"]],function(a,n){function u(b){return h(b)?d({duration:500,defer:0},b):{duration:b?500:0,defer:0}}
- function D(b,f){for(var d=a.timers.length;d--;)a.timers[d].elem!==b||f&&f!==a.timers[d].prop||(a.timers[d].stopped=!0)}var z=n.defined,A=n.getStyle,y=n.isArray,p=n.isNumber,h=n.isObject,d=n.merge,f=n.objectEach,b=n.pick;return{animate:function(b,B,t){var k,K="",w,E;if(!h(t)){var x=arguments;t={duration:x[2],easing:x[3],complete:x[4]}}p(t.duration)||(t.duration=400);t.easing="function"===typeof t.easing?t.easing:Math[t.easing]||Math.easeInOutSine;t.curAnim=d(B);f(B,function(f,q){D(b,q);E=new a(b,t,
- q);w=void 0;"d"===q&&y(B.d)?(E.paths=E.initPath(b,b.pathArray,B.d),E.toD=B.d,k=0,w=1):b.attr?k=b.attr(q):(k=parseFloat(A(b,q))||0,"opacity"!==q&&(K="px"));w||(w=f);"string"===typeof w&&w.match("px")&&(w=w.replace(/px/g,""));E.run(k,w,K)})},animObject:u,getDeferredAnimation:function(b,f,d){var k=u(f),a=0,h=0;(d?[d]:b.series).forEach(function(b){b=u(b.options.animation);a=f&&z(f.defer)?k.defer:Math.max(a,b.duration+b.defer);h=Math.min(k.duration,b.duration)});b.renderer.forExport&&(a=0);return{defer:Math.max(0,
- a-h),duration:Math.min(a,h)}},setAnimation:function(f,d){d.renderer.globalAnimation=b(f,d.options.chart.animation,!0)},stop:D}});J(a,"Core/Renderer/HTML/AST.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n){var u=a.SVG_NS,D=n.attr,z=n.createElement,A=n.discardElement,y=n.error,p=n.isString,h=n.objectEach,d=n.splat;try{var f=!!(new DOMParser).parseFromString("","text/html")}catch(b){f=!1}n=function(){function b(b){this.nodes="string"===typeof b?this.parseMarkup(b):b}b.filterUserAttributes=
- function(f){h(f,function(d,k){var a=!0;-1===b.allowedAttributes.indexOf(k)&&(a=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(k)&&(a=p(d)&&b.allowedReferences.some(function(b){return 0===d.indexOf(b)}));a||(y("Highcharts warning: Invalid attribute '"+k+"' in config"),delete f[k])});return f};b.setElementHTML=function(f,d){f.innerHTML="";d&&(new b(d)).addToDOM(f)};b.prototype.addToDOM=function(f){function k(f,B){var t;d(f).forEach(function(f){var d=f.tagName,w=f.textContent?a.doc.createTextNode(f.textContent):
- void 0;if(d)if("#text"===d)var r=w;else if(-1!==b.allowedTags.indexOf(d)){d=a.doc.createElementNS("svg"===d?u:B.namespaceURI||u,d);var q=f.attributes||{};h(f,function(e,b){"tagName"!==b&&"attributes"!==b&&"children"!==b&&"textContent"!==b&&(q[b]=e)});D(d,b.filterUserAttributes(q));w&&d.appendChild(w);k(f.children||[],d);r=d}else y("Highcharts warning: Invalid tagName '"+d+"' in config");r&&B.appendChild(r);t=r});return t}return k(this.nodes,f)};b.prototype.parseMarkup=function(b){var d=[];if(f)b=
- (new DOMParser).parseFromString(b,"text/html");else{var k=z("div");k.innerHTML=b;b={body:k}}var a=function(b,f){var d=b.nodeName.toLowerCase(),k={tagName:d};if("#text"===d){d=b.textContent||"";if(/^[\s]*$/.test(d))return;k.textContent=d}if(d=b.attributes){var r={};[].forEach.call(d,function(e){r[e.name]=e.value});k.attributes=r}if(b.childNodes.length){var q=[];[].forEach.call(b.childNodes,function(e){a(e,q)});q.length&&(k.children=q)}f.push(k)};[].forEach.call(b.body.childNodes,function(b){return a(b,
- d)});k&&A(k);return d};b.allowedTags="a 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 thead tbody tspan td th tr u ul #text".split(" ");b.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 textAnchor textLength type valign width x x1 x2 y y1 y2 zIndex".split(" ");
- b.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");return b}();"";return n});J(a,"Core/FormatUtilities.js",[a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,n){function u(d,f,b,k){d=+d||0;f=+f;var a=D.lang,t=(d.toString().split(".")[1]||"").split("e")[0].length,H=d.toString().split("e"),K=f;if(-1===f)f=Math.min(t,20);else if(!y(f))f=2;else if(f&&H[1]&&0>H[1]){var w=f+ +H[1];0<=w?(H[0]=(+H[0]).toExponential(w).split("e")[0],f=w):(H[0]=H[0].split(".")[0]||0,d=20>f?(H[0]*
- Math.pow(10,H[1])).toFixed(f):0,H[1]=0)}w=(Math.abs(H[1]?H[0]:d)+Math.pow(10,-Math.max(f,t)-1)).toFixed(f);t=String(h(w));var E=3<t.length?t.length%3:0;b=p(b,a.decimalPoint);k=p(k,a.thousandsSep);d=(0>d?"-":"")+(E?t.substr(0,E)+k:"");d=0>+H[1]&&!K?"0":d+t.substr(E).replace(/(\d{3})(?=\d)/g,"$1"+k);f&&(d+=b+w.slice(-f));H[1]&&0!==+d&&(d+="e"+H[1]);return d}var D=a.defaultOptions,z=a.defaultTime,A=n.getNestedProperty,y=n.isNumber,p=n.pick,h=n.pInt;return{dateFormat:function(d,f,b){return z.dateFormat(d,
- f,b)},format:function(d,f,b){var k="{",a=!1,h=/f$/,p=/\.([0-9])/,K=D.lang,w=b&&b.time||z;b=b&&b.numberFormatter||u;for(var E=[];d;){var x=d.indexOf(k);if(-1===x)break;var r=d.slice(0,x);if(a){r=r.split(":");k=A(r.shift()||"",f);if(r.length&&"number"===typeof k)if(r=r.join(":"),h.test(r)){var q=parseInt((r.match(p)||["","-1"])[1],10);null!==k&&(k=b(k,q,K.decimalPoint,-1<r.indexOf(",")?K.thousandsSep:""))}else k=w.dateFormat(r,k);E.push(k)}else E.push(r);d=d.slice(x+1);k=(a=!a)?"}":"{"}E.push(d);return E.join("")},
- numberFormat:u}});J(a,"Core/Renderer/SVG/SVGElement.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Renderer/HTML/AST.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A){var u=a.animate,p=a.animObject,h=a.stop,d=D.deg2rad,f=D.doc,b=D.noop,k=D.svg,B=D.SVG_NS,t=D.win,H=A.addEvent,K=A.attr,w=A.createElement,E=A.css,x=A.defined,r=A.erase,q=A.extend,e=A.fireEvent,m=A.isArray,c=A.isFunction,g=A.isNumber,l=A.isString,v=A.merge,
- G=A.objectEach,L=A.pick,F=A.pInt,N=A.syncTimeout,O=A.uniqueKey;a=function(){function a(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=B;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}a.prototype._defaultGetter=function(c){c=L(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&(c=parseFloat(c));return c};a.prototype._defaultSetter=function(c,e,g){g.setAttribute(e,
- c)};a.prototype.add=function(c){var e=this.renderer,g=this.element;c&&(this.parentGroup=c);this.parentInverted=c&&c.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&e.buildText(this);this.added=!0;if(!c||c.handleZ||this.zIndex)var l=this.zIndexSetter();l||(c?c.element:e.box).appendChild(g);if(this.onAdd)this.onAdd();return this};a.prototype.addClass=function(c,e){var g=e?"":this.attr("class")||"";c=(c||"").split(/ /g).reduce(function(c,e){-1===g.indexOf(e)&&c.push(e);return c},
- g?[g]:[]).join(" ");c!==g&&this.attr("class",c);return this};a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};a.prototype.align=function(c,e,g){var b={},m=this.renderer,I=m.alignedObjects,v,f,q;if(c){if(this.alignOptions=c,this.alignByTranslate=e,!g||l(g))this.alignTo=v=g||"renderer",r(I,this),I.push(this),g=void 0}else c=this.alignOptions,e=this.alignByTranslate,v=this.alignTo;g=L(g,m[v],"scrollablePlotBox"===v?m.plotBox:void 0,m);v=c.align;var d=
- c.verticalAlign;m=(g.x||0)+(c.x||0);I=(g.y||0)+(c.y||0);"right"===v?f=1:"center"===v&&(f=2);f&&(m+=(g.width-(c.width||0))/f);b[e?"translateX":"x"]=Math.round(m);"bottom"===d?q=1:"middle"===d&&(q=2);q&&(I+=(g.height-(c.height||0))/q);b[e?"translateY":"y"]=Math.round(I);this[this.placed?"animate":"attr"](b);this.placed=!0;this.alignAttr=b;return this};a.prototype.alignSetter=function(c){var e={left:"start",center:"middle",right:"end"};e[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",
- e[c]))};a.prototype.animate=function(c,e,g){var l=this,b=p(L(e,this.renderer.globalAnimation,!0));e=b.defer;L(f.hidden,f.msHidden,f.webkitHidden,!1)&&(b.duration=0);0!==b.duration?(g&&(b.complete=g),N(function(){l.element&&u(l,c,b)},e)):(this.attr(c,void 0,g),G(c,function(c,e){b.step&&b.step.call(this,c,{prop:e,pos:1,elem:this})},this));return this};a.prototype.applyTextOutline=function(c){var e=this.element;-1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));
- var g=c.split(" ");c=g[g.length-1];if((g=g[0])&&"none"!==g&&D.svg){this.fakeTS=!0;this.ySetter=this.xSetter;g=g.replace(/(^[\d\.]+)(.*?)$/g,function(c,e,g){return 2*Number(e)+g});this.removeTextOutline();var l=f.createElementNS(B,"tspan");K(l,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":g,"stroke-linejoin":"round"});[].forEach.call(e.childNodes,function(c){var e=c.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(c){return e.removeAttribute(c)});
- l.appendChild(e)});var b=f.createElementNS(B,"tspan");b.textContent="\u200b";["x","y"].forEach(function(c){var g=e.getAttribute(c);g&&b.setAttribute(c,g)});l.appendChild(b);e.insertBefore(l,e.firstChild)}};a.prototype.attr=function(c,e,g,l){var b=this.element,m=this.symbolCustomAttribs,I,v=this,f,q;if("string"===typeof c&&"undefined"!==typeof e){var P=c;c={};c[P]=e}"string"===typeof c?v=(this[c+"Getter"]||this._defaultGetter).call(this,c,b):(G(c,function(e,g){f=!1;l||h(this,g);this.symbolName&&-1!==
- m.indexOf(g)&&(I||(this.symbolAttr(c),I=!0),f=!0);!this.rotation||"x"!==g&&"y"!==g||(this.doTransform=!0);f||(q=this[g+"Setter"]||this._defaultSetter,q.call(this,e,g,b),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(g)&&this.updateShadows(g,e,q))},this),this.afterSetters());g&&g.call(this);return v};a.prototype.clip=function(c){return this.attr("clip-path",c?"url("+this.renderer.url+"#"+c.id+")":"none")};a.prototype.crisp=function(c,e){e=e||c.strokeWidth||
- 0;var g=Math.round(e)%2/2;c.x=Math.floor(c.x||this.x||0)+g;c.y=Math.floor(c.y||this.y||0)+g;c.width=Math.floor((c.width||this.width||0)-2*g);c.height=Math.floor((c.height||this.height||0)-2*g);x(c.strokeWidth)&&(c.strokeWidth=e);return c};a.prototype.complexColor=function(c,g,l){var b=this.renderer,I,f,q,d,a,k,r,h,w,F,L=[],B;e(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?f="radialGradient":c.linearGradient&&(f="linearGradient");if(f){q=c[f];a=b.gradients;k=c.stops;w=l.radialReference;
- m(q)&&(c[f]=q={x1:q[0],y1:q[1],x2:q[2],y2:q[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===f&&w&&!x(q.gradientUnits)&&(d=q,q=v(q,b.getRadialAttr(w,d),{gradientUnits:"userSpaceOnUse"}));G(q,function(c,e){"id"!==e&&L.push(e,c)});G(k,function(c){L.push(c)});L=L.join(",");if(a[L])F=a[L].attr("id");else{q.id=F=O();var e=a[L]=b.createElement(f).attr(q).add(b.defs);e.radAttr=d;e.stops=[];k.forEach(function(c){0===c[1].indexOf("rgba")?(I=C.parse(c[1]),r=I.get("rgb"),h=I.get("a")):(r=c[1],h=1);c=b.createElement("stop").attr({offset:c[0],
- "stop-color":r,"stop-opacity":h}).add(e);e.stops.push(c)})}B="url("+b.url+"#"+F+")";l.setAttribute(g,B);l.gradient=L;c.toString=function(){return B}}})};a.prototype.css=function(c){var e=this.styles,g={},l=this.element,b=["textOutline","textOverflow","width"],m="",v=!e;c&&c.color&&(c.fill=c.color);e&&G(c,function(c,l){e&&e[l]!==c&&(g[l]=c,v=!0)});if(v){e&&(c=q(e,g));if(c)if(null===c.width||"auto"===c.width)delete this.textWidth;else if("text"===l.nodeName.toLowerCase()&&c.width)var f=this.textWidth=
- F(c.width);this.styles=c;f&&!k&&this.renderer.forExport&&delete c.width;if(l.namespaceURI===this.SVG_NS){var d=function(c,e){return"-"+e.toLowerCase()};G(c,function(c,e){-1===b.indexOf(e)&&(m+=e.replace(/([A-Z])/g,d)+":"+c+";")});m&&K(l,"style",m)}else E(l,c);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c&&c.textOutline&&this.applyTextOutline(c.textOutline))}return this};a.prototype.dashstyleSetter=function(c){var e=this["stroke-width"];"inherit"===e&&(e=1);if(c=c&&c.toLowerCase()){var g=
- c.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(c=g.length;c--;)g[c]=""+F(g[c])*L(e,NaN);c=g.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};a.prototype.destroy=function(){var c=this,e=c.element||{},g=c.renderer,l=e.ownerSVGElement,b=g.isSVG&&"SPAN"===e.nodeName&&c.parentGroup||
- void 0;e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null;h(c);if(c.clipPath&&l){var m=c.clipPath;[].forEach.call(l.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(m.element.id)&&c.removeAttribute("clip-path")});c.clipPath=m.destroy()}if(c.stops){for(l=0;l<c.stops.length;l++)c.stops[l].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(e);for(g.styledMode||c.destroyShadows();b&&b.div&&0===b.div.childNodes.length;)e=b.parentGroup,
- c.safeRemoveChild(b.div),delete b.div,b=e;c.alignTo&&r(g.alignedObjects,c);G(c,function(e,g){c[g]&&c[g].parentGroup===c&&c[g].destroy&&c[g].destroy();delete c[g]})};a.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};a.prototype.destroyTextPath=function(c,e){var g=c.getElementsByTagName("text")[0];if(g){if(g.removeAttribute("dx"),g.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&g.getElementsByTagName("textPath").length){for(c=
- this.textPathWrapper.element.childNodes;c.length;)g.appendChild(c[0]);g.removeChild(this.textPathWrapper.element)}}else if(c.getAttribute("dx")||c.getAttribute("dy"))c.removeAttribute("dx"),c.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};a.prototype.dSetter=function(c,e,g){m(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),this.pathArray=c,c=c.reduce(function(c,e,g){return e&&e.join?(g?c+" ":"")+e.join(" "):(e||"").toString()},""));
- /(NaN| {2}|^$)/.test(c)&&(c="M 0 0");this[e]!==c&&(g.setAttribute(e,c),this[e]=c)};a.prototype.fadeOut=function(c){var e=this;e.animate({opacity:0},{duration:L(c,150),complete:function(){e.attr({y:-9999}).hide()}})};a.prototype.fillSetter=function(c,e,g){"string"===typeof c?g.setAttribute(e,c):c&&this.complexColor(c,e,g)};a.prototype.getBBox=function(e,g){var l=this.renderer,b=this.element,m=this.styles,v=this.textStr,f=l.cache,M=l.cacheKeys,k=b.namespaceURI===this.SVG_NS;g=L(g,this.rotation,0);var r=
- l.styledMode?b&&a.prototype.getStyle.call(b,"font-size"):m&&m.fontSize,h;if(x(v)){var w=v.toString();-1===w.indexOf("<")&&(w=w.replace(/[0-9]/g,"0"));w+=["",g,r,this.textWidth,m&&m.textOverflow,m&&m.fontWeight].join()}w&&!e&&(h=f[w]);if(!h){if(k||l.forExport){try{var G=this.fakeTS&&function(c){var e=b.querySelector(".highcharts-text-outline");e&&E(e,{display:c})};c(G)&&G("none");h=b.getBBox?q({},b.getBBox()):{width:b.offsetWidth,height:b.offsetHeight};c(G)&&G("")}catch(W){""}if(!h||0>h.width)h={width:0,
- height:0}}else h=this.htmlGetBBox();l.isSVG&&(e=h.width,l=h.height,k&&(h.height=l={"11px,17":14,"13px,20":16}[m&&m.fontSize+","+Math.round(l)]||l),g&&(m=g*d,h.width=Math.abs(l*Math.sin(m))+Math.abs(e*Math.cos(m)),h.height=Math.abs(l*Math.cos(m))+Math.abs(e*Math.sin(m))));if(w&&0<h.height){for(;250<M.length;)delete f[M.shift()];f[w]||M.push(w);f[w]=h}}return h};a.prototype.getStyle=function(c){return t.getComputedStyle(this.element||this,"").getPropertyValue(c)};a.prototype.hasClass=function(c){return-1!==
- (""+this.attr("class")).split(" ").indexOf(c)};a.prototype.hide=function(c){c?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};a.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};a.prototype.init=function(c,g){this.element="span"===g?w(g):f.createElementNS(this.SVG_NS,g);this.renderer=c;e(this,"afterInit")};a.prototype.invert=function(c){this.inverted=c;this.updateTransform();return this};a.prototype.on=function(c,e){var g=this.onEvents;if(g[c])g[c]();g[c]=H(this.element,
- c,e);return this};a.prototype.opacitySetter=function(c,e,g){this.opacity=c=Number(Number(c).toFixed(3));g.setAttribute(e,c)};a.prototype.removeClass=function(c){return this.attr("class",(""+this.attr("class")).replace(l(c)?new RegExp("(^| )"+c+"( |$)"):c," ").replace(/ +/g," ").trim())};a.prototype.removeTextOutline=function(){var c=this.element.querySelector("tspan.highcharts-text-outline");c&&this.safeRemoveChild(c)};a.prototype.safeRemoveChild=function(c){var e=c.parentNode;e&&e.removeChild(c)};
- a.prototype.setRadialReference=function(c){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=c;e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(c,e.radAttr));return this};a.prototype.setTextPath=function(c,e){var l=this.element,m=this.text?this.text.element:l,f={textAnchor:"text-anchor"},q=!1,d=this.textPathWrapper,a=!d;e=v(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);var k=n.filterUserAttributes(e.attributes);
- if(c&&e&&e.enabled){d&&null===d.element.parentNode?(a=!0,d=d.destroy()):d&&this.removeTextOutline.call(d.parentGroup);this.options&&this.options.padding&&(k.dx=-this.options.padding);d||(this.textPathWrapper=d=this.renderer.createElement("textPath"),q=!0);var r=d.element;(e=c.element.getAttribute("id"))||c.element.setAttribute("id",e=O());if(a)for(m.setAttribute("y",0),g(k.dx)&&m.setAttribute("x",-k.dx),c=[].slice.call(m.childNodes),a=0;a<c.length;a++){var h=c[a];h.nodeType!==Node.TEXT_NODE&&"tspan"!==
- h.nodeName||r.appendChild(h)}q&&d&&d.add({element:m});r.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+e);x(k.dy)&&(r.parentNode.setAttribute("dy",k.dy),delete k.dy);x(k.dx)&&(r.parentNode.setAttribute("dx",k.dx),delete k.dx);G(k,function(c,e){r.setAttribute(f[e]||e,c)});l.removeAttribute("transform");this.removeTextOutline.call(d);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=b}else d&&(delete this.updateTransform,
- delete this.applyTextOutline,this.destroyTextPath(l,c),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};a.prototype.shadow=function(c,e,g){var l=[],b=this.element,m=this.oldShadowOptions,v={color:z.neutralColor100,offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},f=!1,I;!0===c?I=v:"object"===typeof c&&(I=q(v,c));I&&(I&&m&&G(I,function(c,e){c!==m[e]&&(f=!0)}),f&&this.destroyShadows(),
- this.oldShadowOptions=I);if(!I)this.destroyShadows();else if(!this.shadows){var d=I.opacity/I.width;var a=this.parentInverted?"translate("+I.offsetY+", "+I.offsetX+")":"translate("+I.offsetX+", "+I.offsetY+")";for(v=1;v<=I.width;v++){var k=b.cloneNode(!1);var r=2*I.width+1-2*v;K(k,{stroke:c.color||z.neutralColor100,"stroke-opacity":d*v,"stroke-width":r,transform:a,fill:"none"});k.setAttribute("class",(k.getAttribute("class")||"")+" highcharts-shadow");g&&(K(k,"height",Math.max(K(k,"height")-r,0)),
- k.cutHeight=r);e?e.element.appendChild(k):b.parentNode&&b.parentNode.insertBefore(k,b);l.push(k)}this.shadows=l}return this};a.prototype.show=function(c){return this.attr({visibility:c?"inherit":"visible"})};a.prototype.strokeSetter=function(c,e,g){this[e]=c;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"===e&&0===c&&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 c=this.getStyle("stroke-width"),e=0;if(c.indexOf("px")===c.length-2)e=F(c);else if(""!==c){var g=f.createElementNS(B,"rect");K(g,{width:c,"stroke-width":0});this.element.parentNode.appendChild(g);e=g.getBBox().width;g.parentNode.removeChild(g)}return e};a.prototype.symbolAttr=
- function(c){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g){e[g]=L(c[g],e[g])});e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})};a.prototype.textSetter=function(c){c!==this.textStr&&(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this))};a.prototype.titleSetter=function(c){var e=this.element,g=e.getElementsByTagName("title")[0]||f.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(g,
- e.firstChild):e.appendChild(g);g.textContent=String(L(c,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")};a.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};a.prototype.translate=function(c,e){return this.attr({translateX:c,translateY:e})};a.prototype.updateShadows=function(c,e,g){var l=this.shadows;if(l)for(var b=l.length;b--;)g.call(l[b],"height"===c?Math.max(e-(l[b].cutHeight||0),0):"d"===c?this.d:e,c,l[b])};a.prototype.updateTransform=
- function(){var c=this.scaleX,e=this.scaleY,g=this.inverted,l=this.rotation,b=this.matrix,m=this.element,v=this.translateX||0,f=this.translateY||0;g&&(v+=this.width,f+=this.height);v=["translate("+v+","+f+")"];x(b)&&v.push("matrix("+b.join(",")+")");g?v.push("rotate(90) scale(-1,1)"):l&&v.push("rotate("+l+" "+L(this.rotationOriginX,m.getAttribute("x"),0)+" "+L(this.rotationOriginY,m.getAttribute("y")||0)+")");(x(c)||x(e))&&v.push("scale("+L(c,1)+" "+L(e,1)+")");v.length&&m.setAttribute("transform",
- v.join(" "))};a.prototype.visibilitySetter=function(c,e,g){"inherit"===c?g.removeAttribute(e):this[e]!==c&&g.setAttribute(e,c);this[e]=c};a.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};a.prototype.zIndexSetter=function(c,e){var g=this.renderer,l=this.parentGroup,b=(l||g).element||g.box,m=this.element;g=b===g.box;var v=!1;var f=this.added;var q;x(c)?(m.setAttribute("data-z-index",c),c=+c,this[e]===c&&(f=!1)):x(this[e])&&
- m.removeAttribute("data-z-index");this[e]=c;if(f){(c=this.zIndex)&&l&&(l.handleZ=!0);e=b.childNodes;for(q=e.length-1;0<=q&&!v;q--){l=e[q];f=l.getAttribute("data-z-index");var d=!x(f);if(l!==m)if(0>c&&d&&!g&&!q)b.insertBefore(m,e[q]),v=!0;else if(F(f)<=c||d&&(!x(c)||0<=c))b.insertBefore(m,e[q+1]||null),v=!0}v||(b.insertBefore(m,e[g?3:0]||null),v=!0)}return v};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(c,e){this[e]=c;this.doTransform=!0};"";return a});J(a,"Core/Renderer/RendererRegistry.js",[a["Core/Globals.js"]],function(a){var u;(function(u){var n;u.rendererTypes={};u.getRendererType=function(a){void 0===a&&(a=n);return u.rendererTypes[a]||u.rendererTypes[n]};u.registerRendererType=function(z,
- A,y){u.rendererTypes[z]=A;if(!n||y)n=z,a.Renderer=A}})(u||(u={}));return u});J(a,"Core/Renderer/SVG/SVGLabel.js",[a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,n){var u=this&&this.__extends||function(){var d=function(f,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var d in f)f.hasOwnProperty(d)&&(b[d]=f[d])};return d(f,b)};return function(f,b){function a(){this.constructor=f}d(f,b);f.prototype=null===b?Object.create(b):
- (a.prototype=b.prototype,new a)}}(),D=n.defined,z=n.extend,A=n.isNumber,y=n.merge,p=n.pick,h=n.removeEvent;return function(d){function f(b,a,h,t,p,K,w,E,x,r){var q=d.call(this)||this;q.paddingLeftSetter=q.paddingSetter;q.paddingRightSetter=q.paddingSetter;q.init(b,"g");q.textStr=a;q.x=h;q.y=t;q.anchorX=K;q.anchorY=w;q.baseline=x;q.className=r;q.addClass("button"===r?"highcharts-no-tooltip":"highcharts-label");r&&q.addClass("highcharts-"+r);q.text=b.text("",0,0,E).attr({zIndex:1});var e;"string"===
- typeof p&&((e=/^url\((.*?)\)$/.test(p))||q.renderer.symbols[p])&&(q.symbolKey=p);q.bBox=f.emptyBBox;q.padding=3;q.baselineOffset=0;q.needsBox=b.styledMode||e;q.deferredAttr={};q.alignFactor=0;return q}u(f,d);f.prototype.alignSetter=function(b){b={left:0,center:.5,right:1}[b];b!==this.alignFactor&&(this.alignFactor=b,this.bBox&&A(this.xSetting)&&this.attr({x:this.xSetting}))};f.prototype.anchorXSetter=function(b,f){this.anchorX=b;this.boxAttr(f,Math.round(b)-this.getCrispAdjust()-this.xSetting)};f.prototype.anchorYSetter=
- function(b,f){this.anchorY=b;this.boxAttr(f,b-this.ySetting)};f.prototype.boxAttr=function(b,f){this.box?this.box.attr(b,f):this.deferredAttr[b]=f};f.prototype.css=function(b){if(b){var d={};b=y(b);f.textProps.forEach(function(f){"undefined"!==typeof b[f]&&(d[f]=b[f],delete b[f])});this.text.css(d);var h="width"in d;"fontSize"in d||"fontWeight"in d?this.updateTextPadding():h&&this.updateBoxSize()}return a.prototype.css.call(this,b)};f.prototype.destroy=function(){h(this.element,"mouseenter");h(this.element,
- "mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};f.prototype.fillSetter=function(b,f){b&&(this.needsBox=!0);this.fill=b;this.boxAttr(f,b)};f.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var b=this.padding,f=p(this.paddingLeft,b);return{width:this.width,height:this.height,x:this.bBox.x-f,y:this.bBox.y-b}};f.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};f.prototype.heightSetter=function(b){this.heightSetting=b};f.prototype.on=function(b,f){var d=this,k=d.text,h=k&&"SPAN"===k.element.tagName?k:void 0;if(h){var p=function(a){("mouseenter"===b||"mouseleave"===b)&&a.relatedTarget instanceof Element&&(d.element.compareDocumentPosition(a.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY||h.element.compareDocumentPosition(a.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||
- f.call(d.element,a)};h.on(b,p)}a.prototype.on.call(d,b,p||f);return d};f.prototype.onAdd=function(){var b=this.textStr;this.text.add(this);this.attr({text:D(b)?b:"",x:this.x,y:this.y});this.box&&D(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};f.prototype.paddingSetter=function(b,f){A(b)?b!==this[f]&&(this[f]=b,this.updateTextPadding()):this[f]=void 0};f.prototype.rSetter=function(b,f){this.boxAttr(f,b)};f.prototype.shadow=function(b){b&&!this.renderer.styledMode&&(this.updateBoxSize(),
- this.box&&this.box.shadow(b));return this};f.prototype.strokeSetter=function(b,f){this.stroke=b;this.boxAttr(f,b)};f.prototype["stroke-widthSetter"]=function(b,f){b&&(this.needsBox=!0);this["stroke-width"]=b;this.boxAttr(f,b)};f.prototype["text-alignSetter"]=function(b){this.textAlign=b};f.prototype.textSetter=function(b){"undefined"!==typeof b&&this.text.attr({text:b});this.updateTextPadding()};f.prototype.updateBoxSize=function(){var b=this.text.element.style,d={},a=this.padding,h=this.bBox=A(this.widthSetting)&&
- A(this.heightSetting)&&!this.textAlign||!D(this.text.textStr)?f.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||h.height||0)+2*a;b=this.renderer.fontMetrics(b&&b.fontSize,this.text);this.baselineOffset=a+Math.min((this.text.firstLineMetrics||b).b,h.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-b.h)/2);this.needsBox&&(this.box||(a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),a.addClass(("button"===
- this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)),a=this.getCrispAdjust(),d.x=a,d.y=(this.baseline?-this.baselineOffset:0)+a,d.width=Math.round(this.width),d.height=Math.round(this.height),this.box.attr(z(d,this.deferredAttr)),this.deferredAttr={})};f.prototype.updateTextPadding=function(){var b=this.text;this.updateBoxSize();var f=this.baseline?0:this.baselineOffset,d=p(this.paddingLeft,this.padding);D(this.widthSetting)&&this.bBox&&
- ("center"===this.textAlign||"right"===this.textAlign)&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(d!==b.x||f!==b.y)b.attr("x",d),b.hasBoxWidthChanged&&(this.bBox=b.getBBox(!0)),"undefined"!==typeof f&&b.attr("y",f);b.x=d;b.y=f};f.prototype.widthSetter=function(b){this.widthSetting=A(b)?b:void 0};f.prototype.getPaddedWidth=function(){var b=this.padding,f=p(this.paddingLeft,b);b=p(this.paddingRight,b);return(this.widthSetting||this.bBox.width||0)+f+b};f.prototype.xSetter=
- function(b){this.x=b;this.alignFactor&&(b-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(b);this.attr("translateX",this.xSetting)};f.prototype.ySetter=function(b){this.ySetting=this.y=Math.round(b);this.attr("translateY",this.ySetting)};f.emptyBBox={width:0,height:0,x:0,y:0};f.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return f}(a)});J(a,"Core/Renderer/SVG/Symbols.js",
- [a["Core/Utilities.js"]],function(a){function u(a,h,d,f,b){var k=[];if(b){var p=b.start||0,t=y(b.r,d);d=y(b.r,f||d);var H=(b.end||0)-.001;f=b.innerR;var K=y(b.open,.001>Math.abs((b.end||0)-p-2*Math.PI)),w=Math.cos(p),E=Math.sin(p),x=Math.cos(H),r=Math.sin(H);p=y(b.longArc,.001>H-p-Math.PI?0:1);k.push(["M",a+t*w,h+d*E],["A",t,d,0,p,y(b.clockwise,1),a+t*x,h+d*r]);z(f)&&k.push(K?["M",a+f*x,h+f*r]:["L",a+f*x,h+f*r],["A",f,f,0,p,z(b.clockwise)?1-b.clockwise:0,a+f*w,h+f*E]);K||k.push(["Z"])}return k}function C(a,
- h,d,f,b){return b&&b.r?D(a,h,d,f,b):[["M",a,h],["L",a+d,h],["L",a+d,h+f],["L",a,h+f],["Z"]]}function D(a,h,d,f,b){b=b&&b.r||0;return[["M",a+b,h],["L",a+d-b,h],["C",a+d,h,a+d,h,a+d,h+b],["L",a+d,h+f-b],["C",a+d,h+f,a+d,h+f,a+d-b,h+f],["L",a+b,h+f],["C",a,h+f,a,h+f,a,h+f-b],["L",a,h+b],["C",a,h,a,h,a+b,h]]}var z=a.defined,A=a.isNumber,y=a.pick;return{arc:u,callout:function(a,h,d,f,b){var k=Math.min(b&&b.r||0,d,f),B=k+6,t=b&&b.anchorX;b=b&&b.anchorY||0;var H=D(a,h,d,f,{r:k});if(!A(t))return H;a+t>=d?
- b>h+B&&b<h+f-B?H.splice(3,1,["L",a+d,b-6],["L",a+d+6,b],["L",a+d,b+6],["L",a+d,h+f-k]):H.splice(3,1,["L",a+d,f/2],["L",t,b],["L",a+d,f/2],["L",a+d,h+f-k]):0>=a+t?b>h+B&&b<h+f-B?H.splice(7,1,["L",a,b+6],["L",a-6,b],["L",a,b-6],["L",a,h+k]):H.splice(7,1,["L",a,f/2],["L",t,b],["L",a,f/2],["L",a,h+k]):b&&b>f&&t>a+B&&t<a+d-B?H.splice(5,1,["L",t+6,h+f],["L",t,h+f+6],["L",t-6,h+f],["L",a+k,h+f]):b&&0>b&&t>a+B&&t<a+d-B&&H.splice(1,1,["L",t-6,h],["L",t,h-6],["L",t+6,h],["L",d-k,h]);return H},circle:function(a,
- h,d,f){return u(a+d/2,h+f/2,d/2,f/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(a,h,d,f){return[["M",a+d/2,h],["L",a+d,h+f/2],["L",a+d/2,h+f],["L",a,h+f/2],["Z"]]},rect:C,roundedRect:D,square:C,triangle:function(a,h,d,f){return[["M",a+d/2,h],["L",a+d,h+f],["L",a,h+f],["Z"]]},"triangle-down":function(a,h,d,f){return[["M",a,h],["L",a+d,h],["L",a+d/2,h+f],["Z"]]}}});J(a,"Core/Renderer/SVG/TextBuilder.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,
- n,C){var u=n.doc,z=n.SVG_NS,A=C.attr,y=C.isString,p=C.objectEach,h=C.pick;return function(){function d(a){var b=a.styles;this.renderer=a.renderer;this.svgElement=a;this.width=a.textWidth;this.textLineHeight=b&&b.lineHeight;this.textOutline=b&&b.textOutline;this.ellipsis=!(!b||"ellipsis"!==b.textOverflow);this.noWrap=!(!b||"nowrap"!==b.whiteSpace);this.fontSize=b&&b.fontSize}d.prototype.buildSVG=function(){var f=this.svgElement,b=f.element,d=f.renderer,B=h(f.textStr,"").toString(),t=-1!==B.indexOf("<"),
- H=b.childNodes,K=H.length;d=this.width&&!f.added&&d.box;var w=/<br.*?>/g;var E=[B,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(E!==f.textCache){f.textCache=E;for(delete f.actualWidth;K--;)b.removeChild(H[K]);t||this.ellipsis||this.width||-1!==B.indexOf(" ")&&(!this.noWrap||w.test(B))?""!==B&&(d&&d.appendChild(b),B=new a(B),this.modifyTree(B.nodes),B.addToDOM(f.element),this.modifyDOM(),this.ellipsis&&-1!==(b.textContent||"").indexOf("\u2026")&&
- f.attr("title",this.unescapeEntities(f.textStr||"",["<",">"])),d&&d.removeChild(b)):b.appendChild(u.createTextNode(this.unescapeEntities(B)));y(this.textOutline)&&f.applyTextOutline&&f.applyTextOutline(this.textOutline)}};d.prototype.modifyDOM=function(){var a=this,b=this.svgElement,d=A(b.element,"x");b.firstLineMetrics=void 0;[].forEach.call(b.element.querySelectorAll("tspan.highcharts-br"),function(f,h){f.nextSibling&&f.previousSibling&&(0===h&&1===f.previousSibling.nodeType&&(b.firstLineMetrics=
- b.renderer.fontMetrics(void 0,f.previousSibling)),A(f,{dy:a.getLineHeight(f.nextSibling),x:d}))});var h=this.width||0;if(h){var t=function(f,k){var w=f.textContent||"",x=w.replace(/([^\^])-/g,"$1- ").split(" "),r=!a.noWrap&&(1<x.length||1<b.element.childNodes.length),q=a.getLineHeight(k),e=0,m=b.actualWidth;if(a.ellipsis)w&&a.truncate(f,w,void 0,0,Math.max(0,h-parseInt(a.fontSize||12,10)),function(c,e){return c.substring(0,e)+"\u2026"});else if(r){w=[];for(r=[];k.firstChild&&k.firstChild!==f;)r.push(k.firstChild),
- k.removeChild(k.firstChild);for(;x.length;)x.length&&!a.noWrap&&0<e&&(w.push(f.textContent||""),f.textContent=x.join(" ").replace(/- /g,"-")),a.truncate(f,void 0,x,0===e?m||0:0,h,function(c,e){return x.slice(0,e).join(" ").replace(/- /g,"-")}),m=b.actualWidth,e++;r.forEach(function(c){k.insertBefore(c,f)});w.forEach(function(c){k.insertBefore(u.createTextNode(c),f);c=u.createElementNS(z,"tspan");c.textContent="\u200b";A(c,{dy:q,x:d});k.insertBefore(c,f)})}},H=function(a){[].slice.call(a.childNodes).forEach(function(f){f.nodeType===
- Node.TEXT_NODE?t(f,a):(-1!==f.className.baseVal.indexOf("highcharts-br")&&(b.actualWidth=0),H(f))})};H(b.element)}};d.prototype.getLineHeight=function(a){var b;a=a.nodeType===Node.TEXT_NODE?a.parentElement:a;this.renderer.styledMode||(b=a&&/(px|em)$/.test(a.style.fontSize)?a.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(b,a||this.svgElement.element).h};d.prototype.modifyTree=function(a){var b=
- this,f=function(d,k){var h=d.tagName,t=b.renderer.styledMode,w=d.attributes||{};if("b"===h||"strong"===h)t?w["class"]="highcharts-strong":w.style="font-weight:bold;"+(w.style||"");else if("i"===h||"em"===h)t?w["class"]="highcharts-emphasized":w.style="font-style:italic;"+(w.style||"");y(w.style)&&(w.style=w.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===h&&(w["class"]="highcharts-br",d.textContent="\u200b",(k=a[k+1])&&k.textContent&&(k.textContent=k.textContent.replace(/^ +/gm,"")));"#text"!==
- h&&"a"!==h&&(d.tagName="tspan");d.attributes=w;d.children&&d.children.filter(function(b){return"#text"!==b.tagName}).forEach(f)};for(a.forEach(f);a[0]&&"tspan"===a[0].tagName&&!a[0].children;)a.splice(0,1)};d.prototype.truncate=function(a,b,d,h,t,H){var f=this.svgElement,k=f.renderer,E=f.rotation,x=[],r=d?1:0,q=(b||d||"").length,e=q,m,c=function(c,e){e=e||c;var g=a.parentNode;if(g&&"undefined"===typeof x[e])if(g.getSubStringLength)try{x[e]=h+g.getSubStringLength(0,d?e+1:e)}catch(L){""}else k.getSpanWidth&&
- (a.textContent=H(b||d,c),x[e]=h+k.getSpanWidth(f,a));return x[e]};f.rotation=0;var g=c(a.textContent.length);if(h+g>t){for(;r<=q;)e=Math.ceil((r+q)/2),d&&(m=H(d,e)),g=c(e,m&&m.length-1),r===q?r=q+1:g>t?q=e-1:r=e;0===q?a.textContent="":b&&q===b.length-1||(a.textContent=m||H(b||d,e))}d&&d.splice(0,e);f.actualWidth=g;f.rotation=E};d.prototype.unescapeEntities=function(a,b){p(this.renderer.escapes,function(d,f){b&&-1!==b.indexOf(d)||(a=a.toString().replace(new RegExp(d,"g"),f))});return a};return d}()});
- J(a,"Core/Renderer/SVG/SVGRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGLabel.js"],a["Core/Renderer/SVG/Symbols.js"],a["Core/Renderer/SVG/TextBuilder.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h,d){var f=C.charts,b=C.deg2rad,k=C.doc,B=C.isFirefox,t=C.isMS,H=C.isWebKit,K=C.noop,w=C.SVG_NS,E=C.symbolSizes,x=C.win,r=d.addEvent,
- q=d.attr,e=d.createElement,m=d.css,c=d.defined,g=d.destroyObjectProperties,l=d.extend,v=d.isArray,G=d.isNumber,L=d.isObject,F=d.isString,N=d.merge,u=d.pick,aa=d.pInt,V=d.uniqueKey,ba;C=function(){function d(c,e,g,l,b,m,a){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(c,e,g,l,b,m,a)}d.prototype.init=function(c,e,g,l,b,a,d){var f=
- this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),v=f.element;d||f.css(this.getStyle(l));c.appendChild(v);q(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&q(v,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=v;this.boxWrapper=f;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(k.createTextNode("Created with Highcharts 9.1.1"));this.defs=this.createElement("defs").add();this.allowHTML=a;this.forExport=b;this.styledMode=
- d;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(e,g,!1);var I;B&&c.getBoundingClientRect&&(e=function(){m(c,{left:0,top:0});I=c.getBoundingClientRect();m(c,{left:Math.ceil(I.left)-I.left+"px",top:Math.ceil(I.top)-I.top+"px"})},e(),this.unSubPixelFix=r(x,"resize",e))};d.prototype.definition=function(c){return(new a([c])).addToDOM(this.defs.element)};d.prototype.getReferenceURL=function(){if((B||H)&&k.getElementsByTagName("base").length){if(!c(ba)){var e=V();e=(new a([{tagName:"svg",
- attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+e+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(k.body);m(e,{position:"fixed",top:0,left:0,zIndex:9E5});var g=k.elementFromPoint(6,6);ba="hitme"===(g&&g.id);k.body.removeChild(e)}if(ba)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,
- "\\$1").replace(/ /g,"%20")}return""};d.prototype.getStyle=function(c){return this.style=l({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};d.prototype.setStyle=function(c){this.boxWrapper.css(this.getStyle(c))};d.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};d.prototype.destroy=function(){var c=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();g(this.gradients||{});this.gradients=null;c&&(this.defs=c.destroy());
- this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};d.prototype.createElement=function(c){var e=new this.Element;e.init(this,c);return e};d.prototype.getRadialAttr=function(c,e){return{cx:c[0]-c[2]/2+(e.cx||0)*c[2],cy:c[1]-c[2]/2+(e.cy||0)*c[2],r:(e.r||0)*c[2]}};d.prototype.buildText=function(c){(new h(c)).buildSVG()};d.prototype.getContrast=function(c){c=n.parse(c).rgba;c[0]*=1;c[1]*=1.2;c[2]*=.5;return 459<c[0]+c[1]+c[2]?"#000000":"#FFFFFF"};d.prototype.button=function(c,e,
- g,b,m,d,f,v,q,I){var M=this.label(c,e,g,q,void 0,void 0,I,void 0,"button"),h=this.styledMode,k=0,P=m?N(m):{};c=P&&P.style||{};P=a.filterUserAttributes(P);M.attr(N({padding:8,r:2},P));if(!h){P=N({fill:D.neutralColor3,stroke:D.neutralColor20,"stroke-width":1,style:{color:D.neutralColor80,cursor:"pointer",fontWeight:"normal"}},{style:c},P);var G=P.style;delete P.style;d=N(P,{fill:D.neutralColor10},a.filterUserAttributes(d||{}));var w=d.style;delete d.style;f=N(P,{fill:D.highlightColor10,style:{color:D.neutralColor100,
- fontWeight:"bold"}},a.filterUserAttributes(f||{}));var F=f.style;delete f.style;v=N(P,{style:{color:D.neutralColor20}},a.filterUserAttributes(v||{}));var x=v.style;delete v.style}r(M.element,t?"mouseover":"mouseenter",function(){3!==k&&M.setState(1)});r(M.element,t?"mouseout":"mouseleave",function(){3!==k&&M.setState(k)});M.setState=function(c){1!==c&&(M.state=k=c);M.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][c||
- 0]);h||M.attr([P,d,f,v][c||0]).css([G,w,F,x][c||0])};h||M.attr(P).css(l({cursor:"default"},G));return M.on("touchstart",function(c){return c.stopPropagation()}).on("click",function(c){3!==k&&b.call(M,c)})};d.prototype.crispLine=function(e,g,l){void 0===l&&(l="round");var b=e[0],m=e[1];c(b[1])&&b[1]===m[1]&&(b[1]=m[1]=Math[l](b[1])-g%2/2);c(b[2])&&b[2]===m[2]&&(b[2]=m[2]=Math[l](b[2])+g%2/2);return e};d.prototype.path=function(c){var e=this.styledMode?{}:{fill:"none"};v(c)?e.d=c:L(c)&&l(e,c);return this.createElement("path").attr(e)};
- d.prototype.circle=function(c,e,g){c=L(c)?c:"undefined"===typeof c?{}:{x:c,y:e,r:g};e=this.createElement("circle");e.xSetter=e.ySetter=function(c,e,g){g.setAttribute("c"+e,c)};return e.attr(c)};d.prototype.arc=function(c,e,g,b,l,m){L(c)?(b=c,e=b.y,g=b.r,c=b.x):b={innerR:b,start:l,end:m};c=this.symbol("arc",c,e,g,g,b);c.r=g;return c};d.prototype.rect=function(c,e,g,b,l,m){l=L(c)?c.r:l;var a=this.createElement("rect");c=L(c)?c:"undefined"===typeof c?{}:{x:c,y:e,width:Math.max(g,0),height:Math.max(b,
- 0)};this.styledMode||("undefined"!==typeof m&&(c["stroke-width"]=m,c=a.crisp(c)),c.fill="none");l&&(c.r=l);a.rSetter=function(c,e,g){a.r=c;q(g,{rx:c,ry:c})};a.rGetter=function(){return a.r||0};return a.attr(c)};d.prototype.setSize=function(c,e,g){this.width=c;this.height=e;this.boxWrapper.animate({width:c,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:u(g,!0)?void 0:0});this.alignElements()};d.prototype.g=function(c){var e=this.createElement("g");
- return c?e.attr({"class":"highcharts-"+c}):e};d.prototype.image=function(c,e,g,b,m,a){var d={preserveAspectRatio:"none"},f=function(c,e){c.setAttributeNS?c.setAttributeNS("http://www.w3.org/1999/xlink","href",e):c.setAttribute("hc-svg-href",e)};1<arguments.length&&l(d,{x:e,y:g,width:b,height:m});var v=this.createElement("image").attr(d);d=function(e){f(v.element,c);a.call(v,e)};if(a){f(v.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var q=new x.Image;r(q,"load",
- d);q.src=c;q.complete&&d({})}else f(v.element,c);return v};d.prototype.symbol=function(g,b,a,d,v,q){var I=this,h=/^url\((.*?)\)$/,M=h.test(g),r=!M&&(this.symbols[g]?g:"circle"),G=r&&this.symbols[r],P;if(G){"number"===typeof b&&(P=G.call(this.symbols,Math.round(b||0),Math.round(a||0),d||0,v||0,q));var w=this.path(P);I.styledMode||w.attr("fill","none");l(w,{symbolName:r||void 0,x:b,y:a,width:d,height:v});q&&l(w,q)}else if(M){var F=g.match(h)[1];var x=w=this.image(F);x.imgwidth=u(E[F]&&E[F].width,q&&
- q.width);x.imgheight=u(E[F]&&E[F].height,q&&q.height);var L=function(c){return c.attr({width:c.width,height:c.height})};["width","height"].forEach(function(e){x[e+"Setter"]=function(e,g){var b=this["img"+g];this[g]=e;c(b)&&(q&&"within"===q.backgroundSize&&this.width&&this.height&&(b=Math.round(b*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(g,b),this.alignByTranslate||(e=((this[g]||0)-b)/2,this.attr("width"===g?{translateX:e}:{translateY:e})))}});
- c(b)&&x.attr({x:b,y:a});x.isImg=!0;c(x.imgwidth)&&c(x.imgheight)?L(x):(x.attr({width:0,height:0}),e("img",{onload:function(){var c=f[I.chartIndex];0===this.width&&(m(this,{position:"absolute",top:"-999em"}),k.body.appendChild(this));E[F]={width:this.width,height:this.height};x.imgwidth=this.width;x.imgheight=this.height;x.element&&L(x);this.parentNode&&this.parentNode.removeChild(this);I.imgCount--;if(!I.imgCount&&c&&!c.hasLoaded)c.onload()},src:F}),this.imgCount++)}return w};d.prototype.clipRect=
- function(c,e,g,b){var l=V()+"-",m=this.createElement("clipPath").attr({id:l}).add(this.defs);c=this.rect(c,e,g,b,0).add(m);c.id=l;c.clipPath=m;c.count=0;return c};d.prototype.text=function(e,g,b,l){var m={};if(l&&(this.allowHTML||!this.forExport))return this.html(e,g,b);m.x=Math.round(g||0);b&&(m.y=Math.round(b));c(e)&&(m.text=e);e=this.createElement("text").attr(m);l||(e.xSetter=function(c,e,g){for(var b=g.getElementsByTagName("tspan"),l=g.getAttribute(e),m=0,a;m<b.length;m++)a=b[m],a.getAttribute(e)===
- l&&a.setAttribute(e,c);g.setAttribute(e,c)});return e};d.prototype.fontMetrics=function(c,e){c=!this.styledMode&&/px/.test(c)||!x.getComputedStyle?c||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&A.prototype.getStyle.call(e,"font-size");c=/px/.test(c)?aa(c):12;e=24>c?c+3:Math.round(1.2*c);return{h:e,b:Math.round(.8*e),f:c}};d.prototype.rotCorr=function(c,e,g){var l=c;e&&g&&(l=Math.max(l*Math.cos(e*b),4));return{x:-c/3*Math.sin(e*b),y:l}};d.prototype.pathToSegments=function(c){for(var e=
- [],g=[],b={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},l=0;l<c.length;l++)F(g[0])&&G(c[l])&&g.length===b[g[0].toUpperCase()]&&c.splice(l,0,g[0].replace("M","L").replace("m","l")),"string"===typeof c[l]&&(g.length&&e.push(g.slice(0)),g.length=0),g.push(c[l]);e.push(g.slice(0));return e};d.prototype.label=function(c,e,g,b,l,m,a,d,f){return new y(this,c,e,g,b,l,m,a,d,f)};d.prototype.alignElements=function(){this.alignedObjects.forEach(function(c){return c.align()})};return d}();l(C.prototype,{Element:A,SVG_NS:w,
- escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:p,draw:K});z.registerRendererType("svg",C,!0);"";return C});J(a,"Core/Renderer/HTML/HTMLElement.js",[a["Core/Globals.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(a,d)};return function(a,
- d){function f(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),z=a.isFirefox,A=a.isMS,y=a.isWebKit,p=a.win,h=C.css,d=C.defined,f=C.extend,b=C.pick,k=C.pInt;return function(a){function t(){return null!==a&&a.apply(this,arguments)||this}u(t,a);t.compose=function(b){b=b.prototype;var a=t.prototype;b.getSpanCorrection=a.getSpanCorrection;b.htmlCss=a.htmlCss;b.htmlGetBBox=a.htmlGetBBox;b.htmlUpdateTransform=a.htmlUpdateTransform;b.setSpanRotation=a.setSpanRotation};
- t.prototype.getSpanCorrection=function(b,a,d){this.xCorr=-b*d;this.yCorr=-a};t.prototype.htmlCss=function(a){var d="SPAN"===this.element.tagName&&a&&"width"in a,k=b(d&&a.width,void 0);if(d){delete a.width;this.textWidth=k;var E=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=f(this.styles,a);h(this.element,a);E&&this.htmlUpdateTransform();return this};t.prototype.htmlGetBBox=function(){var b=this.element;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,
- height:b.offsetHeight}};t.prototype.htmlUpdateTransform=function(){if(this.added){var b=this.renderer,a=this.element,f=this.translateX||0,E=this.translateY||0,x=this.x||0,r=this.y||0,q=this.textAlign||"left",e={left:0,center:.5,right:1}[q],m=this.styles;m=m&&m.whiteSpace;h(a,{marginLeft:f,marginTop:E});!b.styledMode&&this.shadows&&this.shadows.forEach(function(c){h(c,{marginLeft:f+1,marginTop:E+1})});this.inverted&&[].forEach.call(a.childNodes,function(c){b.invertChild(c,a)});if("SPAN"===a.tagName){var c=
- this.rotation,g=this.textWidth&&k(this.textWidth),l=[c,q,a.innerHTML,this.textWidth,this.textAlign].join(),v=void 0;(v=g!==this.oldTextWidth)&&!(v=g>this.oldTextWidth)&&((v=this.textPxLength)||(h(a,{width:"",whiteSpace:m||"nowrap"}),v=a.offsetWidth),v=v>g);v&&(/[ \-]/.test(a.textContent||a.innerText)||"ellipsis"===a.style.textOverflow)?(h(a,{width:g+"px",display:"block",whiteSpace:m||"normal"}),this.oldTextWidth=g,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;l!==this.cTT&&(v=b.fontMetrics(a.style.fontSize,
- a).b,!d(c)||c===(this.oldRotation||0)&&q===this.oldAlign||this.setSpanRotation(c,e,v),this.getSpanCorrection(!d(c)&&this.textPxLength||a.offsetWidth,v,e,c,q));h(a,{left:x+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"});this.cTT=l;this.oldRotation=c;this.oldAlign=q}}else this.alignOnAdd=!0};t.prototype.setSpanRotation=function(b,a,d){var f={},k=A&&!/Edge/.test(p.navigator.userAgent)?"-ms-transform":y?"-webkit-transform":z?"MozTransform":p.opera?"-o-transform":void 0;k&&(f[k]=f.transform="rotate("+
- b+"deg)",f[k+(z?"Origin":"-origin")]=f.transformOrigin=100*a+"% "+d+"px",h(this.element,f))};return t}(n)});J(a,"Core/Renderer/HTML/HTMLRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,n,C,D){var u=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};
- return a(d,b)};return function(d,b){function f(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)}}(),A=D.attr,y=D.createElement,p=D.extend,h=D.pick;return function(d){function f(){return null!==d&&d.apply(this,arguments)||this}u(f,d);f.compose=function(b){b.prototype.html=f.prototype.html};f.prototype.html=function(b,d,f){var k=this.createElement("span"),B=k.element,K=k.renderer,w=K.isSVG,E=function(b,a){["opacity","visibility"].forEach(function(d){b[d+
- "Setter"]=function(e,m,c){var g=b.div?b.div.style:a;n.prototype[d+"Setter"].call(this,e,m,c);g&&(g[m]=e)}});b.addedSetters=!0};k.textSetter=function(b){b!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,h(b,"")),this.textStr=b,k.doTransform=!0)};w&&E(k,k.element.style);k.xSetter=k.ySetter=k.alignSetter=k.rotationSetter=function(b,a){"align"===a?k.alignValue=k.textAlign=b:k[a]=b;k.doTransform=!0};k.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),
- this.doTransform=!1)};k.attr({text:b,x:Math.round(d),y:Math.round(f)}).css({position:"absolute"});K.styledMode||k.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});B.style.whiteSpace="nowrap";k.css=k.htmlCss;w&&(k.add=function(b){var a=K.box.parentNode,d=[];if(this.parentGroup=b){var e=b.div;if(!e){for(;b;)d.push(b),b=b.parentGroup;d.reverse().forEach(function(b){function c(c,e){b[e]=c;"translateX"===e?m.left=c+"px":m.top=c+"px";b.doTransform=!0}var g=A(b.element,"class"),l=b.styles||
- {};e=b.div=b.div||y("div",g?{className:g}:void 0,{position:"absolute",left:(b.translateX||0)+"px",top:(b.translateY||0)+"px",display:b.display,opacity:b.opacity,cursor:l.cursor,pointerEvents:l.pointerEvents},e||a);var m=e.style;p(b,{classSetter:function(c){return function(e){this.element.setAttribute("class",e);c.className=e}}(e),on:function(){d[0].div&&k.on.apply({element:d[0].div,onEvents:k.onEvents},arguments);return b},translateXSetter:c,translateYSetter:c});b.addedSetters||E(b)})}}else e=a;e.appendChild(B);
- k.added=!0;k.alignOnAdd&&k.htmlUpdateTransform();return k});return k};return f}(C)});J(a,"Core/Axis/AxisDefaults.js",[a["Core/Color/Palette.js"]],function(a){var u;(function(u){u.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:a.neutralColor60,cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,
- showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:a.neutralColor60}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:a.neutralColor5,minorGridLineWidth:1,minorTickColor:a.neutralColor40,lineColor:a.highlightColor20,lineWidth:1,gridLineColor:a.neutralColor10,gridLineWidth:void 0,tickColor:a.highlightColor20};u.defaultYAxisOptions={reversedStacks:!0,
- endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total,-1)},style:{color:a.neutralColor100,fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};u.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};u.defaultRightAxisOptions=
- {labels:{x:15},title:{rotation:90}};u.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};u.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(u||(u={}));return u});J(a,"Core/Foundation.js",[a["Core/Utilities.js"]],function(a){var u=a.addEvent,C=a.isFunction,D=a.objectEach,z=a.removeEvent;return{registerEventOptions:function(a,n){a.eventOptions=a.eventOptions||{};D(n.events,function(p,h){C(p)&&a.eventOptions[h]!==p&&(C(a.eventOptions[h])&&
- z(a,h,a.eventOptions[h]),a.eventOptions[h]=p,u(a,h,p))})}}});J(a,"Core/Axis/Tick.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,C){var u=n.deg2rad,z=C.clamp,A=C.correctFloat,y=C.defined,p=C.destroyObjectProperties,h=C.extend,d=C.fireEvent,f=C.isNumber,b=C.merge,k=C.objectEach,B=C.pick;n=function(){function t(b,a,f,k,h){this.isNewLabel=this.isNew=!0;this.axis=b;this.pos=a;this.type=f||"";this.parameters=h||{};this.tickmarkOffset=this.parameters.tickmarkOffset;
- this.options=this.parameters.options;d(this,"init");f||k||this.addLabel()}t.prototype.addLabel=function(){var b=this,k=b.axis,w=k.options,E=k.chart,x=k.categories,r=k.logarithmic,q=k.names,e=b.pos,m=B(b.options&&b.options.labels,w.labels),c=k.tickPositions,g=e===c[0],l=e===c[c.length-1],v=(!m.step||1===m.step)&&1===k.tickInterval;c=c.info;var G=b.label,L;x=this.parameters.category||(x?B(x[e],q[e],e):e);r&&f(x)&&(x=A(r.lin2log(x)));if(k.dateTime&&c){var F=E.time.resolveDTLFormat(w.dateTimeLabelFormats[!w.grid&&
- c.higherRanks[e]||c.unitName]);var t=F.main}b.isFirst=g;b.isLast=l;var p={axis:k,chart:E,dateTimeLabelFormat:t,isFirst:g,isLast:l,pos:e,tick:b,tickPositionInfo:c,value:x};d(this,"labelFormat",p);var u=function(c){return m.formatter?m.formatter.call(c,c):m.format?(c.text=k.defaultLabelFormatter.call(c),a.format(m.format,c,E)):k.defaultLabelFormatter.call(c,c)};w=u.call(p,p);var n=F&&F.list;b.shortenLabel=n?function(){for(L=0;L<n.length;L++)if(h(p,{dateTimeLabelFormat:n[L]}),G.attr({text:u.call(p,p)}),
- G.getBBox().width<k.getSlotWidth(b)-2*m.padding)return;G.attr({text:""})}:void 0;v&&k._addedPlotLB&&b.moveLabel(w,m);y(G)||b.movedLabel?G&&G.textStr!==w&&!v&&(!G.textWidth||m.style.width||G.styles.width||G.css({width:null}),G.attr({text:w}),G.textPxLength=G.getBBox().width):(b.label=G=b.createLabel({x:0,y:0},w,m),b.rotation=0)};t.prototype.createLabel=function(a,d,f){var k=this.axis,h=k.chart;if(a=y(d)&&f.enabled?h.renderer.text(d,a.x,a.y,f.useHTML).add(k.labelGroup):null)h.styledMode||a.css(b(f.style)),
- a.textPxLength=a.getBBox().width;return a};t.prototype.destroy=function(){p(this,this.axis)};t.prototype.getPosition=function(b,a,f,k){var h=this.axis,r=h.chart,q=k&&r.oldChartHeight||r.chartHeight;b={x:b?A(h.translate(a+f,null,null,k)+h.transB):h.left+h.offset+(h.opposite?(k&&r.oldChartWidth||r.chartWidth)-h.right-h.left:0),y:b?q-h.bottom+h.offset-(h.opposite?h.height:0):A(q-h.translate(a+f,null,null,k)-h.transB)};b.y=z(b.y,-1E5,1E5);d(this,"afterGetPosition",{pos:b});return b};t.prototype.getLabelPosition=
- function(b,a,f,k,h,r,q,e){var m=this.axis,c=m.transA,g=m.isLinked&&m.linkedParent?m.linkedParent.reversed:m.reversed,l=m.staggerLines,v=m.tickRotCorr||{x:0,y:0},G=k||m.reserveSpaceDefault?0:-m.labelOffset*("center"===m.labelAlign?.5:1),w={},F=h.y;y(F)||(F=0===m.side?f.rotation?-8:-f.getBBox().height:2===m.side?v.y+8:Math.cos(f.rotation*u)*(v.y-f.getBBox(!1,0).height/2));b=b+h.x+G+v.x-(r&&k?r*c*(g?-1:1):0);a=a+F-(r&&!k?r*c*(g?1:-1):0);l&&(f=q/(e||1)%l,m.opposite&&(f=l-f-1),a+=m.labelOffset/l*f);w.x=
- b;w.y=Math.round(a);d(this,"afterGetLabelPosition",{pos:w,tickmarkOffset:r,index:q});return w};t.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};t.prototype.getMarkPath=function(b,a,d,f,k,h){return h.crispLine([["M",b,a],["L",b+(k?0:-d),a+(k?d:0)]],f)};t.prototype.handleOverflow=function(b){var a=this.axis,d=a.options.labels,f=b.x,k=a.chart.chartWidth,h=a.chart.spacing,q=B(a.labelLeft,Math.min(a.pos,h[3]));h=B(a.labelRight,Math.max(a.isRadial?
- 0:a.pos+a.len,k-h[1]));var e=this.label,m=this.rotation,c={left:0,center:.5,right:1}[a.labelAlign||e.attr("align")],g=e.getBBox().width,l=a.getSlotWidth(this),v={},G=l,L=1,F;if(m||"justify"!==d.overflow)0>m&&f-c*g<q?F=Math.round(f/Math.cos(m*u)-q):0<m&&f+c*g>h&&(F=Math.round((k-f)/Math.cos(m*u)));else if(k=f+(1-c)*g,f-c*g<q?G=b.x+G*(1-c)-q:k>h&&(G=h-b.x+G*c,L=-1),G=Math.min(l,G),G<l&&"center"===a.labelAlign&&(b.x+=L*(l-G-c*(l-Math.min(g,G)))),g>G||a.autoRotation&&(e.styles||{}).width)F=G;F&&(this.shortenLabel?
- this.shortenLabel():(v.width=Math.floor(F)+"px",(d.style||{}).textOverflow||(v.textOverflow="ellipsis"),e.css(v)))};t.prototype.moveLabel=function(b,a){var d=this,f=d.label,h=d.axis,r=h.reversed,q=!1;f&&f.textStr===b?(d.movedLabel=f,q=!0,delete d.label):k(h.ticks,function(e){q||e.isNew||e===d||!e.label||e.label.textStr!==b||(d.movedLabel=e.label,q=!0,e.labelPos=d.movedLabel.xy,delete e.label)});if(!q&&(d.labelPos||f)){var e=d.labelPos||f.xy;f=h.horiz?r?0:h.width+h.left:e.x;h=h.horiz?e.y:r?h.width+
- h.left:0;d.movedLabel=d.createLabel({x:f,y:h},b,a);d.movedLabel&&d.movedLabel.attr({opacity:0})}};t.prototype.render=function(b,a,f){var k=this.axis,h=k.horiz,r=this.pos,q=B(this.tickmarkOffset,k.tickmarkOffset);r=this.getPosition(h,r,q,a);q=r.x;var e=r.y;k=h&&q===k.pos+k.len||!h&&e===k.pos?-1:1;h=B(f,this.label&&this.label.newOpacity,1);f=B(f,1);this.isActive=!0;this.renderGridLine(a,f,k);this.renderMark(r,f,k);this.renderLabel(r,a,h,b);this.isNew=!1;d(this,"afterRender")};t.prototype.renderGridLine=
- function(b,a,d){var f=this.axis,k=f.options,h={},q=this.pos,e=this.type,m=B(this.tickmarkOffset,f.tickmarkOffset),c=f.chart.renderer,g=this.gridLine,l=k.gridLineWidth,v=k.gridLineColor,G=k.gridLineDashStyle;"minor"===this.type&&(l=k.minorGridLineWidth,v=k.minorGridLineColor,G=k.minorGridLineDashStyle);g||(f.chart.styledMode||(h.stroke=v,h["stroke-width"]=l||0,h.dashstyle=G),e||(h.zIndex=1),b&&(a=0),this.gridLine=g=c.path().attr(h).addClass("highcharts-"+(e?e+"-":"")+"grid-line").add(f.gridGroup));
- if(g&&(d=f.getPlotLinePath({value:q+m,lineWidth:g.strokeWidth()*d,force:"pass",old:b})))g[b||this.isNew?"attr":"animate"]({d:d,opacity:a})};t.prototype.renderMark=function(b,a,d){var f=this.axis,k=f.options,h=f.chart.renderer,q=this.type,e=f.tickSize(q?q+"Tick":"tick"),m=b.x;b=b.y;var c=B(k["minor"!==q?"tickWidth":"minorTickWidth"],!q&&f.isXAxis?1:0);k=k["minor"!==q?"tickColor":"minorTickColor"];var g=this.mark,l=!g;e&&(f.opposite&&(e[0]=-e[0]),g||(this.mark=g=h.path().addClass("highcharts-"+(q?q+
- "-":"")+"tick").add(f.axisGroup),f.chart.styledMode||g.attr({stroke:k,"stroke-width":c})),g[l?"attr":"animate"]({d:this.getMarkPath(m,b,e[0],g.strokeWidth()*d,f.horiz,h),opacity:a}))};t.prototype.renderLabel=function(b,a,d,k){var h=this.axis,r=h.horiz,q=h.options,e=this.label,m=q.labels,c=m.step;h=B(this.tickmarkOffset,h.tickmarkOffset);var g=b.x;b=b.y;var l=!0;e&&f(g)&&(e.xy=b=this.getLabelPosition(g,b,e,r,m,h,k,c),this.isFirst&&!this.isLast&&!q.showFirstLabel||this.isLast&&!this.isFirst&&!q.showLastLabel?
- l=!1:!r||m.step||m.rotation||a||0===d||this.handleOverflow(b),c&&k%c&&(l=!1),l&&f(b.y)?(b.opacity=d,e[this.isNewLabel?"attr":"animate"](b),this.isNewLabel=!1):(e.attr("y",-9999),this.isNewLabel=!0))};t.prototype.replaceMovedLabel=function(){var b=this.label,a=this.axis,d=a.reversed;if(b&&!this.isNew){var f=a.horiz?d?a.left:a.width+a.left:b.xy.x;d=a.horiz?b.xy.y:d?a.width+a.top:a.top;b.animate({x:f,y:d,opacity:0},void 0,b.destroy);delete this.label}a.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};
- return t}();"";return n});J(a,"Core/Axis/Axis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/AxisDefaults.js"],a["Core/Color/Color.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/DefaultOptions.js"],a["Core/Axis/Tick.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h){var d=a.animObject,f=D.registerEventOptions,b=z.deg2rad,k=y.defaultOptions,B=h.arrayMax,t=h.arrayMin,u=h.clamp,K=h.correctFloat,w=h.defined,E=h.destroyObjectProperties,x=h.erase,
- r=h.error,q=h.extend,e=h.fireEvent,m=h.getMagnitude,c=h.isArray,g=h.isNumber,l=h.isString,v=h.merge,G=h.normalizeTickInterval,L=h.objectEach,F=h.pick,N=h.relativeLength,O=h.removeEvent,aa=h.splat,V=h.syncTimeout;a=function(){function a(c,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=
- this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(c,
- e)}a.prototype.init=function(c,b){var a=b.isX;this.chart=c;this.horiz=c.inverted&&!this.isZAxis?!a:a;this.isXAxis=a;this.coll=this.coll||(a?"xAxis":"yAxis");e(this,"init",{userOptions:b});this.opposite=F(b.opposite,this.opposite);this.side=F(b.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(b);var l=this.options,m=l.labels,d=l.type;this.userOptions=b;this.minPixelPadding=0;this.reversed=F(l.reversed,this.reversed);this.visible=l.visible;this.zoomEnabled=l.zoomEnabled;
- this.hasNames="category"===d||!0===l.categories;this.categories=l.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=w(l.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=l.minRange||l.maxZoom;this.range=l.range;this.offset=l.offset||0;this.min=this.max=null;b=F(l.crosshair,aa(c.options.tooltip.crosshairs)[a?
- 0:1]);this.crosshair=!0===b?{}:b;-1===c.axes.indexOf(this)&&(a?c.axes.splice(c.xAxis.length,0,this):c.axes.push(this),c[this.coll].push(this));this.series=this.series||[];c.inverted&&!this.isZAxis&&a&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=g(m.rotation)?m.rotation:void 0;f(this,l);e(this,"afterInit")};a.prototype.setOptions=function(c){this.options=v(n.defaultXAxisOptions,"yAxis"===this.coll&&n.defaultYAxisOptions,[n.defaultTopAxisOptions,n.defaultRightAxisOptions,
- n.defaultBottomAxisOptions,n.defaultLeftAxisOptions][this.side],v(k[this.coll],c));e(this,"afterSetOptions",{userOptions:c})};a.prototype.defaultLabelFormatter=function(c){var e=this.axis;c=this.chart.numberFormatter;var b=g(this.value)?this.value:NaN,a=e.chart.time,l=this.dateTimeLabelFormat,m=k.lang,d=m.numericSymbols;m=m.numericSymbolMagnitude||1E3;var f=e.logarithmic?Math.abs(b):e.tickInterval,v=d&&d.length;if(e.categories)var q=""+this.value;else if(l)q=a.dateFormat(l,b);else if(v&&1E3<=f)for(;v--&&
- "undefined"===typeof q;)e=Math.pow(m,v+1),f>=e&&0===10*b%e&&null!==d[v]&&0!==b&&(q=c(b/e,-1)+d[v]);"undefined"===typeof q&&(q=1E4<=Math.abs(b)?c(b,-1):c(b,-1,void 0,""));return q};a.prototype.getSeriesExtremes=function(){var c=this,b=c.chart,a;e(this,"getSeriesExtremes",null,function(){c.hasVisibleSeries=!1;c.dataMin=c.dataMax=c.threshold=null;c.softThreshold=!c.isXAxis;c.stacking&&c.stacking.buildStacks();c.series.forEach(function(e){if(e.visible||!b.options.chart.ignoreHiddenSeries){var l=e.options,
- m=l.threshold;c.hasVisibleSeries=!0;c.positiveValuesOnly&&0>=m&&(m=null);if(c.isXAxis){if(l=e.xData,l.length){l=c.logarithmic?l.filter(c.validatePositiveValue):l;a=e.getXExtremes(l);var d=a.min;var f=a.max;g(d)||d instanceof Date||(l=l.filter(g),a=e.getXExtremes(l),d=a.min,f=a.max);l.length&&(c.dataMin=Math.min(F(c.dataMin,d),d),c.dataMax=Math.max(F(c.dataMax,f),f))}}else if(e=e.applyExtremes(),g(e.dataMin)&&(d=e.dataMin,c.dataMin=Math.min(F(c.dataMin,d),d)),g(e.dataMax)&&(f=e.dataMax,c.dataMax=Math.max(F(c.dataMax,
- f),f)),w(m)&&(c.threshold=m),!l.softThreshold||c.positiveValuesOnly)c.softThreshold=!1}})});e(this,"afterGetSeriesExtremes")};a.prototype.translate=function(c,e,b,a,l,d){var m=this.linkedParent||this,f=a&&m.old?m.old.min:m.min,v=m.minPixelPadding;l=(m.isOrdinal||m.brokenAxis&&m.brokenAxis.hasBreaks||m.logarithmic&&l)&&m.lin2val;var q=1,k=0;a=a&&m.old?m.old.transA:m.transA;a||(a=m.transA);b&&(q*=-1,k=m.len);m.reversed&&(q*=-1,k-=q*(m.sector||m.len));e?(c=(c*q+k-v)/a+f,l&&(c=m.lin2val(c))):(l&&(c=m.val2lin(c)),
- c=g(f)?q*(c-f)*a+k+q*v+(g(d)?a*d:0):void 0);return c};a.prototype.toPixels=function(c,e){return this.translate(c,!1,!this.horiz,null,!0)+(e?0:this.pos)};a.prototype.toValue=function(c,e){return this.translate(c-(e?0:this.pos),!0,!this.horiz,null,!0)};a.prototype.getPlotLinePath=function(c){function b(c,e,g){if("pass"!==G&&c<e||c>g)G?c=u(c,e,g):t=!0;return c}var a=this,l=a.chart,m=a.left,d=a.top,f=c.old,v=c.value,q=c.lineWidth,k=f&&l.oldChartHeight||l.chartHeight,h=f&&l.oldChartWidth||l.chartWidth,
- I=a.transB,r=c.translatedValue,G=c.force,L,w,x,B,t;c={value:v,lineWidth:q,old:f,force:G,acrossPanes:c.acrossPanes,translatedValue:r};e(this,"getPlotLinePath",c,function(c){r=F(r,a.translate(v,null,null,f));r=u(r,-1E5,1E5);L=x=Math.round(r+I);w=B=Math.round(k-r-I);g(r)?a.horiz?(w=d,B=k-a.bottom,L=x=b(L,m,m+a.width)):(L=m,x=h-a.right,w=B=b(w,d,d+a.height)):(t=!0,G=!1);c.path=t&&!G?null:l.renderer.crispLine([["M",L,w],["L",x,B]],q||1)});return c.path};a.prototype.getLinearTickPositions=function(c,e,
- g){var b=K(Math.floor(e/c)*c);g=K(Math.ceil(g/c)*c);var a=[],l;K(b+c)===b&&(l=20);if(this.single)return[e];for(e=b;e<=g;){a.push(e);e=K(e+c,l);if(e===m)break;var m=e}return a};a.prototype.getMinorTickInterval=function(){var c=this.options;return!0===c.minorTicks?F(c.minorTickInterval,"auto"):!1===c.minorTicks?null:c.minorTickInterval};a.prototype.getMinorTickPositions=function(){var c=this.options,e=this.tickPositions,g=this.minorTickInterval,b=this.pointRangePadding||0,a=this.min-b;b=this.max+b;
- var l=b-a,m=[];if(l&&l/g<this.len/3){var d=this.logarithmic;if(d)this.paddedTicks.forEach(function(c,e,b){e&&m.push.apply(m,d.getLogTickPositions(g,b[e-1],b[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())m=m.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(g),a,b,c.startOfWeek));else for(c=a+(e[0]-a)%g;c<=b&&c!==m[0];c+=g)m.push(c)}0!==m.length&&this.trimTicks(m);return m};a.prototype.adjustForMinRange=function(){var c=this.options,e=this.logarithmic,b=this.min,
- g=this.max,a=0,l,m,d,f;this.isXAxis&&"undefined"===typeof this.minRange&&!e&&(w(c.min)||w(c.max)?this.minRange=null:(this.series.forEach(function(c){d=c.xData;f=c.xIncrement?1:d.length-1;if(1<d.length)for(l=f;0<l;l--)if(m=d[l]-d[l-1],!a||m<a)a=m}),this.minRange=Math.min(5*a,this.dataMax-this.dataMin)));if(g-b<this.minRange){var v=this.dataMax-this.dataMin>=this.minRange;var q=this.minRange;var k=(q-g+b)/2;k=[b-k,F(c.min,b-k)];v&&(k[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);
- b=B(k);g=[b+q,F(c.max,b+q)];v&&(g[2]=e?e.log2lin(this.dataMax):this.dataMax);g=t(g);g-b<q&&(k[0]=g-q,k[1]=F(c.min,g-q),b=B(k))}this.min=b;this.max=g};a.prototype.getClosest=function(){var c;this.categories?c=1:this.series.forEach(function(e){var b=e.closestPointRange,g=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&w(b)&&g&&(c=w(c)?Math.min(c,b):b)});return c};a.prototype.nameToX=function(e){var b=c(this.categories),g=b?this.categories:this.names,a=e.options.x;e.series.requireSorting=
- !1;w(a)||(a=this.options.uniqueNames?b?g.indexOf(e.name):F(g.keys[e.name],-1):e.series.autoIncrement());if(-1===a){if(!b)var l=g.length}else l=a;"undefined"!==typeof l&&(this.names[l]=e.name,this.names.keys[e.name]=l);return l};a.prototype.updateNames=function(){var c=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach(function(c){delete e.keys[c]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){e.xIncrement=null;if(!e.points||e.isDirtyData)c.max=Math.max(c.max,
- e.xData.length-1),e.processData(),e.generatePoints();e.data.forEach(function(b,g){if(b&&b.options&&"undefined"!==typeof b.name){var a=c.nameToX(b);"undefined"!==typeof a&&a!==b.x&&(b.x=a,e.xData[g]=a)}})}))};a.prototype.setAxisTranslation=function(){var c=this,b=c.max-c.min,g=c.linkedParent,a=!!c.categories,m=c.isXAxis,d=c.axisPointRange||0,f=0,v=0,q=c.transA;if(m||a||d){var k=c.getClosest();g?(f=g.minPointOffset,v=g.pointRangePadding):c.series.forEach(function(e){var b=a?1:m?F(e.options.pointRange,
- k,0):c.axisPointRange||0,g=e.options.pointPlacement;d=Math.max(d,b);if(!c.single||a)e=e.is("xrange")?!m:m,f=Math.max(f,e&&l(g)?0:b/2),v=Math.max(v,e&&"on"===g?0:b)});g=c.ordinal&&c.ordinal.slope&&k?c.ordinal.slope/k:1;c.minPointOffset=f*=g;c.pointRangePadding=v*=g;c.pointRange=Math.min(d,c.single&&a?1:b);m&&(c.closestPointRange=k)}c.translationSlope=c.transA=q=c.staticScale||c.len/(b+v||1);c.transB=c.horiz?c.left:c.bottom;c.minPixelPadding=q*f;e(this,"afterSetAxisTranslation")};a.prototype.minFromRange=
- function(){return this.max-this.range};a.prototype.setTickInterval=function(c){var b=this,a=b.chart,l=b.logarithmic,d=b.options,f=b.isXAxis,v=b.isLinked,q=d.tickPixelInterval,k=b.categories,h=b.softThreshold,I=d.maxPadding,L=d.minPadding,x=d.tickInterval,B=g(b.threshold)?b.threshold:null;b.dateTime||k||v||this.getTickAmount();var t=F(b.userMin,d.min);var p=F(b.userMax,d.max);if(v){b.linkedParent=a[b.coll][d.linkedTo];var E=b.linkedParent.getExtremes();b.min=F(E.min,E.dataMin);b.max=F(E.max,E.dataMax);
- d.type!==b.linkedParent.options.type&&r(11,1,a)}else{if(h&&w(B))if(b.dataMin>=B)E=B,L=0;else if(b.dataMax<=B){var u=B;I=0}b.min=F(t,E,b.dataMin);b.max=F(p,u,b.dataMax)}l&&(b.positiveValuesOnly&&!c&&0>=Math.min(b.min,F(b.dataMin,b.min))&&r(10,1,a),b.min=K(l.log2lin(b.min),16),b.max=K(l.log2lin(b.max),16));b.range&&w(b.max)&&(b.userMin=b.min=t=Math.max(b.dataMin,b.minFromRange()),b.userMax=p=b.max,b.range=null);e(b,"foundExtremes");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(k||b.axisPointRange||
- b.stacking&&b.stacking.usePercentage||v)&&w(b.min)&&w(b.max)&&(a=b.max-b.min)&&(!w(t)&&L&&(b.min-=a*L),!w(p)&&I&&(b.max+=a*I));g(b.userMin)||(g(d.softMin)&&d.softMin<b.min&&(b.min=t=d.softMin),g(d.floor)&&(b.min=Math.max(b.min,d.floor)));g(b.userMax)||(g(d.softMax)&&d.softMax>b.max&&(b.max=p=d.softMax),g(d.ceiling)&&(b.max=Math.min(b.max,d.ceiling)));h&&w(b.dataMin)&&(B=B||0,!w(t)&&b.min<B&&b.dataMin>=B?b.min=b.options.minRange?Math.min(B,b.max-b.minRange):B:!w(p)&&b.max>B&&b.dataMax<=B&&(b.max=b.options.minRange?
- Math.max(B,b.min+b.minRange):B));g(b.min)&&g(b.max)&&!this.chart.polar&&b.min>b.max&&(w(b.options.min)?b.max=b.min:w(b.options.max)&&(b.min=b.max));b.tickInterval=b.min===b.max||"undefined"===typeof b.min||"undefined"===typeof b.max?1:v&&b.linkedParent&&!x&&q===b.linkedParent.options.tickPixelInterval?x=b.linkedParent.tickInterval:F(x,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,k?1:(b.max-b.min)*q/Math.max(b.len,q));f&&!c&&b.series.forEach(function(c){c.processData(b.min!==
- (b.old&&b.old.min)||b.max!==(b.old&&b.old.max))});b.setAxisTranslation();e(this,"initialAxisTranslation");b.pointRange&&!x&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));c=F(d.minTickInterval,b.dateTime&&!b.series.some(function(c){return c.noSharedTooltip})?b.closestPointRange:0);!x&&b.tickInterval<c&&(b.tickInterval=c);b.dateTime||b.logarithmic||x||(b.tickInterval=G(b.tickInterval,void 0,m(b.tickInterval),F(d.allowDecimals,.5>b.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));
- this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()};a.prototype.setTickPositions=function(){var c=this.options,b=c.tickPositions,g=this.getMinorTickInterval(),a=this.hasVerticalPanning(),l="colorAxis"===this.coll,m=(l||!a)&&c.startOnTick;a=(l||!a)&&c.endOnTick;l=c.tickPositioner;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===g&&this.tickInterval?this.tickInterval/5:g;this.single=this.min===this.max&&
- w(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==c.allowDecimals);this.tickPositions=g=b&&b.slice();!g&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?g=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,
- this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(g=[this.min,this.max],r(19,!1,this.chart)),g.length>this.len&&(g=[g[0],g.pop()],g[0]===g[1]&&(g.length=1)),this.tickPositions=g,l&&(l=l.apply(this,[this.min,this.max])))&&(this.tickPositions=g=l);this.paddedTicks=g.slice(0);this.trimTicks(g,m,a);this.isLinked||(this.single&&2>g.length&&!this.categories&&!this.series.some(function(c){return c.is("heatmap")&&"between"===c.options.pointPlacement})&&(this.min-=.5,this.max+=.5),
- b||l||this.adjustTickAmount());e(this,"afterSetTickPositions")};a.prototype.trimTicks=function(c,b,g){var a=c[0],l=c[c.length-1],m=!this.isOrdinal&&this.minPointOffset||0;e(this,"trimTicks");if(!this.isLinked){if(b&&-Infinity!==a)this.min=a;else for(;this.min-m>c[0];)c.shift();if(g)this.max=l;else for(;this.max+m<c[c.length-1];)c.pop();0===c.length&&w(a)&&!this.options.tickPositions&&c.push((l+a)/2)}};a.prototype.alignToOthers=function(){var c={},e=this.options,b;!1!==this.chart.options.chart.alignTicks&&
- e.alignTicks&&!1!==e.startOnTick&&!1!==e.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(e){var g=e.options;g=[e.horiz?g.left:g.top,g.width,g.height,g.pane].join();e.series.length&&(c[g]?b=!0:c[g]=1)});return b};a.prototype.getTickAmount=function(){var c=this.options,e=c.tickPixelInterval,b=c.tickAmount;!w(c.tickInterval)&&!b&&this.len<e&&!this.isRadial&&!this.logarithmic&&c.startOnTick&&c.endOnTick&&(b=2);!b&&this.alignToOthers()&&(b=Math.ceil(this.len/e)+1);4>b&&(this.finalTickAmt=
- b,b=5);this.tickAmount=b};a.prototype.adjustTickAmount=function(){var c=this.options,e=this.tickInterval,b=this.tickPositions,a=this.tickAmount,l=this.finalTickAmt,m=b&&b.length,d=F(this.threshold,this.softThreshold?0:null);if(this.hasData()&&g(this.min)&&g(this.max)){if(m<a){for(;b.length<a;)b.length%2||this.min===d?b.push(K(b[b.length-1]+e)):b.unshift(K(b[0]-e));this.transA*=(m-1)/(a-1);this.min=c.startOnTick?b[0]:Math.min(this.min,b[0]);this.max=c.endOnTick?b[b.length-1]:Math.max(this.max,b[b.length-
- 1])}else m>a&&(this.tickInterval*=2,this.setTickPositions());if(w(l)){for(e=c=b.length;e--;)(3===l&&1===e%2||2>=l&&0<e&&e<c-1)&&b.splice(e,1);this.finalTickAmt=void 0}}};a.prototype.setScale=function(){var c=!1,b=!1;this.series.forEach(function(e){c=c||e.isDirtyData||e.isDirty;b=b||e.xAxis&&e.xAxis.isDirty||!1});this.setAxisSize();var g=this.len!==(this.old&&this.old.len);g||c||b||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=g||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();c&&this.panningState&&(this.panningState.isDirty=!0);e(this,"afterSetScale")};a.prototype.setExtremes=function(c,b,g,a,l){var m=this,d=m.chart;g=F(g,!0);m.series.forEach(function(c){delete c.kdTree});l=q(l,{min:c,max:b});
- e(m,"setExtremes",l,function(){m.userMin=c;m.userMax=b;m.eventArgs=l;g&&d.redraw(a)})};a.prototype.zoom=function(c,b){var g=this,a=this.dataMin,l=this.dataMax,m=this.options,d=Math.min(a,F(m.min,a)),f=Math.max(l,F(m.max,l));c={newMin:c,newMax:b};e(this,"zoom",c,function(c){var e=c.newMin,b=c.newMax;if(e!==g.min||b!==g.max)g.allowZoomOutside||(w(a)&&(e<d&&(e=d),e>f&&(e=f)),w(l)&&(b<d&&(b=d),b>f&&(b=f))),g.displayBtn="undefined"!==typeof e||"undefined"!==typeof b,g.setExtremes(e,b,!1,void 0,{trigger:"zoom"});
- c.zoomed=!0});return c.zoomed};a.prototype.setAxisSize=function(){var c=this.chart,e=this.options,b=e.offsets||[0,0,0,0],g=this.horiz,a=this.width=Math.round(N(F(e.width,c.plotWidth-b[3]+b[1]),c.plotWidth)),l=this.height=Math.round(N(F(e.height,c.plotHeight-b[0]+b[2]),c.plotHeight)),m=this.top=Math.round(N(F(e.top,c.plotTop+b[0]),c.plotHeight,c.plotTop));e=this.left=Math.round(N(F(e.left,c.plotLeft+b[3]),c.plotWidth,c.plotLeft));this.bottom=c.chartHeight-l-m;this.right=c.chartWidth-a-e;this.len=Math.max(g?
- a:l,0);this.pos=g?e:m};a.prototype.getExtremes=function(){var c=this.logarithmic;return{min:c?K(c.lin2log(this.min)):this.min,max:c?K(c.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a.prototype.getThreshold=function(c){var e=this.logarithmic,b=e?e.lin2log(this.min):this.min;e=e?e.lin2log(this.max):this.max;null===c||-Infinity===c?c=b:Infinity===c?c=e:b>c?c=b:e<c&&(c=e);return this.translate(c,0,1,0,1)};a.prototype.autoLabelAlign=
- function(c){var b=(F(c,0)-90*this.side+720)%360;c={align:"center"};e(this,"autoLabelAlign",c,function(c){15<b&&165>b?c.align="right":195<b&&345>b&&(c.align="left")});return c.align};a.prototype.tickSize=function(c){var b=this.options,g=F(b["tick"===c?"tickWidth":"minorTickWidth"],"tick"===c&&this.isXAxis&&!this.categories?1:0),a=b["tick"===c?"tickLength":"minorTickLength"];if(g&&a){"inside"===b[c+"Position"]&&(a=-a);var l=[a,g]}c={tickSize:l};e(this,"afterTickSize",c);return c.tickSize};a.prototype.labelMetrics=
- function(){var c=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[c]&&this.ticks[c].label)};a.prototype.unsquish=function(){var c=this.options.labels,e=this.horiz,a=this.tickInterval,l=this.len/(((this.categories?1:0)+this.max-this.min)/a),m=c.rotation,d=this.labelMetrics(),f=Math.max(this.max-this.min,0),v=function(c){var e=c/(l||1);e=1<e?Math.ceil(e):1;e*a>f&&Infinity!==c&&Infinity!==l&&f&&(e=Math.ceil(f/a));return K(e*
- a)},q=a,k,h,r=Number.MAX_VALUE;if(e){if(!c.staggerLines&&!c.step)if(g(m))var G=[m];else l<c.autoRotationLimit&&(G=c.autoRotation);G&&G.forEach(function(c){if(c===m||c&&-90<=c&&90>=c){h=v(Math.abs(d.h/Math.sin(b*c)));var e=h+Math.abs(c/360);e<r&&(r=e,k=c,q=h)}})}else c.step||(q=v(d.h));this.autoRotation=G;this.labelRotation=F(k,g(m)?m:0);return q};a.prototype.getSlotWidth=function(c){var e=this.chart,b=this.horiz,a=this.options.labels,l=Math.max(this.tickPositions.length-(this.categories?0:1),1),m=
- e.margin[3];if(c&&g(c.slotWidth))return c.slotWidth;if(b&&2>a.step)return a.rotation?0:(this.staggerLines||1)*this.len/l;if(!b){c=a.style.width;if(void 0!==c)return parseInt(String(c),10);if(m)return m-e.spacing[3]}return.33*e.chartWidth};a.prototype.renderUnsquish=function(){var c=this.chart,e=c.renderer,b=this.tickPositions,g=this.ticks,a=this.options.labels,m=a.style,d=this.horiz,f=this.getSlotWidth(),v=Math.max(1,Math.round(f-2*a.padding)),q={},k=this.labelMetrics(),h=m.textOverflow,r=0;l(a.rotation)||
- (q.rotation=a.rotation||0);b.forEach(function(c){c=g[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>r&&(r=c.label.textPxLength)});this.maxLabelLength=r;if(this.autoRotation)r>v&&r>k.h?q.rotation=this.labelRotation:this.labelRotation=0;else if(f){var G=v;if(!h){var F="clip";for(v=b.length;!d&&v--;){var L=b[v];if(L=g[L].label)L.styles&&"ellipsis"===L.styles.textOverflow?L.css({textOverflow:"clip"}):L.textPxLength>f&&L.css({width:f+"px"}),L.getBBox().height>this.len/b.length-
- (k.h-k.f)&&(L.specificTextOverflow="ellipsis")}}}q.rotation&&(G=r>.5*c.chartHeight?.33*c.chartHeight:r,h||(F="ellipsis"));if(this.labelAlign=a.align||this.autoLabelAlign(this.labelRotation))q.align=this.labelAlign;b.forEach(function(c){var e=(c=g[c])&&c.label,b=m.width,a={};e&&(e.attr(q),c.shortenLabel?c.shortenLabel():G&&!b&&"nowrap"!==m.whiteSpace&&(G<e.textPxLength||"SPAN"===e.element.tagName)?(a.width=G+"px",h||(a.textOverflow=e.specificTextOverflow||F),e.css(a)):e.styles&&e.styles.width&&!a.width&&
- !b&&e.css({width:null}),delete e.specificTextOverflow,c.rotation=q.rotation)},this);this.tickRotCorr=e.rotCorr(k.b,this.labelRotation||0,0!==this.side)};a.prototype.hasData=function(){return this.series.some(function(c){return c.hasData()})||this.options.showEmpty&&w(this.min)&&w(this.max)};a.prototype.addTitle=function(c){var e=this.chart.renderer,b=this.horiz,g=this.opposite,a=this.options.title,l=this.chart.styledMode,m;this.axisTitle||((m=a.textAlign)||(m=(b?{low:"left",middle:"center",high:"right"}:
- {low:g?"right":"left",middle:"center",high:g?"left":"right"})[a.align]),this.axisTitle=e.text(a.text||"",0,0,a.useHTML).attr({zIndex:7,rotation:a.rotation,align:m}).addClass("highcharts-axis-title"),l||this.axisTitle.css(v(a.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);l||a.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c?"show":"hide"](c)};a.prototype.generateTick=function(c){var e=this.ticks;e[c]?e[c].addLabel():e[c]=new p(this,c)};a.prototype.getOffset=
- function(){var c=this,b=this,g=b.chart,a=g.renderer,l=b.options,m=b.tickPositions,d=b.ticks,f=b.horiz,v=b.side,q=g.inverted&&!b.isZAxis?[1,0,3,2][v]:v,k=b.hasData(),h=l.title,r=l.labels,G=g.axisOffset;g=g.clipOffset;var x=[-1,1,1,-1][v],B=l.className,t=b.axisParent,p,E=0,u=0,N=0;b.showAxis=p=k||l.showEmpty;b.staggerLines=b.horiz&&r.staggerLines||void 0;if(!b.axisGroup){var n=function(e,b,g){return a.g(e).attr({zIndex:g}).addClass("highcharts-"+c.coll.toLowerCase()+b+" "+(c.isRadial?"highcharts-radial-axis"+
- b+" ":"")+(B||"")).add(t)};b.gridGroup=n("grid","-grid",l.gridZIndex);b.axisGroup=n("axis","",l.zIndex);b.labelGroup=n("axis-labels","-labels",r.zIndex)}k||b.isLinked?(m.forEach(function(c){b.generateTick(c)}),b.renderUnsquish(),b.reserveSpaceDefault=0===v||2===v||{1:"left",3:"right"}[v]===b.labelAlign,F(r.reserveSpace,"center"===b.labelAlign?!0:null,b.reserveSpaceDefault)&&m.forEach(function(c){N=Math.max(d[c].getLabelSize(),N)}),b.staggerLines&&(N*=b.staggerLines),b.labelOffset=N*(b.opposite?-1:
- 1)):L(d,function(c,e){c.destroy();delete d[e]});if(h&&h.text&&!1!==h.enabled&&(b.addTitle(p),p&&!1!==h.reserveSpace)){b.titleOffset=E=b.axisTitle.getBBox()[f?"height":"width"];var y=h.offset;u=w(y)?0:F(h.margin,f?5:10)}b.renderLine();b.offset=x*F(l.offset,G[v]?G[v]+(l.margin||0):0);b.tickRotCorr=b.tickRotCorr||{x:0,y:0};h=0===v?-b.labelMetrics().h:2===v?b.tickRotCorr.y:0;k=Math.abs(N)+u;N&&(k=k-h+x*(f?F(r.y,b.tickRotCorr.y+8*x):r.x));b.axisTitleMargin=F(y,k);b.getMaxLabelDimensions&&(b.maxLabelDimensions=
- b.getMaxLabelDimensions(d,m));f=this.tickSize("tick");G[v]=Math.max(G[v],(b.axisTitleMargin||0)+E+x*b.offset,k,m&&m.length&&f?f[0]+x*b.offset:0);l=l.offset?0:2*Math.floor(b.axisLine.strokeWidth()/2);g[q]=Math.max(g[q],l);e(this,"afterGetOffset")};a.prototype.getLinePath=function(c){var e=this.chart,b=this.opposite,g=this.offset,a=this.horiz,l=this.left+(b?this.width:0)+g;g=e.chartHeight-this.bottom-(b?this.height:0)+g;b&&(c*=-1);return e.renderer.crispLine([["M",a?this.left:l,a?g:this.top],["L",a?
- e.chartWidth-this.right:l,a?g:e.chartHeight-this.bottom]],c)};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 c=this.horiz,b=this.left,g=this.top,a=this.len,l=this.options.title,m=c?b:g,d=this.opposite,f=this.offset,v=l.x,q=l.y,k=this.axisTitle,
- h=this.chart.renderer.fontMetrics(l.style.fontSize,k);k=Math.max(k.getBBox(null,0).height-h.h-1,0);a={low:m+(c?0:a),middle:m+a/2,high:m+(c?a:0)}[l.align];b=(c?g+this.height:b)+(c?1:-1)*(d?-1:1)*this.axisTitleMargin+[-k,k,h.f,-k][this.side];c={x:c?a+v:b+(d?this.width:0)+f+v,y:c?b+q-(d?this.height:0)+f:a+q};e(this,"afterGetTitlePosition",{titlePosition:c});return c};a.prototype.renderMinorTick=function(c){var e=this.chart.hasRendered&&this.old,b=this.minorTicks;b[c]||(b[c]=new p(this,c,"minor"));e&&
- b[c].isNew&&b[c].render(null,!0);b[c].render(null,!1,1)};a.prototype.renderTick=function(c,e){var b=this.ticks,g=this.chart.hasRendered&&this.old;if(!this.isLinked||c>=this.min&&c<=this.max||this.grid&&this.grid.isColumn)b[c]||(b[c]=new p(this,c)),g&&b[c].isNew&&b[c].render(e,!0,-1),b[c].render(e)};a.prototype.render=function(){var c=this,b=c.chart,a=c.logarithmic,l=c.options,m=c.isLinked,f=c.tickPositions,v=c.axisTitle,q=c.ticks,k=c.minorTicks,h=c.alternateBands,r=l.stackLabels,G=l.alternateGridColor,
- F=c.tickmarkOffset,w=c.axisLine,x=c.showAxis,B=d(b.renderer.globalAnimation),t,E;c.labelEdge.length=0;c.overlap=!1;[q,k,h].forEach(function(c){L(c,function(c){c.isActive=!1})});if(c.hasData()||m)c.minorTickInterval&&!c.categories&&c.getMinorTickPositions().forEach(function(e){c.renderMinorTick(e)}),f.length&&(f.forEach(function(e,b){c.renderTick(e,b)}),F&&(0===c.min||c.single)&&(q[-1]||(q[-1]=new p(c,-1,null,!0)),q[-1].render(-1))),G&&f.forEach(function(e,g){E="undefined"!==typeof f[g+1]?f[g+1]+F:
- c.max-F;0===g%2&&e<c.max&&E<=c.max+(b.polar?-F:F)&&(h[e]||(h[e]=new z.PlotLineOrBand(c)),t=e+F,h[e].options={from:a?a.lin2log(t):t,to:a?a.lin2log(E):E,color:G,className:"highcharts-alternate-grid"},h[e].render(),h[e].isActive=!0)}),c._addedPlotLB||(c._addedPlotLB=!0,(l.plotLines||[]).concat(l.plotBands||[]).forEach(function(e){c.addPlotBandOrLine(e)}));[q,k,h].forEach(function(c){var e=[],g=B.duration;L(c,function(c,b){c.isActive||(c.render(b,!1,0),c.isActive=!1,e.push(b))});V(function(){for(var b=
- e.length;b--;)c[e[b]]&&!c[e[b]].isActive&&(c[e[b]].destroy(),delete c[e[b]])},c!==h&&b.hasRendered&&g?g:0)});w&&(w[w.isPlaced?"animate":"attr"]({d:this.getLinePath(w.strokeWidth())}),w.isPlaced=!0,w[x?"show":"hide"](x));v&&x&&(l=c.getTitlePosition(),g(l.y)?(v[v.isNew?"attr":"animate"](l),v.isNew=!1):(v.attr("y",-9999),v.isNew=!0));r&&r.enabled&&c.stacking&&c.stacking.renderStackTotals();c.old={len:c.len,max:c.max,min:c.min,transA:c.transA,userMax:c.userMax,userMin:c.userMin};c.isDirty=!1;e(this,"afterRender")};
- a.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(c){c.render()}));this.series.forEach(function(c){c.isDirty=!0})};a.prototype.getKeepProps=function(){return this.keepProps||a.keepProps};a.prototype.destroy=function(c){var b=this,g=b.plotLinesAndBands,a=this.eventOptions;e(this,"destroy",{keepEvents:c});c||O(b);[b.ticks,b.minorTicks,b.alternateBands].forEach(function(c){E(c)});if(g)for(c=g.length;c--;)g[c].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(c){b[c]&&
- (b[c]=b[c].destroy())});for(var l in b.plotLinesAndBandsGroups)b.plotLinesAndBandsGroups[l]=b.plotLinesAndBandsGroups[l].destroy();L(b,function(c,e){-1===b.getKeepProps().indexOf(e)&&delete b[e]});this.eventOptions=a};a.prototype.drawCrosshair=function(c,b){var g=this.crosshair,a=F(g&&g.snap,!0),l=this.chart,m,d=this.cross;e(this,"drawCrosshair",{e:c,point:b});c||(c=this.cross&&this.cross.e);if(g&&!1!==(w(b)||!a)){a?w(b)&&(m=F("colorAxis"!==this.coll?b.crosshairPos:null,this.isXAxis?b.plotX:this.len-
- b.plotY)):m=c&&(this.horiz?c.chartX-this.pos:this.len-c.chartY+this.pos);if(w(m)){var f={value:b&&(this.isXAxis?b.x:F(b.stackY,b.y)),translatedValue:m};l.polar&&q(f,{isCrosshair:!0,chartX:c&&c.chartX,chartY:c&&c.chartY,point:b});f=this.getPlotLinePath(f)||null}if(!w(f)){this.hideCrosshair();return}a=this.categories&&!this.isRadial;d||(this.cross=d=l.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(a?"category ":"thin ")+(g.className||"")).attr({zIndex:F(g.zIndex,2)}).add(),l.styledMode||
- (d.attr({stroke:g.color||(a?C.parse(A.highlightColor20).setOpacity(.25).get():A.neutralColor20),"stroke-width":F(g.width,1)}).css({"pointer-events":"none"}),g.dashStyle&&d.attr({dashstyle:g.dashStyle})));d.show().attr({d:f});a&&!g.width&&d.attr({"stroke-width":this.transA});this.cross.e=c}else this.hideCrosshair();e(this,"afterDrawCrosshair",{e:c,point:b})};a.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();e(this,"afterHideCrosshair")};a.prototype.hasVerticalPanning=function(){var c=
- this.chart.options.chart.panning;return!!(c&&c.enabled&&/y/.test(c.type))};a.prototype.validatePositiveValue=function(c){return g(c)&&0<c};a.prototype.update=function(c,b){var e=this.chart;c=v(this.userOptions,c);this.destroy(!0);this.init(e,c);e.isDirtyBox=!0;F(b,!0)&&e.redraw()};a.prototype.remove=function(c){for(var b=this.chart,e=this.coll,g=this.series,a=g.length;a--;)g[a]&&g[a].remove(!1);x(b.axes,this);x(b[e],this);b[e].forEach(function(c,b){c.options.index=c.userOptions.index=b});this.destroy();
- b.isDirtyBox=!0;F(c,!0)&&b.redraw()};a.prototype.setTitle=function(c,b){this.update({title:c},b)};a.prototype.setCategories=function(c,b){this.update({categories:c},b)};a.defaultOptions=n.defaultXAxisOptions;a.keepProps="extKey hcEvents names series userMax userMin".split(" ");return a}();"";return a});J(a,"Core/Axis/DateTimeAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,n){var u=n.addEvent,D=n.getMagnitude,z=n.normalizeTickInterval,A=n.timeUnits,y=function(){function a(a){this.axis=
- a}a.prototype.normalizeTimeTickInterval=function(a,d){var f=d||[["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]];d=f[f.length-1];var b=A[d[0]],k=d[1],h;for(h=0;h<f.length&&!(d=f[h],b=A[d[0]],k=d[1],f[h+1]&&a<=(b*k[k.length-1]+A[f[h+1][0]])/2);h++);b===A.year&&a<5*b&&(k=[1,2,5]);a=z(a/b,k,"year"===d[0]?Math.max(D(a/b),1):1);return{unitRange:b,count:a,unitName:d[0]}};
- return a}();n=function(){function a(){}a.compose=function(a){a.keepProps.push("dateTime");a.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)};u(a,"init",function(a){"datetime"!==a.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new y(this))})};a.AdditionsClass=y;return a}();n.compose(a);return n});J(a,"Core/Axis/LogarithmicAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,n){var u=n.addEvent,D=n.getMagnitude,
- z=n.normalizeTickInterval,A=n.pick,y=function(){function a(a){this.axis=a}a.prototype.getLogTickPositions=function(a,d,f,b){var k=this.axis,h=k.len,t=k.options,p=[];b||(this.minorAutoInterval=void 0);if(.5<=a)a=Math.round(a),p=k.getLinearTickPositions(a,d,f);else if(.08<=a){var u=Math.floor(d),w,E=t=void 0;for(h=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];u<f+1&&!E;u++){var x=h.length;for(w=0;w<x&&!E;w++){var r=this.log2lin(this.lin2log(u)*h[w]);r>d&&(!b||t<=f)&&"undefined"!==typeof t&&p.push(t);
- t>f&&(E=!0);t=r}}}else d=this.lin2log(d),f=this.lin2log(f),a=b?k.getMinorTickInterval():t.tickInterval,a=A("auto"===a?null:a,this.minorAutoInterval,t.tickPixelInterval/(b?5:1)*(f-d)/((b?h/k.tickPositions.length:h)||1)),a=z(a,void 0,D(a)),p=k.getLinearTickPositions(a,d,f).map(this.log2lin),b||(this.minorAutoInterval=a/5);b||(k.tickInterval=a);return p};a.prototype.lin2log=function(a){return Math.pow(10,a)};a.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return a}();n=function(){function a(){}
- a.compose=function(a){a.keepProps.push("logarithmic");u(a,"init",function(a){var d=this.logarithmic;"logarithmic"!==a.userOptions.type?this.logarithmic=void 0:d||(this.logarithmic=new y(this))});u(a,"afterInit",function(){var a=this.logarithmic;a&&(this.lin2val=function(d){return a.lin2log(d)},this.val2lin=function(d){return a.log2lin(d)})})};return a}();n.compose(a);return n});J(a,"Core/Axis/PlotLineOrBand.js",[a["Core/Axis/Axis.js"],a["Core/Color/Palette.js"],a["Core/Utilities.js"]],function(a,
- n,C){var u=C.arrayMax,z=C.arrayMin,A=C.defined,y=C.destroyObjectProperties,p=C.erase,h=C.extend,d=C.fireEvent,f=C.isNumber,b=C.merge,k=C.objectEach,B=C.pick,t=function(){function a(b,a){this.axis=b;a&&(this.options=a,this.id=a.id)}a.prototype.render=function(){d(this,"render");var a=this,f=a.axis,h=f.horiz,x=f.logarithmic,r=a.options,q=r.label,e=a.label,m=r.to,c=r.from,g=r.value,l=A(c)&&A(m),v=A(g),G=a.svgElem,L=!G,F=[],t=r.color,p=B(r.zIndex,0),u=r.events;F={"class":"highcharts-plot-"+(l?"band ":
- "line ")+(r.className||"")};var y={},H=f.chart.renderer,I=l?"bands":"lines";x&&(c=x.log2lin(c),m=x.log2lin(m),g=x.log2lin(g));f.chart.styledMode||(v?(F.stroke=t||n.neutralColor40,F["stroke-width"]=B(r.width,1),r.dashStyle&&(F.dashstyle=r.dashStyle)):l&&(F.fill=t||n.highlightColor10,r.borderWidth&&(F.stroke=r.borderColor,F["stroke-width"]=r.borderWidth)));y.zIndex=p;I+="-"+p;(x=f.plotLinesAndBandsGroups[I])||(f.plotLinesAndBandsGroups[I]=x=H.g("plot-"+I).attr(y).add());L&&(a.svgElem=G=H.path().attr(F).add(x));
- if(v)F=f.getPlotLinePath({value:g,lineWidth:G.strokeWidth(),acrossPanes:r.acrossPanes});else if(l)F=f.getPlotBandPath(c,m,r);else return;!a.eventsAdded&&u&&(k(u,function(c,b){G.on(b,function(c){u[b].apply(a,[c])})}),a.eventsAdded=!0);(L||!G.d)&&F&&F.length?G.attr({d:F}):G&&(F?(G.show(!0),G.animate({d:F})):G.d&&(G.hide(),e&&(a.label=e=e.destroy())));q&&(A(q.text)||A(q.formatter))&&F&&F.length&&0<f.width&&0<f.height&&!F.isFlat?(q=b({align:h&&l&&"center",x:h?!l&&4:10,verticalAlign:!h&&l&&"middle",y:h?
- l?16:10:l?6:-4,rotation:h&&!l&&90},q),this.renderLabel(q,F,l,p)):e&&e.hide();return a};a.prototype.renderLabel=function(b,a,d,f){var k=this.label,q=this.axis.chart.renderer;k||(k={align:b.textAlign||b.align,rotation:b.rotation,"class":"highcharts-plot-"+(d?"band":"line")+"-label "+(b.className||"")},k.zIndex=f,f=this.getLabelText(b),this.label=k=q.text(f,0,0,b.useHTML).attr(k).add(),this.axis.chart.styledMode||k.css(b.style));q=a.xBounds||[a[0][1],a[1][1],d?a[2][1]:a[0][1]];a=a.yBounds||[a[0][2],
- a[1][2],d?a[2][2]:a[0][2]];d=z(q);f=z(a);k.align(b,!1,{x:d,y:f,width:u(q)-d,height:u(a)-f});k.show(!0)};a.prototype.getLabelText=function(b){return A(b.formatter)?b.formatter.call(this):b.text};a.prototype.destroy=function(){p(this.axis.plotLinesAndBands,this);delete this.axis;y(this)};return a}();h(a.prototype,{getPlotBandPath:function(b,a,d){void 0===d&&(d=this.options);var k=this.getPlotLinePath({value:a,force:!0,acrossPanes:d.acrossPanes});d=this.getPlotLinePath({value:b,force:!0,acrossPanes:d.acrossPanes});
- var h=[],r=this.horiz,q=1;b=!f(this.min)||!f(this.max)||b<this.min&&a<this.min||b>this.max&&a>this.max;if(d&&k){if(b){var e=d.toString()===k.toString();q=0}for(b=0;b<d.length;b+=2){a=d[b];var m=d[b+1],c=k[b],g=k[b+1];"M"!==a[0]&&"L"!==a[0]||"M"!==m[0]&&"L"!==m[0]||"M"!==c[0]&&"L"!==c[0]||"M"!==g[0]&&"L"!==g[0]||(r&&c[1]===a[1]?(c[1]+=q,g[1]+=q):r||c[2]!==a[2]||(c[2]+=q,g[2]+=q),h.push(["M",a[1],a[2]],["L",m[1],m[2]],["L",g[1],g[2]],["L",c[1],c[2]],["Z"]));h.isFlat=e}}return h},addPlotBand:function(b){return this.addPlotBandOrLine(b,
- "plotBands")},addPlotLine:function(b){return this.addPlotBandOrLine(b,"plotLines")},addPlotBandOrLine:function(b,a){var d=this,f=new t(this,b),k=this.userOptions;this.visible&&(f=f.render());if(f){this._addedPlotLB||(this._addedPlotLB=!0,(k.plotLines||[]).concat(k.plotBands||[]).forEach(function(b){d.addPlotBandOrLine(b)}));if(a){var h=k[a]||[];h.push(b);k[a]=h}this.plotLinesAndBands.push(f)}return f},removePlotBandOrLine:function(b){var a=this.plotLinesAndBands,d=this.options,f=this.userOptions;
- if(a){for(var k=a.length;k--;)a[k].id===b&&a[k].destroy();[d.plotLines||[],f.plotLines||[],d.plotBands||[],f.plotBands||[]].forEach(function(a){for(k=a.length;k--;)(a[k]||{}).id===b&&p(a,a[k])})}},removePlotBand:function(b){this.removePlotBandOrLine(b)},removePlotLine:function(b){this.removePlotBandOrLine(b)}});return t});J(a,"Core/Tooltip.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,
- D,z){var u=a.format,y=n.doc,p=z.clamp,h=z.css,d=z.defined,f=z.discardElement,b=z.extend,k=z.fireEvent,B=z.isArray,t=z.isNumber,H=z.isString,K=z.merge,w=z.pick,E=z.splat,x=z.syncTimeout,r=z.timeUnits;"";a=function(){function a(b,a){this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=b;this.init(b,a)}a.prototype.applyFilter=function(){var b=this.chart;b.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+
- b.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"}}]}]});b.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+b.index+"{filter:url(#drop-shadow-"+b.index+")}"})};a.prototype.bodyFormatter=
- function(b){return b.map(function(b){var c=b.series.tooltipOptions;return(c[(b.point.formatPrefix||"point")+"Formatter"]||b.point.tooltipFormatter).call(b.point,c[(b.point.formatPrefix||"point")+"Format"]||"")})};a.prototype.cleanSplit=function(b){this.chart.series.forEach(function(e){var c=e&&e.tt;c&&(!c.isActive||b?e.tt=c.destroy():c.isActive=!1)})};a.prototype.defaultFormatter=function(b){var e=this.points||E(this);var c=[b.tooltipFooterHeaderFormatter(e[0])];c=c.concat(b.bodyFormatter(e));c.push(b.tooltipFooterHeaderFormatter(e[0],
- !0));return c};a.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),f(this.container));z.clearTimeout(this.hideTimer);z.clearTimeout(this.tooltipTimeout)};a.prototype.getAnchor=function(b,a){var c=this.chart;var e=c.pointer;var l=c.inverted,d=c.plotTop,m=c.plotLeft,f=0,k=0,q,h;b=E(b);this.followPointer&&a?("undefined"===typeof a.chartX&&(a=e.normalize(a)),
- e=[a.chartX-m,a.chartY-d]):b[0].tooltipPos?e=b[0].tooltipPos:(b.forEach(function(b){q=b.series.yAxis;h=b.series.xAxis;f+=b.plotX||0;k+=b.plotLow?(b.plotLow+(b.plotHigh||0))/2:b.plotY||0;h&&q&&(l?(f+=d+c.plotHeight-h.len-h.pos,k+=m+c.plotWidth-q.len-q.pos):(f+=h.pos-m,k+=q.pos-d))}),f/=b.length,k/=b.length,e=[l?c.plotWidth-k:f,l?c.plotHeight-f:k],this.shared&&1<b.length&&a&&(l?e[0]=a.chartX-m:e[1]=a.chartY-d));return e.map(Math.round)};a.prototype.getDateFormat=function(b,a,c,g){var e=this.chart.time,
- d=e.dateFormat("%m-%d %H:%M:%S.%L",a),m={millisecond:15,second:12,minute:9,hour:6,day:3},f="millisecond";for(k in r){if(b===r.week&&+e.dateFormat("%w",a)===c&&"00:00:00.000"===d.substr(6)){var k="week";break}if(r[k]>b){k=f;break}if(m[k]&&d.substr(m[k])!=="01-01 00:00:00.000".substr(m[k]))break;"week"!==k&&(f=k)}if(k)var q=e.resolveDTLFormat(g[k]).main;return q};a.prototype.getLabel=function(){var b=this,a=this.chart.renderer,c=this.chart.styledMode,g=this.options,l="tooltip"+(d(g.className)?" "+g.className:
- ""),f=g.style&&g.style.pointerEvents||(!this.followPointer&&g.stickOnContact?"auto":"none"),k,q=function(){b.inContact=!0},r=function(){var c=b.chart.hoverSeries;b.inContact=!1;if(c&&c.onMouseOut)c.onMouseOut()};if(!this.label){if(this.outside){var w=this.chart.options.chart.style,x=D.getRendererType();this.container=k=n.doc.createElement("div");k.className="highcharts-tooltip-container";h(k,{position:"absolute",top:"1px",pointerEvents:f,zIndex:Math.max(this.options.style&&this.options.style.zIndex||
- 0,(w&&w.zIndex||0)+3)});n.doc.body.appendChild(k);this.renderer=a=new x(k,0,0,w,void 0,void 0,a.styledMode)}this.split?this.label=a.g(l):(this.label=a.label("",0,0,g.shape||"callout",null,null,g.useHTML,null,l).attr({padding:g.padding,r:g.borderRadius}),c||this.label.attr({fill:g.backgroundColor,"stroke-width":g.borderWidth}).css(g.style).css({pointerEvents:f}).shadow(g.shadow));c&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index));if(b.outside&&!b.split){var t=this.label,
- B=t.xSetter,p=t.ySetter;t.xSetter=function(c){B.call(t,b.distance);k.style.left=c+"px"};t.ySetter=function(c){p.call(t,b.distance);k.style.top=c+"px"}}this.label.on("mouseenter",q).on("mouseleave",r).attr({zIndex:8}).add()}return this.label};a.prototype.getPosition=function(b,a,c){var e=this.chart,l=this.distance,d={},m=e.inverted&&c.h||0,f,k=this.outside,q=k?y.documentElement.clientWidth-2*l:e.chartWidth,h=k?Math.max(y.body.scrollHeight,y.documentElement.scrollHeight,y.body.offsetHeight,y.documentElement.offsetHeight,
- y.documentElement.clientHeight):e.chartHeight,r=e.pointer.getChartPosition(),x=function(g){var d="x"===g;return[g,d?q:h,d?b:a].concat(k?[d?b*r.scaleX:a*r.scaleY,d?r.left-l+(c.plotX+e.plotLeft)*r.scaleX:r.top-l+(c.plotY+e.plotTop)*r.scaleY,0,d?q:h]:[d?b:a,d?c.plotX+e.plotLeft:c.plotY+e.plotTop,d?e.plotLeft:e.plotTop,d?e.plotLeft+e.plotWidth:e.plotTop+e.plotHeight])},t=x("y"),B=x("x"),p=!this.followPointer&&w(c.ttBelow,!e.inverted===!!c.negative),E=function(c,b,e,a,g,f,v){var q=k?"y"===c?l*r.scaleY:
- l*r.scaleX:l,h=(e-a)/2,G=a<g-l,F=g+l+a<b,L=g-q-e+h;g=g+q-h;if(p&&F)d[c]=g;else if(!p&&G)d[c]=L;else if(G)d[c]=Math.min(v-a,0>L-m?L:L-m);else if(F)d[c]=Math.max(f,g+m+e>b?g:g+m);else return!1},u=function(c,b,e,a,g){var m;g<l||g>b-l?m=!1:d[c]=g<e/2?1:g>b-a/2?b-a-2:g-e/2;return m},n=function(c){var b=t;t=B;B=b;f=c},M=function(){!1!==E.apply(0,t)?!1!==u.apply(0,B)||f||(n(!0),M()):f?d.x=d.y=0:(n(!0),M())};(e.inverted||1<this.len)&&n();M();return d};a.prototype.getXDateFormat=function(b,a,c){a=a.dateTimeLabelFormats;
- var e=c&&c.closestPointRange;return(e?this.getDateFormat(e,b.x,c.options.startOfWeek,a):a.day)||a.year};a.prototype.hide=function(b){var e=this;z.clearTimeout(this.hideTimer);b=w(b,this.options.hideDelay,500);this.isHidden||(this.hideTimer=x(function(){e.getLabel().fadeOut(b?void 0:b);e.isHidden=!0},b))};a.prototype.init=function(b,a){this.chart=b;this.options=a;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=a.split&&!b.inverted&&!b.polar;this.shared=a.shared||this.split;this.outside=
- w(a.outside,!(!b.scrollablePixelsX&&!b.scrollablePixelsY))};a.prototype.isStickyOnContact=function(){return!(this.followPointer||!this.options.stickOnContact||!this.inContact)};a.prototype.move=function(e,a,c,g){var l=this,d=l.now,m=!1!==l.options.animation&&!l.isHidden&&(1<Math.abs(e-d.x)||1<Math.abs(a-d.y)),f=l.followPointer||1<l.len;b(d,{x:m?(2*d.x+e)/3:e,y:m?(d.y+a)/2:a,anchorX:f?void 0:m?(2*d.anchorX+c)/3:c,anchorY:f?void 0:m?(d.anchorY+g)/2:g});l.getLabel().attr(d);l.drawTracker();m&&(z.clearTimeout(this.tooltipTimeout),
- this.tooltipTimeout=setTimeout(function(){l&&l.move(e,a,c,g)},32))};a.prototype.refresh=function(b,a){var c=this.chart,e=this.options,l=E(b),d=l[0],m={},f=[],q=e.formatter||this.defaultFormatter;m=this.shared;var h=c.styledMode;if(e.enabled){z.clearTimeout(this.hideTimer);this.followPointer=!this.split&&d.series.tooltipOptions.followPointer;var r=this.getAnchor(b,a);var x=r[0];var t=r[1];!m||!B(b)&&b.series&&b.series.noSharedTooltip?m=d.getLabelConfig():(c.pointer.applyInactiveState(l),l.forEach(function(c){c.setState("hover");
- f.push(c.getLabelConfig())}),m={x:d.category,y:d.y},m.points=f);this.len=f.length;b=q.call(m,this);q=d.series;this.distance=w(q.tooltipOptions.distance,16);if(!1===b)this.hide();else{if(this.split)this.renderSplit(b,l);else if(l=x,m=t,a&&c.pointer.isDirectTouch&&(l=a.chartX-c.plotLeft,m=a.chartY-c.plotTop),c.polar||!1===q.options.clip||q.shouldShowTooltip(l,m))a=this.getLabel(),e.style.width&&!h||a.css({width:this.chart.spacingBox.width+"px"}),a.attr({text:b&&b.join?b.join(""):b}),a.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+
- w(d.colorIndex,q.colorIndex)),h||a.attr({stroke:e.borderColor||d.color||q.color||C.neutralColor60}),this.updatePosition({plotX:x,plotY:t,negative:d.negative,ttBelow:d.ttBelow,h:r[2]||0});else{this.hide();return}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}k(this,"refresh")}};a.prototype.renderSplit=function(e,a){function c(c,b,e,a,l){void 0===l&&(l=!0);e?(b=S?0:da,c=p(c-a/2,Q.left,Q.right-a-(g.outside?K:0))):(b-=D,c=l?c-a-z:c+z,c=p(c,l?c:Q.left,Q.right));return{x:c,
- y:b}}var g=this,l=g.chart,d=g.chart,m=d.chartWidth,f=d.chartHeight,k=d.plotHeight,q=d.plotLeft,h=d.plotTop,r=d.pointer,x=d.scrollablePixelsY;x=void 0===x?0:x;var t=d.scrollablePixelsX,B=d.scrollingContainer;B=void 0===B?{scrollLeft:0,scrollTop:0}:B;var E=B.scrollLeft;B=B.scrollTop;var u=d.styledMode,z=g.distance,A=g.options,M=g.options.positioner,Q=g.outside&&"number"!==typeof t?y.documentElement.getBoundingClientRect():{left:E,right:E+m,top:B,bottom:B+f},U=g.getLabel(),T=this.renderer||l.renderer,
- S=!(!l.xAxis[0]||!l.xAxis[0].opposite);l=r.getChartPosition();var K=l.left;l=l.top;var D=h+B,ca=0,da=k-x;H(e)&&(e=[!1,e]);e=e.slice(0,a.length+1).reduce(function(b,e,l){if(!1!==e&&""!==e){l=a[l-1]||{isHeader:!0,plotX:a[0].plotX,plotY:k,series:{}};var d=l.isHeader,m=d?g:l.series;e=e.toString();var f=m.tt,v=l.isHeader;var r=l.series;var G="highcharts-color-"+w(l.colorIndex,r.colorIndex,"none");f||(f={padding:A.padding,r:A.borderRadius},u||(f.fill=A.backgroundColor,f["stroke-width"]=A.borderWidth),f=
- T.label("",0,0,A[v?"headerShape":"shape"]||"callout",void 0,void 0,A.useHTML).addClass((v?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+G).attr(f).add(U));f.isActive=!0;f.attr({text:e});u||f.css(A.style).shadow(A.shadow).attr({stroke:A.borderColor||l.color||r.color||C.neutralColor80});m=m.tt=f;v=m.getBBox();e=v.width+m.strokeWidth();d&&(ca=v.height,da+=ca,S&&(D-=ca));r=l.plotX;r=void 0===r?0:r;G=l.plotY;G=void 0===G?0:G;f=l.series;if(l.isHeader){r=q+r;var F=h+k/2}else{var L=f.xAxis,x=
- f.yAxis;r=L.pos+p(r,-z,L.len+z);f.shouldShowTooltip(0,x.pos-h+G,{ignoreX:!0})&&(F=x.pos+G)}r=p(r,Q.left-z,Q.right+z);"number"===typeof F?(v=v.height+1,G=M?M.call(g,e,v,l):c(r,F,d,e),b.push({align:M?0:void 0,anchorX:r,anchorY:F,boxWidth:e,point:l,rank:w(G.rank,d?1:0),size:v,target:G.y,tt:m,x:G.x})):m.isActive=!1}return b},[]);!M&&e.some(function(c){var b=(g.outside?K:0)+c.anchorX;return b<Q.left&&b+c.boxWidth<Q.right?!0:b<K-Q.left+c.boxWidth&&Q.right-b>b})&&(e=e.map(function(e){var a=c(e.anchorX,e.anchorY,
- e.point.isHeader,e.boxWidth,!1);return b(e,{target:a.y,x:a.x})}));g.cleanSplit();n.distribute(e,da);var Y=K,J=K;e.forEach(function(c){var b=c.x,e=c.boxWidth;c=c.isHeader;c||(g.outside&&K+b<Y&&(Y=K+b),!c&&g.outside&&Y+e>J&&(J=K+b))});e.forEach(function(c){var b=c.x,e=c.anchorX,a=c.pos,l=c.point.isHeader;a={visibility:"undefined"===typeof a?"hidden":"inherit",x:b,y:a+D,anchorX:e,anchorY:c.anchorY};if(g.outside&&b<e){var d=K-Y;0<d&&(l||(a.x=b+d,a.anchorX=e+d),l&&(a.x=(J-Y)/2,a.anchorX=e+d))}c.tt.attr(a)});
- e=g.container;x=g.renderer;g.outside&&e&&x&&(d=U.getBBox(),x.setSize(d.width+d.x,d.height+d.y,!1),e.style.left=Y+"px",e.style.top=l+"px")};a.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var b=this.chart,a=this.label,c=b.hoverPoint;if(a&&c){var g={x:0,y:0,width:0,height:0};c=this.getAnchor(c);var l=a.getBBox();c[0]+=b.plotLeft-a.translateX;c[1]+=b.plotTop-a.translateY;g.x=Math.min(0,c[0]);g.y=Math.min(0,c[1]);g.width=
- 0>c[0]?Math.max(Math.abs(c[0]),l.width-c[0]):Math.max(Math.abs(c[0]),l.width);g.height=0>c[1]?Math.max(Math.abs(c[1]),l.height-Math.abs(c[1])):Math.max(Math.abs(c[1]),l.height);this.tracker?this.tracker.attr(g):(this.tracker=a.renderer.rect(g).addClass("highcharts-tracker").add(a),b.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};a.prototype.styledModeFormat=function(b){return b.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,
- 'class="highcharts-color-{$1.colorIndex}"')};a.prototype.tooltipFooterHeaderFormatter=function(b,a){var c=a?"footer":"header",e=b.series,l=e.tooltipOptions,d=l.xDateFormat,f=e.xAxis,m=f&&"datetime"===f.options.type&&t(b.key),q=l[c+"Format"];a={isFooter:a,labelConfig:b};k(this,"headerFormatter",a,function(c){m&&!d&&(d=this.getXDateFormat(b,l,f));m&&d&&(b.point&&b.point.tooltipDateKeys||["key"]).forEach(function(c){q=q.replace("{point."+c+"}","{point."+c+":"+d+"}")});e.chart.styledMode&&(q=this.styledModeFormat(q));
- c.text=u(q,{point:b,series:e},this.chart)});return a.text};a.prototype.update=function(b){this.destroy();K(!0,this.chart.options.tooltip.userOptions,b);this.init(this.chart,K(!0,this.options,b))};a.prototype.updatePosition=function(b){var e=this.chart,c=e.pointer,a=this.getLabel(),l=b.plotX+e.plotLeft;e=b.plotY+e.plotTop;c=c.getChartPosition();b=(this.options.positioner||this.getPosition).call(this,a.width,a.height,b);if(this.outside){var d=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(a.width+
- d,a.height+d,!1);if(1!==c.scaleX||1!==c.scaleY)h(this.container,{transform:"scale("+c.scaleX+", "+c.scaleY+")"}),l*=c.scaleX,e*=c.scaleY;l+=c.left-b.x;e+=c.top-b.y}this.move(Math.round(b.x),Math.round(b.y||0),l,e)};return a}();n.Tooltip=a;return n.Tooltip});J(a,"Core/Pointer.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Tooltip.js"],a["Core/Utilities.js"]],function(a,n,C,D,z){var u=a.parse,y=n.charts,p=n.noop,h=z.addEvent,d=z.attr,f=z.css,b=z.defined,k=z.extend,
- B=z.find,t=z.fireEvent,H=z.isNumber,K=z.isObject,w=z.objectEach,E=z.offset,x=z.pick,r=z.splat;a=function(){function a(b,a){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=b;this.hasDragged=!1;this.options=a;this.init(b,a)}a.prototype.applyInactiveState=function(b){var a=[],c;(b||[]).forEach(function(b){c=b.series;a.push(c);c.linkedParent&&a.push(c.linkedParent);c.linkedSeries&&(a=a.concat(c.linkedSeries));c.navigatorSeries&&a.push(c.navigatorSeries)});
- this.chart.series.forEach(function(c){-1===a.indexOf(c)?c.setState("inactive",!0):c.options.inactiveOtherPoints&&c.setAllPointsToState("inactive")})};a.prototype.destroy=function(){var b=this;this.eventsToUnbind.forEach(function(b){return b()});this.eventsToUnbind=[];n.chartCount||(a.unbindDocumentMouseUp&&(a.unbindDocumentMouseUp=a.unbindDocumentMouseUp()),a.unbindDocumentTouchEnd&&(a.unbindDocumentTouchEnd=a.unbindDocumentTouchEnd()));clearInterval(b.tooltipTimeout);w(b,function(a,c){b[c]=void 0})};
- a.prototype.drag=function(b){var a=this.chart,c=a.options.chart,e=this.zoomHor,l=this.zoomVert,d=a.plotLeft,f=a.plotTop,k=a.plotWidth,q=a.plotHeight,h=this.mouseDownX||0,r=this.mouseDownY||0,x=K(c.panning)?c.panning&&c.panning.enabled:c.panning,w=c.panKey&&b[c.panKey+"Key"],t=b.chartX,B=b.chartY,p=this.selectionMarker;if(!p||!p.touch)if(t<d?t=d:t>d+k&&(t=d+k),B<f?B=f:B>f+q&&(B=f+q),this.hasDragged=Math.sqrt(Math.pow(h-t,2)+Math.pow(r-B,2)),10<this.hasDragged){var E=a.isInsidePlot(h-d,r-f,{visiblePlotOnly:!0});
- a.hasCartesianSeries&&(this.zoomX||this.zoomY)&&E&&!w&&!p&&(this.selectionMarker=p=a.renderer.rect(d,f,e?1:k,l?1:q,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),a.styledMode||p.attr({fill:c.selectionMarkerFill||u(C.highlightColor80).setOpacity(.25).get()}));p&&e&&(e=t-h,p.attr({width:Math.abs(e),x:(0<e?0:e)+h}));p&&l&&(e=B-r,p.attr({height:Math.abs(e),y:(0<e?0:e)+r}));E&&!p&&x&&a.pan(b,c.panning)}};a.prototype.dragStart=function(b){var a=this.chart;a.mouseIsDown=b.type;a.cancelClick=
- !1;a.mouseDownX=this.mouseDownX=b.chartX;a.mouseDownY=this.mouseDownY=b.chartY};a.prototype.drop=function(a){var e=this,c=this.chart,g=this.hasPinched;if(this.selectionMarker){var l={originalEvent:a,xAxis:[],yAxis:[]},d=this.selectionMarker,q=d.attr?d.attr("x"):d.x,h=d.attr?d.attr("y"):d.y,r=d.attr?d.attr("width"):d.width,x=d.attr?d.attr("height"):d.height,w;if(this.hasDragged||g)c.axes.forEach(function(c){if(c.zoomEnabled&&b(c.min)&&(g||e[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])&&H(q)&&H(h)){var d=
- c.horiz,f="touchend"===a.type?c.minPixelPadding:0,m=c.toValue((d?q:h)+f);d=c.toValue((d?q+r:h+x)-f);l[c.coll].push({axis:c,min:Math.min(m,d),max:Math.max(m,d)});w=!0}}),w&&t(c,"selection",l,function(b){c.zoom(k(b,g?{animation:!1}:null))});H(c.index)&&(this.selectionMarker=this.selectionMarker.destroy());g&&this.scaleGroups()}c&&H(c.index)&&(f(c.container,{cursor:c._cursor}),c.cancelClick=10<this.hasDragged,c.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};a.prototype.findNearestKDPoint=
- function(b,a,c){var e=this.chart,l=e.hoverPoint;e=e.tooltip;if(l&&e&&e.isStickyOnContact())return l;var d;b.forEach(function(b){var e=!(b.noSharedTooltip&&a)&&0>b.options.findNearestPointBy.indexOf("y");b=b.searchPoint(c,e);if((e=K(b,!0)&&b.series)&&!(e=!K(d,!0))){e=d.distX-b.distX;var g=d.dist-b.dist,l=(b.series.group&&b.series.group.zIndex)-(d.series.group&&d.series.group.zIndex);e=0<(0!==e&&a?e:0!==g?g:0!==l?l:d.series.index>b.series.index?-1:1)}e&&(d=b)});return d};a.prototype.getChartCoordinatesFromPoint=
- function(b,a){var c=b.series,e=c.xAxis;c=c.yAxis;var l=b.shapeArgs;if(e&&c){var d=x(b.clientX,b.plotX),f=b.plotY||0;b.isNode&&l&&H(l.x)&&H(l.y)&&(d=l.x,f=l.y);return a?{chartX:c.len+c.pos-f,chartY:e.len+e.pos-d}:{chartX:d+e.pos,chartY:f+c.pos}}if(l&&l.x&&l.y)return{chartX:l.x,chartY:l.y}};a.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var b=this.chart.container,a=E(b);this.chartPosition={left:a.left,top:a.top,scaleX:1,scaleY:1};var c=b.offsetWidth;b=b.offsetHeight;
- 2<c&&2<b&&(this.chartPosition.scaleX=a.width/c,this.chartPosition.scaleY=a.height/b);return this.chartPosition};a.prototype.getCoordinates=function(b){var a={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(c){a[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(b[c.horiz?"chartX":"chartY"])})});return a};a.prototype.getHoverData=function(b,a,c,g,l,d){var e=[];g=!(!g||!b);var f={chartX:d?d.chartX:void 0,chartY:d?d.chartY:void 0,shared:l};t(this,"beforeGetHoverData",f);var m=a&&!a.stickyTracking?
- [a]:c.filter(function(c){return f.filter?f.filter(c):c.visible&&!(!l&&c.directTouch)&&x(c.options.enableMouseTracking,!0)&&c.stickyTracking});var k=g||!d?b:this.findNearestKDPoint(m,l,d);a=k&&k.series;k&&(l&&!a.noSharedTooltip?(m=c.filter(function(c){return f.filter?f.filter(c):c.visible&&!(!l&&c.directTouch)&&x(c.options.enableMouseTracking,!0)&&!c.noSharedTooltip}),m.forEach(function(c){var b=B(c.points,function(c){return c.x===k.x&&!c.isNull});K(b)&&(c.chart.isBoosting&&(b=c.getPoint(b)),e.push(b))})):
- e.push(k));f={hoverPoint:k};t(this,"afterGetHoverData",f);return{hoverPoint:f.hoverPoint,hoverSeries:a,hoverPoints:e}};a.prototype.getPointFromEvent=function(b){b=b.target;for(var a;b&&!a;)a=b.point,b=b.parentNode;return a};a.prototype.onTrackerMouseOut=function(b){b=b.relatedTarget||b.toElement;var a=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!a||!b||a.stickyTracking||this.inClass(b,"highcharts-tooltip")||this.inClass(b,"highcharts-series-"+a.index)&&this.inClass(b,"highcharts-tracker")))a.onMouseOut()};
- a.prototype.inClass=function(b,a){for(var c;b;){if(c=d(b,"class")){if(-1!==c.indexOf(a))return!0;if(-1!==c.indexOf("highcharts-container"))return!1}b=b.parentNode}};a.prototype.init=function(b,a){this.options=a;this.chart=b;this.runChartClick=!(!a.chart.events||!a.chart.events.click);this.pinchDown=[];this.lastValidTouch={};D&&(b.tooltip=new D(b,a.tooltip),this.followTouchMove=x(a.tooltip.followTouchMove,!0));this.setDOMEvents()};a.prototype.normalize=function(b,a){var c=b.touches,e=c?c.length?c.item(0):
- x(c.changedTouches,b.changedTouches)[0]:b;a||(a=this.getChartPosition());c=e.pageX-a.left;e=e.pageY-a.top;c/=a.scaleX;e/=a.scaleY;return k(b,{chartX:Math.round(c),chartY:Math.round(e)})};a.prototype.onContainerClick=function(b){var a=this.chart,c=a.hoverPoint;b=this.normalize(b);var e=a.plotLeft,l=a.plotTop;a.cancelClick||(c&&this.inClass(b.target,"highcharts-tracker")?(t(c.series,"click",k(b,{point:c})),a.hoverPoint&&c.firePointEvent("click",b)):(k(b,this.getCoordinates(b)),a.isInsidePlot(b.chartX-
- e,b.chartY-l,{visiblePlotOnly:!0})&&t(a,"click",b)))};a.prototype.onContainerMouseDown=function(b){var a=1===((b.buttons||b.button)&1);b=this.normalize(b);if(n.isFirefox&&0!==b.button)this.onContainerMouseMove(b);if("undefined"===typeof b.button||a)this.zoomOption(b),a&&b.preventDefault&&b.preventDefault(),this.dragStart(b)};a.prototype.onContainerMouseLeave=function(b){var e=y[x(a.hoverChartIndex,-1)],c=this.chart.tooltip;b=this.normalize(b);e&&(b.relatedTarget||b.toElement)&&(e.pointer.reset(),
- e.pointer.chartPosition=void 0);c&&!c.isHidden&&this.reset()};a.prototype.onContainerMouseEnter=function(b){delete this.chartPosition};a.prototype.onContainerMouseMove=function(b){var a=this.chart;b=this.normalize(b);this.setHoverChartIndex();b.preventDefault||(b.returnValue=!1);("mousedown"===a.mouseIsDown||this.touchSelect(b))&&this.drag(b);a.openMenu||!this.inClass(b.target,"highcharts-tracker")&&!a.isInsidePlot(b.chartX-a.plotLeft,b.chartY-a.plotTop,{visiblePlotOnly:!0})||(this.inClass(b.target,
- "highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(b))};a.prototype.onDocumentTouchEnd=function(b){var e=y[x(a.hoverChartIndex,-1)];e&&e.pointer.drop(b)};a.prototype.onContainerTouchMove=function(b){if(this.touchSelect(b))this.onContainerMouseMove(b);else this.touch(b)};a.prototype.onContainerTouchStart=function(b){if(this.touchSelect(b))this.onContainerMouseDown(b);else this.zoomOption(b),this.touch(b,!0)};a.prototype.onDocumentMouseMove=function(b){var a=this.chart,c=this.chartPosition;
- b=this.normalize(b,c);var e=a.tooltip;!c||e&&e.isStickyOnContact()||a.isInsidePlot(b.chartX-a.plotLeft,b.chartY-a.plotTop,{visiblePlotOnly:!0})||this.inClass(b.target,"highcharts-tracker")||this.reset()};a.prototype.onDocumentMouseUp=function(b){var e=y[x(a.hoverChartIndex,-1)];e&&e.pointer.drop(b)};a.prototype.pinch=function(b){var a=this,c=a.chart,e=a.pinchDown,l=b.touches||[],d=l.length,f=a.lastValidTouch,q=a.hasZoom,h={},r=1===d&&(a.inClass(b.target,"highcharts-tracker")&&c.runTrackerClick||a.runChartClick),
- w={},t=a.selectionMarker;1<d&&(a.initiated=!0);q&&a.initiated&&!r&&!1!==b.cancelable&&b.preventDefault();[].map.call(l,function(c){return a.normalize(c)});"touchstart"===b.type?([].forEach.call(l,function(c,b){e[b]={chartX:c.chartX,chartY:c.chartY}}),f.x=[e[0].chartX,e[1]&&e[1].chartX],f.y=[e[0].chartY,e[1]&&e[1].chartY],c.axes.forEach(function(b){if(b.zoomEnabled){var a=c.bounds[b.horiz?"h":"v"],e=b.minPixelPadding,g=b.toPixels(Math.min(x(b.options.min,b.dataMin),b.dataMin)),l=b.toPixels(Math.max(x(b.options.max,
- b.dataMax),b.dataMax)),d=Math.max(g,l);a.min=Math.min(b.pos,Math.min(g,l)-e);a.max=Math.max(b.pos+b.len,d+e)}}),a.res=!0):a.followTouchMove&&1===d?this.runPointActions(a.normalize(b)):e.length&&(t||(a.selectionMarker=t=k({destroy:p,touch:!0},c.plotBox)),a.pinchTranslate(e,l,h,t,w,f),a.hasPinched=q,a.scaleGroups(h,w),a.res&&(a.res=!1,this.reset(!1,0)))};a.prototype.pinchTranslate=function(b,a,c,g,l,d){this.zoomHor&&this.pinchTranslateDirection(!0,b,a,c,g,l,d);this.zoomVert&&this.pinchTranslateDirection(!1,
- b,a,c,g,l,d)};a.prototype.pinchTranslateDirection=function(b,a,c,g,l,d,f,k){var e=this.chart,m=b?"x":"y",q=b?"X":"Y",h="chart"+q,v=b?"width":"height",r=e["plot"+(b?"Left":"Top")],G=e.inverted,x=e.bounds[b?"h":"v"],w=1===a.length,L=a[0][h],t=!w&&a[1][h];a=function(){"number"===typeof u&&20<Math.abs(L-t)&&(p=k||Math.abs(E-u)/Math.abs(L-t));B=(r-E)/p+L;M=e["plot"+(b?"Width":"Height")]/p};var M,B,p=k||1,E=c[0][h],u=!w&&c[1][h];a();c=B;if(c<x.min){c=x.min;var n=!0}else c+M>x.max&&(c=x.max-M,n=!0);n?(E-=
- .8*(E-f[m][0]),"number"===typeof u&&(u-=.8*(u-f[m][1])),a()):f[m]=[E,u];G||(d[m]=B-r,d[v]=M);d=G?1/p:p;l[v]=M;l[m]=c;g[G?b?"scaleY":"scaleX":"scale"+q]=p;g["translate"+q]=d*r+(E-d*L)};a.prototype.reset=function(b,a){var c=this.chart,e=c.hoverSeries,l=c.hoverPoint,d=c.hoverPoints,f=c.tooltip,m=f&&f.shared?d:l;b&&m&&r(m).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(b=!1)});if(b)f&&m&&r(m).length&&(f.refresh(m),f.shared&&d?d.forEach(function(c){c.setState(c.state,!0);c.series.isCartesian&&
- (c.series.xAxis.crosshair&&c.series.xAxis.drawCrosshair(null,c),c.series.yAxis.crosshair&&c.series.yAxis.drawCrosshair(null,c))}):l&&(l.setState(l.state,!0),c.axes.forEach(function(c){c.crosshair&&l.series[c.coll]===c&&c.drawCrosshair(null,l)})));else{if(l)l.onMouseOut();d&&d.forEach(function(c){c.setState()});if(e)e.onMouseOut();f&&f.hide(a);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c.axes.forEach(function(c){c.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}};
- a.prototype.runPointActions=function(b,d){var c=this.chart,e=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,l=e?e.shared:!1,f=d||c.hoverPoint,m=f&&f.series||c.hoverSeries;d=this.getHoverData(f,m,c.series,(!b||"touchmove"!==b.type)&&(!!d||m&&m.directTouch&&this.isDirectTouch),l,b);f=d.hoverPoint;m=d.hoverSeries;var k=d.hoverPoints;d=m&&m.tooltipOptions.followPointer&&!m.tooltipOptions.split;l=l&&m&&!m.noSharedTooltip;if(f&&(f!==c.hoverPoint||e&&e.isHidden)){(c.hoverPoints||[]).forEach(function(c){-1===
- k.indexOf(c)&&c.setState()});if(c.hoverSeries!==m)m.onMouseOver();this.applyInactiveState(k);(k||[]).forEach(function(c){c.setState("hover")});c.hoverPoint&&c.hoverPoint.firePointEvent("mouseOut");if(!f.series)return;c.hoverPoints=k;c.hoverPoint=f;f.firePointEvent("mouseOver");e&&e.refresh(l?k:f,b)}else d&&e&&!e.isHidden&&(f=e.getAnchor([{}],b),c.isInsidePlot(f[0],f[1],{visiblePlotOnly:!0})&&e.updatePosition({plotX:f[0],plotY:f[1]}));this.unDocMouseMove||(this.unDocMouseMove=h(c.container.ownerDocument,
- "mousemove",function(c){var b=y[a.hoverChartIndex];if(b)b.pointer.onDocumentMouseMove(c)}),this.eventsToUnbind.push(this.unDocMouseMove));c.axes.forEach(function(a){var e=x((a.crosshair||{}).snap,!0),g;e&&((g=c.hoverPoint)&&g.series[a.coll]===a||(g=B(k,function(c){return c.series[a.coll]===a})));g||!e?a.drawCrosshair(b,g):a.hideCrosshair()})};a.prototype.scaleGroups=function(b,a){var c=this.chart;c.series.forEach(function(e){var g=b||e.getPlotBox();e.xAxis&&e.xAxis.zoomEnabled&&e.group&&(e.group.attr(g),
- e.markerGroup&&(e.markerGroup.attr(g),e.markerGroup.clip(a?c.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(g))});c.clipRect.attr(a||c.clipBox)};a.prototype.setDOMEvents=function(){var b=this,d=this.chart.container,c=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(h(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(h(d,"mouseleave",
- this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=h(c,"mouseup",this.onDocumentMouseUp.bind(this)));for(var g=this.chart.renderTo.parentElement;g&&"BODY"!==g.tagName;)this.eventsToUnbind.push(h(g,"scroll",function(){delete b.chartPosition})),g=g.parentElement;n.hasTouch&&(this.eventsToUnbind.push(h(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(h(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),
- a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=h(c,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=function(){var b=this.chart,d=n.charts[x(a.hoverChartIndex,-1)];if(d&&d!==b)d.pointer.onContainerMouseLeave({relatedTarget:!0});d&&d.mouseIsDown||(a.hoverChartIndex=b.index)};a.prototype.touch=function(b,a){var c=this.chart,e;this.setHoverChartIndex();if(1===b.touches.length)if(b=this.normalize(b),(e=c.isInsidePlot(b.chartX-c.plotLeft,b.chartY-c.plotTop,
- {visiblePlotOnly:!0}))&&!c.openMenu){a&&this.runPointActions(b);if("touchmove"===b.type){a=this.pinchDown;var d=a[0]?4<=Math.sqrt(Math.pow(a[0].chartX-b.chartX,2)+Math.pow(a[0].chartY-b.chartY,2)):!1}x(d,!0)&&this.pinch(b)}else a&&this.reset();else 2===b.touches.length&&this.pinch(b)};a.prototype.touchSelect=function(b){return!(!this.chart.options.chart.zoomBySingleTouch||!b.touches||1!==b.touches.length)};a.prototype.zoomOption=function(b){var a=this.chart,c=a.options.chart;a=a.inverted;var e=c.zoomType||
- "";/touch/.test(b.type)&&(e=x(c.pinchType,e));this.zoomX=b=/x/.test(e);this.zoomY=c=/y/.test(e);this.zoomHor=b&&!a||c&&a;this.zoomVert=c&&!a||b&&a;this.hasZoom=b||c};return a}();"";return a});J(a,"Core/MSPointer.js",[a["Core/Globals.js"],a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,n,C){function u(){var b=[];b.item=function(b){return this[b]};k(t,function(a){b.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return b}function z(b,a,d,f){var k=y[n.hoverChartIndex||NaN];"touch"!==b.pointerType&&
- b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!k||(k=k.pointer,f(b),k[a]({type:d,target:b.currentTarget,preventDefault:h,touches:u()}))}var A=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(a,d)};return function(a,d){function f(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),y=a.charts,p=
- a.doc,h=a.noop,d=a.win,f=C.addEvent,b=C.css,k=C.objectEach,B=C.removeEvent,t={},H=!!d.PointerEvent;return function(k){function h(){return null!==k&&k.apply(this,arguments)||this}A(h,k);h.isRequired=function(){return!(a.hasTouch||!d.PointerEvent&&!d.MSPointerEvent)};h.prototype.batchMSEvents=function(b){b(this.chart.container,H?"pointerdown":"MSPointerDown",this.onContainerPointerDown);b(this.chart.container,H?"pointermove":"MSPointerMove",this.onContainerPointerMove);b(p,H?"pointerup":"MSPointerUp",
- this.onDocumentPointerUp)};h.prototype.destroy=function(){this.batchMSEvents(B);k.prototype.destroy.call(this)};h.prototype.init=function(a,d){k.prototype.init.call(this,a,d);this.hasZoom&&b(a.container,{"-ms-touch-action":"none","touch-action":"none"})};h.prototype.onContainerPointerDown=function(b){z(b,"onContainerTouchStart","touchstart",function(b){t[b.pointerId]={pageX:b.pageX,pageY:b.pageY,target:b.currentTarget}})};h.prototype.onContainerPointerMove=function(b){z(b,"onContainerTouchMove","touchmove",
- function(b){t[b.pointerId]={pageX:b.pageX,pageY:b.pageY};t[b.pointerId].target||(t[b.pointerId].target=b.currentTarget)})};h.prototype.onDocumentPointerUp=function(b){z(b,"onDocumentTouchEnd","touchend",function(b){delete t[b.pointerId]})};h.prototype.setDOMEvents=function(){k.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(f)};return h}(n)});J(a,"Core/Series/Point.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],
- a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A){var u=n.animObject,p=C.format,h=z.defaultOptions,d=A.addEvent,f=A.defined,b=A.erase,k=A.extend,B=A.fireEvent,t=A.getNestedProperty,H=A.isArray,K=A.isFunction,w=A.isNumber,E=A.isObject,x=A.merge,r=A.objectEach,q=A.pick,e=A.syncTimeout,m=A.removeEvent,c=A.uniqueKey;"";n=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.series=void 0;this.visible=!0;this.x=void 0}g.prototype.animateBeforeDestroy=function(){var c=this,b={x:c.startXPos,opacity:0},a,e=c.getGraphicalProps();e.singular.forEach(function(e){a="dataLabel"===e;c[e]=c[e].animate(a?{x:c[e].startXPos,y:c[e].startYPos,opacity:0}:b)});e.plural.forEach(function(b){c[b].forEach(function(b){b.element&&b.animate(k({x:c.startXPos},b.startYPos?{x:b.startXPos,y:b.startYPos}:{}))})})};g.prototype.applyOptions=function(c,
- b){var a=this.series,e=a.options.pointValKey||a.pointValKey;c=g.prototype.optionsToObject.call(this,c);k(this,c);this.options=this.options?k(this.options,c):c;c.group&&delete this.group;c.dataLabels&&delete this.dataLabels;e&&(this.y=g.prototype.getNestedProperty.call(this,e));this.formatPrefix=(this.isNull=q(this.isValid&&!this.isValid(),null===this.x||!w(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof b&&a.xAxis&&a.xAxis.hasNames&&(this.x=a.xAxis.nameToX(this));
- "undefined"===typeof this.x&&a&&(this.x="undefined"===typeof b?a.autoIncrement(this):b);return this};g.prototype.destroy=function(){function c(){if(a.graphic||a.dataLabel||a.dataLabels)m(a),a.destroyElements();for(h in a)a[h]=null}var a=this,g=a.series,d=g.chart;g=g.options.dataSorting;var f=d.hoverPoints,k=u(a.series.chart.renderer.globalAnimation),h;a.legendItem&&d.legend.destroyItem(a);f&&(a.setState(),b(f,a),f.length||(d.hoverPoints=null));if(a===d.hoverPoint)a.onMouseOut();g&&g.enabled?(this.animateBeforeDestroy(),
- e(c,k.duration)):c();d.pointCount--};g.prototype.destroyElements=function(c){var b=this;c=b.getGraphicalProps(c);c.singular.forEach(function(c){b[c]=b[c].destroy()});c.plural.forEach(function(c){b[c].forEach(function(c){c.element&&c.destroy()});delete b[c]})};g.prototype.firePointEvent=function(c,b,a){var e=this,g=this.series.options;(g.point.events[c]||e.options&&e.options.events&&e.options.events[c])&&e.importEvents();"click"===c&&g.allowPointSelect&&(a=function(c){e.select&&e.select(null,c.ctrlKey||
- c.metaKey||c.shiftKey)});B(e,c,b,a)};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(c){var b=
- this,a=[],e,g={singular:[],plural:[]};c=c||{graphic:1,dataLabel:1};c.graphic&&a.push("graphic","upperGraphic","shadowGroup");c.dataLabel&&a.push("dataLabel","dataLabelUpper","connector");for(e=a.length;e--;){var d=a[e];b[d]&&g.singular.push(d)}["dataLabel","connector"].forEach(function(a){var e=a+"s";c[a]&&b[e]&&g.plural.push(e)});return g};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(c){if(c)return 0===c.indexOf("custom.")?t(c,this.options):this[c]};g.prototype.getZone=function(){var c=this.series,b=c.zones;c=c.zoneAxis||"y";var a=0,e;for(e=b[a];this[c]>=e.value;)e=b[++a];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=e&&e.color&&!this.options.color?e.color:this.nonZonedColor;return e};g.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||
- this.graphic.element.nodeName))!==this.shapeType};g.prototype.init=function(b,a,e){this.series=b;this.applyOptions(a,e);this.id=f(this.id)?this.id:c();this.resolveColor();b.chart.pointCount++;B(this,"afterInit");return this};g.prototype.optionsToObject=function(c){var b={},a=this.series,e=a.options.keys,d=e||a.pointArrayMap||["y"],l=d.length,f=0,k=0;if(w(c)||null===c)b[d[0]]=c;else if(H(c))for(!e&&c.length>l&&(a=typeof c[0],"string"===a?b.name=c[0]:"number"===a&&(b.x=c[0]),f++);k<l;)e&&"undefined"===
- typeof c[f]||(0<d[k].indexOf(".")?g.prototype.setNestedProperty(b,c[f],d[k]):b[d[k]]=c[f]),f++,k++;else"object"===typeof c&&(b=c,c.dataLabels&&(a._hasPointLabels=!0),c.marker&&(a._hasPointMarkers=!0));return b};g.prototype.resolveColor=function(){var c=this.series;var b=c.chart.options.chart.colorCount;var a=c.chart.styledMode;delete this.nonZonedColor;if(c.options.colorByPoint){if(!a){b=c.options.colors||c.chart.options.colors;var e=b[c.colorCounter];b=b.length}a=c.colorCounter;c.colorCounter++;
- c.colorCounter===b&&(c.colorCounter=0)}else a||(e=c.color),a=c.colorIndex;this.colorIndex=q(this.options.colorIndex,a);this.color=q(this.options.color,e)};g.prototype.setNestedProperty=function(c,b,a){a.split(".").reduce(function(c,a,e,g){c[a]=g.length-1===e?b:E(c[a],!0)?c[a]:{};return c[a]},c);return c};g.prototype.tooltipFormatter=function(c){var b=this.series,a=b.tooltipOptions,e=q(a.valueDecimals,""),g=a.valuePrefix||"",d=a.valueSuffix||"";b.chart.styledMode&&(c=b.chart.tooltip.styledModeFormat(c));
- (b.pointArrayMap||["y"]).forEach(function(b){b="{point."+b;if(g||d)c=c.replace(RegExp(b+"}","g"),g+b+"}"+d);c=c.replace(RegExp(b+"}","g"),b+":,."+e+"f}")});return p(c,{point:this,series:this.series},b.chart)};g.prototype.update=function(c,b,a,e){function g(){d.applyOptions(c);var e=l&&d.hasDummyGraphic;e=null===d.y?!e:e;l&&e&&(d.graphic=l.destroy(),delete d.hasDummyGraphic);E(c,!0)&&(l&&l.element&&c&&c.marker&&"undefined"!==typeof c.marker.symbol&&(d.graphic=l.destroy()),c&&c.dataLabels&&d.dataLabel&&
- (d.dataLabel=d.dataLabel.destroy()),d.connector&&(d.connector=d.connector.destroy()));k=d.index;f.updateParallelArrays(d,k);h.data[k]=E(h.data[k],!0)||E(c,!0)?d.options:q(c,h.data[k]);f.isDirty=f.isDirtyData=!0;!f.fixedBox&&f.hasCartesianSeries&&(m.isDirtyBox=!0);"point"===h.legendType&&(m.isDirtyLegend=!0);b&&m.redraw(a)}var d=this,f=d.series,l=d.graphic,k,m=f.chart,h=f.options;b=q(b,!0);!1===e?g():d.firePointEvent("update",{options:c},g)};g.prototype.remove=function(c,b){this.series.removePoint(this.series.data.indexOf(this),
- c,b)};g.prototype.select=function(c,b){var a=this,e=a.series,g=e.chart;this.selectedStaging=c=q(c,!a.selected);a.firePointEvent(c?"select":"unselect",{accumulate:b},function(){a.selected=a.options.selected=c;e.options.data[e.data.indexOf(a)]=a.options;a.setState(c&&"select");b||g.getSelectedPoints().forEach(function(c){var b=c.series;c.selected&&c!==a&&(c.selected=c.options.selected=!1,b.options.data[b.data.indexOf(c)]=c.options,c.setState(g.hoverPoints&&b.options.inactiveOtherPoints?"inactive":""),
- c.firePointEvent("unselect"))})});delete this.selectedStaging};g.prototype.onMouseOver=function(c){var b=this.series.chart,a=b.pointer;c=c?a.normalize(c):a.getChartCoordinatesFromPoint(this,b.inverted);a.runPointActions(c,this)};g.prototype.onMouseOut=function(){var c=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(c.hoverPoints||[]).forEach(function(c){c.setState()});c.hoverPoints=c.hoverPoint=null};g.prototype.importEvents=function(){if(!this.hasImportedEvents){var c=
- this,b=x(c.series.options.point,c.options).events;c.events=b;r(b,function(b,a){K(b)&&d(c,a,b)});this.hasImportedEvents=!0}};g.prototype.setState=function(c,b){var e=this.series,g=this.state,d=e.options.states[c||"normal"]||{},f=h.plotOptions[e.type].marker&&e.options.marker,l=f&&!1===f.enabled,m=f&&f.states&&f.states[c||"normal"]||{},v=!1===m.enabled,r=e.stateMarkerGraphic,t=this.marker||{},x=e.chart,p=e.halo,u,E=f&&e.markerAttribs;c=c||"";if(!(c===this.state&&!b||this.selected&&"select"!==c||!1===
- d.enabled||c&&(v||l&&!1===m.enabled)||c&&t.states&&t.states[c]&&!1===t.states[c].enabled)){this.state=c;E&&(u=e.markerAttribs(this,c));if(this.graphic&&!this.hasDummyGraphic){g&&this.graphic.removeClass("highcharts-point-"+g);c&&this.graphic.addClass("highcharts-point-"+c);if(!x.styledMode){var M=e.pointAttribs(this,c);var n=q(x.options.chart.animation,d.animation);e.options.inactiveOtherPoints&&w(M.opacity)&&((this.dataLabels||[]).forEach(function(c){c&&c.animate({opacity:M.opacity},n)}),this.connector&&
- this.connector.animate({opacity:M.opacity},n));this.graphic.animate(M,n)}u&&this.graphic.animate(u,q(x.options.chart.animation,m.animation,f.animation));r&&r.hide()}else{if(c&&m){g=t.symbol||e.symbol;r&&r.currentSymbol!==g&&(r=r.destroy());if(u)if(r)r[b?"animate":"attr"]({x:u.x,y:u.y});else g&&(e.stateMarkerGraphic=r=x.renderer.symbol(g,u.x,u.y,u.width,u.height).add(e.markerGroup),r.currentSymbol=g);!x.styledMode&&r&&r.attr(e.pointAttribs(this,c))}r&&(r[c&&this.isInside?"show":"hide"](),r.element.point=
- this)}d=d.halo;u=(r=this.graphic||r)&&r.visibility||"inherit";d&&d.size&&r&&"hidden"!==u&&!this.isCluster?(p||(e.halo=p=x.renderer.path().add(r.parentGroup)),p.show()[b?"animate":"attr"]({d:this.haloPath(d.size)}),p.attr({"class":"highcharts-halo highcharts-color-"+q(this.colorIndex,e.colorIndex)+(this.className?" "+this.className:""),visibility:u,zIndex:-1}),p.point=this,x.styledMode||p.attr(k({fill:this.color||e.color,"fill-opacity":d.opacity},a.filterUserAttributes(d.attributes||{})))):p&&p.point&&
- p.point.haloPath&&p.animate({d:p.point.haloPath(0)},null,p.hide);B(this,"afterSetState",{state:c})}};g.prototype.haloPath=function(c){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-c,this.plotY-c,2*c,2*c)};return g}();return D.Point=n});J(a,"Core/Legend.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,n,C,D,z){var u=a.animObject,y=a.setAnimation,p=n.format;a=C.isFirefox;
- var h=C.marginNames;n=C.win;var d=z.addEvent,f=z.createElement,b=z.css,k=z.defined,B=z.discardElement,t=z.find,H=z.fireEvent,K=z.isNumber,w=z.merge,E=z.pick,x=z.relativeLength,r=z.stableSort,q=z.syncTimeout;z=z.wrap;var e=function(){function a(c,b){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={};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=c;this.init(c,b)}a.prototype.init=function(c,b){this.chart=c;this.setOptions(b);b.enabled&&(this.render(),d(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=d(this.chart,"render",function(){this.legend.proximatePositions();
- this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};a.prototype.setOptions=function(c){var b=E(c.padding,8);this.options=c;this.chart.styledMode||(this.itemStyle=c.itemStyle,this.itemHiddenStyle=w(this.itemStyle,c.itemHiddenStyle));this.itemMarginTop=c.itemMarginTop||0;this.itemMarginBottom=c.itemMarginBottom||0;this.padding=b;this.initialItemY=b-5;this.symbolWidth=E(c.symbolWidth,16);this.pages=[];this.proximate="proximate"===c.layout&&!this.chart.inverted;this.baseline=void 0};
- a.prototype.update=function(c,b){var a=this.chart;this.setOptions(w(!0,this.options,c));this.destroy();a.isDirtyLegend=a.isDirtyBox=!0;E(b,!0)&&a.redraw();H(this,"afterUpdate")};a.prototype.colorizeItem=function(c,b){c.legendGroup[b?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var a=this.options,e=c.legendItem,d=c.legendLine,g=c.legendSymbol,f=this.itemHiddenStyle.color;a=b?a.itemStyle.color:f;var k=b?c.color||f:f,m=c.options&&c.options.marker,h={fill:k};e&&
- e.css({fill:a,color:a});d&&d.attr({stroke:k});g&&(m&&g.isMarker&&(h=c.pointAttribs(),b||(h.stroke=h.fill=f)),g.attr(h))}H(this,"afterColorizeItem",{item:c,visible:b})};a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};a.prototype.positionItem=function(c){var b=this,a=this.options,e=a.symbolPadding,d=!a.rtl,f=c._legendItemPos;a=f[0];f=f[1];var m=c.checkbox,h=c.legendGroup;h&&h.element&&(e={translateX:d?a:this.legendWidth-
- a-2*e-4,translateY:f},d=function(){H(b,"afterPositionItem",{item:c})},k(h.translateY)?h.animate(e,void 0,d):(h.attr(e),d()));m&&(m.x=a,m.y=f)};a.prototype.destroyItem=function(c){var b=c.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(b){c[b]&&(c[b]=c[b].destroy())});b&&B(c.checkbox)};a.prototype.destroy=function(){function c(c){this[c]&&(this[c]=this[c].destroy())}this.getAllItems().forEach(function(b){["legendItem","legendGroup"].forEach(c,b)});"clipRect up down pager nav box title group".split(" ").forEach(c,
- this);this.display=null};a.prototype.positionCheckboxes=function(){var c=this.group&&this.group.alignAttr,a=this.clipHeight||this.legendHeight,e=this.titleHeight;if(c){var d=c.translateY;this.allItems.forEach(function(g){var f=g.checkbox;if(f){var l=d+e+f.y+(this.scrollOffset||0)+3;b(f,{left:c.translateX+g.checkboxOffset+f.x-20+"px",top:l+"px",display:this.proximate||l>d-6&&l<d+a-6?"":"none"})}},this)}};a.prototype.renderTitle=function(){var c=this.options,b=this.padding,a=c.title,e=0;a.text&&(this.title||
- (this.title=this.chart.renderer.label(a.text,b-3,b-4,null,null,null,c.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(a.style),this.title.add(this.group)),a.width||this.title.css({width:this.maxLegendWidth+"px"}),c=this.title.getBBox(),e=c.height,this.offsetWidth=c.width,this.contentGroup.attr({translateY:e}));this.titleHeight=e};a.prototype.setText=function(c){var b=this.options;c.legendItem.attr({text:b.labelFormat?p(b.labelFormat,c,this.chart):b.labelFormatter.call(c)})};
- a.prototype.renderItem=function(c){var b=this.chart,a=b.renderer,e=this.options,d=this.symbolWidth,f=e.symbolPadding||0,k=this.itemStyle,m=this.itemHiddenStyle,h="horizontal"===e.layout?E(e.itemDistance,20):0,q=!e.rtl,r=c.legendItem,t=!c.series,x=!t&&c.series.drawLegendSymbol?c.series:c,B=x.options,p=this.createCheckboxForItem&&B&&B.showCheckbox;B=d+f+h+(p?20:0);var u=e.useHTML,n=c.options.className;r||(c.legendGroup=a.g("legend-item").addClass("highcharts-"+x.type+"-series highcharts-color-"+c.colorIndex+
- (n?" "+n:"")+(t?" highcharts-series-"+c.index:"")).attr({zIndex:1}).add(this.scrollGroup),c.legendItem=r=a.text("",q?d+f:-f,this.baseline||0,u),b.styledMode||r.css(w(c.visible?k:m)),r.attr({align:q?"left":"right",zIndex:2}).add(c.legendGroup),this.baseline||(this.fontMetrics=a.fontMetrics(b.styledMode?12:k.fontSize,r),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,r.attr("y",this.baseline),this.symbolHeight=e.symbolHeight||this.fontMetrics.f,e.squareSymbol&&(this.symbolWidth=E(e.symbolWidth,
- Math.max(this.symbolHeight,16)),B=this.symbolWidth+f+h+(p?20:0),q&&r.attr("x",this.symbolWidth+f))),x.drawLegendSymbol(this,c),this.setItemEvents&&this.setItemEvents(c,r,u));p&&!c.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(c);this.colorizeItem(c,c.visible);!b.styledMode&&k.width||r.css({width:(e.itemWidth||this.widthOption||b.spacingBox.width)-B+"px"});this.setText(c);b=r.getBBox();c.itemWidth=c.checkboxOffset=e.itemWidth||c.legendItemWidth||b.width+B;this.maxItemWidth=Math.max(this.maxItemWidth,
- c.itemWidth);this.totalItemWidth+=c.itemWidth;this.itemHeight=c.itemHeight=Math.round(c.legendItemHeight||b.height||this.symbolHeight)};a.prototype.layoutItem=function(c){var b=this.options,a=this.padding,e="horizontal"===b.layout,d=c.itemHeight,f=this.itemMarginBottom,k=this.itemMarginTop,m=e?E(b.itemDistance,20):0,h=this.maxLegendWidth;b=b.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:c.itemWidth;e&&this.itemX-a+b>h&&(this.itemX=a,this.lastLineHeight&&(this.itemY+=k+this.lastLineHeight+
- f),this.lastLineHeight=0);this.lastItemY=k+this.itemY+f;this.lastLineHeight=Math.max(d,this.lastLineHeight);c._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=b:(this.itemY+=k+d+f,this.lastLineHeight=d);this.offsetWidth=this.widthOption||Math.max((e?this.itemX-a-(c.checkbox?0:m):b)+a,this.offsetWidth)};a.prototype.getAllItems=function(){var c=[];this.chart.series.forEach(function(b){var a=b&&b.options;b&&E(a.showInLegend,k(a.linkedTo)?!1:void 0,!0)&&(c=c.concat(b.legendItems||("point"===a.legendType?
- b.data:b)))});H(this,"afterGetAllItems",{allItems:c});return c};a.prototype.getAlignment=function(){var c=this.options;return this.proximate?c.align.charAt(0)+"tv":c.floating?"":c.align.charAt(0)+c.verticalAlign.charAt(0)+c.layout.charAt(0)};a.prototype.adjustMargins=function(c,b){var a=this.chart,e=this.options,d=this.getAlignment();d&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(g,f){g.test(d)&&!k(c[f])&&(a[h[f]]=Math.max(a[h[f]],a.legend[(f+1)%2?"legendHeight":
- "legendWidth"]+[1,-1,-1,1][f]*e[f%2?"x":"y"]+E(e.margin,12)+b[f]+(a.titleOffset[f]||0)))})};a.prototype.proximatePositions=function(){var c=this.chart,b=[],a="left"===this.options.align;this.allItems.forEach(function(e){var d;var g=a;if(e.yAxis){e.xAxis.options.reversed&&(g=!g);e.points&&(d=t(g?e.points:e.points.slice(0).reverse(),function(c){return K(c.plotY)}));g=this.itemMarginTop+e.legendItem.getBBox().height+this.itemMarginBottom;var f=e.yAxis.top-c.plotTop;e.visible?(d=d?d.plotY:e.yAxis.height,
- d+=f-.3*g):d=f+e.yAxis.height;b.push({target:d,size:g,item:e})}},this);C.distribute(b,c.plotHeight);b.forEach(function(b){b.item._legendItemPos[1]=c.plotTop-c.spacing[0]+b.pos})};a.prototype.render=function(){var c=this.chart,b=c.renderer,a=this.group,e=this.box,d=this.options,f=this.padding;this.itemX=f;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=x(d.width,c.spacingBox.width-f);var k=c.spacingBox.width-2*f-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,
- 2))&&(k/=2);this.maxLegendWidth=this.widthOption||k;a||(this.group=a=b.g("legend").addClass(d.className||"").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(a),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();var m=this.getAllItems();r(m,function(c,b){return(c.options&&c.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});d.reversed&&m.reverse();this.allItems=m;this.display=k=!!m.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=
- 0;m.forEach(this.renderItem,this);m.forEach(this.layoutItem,this);m=(this.widthOption||this.offsetWidth)+f;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h);h+=f;e||(this.box=e=b.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(a),e.isNew=!0);c.styledMode||e.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);0<m&&0<h&&(e[e.isNew?"attr":"animate"](e.crisp.call({},{x:0,y:0,width:m,height:h},
- e.strokeWidth())),e.isNew=!1);e[k?"show":"hide"]();c.styledMode&&"none"===a.getStyle("display")&&(m=h=0);this.legendWidth=m;this.legendHeight=h;k&&this.align();this.proximate||this.positionItems();H(this,"afterRender")};a.prototype.align=function(c){void 0===c&&(c=this.chart.spacingBox);var b=this.chart,a=this.options,e=c.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<b.titleOffset[0]?e+=b.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<b.titleOffset[2]&&(e-=b.titleOffset[2]);e!==c.y&&(c=
- w(c,{y:e}));this.group.align(w(a,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":a.verticalAlign}),!0,c)};a.prototype.handleOverflow=function(c){var b=this,a=this.chart,e=a.renderer,d=this.options,f=d.y,k=this.padding;f=a.spacingBox.height+("top"===d.verticalAlign?-f:f)-k;var m=d.maxHeight,h,q=this.clipRect,r=d.navigation,t=E(r.animation,!0),B=r.arrowSize||12,x=this.nav,p=this.pages,w,u=this.allItems,M=function(c){"number"===typeof c?q.attr({height:c}):q&&(b.clipRect=
- q.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=c?"rect("+k+"px,9999px,"+(k+c)+"px,0)":"auto")},n=function(c){b[c]=e.circle(0,0,1.3*B).translate(B/2,B/2).add(x);a.styledMode||b[c].attr("fill","rgba(0,0,0,0.0001)");return b[c]};"horizontal"!==d.layout||"middle"===d.verticalAlign||d.floating||(f/=2);m&&(f=Math.min(f,m));p.length=0;c&&0<f&&c>f&&!1!==r.enabled?(this.clipHeight=h=Math.max(f-20-this.titleHeight-k,0),this.currentPage=E(this.currentPage,1),this.fullHeight=
- c,u.forEach(function(c,b){var a=c._legendItemPos[1],e=Math.round(c.legendItem.getBBox().height),d=p.length;if(!d||a-p[d-1]>h&&(w||a)!==p[d-1])p.push(w||a),d++;c.pageIx=d-1;w&&(u[b-1].pageIx=d-1);b===u.length-1&&a+e-p[d-1]>h&&a!==w&&(p.push(a),c.pageIx=d);a!==w&&(w=a)}),q||(q=b.clipRect=e.clipRect(0,k,9999,0),b.contentGroup.clip(q)),M(h),x||(this.nav=x=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,B,B).add(x),n("upTracker").on("click",function(){b.scroll(-1,t)}),this.pager=
- e.text("",15,10).addClass("highcharts-legend-navigation"),a.styledMode||this.pager.css(r.style),this.pager.add(x),this.down=e.symbol("triangle-down",0,0,B,B).add(x),n("downTracker").on("click",function(){b.scroll(1,t)})),b.scroll(0),c=f):x&&(M(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return c};a.prototype.scroll=function(c,b){var a=this,e=this.chart,d=this.pages,g=d.length,f=this.currentPage+c;c=this.clipHeight;var k=this.options.navigation,m=this.pager,h=this.padding;
- f>g&&(f=g);0<f&&("undefined"!==typeof b&&y(b,e),this.nav.attr({translateX:h,translateY:c+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(c){c.attr({"class":1===f?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),m.attr({text:f+"/"+g}),[this.down,this.downTracker].forEach(function(c){c.attr({x:18+this.pager.getBBox().width,"class":f===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:1===
- f?k.inactiveColor:k.activeColor}),this.upTracker.css({cursor:1===f?"default":"pointer"}),this.down.attr({fill:f===g?k.inactiveColor:k.activeColor}),this.downTracker.css({cursor:f===g?"default":"pointer"})),this.scrollOffset=-d[f-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=f,this.positionCheckboxes(),b=u(E(b,e.renderer.globalAnimation,!0)),q(function(){H(a,"afterScroll",{currentPage:f})},b.duration))};a.prototype.setItemEvents=function(c,b,a){var e=
- this,d=e.chart.renderer.boxWrapper,g=c instanceof D,f="highcharts-legend-"+(g?"point":"series")+"-active",l=e.chart.styledMode;(a?[b,c.legendSymbol]:[c.legendGroup]).forEach(function(a){if(a)a.on("mouseover",function(){c.visible&&e.allItems.forEach(function(b){c!==b&&b.setState("inactive",!g)});c.setState("hover");c.visible&&d.addClass(f);l||b.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||b.css(w(c.visible?e.itemStyle:e.itemHiddenStyle));e.allItems.forEach(function(b){c!==
- b&&b.setState("",!g)});d.removeClass(f);c.setState()}).on("click",function(b){var a=function(){c.setVisible&&c.setVisible();e.allItems.forEach(function(b){c!==b&&b.setState(c.visible?"inactive":"",!g)})};d.removeClass(f);b={browserEvent:b};c.firePointEvent?c.firePointEvent("legendItemClick",b,a):H(c,"legendItemClick",b,a)})})};a.prototype.createCheckboxForItem=function(c){c.checkbox=f("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:c.selected,defaultChecked:c.selected},this.options.itemCheckboxStyle,
- this.chart.container);d(c.checkbox,"click",function(b){H(c.series||c,"checkboxClick",{checked:b.target.checked,item:c},function(){c.select()})})};return a}();(/Trident\/7\.0/.test(n.navigator&&n.navigator.userAgent)||a)&&z(e.prototype,"positionItem",function(b,c){var a=this,e=function(){c._legendItemPos&&b.call(a,c)};e();a.bubbleLegend||setTimeout(e)});C.Legend=e;return C.Legend});J(a,"Core/Series/SeriesRegistry.js",[a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],
- function(a,n,C,D){var u=n.defaultOptions,A=D.error,y=D.extendClass,p=D.merge,h;(function(d){function f(b,a){var f=u.plotOptions||{},k=a.defaultOptions;a.prototype.pointClass||(a.prototype.pointClass=C);a.prototype.type=b;k&&(f[b]=k);d.seriesTypes[b]=a}d.seriesTypes=a.seriesTypes;d.getSeries=function(b,a){void 0===a&&(a={});var f=b.options.chart;f=a.type||f.type||f.defaultSeriesType||"";var k=d.seriesTypes[f];d||A(17,!0,b,{missingModuleFor:f});f=new k;"function"===typeof f.init&&f.init(b,a);return f};
- d.registerSeriesType=f;d.seriesType=function(b,a,h,t,n){var k=u.plotOptions||{};a=a||"";k[b]=p(k[a],h);f(b,y(d.seriesTypes[a]||function(){},t));d.seriesTypes[b].prototype.type=b;n&&(d.seriesTypes[b].prototype.pointClass=y(C,n));return d.seriesTypes[b]}})(h||(h={}));a.seriesType=h.seriesType;return h});J(a,"Core/Chart/Chart.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/FormatUtilities.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Legend.js"],a["Core/MSPointer.js"],
- a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],a["Core/Pointer.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Time.js"],a["Core/Utilities.js"],a["Core/Renderer/HTML/AST.js"]],function(a,n,C,D,z,A,y,p,h,d,f,b,k,B,t){var u=a.animate,K=a.animObject,w=a.setAnimation,E=C.numberFormat,x=D.registerEventOptions,r=z.charts,q=z.doc,e=z.marginNames,m=z.win,c=p.defaultOptions,g=p.defaultTime,l=b.seriesTypes,v=B.addEvent,G=B.attr,L=B.cleanRecursively,F=B.createElement,
- N=B.css,O=B.defined,aa=B.discardElement,V=B.erase,ba=B.error,I=B.extend,P=B.find,J=B.fireEvent,Z=B.getStyle,ha=B.isArray,M=B.isNumber,Q=B.isObject,U=B.isString,T=B.merge,S=B.objectEach,R=B.pick,W=B.pInt,ca=B.relativeLength,da=B.removeEvent,Y=B.splat,ea=B.syncTimeout,ia=B.uniqueKey;a=function(){function b(c,b,a){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(c,b,a)}b.chart=function(c,a,e){return new b(c,a,e)};b.prototype.getArgs=function(c,b,a){U(c)||c.nodeName?(this.renderTo=c,this.init(b,a)):this.init(c,b)};b.prototype.init=
- function(b,a){var e=b.plotOptions||{};J(this,"init",{args:arguments},function(){var d=T(c,b),g=d.chart;S(d.plotOptions,function(c,b){Q(c)&&(c.tooltip=e[b]&&T(e[b].tooltip)||void 0)});d.tooltip.userOptions=b.chart&&b.chart.forExport&&b.tooltip.userOptions||b.tooltip;this.userOptions=b;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=a;this.isResizing=0;this.options=d;this.axes=[];this.series=[];this.time=b.time&&Object.keys(b.time).length?new k(b.time):z.time;
- this.numberFormatter=g.numberFormatter||E;this.styledMode=g.styledMode;this.hasCartesianSeries=g.showAxes;this.index=r.length;r.push(this);z.chartCount++;x(this,g);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;J(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(c){var b=this.options.chart;b=c.type||b.type||b.defaultSeriesType;var a=l[b];a||ba(17,!0,this,{missingModuleFor:b});b=new a;"function"===typeof b.init&&b.init(this,c);return b};b.prototype.setSeriesData=
- function(){this.getSeriesOrderByLinks().forEach(function(c){c.points||c.data||!c.enabledDataSorting||c.setData(c.options.data,!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(c,b){return c.linkedSeries.length||b.linkedSeries.length?b.linkedSeries.length-c.linkedSeries.length:0})};b.prototype.orderSeries=function(c){var b=this.series;c=c||0;for(var a=b.length;c<a;++c)b[c]&&(b[c].index=c,b[c].name=b[c].getName())};b.prototype.isInsidePlot=function(c,b,a){void 0===
- a&&(a={});var e=this.inverted,d=this.plotBox,g=this.plotLeft,f=this.plotTop,l=this.scrollablePlotBox,k=0;var m=0;a.visiblePlotOnly&&this.scrollingContainer&&(m=this.scrollingContainer,k=m.scrollLeft,m=m.scrollTop);var h=a.series;d=a.visiblePlotOnly&&l||d;l=a.inverted?b:c;b=a.inverted?c:b;c={x:l,y:b,isInsidePlot:!0};if(!a.ignoreX){var q=h&&(e?h.yAxis:h.xAxis)||{pos:g,len:Infinity};l=a.paneCoordinates?q.pos+l:g+l;l>=Math.max(k+g,q.pos)&&l<=Math.min(k+g+d.width,q.pos+q.len)||(c.isInsidePlot=!1)}!a.ignoreY&&
- c.isInsidePlot&&(e=h&&(e?h.xAxis:h.yAxis)||{pos:f,len:Infinity},a=a.paneCoordinates?e.pos+b:f+b,a>=Math.max(m+f,e.pos)&&a<=Math.min(m+f+d.height,e.pos+e.len)||(c.isInsidePlot=!1));J(this,"afterIsInsidePlot",c);return c.isInsidePlot};b.prototype.redraw=function(c){J(this,"beforeRedraw");var b=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,e=this.pointer,d=this.legend,g=this.userOptions.legend,f=this.renderer,l=f.isHidden(),k=[],m=this.isDirtyBox,h=this.isDirtyLegend;this.setResponsive&&
- this.setResponsive(!1);w(this.hasRendered?c:!1,this);l&&this.temporaryDisplay();this.layOutTitles();for(c=a.length;c--;){var q=a[c];if(q.options.stacking||q.options.centerInCategory){var r=!0;if(q.isDirty){var v=!0;break}}}if(v)for(c=a.length;c--;)q=a[c],q.options.stacking&&(q.isDirty=!0);a.forEach(function(c){c.isDirty&&("point"===c.options.legendType?("function"===typeof c.updateTotals&&c.updateTotals(),h=!0):g&&(g.labelFormatter||g.labelFormat)&&(h=!0));c.isDirtyData&&J(c,"updatedData")});h&&d&&
- d.options.enabled&&(d.render(),this.isDirtyLegend=!1);r&&this.getStacks();b.forEach(function(c){c.updateNames();c.setScale()});this.getMargins();b.forEach(function(c){c.isDirty&&(m=!0)});b.forEach(function(c){var b=c.min+","+c.max;c.extKey!==b&&(c.extKey=b,k.push(function(){J(c,"afterSetExtremes",I(c.eventArgs,c.getExtremes()));delete c.eventArgs}));(m||r)&&c.redraw()});m&&this.drawChartBox();J(this,"predraw");a.forEach(function(c){(m||c.isDirty)&&c.visible&&c.redraw();c.isDirtyData=!1});e&&e.reset(!0);
- f.draw();J(this,"redraw");J(this,"render");l&&this.temporaryDisplay(!0);k.forEach(function(c){c.call()})};b.prototype.get=function(c){function b(b){return b.id===c||b.options&&b.options.id===c}for(var a=this.series,e=P(this.axes,b)||P(this.series,b),d=0;!e&&d<a.length;d++)e=P(a[d].points||[],b);return e};b.prototype.getAxes=function(){var c=this,b=this.options,a=b.xAxis=Y(b.xAxis||{});b=b.yAxis=Y(b.yAxis||{});J(this,"getAxes");a.forEach(function(c,b){c.index=b;c.isX=!0});b.forEach(function(c,b){c.index=
- b});a.concat(b).forEach(function(b){new n(c,b)});J(this,"afterGetAxes")};b.prototype.getSelectedPoints=function(){var c=[];this.series.forEach(function(b){c=c.concat(b.getPointsCollection().filter(function(c){return R(c.selectedStaging,c.selected)}))});return c};b.prototype.getSelectedSeries=function(){return this.series.filter(function(c){return c.selected})};b.prototype.setTitle=function(c,b,a){this.applyDescription("title",c);this.applyDescription("subtitle",b);this.applyDescription("caption",
- void 0);this.layOutTitles(a)};b.prototype.applyDescription=function(c,b){var a=this,e="title"===c?{color:h.neutralColor80,fontSize:this.options.isStock?"16px":"18px"}:{color:h.neutralColor60};e=this.options[c]=T(!this.styledMode&&{style:e},this.options[c],b);var d=this[c];d&&b&&(this[c]=d=d.destroy());e&&!d&&(d=this.renderer.text(e.text,0,0,e.useHTML).attr({align:e.align,"class":"highcharts-"+c,zIndex:e.zIndex||4}).add(),d.update=function(b){a[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[c]](b)},
- this.styledMode||d.css(e.style),this[c]=d)};b.prototype.layOutTitles=function(c){var b=[0,0,0],a=this.renderer,e=this.spacingBox;["title","subtitle","caption"].forEach(function(c){var d=this[c],g=this.options[c],f=g.verticalAlign||"top";c="title"===c?"top"===f?-3:0:"top"===f?b[0]+2:0;var l;if(d){this.styledMode||(l=g.style&&g.style.fontSize);l=a.fontMetrics(l,d).b;d.css({width:(g.width||e.width+(g.widthAdjust||0))+"px"});var k=Math.round(d.getBBox(g.useHTML).height);d.align(I({y:"bottom"===f?l:c+
- l,height:k},g),!1,"spacingBox");g.floating||("top"===f?b[0]=Math.ceil(b[0]+k):"bottom"===f&&(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 d=!this.titleOffset||this.titleOffset.join(",")!==b.join(",");this.titleOffset=b;J(this,"afterLayOutTitles");!this.isDirtyBox&&d&&(this.isDirtyBox=this.isDirtyLegend=d,this.hasRendered&&R(c,!0)&&
- this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var c=this.options.chart,b=c.width;c=c.height;var a=this.renderTo;O(b)||(this.containerWidth=Z(a,"width"));O(c)||(this.containerHeight=Z(a,"height"));this.chartWidth=Math.max(0,b||this.containerWidth||600);this.chartHeight=Math.max(0,ca(c,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};b.prototype.temporaryDisplay=function(c){var b=this.renderTo;if(c)for(;b&&b.style;)b.hcOrigStyle&&(N(b,b.hcOrigStyle),delete b.hcOrigStyle),
- b.hcOrigDetached&&(q.body.removeChild(b),b.hcOrigDetached=!1),b=b.parentNode;else for(;b&&b.style;){q.body.contains(b)||b.parentNode||(b.hcOrigDetached=!0,q.body.appendChild(b));if("none"===Z(b,"display",!1)||b.hcOricDetached)b.hcOrigStyle={display:b.style.display,height:b.style.height,overflow:b.style.overflow},c={display:"block",overflow:"hidden"},b!==this.renderTo&&(c.height=0),N(b,c),b.offsetWidth||b.style.setProperty("display","block","important");b=b.parentNode;if(b===q.body)break}};b.prototype.setClassName=
- function(c){this.container.className="highcharts-container "+(c||"")};b.prototype.getContainer=function(){var c=this.options,b=c.chart,a=ia(),e,d=this.renderTo;d||(this.renderTo=d=b.renderTo);U(d)&&(this.renderTo=d=q.getElementById(d));d||ba(13,!0,this);var g=W(G(d,"data-highcharts-chart"));M(g)&&r[g]&&r[g].hasRendered&&r[g].destroy();G(d,"data-highcharts-chart",this.index);d.innerHTML="";b.skipClone||d.offsetWidth||this.temporaryDisplay();this.getChartSize();g=this.chartWidth;var l=this.chartHeight;
- N(d,{overflow:"hidden"});this.styledMode||(e=I({position:"relative",overflow:"hidden",width:g+"px",height:l+"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=a=F("div",{id:a},e,d);this._cursor=a.style.cursor;this.renderer=new (f.getRendererType(b.renderer))(a,g,l,void 0,b.forExport,c.exporting&&c.exporting.allowHTML,this.styledMode);w(void 0,this);this.setClassName(b.className);
- if(this.styledMode)for(var k in c.defs)this.renderer.definition(c.defs[k]);else this.renderer.setStyle(b.style);this.renderer.chartIndex=this.index;J(this,"afterGetContainer")};b.prototype.getMargins=function(c){var b=this.spacing,a=this.margin,e=this.titleOffset;this.resetMargins();e[0]&&!O(a[0])&&(this.plotTop=Math.max(this.plotTop,e[0]+b[0]));e[2]&&!O(a[2])&&(this.marginBottom=Math.max(this.marginBottom,e[2]+b[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(a,b);J(this,"getMargins");
- c||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var c=this,b=c.axisOffset=[0,0,0,0],a=c.colorAxis,d=c.margin,g=function(c){c.forEach(function(c){c.visible&&c.getOffset()})};c.hasCartesianSeries?g(c.axes):a&&a.length&&g(a);e.forEach(function(a,e){O(d[e])||(c[a]+=b[e])});c.setChartSize()};b.prototype.reflow=function(c){var b=this,a=b.options.chart,e=b.renderTo,d=O(a.width)&&O(a.height),g=a.width||Z(e,"width");a=a.height||Z(e,"height");e=c?c.target:m;delete b.pointer.chartPosition;if(!d&&
- !b.isPrinting&&g&&a&&(e===m||e===q)){if(g!==b.containerWidth||a!==b.containerHeight)B.clearTimeout(b.reflowTimeout),b.reflowTimeout=ea(function(){b.container&&b.setSize(void 0,void 0,!1)},c?100:0);b.containerWidth=g;b.containerHeight=a}};b.prototype.setReflow=function(c){var b=this;!1===c||this.unbindReflow?!1===c&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=v(m,"resize",function(c){b.options&&b.reflow(c)}),v(this,"destroy",this.unbindReflow))};b.prototype.setSize=
- function(c,b,a){var e=this,d=e.renderer;e.isResizing+=1;w(a,e);a=d.globalAnimation;e.oldChartHeight=e.chartHeight;e.oldChartWidth=e.chartWidth;"undefined"!==typeof c&&(e.options.chart.width=c);"undefined"!==typeof b&&(e.options.chart.height=b);e.getChartSize();e.styledMode||(a?u:N)(e.container,{width:e.chartWidth+"px",height:e.chartHeight+"px"},a);e.setChartSize(!0);d.setSize(e.chartWidth,e.chartHeight,a);e.axes.forEach(function(c){c.isDirty=!0;c.setScale()});e.isDirtyLegend=!0;e.isDirtyBox=!0;e.layOutTitles();
- e.getMargins();e.redraw(a);e.oldChartHeight=null;J(e,"resize");ea(function(){e&&J(e,"endResize",null,function(){--e.isResizing})},K(a).duration)};b.prototype.setChartSize=function(c){var b=this.inverted,a=this.renderer,e=this.chartWidth,d=this.chartHeight,g=this.options.chart,f=this.spacing,l=this.clipOffset,k,m,h,q;this.plotLeft=k=Math.round(this.plotLeft);this.plotTop=m=Math.round(this.plotTop);this.plotWidth=h=Math.max(0,Math.round(e-k-this.marginRight));this.plotHeight=q=Math.max(0,Math.round(d-
- m-this.marginBottom));this.plotSizeX=b?q:h;this.plotSizeY=b?h:q;this.plotBorderWidth=g.plotBorderWidth||0;this.spacingBox=a.spacingBox={x:f[3],y:f[0],width:e-f[3]-f[1],height:d-f[0]-f[2]};this.plotBox=a.plotBox={x:k,y:m,width:h,height:q};b=2*Math.floor(this.plotBorderWidth/2);e=Math.ceil(Math.max(b,l[3])/2);d=Math.ceil(Math.max(b,l[0])/2);this.clipBox={x:e,y:d,width:Math.floor(this.plotSizeX-Math.max(b,l[1])/2-e),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(b,l[2])/2-d))};c||(this.axes.forEach(function(c){c.setAxisSize();
- c.setAxisTranslation()}),a.alignElements());J(this,"afterSetChartSize",{skipAxes:c})};b.prototype.resetMargins=function(){J(this,"resetMargins");var c=this,b=c.options.chart;["margin","spacing"].forEach(function(a){var e=b[a],d=Q(e)?e:[e,e,e,e];["Top","Right","Bottom","Left"].forEach(function(e,g){c[a][g]=R(b[a+e],d[g])})});e.forEach(function(b,a){c[b]=R(c.margin[a],c.spacing[a])});c.axisOffset=[0,0,0,0];c.clipOffset=[0,0,0,0]};b.prototype.drawChartBox=function(){var c=this.options.chart,b=this.renderer,
- a=this.chartWidth,e=this.chartHeight,d=this.styledMode,g=this.plotBGImage,f=c.backgroundColor,l=c.plotBackgroundColor,k=c.plotBackgroundImage,m=this.plotLeft,h=this.plotTop,q=this.plotWidth,r=this.plotHeight,v=this.plotBox,M=this.clipRect,x=this.clipBox,t=this.chartBackground,p=this.plotBackground,B=this.plotBorder,w,u="animate";t||(this.chartBackground=t=b.rect().addClass("highcharts-background").add(),u="attr");if(d)var E=w=t.strokeWidth();else{E=c.borderWidth||0;w=E+(c.shadow?8:0);f={fill:f||"none"};
- if(E||t["stroke-width"])f.stroke=c.borderColor,f["stroke-width"]=E;t.attr(f).shadow(c.shadow)}t[u]({x:w/2,y:w/2,width:a-w-E%2,height:e-w-E%2,r:c.borderRadius});u="animate";p||(u="attr",this.plotBackground=p=b.rect().addClass("highcharts-plot-background").add());p[u](v);d||(p.attr({fill:l||"none"}).shadow(c.plotShadow),k&&(g?(k!==g.attr("href")&&g.attr("href",k),g.animate(v)):this.plotBGImage=b.image(k,m,h,q,r).add()));M?M.animate({width:x.width,height:x.height}):this.clipRect=b.clipRect(x);u="animate";
- B||(u="attr",this.plotBorder=B=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());d||B.attr({stroke:c.plotBorderColor,"stroke-width":c.plotBorderWidth||0,fill:"none"});B[u](B.crisp({x:m,y:h,width:q,height:r},-B.strokeWidth()));this.isDirtyBox=!1;J(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var c=this,b=c.options.chart,a=c.options.series,e,d,g;["inverted","angular","polar"].forEach(function(f){d=l[b.type||b.defaultSeriesType];g=b[f]||d&&d.prototype[f];for(e=a&&
- a.length;!g&&e--;)(d=l[a[e].type])&&d.prototype[f]&&(g=!0);c[f]=g})};b.prototype.linkSeries=function(){var c=this,b=c.series;b.forEach(function(c){c.linkedSeries.length=0});b.forEach(function(b){var a=b.options.linkedTo;U(a)&&(a=":previous"===a?c.series[b.index-1]:c.get(a))&&a.linkedParent!==b&&(a.linkedSeries.push(b),b.linkedParent=a,a.enabledDataSorting&&b.setDataSortingOptions(),b.visible=R(b.options.visible,a.options.visible,b.visible))});J(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(c){c.translate();
- c.render()})};b.prototype.renderLabels=function(){var c=this,b=c.options.labels;b.items&&b.items.forEach(function(a){var e=I(b.style,a.style),d=W(e.left)+c.plotLeft,g=W(e.top)+c.plotTop+12;delete e.left;delete e.top;c.renderer.text(a.html,d,g).attr({zIndex:2}).css(e).add()})};b.prototype.render=function(){var c=this.axes,b=this.colorAxis,a=this.renderer,e=this.options,d=function(c){c.forEach(function(c){c.visible&&c.render()})},g=0;this.setTitle();this.legend=new A(this,e.legend);this.getStacks&&
- this.getStacks();this.getMargins(!0);this.setChartSize();e=this.plotWidth;c.some(function(c){if(c.horiz&&c.visible&&c.options.labels.enabled&&c.series.length)return g=21,!0});var f=this.plotHeight=Math.max(this.plotHeight-g,0);c.forEach(function(c){c.setScale()});this.getAxisMargins();var l=1.1<e/this.plotWidth,k=1.05<f/this.plotHeight;if(l||k)c.forEach(function(c){(c.horiz&&l||!c.horiz&&k)&&c.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?d(c):b&&b.length&&d(b);
- this.seriesGroup||(this.seriesGroup=a.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};b.prototype.addCredits=function(c){var b=this,a=T(!0,this.options.credits,c);a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){a.href&&(m.location.href=a.href)}).attr({align:a.position.align,zIndex:8}),b.styledMode||
- this.credits.css(a.style),this.credits.add().align(a.position),this.credits.update=function(c){b.credits=b.credits.destroy();b.addCredits(c)})};b.prototype.destroy=function(){var c=this,b=c.axes,a=c.series,e=c.container,d=e&&e.parentNode,g;J(c,"destroy");c.renderer.forExport?V(r,c):r[c.index]=void 0;z.chartCount--;c.renderTo.removeAttribute("data-highcharts-chart");da(c);for(g=b.length;g--;)b[g]=b[g].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(g=a.length;g--;)a[g]=
- a[g].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(b){var a=c[b];a&&a.destroy&&(c[b]=a.destroy())});e&&(e.innerHTML="",da(e),d&&aa(e));S(c,function(b,a){delete c[a]})};b.prototype.firstRender=function(){var c=this,b=c.options;if(!c.isReadyToRender||c.isReadyToRender()){c.getContainer();c.resetMargins();c.setChartSize();c.propFromSeries();c.getAxes();
- (ha(b.series)?b.series:[]).forEach(function(b){c.initSeries(b)});c.linkSeries();c.setSeriesData();J(c,"beforeRender");d&&(y.isRequired()?c.pointer=new y(c,b):c.pointer=new d(c,b));c.render();c.pointer.getChartPosition();if(!c.renderer.imgCount&&!c.hasLoaded)c.onload();c.temporaryDisplay(!0)}};b.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(c){c&&"undefined"!==typeof this.index&&c.apply(this,[this])},this);J(this,"load");J(this,"render");O(this.index)&&this.setReflow(this.options.chart.reflow);
- this.hasLoaded=!0};b.prototype.addSeries=function(c,b,a){var e=this,d;c&&(b=R(b,!0),J(e,"addSeries",{options:c},function(){d=e.initSeries(c);e.isDirtyLegend=!0;e.linkSeries();d.enabledDataSorting&&d.setData(c.data,!1);J(e,"afterAddSeries",{series:d});b&&e.redraw(a)}));return d};b.prototype.addAxis=function(c,b,a,e){return this.createAxis(b?"xAxis":"yAxis",{axis:c,redraw:a,animation:e})};b.prototype.addColorAxis=function(c,b,a){return this.createAxis("colorAxis",{axis:c,redraw:b,animation:a})};b.prototype.createAxis=
- function(c,b){var a="colorAxis"===c,e=b.redraw,d=b.animation;c=T(b.axis,{index:this[c].length,isX:"xAxis"===c});c=a?new z.ColorAxis(this,c):new n(this,c);a&&(this.isDirtyLegend=!0,this.axes.forEach(function(c){c.series=[]}),this.series.forEach(function(c){c.bindAxes();c.isDirtyData=!0}));R(e,!0)&&this.redraw(d);return c};b.prototype.showLoading=function(c){var b=this,a=b.options,e=a.loading,d=function(){g&&N(g,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})},
- g=b.loadingDiv,f=b.loadingSpan;g||(b.loadingDiv=g=F("div",{className:"highcharts-loading highcharts-loading-hidden"},null,b.container));f||(b.loadingSpan=f=F("span",{className:"highcharts-loading-inner"},null,g),v(b,"redraw",d));g.className="highcharts-loading";t.setElementHTML(f,R(c,a.lang.loading,""));b.styledMode||(N(g,I(e.style,{zIndex:10})),N(f,e.labelStyle),b.loadingShown||(N(g,{opacity:0,display:""}),u(g,{opacity:e.style.opacity||.5},{duration:e.showDuration||0})));b.loadingShown=!0;d()};b.prototype.hideLoading=
- function(){var c=this.options,b=this.loadingDiv;b&&(b.className="highcharts-loading highcharts-loading-hidden",this.styledMode||u(b,{opacity:0},{duration:c.loading.hideDuration||100,complete:function(){N(b,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(c,b,a,e){var d=this,f={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=c.isResponsiveOptions,m=[],h,q;J(d,"update",{options:c});l||d.setResponsive(!1,!0);c=L(c,d.options);d.userOptions=T(d.userOptions,
- c);var r=c.chart;if(r){T(!0,d.options.chart,r);"className"in r&&d.setClassName(r.className);"reflow"in r&&d.setReflow(r.reflow);if("inverted"in r||"polar"in r||"type"in r){d.propFromSeries();var v=!0}"alignTicks"in r&&(v=!0);"events"in r&&x(this,r);S(r,function(c,b){-1!==d.propsRequireUpdateSeries.indexOf("chart."+b)&&(h=!0);-1!==d.propsRequireDirtyBox.indexOf(b)&&(d.isDirtyBox=!0);-1!==d.propsRequireReflow.indexOf(b)&&(l?d.isDirtyBox=!0:q=!0)});!d.styledMode&&"style"in r&&d.renderer.setStyle(r.style)}!d.styledMode&&
- c.colors&&(this.options.colors=c.colors);c.time&&(this.time===g&&(this.time=new k(c.time)),T(!0,d.options.time,c.time));S(c,function(b,a){if(d[a]&&"function"===typeof d[a].update)d[a].update(b,!1);else if("function"===typeof d[f[a]])d[f[a]](b);else"colors"!==a&&-1===d.collectionsWithUpdate.indexOf(a)&&T(!0,d.options[a],c[a]);"chart"!==a&&-1!==d.propsRequireUpdateSeries.indexOf(a)&&(h=!0)});this.collectionsWithUpdate.forEach(function(b){if(c[b]){var e=[];d[b].forEach(function(c,b){c.options.isInternal||
- e.push(R(c.options.index,b))});Y(c[b]).forEach(function(c,g){var f=O(c.id),l;f&&(l=d.get(c.id));!l&&d[b]&&(l=d[b][e?e[g]:g])&&f&&O(l.options.id)&&(l=void 0);l&&l.coll===b&&(l.update(c,!1),a&&(l.touched=!0));!l&&a&&d.collectionsWithInit[b]&&(d.collectionsWithInit[b][0].apply(d,[c].concat(d.collectionsWithInit[b][1]||[]).concat([!1])).touched=!0)});a&&d[b].forEach(function(c){c.touched||c.options.isInternal?delete c.touched:m.push(c)})}});m.forEach(function(c){c.chart&&c.remove(!1)});v&&d.axes.forEach(function(c){c.update({},
- !1)});h&&d.getSeriesOrderByLinks().forEach(function(c){c.chart&&c.update({},!1)},this);v=r&&r.width;r=r&&(U(r.height)?ca(r.height,v||d.chartWidth):r.height);q||M(v)&&v!==d.chartWidth||M(r)&&r!==d.chartHeight?d.setSize(v,r,e):R(b,!0)&&d.redraw(e);J(d,"afterUpdate",{options:c,redraw:b,animation:e})};b.prototype.setSubtitle=function(c,b){this.applyDescription("subtitle",c);this.layOutTitles(b)};b.prototype.setCaption=function(c,b){this.applyDescription("caption",c);this.layOutTitles(b)};b.prototype.showResetZoom=
- function(){function b(){a.zoomOut()}var a=this,e=c.lang,d=a.options.chart.resetZoomButton,g=d.theme,f=g.states,l="chart"===d.relativeTo||"spacingBox"===d.relativeTo?null:"scrollablePlotBox";J(this,"beforeShowResetZoom",null,function(){a.resetZoomButton=a.renderer.button(e.resetZoom,null,null,b,g,f&&f.hover).attr({align:d.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d.position,!1,l)});J(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){J(this,"selection",
- {resetSelection:!0},this.zoom)};b.prototype.zoom=function(c){var b=this,a=b.pointer,e=b.inverted?a.mouseDownX:a.mouseDownY,d=!1,g;!c||c.resetSelection?(b.axes.forEach(function(c){g=c.zoom()}),a.initiated=!1):c.xAxis.concat(c.yAxis).forEach(function(c){var f=c.axis,l=b.inverted?f.left:f.top,k=b.inverted?l+f.width:l+f.height,m=f.isXAxis,h=!1;if(!m&&e>=l&&e<=k||m||!O(e))h=!0;a[m?"zoomX":"zoomY"]&&h&&(g=f.zoom(c.min,c.max),f.displayBtn&&(d=!0))});var f=b.resetZoomButton;d&&!f?b.showResetZoom():!d&&Q(f)&&
- (b.resetZoomButton=f.destroy());g&&b.redraw(R(b.options.chart.animation,c&&c.animation,100>b.pointCount))};b.prototype.pan=function(c,b){var a=this,e=a.hoverPoints;b="object"===typeof b?b:{enabled:b,type:"x"};var d=a.options.chart,g=a.options.mapNavigation&&a.options.mapNavigation.enabled;d&&d.panning&&(d.panning=b);var f=b.type,l;J(this,"pan",{originalEvent:c},function(){e&&e.forEach(function(c){c.setState()});var b=a.xAxis;"xy"===f?b=b.concat(a.yAxis):"y"===f&&(b=a.yAxis);var d={};b.forEach(function(b){if(b.options.panningEnabled&&
- !b.options.isInternal){var e=b.horiz,k=c[e?"chartX":"chartY"];e=e?"mouseDownX":"mouseDownY";var m=a[e],h=b.minPointOffset||0,q=b.reversed&&!a.inverted||!b.reversed&&a.inverted?-1:1,r=b.getExtremes(),v=b.toValue(m-k,!0)+h*q,t=b.toValue(m+b.len-k,!0)-(h*q||b.isXAxis&&b.pointRangePadding||0),x=t<v;q=b.hasVerticalPanning();m=x?t:v;v=x?v:t;var p=b.panningState;!q||b.isXAxis||p&&!p.isDirty||b.series.forEach(function(c){var b=c.getProcessedData(!0);b=c.getExtremes(b.yData,!0);p||(p={startMin:Number.MAX_VALUE,
- startMax:-Number.MAX_VALUE});M(b.dataMin)&&M(b.dataMax)&&(p.startMin=Math.min(R(c.options.threshold,Infinity),b.dataMin,p.startMin),p.startMax=Math.max(R(c.options.threshold,-Infinity),b.dataMax,p.startMax))});q=Math.min(R(p&&p.startMin,r.dataMin),h?r.min:b.toValue(b.toPixels(r.min)-b.minPixelPadding));t=Math.max(R(p&&p.startMax,r.dataMax),h?r.max:b.toValue(b.toPixels(r.max)+b.minPixelPadding));b.panningState=p;b.isOrdinal||(h=q-m,0<h&&(v+=h,m=q),h=v-t,0<h&&(v=t,m-=h),b.series.length&&m!==r.min&&
- v!==r.max&&m>=q&&v<=t&&(b.setExtremes(m,v,!1,!1,{trigger:"pan"}),a.resetZoomButton||g||m===q||v===t||!f.match("y")||(a.showResetZoom(),b.displayBtn=!1),l=!0),d[e]=k)}});S(d,function(c,b){a[b]=c});l&&a.redraw(!1);N(a.container,{cursor:"move"})})};return b}();I(a.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a.prototype.addAxis,[!0]],yAxis:[a.prototype.addAxis,[!1]],series:[a.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
- propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return a});J(a,"Mixins/LegendSymbol.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n){var u=n.merge,D=n.pick;return a.LegendSymbolMixin={drawRectangle:function(a,u){var n=a.symbolHeight,p=a.options.squareSymbol;
- u.legendSymbol=this.chart.renderer.rect(p?(a.symbolWidth-n)/2:0,a.baseline-n+1,p?n:a.symbolWidth,n,D(a.options.symbolRadius,n/2)).addClass("highcharts-point").attr({zIndex:3}).add(u.legendGroup)},drawLineMarker:function(a){var n=this.options,y=n.marker,p=a.symbolWidth,h=a.symbolHeight,d=h/2,f=this.chart.renderer,b=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var k={};this.chart.styledMode||(k={"stroke-width":n.lineWidth||0},n.dashStyle&&(k.dashstyle=n.dashStyle));this.legendLine=f.path([["M",
- 0,a],["L",p,a]]).addClass("highcharts-graph").attr(k).add(b);y&&!1!==y.enabled&&p&&(n=Math.min(D(y.radius,d),d),0===this.symbol.indexOf("url")&&(y=u(y,{width:h,height:h}),n=0),this.legendSymbol=y=f.symbol(this.symbol,p/2-n,a-n,2*n,2*n,y).addClass("highcharts-point").add(b),y.isMarker=!0)}}});J(a,"Core/Series/Series.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Mixins/LegendSymbol.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],a["Core/Series/Point.js"],
- a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h,d){var f=a.animObject,b=a.setAnimation,k=n.registerEventOptions,B=C.hasTouch,t=C.svg,u=C.win,K=z.defaultOptions,w=p.seriesTypes,E=d.addEvent,x=d.arrayMax,r=d.arrayMin,q=d.clamp,e=d.cleanRecursively,m=d.correctFloat,c=d.defined,g=d.erase,l=d.error,v=d.extend,G=d.find,L=d.fireEvent,F=d.getNestedProperty,N=d.isArray,O=d.isNumber,aa=d.isString,V=d.merge,J=d.objectEach,I=d.pick,P=
- d.removeEvent,fa=d.splat,Z=d.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(c,b){L(this,"init",{options:b});var a=this,e=c.series;this.eventsToUnbind=[];a.chart=c;a.options=a.setOptions(b);b=a.options;a.linkedSeries=[];a.bindAxes();v(a,{name:b.name,
- state:"",visible:!1!==b.visible,selected:!0===b.selected});k(this,b);var d=b.events;if(d&&d.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)c.runTrackerClick=!0;a.getColor();a.getSymbol();a.parallelArrays.forEach(function(c){a[c+"Data"]||(a[c+"Data"]=[])});a.isCartesian&&(c.hasCartesianSeries=!0);var g;e.length&&(g=e[e.length-1]);a._i=I(g&&g._i,-1)+1;a.opacity=a.options.opacity;c.orderSeries(this.insert(e));b.dataSorting&&b.dataSorting.enabled?a.setDataSortingOptions():a.points||
- a.data||a.setData(b.data,!1);L(this,"afterInit")};a.prototype.is=function(c){return w[c]&&this instanceof w[c]};a.prototype.insert=function(c){var b=this.options.index,a;if(O(b)){for(a=c.length;a--;)if(b>=I(c[a].options.index,c[a]._i)){c.splice(a+1,0,this);break}-1===a&&c.unshift(this);a+=1}else c.push(this);return I(a,c.length-1)};a.prototype.bindAxes=function(){var c=this,b=c.options,a=c.chart,e;L(this,"bindAxes",null,function(){(c.axisTypes||[]).forEach(function(d){var g=0;a[d].forEach(function(a){e=
- a.options;if(b[d]===g&&!e.isInternal||"undefined"!==typeof b[d]&&b[d]===e.id||"undefined"===typeof b[d]&&0===e.index)c.insert(a.series),c[d]=a,a.isDirty=!0;e.isInternal||g++});c[d]||c.optionalAxis===d||l(18,!0,a)})});L(this,"afterBindAxes")};a.prototype.updateParallelArrays=function(c,b){var a=c.series,e=arguments,d=O(b)?function(e){var d="y"===e&&a.toYData?a.toYData(c):c[e];a[e+"Data"][b]=d}:function(c){Array.prototype[b].apply(a[c+"Data"],Array.prototype.slice.call(e,2))};a.parallelArrays.forEach(d)};
- 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(){var c=this.options,b=this.xIncrement,a,e=c.pointIntervalUnit,d=this.chart.time;b=I(b,c.pointStart,0);this.pointInterval=a=I(this.pointInterval,c.pointInterval,1);e&&(c=new d.Date(b),"day"===e?d.set("Date",c,d.get("Date",c)+a):"month"===e?d.set("Month",c,d.get("Month",c)+a):"year"===e&&d.set("FullYear",
- c,d.get("FullYear",c)+a),a=c.getTime()-b);this.xIncrement=b+a;return b};a.prototype.setDataSortingOptions=function(){var b=this.options;v(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});c(b.pointRange)||(b.pointRange=1)};a.prototype.setOptions=function(b){var a=this.chart,e=a.options,d=e.plotOptions,g=a.userOptions||{};b=V(b);a=a.styledMode;var f={plotOptions:d,userOptions:b};L(this,"setOptions",f);var l=f.plotOptions[this.type],k=g.plotOptions||{};this.userOptions=f.userOptions;
- g=V(l,d.series,g.plotOptions&&g.plotOptions[this.type],b);this.tooltipOptions=V(K.tooltip,K.plotOptions.series&&K.plotOptions.series.tooltip,K.plotOptions[this.type].tooltip,e.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,b.tooltip);this.stickyTracking=I(b.stickyTracking,k[this.type]&&k[this.type].stickyTracking,k.series&&k.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:g.stickyTracking);null===l.marker&&delete g.marker;this.zoneAxis=g.zoneAxis;e=
- this.zones=(g.zones||[]).slice();!g.negativeColor&&!g.negativeFillColor||g.zones||(d={value:g[this.zoneAxis+"Threshold"]||g.threshold||0,className:"highcharts-negative"},a||(d.color=g.negativeColor,d.fillColor=g.negativeFillColor),e.push(d));e.length&&c(e[e.length-1].value)&&e.push(a?{}:{color:this.color,fillColor:this.fillColor});L(this,"afterSetOptions",{options:g});return g};a.prototype.getName=function(){return I(this.options.name,"Series "+(this.index+1))};a.prototype.getCyclic=function(b,a,
- e){var d=this.chart,g=this.userOptions,f=b+"Index",l=b+"Counter",k=e?e.length:I(d.options.chart[b+"Count"],d[b+"Count"]);if(!a){var m=I(g[f],g["_"+f]);c(m)||(d.series.length||(d[l]=0),g["_"+f]=m=d[l]%k,d[l]+=1);e&&(a=e[m])}"undefined"!==typeof m&&(this[f]=m);this[b]=a};a.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color=A.neutralColor20: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(c,b){var a=c.id,e=c.x,d=this.points,g,f=this.options.dataSorting;if(a)var l=this.chart.get(a);else if(this.linkedParent||this.enabledDataSorting){var k=f&&f.matchByName?"name":"index";l=G(d,function(b){return!b.touched&&b[k]===c[k]});if(!l)return}if(l){var m=
- l&&l.index;"undefined"!==typeof m&&(g=!0)}"undefined"===typeof m&&O(e)&&(m=this.xData.indexOf(e,b));-1!==m&&"undefined"!==typeof m&&this.cropped&&(m=m>=this.cropStart?m-this.cropStart:m);!g&&d[m]&&d[m].touched&&(m=void 0);return m};a.prototype.updateData=function(b,a){var e=this.options,d=e.dataSorting,g=this.points,f=[],l,k,m,h=this.requireSorting,q=b.length===g.length,r=!0;this.xIncrement=null;b.forEach(function(b,a){var k=c(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b)||{};
- var r=k.x;if(k.id||O(r)){if(r=this.findPointIndex(k,m),-1===r||"undefined"===typeof r?f.push(b):g[r]&&b!==e.data[r]?(g[r].update(b,!1,null,!1),g[r].touched=!0,h&&(m=r+1)):g[r]&&(g[r].touched=!0),!q||a!==r||d&&d.enabled||this.hasDerivedData)l=!0}else f.push(b)},this);if(l)for(b=g.length;b--;)(k=g[b])&&!k.touched&&k.remove&&k.remove(!1,a);else!q||d&&d.enabled?r=!1:(b.forEach(function(c,b){c!==g[b].y&&g[b].update&&g[b].update(c,!1,null,!1)}),f.length=0);g.forEach(function(c){c&&(c.touched=!1)});if(!r)return!1;
- f.forEach(function(c){this.addPoint(c,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=x(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(c,b,a,e){var d=this,g=d.points,f=g&&g.length||0,k,m=d.options,h=d.chart,q=m.dataSorting,r=null,v=d.xAxis;r=m.turboThreshold;var t=this.xData,p=this.yData,x=(k=d.pointArrayMap)&&k.length,B=m.keys,w=0,M=1,u;c=c||[];k=c.length;b=I(b,!0);q&&q.enabled&&(c=this.sortData(c));!1!==e&&k&&f&&!d.cropped&&
- !d.hasGroupedData&&d.visible&&!d.isSeriesBoosting&&(u=this.updateData(c,a));if(!u){d.xIncrement=null;d.colorCounter=0;this.parallelArrays.forEach(function(c){d[c+"Data"].length=0});if(r&&k>r)if(r=d.getFirstValidPoint(c),O(r))for(a=0;a<k;a++)t[a]=this.autoIncrement(),p[a]=c[a];else if(N(r))if(x)for(a=0;a<k;a++)e=c[a],t[a]=e[0],p[a]=e.slice(1,x+1);else for(B&&(w=B.indexOf("x"),M=B.indexOf("y"),w=0<=w?w:0,M=0<=M?M:1),a=0;a<k;a++)e=c[a],t[a]=e[w],p[a]=e[M];else l(12,!1,h);else for(a=0;a<k;a++)"undefined"!==
- typeof c[a]&&(e={series:d},d.pointClass.prototype.applyOptions.apply(e,[c[a]]),d.updateParallelArrays(e,a));p&&aa(p[0])&&l(14,!0,h);d.data=[];d.options.data=d.userOptions.data=c;for(a=f;a--;)g[a]&&g[a].destroy&&g[a].destroy();v&&(v.minRange=v.userMinRange);d.isDirty=h.isDirtyBox=!0;d.isDirtyData=!!g;a=!1}"point"===m.legendType&&(this.processData(),this.generatePoints());b&&h.redraw(a)};a.prototype.sortData=function(b){var a=this,e=a.options.dataSorting.sortKey||"y",d=function(b,a){return c(a)&&b.pointClass.prototype.optionsToObject.call({series:b},
- a)||{}};b.forEach(function(c,e){b[e]=d(a,c);b[e].index=e},this);b.concat().sort(function(c,b){c=F(e,c);b=F(e,b);return b<c?-1:b>c?1:0}).forEach(function(c,b){c.x=b},this);a.linkedSeries&&a.linkedSeries.forEach(function(c){var a=c.options,e=a.data;a.dataSorting&&a.dataSorting.enabled||!e||(e.forEach(function(a,g){e[g]=d(c,a);b[g]&&(e[g].x=b[g].x,e[g].index=g)}),c.setData(e,!1))});return b};a.prototype.getProcessedData=function(c){var b=this.xData,a=this.yData,e=b.length;var d=0;var g=this.xAxis,f=
- this.options;var k=f.cropThreshold;var m=c||this.getExtremesFromAll||f.getExtremesFromAll,h=this.isCartesian;c=g&&g.val2lin;f=!(!g||!g.logarithmic);var q=this.requireSorting;if(g){g=g.getExtremes();var r=g.min;var v=g.max}if(h&&this.sorted&&!m&&(!k||e>k||this.forceCrop))if(b[e-1]<r||b[0]>v)b=[],a=[];else if(this.yData&&(b[0]<r||b[e-1]>v)){d=this.cropData(this.xData,this.yData,r,v);b=d.xData;a=d.yData;d=d.start;var t=!0}for(k=b.length||1;--k;)if(e=f?c(b[k])-c(b[k-1]):b[k]-b[k-1],0<e&&("undefined"===
- typeof p||e<p))var p=e;else 0>e&&q&&(l(15,!1,this.chart),q=!1);return{xData:b,yData:a,cropped:t,cropStart:d,closestPointRange:p}};a.prototype.processData=function(c){var b=this.xAxis;if(this.isCartesian&&!this.isDirty&&!b.isDirty&&!this.yAxis.isDirty&&!c)return!1;c=this.getProcessedData();this.cropped=c.cropped;this.cropStart=c.cropStart;this.processedXData=c.xData;this.processedYData=c.yData;this.closestPointRange=this.basePointRange=c.closestPointRange};a.prototype.cropData=function(c,b,a,e,d){var g=
- c.length,f=0,l=g,k;d=I(d,this.cropShoulder);for(k=0;k<g;k++)if(c[k]>=a){f=Math.max(0,k-d);break}for(a=k;a<g;a++)if(c[a]>e){l=a+d;break}return{xData:c.slice(f,l),yData:b.slice(f,l),start:f,end:l}};a.prototype.generatePoints=function(){var c=this.options,b=c.data,a=this.data,e,d=this.processedXData,g=this.processedYData,f=this.pointClass,l=d.length,k=this.cropStart||0,m=this.hasGroupedData,h=c.keys,q=[],r;c=c.dataGrouping&&c.dataGrouping.groupAll?k:0;a||m||(a=[],a.length=b.length,a=this.data=a);h&&
- m&&(this.options.keys=!1);for(r=0;r<l;r++){var p=k+r;if(m){var t=(new f).init(this,[d[r]].concat(fa(g[r])));t.dataGroup=this.groupMap[c+r];t.dataGroup.options&&(t.options=t.dataGroup.options,v(t,t.dataGroup.options),delete t.dataLabels)}else(t=a[p])||"undefined"===typeof b[p]||(a[p]=t=(new f).init(this,b[p],d[r]));t&&(t.index=m?c+r:p,q[r]=t)}this.options.keys=h;if(a&&(l!==(e=a.length)||m))for(r=0;r<e;r++)r!==k||m||(r+=l),a[r]&&(a[r].destroyElements(),a[r].plotX=void 0);this.data=a;this.points=q;L(this,
- "afterGeneratePoints")};a.prototype.getXExtremes=function(c){return{min:r(c),max:x(c)}};a.prototype.getExtremes=function(c,b){var a=this.xAxis,e=this.yAxis,d=this.processedXData||this.xData,g=[],f=0,l=0;var k=0;var m=this.requireSorting?this.cropShoulder:0,h=e?e.positiveValuesOnly:!1,q;c=c||this.stackedYData||this.processedYData||[];e=c.length;a&&(k=a.getExtremes(),l=k.min,k=k.max);for(q=0;q<e;q++){var v=d[q];var t=c[q];var p=(O(t)||N(t))&&(t.length||0<t||!h);v=b||this.getExtremesFromAll||this.options.getExtremesFromAll||
- this.cropped||!a||(d[q+m]||v)>=l&&(d[q-m]||v)<=k;if(p&&v)if(p=t.length)for(;p--;)O(t[p])&&(g[f++]=t[p]);else g[f++]=t}c={dataMin:r(g),dataMax:x(g)};L(this,"afterGetExtremes",{dataExtremes:c});return c};a.prototype.applyExtremes=function(){var c=this.getExtremes();this.dataMin=c.dataMin;this.dataMax=c.dataMax;return c};a.prototype.getFirstValidPoint=function(c){for(var b=null,a=c.length,e=0;null===b&&e<a;)b=c[e],e++;return b};a.prototype.translate=function(){this.processedXData||this.processData();
- this.generatePoints();var b=this.options,a=b.stacking,e=this.xAxis,d=e.categories,g=this.enabledDataSorting,f=this.yAxis,l=this.points,k=l.length,h=!!this.modifyValue,r,v=this.pointPlacementToXValue(),t=!!v,p=b.threshold,x=b.startFromThreshold?p:0,B,w=this.zoneAxis||"y",u=Number.MAX_VALUE;for(r=0;r<k;r++){var n=l[r],E=n.x,F=n.y,G=n.low,y=a&&f.stacking&&f.stacking.stacks[(this.negStacks&&F<(x?0:p)?"-":"")+this.stackKey],z=void 0,A=void 0;if(f.positiveValuesOnly&&!f.validatePositiveValue(F)||e.positiveValuesOnly&&
- !e.validatePositiveValue(E))n.isNull=!0;n.plotX=B=m(q(e.translate(E,0,0,0,1,v,"flags"===this.type),-1E5,1E5));if(a&&this.visible&&y&&y[E]){var H=this.getStackIndicator(H,E,this.index);n.isNull||(z=y[E],A=z.points[H.key])}N(A)&&(G=A[0],F=A[1],G===x&&H.key===y[E].base&&(G=I(O(p)&&p,f.min)),f.positiveValuesOnly&&0>=G&&(G=null),n.total=n.stackTotal=z.total,n.percentage=z.total&&n.y/z.total*100,n.stackY=F,this.irregularWidths||z.setOffset(this.pointXOffset||0,this.barW||0));n.yBottom=c(G)?q(f.translate(G,
- 0,1,0,1),-1E5,1E5):null;h&&(F=this.modifyValue(F,n));n.plotY=void 0;O(F)&&(F=f.translate(F,!1,!0,!1,!0),"undefined"!==typeof F&&(n.plotY=q(F,-1E5,1E5)));n.isInside=this.isPointInside(n);n.clientX=t?m(e.translate(E,0,0,0,1,v)):B;n.negative=n[w]<(b[w+"Threshold"]||p||0);n.category=d&&"undefined"!==typeof d[n.x]?d[n.x]:n.x;if(!n.isNull&&!1!==n.visible){"undefined"!==typeof C&&(u=Math.min(u,Math.abs(B-C)));var C=B}n.zone=this.zones.length&&n.getZone();!n.graphic&&this.group&&g&&(n.isNew=!0)}this.closestPointRangePx=
- u;L(this,"afterTranslate")};a.prototype.getValidPoints=function(c,b,a){var e=this.chart;return(c||this.points||[]).filter(function(c){return b&&!e.isInsidePlot(c.plotX,c.plotY,{inverted:e.inverted})?!1:!1!==c.visible&&(a||!c.isNull)})};a.prototype.getClipBox=function(c,b){var a=this.options,e=this.chart,d=e.inverted,g=this.xAxis,f=g&&this.yAxis,l=e.options.chart.scrollablePlotArea||{};c&&!1===a.clip&&f?c=d?{y:-e.chartWidth+f.len+f.pos,height:e.chartWidth,width:e.chartHeight,x:-e.chartHeight+g.len+
- g.pos}:{y:-f.pos,height:e.chartHeight,width:e.chartWidth,x:-g.pos}:(c=this.clipBox||e.clipBox,b&&(c.width=e.plotSizeX,c.x=(e.scrollablePixelsX||0)*(l.scrollPositionX||0)));return b?{width:c.width,x:c.x}:c};a.prototype.getSharedClipKey=function(c){if(this.sharedClipKey)return this.sharedClipKey;var b=[c&&c.duration,c&&c.easing,c&&c.defer,this.getClipBox(c).height,this.options.xAxis,this.options.yAxis].join();if(!1!==this.options.clip||c)this.sharedClipKey=b;return b};a.prototype.setClip=function(c){var b=
- this.chart,a=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,f=this.getClipBox(c),l=this.getSharedClipKey(c),k=b.sharedClips[l],m=b.sharedClips[l+"m"];c&&(f.width=0,d&&(f.x=b.plotHeight+(!1!==a.clip?0:b.plotTop)));k?b.hasLoaded||k.attr(f):(c&&(b.sharedClips[l+"m"]=m=e.clipRect(d?(b.plotSizeX||0)+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b.sharedClips[l]=k=e.clipRect(f),k.count={length:0});c&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);if(!1!==a.clip||
- c)this.group.clip(c||g?k:b.clipRect),this.markerGroup.clip(m);c||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),0===k.count.length&&(g||(b.sharedClips[l]=k.destroy()),m&&(b.sharedClips[l+"m"]=m.destroy())))};a.prototype.animate=function(c){var b=this.chart,a=f(this.options.animation),e=this.sharedClipKey;if(c)this.setClip(a);else if(e){c=b.sharedClips[e];e=b.sharedClips[e+"m"];var d=this.getClipBox(a,!0);c&&c.animate(d,a);e&&e.animate({width:d.width+99,x:d.x-(b.inverted?0:99)},
- a)}};a.prototype.afterAnimate=function(){this.setClip();L(this,"afterAnimate");this.finishedAnimating=!0};a.prototype.drawPoints=function(){var c=this.points,b=this.chart,a,e,d=this.options.marker,g=this[this.specialGroup]||this.markerGroup,f=this.xAxis,l=I(d.enabled,!f||f.isRadial?!0:null,this.closestPointRangePx>=d.enabledThreshold*d.radius);if(!1!==d.enabled||this._hasPointMarkers)for(a=0;a<c.length;a++){var k=c[a];var m=(e=k.graphic)?"animate":"attr";var h=k.marker||{};var q=!!k.marker;if((l&&
- "undefined"===typeof h.enabled||h.enabled)&&!k.isNull&&!1!==k.visible){var r=I(h.symbol,this.symbol,"rect");var v=this.markerAttribs(k,k.selected&&"select");this.enabledDataSorting&&(k.startXPos=f.reversed?-(v.width||0):f.width);var t=!1!==k.isInside;e?e[t?"show":"hide"](t).animate(v):t&&(0<(v.width||0)||k.hasImage)&&(k.graphic=e=b.renderer.symbol(r,v.x,v.y,v.width,v.height,q?h:d).add(g),this.enabledDataSorting&&b.hasRendered&&(e.attr({x:k.startXPos}),m="animate"));e&&"animate"===m&&e[t?"show":"hide"](t).animate(v);
- if(e&&!b.styledMode)e[m](this.pointAttribs(k,k.selected&&"select"));e&&e.addClass(k.getClassName(),!0)}else e&&(k.graphic=e.destroy())}};a.prototype.markerAttribs=function(c,b){var a=this.options,e=a.marker,d=c.marker||{},g=d.symbol||e.symbol,f=I(d.radius,e.radius);b&&(e=e.states[b],b=d.states&&d.states[b],f=I(b&&b.radius,e&&e.radius,f+(e&&e.radiusPlus||0)));c.hasImage=g&&0===g.indexOf("url");c.hasImage&&(f=0);c={x:a.crisp?Math.floor(c.plotX-f):c.plotX-f,y:c.plotY-f};f&&(c.width=c.height=2*f);return c};
- a.prototype.pointAttribs=function(c,b){var a=this.options.marker,e=c&&c.options,d=e&&e.marker||{},g=this.color,f=e&&e.color,l=c&&c.color;e=I(d.lineWidth,a.lineWidth);var k=c&&c.zone&&c.zone.color;c=1;g=f||k||l||g;f=d.fillColor||a.fillColor||g;g=d.lineColor||a.lineColor||g;b=b||"normal";a=a.states[b];b=d.states&&d.states[b]||{};e=I(b.lineWidth,a.lineWidth,e+I(b.lineWidthPlus,a.lineWidthPlus,0));f=b.fillColor||a.fillColor||f;g=b.lineColor||a.lineColor||g;c=I(b.opacity,a.opacity,c);return{stroke:g,"stroke-width":e,
- fill:f,opacity:c}};a.prototype.destroy=function(c){var b=this,a=b.chart,e=/AppleWebKit\/533/.test(u.navigator.userAgent),f,l,k=b.data||[],m,q;L(b,"destroy");this.removeEvents(c);(b.axisTypes||[]).forEach(function(c){(q=b[c])&&q.series&&(g(q.series,b),q.isDirty=q.forceRedraw=!0)});b.legendItem&&b.chart.legend.destroyItem(b);for(l=k.length;l--;)(m=k[l])&&m.destroy&&m.destroy();b.clips&&b.clips.forEach(function(c){return c.destroy()});d.clearTimeout(b.animationTimeout);J(b,function(c,b){c instanceof
- h&&!c.survive&&(f=e&&"group"===b?"hide":"destroy",c[f]())});a.hoverSeries===b&&(a.hoverSeries=void 0);g(a.series,b);a.orderSeries();J(b,function(a,e){c&&"hcEvents"===e||delete b[e]})};a.prototype.applyZones=function(){var c=this,b=this.chart,a=b.renderer,e=this.zones,d,g,f=this.clips||[],l,k=this.graph,m=this.area,h=Math.max(b.chartWidth,b.chartHeight),r=this[(this.zoneAxis||"y")+"Axis"],v=b.inverted,t,p,x,B=!1,w,n;if(e.length&&(k||m)&&r&&"undefined"!==typeof r.min){var u=r.reversed;var E=r.horiz;
- k&&!this.showLine&&k.hide();m&&m.hide();var F=r.getExtremes();e.forEach(function(e,G){d=u?E?b.plotWidth:0:E?0:r.toPixels(F.min)||0;d=q(I(g,d),0,h);g=q(Math.round(r.toPixels(I(e.value,F.max),!0)||0),0,h);B&&(d=g=r.toPixels(F.max));t=Math.abs(d-g);p=Math.min(d,g);x=Math.max(d,g);r.isXAxis?(l={x:v?x:p,y:0,width:t,height:h},E||(l.x=b.plotHeight-l.x)):(l={x:0,y:v?x:p,width:h,height:t},E&&(l.y=b.plotWidth-l.y));v&&a.isVML&&(l=r.isXAxis?{x:0,y:u?p:x,height:l.width,width:b.chartWidth}:{x:l.y-b.plotLeft-b.spacingBox.x,
- y:0,width:l.height,height:b.chartHeight});f[G]?f[G].animate(l):f[G]=a.clipRect(l);w=c["zone-area-"+G];n=c["zone-graph-"+G];k&&n&&n.clip(f[G]);m&&w&&w.clip(f[G]);B=e.value>F.max;c.resetZones&&0===g&&(g=void 0)});this.clips=f}else c.visible&&(k&&k.show(!0),m&&m.show(!0))};a.prototype.invertGroups=function(c){function b(){["group","markerGroup"].forEach(function(b){a[b]&&(e.renderer.isVML&&a[b].attr({width:a.yAxis.len,height:a.xAxis.len}),a[b].width=a.yAxis.len,a[b].height=a.xAxis.len,a[b].invert(a.isRadialSeries?
- !1:c))})}var a=this,e=a.chart;a.xAxis&&(a.eventsToUnbind.push(E(e,"resize",b)),b(),a.invertGroups=b)};a.prototype.plotGroup=function(b,a,e,d,g){var f=this[b],l=!f;e={visibility:e,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(e.opacity=this.opacity);l&&(this[b]=f=this.chart.renderer.g().add(g));f.addClass("highcharts-"+a+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(c(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":
- "")+(this.options.className||"")+(f.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);f.attr(e)[l?"attr":"animate"](this.getPlotBox());return f};a.prototype.getPlotBox=function(){var c=this.chart,b=this.xAxis,a=this.yAxis;c.inverted&&(b=a,a=this.xAxis);return{translateX:b?b.left:c.plotLeft,translateY:a?a.top:c.plotTop,scaleX:1,scaleY:1}};a.prototype.removeEvents=function(c){c||P(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(c){c()}),this.eventsToUnbind.length=
- 0)};a.prototype.render=function(){var c=this,b=c.chart,a=c.options,e=f(a.animation),d=!c.finishedAnimating&&b.renderer.isSVG&&e.duration,g=c.visible?"inherit":"hidden",l=a.zIndex,k=c.hasRendered,m=b.seriesGroup,h=b.inverted;L(this,"render");var q=c.plotGroup("group","series",g,l,m);c.markerGroup=c.plotGroup("markerGroup","markers",g,l,m);d&&c.animate&&c.animate(!0);q.inverted=I(c.invertible,c.isCartesian)?h:!1;c.drawGraph&&(c.drawGraph(),c.applyZones());c.visible&&c.drawPoints();c.drawDataLabels&&
- c.drawDataLabels();c.redrawPoints&&c.redrawPoints();c.drawTracker&&!1!==c.options.enableMouseTracking&&c.drawTracker();c.invertGroups(h);!1===a.clip||c.sharedClipKey||k||q.clip(b.clipRect);d&&c.animate&&c.animate();k||(d&&e.defer&&(d+=e.defer),c.animationTimeout=Z(function(){c.afterAnimate()},d||0));c.isDirty=!1;c.hasRendered=!0;L(c,"afterRender")};a.prototype.redraw=function(){var c=this.chart,b=this.isDirty||this.isDirtyData,a=this.group,e=this.xAxis,d=this.yAxis;a&&(c.inverted&&a.attr({width:c.plotWidth,
- height:c.plotHeight}),a.animate({translateX:I(e&&e.left,c.plotLeft),translateY:I(d&&d.top,c.plotTop)}));this.translate();this.render();b&&delete this.kdTree};a.prototype.searchPoint=function(c,b){var a=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?a.len-c.chartY+a.pos:c.chartX-a.pos,plotY:d?e.len-c.chartX+e.pos:c.chartY-e.pos},b,c)};a.prototype.buildKDTree=function(c){function b(c,e,d){var g;if(g=c&&c.length){var f=a.kdAxisArray[e%d];c.sort(function(c,b){return c[f]-
- b[f]});g=Math.floor(g/2);return{point:c[g],left:b(c.slice(0,g),e+1,d),right:b(c.slice(g+1),e+1,d)}}}this.buildingKdTree=!0;var a=this,e=-1<a.options.findNearestPointBy.indexOf("y")?2:1;delete a.kdTree;Z(function(){a.kdTree=b(a.getValidPoints(null,!a.directTouch),e,e);a.buildingKdTree=!1},a.options.kdNow||c&&"touchstart"===c.type?0:1)};a.prototype.searchKDTree=function(b,a,e){function d(b,a,e,m){var h=a.point,q=g.kdAxisArray[e%m],r=h;var v=c(b[f])&&c(h[f])?Math.pow(b[f]-h[f],2):null;var t=c(b[l])&&
- c(h[l])?Math.pow(b[l]-h[l],2):null;t=(v||0)+(t||0);h.dist=c(t)?Math.sqrt(t):Number.MAX_VALUE;h.distX=c(v)?Math.sqrt(v):Number.MAX_VALUE;q=b[q]-h[q];t=0>q?"left":"right";v=0>q?"right":"left";a[t]&&(t=d(b,a[t],e+1,m),r=t[k]<r[k]?t:h);a[v]&&Math.sqrt(q*q)<r[k]&&(b=d(b,a[v],e+1,m),r=b[k]<r[k]?b:r);return r}var g=this,f=this.kdAxisArray[0],l=this.kdAxisArray[1],k=a?"distX":"dist";a=-1<g.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(e);if(this.kdTree)return d(b,
- this.kdTree,a,a)};a.prototype.pointPlacementToXValue=function(){var c=this.options,b=c.pointRange,a=this.xAxis;c=c.pointPlacement;"between"===c&&(c=a.reversed?-.5:.5);return O(c)?c*(b||a.pointRange):0};a.prototype.isPointInside=function(c){return"undefined"!==typeof c.plotY&&"undefined"!==typeof c.plotX&&0<=c.plotY&&c.plotY<=this.yAxis.len&&0<=c.plotX&&c.plotX<=this.xAxis.len};a.prototype.drawTracker=function(){var c=this,b=c.options,a=b.trackByArea,e=[].concat(a?c.areaPath:c.graphPath),d=c.chart,
- g=d.pointer,f=d.renderer,l=d.options.tooltip.snap,k=c.tracker,m=function(b){if(d.hoverSeries!==c)c.onMouseOver()},h="rgba(192,192,192,"+(t?.0001:.002)+")";k?k.attr({d:e}):c.graph&&(c.tracker=f.path(e).attr({visibility:c.visible?"visible":"hidden",zIndex:2}).addClass(a?"highcharts-tracker-area":"highcharts-tracker-line").add(c.group),d.styledMode||c.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:h,fill:a?h:"none","stroke-width":c.graph.strokeWidth()+(a?0:2*l)}),[c.tracker,
- c.markerGroup,c.dataLabelsGroup].forEach(function(c){if(c&&(c.addClass("highcharts-tracker").on("mouseover",m).on("mouseout",function(c){g.onTrackerMouseOut(c)}),b.cursor&&!d.styledMode&&c.css({cursor:b.cursor}),B))c.on("touchstart",m)}));L(this,"afterDrawTracker")};a.prototype.addPoint=function(c,b,a,e,d){var g=this.options,f=this.data,l=this.chart,k=this.xAxis;k=k&&k.hasNames&&k.names;var m=g.data,h=this.xData,q;b=I(b,!0);var r={series:this};this.pointClass.prototype.applyOptions.apply(r,[c]);var v=
- r.x;var t=h.length;if(this.requireSorting&&v<h[t-1])for(q=!0;t&&h[t-1]>v;)t--;this.updateParallelArrays(r,"splice",t,0,0);this.updateParallelArrays(r,t);k&&r.name&&(k[v]=r.name);m.splice(t,0,c);q&&(this.data.splice(t,0,null),this.processData());"point"===g.legendType&&this.generatePoints();a&&(f[0]&&f[0].remove?f[0].remove(!1):(f.shift(),this.updateParallelArrays(r,"shift"),m.shift()));!1!==d&&L(this,"addPoint",{point:r});this.isDirtyData=this.isDirty=!0;b&&l.redraw(e)};a.prototype.removePoint=function(c,
- a,e){var d=this,g=d.data,f=g[c],l=d.points,k=d.chart,m=function(){l&&l.length===g.length&&l.splice(c,1);g.splice(c,1);d.options.data.splice(c,1);d.updateParallelArrays(f||{series:d},"splice",c,1);f&&f.destroy();d.isDirty=!0;d.isDirtyData=!0;a&&k.redraw()};b(e,k);a=I(a,!0);f?f.firePointEvent("remove",null,m):m()};a.prototype.remove=function(c,b,a,e){function d(){g.destroy(e);f.isDirtyLegend=f.isDirtyBox=!0;f.linkSeries();I(c,!0)&&f.redraw(b)}var g=this,f=g.chart;!1!==a?L(g,"remove",null,d):d()};a.prototype.update=
- function(c,b){c=e(c,this.userOptions);L(this,"update",{options:c});var a=this,d=a.chart,g=a.userOptions,f=a.initialType||a.type,k=d.options.plotOptions,m=c.type||g.type||d.options.chart.type,h=!(this.hasDerivedData||m&&m!==this.type||"undefined"!==typeof c.pointStart||"undefined"!==typeof c.pointInterval||a.hasOptionChanged("dataGrouping")||a.hasOptionChanged("pointStart")||a.hasOptionChanged("pointInterval")||a.hasOptionChanged("pointIntervalUnit")||a.hasOptionChanged("keys")),q=w[f].prototype,r,
- t=["eventOptions","navigatorSeries","baseSeries"],p=a.finishedAnimating&&{animation:!1},x={};m=m||f;h&&(t.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==c.visible&&t.push("area","graph"),a.parallelArrays.forEach(function(c){t.push(c+"Data")}),c.data&&(c.dataSorting&&v(a.options.dataSorting,c.dataSorting),this.setData(c.data,!1)));c=V(g,p,{index:"undefined"===
- typeof g.index?a.index:g.index,pointStart:I(k&&k.series&&k.series.pointStart,g.pointStart,a.xData[0])},!h&&{data:a.options.data},c);h&&c.data&&(c.data=a.options.data);t=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(t);t.forEach(function(c){t[c]=a[c];delete a[c]});g=!1;if(w[m]){if(g=m!==a.type,a.remove(!1,!1,!1,!0),g)if(Object.setPrototypeOf)Object.setPrototypeOf(a,w[m].prototype);else{k=Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents;for(r in q)a[r]=void 0;v(a,w[m].prototype);
- k?a.hcEvents=k:delete a.hcEvents}}else l(17,!0,d,{missingModuleFor:m});t.forEach(function(c){a[c]=t[c]});a.init(d,c);if(h&&this.points){var B=a.options;!1===B.visible?(x.graphic=1,x.dataLabel=1):a._hasPointLabels||(c=B.marker,m=B.dataLabels,c&&(!1===c.enabled||"symbol"in c)&&(x.graphic=1),m&&!1===m.enabled&&(x.dataLabel=1));this.points.forEach(function(c){c&&c.series&&(c.resolveColor(),Object.keys(x).length&&c.destroyElements(x),!1===B.showInLegend&&c.legendItem&&d.legend.destroyItem(c))},this)}a.initialType=
- f;d.linkSeries();g&&a.linkedSeries.length&&(a.isDirtyData=!0);L(this,"afterUpdate");I(b,!0)&&d.redraw(h?void 0:!1)};a.prototype.setName=function(c){this.name=this.options.name=this.userOptions.name=c;this.chart.isDirtyLegend=!0};a.prototype.hasOptionChanged=function(c){var b=this.options[c],a=this.chart.options.plotOptions,e=this.userOptions[c];return e?b!==e:b!==I(a&&a[this.type]&&a[this.type][c],a&&a.series&&a.series[c],b)};a.prototype.onMouseOver=function(){var c=this.chart,b=c.hoverSeries;c.pointer.setHoverChartIndex();
- if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&L(this,"mouseOver");this.setState("hover");c.hoverSeries=this};a.prototype.onMouseOut=function(){var c=this.options,b=this.chart,a=b.tooltip,e=b.hoverPoint;b.hoverSeries=null;if(e)e.onMouseOut();this&&c.events.mouseOut&&L(this,"mouseOut");!a||this.stickyTracking||a.shared&&!this.noSharedTooltip||a.hide();b.series.forEach(function(c){c.setState("",!0)})};a.prototype.setState=function(c,b){var a=this,e=a.options,d=a.graph,g=e.inactiveOtherPoints,
- f=e.states,l=e.lineWidth,k=e.opacity,m=I(f[c||"normal"]&&f[c||"normal"].animation,a.chart.options.chart.animation);e=0;c=c||"";if(a.state!==c&&([a.group,a.markerGroup,a.dataLabelsGroup].forEach(function(b){b&&(a.state&&b.removeClass("highcharts-series-"+a.state),c&&b.addClass("highcharts-series-"+c))}),a.state=c,!a.chart.styledMode)){if(f[c]&&!1===f[c].enabled)return;c&&(l=f[c].lineWidth||l+(f[c].lineWidthPlus||0),k=I(f[c].opacity,k));if(d&&!d.dashstyle)for(f={"stroke-width":l},d.animate(f,m);a["zone-graph-"+
- e];)a["zone-graph-"+e].animate(f,m),e+=1;g||[a.group,a.markerGroup,a.dataLabelsGroup,a.labelBySeries].forEach(function(c){c&&c.animate({opacity:k},m)})}b&&g&&a.points&&a.setAllPointsToState(c||void 0)};a.prototype.setAllPointsToState=function(c){this.points.forEach(function(b){b.setState&&b.setState(c)})};a.prototype.setVisible=function(c,b){var a=this,e=a.chart,d=a.legendItem,g=e.options.chart.ignoreHiddenSeries,f=a.visible;var l=(a.visible=c=a.options.visible=a.userOptions.visible="undefined"===
- typeof c?!f:c)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(c){if(a[c])a[c][l]()});if(e.hoverSeries===a||(e.hoverPoint&&e.hoverPoint.series)===a)a.onMouseOut();d&&e.legend.colorizeItem(a,c);a.isDirty=!0;a.options.stacking&&e.series.forEach(function(c){c.options.stacking&&c.visible&&(c.isDirty=!0)});a.linkedSeries.forEach(function(b){b.setVisible(c,!1)});g&&(e.isDirtyBox=!0);L(a,l);!1!==b&&e.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide=
- function(){this.setVisible(!1)};a.prototype.select=function(c){this.selected=c=this.options.selected="undefined"===typeof c?!this.selected:c;this.checkbox&&(this.checkbox.checked=c);L(this,c?"select":"unselect")};a.prototype.shouldShowTooltip=function(c,b,a){void 0===a&&(a={});a.series=this;a.visiblePlotOnly=!0;return this.chart.isInsidePlot(c,b,a)};a.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:A.backgroundColor,
- lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:A.neutralColor20,lineColor:A.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var c=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":c(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},
- cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"};return a}();v(a.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:D.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],
- parallelArrays:["x","y"],pointClass:y,requireSorting:!0,sorted:!0});p.series=a;"";"";return a});J(a,"Extensions/ScrollablePlotArea.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Series/Series.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A){var u=a.stop,p=A.addEvent,h=A.createElement,d=A.merge,f=A.pick;p(C,"afterSetChartSize",function(b){var a=this.options.chart.scrollablePlotArea,f=a&&a.minWidth;a=a&&
- a.minHeight;if(!this.renderer.forExport){if(f){if(this.scrollablePixelsX=f=Math.max(0,f-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox);this.plotBox.width=this.plotWidth+=f;this.inverted?this.clipBox.height+=f:this.clipBox.width+=f;var h={1:{name:"right",value:f}}}}else a&&(this.scrollablePixelsY=f=Math.max(0,a-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=d(this.plotBox),this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+=
- f:this.clipBox.height+=f,h={2:{name:"bottom",value:f}});h&&!b.skipAxes&&this.axes.forEach(function(b){h[b.side]?b.getPlotLinePath=function(){var a=h[b.side].name,d=this[a];this[a]=d-h[b.side].value;var f=n.prototype.getPlotLinePath.apply(this,arguments);this[a]=d;return f}:(b.setAxisSize(),b.setAxisTranslation())})}});p(C,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});C.prototype.setUpScrolling=
- function(){var b=this,a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(a.overflowX="auto");this.scrollablePixelsY&&(a.overflowY="auto");this.scrollingParent=h("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=h("div",{className:"highcharts-scrolling"},a,this.scrollingParent);p(this.scrollingContainer,"scroll",function(){b.pointer&&delete b.pointer.chartPosition});this.innerContainer=h("div",
- {className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};C.prototype.moveFixedElements=function(){var b=this.container,a=this.fixedRenderer,d=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),
- 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&&d.push(f+":not(.highcharts-radial-axis)",f+"-labels:not(.highcharts-radial-axis-labels)");d.forEach(function(d){[].forEach.call(b.querySelectorAll(d),function(b){(b.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(b);b.style.pointerEvents="auto"})})};
- C.prototype.applyFixed=function(){var b=!this.fixedDiv,a=this.options.chart,d=a.scrollablePlotArea,t=z.getRendererType();b?(this.fixedDiv=h("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(a.style&&a.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=a=new t(this.fixedDiv,this.chartWidth,this.chartHeight,
- this.options.chart.style),this.scrollableMask=a.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":f(d.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),p(this,"afterShowResetZoom",this.moveFixedElements),p(this,"afterDrilldown",this.moveFixedElements),p(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||b)this.scrollableDirty=!1,this.moveFixedElements();a=this.chartWidth+
- (this.scrollablePixelsX||0);t=this.chartHeight+(this.scrollablePixelsY||0);u(this.container);this.container.style.width=a+"px";this.container.style.height=t+"px";this.renderer.boxWrapper.attr({width:a,height:t,viewBox:[0,0,a,t].join(" ")});this.chartBackground.attr({width:a,height:t});this.scrollingContainer.style.height=this.chartHeight+"px";b&&(d.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*d.scrollPositionX),d.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
- d.scrollPositionY));t=this.axisOffset;b=this.plotTop-t[0]-1;d=this.plotLeft-t[3]-1;a=this.plotTop+this.plotHeight+t[2]+1;t=this.plotLeft+this.plotWidth+t[1]+1;var n=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),y=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);b=this.scrollablePixelsX?[["M",0,b],["L",this.plotLeft-1,b],["L",this.plotLeft-1,a],["L",0,a],["Z"],["M",n,b],["L",this.chartWidth,b],["L",this.chartWidth,a],["L",n,a],["Z"]]:this.scrollablePixelsY?[["M",d,0],["L",d,this.plotTop-
- 1],["L",t,this.plotTop-1],["L",t,0],["Z"],["M",d,y],["L",d,this.chartHeight],["L",t,this.chartHeight],["L",t,y],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};p(n,"afterInit",function(){this.chart.scrollableDirty=!0});p(D,"show",function(){this.chart.scrollableDirty=!0});""});J(a,"Core/Axis/StackingAxis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Utilities.js"]],function(a,n){var u=a.getDeferredAnimation,D=n.addEvent,z=n.destroyObjectProperties,
- A=n.fireEvent,y=n.isNumber,p=n.objectEach,h=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,h=b.length,t;if(!a.isXAxis){this.usePercentage=!1;for(t=h;t--;){var p=b[d?t:h-t-1];p.setStackedPoints();p.setGroupedPoints()}for(t=0;t<h;t++)b[t].modifyStacks();A(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=this.stacks=
- this.oldStacks;p(a,function(b){p(b,function(b){b.cumulative=b.total})})}};a.prototype.resetStacks=function(){var a=this,b=this.stacks;this.axis.isXAxis||p(b,function(b){p(b,function(d,f){y(d.touched)&&d.touched<a.stacksTouched?(d.destroy(),delete b[f]):(d.total=null,d.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,b=a.chart,d=b.renderer,h=this.stacks;a=u(b,a.options.stackLabels&&a.options.stackLabels.animation||!1);var t=this.stackTotalGroup=this.stackTotalGroup||d.g("stack-labels").attr({visibility:"visible",
- zIndex:6,opacity:0}).add();t.translate(b.plotLeft,b.plotTop);p(h,function(b){p(b,function(b){b.render(t)})});t.animate({opacity:1},a)};return a}();return function(){function a(){}a.compose=function(d){D(d,"init",a.onInit);D(d,"destroy",a.onDestroy)};a.onDestroy=function(){var a=this.stacking;if(a){var b=a.stacks;p(b,function(a,d){z(a);b[d]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}};a.onInit=function(){this.stacking||(this.stacking=new h(this))};return a}()});J(a,"Extensions/Stacking.js",
- [a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Axis/StackingAxis.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y){var p=C.format,h=y.correctFloat,d=y.defined,f=y.destroyObjectProperties,b=y.isArray,k=y.isNumber,B=y.objectEach,t=y.pick,u=function(){function b(b,a,d,f,k){var e=b.chart.inverted;this.axis=b;this.isNegative=d;this.options=a=a||{};this.x=f;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=
- k;this.rightCliff=this.leftCliff=0;this.alignOptions={align:a.align||(e?d?"left":"right":"center"),verticalAlign:a.verticalAlign||(e?"middle":d?"bottom":"top"),y:a.y,x:a.x};this.textAlign=a.textAlign||(e?d?"right":"left":"center")}b.prototype.destroy=function(){f(this,this.axis)};b.prototype.render=function(b){var a=this.axis.chart,d=this.options,f=d.format;f=f?p(f,this,a):d.formatter.call(this);this.label?this.label.attr({text:f,visibility:"hidden"}):(this.label=a.renderer.label(f,null,null,d.shape,
- null,null,d.useHTML,!1,"stack-labels"),f={r:d.borderRadius||0,text:f,rotation:d.rotation,padding:t(d.padding,5),visibility:"hidden"},a.styledMode||(f.fill=d.backgroundColor,f.stroke=d.borderColor,f["stroke-width"]=d.borderWidth,this.label.css(d.style)),this.label.attr(f),this.label.added||this.label.add(b));this.label.labelrank=a.plotSizeY};b.prototype.setOffset=function(b,a,f,h,q){var e=this.axis,m=e.chart;h=e.translate(e.stacking.usePercentage?100:h?h:this.total,0,0,0,1);f=e.translate(f?f:0);f=
- d(h)&&Math.abs(h-f);b=t(q,m.xAxis[0].translate(this.x))+b;e=d(h)&&this.getStackBox(m,this,b,h,a,f,e);a=this.label;f=this.isNegative;b="justify"===t(this.options.overflow,"justify");var c=this.textAlign;a&&e&&(q=a.getBBox(),h=a.padding,c="left"===c?m.inverted?-h:h:"right"===c?q.width:m.inverted&&"center"===c?q.width/2:m.inverted?f?q.width+h:-h:q.width/2,f=m.inverted?q.height/2:f?-h:q.height,this.alignOptions.x=t(this.options.x,0),this.alignOptions.y=t(this.options.y,0),e.x-=c,e.y-=f,a.align(this.alignOptions,
- null,e),m.isInsidePlot(a.alignAttr.x+c-this.alignOptions.x,a.alignAttr.y+f-this.alignOptions.y)?a.show():(a.alignAttr.y=-9999,b=!1),b&&z.prototype.justifyDataLabel.call(this.axis,a,this.alignOptions,a.alignAttr,q,e),a.attr({x:a.alignAttr.x,y:a.alignAttr.y}),t(!b&&this.options.crop,!0)&&((m=k(a.x)&&k(a.y)&&m.isInsidePlot(a.x-h+a.width,a.y)&&m.isInsidePlot(a.x+h,a.y))||a.hide()))};b.prototype.getStackBox=function(b,a,d,f,k,e,m){var c=a.axis.reversed,g=b.inverted,l=m.height+m.pos-(g?b.plotLeft:b.plotTop);
- a=a.isNegative&&!c||!a.isNegative&&c;return{x:g?a?f-m.right:f-e+m.pos-b.plotLeft:d+b.xAxis[0].transB-b.plotLeft,y:g?m.height-d-k:a?l-f-e:l-f,width:g?e:k,height:g?k:e}};return b}();n.prototype.getStacks=function(){var b=this,a=b.inverted;b.yAxis.forEach(function(b){b.stacking&&b.stacking.stacks&&b.hasVisibleSeries&&(b.stacking.oldStacks=b.stacking.stacks)});b.series.forEach(function(d){var f=d.xAxis&&d.xAxis.options||{};!d.options.stacking||!0!==d.visible&&!1!==b.options.chart.ignoreHiddenSeries||
- (d.stackKey=[d.type,t(d.options.stack,""),a?f.top:f.left,a?f.height:f.width].join())})};A.compose(a);z.prototype.setGroupedPoints=function(){var b=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?z.prototype.setStackedPoints.call(this,"group"):b&&B(b.stacks,function(a,d){"group"===d.slice(-5)&&(B(a,function(b){return b.destroy()}),delete b.stacks[d])})};z.prototype.setStackedPoints=function(a){var f=
- a||this.options.stacking;if(f&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var k=this.processedXData,p=this.processedYData,r=[],q=p.length,e=this.options,m=e.threshold,c=t(e.startFromThreshold&&m,0);e=e.stack;a=a?this.type+","+f:this.stackKey;var g="-"+a,l=this.negStacks,v=this.yAxis,B=v.stacking.stacks,n=v.stacking.oldStacks,F,y;v.stacking.stacksTouched+=1;for(y=0;y<q;y++){var z=k[y];var A=p[y];var C=this.getStackIndicator(C,z,this.index);var H=C.key;var I=(F=l&&A<(c?0:
- m))?g:a;B[I]||(B[I]={});B[I][z]||(n[I]&&n[I][z]?(B[I][z]=n[I][z],B[I][z].total=null):B[I][z]=new u(v,v.options.stackLabels,F,z,e));I=B[I][z];null!==A?(I.points[H]=I.points[this.index]=[t(I.cumulative,c)],d(I.cumulative)||(I.base=H),I.touched=v.stacking.stacksTouched,0<C.index&&!1===this.singleStacks&&(I.points[H][0]=I.points[this.index+","+z+",0"][0])):I.points[H]=I.points[this.index]=null;"percent"===f?(F=F?a:g,l&&B[F]&&B[F][z]?(F=B[F][z],I.total=F.total=Math.max(F.total,I.total)+Math.abs(A)||0):
- I.total=h(I.total+(Math.abs(A)||0))):"group"===f?(b(A)&&(A=A[0]),null!==A&&(I.total=(I.total||0)+1)):I.total=h(I.total+(A||0));I.cumulative="group"===f?(I.total||1)-1:t(I.cumulative,c)+(A||0);null!==A&&(I.points[H].push(I.cumulative),r[y]=I.cumulative,I.hasValidPoints=!0)}"percent"===f&&(v.stacking.usePercentage=!0);"group"!==f&&(this.stackedYData=r);v.stacking.oldStacks={}}};z.prototype.modifyStacks=function(){var b=this,a=b.stackKey,d=b.yAxis.stacking.stacks,f=b.processedXData,k,h=b.options.stacking;
- b[h+"Stacker"]&&[a,"-"+a].forEach(function(a){for(var e=f.length,c,g;e--;)if(c=f[e],k=b.getStackIndicator(k,c,b.index,a),g=(c=d[a]&&d[a][c])&&c.points[k.key])b[h+"Stacker"](g,c,e)})};z.prototype.percentStacker=function(b,a,d){a=a.total?100/a.total:0;b[0]=h(b[0]*a);b[1]=h(b[1]*a);this.stackedYData[d]=b[1]};z.prototype.getStackIndicator=function(b,a,f,k){!d(b)||b.x!==a||k&&b.key!==k?b={x:a,index:0,key:k}:b.index++;b.key=[f,a,b.index].join();return b};D.StackItem=u;"";return D.StackItem});J(a,"Series/Line/LineSeries.js",
- [a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D){var u=this&&this.__extends||function(){var a=function(h,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(h,d)};return function(h,d){function f(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),A=D.defined,
- y=D.merge;D=function(p){function h(){var a=null!==p&&p.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}u(h,p);h.prototype.drawGraph=function(){var d=this,f=this.options,b=(this.gappedPath||this.getGraphPath).call(this),k=this.chart.styledMode,h=[["graph","highcharts-graph"]];k||h[0].push(f.lineColor||this.color||a.neutralColor20,f.dashStyle);h=d.getZonesGraphs(h);h.forEach(function(a,h){var t=a[0],p=d[t],B=p?"animate":"attr";p?(p.endX=d.preventGraphAnimation?null:
- b.xMap,p.animate({d:b})):b.length&&(d[t]=p=d.chart.renderer.path(b).addClass(a[1]).attr({zIndex:1}).add(d.group));p&&!k&&(t={stroke:a[2],"stroke-width":f.lineWidth,fill:d.fillGraph&&d.color||"none"},a[3]?t.dashstyle=a[3]:"square"!==f.linecap&&(t["stroke-linecap"]=t["stroke-linejoin"]="round"),p[B](t).shadow(2>h&&f.shadow));p&&(p.startX=b.xMap,p.isArea=b.isArea)})};h.prototype.getGraphPath=function(a,f,b){var d=this,h=d.options,t=h.step,p,n=[],u=[],y;a=a||d.points;(p=a.reversed)&&a.reverse();(t={right:1,
- center:2}[t]||t&&3)&&p&&(t=4-t);a=this.getValidPoints(a,!1,!(h.connectNulls&&!f&&!b));a.forEach(function(k,r){var q=k.plotX,e=k.plotY,m=a[r-1];(k.leftCliff||m&&m.rightCliff)&&!b&&(y=!0);k.isNull&&!A(f)&&0<r?y=!h.connectNulls:k.isNull&&!f?y=!0:(0===r||y?r=[["M",k.plotX,k.plotY]]:d.getPointSpline?r=[d.getPointSpline(a,k,r)]:t?(r=1===t?[["L",m.plotX,e]]:2===t?[["L",(m.plotX+q)/2,m.plotY],["L",(m.plotX+q)/2,e]]:[["L",q,m.plotY]],r.push(["L",q,e])):r=[["L",q,e]],u.push(k.x),t&&(u.push(k.x),2===t&&u.push(k.x)),
- n.push.apply(n,r),y=!1)});n.xMap=u;return d.graphPath=n};h.prototype.getZonesGraphs=function(a){this.zones.forEach(function(d,b){b=["zone-graph-"+b,"highcharts-graph highcharts-zone-graph-"+b+" "+(d.className||"")];this.chart.styledMode||b.push(d.color||this.color,d.dashStyle||this.options.dashStyle);a.push(b)},this);return a};h.defaultOptions=y(n.defaultOptions,{});return h}(n);C.registerSeriesType("line",D);"";return D});J(a,"Series/Area/AreaSeries.js",[a["Core/Color/Color.js"],a["Mixins/LegendSymbol.js"],
- a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D){var u=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),A=a.parse,y=C.seriesTypes.line;a=D.extend;var p=D.merge,h=D.objectEach,
- d=D.pick;D=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}u(b,a);b.prototype.drawGraph=function(){this.areaPath=[];a.prototype.drawGraph.apply(this);var b=this,f=this.areaPath,h=this.options,p=[["area","highcharts-area",this.color,h.fillColor]];this.zones.forEach(function(a,d){p.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+a.className,a.color||b.color,a.fillColor||h.fillColor])});p.forEach(function(a){var k=
- a[0],p=b[k],t=p?"animate":"attr",r={};p?(p.endX=b.preventGraphAnimation?null:f.xMap,p.animate({d:f})):(r.zIndex=0,p=b[k]=b.chart.renderer.path(f).addClass(a[1]).add(b.group),p.isArea=!0);b.chart.styledMode||(r.fill=d(a[3],A(a[2]).setOpacity(d(h.fillOpacity,.75)).get()));p[t](r);p.startX=f.xMap;p.shiftUnit=h.step?2:1})};b.prototype.getGraphPath=function(b){var a=y.prototype.getGraphPath,f=this.options,k=f.stacking,h=this.yAxis,p,n=[],x=[],r=this.index,q=h.stacking.stacks[this.stackKey],e=f.threshold,
- m=Math.round(h.getThreshold(f.threshold));f=d(f.connectNulls,"percent"===k);var c=function(c,a,d){var g=b[c];c=k&&q[g.x].points[r];var f=g[d+"Null"]||0;d=g[d+"Cliff"]||0;g=!0;if(d||f){var v=(f?c[0]:c[1])+d;var p=c[0]+d;g=!!f}else!k&&b[a]&&b[a].isNull&&(v=p=e);"undefined"!==typeof v&&(x.push({plotX:l,plotY:null===v?m:h.getThreshold(v),isNull:g,isCliff:!0}),n.push({plotX:l,plotY:null===p?m:h.getThreshold(p),doCurve:!1}))};b=b||this.points;k&&(b=this.getStackPoints(b));for(p=0;p<b.length;p++){k||(b[p].leftCliff=
- b[p].rightCliff=b[p].leftNull=b[p].rightNull=void 0);var g=b[p].isNull;var l=d(b[p].rectPlotX,b[p].plotX);var v=k?d(b[p].yBottom,m):m;if(!g||f)f||c(p,p-1,"left"),g&&!k&&f||(x.push(b[p]),n.push({x:p,plotX:l,plotY:v})),f||c(p,p+1,"right")}p=a.call(this,x,!0,!0);n.reversed=!0;g=a.call(this,n,!0,!0);(v=g[0])&&"M"===v[0]&&(g[0]=["L",v[1],v[2]]);g=p.concat(g);g.length&&g.push(["Z"]);a=a.call(this,x,!1,f);g.xMap=p.xMap;this.areaPath=g;return a};b.prototype.getStackPoints=function(b){var a=this,f=[],k=[],
- p=this.xAxis,n=this.yAxis,u=n.stacking.stacks[this.stackKey],x={},r=n.series,q=r.length,e=n.options.reversedStacks?1:-1,m=r.indexOf(a);b=b||this.points;if(this.options.stacking){for(var c=0;c<b.length;c++)b[c].leftNull=b[c].rightNull=void 0,x[b[c].x]=b[c];h(u,function(c,b){null!==c.total&&k.push(b)});k.sort(function(c,b){return c-b});var g=r.map(function(c){return c.visible});k.forEach(function(c,b){var l=0,h,v;if(x[c]&&!x[c].isNull)f.push(x[c]),[-1,1].forEach(function(d){var f=1===d?"rightNull":
- "leftNull",l=0,p=u[k[b+d]];if(p)for(var t=m;0<=t&&t<q;){var n=r[t].index;h=p.points[n];h||(n===a.index?x[c][f]=!0:g[t]&&(v=u[c].points[n])&&(l-=v[1]-v[0]));t+=e}x[c][1===d?"rightCliff":"leftCliff"]=l});else{for(var t=m;0<=t&&t<q;){if(h=u[c].points[r[t].index]){l=h[1];break}t+=e}l=d(l,0);l=n.translate(l,0,1,0,1);f.push({isNull:!0,plotX:p.translate(c,0,0,0,1),x:c,plotY:l,yBottom:l})}})}return f};b.defaultOptions=p(y.defaultOptions,{threshold:0});return b}(y);a(D.prototype,{singleStacks:!1,drawLegendSymbol:n.drawRectangle});
- C.registerSeriesType("area",D);"";return D});J(a,"Series/Spline/SplineSeries.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n){var u=this&&this.__extends||function(){var a=function(p,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var b in f)f.hasOwnProperty(b)&&(a[b]=f[b])};return a(p,h)};return function(p,h){function d(){this.constructor=p}a(p,h);p.prototype=null===h?Object.create(h):(d.prototype=h.prototype,
- new d)}}(),D=a.seriesTypes.line,z=n.merge,A=n.pick;n=function(a){function p(){var h=null!==a&&a.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;return h}u(p,a);p.prototype.getPointSpline=function(a,d,f){var b=d.plotX||0,k=d.plotY||0,h=a[f-1];f=a[f+1];if(h&&!h.isNull&&!1!==h.doCurve&&!d.isCliff&&f&&!f.isNull&&!1!==f.doCurve&&!d.isCliff){a=h.plotY||0;var p=f.plotX||0;f=f.plotY||0;var n=0;var u=(1.5*b+(h.plotX||0))/2.5;var w=(1.5*k+a)/2.5;p=(1.5*b+p)/2.5;var y=(1.5*k+f)/2.5;
- p!==u&&(n=(y-w)*(p-b)/(p-u)+k-y);w+=n;y+=n;w>a&&w>k?(w=Math.max(a,k),y=2*k-w):w<a&&w<k&&(w=Math.min(a,k),y=2*k-w);y>f&&y>k?(y=Math.max(f,k),w=2*k-y):y<f&&y<k&&(y=Math.min(f,k),w=2*k-y);d.rightContX=p;d.rightContY=y}d=["C",A(h.rightContX,h.plotX,0),A(h.rightContY,h.plotY,0),A(u,b,0),A(w,k,0),b,k];h.rightContX=h.rightContY=void 0;return d};p.defaultOptions=z(D.defaultOptions);return p}(D);a.registerSeriesType("spline",n);"";return n});J(a,"Series/AreaSpline/AreaSplineSeries.js",[a["Series/Area/AreaSeries.js"],
- a["Series/Spline/SplineSeries.js"],a["Mixins/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D,z){var u=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(d,b)};return function(d,b){function f(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)}}(),y=
- a.prototype,p=z.extend,h=z.merge;z=function(d){function f(){var b=null!==d&&d.apply(this,arguments)||this;b.data=void 0;b.points=void 0;b.options=void 0;return b}u(f,d);f.defaultOptions=h(n.defaultOptions,a.defaultOptions);return f}(n);p(z.prototype,{getGraphPath:y.getGraphPath,getStackPoints:y.getStackPoints,drawGraph:y.drawGraph,drawLegendSymbol:C.drawRectangle});D.registerSeriesType("areaspline",z);"";return z});J(a,"Series/Column/ColumnSeries.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Color/Color.js"],
- a["Core/Globals.js"],a["Mixins/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p){var h=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,b){c.__proto__=b}||function(c,b){for(var a in b)b.hasOwnProperty(a)&&(c[a]=b[a])};return b(a,c)};return function(a,c){function e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):
- (e.prototype=c.prototype,new e)}}(),d=a.animObject,f=n.parse,b=C.hasTouch;a=C.noop;var k=p.clamp,u=p.css,t=p.defined,H=p.extend,K=p.fireEvent,w=p.isArray,E=p.isNumber,x=p.merge,r=p.pick,q=p.objectEach;p=function(a){function e(){var c=null!==a&&a.apply(this,arguments)||this;c.borderWidth=void 0;c.data=void 0;c.group=void 0;c.options=void 0;c.points=void 0;return c}h(e,a);e.prototype.animate=function(c){var b=this,a=this.yAxis,e=b.options,f=this.chart.inverted,h={},m=f?"translateX":"translateY";if(c)h.scaleY=
- .001,c=k(a.toPixels(e.threshold),a.pos,a.pos+a.len),f?h.translateX=c-a.len:h.translateY=c,b.clipBox&&b.setClip(),b.group.attr(h);else{var q=Number(b.group.attr(m));b.group.animate({scaleY:1},H(d(b.options.animation),{step:function(c,e){b.group&&(h[m]=q+e.pos*(a.pos-q),b.group.attr(h))}}))}};e.prototype.init=function(c,b){a.prototype.init.apply(this,arguments);var e=this;c=e.chart;c.hasRendered&&c.series.forEach(function(c){c.type===e.type&&(c.isDirty=!0)})};e.prototype.getColumnMetrics=function(){var c=
- this,b=c.options,a=c.xAxis,e=c.yAxis,d=a.options.reversedStacks;d=a.reversed&&!d||!a.reversed&&d;var f,k={},h=0;!1===b.grouping?h=1:c.chart.series.forEach(function(b){var a=b.yAxis,d=b.options;if(b.type===c.type&&(b.visible||!c.chart.options.chart.ignoreHiddenSeries)&&e.len===a.len&&e.pos===a.pos){if(d.stacking&&"group"!==d.stacking){f=b.stackKey;"undefined"===typeof k[f]&&(k[f]=h++);var g=k[f]}else!1!==d.grouping&&(g=h++);b.columnIndex=g}});var m=Math.min(Math.abs(a.transA)*(a.ordinal&&a.ordinal.slope||
- b.pointRange||a.closestPointRange||a.tickInterval||1),a.len),q=m*b.groupPadding,p=(m-2*q)/(h||1);b=Math.min(b.maxPointWidth||a.len,r(b.pointWidth,p*(1-2*b.pointPadding)));c.columnMetrics={width:b,offset:(p-b)/2+(q+((c.columnIndex||0)+(d?1:0))*p-m/2)*(d?-1:1),paddedWidth:p,columnCount:h};return c.columnMetrics};e.prototype.crispCol=function(c,b,a,e){var d=this.chart,f=this.borderWidth,g=-(f%2?.5:0);f=f%2?.5:1;d.inverted&&d.renderer.isVML&&(f+=1);this.options.crisp&&(a=Math.round(c+a)+g,c=Math.round(c)+
- g,a-=c);e=Math.round(b+e)+f;g=.5>=Math.abs(b)&&.5<e;b=Math.round(b)+f;e-=b;g&&e&&(--b,e+=1);return{x:c,y:b,width:a,height:e}};e.prototype.adjustForMissingColumns=function(c,b,a,e){var d=this,f=this.options.stacking;if(!a.isNull&&1<e.columnCount){var g=0,l=0;q(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(c){if("number"===typeof a.x&&(c=c[a.x.toString()])){var b=c.points[d.index],e=c.total;f?(b&&(g=l),c.hasValidPoints&&l++):w(b)&&(g=b[1],l=e||0)}});c=(a.plotX||0)+((l-1)*e.paddedWidth+b)/
- 2-b-g*e.paddedWidth}return c};e.prototype.translate=function(){var c=this,b=c.chart,a=c.options,e=c.dense=2>c.closestPointRange*c.xAxis.transA;e=c.borderWidth=r(a.borderWidth,e?0:1);var d=c.xAxis,f=c.yAxis,h=a.threshold,m=c.translatedThreshold=f.getThreshold(h),q=r(a.minPointLength,5),p=c.getColumnMetrics(),n=p.width,x=c.barW=Math.max(n,1+2*e),u=c.pointXOffset=p.offset,B=c.dataMin,w=c.dataMax;b.inverted&&(m-=.5);a.pointPadding&&(x=Math.ceil(x));A.prototype.translate.apply(c);c.points.forEach(function(e){var g=
- r(e.yBottom,m),l=999+Math.abs(g),v=n,y=e.plotX||0;l=k(e.plotY,-l,f.len+l);y+=u;var F=x,G=Math.min(l,g),z=Math.max(l,g)-G;if(q&&Math.abs(z)<q){z=q;var A=!f.reversed&&!e.negative||f.reversed&&e.negative;E(h)&&E(w)&&e.y===h&&w<=h&&(f.min||0)<h&&(B!==w||(f.max||0)<=h)&&(A=!A);G=Math.abs(G-m)>q?g-q:m-(A?q:0)}t(e.options.pointWidth)&&(v=F=Math.ceil(e.options.pointWidth),y-=Math.round((v-n)/2));a.centerInCategory&&(y=c.adjustForMissingColumns(y,v,e,p));e.barX=y;e.pointWidth=v;e.tooltipPos=b.inverted?[k(f.len+
- f.pos-b.plotLeft-l,f.pos-b.plotLeft,f.len+f.pos-b.plotLeft),d.len+d.pos-b.plotTop-y-F/2,z]:[d.left-b.plotLeft+y+F/2,k(l+f.pos-b.plotTop,f.pos-b.plotTop,f.len+f.pos-b.plotTop),z];e.shapeType=c.pointClass.prototype.shapeType||"rect";e.shapeArgs=c.crispCol.apply(c,e.isNull?[y,m,F,0]:[y,G,F,z])})};e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};e.prototype.pointAttribs=function(c,b){var a=this.options,e=this.pointAttrToOptions||{};var d=e.stroke||
- "borderColor";var g=e["stroke-width"]||"borderWidth",k=c&&c.color||this.color,h=c&&c[d]||a[d]||k,m=c&&c[g]||a[g]||this[g]||0;e=c&&c.options.dashStyle||a.dashStyle;var q=r(c&&c.opacity,a.opacity,1);if(c&&this.zones.length){var p=c.getZone();k=c.options.color||p&&(p.color||c.nonZonedColor)||this.color;p&&(h=p.borderColor||h,e=p.dashStyle||e,m=p.borderWidth||m)}b&&c&&(c=x(a.states[b],c.options.states&&c.options.states[b]||{}),b=c.brightness,k=c.color||"undefined"!==typeof b&&f(k).brighten(c.brightness).get()||
- k,h=c[d]||h,m=c[g]||m,e=c.dashStyle||e,q=r(c.opacity,q));d={fill:k,stroke:h,"stroke-width":m,opacity:q};e&&(d.dashstyle=e);return d};e.prototype.drawPoints=function(){var c=this,b=this.chart,a=c.options,e=b.renderer,d=a.animationLimit||250,f;c.points.forEach(function(g){var l=g.graphic,k=!!l,h=l&&b.pointCount<d?"animate":"attr";if(E(g.plotY)&&null!==g.y){f=g.shapeArgs;l&&g.hasNewShapeType()&&(l=l.destroy());c.enabledDataSorting&&(g.startXPos=c.xAxis.reversed?-(f?f.width||0:0):c.xAxis.width);l||(g.graphic=
- l=e[g.shapeType](f).add(g.group||c.group))&&c.enabledDataSorting&&b.hasRendered&&b.pointCount<d&&(l.attr({x:g.startXPos}),k=!0,h="animate");if(l&&k)l[h](x(f));if(a.borderRadius)l[h]({r:a.borderRadius});b.styledMode||l[h](c.pointAttribs(g,g.selected&&"select")).shadow(!1!==g.allowShadow&&a.shadow,null,a.stacking&&!a.borderRadius);l&&(l.addClass(g.getClassName(),!0),l.attr({visibility:g.visible?"inherit":"hidden"}))}else l&&(g.graphic=l.destroy())})};e.prototype.drawTracker=function(){var c=this,a=
- c.chart,e=a.pointer,d=function(c){var b=e.getPointFromEvent(c);"undefined"!==typeof b&&(e.isDirectTouch=!0,b.onMouseOver(c))},f;c.points.forEach(function(c){f=w(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[];c.graphic&&(c.graphic.element.point=c);f.forEach(function(b){b.div?b.div.point=c:b.element.point=c})});c._hasTracking||(c.trackerGroups.forEach(function(f){if(c[f]){c[f].addClass("highcharts-tracker").on("mouseover",d).on("mouseout",function(c){e.onTrackerMouseOut(c)});if(b)c[f].on("touchstart",
- d);!a.styledMode&&c.options.cursor&&c[f].css(u).css({cursor:c.options.cursor})}}),c._hasTracking=!0);K(this,"afterDrawTracker")};e.prototype.remove=function(){var c=this,b=c.chart;b.hasRendered&&b.series.forEach(function(b){b.type===c.type&&(b.isDirty=!0)});A.prototype.remove.apply(c,arguments)};e.defaultOptions=x(A.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:z.neutralColor20,borderColor:z.neutralColor100}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:z.backgroundColor});return e}(A);H(p.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:D.drawRectangle,getSymbol:a,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});y.registerSeriesType("column",p);"";"";return p});J(a,"Series/Bar/BarSeries.js",[a["Series/Column/ColumnSeries.js"],a["Core/Series/SeriesRegistry.js"],
- a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=function(p,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var b in f)f.hasOwnProperty(b)&&(a[b]=f[b])};return a(p,h)};return function(p,h){function d(){this.constructor=p}a(p,h);p.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}(),z=C.extend,A=C.merge;C=function(n){function p(){var a=null!==n&&n.apply(this,arguments)||this;a.data=void 0;
- a.options=void 0;a.points=void 0;return a}u(p,n);p.defaultOptions=A(a.defaultOptions,{});return p}(a);z(C.prototype,{inverted:!0});n.registerSeriesType("bar",C);"";return C});J(a,"Series/Scatter/ScatterSeries.js",[a["Series/Column/ColumnSeries.js"],a["Series/Line/LineSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D){var u=this&&this.__extends||function(){var a=function(d,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||
- function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(d,f)};return function(d,f){function b(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}(),A=D.addEvent,y=D.extend,p=D.merge;D=function(a){function d(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}u(d,a);d.prototype.applyJitter=function(){var a=this,b=this.options.jitter,d=this.points.length;b&&this.points.forEach(function(f,
- k){["x","y"].forEach(function(h,p){var t="plot"+h.toUpperCase();if(b[h]&&!f.isNull){var n=a[h+"Axis"];var x=b[h]*n.transA;if(n&&!n.isLog){var r=Math.max(0,f[t]-x);n=Math.min(n.len,f[t]+x);p=1E4*Math.sin(k+p*d);f[t]=r+(n-r)*(p-Math.floor(p));"x"===h&&(f.clientX=f.plotX)}}})})};d.prototype.drawGraph=function(){this.options.lineWidth?a.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};d.defaultOptions=p(n.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 d}(n);y(D.prototype,{drawTracker:a.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});A(D,"afterTranslate",function(){this.applyJitter()});C.registerSeriesType("scatter",D);"";return D});
- J(a,"Mixins/CenteredSeries.js",[a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,n,C){var u=C.isNumber,z=C.pick,A=C.relativeLength,y=a.deg2rad;return a.CenteredSeriesMixin={getCenter:function(){var a=this.options,h=this.chart,d=2*(a.slicedOffset||0),f=h.plotWidth-2*d,b=h.plotHeight-2*d,k=a.center,u=Math.min(f,b),t=a.size,y=a.innerSize||0;"string"===typeof t&&(t=parseFloat(t));"string"===typeof y&&(y=parseFloat(y));a=[z(k[0],"50%"),z(k[1],"50%"),z(t&&0>t?void 0:a.size,
- "100%"),z(y&&0>y?void 0:a.innerSize||0,"0%")];!h.angular||this instanceof n||(a[3]=0);for(k=0;4>k;++k)t=a[k],h=2>k||2===k&&/%$/.test(t),a[k]=A(t,[f,b,u,a[2]][k])+(h?d:0);a[3]>a[2]&&(a[3]=a[2]);return a},getStartAndEndRadians:function(a,h){a=u(a)?a:0;h=u(h)&&h>a&&360>h-a?h:a+360;return{start:y*(a+-90),end:y*(h+-90)}}}});J(a,"Series/Pie/PiePoint.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=
- function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),z=a.setAnimation,A=C.addEvent,y=C.defined;a=C.extend;var p=C.isNumber,h=C.pick,d=C.relativeLength;C=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.labelDistance=void 0;
- b.options=void 0;b.series=void 0;return b}u(b,a);b.prototype.getConnectorPath=function(){var b=this.labelPosition,a=this.series.options.dataLabels,d=a.connectorShape,f=this.connectorShapes;f[d]&&(d=f[d]);return d.call(this,{x:b.final.x,y:b.final.y,alignment:b.alignment},b.connectorPosition,a)};b.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};b.prototype.haloPath=function(b){var a=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(a.x,
- a.y,a.r+b,a.r+b,{innerR:a.r-1,start:a.start,end:a.end})};b.prototype.init=function(){n.prototype.init.apply(this,arguments);var b=this;b.name=h(b.name,"Slice");var a=function(a){b.slice("select"===a.type)};A(b,"select",a);A(b,"unselect",a);return b};b.prototype.isValid=function(){return p(this.y)&&0<=this.y};b.prototype.setVisible=function(b,a){var d=this,f=d.series,k=f.chart,p=f.options.ignoreHiddenPoint;a=h(a,p);b!==d.visible&&(d.visible=d.options.visible=b="undefined"===typeof b?!d.visible:b,f.options.data[f.data.indexOf(d)]=
- d.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(a){if(d[a])d[a][b?"show":"hide"](b)}),d.legendItem&&k.legend.colorizeItem(d,b),b||"hover"!==d.state||d.setState(""),p&&(f.isDirty=!0),a&&k.redraw())};b.prototype.slice=function(b,a,d){var f=this.series;z(d,f.chart);h(a,!0);this.sliced=this.options.sliced=y(b)?b:!this.sliced;f.options.data[f.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};
- return b}(n);a(C.prototype,{connectorShapes:{fixedOffset:function(a,b,d){var f=b.breakAt;b=b.touchingSliceAt;return[["M",a.x,a.y],d.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*f.x-b.x,2*f.y-b.y,f.x,f.y]:["L",f.x,f.y],["L",b.x,b.y]]},straight:function(a,b){b=b.touchingSliceAt;return[["M",a.x,a.y],["L",b.x,b.y]]},crookedLine:function(a,b,h){b=b.touchingSliceAt;var f=this.series,k=f.center[0],p=f.chart.plotWidth,n=f.chart.plotLeft;f=a.alignment;var u=this.shapeArgs.r;h=d(h.crookDistance,
- 1);p="left"===f?k+u+(p+n-k-u)*(1-h):n+(k-u)*h;h=["L",p,a.y];k=!0;if("left"===f?p>a.x||p<b.x:p<a.x||p>b.x)k=!1;a=[["M",a.x,a.y]];k&&a.push(h);a.push(["L",b.x,b.y]);return a}}});return C});J(a,"Series/Pie/PieSeries.js",[a["Mixins/CenteredSeries.js"],a["Series/Column/ColumnSeries.js"],a["Core/Globals.js"],a["Mixins/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Series/Pie/PiePoint.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/Symbols.js"],a["Core/Utilities.js"]],
- function(a,n,C,D,z,A,y,p,h,d){var f=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var e in a)a.hasOwnProperty(e)&&(b[e]=a[e])};return b(a,d)};return function(a,d){function f(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),b=a.getStartAndEndRadians;C=C.noop;var k=d.clamp,u=d.extend,t=d.fireEvent,H=d.merge,K=d.pick,w=d.relativeLength;d=
- function(a){function d(){var b=null!==a&&a.apply(this,arguments)||this;b.center=void 0;b.data=void 0;b.maxLabelDistance=void 0;b.options=void 0;b.points=void 0;return b}f(d,a);d.prototype.animate=function(b){var a=this,e=a.points,d=a.startAngleRad;b||e.forEach(function(c){var b=c.graphic,e=c.shapeArgs;b&&e&&(b.attr({r:K(c.startR,a.center&&a.center[3]/2),start:d,end:d}),b.animate({r:e.r,start:e.start,end:e.end},a.options.animation))})};d.prototype.drawEmpty=function(){var b=this.startAngleRad,a=this.endAngleRad,
- e=this.options;if(0===this.total&&this.center){var d=this.center[0];var c=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(d,c,this.center[1]/2,0,b,a).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:h.arc(d,c,this.center[2]/2,0,{start:b,end:a,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":e.borderWidth,fill:e.fillColor||"none",stroke:e.color||z.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())};d.prototype.drawPoints=
- function(){var b=this.chart.renderer;this.points.forEach(function(a){a.graphic&&a.hasNewShapeType()&&(a.graphic=a.graphic.destroy());a.graphic||(a.graphic=b[a.shapeType](a.shapeArgs).add(a.series.group),a.delayedRendering=!0)})};d.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};d.prototype.getX=function(b,a,e){var d=this.center,c=this.radii?this.radii[e.index]||0:d[2]/2;b=Math.asin(k((b-d[1])/(c+e.labelDistance),-1,1));return d[0]+(a?-1:1)*Math.cos(b)*
- (c+e.labelDistance)+(0<e.labelDistance?(a?-1:1)*this.options.dataLabels.padding:0)};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.redrawPoints=function(){var b=this,a=b.chart,e=a.renderer,d,c,f,l,h=b.options.shadow;this.drawEmpty();!h||b.shadowGroup||a.styledMode||(b.shadowGroup=e.g("shadow").attr({zIndex:-1}).add(b.group));b.points.forEach(function(g){var k={};c=g.graphic;if(!g.isNull&&c){var m=void 0;l=g.shapeArgs;d=g.getTranslate();a.styledMode||(m=g.shadowGroup,
- h&&!m&&(m=g.shadowGroup=e.g("shadow").add(b.shadowGroup)),m&&m.attr(d),f=b.pointAttribs(g,g.selected&&"select"));g.delayedRendering?(c.setRadialReference(b.center).attr(l).attr(d),a.styledMode||c.attr(f).attr({"stroke-linejoin":"round"}).shadow(h,m),g.delayedRendering=!1):(c.setRadialReference(b.center),a.styledMode||H(!0,k,f),H(!0,k,l,d),c.animate(k));c.attr({visibility:g.visible?"inherit":"hidden"});c.addClass(g.getClassName(),!0)}else c&&(g.graphic=c.destroy())})};d.prototype.sortByAngle=function(b,
- a){b.sort(function(b,d){return"undefined"!==typeof b.angle&&(d.angle-b.angle)*a})};d.prototype.translate=function(a){this.generatePoints();var d=0,e=this.options,f=e.slicedOffset,c=f+(e.borderWidth||0),g=b(e.startAngle,e.endAngle),l=this.startAngleRad=g.start;g=(this.endAngleRad=g.end)-l;var h=this.points,k=e.dataLabels.distance;e=e.ignoreHiddenPoint;var r,p=h.length;a||(this.center=a=this.getCenter());for(r=0;r<p;r++){var n=h[r];var u=l+d*g;!n.isValid()||e&&!n.visible||(d+=n.percentage/100);var x=
- l+d*g;var y={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*u)/1E3,end:Math.round(1E3*x)/1E3};n.shapeType="arc";n.shapeArgs=y;n.labelDistance=K(n.options.dataLabels&&n.options.dataLabels.distance,k);n.labelDistance=w(n.labelDistance,y.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,n.labelDistance);x=(x+u)/2;x>1.5*Math.PI?x-=2*Math.PI:x<-Math.PI/2&&(x+=2*Math.PI);n.slicedTranslation={translateX:Math.round(Math.cos(x)*f),translateY:Math.round(Math.sin(x)*f)};y=Math.cos(x)*a[2]/
- 2;var B=Math.sin(x)*a[2]/2;n.tooltipPos=[a[0]+.7*y,a[1]+.7*B];n.half=x<-Math.PI/2||x>Math.PI/2?1:0;n.angle=x;u=Math.min(c,n.labelDistance/5);n.labelPosition={natural:{x:a[0]+y+Math.cos(x)*n.labelDistance,y:a[1]+B+Math.sin(x)*n.labelDistance},"final":{},alignment:0>n.labelDistance?"center":n.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+y+Math.cos(x)*u,y:a[1]+B+Math.sin(x)*u},touchingSliceAt:{x:a[0]+y,y:a[1]+B}}}}t(this,"afterTranslate")};d.prototype.updateTotals=function(){var b,a=0,e=this.points,
- d=e.length,c=this.options.ignoreHiddenPoint;for(b=0;b<d;b++){var f=e[b];!f.isValid()||c&&!f.visible||(a+=f.y)}this.total=a;for(b=0;b<d;b++)f=e[b],f.percentage=0<a&&(f.visible||!c)?f.y/a*100:0,f.total=a};d.defaultOptions=H(y.defaultOptions,{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:z.backgroundColor,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return d}(y);u(d.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:D.drawRectangle,drawTracker:n.prototype.drawTracker,getCenter:a.getCenter,getSymbol:C,isCartesian:!1,noSharedTooltip:!0,pointAttribs:n.prototype.pointAttribs,
- pointClass:A,requireSorting:!1,searchPoint:C,trackerGroups:["group","dataLabelsGroup"]});p.registerSeriesType("pie",d);"";return d});J(a,"Core/Series/DataLabels.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y){var p=a.getDeferredAnimation,h=n.format;a=C.noop;A=A.seriesTypes;var d=y.arrayMax,f=y.clamp,b=y.defined,k=
- y.extend,u=y.fireEvent,t=y.isArray,H=y.merge,K=y.objectEach,w=y.pick,E=y.relativeLength,x=y.splat,r=y.stableSort;"";C.distribute=function(b,a,d){function c(c,b){return c.target-b.target}var e,l=!0,h=b,k=[];var m=0;var q=h.reducedLen||a;for(e=b.length;e--;)m+=b[e].size;if(m>q){r(b,function(c,b){return(b.rank||0)-(c.rank||0)});for(m=e=0;m<=q;)m+=b[e].size,e++;k=b.splice(e-1,b.length)}r(b,c);for(b=b.map(function(c){return{size:c.size,targets:[c.target],align:w(c.align,.5)}});l;){for(e=b.length;e--;)l=
- b[e],m=(Math.min.apply(0,l.targets)+Math.max.apply(0,l.targets))/2,l.pos=f(m-l.size*l.align,0,a-l.size);e=b.length;for(l=!1;e--;)0<e&&b[e-1].pos+b[e-1].size>b[e].pos&&(b[e-1].size+=b[e].size,b[e-1].targets=b[e-1].targets.concat(b[e].targets),b[e-1].align=.5,b[e-1].pos+b[e-1].size>a&&(b[e-1].pos=a-b[e-1].size),b.splice(e,1),l=!0)}h.push.apply(h,k);e=0;b.some(function(c){var b=0;if(c.targets.some(function(){h[e].pos=c.pos+b;if("undefined"!==typeof d&&Math.abs(h[e].pos-h[e].target)>d)return h.slice(0,
- e+1).forEach(function(c){delete c.pos}),h.reducedLen=(h.reducedLen||a)-.1*a,h.reducedLen>.1*a&&C.distribute(h,a,d),!0;b+=h[e].size;e++}))return!0});r(h,c)};z.prototype.drawDataLabels=function(){function a(c,b){var a=b.filter;return a?(b=a.operator,c=c[a.property],a=a.value,">"===b&&c>a||"<"===b&&c<a||">="===b&&c>=a||"<="===b&&c<=a||"=="===b&&c==a||"==="===b&&c===a?!0:!1):!0}function e(c,b){var a=[],e;if(t(c)&&!t(b))a=c.map(function(c){return H(c,b)});else if(t(b)&&!t(c))a=b.map(function(b){return H(c,
- b)});else if(t(c)||t(b))for(e=Math.max(c.length,b.length);e--;)a[e]=H(c[e],b[e]);else a=H(c,b);return a}var d=this,c=d.chart,f=d.options,l=f.dataLabels,k=d.points,r,n=d.hasRendered||0,y=l.animation;y=l.defer?p(c,y,d):{defer:0,duration:0};var B=c.renderer;l=e(e(c.options.plotOptions&&c.options.plotOptions.series&&c.options.plotOptions.series.dataLabels,c.options.plotOptions&&c.options.plotOptions[d.type]&&c.options.plotOptions[d.type].dataLabels),l);u(this,"drawDataLabels");if(t(l)||l.enabled||d._hasPointLabels){var z=
- d.plotGroup("dataLabelsGroup","data-labels",n?"inherit":"hidden",l.zIndex||6);z.attr({opacity:+n});!n&&(n=d.dataLabelsGroup)&&(d.visible&&z.show(!0),n[f.animation?"animate":"attr"]({opacity:1},y));k.forEach(function(g){r=x(e(l,g.dlOptions||g.options&&g.options.dataLabels));r.forEach(function(e,l){var k=e.enabled&&(!g.isNull||g.dataLabelOnNull)&&a(g,e),m=g.dataLabels?g.dataLabels[l]:g.dataLabel,q=g.connectors?g.connectors[l]:g.connector,r=w(e.distance,g.labelDistance),p=!m;if(k){var v=g.getLabelConfig();
- var n=w(e[g.formatPrefix+"Format"],e.format);v=b(n)?h(n,v,c):(e[g.formatPrefix+"Formatter"]||e.formatter).call(v,e);n=e.style;var t=e.rotation;c.styledMode||(n.color=w(e.color,n.color,d.color,D.neutralColor100),"contrast"===n.color?(g.contrastColor=B.getContrast(g.color||d.color),n.color=!b(r)&&e.inside||0>r||f.stacking?g.contrastColor:D.neutralColor100):delete g.contrastColor,f.cursor&&(n.cursor=f.cursor));var x={r:e.borderRadius||0,rotation:t,padding:e.padding,zIndex:1};c.styledMode||(x.fill=e.backgroundColor,
- x.stroke=e.borderColor,x["stroke-width"]=e.borderWidth);K(x,function(c,b){"undefined"===typeof c&&delete x[b]})}!m||k&&b(v)?k&&b(v)&&(m?x.text=v:(g.dataLabels=g.dataLabels||[],m=g.dataLabels[l]=t?B.text(v,0,-9999,e.useHTML).addClass("highcharts-data-label"):B.label(v,0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),l||(g.dataLabel=m),m.addClass(" highcharts-data-label-color-"+g.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":""))),m.options=e,m.attr(x),c.styledMode||m.css(n).shadow(e.shadow),
- m.added||m.add(z),e.textPath&&!e.useHTML&&(m.setTextPath(g.getDataLabelPath&&g.getDataLabelPath(m)||g.graphic,e.textPath),g.dataLabelPath&&!e.textPath.enabled&&(g.dataLabelPath=g.dataLabelPath.destroy())),d.alignDataLabel(g,m,e,null,p)):(g.dataLabel=g.dataLabel&&g.dataLabel.destroy(),g.dataLabels&&(1===g.dataLabels.length?delete g.dataLabels:delete g.dataLabels[l]),l||delete g.dataLabel,q&&(g.connector=g.connector.destroy(),g.connectors&&(1===g.connectors.length?delete g.connectors:delete g.connectors[l])))})})}u(this,
- "afterDrawDataLabels")};z.prototype.alignDataLabel=function(b,a,d,c,f){var e=this,g=this.chart,h=this.isCartesian&&g.inverted,m=this.enabledDataSorting,q=w(b.dlBox&&b.dlBox.centerX,b.plotX,-9999),r=w(b.plotY,-9999),p=a.getBBox(),n=d.rotation,t=d.align,x=g.isInsidePlot(q,Math.round(r),{inverted:h,paneCoordinates:!0,series:e}),u="justify"===w(d.overflow,m?"none":"justify"),y=this.visible&&!1!==b.visible&&(b.series.forceDL||m&&!u||x||w(d.inside,!!this.options.stacking)&&c&&g.isInsidePlot(q,h?c.x+1:c.y+
- c.height-1,{inverted:h,paneCoordinates:!0,series:e}));var B=function(c){m&&e.xAxis&&!u&&e.setDataLabelStartPos(b,a,f,x,c)};if(y){var z=g.renderer.fontMetrics(g.styledMode?void 0:d.style.fontSize,a).b;c=k({x:h?this.yAxis.len-r:q,y:Math.round(h?this.xAxis.len-q:r),width:0,height:0},c);k(d,{width:p.width,height:p.height});n?(u=!1,q=g.renderer.rotCorr(z,n),q={x:c.x+(d.x||0)+c.width/2+q.x,y:c.y+(d.y||0)+{top:0,middle:.5,bottom:1}[d.verticalAlign]*c.height},B(q),a[f?"attr":"animate"](q).attr({align:t}),
- B=(n+720)%360,B=180<B&&360>B,"left"===t?q.y-=B?p.height:0:"center"===t?(q.x-=p.width/2,q.y-=p.height/2):"right"===t&&(q.x-=p.width,q.y-=B?0:p.height),a.placed=!0,a.alignAttr=q):(B(c),a.align(d,void 0,c),q=a.alignAttr);u&&0<=c.height?this.justifyDataLabel(a,d,q,p,c,f):w(d.crop,!0)&&(y=g.isInsidePlot(q.x,q.y,{paneCoordinates:!0,series:e})&&g.isInsidePlot(q.x+p.width,q.y+p.height,{paneCoordinates:!0,series:e}));if(d.shape&&!n)a[f?"attr":"animate"]({anchorX:h?g.plotWidth-b.plotY:b.plotX,anchorY:h?g.plotHeight-
- b.plotX:b.plotY})}f&&m&&(a.placed=!1);y||m&&!u||(a.hide(!0),a.placed=!1)};z.prototype.setDataLabelStartPos=function(b,a,d,c,f){var e=this.chart,g=e.inverted,h=this.xAxis,k=h.reversed,m=g?a.height/2:a.width/2;b=(b=b.pointWidth)?b/2:0;h=g?f.x:k?-m-b:h.width-m+b;f=g?k?this.yAxis.height-m+b:-m-b:f.y;a.startXPos=h;a.startYPos=f;c?"hidden"===a.visibility&&(a.show(),a.attr({opacity:0}).animate({opacity:1})):a.attr({opacity:1}).animate({opacity:0},void 0,a.hide);e.hasRendered&&(d&&a.attr({x:a.startXPos,y:a.startYPos}),
- a.placed=!0)};z.prototype.justifyDataLabel=function(b,a,d,c,f,l){var e=this.chart,g=a.align,h=a.verticalAlign,k=b.box?0:b.padding||0,m=a.x;m=void 0===m?0:m;var q=a.y;var r=void 0===q?0:q;q=(d.x||0)+k;if(0>q){"right"===g&&0<=m?(a.align="left",a.inside=!0):m-=q;var p=!0}q=(d.x||0)+c.width-k;q>e.plotWidth&&("left"===g&&0>=m?(a.align="right",a.inside=!0):m+=e.plotWidth-q,p=!0);q=d.y+k;0>q&&("bottom"===h&&0<=r?(a.verticalAlign="top",a.inside=!0):r-=q,p=!0);q=(d.y||0)+c.height-k;q>e.plotHeight&&("top"===
- h&&0>=r?(a.verticalAlign="bottom",a.inside=!0):r+=e.plotHeight-q,p=!0);p&&(a.x=m,a.y=r,b.placed=!l,b.align(a,void 0,f));return p};A.pie&&(A.pie.prototype.dataLabelPositioners={radialDistributionY:function(b){return b.top+b.distributeBox.pos},radialDistributionX:function(b,a,d,c){return b.getX(d<a.top+2||d>a.bottom-2?c:d,a.half,a)},justify:function(b,a,d){return d[0]+(b.half?-1:1)*(a+b.labelDistance)},alignToPlotEdges:function(b,a,d,c){b=b.getBBox().width;return a?b+c:d-b-c},alignToConnectors:function(b,
- a,d,c){var e=0,f;b.forEach(function(c){f=c.dataLabel.getBBox().width;f>e&&(e=f)});return a?e+c:d-e-c}},A.pie.prototype.drawDataLabels=function(){var a=this,e=a.data,f,c=a.chart,g=a.options.dataLabels||{},l=g.connectorPadding,h,k=c.plotWidth,r=c.plotHeight,p=c.plotLeft,n=Math.round(c.chartWidth/3),t,x=a.center,u=x[2]/2,y=x[1],B,A,E,K,J=[[],[]],M,Q,U,T,S=[0,0,0,0],R=a.dataLabelPositioners,W;a.visible&&(g.enabled||a._hasPointLabels)&&(e.forEach(function(c){c.dataLabel&&c.visible&&c.dataLabel.shortened&&
- (c.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),c.dataLabel.shortened=!1)}),z.prototype.drawDataLabels.apply(a),e.forEach(function(c){c.dataLabel&&(c.visible?(J[c.half].push(c),c.dataLabel._pos=null,!b(g.style.width)&&!b(c.options.dataLabels&&c.options.dataLabels.style&&c.options.dataLabels.style.width)&&c.dataLabel.getBBox().width>n&&(c.dataLabel.css({width:Math.round(.7*n)+"px"}),c.dataLabel.shortened=!0)):(c.dataLabel=c.dataLabel.destroy(),c.dataLabels&&1===c.dataLabels.length&&
- delete c.dataLabels))}),J.forEach(function(e,d){var h=e.length,m=[],q;if(h){a.sortByAngle(e,d-.5);if(0<a.maxLabelDistance){var v=Math.max(0,y-u-a.maxLabelDistance);var n=Math.min(y+u+a.maxLabelDistance,c.plotHeight);e.forEach(function(b){0<b.labelDistance&&b.dataLabel&&(b.top=Math.max(0,y-u-b.labelDistance),b.bottom=Math.min(y+u+b.labelDistance,c.plotHeight),q=b.dataLabel.getBBox().height||21,b.distributeBox={target:b.labelPosition.natural.y-b.top+q/2,size:q,rank:b.y},m.push(b.distributeBox))});v=
- n+q-v;C.distribute(m,v,v/5)}for(T=0;T<h;T++){f=e[T];E=f.labelPosition;B=f.dataLabel;U=!1===f.visible?"hidden":"inherit";Q=v=E.natural.y;m&&b(f.distributeBox)&&("undefined"===typeof f.distributeBox.pos?U="hidden":(K=f.distributeBox.size,Q=R.radialDistributionY(f)));delete f.positionIndex;if(g.justify)M=R.justify(f,u,x);else switch(g.alignTo){case "connectors":M=R.alignToConnectors(e,d,k,p);break;case "plotEdges":M=R.alignToPlotEdges(B,d,k,p);break;default:M=R.radialDistributionX(a,f,Q,v)}B._attr={visibility:U,
- align:E.alignment};W=f.options.dataLabels||{};B._pos={x:M+w(W.x,g.x)+({left:l,right:-l}[E.alignment]||0),y:Q+w(W.y,g.y)-10};E.final.x=M;E.final.y=Q;w(g.crop,!0)&&(A=B.getBBox().width,v=null,M-A<l&&1===d?(v=Math.round(A-M+l),S[3]=Math.max(v,S[3])):M+A>k-l&&0===d&&(v=Math.round(M+A-k+l),S[1]=Math.max(v,S[1])),0>Q-K/2?S[0]=Math.max(Math.round(-Q+K/2),S[0]):Q+K/2>r&&(S[2]=Math.max(Math.round(Q+K/2-r),S[2])),B.sideOverflow=v)}}}),0===d(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),this.points.forEach(function(b){W=
- H(g,b.options.dataLabels);if(h=w(W.connectorWidth,1)){var e;t=b.connector;if((B=b.dataLabel)&&B._pos&&b.visible&&0<b.labelDistance){U=B._attr.visibility;if(e=!t)b.connector=t=c.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+b.colorIndex+(b.className?" "+b.className:"")).add(a.dataLabelsGroup),c.styledMode||t.attr({"stroke-width":h,stroke:W.connectorColor||b.color||D.neutralColor60});t[e?"attr":"animate"]({d:b.getConnectorPath()});t.attr("visibility",U)}else t&&(b.connector=
- t.destroy())}}))},A.pie.prototype.placeDataLabels=function(){this.points.forEach(function(b){var a=b.dataLabel,d;a&&b.visible&&((d=a._pos)?(a.sideOverflow&&(a._attr.width=Math.max(a.getBBox().width-a.sideOverflow,0),a.css({width:a._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),a.shortened=!0),a.attr(a._attr),a[a.moved?"animate":"attr"](d),a.moved=!0):a&&a.attr({y:-9999}));delete b.distributeBox},this)},A.pie.prototype.alignDataLabel=a,A.pie.prototype.verifyDataLabelOverflow=
- function(b){var a=this.center,d=this.options,c=d.center,g=d.minSize||80,l=null!==d.size;if(!l){if(null!==c[0])var h=Math.max(a[2]-Math.max(b[1],b[3]),g);else h=Math.max(a[2]-b[1]-b[3],g),a[0]+=(b[3]-b[1])/2;null!==c[1]?h=f(h,g,a[2]-Math.max(b[0],b[2])):(h=f(h,g,a[2]-b[0]-b[2]),a[1]+=(b[0]-b[2])/2);h<a[2]?(a[2]=h,a[3]=Math.min(E(d.innerSize||0,h),h),this.translate(a),this.drawDataLabels&&this.drawDataLabels()):l=!0}return l});A.column&&(A.column.prototype.alignDataLabel=function(b,a,d,c,f){var e=this.chart.inverted,
- g=b.series,h=b.dlBox||b.shapeArgs,k=w(b.below,b.plotY>w(this.translatedThreshold,g.yAxis.len)),m=w(d.inside,!!this.options.stacking);h&&(c=H(h),0>c.y&&(c.height+=c.y,c.y=0),h=c.y+c.height-g.yAxis.len,0<h&&h<c.height&&(c.height-=h),e&&(c={x:g.yAxis.len-c.y-c.height,y:g.xAxis.len-c.x-c.width,width:c.height,height:c.width}),m||(e?(c.x+=k?0:c.width,c.width=0):(c.y+=k?c.height:0,c.height=0)));d.align=w(d.align,!e||m?"center":k?"right":"left");d.verticalAlign=w(d.verticalAlign,e||m?"middle":k?"top":"bottom");
- z.prototype.alignDataLabel.call(this,b,a,d,c,f);d.inside&&b.contrastColor&&a.css({color:b.contrastColor})})});J(a,"Extensions/OverlappingDataLabels.js",[a["Core/Chart/Chart.js"],a["Core/Utilities.js"]],function(a,n){function u(a,f){var b=!1;if(a){var d=a.newOpacity;a.oldOpacity!==d&&(a.alignAttr&&a.placed?(a[d?"removeClass":"addClass"]("highcharts-data-label-hidden"),b=!0,a.alignAttr.opacity=d,a[a.isOld?"animate":"attr"](a.alignAttr,null,function(){f.styledMode||a.css({pointerEvents:d?"auto":"none"})}),
- z(f,"afterHideOverlappingLabel")):a.attr({opacity:d}));a.isOld=!0}return b}var D=n.addEvent,z=n.fireEvent,A=n.isArray,y=n.isNumber,p=n.objectEach,h=n.pick;D(a,"render",function(){var a=this,f=[];(this.labelCollectors||[]).forEach(function(b){f=f.concat(b())});(this.yAxis||[]).forEach(function(b){b.stacking&&b.options.stackLabels&&!b.options.stackLabels.allowOverlap&&p(b.stacking.stacks,function(b){p(b,function(b){b.label&&"hidden"!==b.label.visibility&&f.push(b.label)})})});(this.series||[]).forEach(function(b){var d=
- b.options.dataLabels;b.visible&&(!1!==d.enabled||b._hasPointLabels)&&(d=function(b){return b.forEach(function(b){b.visible&&(A(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[]).forEach(function(d){var k=d.options;d.labelrank=h(k.labelrank,b.labelrank,b.shapeArgs&&b.shapeArgs.height);k.allowOverlap?(d.oldOpacity=d.opacity,d.newOpacity=1,u(d,a)):f.push(d)})})},d(b.nodes||[]),d(b.points))});this.hideOverlappingLabels(f)});a.prototype.hideOverlappingLabels=function(a){var d=this,b=a.length,h=d.renderer,
- p,n,A,C=!1;var w=function(b){var a,e=b.box?0:b.padding||0,d=a=0,c;if(b&&(!b.alignAttr||b.placed)){var f=b.alignAttr||{x:b.attr("x"),y:b.attr("y")};var l=b.parentGroup;b.width||(a=b.getBBox(),b.width=a.width,b.height=a.height,a=h.fontMetrics(null,b.element).h);var k=b.width-2*e;(c={left:"0",center:"0.5",right:"1"}[b.alignValue])?d=+c*k:y(b.x)&&Math.round(b.x)!==b.translateX&&(d=b.x-b.translateX);return{x:f.x+(l.translateX||0)+e-(d||0),y:f.y+(l.translateY||0)+e-a,width:b.width-2*e,height:b.height-2*
- e}}};for(n=0;n<b;n++)if(p=a[n])p.oldOpacity=p.opacity,p.newOpacity=1,p.absoluteBox=w(p);a.sort(function(b,a){return(a.labelrank||0)-(b.labelrank||0)});for(n=0;n<b;n++){var E=(w=a[n])&&w.absoluteBox;for(p=n+1;p<b;++p){var x=(A=a[p])&&A.absoluteBox;!E||!x||w===A||0===w.newOpacity||0===A.newOpacity||x.x>=E.x+E.width||x.x+x.width<=E.x||x.y>=E.y+E.height||x.y+x.height<=E.y||((w.labelrank<A.labelrank?w:A).newOpacity=0)}}a.forEach(function(b){u(b,d)&&(C=!0)});C&&z(d,"afterHideAllOverlappingLabels")}});J(a,
- "Core/Responsive.js",[a["Core/Utilities.js"]],function(a){var n=a.extend,u=a.find,D=a.isArray,z=a.isObject,A=a.merge,y=a.objectEach,p=a.pick,h=a.splat,d=a.uniqueKey,f=function(){function b(){}b.prototype.currentOptions=function(b){function a(b,f,k,p){var r;y(b,function(b,e){if(!p&&-1<d.collectionsWithUpdate.indexOf(e)&&f[e])for(b=h(b),k[e]=[],r=0;r<Math.max(b.length,f[e].length);r++)f[e][r]&&(void 0===b[r]?k[e][r]=f[e][r]:(k[e][r]={},a(b[r],f[e][r],k[e][r],p+1)));else z(b)?(k[e]=D(b)?[]:{},a(b,f[e]||
- {},k[e],p+1)):k[e]="undefined"===typeof f[e]?null:f[e]})}var d=this,f={};a(b,this.options,f,0);return f};b.prototype.matchResponsiveRule=function(b,a){var d=b.condition;(d.callback||function(){return this.chartWidth<=p(d.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=p(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=p(d.minWidth,0)&&this.chartHeight>=p(d.minHeight,0)}).call(this)&&a.push(b._id)};b.prototype.setResponsive=function(b,a){var f=this.options.responsive,h=this.currentResponsive,k=[];!a&&
- f&&f.rules&&f.rules.forEach(function(b){"undefined"===typeof b._id&&(b._id=d());this.matchResponsiveRule(b,k)},this);a=A.apply(void 0,k.map(function(b){return u((f||{}).rules||[],function(a){return a._id===b})}).map(function(b){return b&&b.chartOptions}));a.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(h&&h.ruleIds)&&(h&&this.update(h.undoOptions,b,!0),k?(h=this.currentOptions(a),h.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:a,undoOptions:h},this.update(a,b,!0)):this.currentResponsive=
- void 0)};return b}();a=function(){function b(){}b.compose=function(b){n(b.prototype,f.prototype);return b};return b}();"";"";return a});J(a,"masters/highcharts.src.js",[a["Core/Globals.js"],a["Core/Utilities.js"],a["Core/DefaultOptions.js"],a["Core/Animation/Fx.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/Renderer/HTML/AST.js"],a["Core/FormatUtilities.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Renderer/HTML/HTMLElement.js"],a["Core/Renderer/HTML/HTMLRenderer.js"],
- a["Core/Axis/Axis.js"],a["Core/Axis/PlotLineOrBand.js"],a["Core/Axis/Tick.js"],a["Core/Pointer.js"],a["Core/MSPointer.js"],a["Core/Chart/Chart.js"],a["Core/Series/Series.js"],a["Core/Responsive.js"],a["Core/Color/Color.js"],a["Core/Time.js"]],function(a,n,C,D,z,A,y,p,h,d,f,b,k,B,t,H,K,w,E,x,r){a.animate=z.animate;a.animObject=z.animObject;a.getDeferredAnimation=z.getDeferredAnimation;a.setAnimation=z.setAnimation;a.stop=z.stop;a.timers=D.timers;a.AST=A;a.Axis=b;a.Chart=K;a.chart=K.chart;a.Fx=D;a.PlotLineOrBand=
- k;a.Pointer=H.isRequired()?H:t;a.Series=w;a.SVGElement=p;a.SVGRenderer=h;a.Tick=B;a.Time=r;a.Color=x;a.color=x.parse;f.compose(h);d.compose(p);a.defaultOptions=C.defaultOptions;a.getOptions=C.getOptions;a.time=C.defaultTime;a.setOptions=C.setOptions;a.dateFormat=y.dateFormat;a.format=y.format;a.numberFormat=y.numberFormat;a.addEvent=n.addEvent;a.arrayMax=n.arrayMax;a.arrayMin=n.arrayMin;a.attr=n.attr;a.clearTimeout=n.clearTimeout;a.correctFloat=n.correctFloat;a.createElement=n.createElement;a.css=
- n.css;a.defined=n.defined;a.destroyObjectProperties=n.destroyObjectProperties;a.discardElement=n.discardElement;a.erase=n.erase;a.error=n.error;a.extend=n.extend;a.extendClass=n.extendClass;a.find=n.find;a.fireEvent=n.fireEvent;a.getMagnitude=n.getMagnitude;a.getStyle=n.getStyle;a.inArray=n.inArray;a.isArray=n.isArray;a.isClass=n.isClass;a.isDOMElement=n.isDOMElement;a.isFunction=n.isFunction;a.isNumber=n.isNumber;a.isObject=n.isObject;a.isString=n.isString;a.keys=n.keys;a.merge=n.merge;a.normalizeTickInterval=
- n.normalizeTickInterval;a.objectEach=n.objectEach;a.offset=n.offset;a.pad=n.pad;a.pick=n.pick;a.pInt=n.pInt;a.relativeLength=n.relativeLength;a.removeEvent=n.removeEvent;a.splat=n.splat;a.stableSort=n.stableSort;a.syncTimeout=n.syncTimeout;a.timeUnits=n.timeUnits;a.uniqueKey=n.uniqueKey;a.useSerialIds=n.useSerialIds;a.wrap=n.wrap;E.compose(K);return a});J(a,"Core/Axis/MapAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,n){var u=n.addEvent,D=n.pick,z=function(){return function(a){this.axis=
- a}}();n=function(){function a(){}a.compose=function(a){a.keepProps.push("mapAxis");u(a,"init",function(){this.mapAxis||(this.mapAxis=new z(this))});u(a,"getSeriesExtremes",function(){if(this.mapAxis){var a=[];this.isXAxis&&(this.series.forEach(function(h,d){h.useMapGeometry&&(a[d]=h.xData,h.xData=[])}),this.mapAxis.seriesXData=a)}});u(a,"afterGetSeriesExtremes",function(){if(this.mapAxis){var a=this.mapAxis.seriesXData||[],h;if(this.isXAxis){var d=D(this.dataMin,Number.MAX_VALUE);var f=D(this.dataMax,
- -Number.MAX_VALUE);this.series.forEach(function(b,k){b.useMapGeometry&&(d=Math.min(d,D(b.minX,d)),f=Math.max(f,D(b.maxX,f)),b.xData=a[k],h=!0)});h&&(this.dataMin=d,this.dataMax=f);this.mapAxis.seriesXData=void 0}}});u(a,"afterSetAxisTranslation",function(){if(this.mapAxis){var a=this.chart,h=a.plotWidth/a.plotHeight;a=a.xAxis[0];var d;"yAxis"===this.coll&&"undefined"!==typeof a.transA&&this.series.forEach(function(a){a.preserveAspectRatio&&(d=!0)});if(d&&(this.transA=a.transA=Math.min(this.transA,
- a.transA),h/=(a.max-a.min)/(this.max-this.min),h=1>h?this:a,a=(h.max-h.min)*h.transA,h.mapAxis.pixelPadding=h.len-a,h.minPixelPadding=h.mapAxis.pixelPadding/2,a=h.mapAxis.fixTo)){a=a[1]-h.toValue(a[0],!0);a*=h.transA;if(Math.abs(a)>h.minPixelPadding||h.min===h.dataMin&&h.max===h.dataMax)a=0;h.minPixelPadding-=a}}});u(a,"render",function(){this.mapAxis&&(this.mapAxis.fixTo=void 0)})};return a}();n.compose(a);return n});J(a,"Mixins/ColorSeries.js",[],function(){return{colorPointMixin:{setVisible:function(a){var n=
- this,u=a?"show":"hide";n.visible=n.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(n[a])n[a][u]()});this.series.buildKDTree()}},colorSeriesMixin:{optionalAxis:"colorAxis",colorAxis:0,translateColors:function(){var a=this,n=this.options.nullColor,C=this.colorAxis,D=this.colorKey;(this.data.length?this.data:this.points).forEach(function(u){var A=u.getNestedProperty(D);(A=u.options.color||(u.isNull||null===u.value?n:C&&"undefined"!==typeof A?C.toColor(A,u):u.color||a.color))&&u.color!==
- A&&(u.color=A,"point"===a.options.legendType&&u.legendItem&&a.chart.legend.colorizeItem(u,u.visible))})}}}});J(a,"Core/Axis/ColorAxis.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],a["Mixins/ColorSeries.js"],a["Core/Animation/Fx.js"],a["Core/Globals.js"],a["Core/Legend.js"],a["Mixins/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/Point.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h,d,f,b){var k=this&&this.__extends||function(){var b=
- function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(a,c)};return function(a,c){function e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),u=C.parse;C=D.colorPointMixin;D=D.colorSeriesMixin;var t=A.noop,H=b.addEvent,K=b.extend,w=b.isNumber,E=b.merge,x=b.pick,r=b.splat;"";K(f.prototype,D);K(d.prototype,C);n.prototype.collectionsWithUpdate.push("colorAxis");
- n.prototype.collectionsWithInit.colorAxis=[n.prototype.addColorAxis];var q=function(b){function a(a,e){var c=b.call(this,a,e)||this;c.beforePadding=!1;c.chart=void 0;c.coll="colorAxis";c.dataClasses=void 0;c.legendItem=void 0;c.legendItems=void 0;c.name="";c.options=void 0;c.stops=void 0;c.visible=!0;c.init(a,e);return c}k(a,b);a.prototype.init=function(c,e){var d=c.options.legend||{},f=e.layout?"vertical"!==e.layout:"vertical"!==d.layout;d=E(a.defaultColorAxisOptions,e,{showEmpty:!1,title:null,visible:d.enabled&&
- (e?!1!==e.visible:!0)});this.coll="colorAxis";this.side=e.side||f?2:1;this.reversed=e.reversed||!f;this.opposite=!f;b.prototype.init.call(this,c,d);e.dataClasses&&this.initDataClasses(e);this.initStops();this.horiz=f;this.zoomEnabled=!1};a.prototype.initDataClasses=function(a){var b=this.chart,c,e=0,d=b.options.chart.colorCount,f=this.options,h=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];a.dataClasses.forEach(function(a,g){a=E(a);c.push(a);if(b.styledMode||!a.color)"category"===
- f.dataClassColor?(b.styledMode||(g=b.options.colors,d=g.length,a.color=g[e]),a.colorIndex=e,e++,e===d&&(e=0)):a.color=u(f.minColor).tweenTo(u(f.maxColor),2>h?.5:g/(h-1))})};a.prototype.hasData=function(){return!!(this.tickPositions||[]).length};a.prototype.setTickPositions=function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};a.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=
- u(a[1])})};a.prototype.setOptions=function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};a.prototype.setAxisSize=function(){var b=this.legendSymbol,e=this.chart,d=e.options.legend||{},f,h;b?(this.left=d=b.attr("x"),this.top=f=b.attr("y"),this.width=h=b.attr("width"),this.height=b=b.attr("height"),this.right=e.chartWidth-d-h,this.bottom=e.chartHeight-f-b,this.len=this.horiz?h:b,this.pos=this.horiz?d:f):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||a.defaultLegendLength};
- a.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};a.prototype.toColor=function(a,b){var c=this.dataClasses,e=this.stops,d;if(c)for(d=c.length;d--;){var f=c[d];var g=f.from;e=f.to;if(("undefined"===typeof g||a>=g)&&("undefined"===typeof e||a<=e)){var h=f.color;b&&(b.dataClass=d,b.colorIndex=f.colorIndex);break}}else{a=this.normalizedValue(a);for(d=e.length;d--&&!(a>e[d][0]););g=e[d]||e[d+1];e=e[d+1]||g;a=1-(e[0]-
- a)/(e[0]-g[0]||1);h=g.color.tweenTo(e.color,a)}return h};a.prototype.getOffset=function(){var a=this.legendGroup,e=this.chart.axisOffset[this.side];a&&(this.axisParent=a,b.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=e)};a.prototype.setLegendColor=function(){var a=this.reversed,b=a?1:0;a=a?0:1;b=this.horiz?[b,0,a,0]:[0,a,0,b];this.legendColor={linearGradient:{x1:b[0],y1:b[1],x2:b[2],y2:b[3]},stops:this.stops}};
- a.prototype.drawLegendSymbol=function(b,e){var c=b.padding,d=b.options,f=this.horiz,g=x(d.symbolWidth,f?a.defaultLegendLength:12),h=x(d.symbolHeight,f?12:a.defaultLegendLength),k=x(d.labelPadding,f?16:30);d=x(d.itemDistance,10);this.setLegendColor();e.legendSymbol=this.chart.renderer.rect(0,b.baseline-11,g,h).attr({zIndex:1}).add(e.legendGroup);this.legendItemWidth=g+c+(f?d:k);this.legendItemHeight=h+c+(f?k:0)};a.prototype.setState=function(a){this.series.forEach(function(b){b.setState(a)})};a.prototype.setVisible=
- function(){};a.prototype.getSeriesExtremes=function(){var a=this.series,b=a.length,e;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;){var d=a[b];var h=d.colorKey=x(d.options.colorKey,d.colorKey,d.pointValKey,d.zoneAxis,"y");var k=d.pointArrayMap;var m=d[h+"Min"]&&d[h+"Max"];if(d[h+"Data"])var q=d[h+"Data"];else if(k){q=[];k=k.indexOf(h);var r=d.yData;if(0<=k&&r)for(e=0;e<r.length;e++)q.push(x(r[e][k],r[e]))}else q=d.yData;m?(d.minColorValue=d[h+"Min"],d.maxColorValue=d[h+"Max"]):(q=f.prototype.getExtremes.call(d,
- q),d.minColorValue=q.dataMin,d.maxColorValue=q.dataMax);"undefined"!==typeof d.minColorValue&&(this.dataMin=Math.min(this.dataMin,d.minColorValue),this.dataMax=Math.max(this.dataMax,d.maxColorValue));m||f.prototype.applyExtremes.call(d)}};a.prototype.drawCrosshair=function(a,e){var c=e&&e.plotX,d=e&&e.plotY,f=this.pos,g=this.len;if(e){var h=this.toPixels(e.getNestedProperty(e.series.colorKey));h<f?h=f-2:h>f+g&&(h=f+g+2);e.plotX=h;e.plotY=this.len-h;b.prototype.drawCrosshair.call(this,a,e);e.plotX=
- c;e.plotY=d;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};a.prototype.getPlotLinePath=function(a){var c=this.left,e=a.translatedValue,d=this.top;return w(e)?this.horiz?[["M",e-4,d-6],["L",e+4,d-6],["L",e,d],["Z"]]:[["M",c,e],["L",c-6,e+6],["L",c-6,e-6],["Z"]]:b.prototype.getPlotLinePath.call(this,
- a)};a.prototype.update=function(a,e){var c=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&c.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,e);this.legendItem&&(this.setLegendColor(),c.colorizeItem(this,!0))};a.prototype.destroyItems=function(){var a=this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(b){a.legend.destroyItem(b)});a.isDirtyLegend=!0};a.prototype.destroy=function(){this.chart.isDirtyLegend=
- !0;this.destroyItems();b.prototype.destroy.apply(this,[].slice.call(arguments))};a.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};a.prototype.getDataClassLegendSymbols=function(){var a=this,b=a.chart,e=a.legendItems,d=b.options.legend,f=d.valueDecimals,h=d.valueSuffix||"",k;e.length||a.dataClasses.forEach(function(c,d){var g=!0,l=c.from,m=c.to,q=b.numberFormatter;k="";"undefined"===typeof l?k="< ":"undefined"===typeof m&&(k="> ");"undefined"!==typeof l&&(k+=q(l,
- f)+h);"undefined"!==typeof l&&"undefined"!==typeof m&&(k+=" - ");"undefined"!==typeof m&&(k+=q(m,f)+h);e.push(K({chart:b,name:k,options:{},drawLegendSymbol:p.drawRectangle,visible:!0,setState:t,isDataClass:!0,setVisible:function(){g=a.visible=!g;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===d&&a.setVisible(g)})});b.legend.colorizeItem(this,g)}},c))});return e};a.defaultLegendLength=200;a.defaultColorAxisOptions={lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,
- startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:h.neutralColor40},labels:{overflow:"justify",rotation:0},minColor:h.highlightColor10,maxColor:h.highlightColor100,tickLength:5,showInLegend:!0};a.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return a}(a);Array.prototype.push.apply(a.keepProps,q.keepProps);A.ColorAxis=q;["fill","stroke"].forEach(function(a){z.prototype[a+"Setter"]=function(){this.elem.attr(a,u(this.start).tweenTo(u(this.end),
- this.pos),null,!0)}});H(n,"afterGetAxes",function(){var a=this,b=a.options;this.colorAxis=[];b.colorAxis&&(b.colorAxis=r(b.colorAxis),b.colorAxis.forEach(function(b,e){b.index=e;new q(a,b)}))});H(f,"bindAxes",function(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]});H(y,"afterGetAllItems",function(a){var b=this,c=[],e,d,f=function(c){c=a.allItems.indexOf(c);-1!==c&&(b.destroyItem(a.allItems[c]),a.allItems.splice(c,1))};(this.chart.colorAxis||
- []).forEach(function(a){(e=a.options)&&e.showInLegend&&(e.dataClasses&&e.visible?c=c.concat(a.getDataClassLegendSymbols()):e.visible&&c.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||e.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){f(a)}):f(a)}))});for(d=c.length;d--;)a.allItems.unshift(c[d])});H(y,"afterColorizeItem",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})});H(y,"afterUpdate",function(){var a=this.chart.colorAxis;
- a&&a.forEach(function(a,b,e){a.update({},e)})});H(f,"afterTranslate",function(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()});return q});J(a,"Mixins/ColorMapSeries.js",[a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,n,C){var u=C.defined;C=C.addEvent;var z=a.noop;a=a.seriesTypes;C(n,"afterSetState",function(a){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:a&&"hover"===a.state?1:0})});return{colorMapPointMixin:{dataLabelOnNull:!0,
- moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}},colorMapSeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:z,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:a.column.prototype.pointAttribs,colorAttribs:function(a){var n={};!u(a.color)||a.state&&"normal"!==a.state||(n[this.colorProp||"fill"]=a.color);return n}}}});J(a,"Maps/MapNavigationOptionsDefault.js",
- [a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,n){n=n.extend;var u={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};n(a.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return a.defaultOptions.mapNavigation=
- u});J(a,"Maps/MapNavigation.js",[a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,C){function u(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function z(a){this.init(a)}var A=n.doc,y=C.addEvent,p=C.extend,h=C.merge,d=C.objectEach,f=C.pick;z.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};z.prototype.update=function(a){var b=this.chart,n=b.options.mapNavigation,t,z,A,w,E=function(a){this.handler.call(b,
- a);u(a)},x=b.mapNavButtons;a&&(n=b.options.mapNavigation=h(b.options.mapNavigation,a));for(;x.length;)x.pop().destroy();f(n.enableButtons,n.enabled)&&!b.renderer.forExport&&d(n.buttons,function(a,d){a=h(n.buttonOptions,a);!b.styledMode&&a.theme&&(t=a.theme,t.style=h(a.theme.style,a.style),A=(z=t.states)&&z.hover,w=z&&z.select,delete t.states);var e=b.renderer.button(a.text||"",0,0,E,t,A,w,void 0,"zoomIn"===d?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",
- zoomOut:"zoom-out"}[d]).attr({width:a.width,height:a.height,title:b.options.lang[d],padding:a.padding,zIndex:5}).add();e.handler=a.onclick;y(e.element,"dblclick",u);x.push(e);p(a,{width:e.width,height:2*e.height});if(b.hasLoaded)e.align(a,!1,a.alignTo);else var f=y(b,"load",function(){e.element&&e.align(a,!1,a.alignTo);f()})});this.updateEvents(n)};z.prototype.updateEvents=function(a){var b=this.chart;f(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||
- y(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());f(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||y(b.container,void 0!==A.onwheel?"wheel":void 0!==A.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){b.pointer.inClass(a.target,"highcharts-no-mousewheel")||(b.pointer.onContainerMouseWheel(a),u(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};
- p(a.prototype,{fitToBox:function(a,d){[["x","width"],["y","height"]].forEach(function(b){var f=b[0];b=b[1];a[f]+a[b]>d[f]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[f]=d[f]):a[f]=d[f]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[f]<d[f]&&(a[f]=d[f])});return a},mapZoom:function(a,d,h,p,n,u){var b=this.xAxis[0],k=b.max-b.min,t=f(d,b.min+k/2),r=k*a;k=this.yAxis[0];var q=k.max-k.min,e=f(h,k.min+q/2);q*=a;t=this.fitToBox({x:t-r*(p?(p-b.pos)/b.len:.5),y:e-q*(n?(n-k.pos)/k.len:.5),width:r,height:q},{x:b.dataMin,y:k.dataMin,
- width:b.dataMax-b.dataMin,height:k.dataMax-k.dataMin});r=t.x<=b.dataMin&&t.width>=b.dataMax-b.dataMin&&t.y<=k.dataMin&&t.height>=k.dataMax-k.dataMin;p&&b.mapAxis&&(b.mapAxis.fixTo=[p-b.pos,d]);n&&k.mapAxis&&(k.mapAxis.fixTo=[n-k.pos,h]);"undefined"===typeof a||r?(b.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(b.setExtremes(t.x,t.x+t.width,!1),k.setExtremes(t.y,t.y+t.height,!1));this.redraw(u)}});y(a,"beforeRender",function(){this.mapNavigation=new z(this);this.mapNavigation.update()});
- n.MapNavigation=z});J(a,"Maps/MapPointer.js",[a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,n){var u=n.extend,D=n.pick;n=n.wrap;var z=0,A;u(a.prototype,{onContainerDblClick:function(a){var p=this.chart;a=this.normalize(a);p.options.mapNavigation.enableDoubleClickZoomTo?p.pointer.inClass(a.target,"highcharts-tracker")&&p.hoverPoint&&p.hoverPoint.zoomTo():p.isInsidePlot(a.chartX-p.plotLeft,a.chartY-p.plotTop)&&p.mapZoom(.5,p.xAxis[0].toValue(a.chartX),p.yAxis[0].toValue(a.chartY),a.chartX,
- a.chartY)},onContainerMouseWheel:function(a){var p=this.chart;a=this.normalize(a);var h=a.deltaY||a.detail||-(a.wheelDelta/120);1<=Math.abs(h)&&(z+=Math.abs(h),A&&clearTimeout(A),A=setTimeout(function(){z=0},50));10>z&&p.isInsidePlot(a.chartX-p.plotLeft,a.chartY-p.plotTop)&&p.mapZoom(Math.pow(p.options.mapNavigation.mouseWheelSensitivity,h),p.xAxis[0].toValue(a.chartX),p.yAxis[0].toValue(a.chartY),a.chartX,a.chartY,1>Math.abs(h)?!1:void 0)}});n(a.prototype,"zoomOption",function(a){var p=this.chart.options.mapNavigation;
- D(p.enableTouchZoom,p.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});n(a.prototype,"pinchTranslate",function(a,p,h,d,f,b,k){a.call(this,p,h,d,f,b,k);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=d.scaleX>d.scaleY,this.pinchTranslateDirection(!a,p,h,d,f,b,k,a?d.scaleX:d.scaleY))})});J(a,"Maps/MapSymbols.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],function(a){function n(a,n,u,A,y,p,h,d){return[["M",a+y,n],["L",a+u-p,n],["C",a+u-p/2,n,a+u,n+p/
- 2,a+u,n+p],["L",a+u,n+A-h],["C",a+u,n+A-h/2,a+u-h/2,n+A,a+u-h,n+A],["L",a+d,n+A],["C",a+d/2,n+A,a,n+A-d/2,a,n+A-d],["L",a,n+y],["C",a,n+y/2,a+y/2,n,a+y,n],["Z"]]}a=a.prototype.symbols;a.bottombutton=function(a,u,z,A,y){y=y&&y.r||0;return n(a-1,u-1,z,A,0,0,y,y)};a.topbutton=function(a,u,z,A,y){y=y&&y.r||0;return n(a-1,u-1,z,A,y,y,0,0)};return a});J(a,"Core/Chart/MapChart.js",[a["Core/Chart/Chart.js"],a["Core/DefaultOptions.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,
- n,C,D){var u=this&&this.__extends||function(){var a=function(d,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,f)};return function(d,f){function b(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}(),A=n.getOptions,y=D.merge,p=D.pick;a=function(a){function d(){return null!==a&&a.apply(this,arguments)||this}u(d,a);d.prototype.init=function(d,
- b){var f={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},h=A().credits;d=y({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:p(h.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:p(h.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:f,yAxis:y(f,{reversed:!0})},d,{chart:{inverted:!1,alignTicks:!1}});a.prototype.init.call(this,d,b)};return d}(a);(function(a){a.maps={};a.mapChart=function(d,f,b){return new a(d,
- f,b)};a.splitPath=function(a){"string"===typeof a&&(a=a.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),a=a.split(/[ ,;]+/).map(function(a){return/[A-za-z]/.test(a)?a:parseFloat(a)}));return C.prototype.pathToSegments(a)}})(a||(a={}));return a});J(a,"Series/Map/MapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=function(n,p){a=Object.setPrototypeOf||{__proto__:[]}instanceof
- Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return a(n,p)};return function(n,p){function h(){this.constructor=n}a(n,p);n.prototype=null===p?Object.create(p):(h.prototype=p.prototype,new h)}}();a=a.colorMapPointMixin;var z=C.extend;n=function(a){function n(){var p=null!==a&&a.apply(this,arguments)||this;p.options=void 0;p.path=void 0;p.series=void 0;return p}u(n,a);n.prototype.applyOptions=function(p,h){var d=this.series;p=a.prototype.applyOptions.call(this,
- p,h);h=d.joinBy;d.mapData&&d.mapMap&&(h=a.prototype.getNestedProperty.call(p,h[1]),(h="undefined"!==typeof h&&d.mapMap[h])?(d.xyFromShape&&(p.x=h._midX,p.y=h._midY),z(p,h)):p.value=p.value||null);return p};n.prototype.onMouseOver=function(p){C.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)a.prototype.onMouseOver.call(this,p);else this.series.onMouseOut(p)};n.prototype.zoomTo=function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,
- this._maxY,!1);a.chart.redraw()};return n}(n.seriesTypes.scatter.prototype.pointClass);z(n.prototype,{dataLabelOnNull:a.dataLabelOnNull,isValid:a.isValid,moveToTopOnHover:a.moveToTopOnHover});return n});J(a,"Series/Map/MapSeries.js",[a["Mixins/ColorMapSeries.js"],a["Core/Globals.js"],a["Mixins/LegendSymbol.js"],a["Core/Chart/MapChart.js"],a["Series/Map/MapPoint.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],
- function(a,n,C,D,z,A,y,p,h,d){var f=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();a=a.colorMapSeriesMixin;var b=n.noop,k=D.maps,u=D.splitPath;D=p.seriesTypes;var t=D.column,H=D.scatter;D=d.extend;
- var K=d.fireEvent,w=d.getNestedProperty,E=d.isArray,x=d.isNumber,r=d.merge,q=d.objectEach,e=d.pick,m=d.splat;d=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.baseTrans=void 0;b.chart=void 0;b.data=void 0;b.group=void 0;b.joinBy=void 0;b.options=void 0;b.points=void 0;b.transformGroup=void 0;return b}f(b,a);b.prototype.animate=function(a){var b=this.options.animation,c=this.group,e=this.xAxis,d=this.yAxis,f=e.pos,g=d.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),
- a?c.attr({translateX:f+e.len/2,translateY:g+d.len/2,scaleX:.001,scaleY:.001}):c.animate({translateX:f,translateY:g,scaleX:1,scaleY:1},b))};b.prototype.animateDrilldown=function(a){var b=this.chart.plotBox,c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],e=c.bBox,d=this.chart.options.drilldown.animation;a||(a=Math.min(e.width/b.width,e.height/b.height),c.shapeArgs={scaleX:a,scaleY:a,translateX:e.x,translateY:e.y},this.points.forEach(function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1,
- scaleY:1,translateX:0,translateY:0},d)}))};b.prototype.animateDrillupFrom=function(a){t.prototype.animateDrillupFrom.call(this,a)};b.prototype.animateDrillupTo=function(a){t.prototype.animateDrillupTo.call(this,a)};b.prototype.doFullTranslate=function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans};b.prototype.drawMapDataLabels=function(){y.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.drawPoints=
- function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.group,f=a.chart,g=f.renderer,h=this.baseTrans;a.transformGroup||(a.transformGroup=g.g().attr({scaleX:1,scaleY:1}).add(d),a.transformGroup.survive=!0);if(a.doFullTranslate())f.hasRendered&&!f.styledMode&&a.points.forEach(function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),a.group=a.transformGroup,t.prototype.drawPoints.apply(a),a.group=d,a.points.forEach(function(b){if(b.graphic){var c="";b.name&&(c+="highcharts-name-"+b.name.replace(/ /g,
- "-").toLowerCase());b.properties&&b.properties["hc-key"]&&(c+=" highcharts-key-"+b.properties["hc-key"].toLowerCase());c&&b.graphic.addClass(c);f.styledMode&&b.graphic.css(a.pointAttribs(b,b.selected&&"select"||void 0))}}),this.baseTrans={originX:b.min-b.minPixelPadding/b.transA,originY:c.min-c.minPixelPadding/c.transA+(c.reversed?0:c.len/c.transA),transAX:b.transA,transAY:c.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1});else{var k=b.transA/h.transAX;var m=c.transA/
- h.transAY;var q=b.toPixels(h.originX,!0);var r=c.toPixels(h.originY,!0);.99<k&&1.01>k&&.99<m&&1.01>m&&(m=k=1,q=Math.round(q),r=Math.round(r));var p=this.transformGroup;if(f.renderer.globalAnimation){var n=p.attr("translateX");var x=p.attr("translateY");var u=p.attr("scaleX");var w=p.attr("scaleY");p.attr({animator:0}).animate({animator:1},{step:function(a,b){p.attr({translateX:n+(q-n)*b.pos,translateY:x+(r-x)*b.pos,scaleX:u+(k-u)*b.pos,scaleY:w+(m-w)*b.pos})}})}else p.attr({translateX:q,translateY:r,
- scaleX:k,scaleY:m})}f.styledMode||d.element.setAttribute("stroke-width",e(a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"],1)/(k||1));this.drawMapDataLabels()};b.prototype.getBox=function(a){var b=Number.MAX_VALUE,c=-b,d=b,f=-b,g=b,k=b,l=this.xAxis,m=this.yAxis,q;(a||[]).forEach(function(a){if(a.path){"string"===typeof a.path?a.path=u(a.path):"M"===a.path[0]&&(a.path=h.prototype.pathToSegments(a.path));var l=a.path||[],m=-b,r=b,p=-b,n=b,t=a.properties;a._foundBox||
- (l.forEach(function(a){var b=a[a.length-2];a=a[a.length-1];"number"===typeof b&&"number"===typeof a&&(r=Math.min(r,b),m=Math.max(m,b),n=Math.min(n,a),p=Math.max(p,a))}),a._midX=r+(m-r)*e(a.middleX,t&&t["hc-middle-x"],.5),a._midY=n+(p-n)*e(a.middleY,t&&t["hc-middle-y"],.5),a._maxX=m,a._minX=r,a._maxY=p,a._minY=n,a.labelrank=e(a.labelrank,(m-r)*(p-n)),a._foundBox=!0);c=Math.max(c,a._maxX);d=Math.min(d,a._minX);f=Math.max(f,a._maxY);g=Math.min(g,a._minY);k=Math.min(a._maxX-a._minX,a._maxY-a._minY,k);
- q=!0}});q&&(this.minY=Math.min(g,e(this.minY,b)),this.maxY=Math.max(f,e(this.maxY,-b)),this.minX=Math.min(d,e(this.minX,b)),this.maxX=Math.max(c,e(this.maxX,-b)),l&&"undefined"===typeof l.options.minRange&&(l.minRange=Math.min(5*k,(this.maxX-this.minX)/5,l.minRange||b)),m&&"undefined"===typeof m.options.minRange&&(m.minRange=Math.min(5*k,(this.maxY-this.minY)/5,m.minRange||b)))};b.prototype.getExtremes=function(){var a=y.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;this.chart.hasRendered&&
- this.isDirtyData&&this.getBox(this.options.data);x(b)&&(this.valueMin=b);x(a)&&(this.valueMax=a);return{dataMin:this.minY,dataMax:this.maxY}};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.pointAttribs=function(a,b){b=a.series.chart.styledMode?this.colorAttribs(a):t.prototype.pointAttribs.call(this,a,b);b["stroke-width"]=e(a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],"inherit");return b};b.prototype.render=function(){var a=
- this,b=y.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){b.call(a)}):b.call(a)};b.prototype.setData=function(a,b,c,e){var d=this.options,f=this.chart.options.chart,g=f&&f.map,h=d.mapData,l=this.joinBy,m=d.keys||this.pointArrayMap,p=[],t={},v=this.chart.mapTransforms;!h&&g&&(h="string"===typeof g?k[g]:g);a&&a.forEach(function(b,c){var e=0;if(x(b))a[c]={value:b};else if(E(b)){a[c]={};!d.keys&&b.length>m.length&&"string"===typeof b[0]&&(a[c]["hc-key"]=b[0],++e);for(var f=
- 0;f<m.length;++f,++e)m[f]&&"undefined"!==typeof b[e]&&(0<m[f].indexOf(".")?z.prototype.setNestedProperty(a[c],b[e],m[f]):a[c][m[f]]=b[e])}l&&"_i"===l[0]&&(a[c]._i=c)});this.getBox(a);(this.chart.mapTransforms=v=f.mapTransforms||h&&h["hc-transform"]||v)&&q(v,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(h){"FeatureCollection"===h.type&&(this.mapTitle=h.title,h=n.geojson(h,this.type,this));this.mapData=h;this.mapMap={};for(v=0;v<h.length;v++)f=h[v],g=
- f.properties,f._i=v,l[0]&&g&&g[l[0]]&&(f[l[0]]=g[l[0]]),t[f[l[0]]]=f;this.mapMap=t;if(a&&l[1]){var u=l[1];a.forEach(function(a){a=w(u,a);t[a]&&p.push(t[a])})}if(d.allAreas){this.getBox(h);a=a||[];if(l[1]){var B=l[1];a.forEach(function(a){p.push(w(B,a))})}p="|"+p.map(function(a){return a&&a[l[0]]}).join("|")+"|";h.forEach(function(b){l[0]&&-1!==p.indexOf("|"+b[l[0]]+"|")||(a.push(r(b,{value:null})),e=!1)})}else this.getBox(p)}y.prototype.setData.call(this,a,b,c,e)};b.prototype.setOptions=function(a){a=
- y.prototype.setOptions.call(this,a);var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=m(b);b[1]||(b[1]=b[0]);return a};b.prototype.translate=function(){var a=this,b=a.xAxis,c=a.yAxis,e=a.doFullTranslate();a.generatePoints();a.data.forEach(function(d){x(d._midX)&&x(d._midY)&&(d.plotX=b.toPixels(d._midX,!0),d.plotY=c.toPixels(d._midY,!0));e&&(d.shapeType="path",d.shapeArgs={d:a.translatePath(d.path)})});K(a,"afterTranslate")};b.prototype.translatePath=function(a){var b=this.xAxis,c=this.yAxis,e=b.min,
- d=b.transA,f=b.minPixelPadding,g=c.min,h=c.transA,k=c.minPixelPadding,l=[];a&&a.forEach(function(a){"M"===a[0]?l.push(["M",(a[1]-(e||0))*d+f,(a[2]-(g||0))*h+k]):"L"===a[0]?l.push(["L",(a[1]-(e||0))*d+f,(a[2]-(g||0))*h+k]):"C"===a[0]?l.push(["C",(a[1]-(e||0))*d+f,(a[2]-(g||0))*h+k,(a[3]-(e||0))*d+f,(a[4]-(g||0))*h+k,(a[5]-(e||0))*d+f,(a[6]-(g||0))*h+k]):"Q"===a[0]?l.push(["Q",(a[1]-(e||0))*d+f,(a[2]-(g||0))*h+k,(a[3]-(e||0))*d+f,(a[4]-(g||0))*h+k]):"Z"===a[0]&&l.push(["Z"])});return l};b.defaultOptions=
- r(H.defaultOptions,{animation:!1,dataLabels:{crop:!1,formatter:function(){return this.point.value},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,nullColor:A.neutralColor3,stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:A.neutralColor20,borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:A.neutralColor20},inactive:{opacity:1}}});return b}(H);
- D(d.prototype,{type:"map",axisTypes:a.axisTypes,colorAttribs:a.colorAttribs,colorKey:a.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:C.drawRectangle,forceDL:!0,getExtremesFromAll:!0,getSymbol:a.getSymbol,parallelArrays:a.parallelArrays,pointArrayMap:a.pointArrayMap,pointClass:z,preserveAspectRatio:!0,searchPoint:b,trackerGroups:a.trackerGroups,useMapGeometry:!0});p.registerSeriesType("map",d);"";return d});J(a,"Series/MapLine/MapLineSeries.js",[a["Series/Map/MapSeries.js"],
- a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=function(h,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(h,d)};return function(h,d){function f(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),z=n.series,A=C.extend,y=C.merge;C=function(p){function h(){var a=null!==
- p&&p.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}u(h,p);h.prototype.pointAttribs=function(d,f){d=a.prototype.pointAttribs.call(this,d,f);d.fill=this.options.fillColor;return d};h.defaultOptions=y(a.defaultOptions,{lineWidth:1,fillColor:"none"});return h}(a);A(C.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:z.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});n.registerSeriesType("mapline",C);"";return C});
- J(a,"Series/MapPoint/MapPointPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n){var u=this&&this.__extends||function(){var a=function(n,u){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var d in h)h.hasOwnProperty(d)&&(a[d]=h[d])};return a(n,u)};return function(n,u){function p(){this.constructor=n}a(n,u);n.prototype=null===u?Object.create(u):(p.prototype=u.prototype,new p)}}(),D=n.merge;return function(a){function n(){var n=
- null!==a&&a.apply(this,arguments)||this;n.options=void 0;n.series=void 0;return n}u(n,a);n.prototype.applyOptions=function(n,p){n="undefined"!==typeof n.lat&&"undefined"!==typeof n.lon?D(n,this.series.chart.fromLatLonToPoint(n)):n;return a.prototype.applyOptions.call(this,n,p)};return n}(a.seriesTypes.scatter.prototype.pointClass)});J(a,"Series/MapPoint/MapPointSeries.js",[a["Series/MapPoint/MapPointPoint.js"],a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,
- n,C,D){var u=this&&this.__extends||function(){var a=function(d,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,f)};return function(d,f){function b(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}(),A=C.seriesTypes.scatter,y=D.extend,p=D.merge;D=function(a){function d(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=
- void 0;d.points=void 0;return d}u(d,a);d.prototype.drawDataLabels=function(){a.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};d.defaultOptions=p(A.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:n.neutralColor100}}});return d}(A);y(D.prototype,{type:"mappoint",forceDL:!0,pointClass:a});C.registerSeriesType("mappoint",D);"";return D});J(a,"Series/Bubble/BubblePoint.js",
- [a["Core/Series/Point.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=function(n,u){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var d in h)h.hasOwnProperty(d)&&(a[d]=h[d])};return a(n,u)};return function(n,u){function p(){this.constructor=n}a(n,u);n.prototype=null===u?Object.create(u):(p.prototype=u.prototype,new p)}}();C=C.extend;n=function(n){function z(){var a=
- null!==n&&n.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}u(z,n);z.prototype.haloPath=function(n){return a.prototype.haloPath.call(this,0===n?0:(this.marker?this.marker.radius||0:0)+n)};return z}(n.seriesTypes.scatter.prototype.pointClass);C(n.prototype,{ttBelow:!1});return n});J(a,"Series/Bubble/BubbleLegend.js",[a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Legend.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],
- a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p,h){var d=n.parse,f=D.noop;A=A.setOptions;n=h.addEvent;var b=h.arrayMax,k=h.arrayMin,u=h.isNumber,t=h.merge,H=h.objectEach,K=h.pick,w=h.stableSort;h=h.wrap;"";A({legend:{bubbleLegend:{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",
- style:{fontSize:"10px",color:y.neutralColor100},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}});y=function(){function a(a,b){this.options=this.symbols=this.visible=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=f;this.init(a,
- b)}a.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};a.prototype.drawLegendSymbol=function(a){var b=this.chart,d=this.options,e=K(a.options.itemDistance,20),f=d.ranges;var c=d.connectorDistance;this.fontMetrics=b.renderer.fontMetrics(d.labels.style.fontSize);f&&f.length&&u(f[0].value)?(w(f,function(a,b){return b.value-a.value}),this.ranges=f,this.setOptions(),this.render(),
- b=this.getMaxLabelSize(),f=this.ranges[0].radius,a=2*f,c=c-f+b.width,c=0<c?c:0,this.maxLabel=b,this.movementX="left"===d.labels.align?c:0,this.legendItemWidth=a+c+e,this.legendItemHeight=a+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var a=this.ranges,b=this.options,f=this.chart.series[b.seriesIndex],e=this.legend.baseline,h={zIndex:b.zIndex,"stroke-width":b.borderWidth},c={zIndex:b.zIndex,"stroke-width":b.connectorWidth},g={align:this.legend.options.rtl||
- "left"===b.labels.align?"right":"left",zIndex:b.zIndex},k=f.options.marker.fillOpacity,n=this.chart.styledMode;a.forEach(function(l,m){n||(h.stroke=K(l.borderColor,b.borderColor,f.color),h.fill=K(l.color,b.color,1!==k?d(f.color).setOpacity(k).get("rgba"):f.color),c.stroke=K(l.connectorColor,b.connectorColor,f.color));a[m].radius=this.getRangeRadius(l.value);a[m]=t(a[m],{center:a[0].radius-a[m].radius+e});n||t(!0,a[m],{bubbleAttribs:t(h),connectorAttribs:t(c),labelAttribs:g})},this)};a.prototype.getRangeRadius=
- function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,a)};a.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=
- b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};a.prototype.renderRange=function(a){var b=this.options,d=b.labels,e=this.chart,f=e.series[b.seriesIndex],c=e.renderer,g=this.symbols;e=g.labels;var h=a.center,k=Math.abs(a.radius),n=b.connectorDistance||0,p=d.align;n=this.legend.options.rtl||"left"===p?-n:n;var t=b.connectorWidth,x=this.ranges[0].radius||0,u=h-k-b.borderWidth/2+t/2,w=this.fontMetrics;w=w.f/2-(w.h-
- w.f)/2;var B=c.styledMode;"center"===p&&(n=0,b.connectorDistance=0,a.labelAttribs.align="center");p=u+b.labels.y;var y=x+n+b.labels.x;g.bubbleItems.push(c.circle(x,h+((u%1?1:.5)-(t%2?0:.5)),k).attr(B?{}:a.bubbleAttribs).addClass((B?"highcharts-color-"+f.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));g.connectors.push(c.path(c.crispLine([["M",x,u],["L",x+n,u]],b.connectorWidth)).attr(B?{}:a.connectorAttribs).addClass((B?"highcharts-color-"+this.options.seriesIndex+
- " ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=c.text(this.formatLabel(a),y,p+w).attr(B?{}:a.labelAttribs).css(B?{}:d.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);e.push(a);a.placed=!0;a.alignAttr={x:y,y:p+w}};a.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(d){b=d.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};a.prototype.formatLabel=function(a){var b=
- this.options,d=b.labels.formatter;b=b.labels.format;var e=this.chart.numberFormatter;return b?C.format(b,a):d?d.call(a):e(a.value,1)};a.prototype.hideOverlappingLabels=function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),b.labels.forEach(function(a,e){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[e].show():b.connectors[e].hide()}))};a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,d=a.options.ranges,f,e=Number.MAX_VALUE,
- h=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(f=a.zData.filter(u),f.length&&(e=K(a.options.zMin,Math.min(e,Math.max(k(f),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),h=K(a.options.zMax,Math.max(h,b(f)))))});var c=e===h?[{value:h}]:[{value:e},{value:(e+h)/2},{value:h,autoRanges:!0}];d.length&&d[0].radius&&c.reverse();c.forEach(function(a,b){d&&d[b]&&(c[b]=t(d[b],a))});return c};a.prototype.predictBubbleSizes=function(){var a=this.chart,
- b=this.fontMetrics,d=a.legend.options,e="horizontal"===d.layout,f=e?a.legend.lastLineHeight:0,c=a.plotSizeX,g=a.plotSizeY,h=a.series[this.options.seriesIndex];a=Math.ceil(h.minPxSize);var k=Math.ceil(h.maxPxSize);h=h.options.maxSize;var n=Math.min(g,c);if(d.floating||!/%$/.test(h))b=k;else if(h=parseFloat(h),b=(n+f-b.h/2)*h/100/(h/100+1),e&&g-b>=c||!e&&c-b>=g)b=k;return[a,Math.ceil(b)]};a.prototype.updateRanges=function(a,b){var d=this.legend.options.bubbleLegend;d.minSize=a;d.maxSize=b;d.ranges=
- this.getRanges()};a.prototype.correctSizes=function(){var a=this.legend,b=this.chart.series[this.options.seriesIndex];1<Math.abs(Math.ceil(b.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return a}();n(z,"afterGetAllItems",function(a){var b=this.bubbleLegend,d=this.options,f=d.bubbleLegend,e=this.chart.getVisibleBubbleSeriesIndex();b&&b.ranges&&b.ranges.length&&(f.ranges.length&&(f.autoRanges=!!f.ranges[0].autoRanges),this.destroyItem(b));0<=e&&
- d.enabled&&f.enabled&&(f.seriesIndex=e,this.bubbleLegend=new D.BubbleLegend(f,this),this.bubbleLegend.addToLegend(a.allItems))});a.prototype.getVisibleBubbleSeriesIndex=function(){for(var a=this.series,b=0;b<a.length;){if(a[b]&&a[b].isBubble&&a[b].visible&&a[b].zData.length)return b;b++}return-1};z.prototype.getLinesHeights=function(){var a=this.allItems,b=[],d=a.length,f,e=0;for(f=0;f<d;f++)if(a[f].legendItemHeight&&(a[f].itemHeight=a[f].legendItemHeight),a[f]===a[d-1]||a[f+1]&&a[f]._legendItemPos[1]!==
- a[f+1]._legendItemPos[1]){b.push({height:0});var h=b[b.length-1];for(e;e<=f;e++)a[e].itemHeight>h.height&&(h.height=a[e].itemHeight);h.step=f}return b};z.prototype.retranslateItems=function(a){var b,d,f,e=this.options.rtl,h=0;this.allItems.forEach(function(c,g){b=c.legendGroup.translateX;d=c._legendItemPos[1];if((f=c.movementX)||e&&c.ranges)f=e?b-c.options.maxSize/2:b+f,c.legendGroup.attr({translateX:f});g>a[h].step&&h++;c.legendGroup.attr({translateY:Math.round(d+a[h].height/2)});c._legendItemPos[1]=
- d+a[h].height/2})};n(p,"legendItemClick",function(){var a=this.chart,b=this.visible,d=this.chart.legend;d&&d.bubbleLegend&&(this.visible=!b,this.ignoreSeries=b,a=0<=a.getVisibleBubbleSeriesIndex(),d.bubbleLegend.visible!==a&&(d.update({bubbleLegend:{enabled:a}}),d.bubbleLegend.visible=a),this.visible=b)});h(a.prototype,"drawChartBox",function(a,b,d){var f=this.legend,e=0<=this.getVisibleBubbleSeriesIndex();if(f&&f.options.enabled&&f.bubbleLegend&&f.options.bubbleLegend.autoRanges&&e){var h=f.bubbleLegend.options;
- e=f.bubbleLegend.predictBubbleSizes();f.bubbleLegend.updateRanges(e[0],e[1]);h.placed||(f.group.placed=!1,f.allItems.forEach(function(a){a.legendGroup.translateY=null}));f.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();h.placed||(a.setScale(),a.updateNames(),H(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});h.placed=!0;this.getMargins();a.call(this,b,d);f.bubbleLegend.correctSizes();f.retranslateItems(f.getLinesHeights())}else a.call(this,b,d),f&&f.options.enabled&&
- f.bubbleLegend&&(f.render(),f.retranslateItems(f.getLinesHeights()))});D.BubbleLegend=y;return D.BubbleLegend});J(a,"Series/Bubble/BubbleSeries.js",[a["Core/Axis/Axis.js"],a["Series/Bubble/BubblePoint.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y){var p=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
- b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),h=C.parse;C=D.noop;var d=A.seriesTypes;D=d.column;var f=d.scatter,b=y.arrayMax,k=y.arrayMin,u=y.clamp,t=y.extend,H=y.isNumber,K=y.merge,w=y.pick,E=y.pInt;y=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.maxPxSize=void 0;b.minPxSize=void 0;b.options=
- void 0;b.points=void 0;b.radii=void 0;b.yData=void 0;b.zData=void 0;return b}p(b,a);b.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var b=a.graphic;b&&b.width&&(this.hasRendered||b.attr({x:a.plotX,y:a.plotY,width:1,height:1}),b.animate(this.markerAttribs(a),this.options.animation))},this)};b.prototype.getRadii=function(a,b,d){var c=this.zData,e=this.yData,f=d.minPxSize,h=d.maxPxSize,k=[];var m=0;for(d=c.length;m<d;m++){var n=c[m];
- k.push(this.getRadius(a,b,f,h,n,e[m]))}this.radii=k};b.prototype.getRadius=function(a,b,d,c,f,h){var e=this.options,g="width"!==e.sizeBy,k=e.zThreshold,l=b-a,m=.5;if(null===h||null===f)return null;if(H(f)){e.sizeByAbsoluteValue&&(f=Math.abs(f-k),l=Math.max(b-k,Math.abs(a-k)),a=0);if(f<a)return d/2-1;0<l&&(m=(f-a)/l)}g&&0<=m&&(m=Math.sqrt(m));return Math.ceil(d+m*(c-d))/2};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.pointAttribs=function(a,b){var e=this.options.marker.fillOpacity;
- a=z.prototype.pointAttribs.call(this,a,b);1!==e&&(a.fill=h(a.fill).setOpacity(e).get("rgba"));return a};b.prototype.translate=function(){var b,e=this.data,d=this.radii;a.prototype.translate.call(this);for(b=e.length;b--;){var c=e[b];var f=d?d[b]:0;H(f)&&f>=this.minPxSize/2?(c.marker=t(c.marker,{radius:f,width:2*f,height:2*f}),c.dlBox={x:c.plotX-f,y:c.plotY-f,width:2*f,height:2*f}):c.shapeArgs=c.plotY=c.dlBox=void 0}};b.defaultOptions=K(f.defaultOptions,{dataLabels:{formatter:function(){return this.point.z},
- inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return b}(f);t(y.prototype,{alignDataLabel:D.prototype.alignDataLabel,applyZones:C,bubblePadding:!0,buildKDTree:C,directTouch:!0,isBubble:!0,pointArrayMap:["y",
- "z"],pointClass:n,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});a.prototype.beforePadding=function(){var a=this,d=this.len,f=this.chart,e=0,h=d,c=this.isXAxis,g=c?"xData":"yData",l=this.min,n={},p=Math.min(f.plotWidth,f.plotHeight),t=Number.MAX_VALUE,B=-Number.MAX_VALUE,y=this.max-l,z=d/y,A=[];this.series.forEach(function(e){var d=e.options;!e.bubblePadding||!e.visible&&f.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,A.push(e),
- c&&(["minSize","maxSize"].forEach(function(a){var b=d[a],c=/%$/.test(b);b=E(b);n[a]=c?p*b/100:b}),e.minPxSize=n.minSize,e.maxPxSize=Math.max(n.maxSize,n.minSize),e=e.zData.filter(H),e.length&&(t=w(d.zMin,u(k(e),!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE,t)),B=w(d.zMax,Math.max(B,b(e))))))});A.forEach(function(b){var d=b[g],f=d.length;c&&b.getRadii(t,B,b);if(0<y)for(;f--;)if(H(d[f])&&a.dataMin<=d[f]&&d[f]<=a.max){var k=b.radii?b.radii[f]:0;e=Math.min((d[f]-l)*z-k,e);h=Math.max((d[f]-l)*
- z+k,h)}});A.length&&0<y&&!this.logarithmic&&(h-=d,z*=(d+Math.max(0,e)-Math.min(h,d))/d,[["min","userMin",e],["max","userMax",h]].forEach(function(b){"undefined"===typeof w(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/z)}))};A.registerSeriesType("bubble",y);"";"";return y});J(a,"Series/MapBubble/MapBubblePoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n){var u=this&&this.__extends||function(){var a=function(n,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
- function(a,f){a.__proto__=f}||function(a,f){for(var b in f)f.hasOwnProperty(b)&&(a[b]=f[b])};return a(n,h)};return function(n,h){function d(){this.constructor=n}a(n,h);n.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}(),D=a.seriesTypes,z=D.map;a=n.extend;var A=n.merge;n=function(a){function n(){return null!==a&&a.apply(this,arguments)||this}u(n,a);n.prototype.applyOptions=function(h,d){return h&&"undefined"!==typeof h.lat&&"undefined"!==typeof h.lon?a.prototype.applyOptions.call(this,
- A(h,this.series.chart.fromLatLonToPoint(h)),d):z.prototype.pointClass.prototype.applyOptions.call(this,h,d)};n.prototype.isValid=function(){return"number"===typeof this.z};return n}(D.bubble.prototype.pointClass);a(n.prototype,{ttBelow:!1});return n});J(a,"Series/MapBubble/MapBubbleSeries.js",[a["Series/Bubble/BubbleSeries.js"],a["Series/MapBubble/MapBubblePoint.js"],a["Series/Map/MapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C,D,z){var u=this&&this.__extends||
- function(){var a=function(d,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,f)};return function(d,f){function b(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}(),y=z.extend,p=z.merge;z=function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}u(d,h);d.defaultOptions=
- p(a.defaultOptions,{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}});return d}(a);y(z.prototype,{type:"mapbubble",getBox:C.prototype.getBox,pointArrayMap:["z"],pointClass:n,setData:C.prototype.setData,setOptions:C.prototype.setOptions,xyFromShape:!0});D.registerSeriesType("mapbubble",z);"";return z});J(a,"Series/Heatmap/HeatmapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,n,C){var u=this&&this.__extends||function(){var a=
- function(h,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(h,d)};return function(h,d){function f(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}();a=a.colorMapPointMixin;var z=C.clamp,A=C.extend,y=C.pick;n=function(a){function h(){var d=null!==a&&a.apply(this,arguments)||this;d.options=void 0;d.series=void 0;d.value=void 0;d.x=void 0;
- d.y=void 0;return d}u(h,a);h.prototype.applyOptions=function(d,f){d=a.prototype.applyOptions.call(this,d,f);d.formatPrefix=d.isNull||null===d.value?"null":"point";return d};h.prototype.getCellAttributes=function(){var a=this.series,f=a.options,b=(f.colsize||1)/2,h=(f.rowsize||1)/2,n=a.xAxis,p=a.yAxis,u=this.options.marker||a.options.marker;a=a.pointPlacementToXValue();var A=y(this.pointPadding,f.pointPadding,0),w={x1:z(Math.round(n.len-(n.translate(this.x-b,!1,!0,!1,!0,-a)||0)),-n.len,2*n.len),x2:z(Math.round(n.len-
- (n.translate(this.x+b,!1,!0,!1,!0,-a)||0)),-n.len,2*n.len),y1:z(Math.round(p.translate(this.y-h,!1,!0,!1,!0)||0),-p.len,2*p.len),y2:z(Math.round(p.translate(this.y+h,!1,!0,!1,!0)||0),-p.len,2*p.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var d=a+"1",f=a+"2",e=Math.abs(w[d]-w[f]),h=u&&u.lineWidth||0,c=Math.abs(w[d]+w[f])/2;u[b]&&u[b]<e&&(w[d]=c-u[b]/2-h/2,w[f]=c+u[b]/2+h/2);A&&("y"===a&&(d=f,f=a+"1"),w[d]+=A,w[f]-=A)});return w};h.prototype.haloPath=function(a){if(!a)return[];
- var d=this.shapeArgs;return["M",d.x-a,d.y-a,"L",d.x-a,d.y+d.height+a,d.x+d.width+a,d.y+d.height+a,d.x+d.width+a,d.y-a,"Z"]};h.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return h}(n.seriesTypes.scatter.prototype.pointClass);A(n.prototype,{dataLabelOnNull:a.dataLabelOnNull,moveToTopOnHover:a.moveToTopOnHover});return n});J(a,"Series/Heatmap/HeatmapSeries.js",[a["Core/Color/Color.js"],a["Mixins/ColorMapSeries.js"],a["Series/Heatmap/HeatmapPoint.js"],a["Mixins/LegendSymbol.js"],
- a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,n,C,D,z,A,y,p){var h=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}();
- n=n.colorMapSeriesMixin;var d=A.series,f=A.seriesTypes,b=f.column,k=f.scatter,u=y.prototype.symbols,t=p.extend,H=p.fireEvent,K=p.isNumber,w=p.merge,E=p.pick;y=function(b){function f(){var a=null!==b&&b.apply(this,arguments)||this;a.colorAxis=void 0;a.data=void 0;a.options=void 0;a.points=void 0;a.valueMax=NaN;a.valueMin=NaN;return a}h(f,b);f.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)d.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&
- (b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),a.options.borderRadius&&b.graphic.attr({r:a.options.borderRadius}),null===b.value&&b.graphic.addClass("highcharts-null-point"))})};f.prototype.getExtremes=function(){var a=d.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;K(b)&&(this.valueMin=b);K(a)&&(this.valueMax=a);return d.prototype.getExtremes.call(this)};f.prototype.getValidPoints=function(a,b){return d.prototype.getValidPoints.call(this,a,b,!0)};f.prototype.hasData=
- function(){return!!this.processedXData.length};f.prototype.init=function(){d.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=E(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;u.ellipse=u.circle};f.prototype.markerAttribs=function(a,b){var d=a.marker||{},c=this.options.marker||{},e=a.shapeArgs||{},f={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var h=c.states[b]||{};var k=d.states&&d.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){f[a[0]]=
- (k[a[0]]||h[a[0]]||e[a[0]])+(k[a[0]+"Plus"]||h[a[0]+"Plus"]||0);f[a[1]]=e[a[1]]+(e[a[0]]-f[a[0]])/2})}return b?f:e};f.prototype.pointAttribs=function(b,e){var f=d.prototype.pointAttribs.call(this,b,e),c=this.options||{},g=this.chart.options.plotOptions||{},h=g.series||{},k=g.heatmap||{};g=c.borderColor||k.borderColor||h.borderColor;h=c.borderWidth||k.borderWidth||h.borderWidth||f["stroke-width"];f.stroke=b&&b.marker&&b.marker.lineColor||c.marker&&c.marker.lineColor||g||this.color;f["stroke-width"]=
- h;e&&(b=w(c.states[e],c.marker&&c.marker.states[e],b&&b.options.states&&b.options.states[e]||{}),e=b.brightness,f.fill=b.color||a.parse(f.fill).brighten(e||0).get(),f.stroke=b.lineColor);return f};f.prototype.setClip=function(a){var b=this.chart;d.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};f.prototype.translate=function(){var a=this.options,b=a.marker&&a.marker.symbol||
- "rect",d=u[b]?b:"rect",c=-1!==["circle","square"].indexOf(d);this.generatePoints();this.points.forEach(function(a){var e=a.getCellAttributes(),f={};f.x=Math.min(e.x1,e.x2);f.y=Math.min(e.y1,e.y2);f.width=Math.max(Math.abs(e.x2-e.x1),0);f.height=Math.max(Math.abs(e.y2-e.y1),0);var g=a.hasImage=0===(a.marker&&a.marker.symbol||b||"").indexOf("url");if(c){var h=Math.abs(f.width-f.height);f.x=Math.min(e.x1,e.x2)+(f.width<f.height?0:h/2);f.y=Math.min(e.y1,e.y2)+(f.width<f.height?h/2:0);f.width=f.height=
- Math.min(f.width,f.height)}h={plotX:(e.x1+e.x2)/2,plotY:(e.y1+e.y2)/2,clientX:(e.x1+e.x2)/2,shapeType:"path",shapeArgs:w(!0,f,{d:u[d](f.x,f.y,f.width,f.height)})};g&&(a.marker={width:f.width,height:f.height});t(a,h)});H(this,"afterTranslate")};f.defaultOptions=w(k.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:z.neutralColor3,dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:{symbol:"rect",radius:0,
- lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});return f}(k);t(y.prototype,{alignDataLabel:b.prototype.alignDataLabel,axisTypes:n.axisTypes,colorAttribs:n.colorAttribs,colorKey:n.colorKey,directTouch:!0,drawLegendSymbol:D.drawRectangle,getExtremesFromAll:!0,getSymbol:d.prototype.getSymbol,parallelArrays:n.parallelArrays,pointArrayMap:["y","value"],pointClass:C,
- trackerGroups:n.trackerGroups});A.registerSeriesType("heatmap",y);"";"";return y});J(a,"Extensions/GeoJSON.js",[a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,n,C,D){function u(a,b){var d,f=!1,h=a.x,n=a.y;a=0;for(d=b.length-1;a<b.length;d=a++){var p=b[a][1]>n;var u=b[d][1]>n;p!==u&&h<(b[d][0]-b[a][0])*(n-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(f=!f)}return f}var A=n.format,y=C.win,p=D.error,h=D.extend,d=D.merge;n=D.wrap;"";a.prototype.transformFromLatLon=
- function(a,b){var d=this.userOptions.chart&&this.userOptions.chart.proj4||y.proj4;if(!d)return p(21,!1,this),{x:0,y:null};a=d(b.crs,[a.lon,a.lat]);d=b.cosAngle||b.rotation&&Math.cos(b.rotation);var f=b.sinAngle||b.rotation&&Math.sin(b.rotation);a=b.rotation?[a[0]*d+a[1]*f,-a[0]*f+a[1]*d]:a;return{x:((a[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-a[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};a.prototype.transformToLatLon=function(a,
- b){if("undefined"===typeof y.proj4)p(21,!1,this);else{a={x:((a.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-a.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=y.proj4(b.crs,"WGS84",b.rotation?{x:a.x*d+a.y*-f,y:a.x*f+a.y*d}:a);return{lat:b.y,lon:b.x}}};a.prototype.fromPointToLatLon=function(a){var b=this.mapTransforms,d;if(b){for(d in b)if(Object.hasOwnProperty.call(b,
- d)&&b[d].hitZone&&u({x:a.x,y:-a.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(a,b[d]);return this.transformToLatLon(a,b["default"])}p(22,!1,this)};a.prototype.fromLatLonToPoint=function(a){var b=this.mapTransforms,d;if(!b)return p(22,!1,this),{x:0,y:null};for(d in b)if(Object.hasOwnProperty.call(b,d)&&b[d].hitZone){var f=this.transformFromLatLon(a,b[d]);if(u({x:f.x,y:-f.y},b[d].hitZone.coordinates[0]))return f}return this.transformFromLatLon(a,b["default"])};C.geojson=function(a,b,
- d){var f=[],k=[],n=function(a){a.forEach(function(a,b){0===b?k.push(["M",a[0],-a[1]]):k.push(["L",a[0],-a[1]])})};b=b||"map";a.features.forEach(function(a){var d=a.geometry,p=d.type;d=d.coordinates;a=a.properties;var t;k=[];"map"===b||"mapbubble"===b?("Polygon"===p?(d.forEach(n),k.push(["Z"])):"MultiPolygon"===p&&(d.forEach(function(a){a.forEach(n)}),k.push(["Z"])),k.length&&(t={path:k})):"mapline"===b?("LineString"===p?n(d):"MultiLineString"===p&&d.forEach(n),k.length&&(t={path:k})):"mappoint"===
- b&&"Point"===p&&(t={x:d[0],y:-d[1]});t&&f.push(h(t,{name:a.name||a.NAME,properties:a}))});d&&a.copyrightShort&&(d.chart.mapCredits=A(d.chart.options.credits.mapText,{geojson:a}),d.chart.mapCreditsFull=A(d.chart.options.credits.mapTextFull,{geojson:a}));return f};n(a.prototype,"addCredits",function(a,b){b=d(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});J(a,"masters/modules/map.src.js",[a["Core/Globals.js"],
- a["Core/Chart/MapChart.js"]],function(a,n){a.MapChart=n;a.mapChart=a.Map=n.mapChart;a.maps=n.maps});J(a,"masters/highmaps.src.js",[a["masters/highcharts.src.js"]],function(a){a.product="Highmaps";return a});a["masters/highmaps.src.js"]._modules=a;return a["masters/highmaps.src.js"]});
- //# sourceMappingURL=highmaps.js.map
|