UNPKG

highcharts

Version:
104 lines (102 loc) 387 kB
/* Highmaps JS v10.0.0 (2022-03-07) (c) 2011-2021 Torstein Honsi License: www.highcharts.com/license */ (function(W,J){"object"===typeof module&&module.exports?(J["default"]=J,module.exports=W.document?J(W):J):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return J(W)}):(W.Highcharts&&W.Highcharts.error(16,!0),W.Highcharts=J(W))})("undefined"!==typeof window?window:this,function(W){function J(b,I,e,E){b.hasOwnProperty(I)||(b[I]=E.apply(null,e),"function"===typeof CustomEvent&&W.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:I,module:b[I]}})))}var e= {};J(e,"Core/Globals.js",[],function(){var b;(function(b){b.SVG_NS="http://www.w3.org/2000/svg";b.product="Highcharts";b.version="10.0.0";b.win="undefined"!==typeof W?W:{};b.doc=b.win.document;b.svg=b.doc&&b.doc.createElementNS&&!!b.doc.createElementNS(b.SVG_NS,"svg").createSVGRect;b.userAgent=b.win.navigator&&b.win.navigator.userAgent||"";b.isChrome=-1!==b.userAgent.indexOf("Chrome");b.isFirefox=-1!==b.userAgent.indexOf("Firefox");b.isMS=/(edge|msie|trident)/i.test(b.userAgent)&&!b.win.opera;b.isSafari= !b.isChrome&&-1!==b.userAgent.indexOf("Safari");b.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(b.userAgent);b.isWebKit=-1!==b.userAgent.indexOf("AppleWebKit");b.deg2rad=2*Math.PI/360;b.hasBidiBug=b.isFirefox&&4>parseInt(b.userAgent.split("Firefox/")[1],10);b.hasTouch=!!b.win.TouchEvent;b.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];b.noop=function(){};b.supportsPassiveEvents=function(){var e=!1;if(!b.isMS){var I=Object.defineProperty({},"passive",{get:function(){e=!0}}); b.win.addEventListener&&b.win.removeEventListener&&(b.win.addEventListener("testPassive",b.noop,I),b.win.removeEventListener("testPassive",b.noop,I))}return e}();b.charts=[];b.dateFormats={};b.seriesTypes={};b.symbolSizes={};b.chartCount=0})(b||(b={}));"";return b});J(e,"Core/Utilities.js",[e["Core/Globals.js"]],function(b){function e(c,u,g,h){var F=u?"Highcharts error":"Highcharts warning";32===c&&(c=F+": Deprecated member");var D=l(c),a=D?F+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString(); if("undefined"!==typeof h){var m="";D&&(a+="?");B(h,function(c,u){m+="\n - "+u+": "+c;D&&(a+=encodeURI(u)+"="+encodeURI(c))});a+=m}r(b,"displayError",{chart:g,code:c,message:a,params:h},function(){if(u)throw Error(a);p.console&&-1===e.messages.indexOf(a)&&console.warn(a)});e.messages.push(a)}function v(c,u){var F={};B(c,function(g,h){if(C(c[h],!0)&&!c.nodeType&&u[h])g=v(c[h],u[h]),Object.keys(g).length&&(F[h]=g);else if(C(c[h])||c[h]!==u[h]||h in c&&!(h in u))F[h]=c[h]});return F}function E(c,u){return parseInt(c, u||10)}function t(c){return"string"===typeof c}function A(c){c=Object.prototype.toString.call(c);return"[object Array]"===c||"[object Array Iterator]"===c}function C(c,u){return!!c&&"object"===typeof c&&(!u||!A(c))}function z(c){return C(c)&&"number"===typeof c.nodeType}function q(c){var u=c&&c.constructor;return!(!C(c,!0)||z(c)||!u||!u.name||"Object"===u.name)}function l(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity<c}function n(c){return"undefined"!==typeof c&&null!==c}function d(c, u,g){var h=t(u)&&!n(g),F,a=function(u,g){n(u)?c.setAttribute(g,u):h?(F=c.getAttribute(g))||"class"!==g||(F=c.getAttribute(g+"Name")):c.removeAttribute(g)};t(u)?a(g,u):B(u,a);return F}function a(c,u){var g;c||(c={});for(g in u)c[g]=u[g];return c}function f(){for(var c=arguments,u=c.length,g=0;g<u;g++){var h=c[g];if("undefined"!==typeof h&&null!==h)return h}}function k(c,u){b.isMS&&!b.svg&&u&&n(u.opacity)&&(u.filter="alpha(opacity="+100*u.opacity+")");a(c.style,u)}function G(c,u){return 1E14<c?c:parseFloat(c.toPrecision(u|| 14))}function y(c,u,g){var h=b.getStyle||y;if("width"===u)return u=Math.min(c.offsetWidth,c.scrollWidth),g=c.getBoundingClientRect&&c.getBoundingClientRect().width,g<u&&g>=u-1&&(u=Math.floor(g)),Math.max(0,u-(h(c,"padding-left",!0)||0)-(h(c,"padding-right",!0)||0));if("height"===u)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(h(c,"padding-top",!0)||0)-(h(c,"padding-bottom",!0)||0));p.getComputedStyle||e(27,!0);if(c=p.getComputedStyle(c,void 0)){var a=c.getPropertyValue(u);f(g,"opacity"!== u)&&(a=E(a))}return a}function B(c,u,g){for(var h in c)Object.hasOwnProperty.call(c,h)&&u.call(g||c[h],c[h],h,c)}function x(c,u,g){function h(u,g){var h=c.removeEventListener||b.removeEventListenerPolyfill;h&&h.call(c,u,g,!1)}function a(g){var a;if(c.nodeName){if(u){var F={};F[u]=!0}else F=g;B(F,function(c,u){if(g[u])for(a=g[u].length;a--;)h(u,g[u][a].fn)})}}var F="function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(F,"hcEvents")){var m=F.hcEvents;u?(F=m[u]||[],g?(m[u]=F.filter(function(c){return g!== c.fn}),h(u,g)):(a(m),m[u]=[])):(a(m),delete F.hcEvents)}}function r(c,u,g,m){g=g||{};if(h.createEvent&&(c.dispatchEvent||c.fireEvent&&c!==b)){var F=h.createEvent("Events");F.initEvent(u,!0,!0);g=a(F,g);c.dispatchEvent?c.dispatchEvent(g):c.fireEvent(u,g)}else if(c.hcEvents){g.target||a(g,{preventDefault:function(){g.defaultPrevented=!0},target:c,type:u});F=[];for(var p=c,D=!1;p.hcEvents;)Object.hasOwnProperty.call(p,"hcEvents")&&p.hcEvents[u]&&(F.length&&(D=!0),F.unshift.apply(F,p.hcEvents[u])),p= Object.getPrototypeOf(p);D&&F.sort(function(c,g){return c.order-g.order});F.forEach(function(u){!1===u.fn.call(c,g)&&g.preventDefault()})}m&&!g.defaultPrevented&&m.call(c,g)}var m=b.charts,h=b.doc,p=b.win;(e||(e={})).messages=[];Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var c=Array.prototype.find?function(c,g){return c.find(g)}:function(c,g){var u,h=c.length;for(u=0;u<h;u++)if(g(c[u],u))return c[u]};B({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(c, g){b[g]=function(u){var h;e(32,!1,void 0,(h={},h["Highcharts."+g]="use Array."+c,h));return Array.prototype[c].apply(u,[].slice.call(arguments,1))}});var w,g=function(){var c=Math.random().toString(36).substring(2,9)+"-",g=0;return function(){return"highcharts-"+(w?"":c)+g++}}();p.jQuery&&(p.jQuery.fn.highcharts=function(){var c=[].slice.call(arguments);if(this[0])return c[0]?(new (b[t(c[0])?c.shift():"Chart"])(this[0],c[0],c[1]),this):m[d(this[0],"data-highcharts-chart")]});c={addEvent:function(c, g,h,a){void 0===a&&(a={});var u="function"===typeof c&&c.prototype||c;Object.hasOwnProperty.call(u,"hcEvents")||(u.hcEvents={});u=u.hcEvents;b.Point&&c instanceof b.Point&&c.series&&c.series.chart&&(c.series.chart.runTrackerClick=!0);var m=c.addEventListener||b.addEventListenerPolyfill;m&&m.call(c,g,h,b.supportsPassiveEvents?{passive:void 0===a.passive?-1!==g.indexOf("touch"):a.passive,capture:!1}:!1);u[g]||(u[g]=[]);u[g].push({fn:h,order:"number"===typeof a.order?a.order:Infinity});u[g].sort(function(c, g){return c.order-g.order});return function(){x(c,g,h)}},arrayMax:function(c){for(var g=c.length,h=c[0];g--;)c[g]>h&&(h=c[g]);return h},arrayMin:function(c){for(var g=c.length,h=c[0];g--;)c[g]<h&&(h=c[g]);return h},attr:d,clamp:function(c,g,h){return c>g?c<h?c:h:g},cleanRecursively:v,clearTimeout:function(c){n(c)&&clearTimeout(c)},correctFloat:G,createElement:function(c,g,m,p,f){c=h.createElement(c);g&&a(c,g);f&&k(c,{padding:"0",border:"none",margin:"0"});m&&k(c,m);p&&p.appendChild(c);return c},css:k, defined:n,destroyObjectProperties:function(c,g){B(c,function(h,u){h&&h!==g&&h.destroy&&h.destroy();delete c[u]})},discardElement:function(c){c&&c.parentElement&&c.parentElement.removeChild(c)},erase:function(c,g){for(var h=c.length;h--;)if(c[h]===g){c.splice(h,1);break}},error:e,extend:a,extendClass:function(c,g){var h=function(){};h.prototype=new c;a(h.prototype,g);return h},find:c,fireEvent:r,getMagnitude:function(c){return Math.pow(10,Math.floor(Math.log(c)/Math.LN10))},getNestedProperty:function(c, g){for(c=c.split(".");c.length&&n(g);){var h=c.shift();if("undefined"===typeof h||"__proto__"===h)return;g=g[h];if(!n(g)||"function"===typeof g||"number"===typeof g.nodeType||g===p)return}return g},getStyle:y,inArray:function(c,g,h){e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return g.indexOf(c,h)},isArray:A,isClass:q,isDOMElement:z,isFunction:function(c){return"function"===typeof c},isNumber:l,isObject:C,isString:t,keys:function(c){e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}); return Object.keys(c)},merge:function(){var c,g=arguments,h={},a=function(c,g){"object"!==typeof c&&(c={});B(g,function(h,u){"__proto__"!==u&&"constructor"!==u&&(!C(h,!0)||q(h)||z(h)?c[u]=g[u]:c[u]=a(c[u]||{},h))});return c};!0===g[0]&&(h=g[1],g=Array.prototype.slice.call(g,2));var m=g.length;for(c=0;c<m;c++)h=a(h,g[c]);return h},normalizeTickInterval:function(c,g,h,a,m){var u=c;h=f(h,1);var p=c/h;g||(g=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===a&&(1===h?g=g.filter(function(c){return 0=== c%1}):.1>=h&&(g=[1/h])));for(a=0;a<g.length&&!(u=g[a],m&&u*h>=c||!m&&p<=(g[a]+(g[a+1]||g[a]))/2);a++);return u=G(u*h,-Math.round(Math.log(.001)/Math.LN10))},objectEach:B,offset:function(c){var g=h.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(p.pageYOffset||g.scrollTop)-(g.clientTop||0),left:c.left+(p.pageXOffset||g.scrollLeft)-(g.clientLeft||0),width:c.width,height:c.height}},pad:function(c,g,h){return Array((g||2)+1-String(c).replace("-", "").length).join(h||"0")+c},pick:f,pInt:E,relativeLength:function(c,g,h){return/%$/.test(c)?g*parseFloat(c)/100+(h||0):parseFloat(c)},removeEvent:x,splat:function(c){return A(c)?c:[c]},stableSort:function(c,g){var h=c.length,u,a;for(a=0;a<h;a++)c[a].safeI=a;c.sort(function(c,h){u=g(c,h);return 0===u?c.safeI-h.safeI:u});for(a=0;a<h;a++)delete c[a].safeI},syncTimeout:function(c,g,h){if(0<g)return setTimeout(c,g,h);c.call(0,h);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5, week:6048E5,month:24192E5,year:314496E5},uniqueKey:g,useSerialIds:function(c){return w=f(c,w)},wrap:function(c,g,h){var a=c[g];c[g]=function(){var c=Array.prototype.slice.call(arguments),g=arguments,u=this;u.proceed=function(){a.apply(u,arguments.length?arguments:g)};c.unshift(a);c=h.apply(this,c);u.proceed=null;return c}}};"";return c});J(e,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,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:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});J(e,"Core/Color/Color.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e){var I=e.isNumber,E=e.merge,t=e.pInt;e=function(){function e(C){this.rgba=[NaN,NaN,NaN,NaN];this.input=C;var z=b.Color;if(z&&z!==e)return new z(C);if(!(this instanceof e))return new e(C); this.init(C)}e.parse=function(b){return b?new e(b):e.None};e.prototype.init=function(b){var z;if("object"===typeof b&&"undefined"!==typeof b.stops)this.stops=b.stops.map(function(d){return new e(d[1])});else if("string"===typeof b){this.input=b=e.names[b.toLowerCase()]||b;if("#"===b.charAt(0)){var q=b.length;var l=parseInt(b.substr(1),16);7===q?z=[(l&16711680)>>16,(l&65280)>>8,l&255,1]:4===q&&(z=[(l&3840)>>4|(l&3840)>>8,(l&240)>>4|l&240,(l&15)<<4|l&15,1])}if(!z)for(l=e.parsers.length;l--&&!z;){var n= e.parsers[l];(q=n.regex.exec(b))&&(z=n.parse(q))}}z&&(this.rgba=z)};e.prototype.get=function(b){var z=this.input,q=this.rgba;if("object"===typeof z&&"undefined"!==typeof this.stops){var l=E(z);l.stops=[].slice.call(l.stops);this.stops.forEach(function(n,d){l.stops[d]=[l.stops[d][0],n.get(b)]});return l}return q&&I(q[0])?"rgb"===b||!b&&1===q[3]?"rgb("+q[0]+","+q[1]+","+q[2]+")":"a"===b?""+q[3]:"rgba("+q.join(",")+")":z};e.prototype.brighten=function(b){var z=this.rgba;if(this.stops)this.stops.forEach(function(l){l.brighten(b)}); else if(I(b)&&0!==b)for(var q=0;3>q;q++)z[q]+=t(255*b),0>z[q]&&(z[q]=0),255<z[q]&&(z[q]=255);return this};e.prototype.setOpacity=function(b){this.rgba[3]=b;return this};e.prototype.tweenTo=function(b,z){var q=this.rgba,l=b.rgba;if(!I(q[0])||!I(l[0]))return b.input||"none";b=1!==l[3]||1!==q[3];return(b?"rgba(":"rgb(")+Math.round(l[0]+(q[0]-l[0])*(1-z))+","+Math.round(l[1]+(q[1]-l[1])*(1-z))+","+Math.round(l[2]+(q[2]-l[2])*(1-z))+(b?","+(l[3]+(q[3]-l[3])*(1-z)):"")+")"};e.names={white:"#ffffff",black:"#000000"}; e.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(b){return[t(b[1]),t(b[2]),t(b[3]),parseFloat(b[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(b){return[t(b[1]),t(b[2]),t(b[3]),1]}}];e.None=new e("");return e}();"";return e});J(e,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}); J(e,"Core/Time.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e){var I=b.win,E=e.defined,t=e.error,A=e.extend,C=e.isObject,z=e.merge,q=e.objectEach,l=e.pad,n=e.pick,d=e.splat,a=e.timeUnits,f=b.isSafari&&I.Intl&&I.Intl.DateTimeFormat.prototype.formatRange,k=b.isSafari&&I.Intl&&!I.Intl.DateTimeFormat.prototype.formatRange;e=function(){function G(a){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=I.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(a)} G.prototype.get=function(a,f){if(this.variableTimezone||this.timezoneOffset){var d=f.getTime(),r=d-this.getTimezoneOffset(f);f.setTime(r);a=f["getUTC"+a]();f.setTime(d);return a}return this.useUTC?f["getUTC"+a]():f["get"+a]()};G.prototype.set=function(a,d,k){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===this.getTimezoneOffset(d)%36E5)return d["setUTC"+a](k);var r=this.getTimezoneOffset(d);r=d.getTime()-r;d.setTime(r);d["setUTC"+a](k);a=this.getTimezoneOffset(d); r=d.getTime()+a;return d.setTime(r)}return this.useUTC||f&&"FullYear"===a?d["setUTC"+a](k):d["set"+a](k)};G.prototype.update=function(a){var f=n(a&&a.useUTC,!0);this.options=a=z(!0,this.options||{},a);this.Date=a.Date||I.Date||Date;this.timezoneOffset=(this.useUTC=f)&&a.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=f&&!(!a.getTimezoneOffset&&!a.timezone)};G.prototype.makeTime=function(a,f,d,r,m,h){if(this.useUTC){var p=this.Date.UTC.apply(0,arguments);var c= this.getTimezoneOffset(p);p+=c;var w=this.getTimezoneOffset(p);c!==w?p+=w-c:c-36E5!==this.getTimezoneOffset(p-36E5)||k||(p-=36E5)}else p=(new this.Date(a,f,n(d,1),n(r,0),n(m,0),n(h,0))).getTime();return p};G.prototype.timezoneOffsetFunction=function(){var a=this,f=this.options,d=f.getTimezoneOffset,k=f.moment||I.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a.toString())).getTimezoneOffset()};if(f.timezone){if(k)return function(a){return 6E4*-k.tz(a,f.timezone).utcOffset()};t(25)}return this.useUTC&& d?function(a){return 6E4*d(a.valueOf())}:function(){return 6E4*(a.timezoneOffset||0)}};G.prototype.dateFormat=function(a,f,d){if(!E(f)||isNaN(f))return b.defaultOptions.lang&&b.defaultOptions.lang.invalidDate||"";a=n(a,"%Y-%m-%d %H:%M:%S");var k=this,m=new this.Date(f),h=this.get("Hours",m),p=this.get("Day",m),c=this.get("Date",m),w=this.get("Month",m),g=this.get("FullYear",m),F=b.defaultOptions.lang,u=F&&F.weekdays,D=F&&F.shortWeekdays;m=A({a:D?D[p]:u[p].substr(0,3),A:u[p],d:l(c),e:l(c,2," "),w:p, b:F.shortMonths[w],B:F.months[w],m:l(w+1),o:w+1,y:g.toString().substr(2,2),Y:g,H:l(h),k:h,I:l(h%12||12),l:h%12||12,M:l(this.get("Minutes",m)),p:12>h?"AM":"PM",P:12>h?"am":"pm",S:l(m.getSeconds()),L:l(Math.floor(f%1E3),3)},b.dateFormats);q(m,function(c,g){for(;-1!==a.indexOf("%"+g);)a=a.replace("%"+g,"function"===typeof c?c.call(k,f):c)});return d?a.substr(0,1).toUpperCase()+a.substr(1):a};G.prototype.resolveDTLFormat=function(a){return C(a,!0)?a:(a=d(a),{main:a[0],from:a[1],to:a[2]})};G.prototype.getTimeTicks= function(f,d,k,r){var m=this,h=[],p={},c=new m.Date(d),w=f.unitRange,g=f.count||1,F;r=n(r,1);if(E(d)){m.set("Milliseconds",c,w>=a.second?0:g*Math.floor(m.get("Milliseconds",c)/g));w>=a.second&&m.set("Seconds",c,w>=a.minute?0:g*Math.floor(m.get("Seconds",c)/g));w>=a.minute&&m.set("Minutes",c,w>=a.hour?0:g*Math.floor(m.get("Minutes",c)/g));w>=a.hour&&m.set("Hours",c,w>=a.day?0:g*Math.floor(m.get("Hours",c)/g));w>=a.day&&m.set("Date",c,w>=a.month?1:Math.max(1,g*Math.floor(m.get("Date",c)/g)));if(w>= a.month){m.set("Month",c,w>=a.year?0:g*Math.floor(m.get("Month",c)/g));var u=m.get("FullYear",c)}w>=a.year&&m.set("FullYear",c,u-u%g);w===a.week&&(u=m.get("Day",c),m.set("Date",c,m.get("Date",c)-u+r+(u<r?-7:0)));u=m.get("FullYear",c);r=m.get("Month",c);var D=m.get("Date",c),x=m.get("Hours",c);d=c.getTime();!m.variableTimezone&&m.useUTC||!E(k)||(F=k-d>4*a.month||m.getTimezoneOffset(d)!==m.getTimezoneOffset(k));d=c.getTime();for(c=1;d<k;)h.push(d),d=w===a.year?m.makeTime(u+c*g,0):w===a.month?m.makeTime(u, r+c*g):!F||w!==a.day&&w!==a.week?F&&w===a.hour&&1<g?m.makeTime(u,r,D,x+c*g):d+w*g:m.makeTime(u,r,D+c*g*(w===a.day?1:7)),c++;h.push(d);w<=a.hour&&1E4>h.length&&h.forEach(function(c){0===c%18E5&&"000000000"===m.dateFormat("%H%M%S%L",c)&&(p[c]="day")})}h.info=A(f,{higherRanks:p,totalRange:w*g});return h};G.prototype.getDateFormat=function(f,d,k,r){var m=this.dateFormat("%m-%d %H:%M:%S.%L",d),h={millisecond:15,second:12,minute:9,hour:6,day:3},p="millisecond";for(c in a){if(f===a.week&&+this.dateFormat("%w", d)===k&&"00:00:00.000"===m.substr(6)){var c="week";break}if(a[c]>f){c=p;break}if(h[c]&&m.substr(h[c])!=="01-01 00:00:00.000".substr(h[c]))break;"week"!==c&&(p=c)}if(c)var w=this.resolveDTLFormat(r[c]).main;return w};return G}();"";return e});J(e,"Core/DefaultOptions.js",[e["Core/Chart/ChartDefaults.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palettes.js"],e["Core/Time.js"],e["Core/Utilities.js"]],function(b,e,v,E,t,A){e=e.parse;var I=A.merge,z={colors:E.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:b,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399", inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5, textAlign:"center"}},tooltip:{enabled:!0,animation:v.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:v.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>', backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};z.chart.styledMode=!1;"";var q=new t(I(z.global,z.time));b={defaultOptions:z,defaultTime:q,getOptions:function(){return z}, setOptions:function(l){I(!0,z,l);if(l.time||l.global)v.time?v.time.update(I(z.global,z.time,l.global,l.time)):v.time=q;return z}};"";return b});J(e,"Core/Animation/Fx.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,v){var I=b.parse,t=e.win,A=v.isNumber,C=v.objectEach;return function(){function b(b,l,n){this.pos=NaN;this.options=l;this.elem=b;this.prop=n}b.prototype.dSetter=function(){var b=this.paths,l=b&&b[0];b=b&&b[1];var n=this.now||0,d=[];if(1!==n&&l&&b)if(l.length=== b.length&&1>n)for(var a=0;a<b.length;a++){for(var f=l[a],k=b[a],G=[],y=0;y<k.length;y++){var B=f[y],x=k[y];A(B)&&A(x)&&("A"!==k[0]||4!==y&&5!==y)?G[y]=B+n*(x-B):G[y]=x}d.push(G)}else d=b;else d=this.toD||[];this.elem.attr("d",d,void 0,!0)};b.prototype.update=function(){var b=this.elem,l=this.prop,n=this.now,d=this.options.step;if(this[l+"Setter"])this[l+"Setter"]();else b.attr?b.element&&b.attr(l,n,null,!0):b.style[l]=n+this.unit;d&&d.call(b,n,this)};b.prototype.run=function(q,l,n){var d=this,a=d.options, f=function(a){return f.stopped?!1:d.step(a)},k=t.requestAnimationFrame||function(a){setTimeout(a,13)},G=function(){for(var a=0;a<b.timers.length;a++)b.timers[a]()||b.timers.splice(a--,1);b.timers.length&&k(G)};q!==l||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=q,this.end=l,this.unit=n,this.now=this.start,this.pos=0,f.elem=this.elem,f.prop=this.prop,f()&&1===b.timers.push(f)&&k(G)):(delete a.curAnim[this.prop],a.complete&&0===Object.keys(a.curAnim).length&&a.complete.call(this.elem))}; b.prototype.step=function(b){var l=+new Date,n=this.options,d=this.elem,a=n.complete,f=n.duration,k=n.curAnim;if(d.attr&&!d.element)b=!1;else if(b||l>=f+this.startTime){this.now=this.end;this.pos=1;this.update();var G=k[this.prop]=!0;C(k,function(a){!0!==a&&(G=!1)});G&&a&&a.call(d);b=!1}else this.pos=n.easing((l-this.startTime)/f),this.now=this.start+(this.end-this.start)*this.pos,this.update(),b=!0;return b};b.prototype.initPath=function(b,l,n){function d(a,h){for(;a.length<r;){var f=a[0],c=h[r- a.length];c&&"M"===f[0]&&(a[0]="C"===c[0]?["C",f[1],f[2],f[1],f[2],f[1],f[2]]:["L",f[1],f[2]]);a.unshift(f);G&&(f=a.pop(),a.push(a[a.length-1],f))}}function a(a,h){for(;a.length<r;)if(h=a[Math.floor(a.length/y)-1].slice(),"C"===h[0]&&(h[1]=h[5],h[2]=h[6]),G){var f=a[Math.floor(a.length/y)].slice();a.splice(a.length/2,0,h,f)}else a.push(h)}var f=b.startX,k=b.endX;n=n.slice();var G=b.isArea,y=G?2:1;l=l&&l.slice();if(!l)return[n,n];if(f&&k&&k.length){for(b=0;b<f.length;b++)if(f[b]===k[0]){var B=b;break}else if(f[0]=== k[k.length-f.length+b]){B=b;var x=!0;break}else if(f[f.length-1]===k[k.length-f.length+b]){B=f.length-b;break}"undefined"===typeof B&&(l=[])}if(l.length&&A(B)){var r=n.length+B*y;x?(d(l,n),a(n,l)):(d(n,l),a(l,n))}return[l,n]};b.prototype.fillSetter=function(){b.prototype.strokeSetter.apply(this,arguments)};b.prototype.strokeSetter=function(){this.elem.attr(this.prop,I(this.start).tweenTo(I(this.end),this.pos),void 0,!0)};b.timers=[];return b}()});J(e,"Core/Animation/AnimationUtilities.js",[e["Core/Animation/Fx.js"], e["Core/Utilities.js"]],function(b,e){function I(a){return q(a)?l({duration:500,defer:0},a):{duration:a?500:0,defer:0}}function E(a,f){for(var d=b.timers.length;d--;)b.timers[d].elem!==a||f&&f!==b.timers[d].prop||(b.timers[d].stopped=!0)}var t=e.defined,A=e.getStyle,C=e.isArray,z=e.isNumber,q=e.isObject,l=e.merge,n=e.objectEach,d=e.pick;return{animate:function(a,f,d){var k,y="",B,x;if(!q(d)){var r=arguments;d={duration:r[2],easing:r[3],complete:r[4]}}z(d.duration)||(d.duration=400);d.easing="function"=== typeof d.easing?d.easing:Math[d.easing]||Math.easeInOutSine;d.curAnim=l(f);n(f,function(m,h){E(a,h);x=new b(a,d,h);B=void 0;"d"===h&&C(f.d)?(x.paths=x.initPath(a,a.pathArray,f.d),x.toD=f.d,k=0,B=1):a.attr?k=a.attr(h):(k=parseFloat(A(a,h))||0,"opacity"!==h&&(y="px"));B||(B=m);"string"===typeof B&&B.match("px")&&(B=B.replace(/px/g,""));x.run(k,B,y)})},animObject:I,getDeferredAnimation:function(a,f,d){var k=I(f),y=0,B=0;(d?[d]:a.series).forEach(function(a){a=I(a.options.animation);y=f&&t(f.defer)?k.defer: Math.max(y,a.duration+a.defer);B=Math.min(k.duration,a.duration)});a.renderer.forExport&&(y=0);return{defer:Math.max(0,y-B),duration:Math.min(y,B)}},setAnimation:function(a,f){f.renderer.globalAnimation=d(a,f.options.chart.animation,!0)},stop:E}});J(e,"Core/Renderer/HTML/AST.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e){var I=b.SVG_NS,E=e.attr,t=e.createElement,A=e.css,C=e.error,z=e.isFunction,q=e.isString,l=e.objectEach,n=e.splat,d=(e=b.win.trustedTypes)&&z(e.createPolicy)&&e.createPolicy("highcharts", {createHTML:function(a){return a}}),a=d?d.createHTML(""):"";try{var f=!!(new DOMParser).parseFromString(a,"text/html")}catch(k){f=!1}z=function(){function k(a){this.nodes="string"===typeof a?this.parseMarkup(a):a}k.filterUserAttributes=function(a){l(a,function(f,d){var x=!0;-1===k.allowedAttributes.indexOf(d)&&(x=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(d)&&(x=q(f)&&k.allowedReferences.some(function(a){return 0===f.indexOf(a)}));x||(C("Highcharts warning: Invalid attribute '"+ d+"' in config"),delete a[d])});return a};k.parseStyle=function(a){return a.split(";").reduce(function(a,f){f=f.split(":").map(function(a){return a.trim()});var d=f[0].replace(/-([a-z])/g,function(a){return a[1].toUpperCase()});f[1]&&(a[d]=f[1]);return a},{})};k.setElementHTML=function(a,f){a.innerHTML=k.emptyHTML;f&&(new k(f)).addToDOM(a)};k.prototype.addToDOM=function(a){function f(a,d){var r;n(a).forEach(function(a){var h=a.tagName,p=a.textContent?b.doc.createTextNode(a.textContent):void 0,c=k.bypassHTMLFiltering; if(h)if("#text"===h)var m=p;else if(-1!==k.allowedTags.indexOf(h)||c){h=b.doc.createElementNS("svg"===h?I:d.namespaceURI||I,h);var g=a.attributes||{};l(a,function(c,a){"tagName"!==a&&"attributes"!==a&&"children"!==a&&"style"!==a&&"textContent"!==a&&(g[a]=c)});E(h,c?g:k.filterUserAttributes(g));a.style&&A(h,a.style);p&&h.appendChild(p);f(a.children||[],h);m=h}else C("Highcharts warning: Invalid tagName "+h+" in config");m&&d.appendChild(m);r=m});return r}return f(this.nodes,a)};k.prototype.parseMarkup= function(a){var y=[];a=a.trim().replace(/ style="/g,' data-style="');if(f)a=(new DOMParser).parseFromString(d?d.createHTML(a):a,"text/html");else{var B=t("div");B.innerHTML=a;a={body:B}}var x=function(a,f){var h=a.nodeName.toLowerCase(),d={tagName:h};"#text"===h&&(d.textContent=a.textContent||"");if(h=a.attributes){var c={};[].forEach.call(h,function(a){"data-style"===a.name?d.style=k.parseStyle(a.value):c[a.name]=a.value});d.attributes=c}if(a.childNodes.length){var m=[];[].forEach.call(a.childNodes, function(c){x(c,m)});m.length&&(d.children=m)}f.push(d)};[].forEach.call(a.body.childNodes,function(a){return x(a,y)});return y};k.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 title type valign width x x1 x2 y y1 y2 zIndex".split(" "); k.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");k.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");k.emptyHTML=a;k.bypassHTMLFiltering=!1;return k}();"";return z}); J(e,"Core/FormatUtilities.js",[e["Core/DefaultOptions.js"],e["Core/Utilities.js"]],function(b,e){function I(l,n,d,a){l=+l||0;n=+n;var f=E.lang,k=(l.toString().split(".")[1]||"").split("e")[0].length,G=l.toString().split("e"),y=n;if(-1===n)n=Math.min(k,20);else if(!C(n))n=2;else if(n&&G[1]&&0>G[1]){var B=n+ +G[1];0<=B?(G[0]=(+G[0]).toExponential(B).split("e")[0],n=B):(G[0]=G[0].split(".")[0]||0,l=20>n?(G[0]*Math.pow(10,G[1])).toFixed(n):0,G[1]=0)}B=(Math.abs(G[1]?G[0]:l)+Math.pow(10,-Math.max(n,k)- 1)).toFixed(n);k=String(q(B));var x=3<k.length?k.length%3:0;d=z(d,f.decimalPoint);a=z(a,f.thousandsSep);l=(0>l?"-":"")+(x?k.substr(0,x)+a:"");l=0>+G[1]&&!y?"0":l+k.substr(x).replace(/(\d{3})(?=\d)/g,"$1"+a);n&&(l+=d+B.slice(-n));G[1]&&0!==+l&&(l+="e"+G[1]);return l}var E=b.defaultOptions,t=b.defaultTime,A=e.getNestedProperty,C=e.isNumber,z=e.pick,q=e.pInt;return{dateFormat:function(l,n,d){return t.dateFormat(l,n,d)},format:function(l,n,d){var a="{",f=!1,k=/f$/,G=/\.([0-9])/,y=E.lang,B=d&&d.time|| t;d=d&&d.numberFormatter||I;for(var x=[];l;){var r=l.indexOf(a);if(-1===r)break;var m=l.slice(0,r);if(f){m=m.split(":");a=A(m.shift()||"",n);if(m.length&&"number"===typeof a)if(m=m.join(":"),k.test(m)){var h=parseInt((m.match(G)||["","-1"])[1],10);null!==a&&(a=d(a,h,y.decimalPoint,-1<m.indexOf(",")?y.thousandsSep:""))}else a=B.dateFormat(m,a);x.push(a)}else x.push(m);l=l.slice(r+1);a=(f=!f)?"}":"{"}x.push(l);return x.join("")},numberFormat:I}});J(e,"Core/Renderer/RendererUtilities.js",[e["Core/Utilities.js"]], function(b){var e=b.clamp,v=b.pick,E=b.stableSort,t;(function(b){function t(b,q,l){var n=b,d=n.reducedLen||q,a=function(a,f){return(f.rank||0)-(a.rank||0)},f=function(a,f){return a.target-f.target},k,G=!0,y=[],B=0;for(k=b.length;k--;)B+=b[k].size;if(B>d){E(b,a);for(B=k=0;B<=d;)B+=b[k].size,k++;y=b.splice(k-1,b.length)}E(b,f);for(b=b.map(function(a){return{size:a.size,targets:[a.target],align:v(a.align,.5)}});G;){for(k=b.length;k--;)d=b[k],a=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/ 2,d.pos=e(a-d.size*d.align,0,q-d.size);k=b.length;for(G=!1;k--;)0<k&&b[k-1].pos+b[k-1].size>b[k].pos&&(b[k-1].size+=b[k].size,b[k-1].targets=b[k-1].targets.concat(b[k].targets),b[k-1].align=.5,b[k-1].pos+b[k-1].size>q&&(b[k-1].pos=q-b[k-1].size),b.splice(k,1),G=!0)}n.push.apply(n,y);k=0;b.some(function(a){var f=0;return(a.targets||[]).some(function(){n[k].pos=a.pos+f;if("undefined"!==typeof l&&Math.abs(n[k].pos-n[k].target)>l)return n.slice(0,k+1).forEach(function(a){return delete a.pos}),n.reducedLen= (n.reducedLen||q)-.1*q,n.reducedLen>.1*q&&t(n,q,l),!0;f+=n[k].size;k++;return!1})});E(n,f);return n}b.distribute=t})(t||(t={}));return t});J(e,"Core/Renderer/SVG/SVGElement.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,v,E,t){var I=b.animate,C=b.animObject,z=b.stop,q=E.deg2rad,l=E.doc,n=E.noop,d=E.svg,a=E.SVG_NS,f=E.win,k=t.addEvent,G=t.attr,y=t.createElement,B=t.css,x=t.defined,r=t.erase, m=t.extend,h=t.fireEvent,p=t.isArray,c=t.isFunction,w=t.isNumber,g=t.isString,F=t.merge,u=t.objectEach,D=t.pick,H=t.pInt,L=t.syncTimeout,P=t.uniqueKey;b=function(){function b(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=a;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}b.prototype._defaultGetter=function(c){c=D(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&& (c=parseFloat(c));return c};b.prototype._defaultSetter=function(c,a,g){g.setAttribute(a,c)};b.prototype.add=function(c){var a=this.renderer,g=this.element;c&&(this.parentGroup=c);this.parentInverted=c&&c.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&a.buildText(this);this.added=!0;if(!c||c.handleZ||this.zIndex)var h=this.zIndexSetter();h||(c?c.element:a.box).appendChild(g);if(this.onAdd)this.onAdd();return this};b.prototype.addClass=function(c,a){var g=a?"":this.attr("class")|| "";c=(c||"").split(/ /g).reduce(function(c,a){-1===g.indexOf(a)&&c.push(a);return c},g?[g]:[]).join(" ");c!==g&&this.attr("class",c);return this};b.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};b.prototype.align=function(c,a,h){var u={},f=this.renderer,d=f.alignedObjects,m,p,w;if(c){if(this.alignOptions=c,this.alignByTranslate=a,!h||g(h))this.alignTo=m=h||"renderer",r(d,this),d.push(this),h=void 0}else c=this.alignOptions,a=this.alignByTranslate, m=this.alignTo;h=D(h,f[m],"scrollablePlotBox"===m?f.plotBox:void 0,f);m=c.align;var k=c.verticalAlign;f=(h.x||0)+(c.x||0);d=(h.y||0)+(c.y||0);"right"===m?p=1:"center"===m&&(p=2);p&&(f+=(h.width-(c.width||0))/p);u[a?"translateX":"x"]=Math.round(f);"bottom"===k?w=1:"middle"===k&&(w=2);w&&(d+=(h.height-(c.height||0))/w);u[a?"translateY":"y"]=Math.round(d);this[this.placed?"animate":"attr"](u);this.placed=!0;this.alignAttr=u;return this};b.prototype.alignSetter=function(c){var a={left:"start",center:"middle", right:"end"};a[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",a[c]))};b.prototype.animate=function(c,a,g){var h=this,f=C(D(a,this.renderer.globalAnimation,!0));a=f.defer;D(l.hidden,l.msHidden,l.webkitHidden,!1)&&(f.duration=0);0!==f.duration?(g&&(f.complete=g),L(function(){h.element&&I(h,c,f)},a)):(this.attr(c,void 0,g||f.complete),u(c,function(c,a){f.step&&f.step.call(this,c,{prop:a,pos:1,elem:this})},this));return this};b.prototype.applyTextOutline=function(c){var g=this.element; -1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(g.style.fill)));var h=c.split(" ");c=h[h.length-1];if((h=h[0])&&"none"!==h&&E.svg){this.fakeTS=!0;this.ySetter=this.xSetter;h=h.replace(/(^[\d\.]+)(.*?)$/g,function(c,a,g){return 2*Number(a)+g});this.removeTextOutline();var u=l.createElementNS(a,"tspan");G(u,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":h,"stroke-linejoin":"round"});[].forEach.call(g.childNodes,function(c){var a=c.cloneNode(!0);a.removeAttribute&& ["fill","stroke","stroke-width","stroke"].forEach(function(c){return a.removeAttribute(c)});u.appendChild(a)});var f=l.createElementNS(a,"tspan");f.textContent="\u200b";["x","y"].forEach(function(c){var a=g.getAttribute(c);a&&f.setAttribute(c,a)});u.appendChild(f);g.insertBefore(u,g.firstChild)}};b.prototype.attr=function(c,a,g,h){var f=this.element,d=this.symbolCustomAttribs,m,p=this,w,k;if("string"===typeof c&&"undefined"!==typeof a){var D=c;c={};c[D]=a}"string"===typeof c?p=(this[c+"Getter"]|| this._defaultGetter).call(this,c,f):(u(c,function(a,g){w=!1;h||z(this,g);this.symbolName&&-1!==d.indexOf(g)&&(m||(this.symbolAttr(c),m=!0),w=!0);!this.rotation||"x"!==g&&"y"!==g||(this.doTransform=!0);w||(k=this[g+"Setter"]||this._defaultSetter,k.call(this,a,g,f),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(g)&&this.updateShadows(g,a,k))},this),this.afterSetters());g&&g.call(this);return p};b.prototype.clip=function(c){return this.attr("clip-path",c?"url("+ this.renderer.url+"#"+c.id+")":"none")};b.prototype.crisp=function(c,a){a=a||c.strokeWidth||0;var g=Math.round(a)%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=a);return c};b.prototype.complexColor=function(c,a,g){var f=this.renderer,d,m,w,k,D,Y,r,b,B,H,y=[],l;h(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?m="radialGradient": c.linearGradient&&(m="linearGradient");if(m){w=c[m];D=f.gradients;Y=c.stops;B=g.radialReference;p(w)&&(c[m]=w={x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===m&&B&&!x(w.gradientUnits)&&(k=w,w=F(w,f.getRadialAttr(B,k),{gradientUnits:"userSpaceOnUse"}));u(w,function(c,a){"id"!==a&&y.push(a,c)});u(Y,function(c){y.push(c)});y=y.join(",");if(D[y])H=D[y].attr("id");else{w.id=H=P();var h=D[y]=f.createElement(m).attr(w).add(f.defs);h.radAttr=k;h.stops=[];Y.forEach(function(c){0=== c[1].indexOf("rgba")?(d=v.parse(c[1]),r=d.get("rgb"),b=d.get("a")):(r=c[1],b=1);c=f.createElement("stop").attr({offset:c[0],"stop-color":r,"stop-opacity":b}).add(h);h.stops.push(c)})}l="url("+f.url+"#"+H+")";g.setAttribute(a,l);g.gradient=y;c.toString=function(){return l}}})};b.prototype.css=function(c){var a=this.styles,g={},h=this.element,f=!a;c.color&&(c.fill=c.color);a&&u(c,function(c,h){a&&a[h]!==c&&(g[h]=c,f=!0)});if(f){a&&(c=m(a,g));if(null===c.width||"auto"===c.width)delete this.textWidth; else if("text"===h.nodeName.toLowerCase()&&c.width)var p=this.textWidth=H(c.width);this.styles=c;p&&!d&&this.renderer.forExport&&delete c.width;var w=F(c);h.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(c){return w&&delete w[c]});B(h,w);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c.textOutline&&this.applyTextOutline(c.textOutline))}return this};b.prototype.dashstyleSetter=function(c){var a=this["stroke-width"];"inherit"===a&&(a= 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]=""+H(g[c])*D(a,NaN);c=g.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};b.prototype.destroy=function(){var c=this,a=c.element||{},g=c.renderer,h=a.ownerSVGElement,f=g.isSVG&& "SPAN"===a.nodeName&&c.parentGroup||void 0;a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=a.point=null;z(c);if(c.clipPath&&h){var d=c.clipPath;[].forEach.call(h.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(d.element.id)&&c.removeAttribute("clip-path")});c.clipPath=d.destroy()}if(c.stops){for(h=0;h<c.stops.length;h++)c.stops[h].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(a);for(g.styledMode||c.destroyShadows();f&&f.div&&0===f.div.childNodes.length;)a= f.parentGroup,c.safeRemoveChild(f.div),delete f.div,f=a;c.alignTo&&r(g.alignedObjects,c);u(c,function(a,g){c[g]&&c[g].parentGroup===c&&c[g].destroy&&c[g].destroy();delete c[g]})};b.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};b.prototype.destroyTextPath=function(c,a){var g=c.getElementsByTagName("text")[0];if(g){if(g.removeAttribute("dx"),g.removeAttribute("dy"),a.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())};b.prototype.dSetter=function(c,a,g){p(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),this.pathArray=c,c=c.reduce(function(c,a,g){return a&&a.join? (g?c+" ":"")+a.join(" "):(a||"").toString()},""));/(NaN| {2}|^$)/.test(c)&&(c="M 0 0");this[a]!==c&&(g.setAttribute(a,c),this[a]=c)};b.prototype.fadeOut=function(c){var a=this;a.animate({opacity:0},{duration:D(c,150),complete:function(){a.attr({y:-9999}).hide()}})};b.prototype.fillSetter=function(c,a,g){"string"===typeof c?g.setAttribute(a,c):c&&this.complexColor(c,a,g)};b.prototype.getBBox=function(a,g){var h=this.renderer,f=this.element,u=this.styles,d=this.textStr,p=h.cache,w=h.cacheKeys,k=f.namespaceURI=== this.SVG_NS;g=D(g,this.rotation,0);var F=h.styledMode?f&&b.prototype.getStyle.call(f,"font-size"):u&&u.fontSize,r;if(x(d)){var y=d.toString();-1===y.indexOf("<")&&(y=y.replace(/[0-9]/g,"0"));y+=["",g,F,this.textWidth,u&&u.textOverflow,u&&u.fontWeight].join()}y&&!a&&(r=p[y]);if(!r){if(k||h.forExport){try{var H=this.fakeTS&&function(c){var a=f.querySelector(".highcharts-text-outline");a&&B(a,{display:c})};c(H)&&H("none");r=f.getBBox?m({},f.getBBox()):{width:f.offsetWidth,height:f.offsetHeight};c(H)&& H("")}catch(V){""}if(!r||0>r.width)r={width:0,height:0}}else r=this.htmlGetBBox();h.isSVG&&(a=r.width,h=r.height,k&&(r.height=h={"11px,17":14,"13px,20":16}[(F||"")+","+Math.round(h)]||h),g&&(k=g*q,r.width=Math.abs(h*Math.sin(k))+Math.abs(a*Math.cos(k)),r.height=Math.abs(h*Math.cos(k))+Math.abs(a*Math.sin(k))));if(y&&(""===d||0<r.height)){for(;250<w.length;)delete p[w.shift()];p[y]||w.push(y);p[y]=r}}return r};b.prototype.getStyle=function(c){return f.getComputedStyle(this.element||this,"").getPropertyValue(c)}; b.prototype.hasClass=function(c){return-1!==(""+this.attr("class")).split(" ").indexOf(c)};b.prototype.hide=function(c){c?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};b.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};b.prototype.init=function(c,a){this.element="span"===a?y(a):l.createElementNS(this.SVG_NS,a);this.renderer=c;h(this,"afterInit")};b.prototype.invert=function(c){this.inverted=c;this.updateTransform();return this};b.prototype.on=function(c,a){var g= this.onEvents;if(g[c])g[c]();g[c]=k(this.element,c,a);return this};b.prototype.opacitySetter=function(c,a,g){this.opacity=c=Number(Number(c).toFixed(3));g.setAttribute(a,c)};b.prototype.removeClass=function(c){return this.attr("class",(""+this.attr("class")).replace(g(c)?new RegExp("(^| )"+c+"( |$)"):c," ").replace(/ +/g," ").trim())};b.prototype.removeTextOutline=function(){var c=this.element.querySelector("tspan.highcharts-text-outline");c&&this.safeRemoveChild(c)};b.prototype.safeRemoveChild=function(c){var a= c.parentNode;a&&a.removeChild(c)};b.prototype.setRadialReference=function(c){var a=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=c;a&&a.radAttr&&a.animate(this.renderer.getRadialAttr(c,a.radAttr));return this};b.prototype.setTextPath=function(c,a){var g=this.element,h=this.text?this.text.element:g,d={textAnchor:"text-anchor"},m=!1,p=this.textPathWrapper,k=!p;a=F(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},a);var D=e.filterUserAttributes(a.attributes); if(c&&a&&a.enabled){p&&null===p.element.parentNode?(k=!0,p=p.destroy()):p&&this.removeTextOutline.call(p.parentGroup);this.options&&this.options.padding&&(D.dx=-this.options.padding);p||(this.textPathWrapper=p=this.renderer.createElement("textPath"),m=!0);var r=p.element;(a=c.element.getAttribute("id"))||c.element.setAttribute("id",a=P());if(k)for(h.setAttribute("y",0),w(D.dx)&&h.setAttribute("x",-D.dx),c=[].slice.call(h.childNodes),k=0;k<c.length;k++){var b=c[k];b.nodeType!==f.Node.TEXT_NODE&&"tspan"!== b.nodeName||r.appendChild(b)}m&&p&&p.add({element:h});r.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+a);x(D.dy)&&(r.parentNode.setAttribute("dy",D.dy),delete D.dy);x(D.dx)&&(r.parentNode.setAttribute("dx",D.dx),delete D.dx);u(D,function(c,a){r.setAttribute(d[a]||a,c)});g.removeAttribute("transform");this.removeTextOutline.call(p);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=n}else p&&(delete this.updateTransform, delete this.applyTextOutline,this.destroyTextPath(g,c),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};b.prototype.shadow=function(c,a,g){var h=[],f=this.element,d=this.oldShadowOptions,p={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},w=!1,k;!0===c?k=p:"object"===typeof c&&(k=m(p,c));k&&(k&&d&&u(k,function(c,a){c!==d[a]&&(w=!0)}),w&&this.destroyShadows(),this.oldShadowOptions= k);if(!k)this.destroyShadows();else if(!this.shadows){var D=k.opacity/k.width;var r=this.parentInverted?"translate("+k.offsetY+", "+k.offsetX+")":"translate("+k.offsetX+", "+k.offsetY+")";for(p=1;p<=k.width;p++){var F=f.cloneNode(!1);var b=2*k.width+1-2*p;G(F,{stroke:c.color||"#000000","stroke-opacity":D*p,"stroke-width":b,transform:r,fill:"none"});F.setAttribute("class",(F.getAttribute("class")||"")+" highcharts-shadow");g&&(G(F,"height",Math.max(G(F,"height")-b,0)),F.cutHeight=b);a?a.element.appendChild(F): f.parentNode&&f.parentNode.insertBefore(F,f);h.push(F)}this.shadows=h}return this};b.prototype.show=function(c){return this.attr({visibility:c?"inherit":"visible"})};b.prototype.strokeSetter=function(c,a,g){this[a]=c;this.stroke&&this["stroke-width"]?(b.prototype.fillSetter.call(this,this.stroke,"stroke",g),g.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===a&&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)};b.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var c=this.getStyle("stroke-width"),g=0;if(c.indexOf("px")===c.length-2)g=H(c);else if(""!==c){var h=l.createElementNS(a,"rect");G(h,{width:c,"stroke-width":0});this.element.parentNode.appendChild(h);g=h.getBBox().width;h.parentNode.removeChild(h)}return g};b.prototype.symbolAttr=function(c){var a=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g){a[g]= D(c[g],a[g])});a.attr({d:a.renderer.symbols[a.symbolName](a.x,a.y,a.width,a.height,a)})};b.prototype.textSetter=function(c){c!==this.textStr&&(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this))};b.prototype.titleSetter=function(c){var a=this.element,g=a.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");a.insertBefore?a.insertBefore(g,a.firstChild):a.appendChild(g);g.textContent=String(D(c,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g, ">")};b.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};b.prototype.translate=function(c,a){return this.attr({translateX:c,translateY:a})};b.prototype.updateShadows=function(c,a,g){var h=this.shadows;if(h)for(var f=h.length;f--;)g.call(h[f],"height"===c?Math.max(a-(h[f].cutHeight||0),0):"d"===c?this.d:a,c,h[f])};b.prototype.updateTransform=function(){var c=this.scaleX,a=this.scaleY,g=this.inverted,h=this.rotation,f=this.matrix,u=this.element,d=this.translateX|| 0,p=this.translateY||0;g&&(d+=this.width,p+=this.height);d=["translate("+d+","+p+")"];x(f)&&d.push("matrix("+f.join(",")+")");g?d.push("rotate(90) scale(-1,1)"):h&&d.push("rotate("+h+" "+D(this.rotationOriginX,u.getAttribute("x"),0)+" "+D(this.rotationOriginY,u.getAttribute("y")||0)+")");(x(c)||x(a))&&d.push("scale("+D(c,1)+" "+D(a,1)+")");d.length&&u.setAttribute("transform",d.join(" "))};b.prototype.visibilitySetter=function(c,a,g){"inherit"===c?g.removeAttribute(a):this[a]!==c&&g.setAttribute(a, c);this[a]=c};b.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};b.prototype.zIndexSetter=function(c,a){var g=this.renderer,h=this.parentGroup,f=(h||g).element||g.box,u=this.element;g=f===g.box;var d=!1;var p=this.added;var m;x(c)?(u.setAttribute("data-z-index",c),c=+c,this[a]===c&&(p=!1)):x(this[a])&&u.removeAttribute("data-z-index");this[a]=c;if(p){(c=this.zIndex)&&h&&(h.handleZ=!0);a=f.childNodes;for(m=a.length-1;0<= m&&!d;m--){h=a[m];p=h.getAttribute("data-z-index");var w=!x(p);if(h!==u)if(0>c&&w&&!g&&!m)f.insertBefore(u,a[m]),d=!0;else if(H(p)<=c||w&&(!x(c)||0<=c))f.insertBefore(u,a[m+1]||null),d=!0}d||(f.insertBefore(u,a[g?3:0]||null),d=!0)}return d};return b}();b.prototype["stroke-widthSetter"]=b.prototype.strokeSetter;b.prototype.yGetter=b.prototype.xGetter;b.prototype.matrixSetter=b.prototype.rotationOriginXSetter=b.prototype.rotationOriginYSetter=b.prototype.rotationSetter=b.prototype.scaleXSetter=b.prototype.scaleYSetter= b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(c,a){this[a]=c;this.doTransform=!0};"";return b});J(e,"Core/Renderer/RendererRegistry.js",[e["Core/Globals.js"]],function(b){var e;(function(e){e.rendererTypes={};var I;e.getRendererType=function(b){void 0===b&&(b=I);return e.rendererTypes[b]||e.rendererTypes[I]};e.registerRendererType=function(t,A,C){e.rendererTypes[t]=A;if(!I||C)I=t,b.Renderer=A}})(e||(e={}));return e});J(e,"Core/Renderer/SVG/SVGLabel.js", [e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(b,e){var I=this&&this.__extends||function(){var b=function(l,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var d in f)f.hasOwnProperty(d)&&(a[d]=f[d])};return b(l,d)};return function(l,d){function a(){this.constructor=l}b(l,d);l.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),E=e.defined,t=e.extend,A=e.isNumber,C=e.merge,z=e.pick,q=e.removeEvent; return function(l){function n(d,a,f,k,b,y,B,x,r,m){var h=l.call(this)||this;h.paddingLeftSetter=h.paddingSetter;h.paddingRightSetter=h.paddingSetter;h.init(d,"g");h.textStr=a;h.x=f;h.y=k;h.anchorX=y;h.anchorY=B;h.baseline=r;h.className=m;h.addClass("button"===m?"highcharts-no-tooltip":"highcharts-label");m&&h.addClass("highcharts-"+m);h.text=d.text(void 0,0,0,x).attr({zIndex:1});var p;"string"===typeof b&&((p=/^url\((.*?)\)$/.test(b))||h.renderer.symbols[b])&&(h.symbolKey=b