|
@@ -0,0 +1,802 @@
|
|
|
+/*
|
|
|
+ Highstock JS v10.1.0 (2022-04-29)
|
|
|
+
|
|
|
+ (c) 2009-2021 Torstein Honsi
|
|
|
+
|
|
|
+ License: www.highcharts.com/license
|
|
|
+*/
|
|
|
+(function(U,P){"object"===typeof module&&module.exports?(P["default"]=P,module.exports=U.document?P(U):P):"function"===typeof define&&define.amd?define("highcharts/highstock",function(){return P(U)}):(U.Highcharts&&U.Highcharts.error(16,!0),U.Highcharts=P(U))})("undefined"!==typeof window?window:this,function(U){function P(y,a,D,G){y.hasOwnProperty(a)||(y[a]=G.apply(null,D),"function"===typeof CustomEvent&&U.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:a,module:y[a]}})))}var a=
|
|
|
+{};P(a,"Core/Globals.js",[],function(){var a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="10.1.0";a.win="undefined"!==typeof U?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 y=!1;if(!a.isMS){var r=Object.defineProperty({},"passive",{get:function(){y=!0}});
|
|
|
+a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",a.noop,r),a.win.removeEventListener("testPassive",a.noop,r))}return y}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={};a.chartCount=0})(a||(a={}));"";return a});P(a,"Core/Utilities.js",[a["Core/Globals.js"]],function(a){function y(e,c,h,t){var n=c?"Highcharts error":"Highcharts warning";32===e&&(e=n+": Deprecated member");var F=k(e),K=F?n+" #"+e+": www.highcharts.com/errors/"+e+"/":e.toString();
|
|
|
+if("undefined"!==typeof t){var C="";F&&(K+="?");J(t,function(c,e){C+="\n - "+e+": "+c;F&&(K+=encodeURI(e)+"="+encodeURI(c))});K+=C}z(a,"displayError",{chart:h,code:e,message:K,params:t},function(){if(c)throw Error(K);f.console&&-1===y.messages.indexOf(K)&&console.warn(K)});y.messages.push(K)}function D(e,c){var f={};J(e,function(h,n){if(I(e[n],!0)&&!e.nodeType&&c[n])h=D(e[n],c[n]),Object.keys(h).length&&(f[n]=h);else if(I(e[n])||e[n]!==c[n]||n in e&&!(n in c))f[n]=e[n]});return f}function G(e,c){return parseInt(e,
|
|
|
+c||10)}function x(e){return"string"===typeof e}function H(e){e=Object.prototype.toString.call(e);return"[object Array]"===e||"[object Array Iterator]"===e}function I(e,c){return!!e&&"object"===typeof e&&(!c||!H(e))}function E(e){return I(e)&&"number"===typeof e.nodeType}function q(e){var c=e&&e.constructor;return!(!I(e,!0)||E(e)||!c||!c.name||"Object"===c.name)}function k(e){return"number"===typeof e&&!isNaN(e)&&Infinity>e&&-Infinity<e}function g(e){return"undefined"!==typeof e&&null!==e}function d(e,
|
|
|
+c,f){var h=x(c)&&!g(f),n,F=function(c,f){g(c)?e.setAttribute(f,c):h?(n=e.getAttribute(f))||"class"!==f||(n=e.getAttribute(f+"Name")):e.removeAttribute(f)};x(c)?F(f,c):J(c,F);return n}function b(e,c){var f;e||(e={});for(f in c)e[f]=c[f];return e}function l(){for(var e=arguments,c=e.length,f=0;f<c;f++){var h=e[f];if("undefined"!==typeof h&&null!==h)return h}}function m(e,c){a.isMS&&!a.svg&&c&&g(c.opacity)&&(c.filter="alpha(opacity="+100*c.opacity+")");b(e.style,c)}function A(e){return Math.pow(10,Math.floor(Math.log(e)/
|
|
|
+Math.LN10))}function L(e,c){return 1E14<e?e:parseFloat(e.toPrecision(c||14))}function B(e,c,h){var F=a.getStyle||B;if("width"===c)return c=Math.min(e.offsetWidth,e.scrollWidth),h=e.getBoundingClientRect&&e.getBoundingClientRect().width,h<c&&h>=c-1&&(c=Math.floor(h)),Math.max(0,c-(F(e,"padding-left",!0)||0)-(F(e,"padding-right",!0)||0));if("height"===c)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(F(e,"padding-top",!0)||0)-(F(e,"padding-bottom",!0)||0));f.getComputedStyle||y(27,!0);if(e=
|
|
|
+f.getComputedStyle(e,void 0)){var n=e.getPropertyValue(c);l(h,"opacity"!==c)&&(n=G(n))}return n}function J(e,c,f){for(var h in e)Object.hasOwnProperty.call(e,h)&&c.call(f||e[h],e[h],h,e)}function M(e,c,f){function h(c,f){var N=e.removeEventListener||a.removeEventListenerPolyfill;N&&N.call(e,c,f,!1)}function n(f){var N;if(e.nodeName){if(c){var n={};n[c]=!0}else n=f;J(n,function(c,e){if(f[e])for(N=f[e].length;N--;)h(e,f[e][N].fn)})}}var F="function"===typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(F,
|
|
|
+"hcEvents")){var K=F.hcEvents;c?(F=K[c]||[],f?(K[c]=F.filter(function(c){return f!==c.fn}),h(c,f)):(n(K),K[c]=[])):(n(K),delete F.hcEvents)}}function z(e,c,f,h){f=f||{};if(p.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==a)){var n=p.createEvent("Events");n.initEvent(c,!0,!0);f=b(n,f);e.dispatchEvent?e.dispatchEvent(f):e.fireEvent(c,f)}else if(e.hcEvents){f.target||b(f,{preventDefault:function(){f.defaultPrevented=!0},target:e,type:c});n=[];for(var F=e,K=!1;F.hcEvents;)Object.hasOwnProperty.call(F,
|
|
|
+"hcEvents")&&F.hcEvents[c]&&(n.length&&(K=!0),n.unshift.apply(n,F.hcEvents[c])),F=Object.getPrototypeOf(F);K&&n.sort(function(c,e){return c.order-e.order});n.forEach(function(c){!1===c.fn.call(e,f)&&f.preventDefault()})}h&&!f.defaultPrevented&&h.call(e,f)}var w=a.charts,p=a.doc,f=a.win;(y||(y={})).messages=[];Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var v=Array.prototype.find?function(e,c){return e.find(c)}:function(e,c){var f,h=e.length;for(f=0;f<h;f++)if(c(e[f],f))return e[f]};
|
|
|
+J({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,c){a[c]=function(f){var h;y(32,!1,void 0,(h={},h["Highcharts."+c]="use Array."+e,h));return Array.prototype[e].apply(f,[].slice.call(arguments,1))}});var h,t=function(){var e=Math.random().toString(36).substring(2,9)+"-",c=0;return function(){return"highcharts-"+(h?"":e)+c++}}();f.jQuery&&(f.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new (a[x(e[0])?e.shift():"Chart"])(this[0],
|
|
|
+e[0],e[1]),this):w[d(this[0],"data-highcharts-chart")]});v={addEvent:function(e,c,f,h){void 0===h&&(h={});var n="function"===typeof e&&e.prototype||e;Object.hasOwnProperty.call(n,"hcEvents")||(n.hcEvents={});n=n.hcEvents;a.Point&&e instanceof a.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var t=e.addEventListener||a.addEventListenerPolyfill;t&&t.call(e,c,f,a.supportsPassiveEvents?{passive:void 0===h.passive?-1!==c.indexOf("touch"):h.passive,capture:!1}:!1);n[c]||(n[c]=[]);
|
|
|
+n[c].push({fn:f,order:"number"===typeof h.order?h.order:Infinity});n[c].sort(function(c,e){return c.order-e.order});return function(){M(e,c,f)}},arrayMax:function(e){for(var c=e.length,f=e[0];c--;)e[c]>f&&(f=e[c]);return f},arrayMin:function(e){for(var c=e.length,f=e[0];c--;)e[c]<f&&(f=e[c]);return f},attr:d,clamp:function(e,c,f){return e>c?e<f?e:f:c},cleanRecursively:D,clearTimeout:function(e){g(e)&&clearTimeout(e)},correctFloat:L,createElement:function(e,c,f,h,n){e=p.createElement(e);c&&b(e,c);
|
|
|
+n&&m(e,{padding:"0",border:"none",margin:"0"});f&&m(e,f);h&&h.appendChild(e);return e},css:m,defined:g,destroyObjectProperties:function(e,c){J(e,function(f,h){f&&f!==c&&f.destroy&&f.destroy();delete e[h]})},discardElement:function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},erase:function(e,c){for(var f=e.length;f--;)if(e[f]===c){e.splice(f,1);break}},error:y,extend:b,extendClass:function(e,c){var f=function(){};f.prototype=new e;b(f.prototype,c);return f},find:v,fireEvent:z,getMagnitude:A,
|
|
|
+getNestedProperty:function(e,c){for(e=e.split(".");e.length&&g(c);){var h=e.shift();if("undefined"===typeof h||"__proto__"===h)return;c=c[h];if(!g(c)||"function"===typeof c||"number"===typeof c.nodeType||c===f)return}return c},getStyle:B,inArray:function(e,c,f){y(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return c.indexOf(e,f)},isArray:H,isClass:q,isDOMElement:E,isFunction:function(e){return"function"===typeof e},isNumber:k,isObject:I,isString:x,keys:function(e){y(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});
|
|
|
+return Object.keys(e)},merge:function(){var e,c=arguments,f={},h=function(c,e){"object"!==typeof c&&(c={});J(e,function(f,N){"__proto__"!==N&&"constructor"!==N&&(!I(f,!0)||q(f)||E(f)?c[N]=e[N]:c[N]=h(c[N]||{},f))});return c};!0===c[0]&&(f=c[1],c=Array.prototype.slice.call(c,2));var n=c.length;for(e=0;e<n;e++)f=h(f,c[e]);return f},normalizeTickInterval:function(e,c,f,h,n){var t=e;f=l(f,A(e));var K=e/f;c||(c=n?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===h&&(1===f?c=c.filter(function(c){return 0===
|
|
|
+c%1}):.1>=f&&(c=[1/f])));for(h=0;h<c.length&&!(t=c[h],n&&t*f>=e||!n&&K<=(c[h]+(c[h+1]||c[h]))/2);h++);return t=L(t*f,-Math.round(Math.log(.001)/Math.LN10))},objectEach:J,offset:function(e){var c=p.documentElement;e=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:e.top+(f.pageYOffset||c.scrollTop)-(c.clientTop||0),left:e.left+(f.pageXOffset||c.scrollLeft)-(c.clientLeft||0),width:e.width,height:e.height}},pad:function(e,c,f){return Array((c||2)+1-String(e).replace("-",
|
|
|
+"").length).join(f||"0")+e},pick:l,pInt:G,relativeLength:function(e,c,f){return/%$/.test(e)?c*parseFloat(e)/100+(f||0):parseFloat(e)},removeEvent:M,splat:function(e){return H(e)?e:[e]},stableSort:function(e,c){var f=e.length,h,n;for(n=0;n<f;n++)e[n].safeI=n;e.sort(function(e,f){h=c(e,f);return 0===h?e.safeI-f.safeI:h});for(n=0;n<f;n++)delete e[n].safeI},syncTimeout:function(e,c,f){if(0<c)return setTimeout(e,c,f);e.call(0,f);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,
|
|
|
+week:6048E5,month:24192E5,year:314496E5},uniqueKey:t,useSerialIds:function(e){return h=l(e,h)},wrap:function(e,c,f){var h=e[c];e[c]=function(){var c=Array.prototype.slice.call(arguments),e=arguments,K=this;K.proceed=function(){h.apply(K,arguments.length?arguments:e)};c.unshift(h);c=f.apply(this,c);K.proceed=null;return c}}};"";return v});P(a,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,
|
|
|
+defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});P(a,"Core/Color/Color.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,r){var y=r.isNumber,G=r.merge,x=r.pInt;r=function(){function r(y){this.rgba=[NaN,NaN,NaN,NaN];this.input=y;var E=a.Color;if(E&&E!==r)return new E(y);if(!(this instanceof
|
|
|
+r))return new r(y);this.init(y)}r.parse=function(a){return a?new r(a):r.None};r.prototype.init=function(a){var E;if("object"===typeof a&&"undefined"!==typeof a.stops)this.stops=a.stops.map(function(d){return new r(d[1])});else if("string"===typeof a){this.input=a=r.names[a.toLowerCase()]||a;if("#"===a.charAt(0)){var q=a.length;var k=parseInt(a.substr(1),16);7===q?E=[(k&16711680)>>16,(k&65280)>>8,k&255,1]:4===q&&(E=[(k&3840)>>4|(k&3840)>>8,(k&240)>>4|k&240,(k&15)<<4|k&15,1])}if(!E)for(k=r.parsers.length;k--&&
|
|
|
+!E;){var g=r.parsers[k];(q=g.regex.exec(a))&&(E=g.parse(q))}}E&&(this.rgba=E)};r.prototype.get=function(a){var E=this.input,q=this.rgba;if("object"===typeof E&&"undefined"!==typeof this.stops){var k=G(E);k.stops=[].slice.call(k.stops);this.stops.forEach(function(g,d){k.stops[d]=[k.stops[d][0],g.get(a)]});return k}return q&&y(q[0])?"rgb"===a||!a&&1===q[3]?"rgb("+q[0]+","+q[1]+","+q[2]+")":"a"===a?""+q[3]:"rgba("+q.join(",")+")":E};r.prototype.brighten=function(a){var E=this.rgba;if(this.stops)this.stops.forEach(function(k){k.brighten(a)});
|
|
|
+else if(y(a)&&0!==a)for(var q=0;3>q;q++)E[q]+=x(255*a),0>E[q]&&(E[q]=0),255<E[q]&&(E[q]=255);return this};r.prototype.setOpacity=function(a){this.rgba[3]=a;return this};r.prototype.tweenTo=function(a,E){var q=this.rgba,k=a.rgba;if(!y(q[0])||!y(k[0]))return a.input||"none";a=1!==k[3]||1!==q[3];return(a?"rgba(":"rgb(")+Math.round(k[0]+(q[0]-k[0])*(1-E))+","+Math.round(k[1]+(q[1]-k[1])*(1-E))+","+Math.round(k[2]+(q[2]-k[2])*(1-E))+(a?","+(k[3]+(q[3]-k[3])*(1-E)):"")+")"};r.names={white:"#ffffff",black:"#000000"};
|
|
|
+r.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(a){return[x(a[1]),x(a[2]),x(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[x(a[1]),x(a[2]),x(a[3]),1]}}];r.None=new r("");return r}();"";return r});P(a,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});
|
|
|
+P(a,"Core/Time.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,r){var y=a.win,G=r.defined,x=r.error,H=r.extend,I=r.isObject,E=r.merge,q=r.objectEach,k=r.pad,g=r.pick,d=r.splat,b=r.timeUnits,l=a.isSafari&&y.Intl&&y.Intl.DateTimeFormat.prototype.formatRange,m=a.isSafari&&y.Intl&&!y.Intl.DateTimeFormat.prototype.formatRange;r=function(){function A(b){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=y.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(b)}
|
|
|
+A.prototype.get=function(b,d){if(this.variableTimezone||this.timezoneOffset){var L=d.getTime(),g=L-this.getTimezoneOffset(d);d.setTime(g);b=d["getUTC"+b]();d.setTime(L);return b}return this.useUTC?d["getUTC"+b]():d["get"+b]()};A.prototype.set=function(b,d,g){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===b||"Seconds"===b||"Minutes"===b&&0===this.getTimezoneOffset(d)%36E5)return d["setUTC"+b](g);var L=this.getTimezoneOffset(d);L=d.getTime()-L;d.setTime(L);d["setUTC"+b](g);b=this.getTimezoneOffset(d);
|
|
|
+L=d.getTime()+b;return d.setTime(L)}return this.useUTC||l&&"FullYear"===b?d["setUTC"+b](g):d["set"+b](g)};A.prototype.update=function(b){var d=g(b&&b.useUTC,!0);this.options=b=E(!0,this.options||{},b);this.Date=b.Date||y.Date||Date;this.timezoneOffset=(this.useUTC=d)&&b.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=d&&!(!b.getTimezoneOffset&&!b.timezone)};A.prototype.makeTime=function(b,d,l,A,z,w){if(this.useUTC){var p=this.Date.UTC.apply(0,arguments);var f=
|
|
|
+this.getTimezoneOffset(p);p+=f;var v=this.getTimezoneOffset(p);f!==v?p+=v-f:f-36E5!==this.getTimezoneOffset(p-36E5)||m||(p-=36E5)}else p=(new this.Date(b,d,g(l,1),g(A,0),g(z,0),g(w,0))).getTime();return p};A.prototype.timezoneOffsetFunction=function(){var b=this,d=this.options,g=d.getTimezoneOffset,l=d.moment||y.moment;if(!this.useUTC)return function(b){return 6E4*(new Date(b.toString())).getTimezoneOffset()};if(d.timezone){if(l)return function(b){return 6E4*-l.tz(b,d.timezone).utcOffset()};x(25)}return this.useUTC&&
|
|
|
+g?function(b){return 6E4*g(b.valueOf())}:function(){return 6E4*(b.timezoneOffset||0)}};A.prototype.dateFormat=function(b,d,l){if(!G(d)||isNaN(d))return a.defaultOptions.lang&&a.defaultOptions.lang.invalidDate||"";b=g(b,"%Y-%m-%d %H:%M:%S");var m=this,z=new this.Date(d),w=this.get("Hours",z),p=this.get("Day",z),f=this.get("Date",z),v=this.get("Month",z),h=this.get("FullYear",z),t=a.defaultOptions.lang,e=t&&t.weekdays,c=t&&t.shortWeekdays;z=H({a:c?c[p]:e[p].substr(0,3),A:e[p],d:k(f),e:k(f,2," "),w:p,
|
|
|
+b:t.shortMonths[v],B:t.months[v],m:k(v+1),o:v+1,y:h.toString().substr(2,2),Y:h,H:k(w),k:w,I:k(w%12||12),l:w%12||12,M:k(this.get("Minutes",z)),p:12>w?"AM":"PM",P:12>w?"am":"pm",S:k(z.getSeconds()),L:k(Math.floor(d%1E3),3)},a.dateFormats);q(z,function(c,e){for(;-1!==b.indexOf("%"+e);)b=b.replace("%"+e,"function"===typeof c?c.call(m,d):c)});return l?b.substr(0,1).toUpperCase()+b.substr(1):b};A.prototype.resolveDTLFormat=function(b){return I(b,!0)?b:(b=d(b),{main:b[0],from:b[1],to:b[2]})};A.prototype.getTimeTicks=
|
|
|
+function(d,l,m,A){var z=this,w=[],p={},f=new z.Date(l),v=d.unitRange,h=d.count||1,t;A=g(A,1);if(G(l)){z.set("Milliseconds",f,v>=b.second?0:h*Math.floor(z.get("Milliseconds",f)/h));v>=b.second&&z.set("Seconds",f,v>=b.minute?0:h*Math.floor(z.get("Seconds",f)/h));v>=b.minute&&z.set("Minutes",f,v>=b.hour?0:h*Math.floor(z.get("Minutes",f)/h));v>=b.hour&&z.set("Hours",f,v>=b.day?0:h*Math.floor(z.get("Hours",f)/h));v>=b.day&&z.set("Date",f,v>=b.month?1:Math.max(1,h*Math.floor(z.get("Date",f)/h)));if(v>=
|
|
|
+b.month){z.set("Month",f,v>=b.year?0:h*Math.floor(z.get("Month",f)/h));var e=z.get("FullYear",f)}v>=b.year&&z.set("FullYear",f,e-e%h);v===b.week&&(e=z.get("Day",f),z.set("Date",f,z.get("Date",f)-e+A+(e<A?-7:0)));e=z.get("FullYear",f);A=z.get("Month",f);var c=z.get("Date",f),F=z.get("Hours",f);l=f.getTime();!z.variableTimezone&&z.useUTC||!G(m)||(t=m-l>4*b.month||z.getTimezoneOffset(l)!==z.getTimezoneOffset(m));l=f.getTime();for(f=1;l<m;)w.push(l),l=v===b.year?z.makeTime(e+f*h,0):v===b.month?z.makeTime(e,
|
|
|
+A+f*h):!t||v!==b.day&&v!==b.week?t&&v===b.hour&&1<h?z.makeTime(e,A,c,F+f*h):l+v*h:z.makeTime(e,A,c+f*h*(v===b.day?1:7)),f++;w.push(l);v<=b.hour&&1E4>w.length&&w.forEach(function(c){0===c%18E5&&"000000000"===z.dateFormat("%H%M%S%L",c)&&(p[c]="day")})}w.info=H(d,{higherRanks:p,totalRange:v*h});return w};A.prototype.getDateFormat=function(d,l,g,m){var z=this.dateFormat("%m-%d %H:%M:%S.%L",l),w={millisecond:15,second:12,minute:9,hour:6,day:3},p="millisecond";for(f in b){if(d===b.week&&+this.dateFormat("%w",
|
|
|
+l)===g&&"00:00:00.000"===z.substr(6)){var f="week";break}if(b[f]>d){f=p;break}if(w[f]&&z.substr(w[f])!=="01-01 00:00:00.000".substr(w[f]))break;"week"!==f&&(p=f)}if(f)var v=this.resolveDTLFormat(m[f]).main;return v};return A}();"";return r});P(a,"Core/DefaultOptions.js",[a["Core/Chart/ChartDefaults.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palettes.js"],a["Core/Time.js"],a["Core/Utilities.js"]],function(a,r,D,G,x,H){r=r.parse;var y=H.merge,E={colors:G.colors,symbols:["circle",
|
|
|
+"diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,
|
|
|
+timezone:void 0,timezoneOffset:0,useUTC:!0},chart:a,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",
|
|
|
+inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,
|
|
|
+textAlign:"center"}},tooltip:{enabled:!0,animation:D.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:D.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:r("#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"}};E.chart.styledMode=!1;"";var q=new x(y(E.global,E.time));a={defaultOptions:E,defaultTime:q,getOptions:function(){return E},
|
|
|
+setOptions:function(k){y(!0,E,k);if(k.time||k.global)D.time?D.time.update(y(E.global,E.time,k.global,k.time)):D.time=q;return E}};"";return a});P(a,"Core/Animation/Fx.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,r,D){var y=a.parse,x=r.win,H=D.isNumber,I=D.objectEach;return function(){function a(a,k,g){this.pos=NaN;this.options=k;this.elem=a;this.prop=g}a.prototype.dSetter=function(){var a=this.paths,k=a&&a[0];a=a&&a[1];var g=this.now||0,d=[];if(1!==g&&k&&a)if(k.length===
|
|
|
+a.length&&1>g)for(var b=0;b<a.length;b++){for(var l=k[b],m=a[b],A=[],L=0;L<m.length;L++){var B=l[L],J=m[L];H(B)&&H(J)&&("A"!==m[0]||4!==L&&5!==L)?A[L]=B+g*(J-B):A[L]=J}d.push(A)}else d=a;else d=this.toD||[];this.elem.attr("d",d,void 0,!0)};a.prototype.update=function(){var a=this.elem,k=this.prop,g=this.now,d=this.options.step;if(this[k+"Setter"])this[k+"Setter"]();else a.attr?a.element&&a.attr(k,g,null,!0):a.style[k]=g+this.unit;d&&d.call(a,g,this)};a.prototype.run=function(q,k,g){var d=this,b=d.options,
|
|
|
+l=function(b){return l.stopped?!1:d.step(b)},m=x.requestAnimationFrame||function(b){setTimeout(b,13)},A=function(){for(var b=0;b<a.timers.length;b++)a.timers[b]()||a.timers.splice(b--,1);a.timers.length&&m(A)};q!==k||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=q,this.end=k,this.unit=g,this.now=this.start,this.pos=0,l.elem=this.elem,l.prop=this.prop,l()&&1===a.timers.push(l)&&m(A)):(delete b.curAnim[this.prop],b.complete&&0===Object.keys(b.curAnim).length&&b.complete.call(this.elem))};
|
|
|
+a.prototype.step=function(a){var k=+new Date,g=this.options,d=this.elem,b=g.complete,l=g.duration,m=g.curAnim;if(d.attr&&!d.element)a=!1;else if(a||k>=l+this.startTime){this.now=this.end;this.pos=1;this.update();var A=m[this.prop]=!0;I(m,function(b){!0!==b&&(A=!1)});A&&b&&b.call(d);a=!1}else this.pos=g.easing((k-this.startTime)/l),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a=!0;return a};a.prototype.initPath=function(a,k,g){function d(b,w){for(;b.length<M;){var p=b[0],f=w[M-
|
|
|
+b.length];f&&"M"===p[0]&&(b[0]="C"===f[0]?["C",p[1],p[2],p[1],p[2],p[1],p[2]]:["L",p[1],p[2]]);b.unshift(p);A&&(p=b.pop(),b.push(b[b.length-1],p))}}function b(b,w){for(;b.length<M;)if(w=b[Math.floor(b.length/L)-1].slice(),"C"===w[0]&&(w[1]=w[5],w[2]=w[6]),A){var p=b[Math.floor(b.length/L)].slice();b.splice(b.length/2,0,w,p)}else b.push(w)}var l=a.startX,m=a.endX;g=g.slice();var A=a.isArea,L=A?2:1;k=k&&k.slice();if(!k)return[g,g];if(l&&m&&m.length){for(a=0;a<l.length;a++)if(l[a]===m[0]){var B=a;break}else if(l[0]===
|
|
|
+m[m.length-l.length+a]){B=a;var J=!0;break}else if(l[l.length-1]===m[m.length-l.length+a]){B=l.length-a;break}"undefined"===typeof B&&(k=[])}if(k.length&&H(B)){var M=g.length+B*L;J?(d(k,g),b(g,k)):(d(g,k),b(k,g))}return[k,g]};a.prototype.fillSetter=function(){a.prototype.strokeSetter.apply(this,arguments)};a.prototype.strokeSetter=function(){this.elem.attr(this.prop,y(this.start).tweenTo(y(this.end),this.pos),void 0,!0)};a.timers=[];return a}()});P(a,"Core/Animation/AnimationUtilities.js",[a["Core/Animation/Fx.js"],
|
|
|
+a["Core/Utilities.js"]],function(a,r){function y(b){return q(b)?k({duration:500,defer:0},b):{duration:b?500:0,defer:0}}function G(b,d){for(var l=a.timers.length;l--;)a.timers[l].elem!==b||d&&d!==a.timers[l].prop||(a.timers[l].stopped=!0)}var x=r.defined,H=r.getStyle,I=r.isArray,E=r.isNumber,q=r.isObject,k=r.merge,g=r.objectEach,d=r.pick;return{animate:function(b,d,m){var l,L="",B,J;if(!q(m)){var M=arguments;m={duration:M[2],easing:M[3],complete:M[4]}}E(m.duration)||(m.duration=400);m.easing="function"===
|
|
|
+typeof m.easing?m.easing:Math[m.easing]||Math.easeInOutSine;m.curAnim=k(d);g(d,function(g,w){G(b,w);J=new a(b,m,w);B=void 0;"d"===w&&I(d.d)?(J.paths=J.initPath(b,b.pathArray,d.d),J.toD=d.d,l=0,B=1):b.attr?l=b.attr(w):(l=parseFloat(H(b,w))||0,"opacity"!==w&&(L="px"));B||(B=g);"string"===typeof B&&B.match("px")&&(B=B.replace(/px/g,""));J.run(l,B,L)})},animObject:y,getDeferredAnimation:function(b,d,g){var l=y(d),m=0,k=0;(g?[g]:b.series).forEach(function(b){b=y(b.options.animation);m=d&&x(d.defer)?l.defer:
|
|
|
+Math.max(m,b.duration+b.defer);k=Math.min(l.duration,b.duration)});b.renderer.forExport&&(m=0);return{defer:Math.max(0,m-k),duration:Math.min(m,k)}},setAnimation:function(b,l){l.renderer.globalAnimation=d(b,l.options.chart.animation,!0)},stop:G}});P(a,"Core/Renderer/HTML/AST.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,r){var y=a.SVG_NS,G=r.attr,x=r.createElement,H=r.css,I=r.error,E=r.isFunction,q=r.isString,k=r.objectEach,g=r.splat,d=(r=a.win.trustedTypes)&&E(r.createPolicy)&&r.createPolicy("highcharts",
|
|
|
+{createHTML:function(b){return b}}),b=d?d.createHTML(""):"";try{var l=!!(new DOMParser).parseFromString(b,"text/html")}catch(m){l=!1}E=function(){function m(b){this.nodes="string"===typeof b?this.parseMarkup(b):b}m.filterUserAttributes=function(b){k(b,function(d,l){var g=!0;-1===m.allowedAttributes.indexOf(l)&&(g=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(l)&&(g=q(d)&&m.allowedReferences.some(function(b){return 0===d.indexOf(b)}));g||(I(33,!1,void 0,{"Invalid attribute in config":""+
|
|
|
+l}),delete b[l])});return b};m.parseStyle=function(b){return b.split(";").reduce(function(b,d){d=d.split(":").map(function(b){return b.trim()});var l=d.shift();l&&d.length&&(b[l.replace(/-([a-z])/g,function(b){return b[1].toUpperCase()})]=d.join(":"));return b},{})};m.setElementHTML=function(b,d){b.innerHTML=m.emptyHTML;d&&(new m(d)).addToDOM(b)};m.prototype.addToDOM=function(b){function d(b,l){var A;g(b).forEach(function(b){var w=b.tagName,p=b.textContent?a.doc.createTextNode(b.textContent):void 0,
|
|
|
+f=m.bypassHTMLFiltering;if(w)if("#text"===w)var v=p;else if(-1!==m.allowedTags.indexOf(w)||f){w=a.doc.createElementNS("svg"===w?y:l.namespaceURI||y,w);var h=b.attributes||{};k(b,function(f,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(h[e]=f)});G(w,f?h:m.filterUserAttributes(h));b.style&&H(w,b.style);p&&w.appendChild(p);d(b.children||[],w);v=w}else I(33,!1,void 0,{"Invalid tagName in config":w});v&&l.appendChild(v);A=v});return A}return d(this.nodes,b)};m.prototype.parseMarkup=
|
|
|
+function(b){var g=[];b=b.trim().replace(/ style="/g,' data-style="');if(l)b=(new DOMParser).parseFromString(d?d.createHTML(b):b,"text/html");else{var A=x("div");A.innerHTML=b;b={body:A}}var k=function(b,d){var w=b.nodeName.toLowerCase(),p={tagName:w};"#text"===w&&(p.textContent=b.textContent||"");if(w=b.attributes){var f={};[].forEach.call(w,function(h){"data-style"===h.name?p.style=m.parseStyle(h.value):f[h.name]=h.value});p.attributes=f}if(b.childNodes.length){var v=[];[].forEach.call(b.childNodes,
|
|
|
+function(f){k(f,v)});v.length&&(p.children=v)}d.push(p)};[].forEach.call(b.body.childNodes,function(b){return k(b,g)});return g};m.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" ");
|
|
|
+m.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");m.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");m.emptyHTML=b;m.bypassHTMLFiltering=!1;return m}();"";return E});
|
|
|
+P(a,"Core/FormatUtilities.js",[a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,r){function y(k,g,d,b){k=+k||0;g=+g;var l=G.lang,m=(k.toString().split(".")[1]||"").split("e")[0].length,A=k.toString().split("e"),a=g;if(-1===g)g=Math.min(m,20);else if(!I(g))g=2;else if(g&&A[1]&&0>A[1]){var B=g+ +A[1];0<=B?(A[0]=(+A[0]).toExponential(B).split("e")[0],g=B):(A[0]=A[0].split(".")[0]||0,k=20>g?(A[0]*Math.pow(10,A[1])).toFixed(g):0,A[1]=0)}B=(Math.abs(A[1]?A[0]:k)+Math.pow(10,-Math.max(g,m)-
|
|
|
+1)).toFixed(g);m=String(q(B));var J=3<m.length?m.length%3:0;d=E(d,l.decimalPoint);b=E(b,l.thousandsSep);k=(0>k?"-":"")+(J?m.substr(0,J)+b:"");k=0>+A[1]&&!a?"0":k+m.substr(J).replace(/(\d{3})(?=\d)/g,"$1"+b);g&&(k+=d+B.slice(-g));A[1]&&0!==+k&&(k+="e"+A[1]);return k}var G=a.defaultOptions,x=a.defaultTime,H=r.getNestedProperty,I=r.isNumber,E=r.pick,q=r.pInt;return{dateFormat:function(k,g,d){return x.dateFormat(k,g,d)},format:function(k,g,d){var b="{",l=!1,m=/f$/,A=/\.([0-9])/,a=G.lang,B=d&&d.time||
|
|
|
+x;d=d&&d.numberFormatter||y;for(var J=[];k;){var M=k.indexOf(b);if(-1===M)break;var z=k.slice(0,M);if(l){z=z.split(":");b=H(z.shift()||"",g);if(z.length&&"number"===typeof b)if(z=z.join(":"),m.test(z)){var w=parseInt((z.match(A)||["","-1"])[1],10);null!==b&&(b=d(b,w,a.decimalPoint,-1<z.indexOf(",")?a.thousandsSep:""))}else b=B.dateFormat(z,b);J.push(b)}else J.push(z);k=k.slice(M+1);b=(l=!l)?"}":"{"}J.push(k);return J.join("")},numberFormat:y}});P(a,"Core/Renderer/RendererUtilities.js",[a["Core/Utilities.js"]],
|
|
|
+function(a){var y=a.clamp,D=a.pick,G=a.stableSort,x;(function(a){function r(a,q,k){var g=a,d=g.reducedLen||q,b=function(b,d){return(d.rank||0)-(b.rank||0)},l=function(b,d){return b.target-d.target},m,A=!0,L=[],B=0;for(m=a.length;m--;)B+=a[m].size;if(B>d){G(a,b);for(B=m=0;B<=d;)B+=a[m].size,m++;L=a.splice(m-1,a.length)}G(a,l);for(a=a.map(function(b){return{size:b.size,targets:[b.target],align:D(b.align,.5)}});A;){for(m=a.length;m--;)d=a[m],b=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/
|
|
|
+2,d.pos=y(b-d.size*d.align,0,q-d.size);m=a.length;for(A=!1;m--;)0<m&&a[m-1].pos+a[m-1].size>a[m].pos&&(a[m-1].size+=a[m].size,a[m-1].targets=a[m-1].targets.concat(a[m].targets),a[m-1].align=.5,a[m-1].pos+a[m-1].size>q&&(a[m-1].pos=q-a[m-1].size),a.splice(m,1),A=!0)}g.push.apply(g,L);m=0;a.some(function(b){var d=0;return(b.targets||[]).some(function(){g[m].pos=b.pos+d;if("undefined"!==typeof k&&Math.abs(g[m].pos-g[m].target)>k)return g.slice(0,m+1).forEach(function(b){return delete b.pos}),g.reducedLen=
|
|
|
+(g.reducedLen||q)-.1*q,g.reducedLen>.1*q&&r(g,q,k),!0;d+=g[m].size;m++;return!1})});G(g,l);return g}a.distribute=r})(x||(x={}));return x});P(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/Utilities.js"]],function(a,r,D,G,x){var y=a.animate,I=a.animObject,E=a.stop,q=G.deg2rad,k=G.doc,g=G.noop,d=G.svg,b=G.SVG_NS,l=G.win,m=x.addEvent,A=x.attr,L=x.createElement,B=x.css,J=x.defined,M=x.erase,
|
|
|
+z=x.extend,w=x.fireEvent,p=x.isArray,f=x.isFunction,v=x.isNumber,h=x.isString,t=x.merge,e=x.objectEach,c=x.pick,F=x.pInt,C=x.syncTimeout,n=x.uniqueKey;a=function(){function u(){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(" ")}u.prototype._defaultGetter=function(e){e=c(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0);/^[\-0-9\.]+$/.test(e)&&
|
|
|
+(e=parseFloat(e));return e};u.prototype._defaultSetter=function(c,e,f){f.setAttribute(e,c)};u.prototype.add=function(c){var e=this.renderer,f=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 h=this.zIndexSetter();h||(c?c.element:e.box).appendChild(f);if(this.onAdd)this.onAdd();return this};u.prototype.addClass=function(c,e){var f=e?"":this.attr("class")||
|
|
|
+"";c=(c||"").split(/ /g).reduce(function(c,e){-1===f.indexOf(e)&&c.push(e);return c},f?[f]:[]).join(" ");c!==f&&this.attr("class",c);return this};u.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};u.prototype.align=function(e,f,N){var n={},b=this.renderer,K=b.alignedObjects,t,u,Q;if(e){if(this.alignOptions=e,this.alignByTranslate=f,!N||h(N))this.alignTo=t=N||"renderer",M(K,this),K.push(this),N=void 0}else e=this.alignOptions,f=this.alignByTranslate,
|
|
|
+t=this.alignTo;N=c(N,b[t],"scrollablePlotBox"===t?b.plotBox:void 0,b);t=e.align;var p=e.verticalAlign;b=(N.x||0)+(e.x||0);K=(N.y||0)+(e.y||0);"right"===t?u=1:"center"===t&&(u=2);u&&(b+=(N.width-(e.width||0))/u);n[f?"translateX":"x"]=Math.round(b);"bottom"===p?Q=1:"middle"===p&&(Q=2);Q&&(K+=(N.height-(e.height||0))/Q);n[f?"translateY":"y"]=Math.round(K);this[this.placed?"animate":"attr"](n);this.placed=!0;this.alignAttr=n;return this};u.prototype.alignSetter=function(c){var e={left:"start",center:"middle",
|
|
|
+right:"end"};e[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",e[c]))};u.prototype.animate=function(f,h,N){var n=this,b=I(c(h,this.renderer.globalAnimation,!0));h=b.defer;c(k.hidden,k.msHidden,k.webkitHidden,!1)&&(b.duration=0);0!==b.duration?(N&&(b.complete=N),C(function(){n.element&&y(n,f,b)},h)):(this.attr(f,void 0,N||b.complete),e(f,function(c,e){b.step&&b.step.call(this,c,{prop:e,pos:1,elem:this})},this));return this};u.prototype.applyTextOutline=function(c){var e=this.element;
|
|
|
+-1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var f=c.split(" ");c=f[f.length-1];if((f=f[0])&&"none"!==f&&G.svg){this.fakeTS=!0;this.ySetter=this.xSetter;f=f.replace(/(^[\d\.]+)(.*?)$/g,function(c,e,f){return 2*Number(e)+f});this.removeTextOutline();var h=k.createElementNS(b,"tspan");A(h,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":f,"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)});h.appendChild(e)});var n=k.createElementNS(b,"tspan");n.textContent="\u200b";["x","y"].forEach(function(c){var f=e.getAttribute(c);f&&n.setAttribute(c,f)});h.appendChild(n);e.insertBefore(h,e.firstChild)}};u.prototype.attr=function(c,f,h,n){var N=this.element,b=this.symbolCustomAttribs,O,t=this,K,u;if("string"===typeof c&&"undefined"!==typeof f){var p=c;c={};c[p]=f}"string"===typeof c?t=(this[c+"Getter"]||
|
|
|
+this._defaultGetter).call(this,c,N):(e(c,function(e,f){K=!1;n||E(this,f);this.symbolName&&-1!==b.indexOf(f)&&(O||(this.symbolAttr(c),O=!0),K=!0);!this.rotation||"x"!==f&&"y"!==f||(this.doTransform=!0);K||(u=this[f+"Setter"]||this._defaultSetter,u.call(this,e,f,N),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(f)&&this.updateShadows(f,e,u))},this),this.afterSetters());h&&h.call(this);return t};u.prototype.clip=function(c){return this.attr("clip-path",c?"url("+
|
|
|
+this.renderer.url+"#"+c.id+")":"none")};u.prototype.crisp=function(c,e){e=e||c.strokeWidth||0;var f=Math.round(e)%2/2;c.x=Math.floor(c.x||this.x||0)+f;c.y=Math.floor(c.y||this.y||0)+f;c.width=Math.floor((c.width||this.width||0)-2*f);c.height=Math.floor((c.height||this.height||0)-2*f);J(c.strokeWidth)&&(c.strokeWidth=e);return c};u.prototype.complexColor=function(c,f,h){var N=this.renderer,b,K,u,v,Q,F,d,C,l,g,a=[],m;w(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?K="radialGradient":
|
|
|
+c.linearGradient&&(K="linearGradient");if(K){u=c[K];Q=N.gradients;F=c.stops;l=h.radialReference;p(u)&&(c[K]=u={x1:u[0],y1:u[1],x2:u[2],y2:u[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===K&&l&&!J(u.gradientUnits)&&(v=u,u=t(u,N.getRadialAttr(l,v),{gradientUnits:"userSpaceOnUse"}));e(u,function(c,e){"id"!==e&&a.push(e,c)});e(F,function(c){a.push(c)});a=a.join(",");if(Q[a])g=Q[a].attr("id");else{u.id=g=n();var O=Q[a]=N.createElement(K).attr(u).add(N.defs);O.radAttr=v;O.stops=[];F.forEach(function(c){0===
|
|
|
+c[1].indexOf("rgba")?(b=D.parse(c[1]),d=b.get("rgb"),C=b.get("a")):(d=c[1],C=1);c=N.createElement("stop").attr({offset:c[0],"stop-color":d,"stop-opacity":C}).add(O);O.stops.push(c)})}m="url("+N.url+"#"+g+")";h.setAttribute(f,m);h.gradient=a;c.toString=function(){return m}}})};u.prototype.css=function(c){var f=this.styles,h={},n=this.element,b=!f;c.color&&(c.fill=c.color);f&&e(c,function(c,e){f&&f[e]!==c&&(h[e]=c,b=!0)});if(b){f&&(c=z(f,h));if(null===c.width||"auto"===c.width)delete this.textWidth;
|
|
|
+else if("text"===n.nodeName.toLowerCase()&&c.width)var u=this.textWidth=F(c.width);this.styles=c;u&&!d&&this.renderer.forExport&&delete c.width;var K=t(c);n.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(c){return K&&delete K[c]});B(n,K);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c.textOutline&&this.applyTextOutline(c.textOutline))}return this};u.prototype.dashstyleSetter=function(e){var f=this["stroke-width"];"inherit"===f&&(f=
|
|
|
+1);if(e=e&&e.toLowerCase()){var h=e.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(e=h.length;e--;)h[e]=""+F(h[e])*c(f,NaN);e=h.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",e)}};u.prototype.destroy=function(){var c=this,f=c.element||{},h=c.renderer,n=f.ownerSVGElement,b=h.isSVG&&
|
|
|
+"SPAN"===f.nodeName&&c.parentGroup||void 0;f.onclick=f.onmouseout=f.onmouseover=f.onmousemove=f.point=null;E(c);if(c.clipPath&&n){var t=c.clipPath;[].forEach.call(n.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(t.element.id)&&c.removeAttribute("clip-path")});c.clipPath=t.destroy()}if(c.stops){for(n=0;n<c.stops.length;n++)c.stops[n].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(f);for(h.styledMode||c.destroyShadows();b&&b.div&&0===b.div.childNodes.length;)f=
|
|
|
+b.parentGroup,c.safeRemoveChild(b.div),delete b.div,b=f;c.alignTo&&M(h.alignedObjects,c);e(c,function(e,f){c[f]&&c[f].parentGroup===c&&c[f].destroy&&c[f].destroy();delete c[f]})};u.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};u.prototype.destroyTextPath=function(c,e){var f=c.getElementsByTagName("text")[0];if(f){if(f.removeAttribute("dx"),f.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&
|
|
|
+f.getElementsByTagName("textPath").length){for(c=this.textPathWrapper.element.childNodes;c.length;)f.appendChild(c[0]);f.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())};u.prototype.dSetter=function(c,e,f){p(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),this.pathArray=c,c=c.reduce(function(c,e,f){return e&&e.join?
|
|
|
+(f?c+" ":"")+e.join(" "):(e||"").toString()},""));/(NaN| {2}|^$)/.test(c)&&(c="M 0 0");this[e]!==c&&(f.setAttribute(e,c),this[e]=c)};u.prototype.fadeOut=function(e){var f=this;f.animate({opacity:0},{duration:c(e,150),complete:function(){f.attr({y:-9999}).hide()}})};u.prototype.fillSetter=function(c,e,f){"string"===typeof c?f.setAttribute(e,c):c&&this.complexColor(c,e,f)};u.prototype.getBBox=function(e,h){var n=this.alignValue,b=this.element,t=this.renderer,p=this.styles,v=this.textStr,F=t.cache,Q=
|
|
|
+t.cacheKeys,d=b.namespaceURI===this.SVG_NS;h=c(h,this.rotation,0);var C=t.styledMode?b&&u.prototype.getStyle.call(b,"font-size"):p&&p.fontSize,K;if(J(v)){var w=v.toString();-1===w.indexOf("<")&&(w=w.replace(/[0-9]/g,"0"));w+=["",h,C,this.textWidth,n,p&&p.textOverflow,p&&p.fontWeight].join()}w&&!e&&(K=F[w]);if(!K){if(d||t.forExport){try{var l=this.fakeTS&&function(c){var e=b.querySelector(".highcharts-text-outline");e&&B(e,{display:c})};f(l)&&l("none");K=b.getBBox?z({},b.getBBox()):{width:b.offsetWidth,
|
|
|
+height:b.offsetHeight};f(l)&&l("")}catch(ea){""}if(!K||0>K.width)K={x:0,y:0,width:0,height:0}}else K=this.htmlGetBBox();if(t.isSVG&&(t=K.width,e=K.height,d&&(K.height=e={"11px,17":14,"13px,20":16}[(C||"")+","+Math.round(e)]||e),h)){d=Number(b.getAttribute("y")||0)-K.y;n={right:1,center:.5}[n||0]||0;p=h*q;C=(h-90)*q;var g=t*Math.cos(p);h=t*Math.sin(p);l=Math.cos(C);p=Math.sin(C);t=K.x+n*(t-g)+d*l;C=t+g;l=C-e*l;g=l-g;d=K.y+d-n*h+d*p;n=d+h;e=n-e*p;h=e-h;K.x=Math.min(t,C,l,g);K.y=Math.min(d,n,e,h);K.width=
|
|
|
+Math.max(t,C,l,g)-K.x;K.height=Math.max(d,n,e,h)-K.y}if(w&&(""===v||0<K.height)){for(;250<Q.length;)delete F[Q.shift()];F[w]||Q.push(w);F[w]=K}}return K};u.prototype.getStyle=function(c){return l.getComputedStyle(this.element||this,"").getPropertyValue(c)};u.prototype.hasClass=function(c){return-1!==(""+this.attr("class")).split(" ").indexOf(c)};u.prototype.hide=function(){return this.attr({visibility:"hidden"})};u.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};u.prototype.init=
|
|
|
+function(c,e){this.element="span"===e?L(e):k.createElementNS(this.SVG_NS,e);this.renderer=c;w(this,"afterInit")};u.prototype.invert=function(c){this.inverted=c;this.updateTransform();return this};u.prototype.on=function(c,e){var f=this.onEvents;if(f[c])f[c]();f[c]=m(this.element,c,e);return this};u.prototype.opacitySetter=function(c,e,f){this.opacity=c=Number(Number(c).toFixed(3));f.setAttribute(e,c)};u.prototype.removeClass=function(c){return this.attr("class",(""+this.attr("class")).replace(h(c)?
|
|
|
+new RegExp("(^| )"+c+"( |$)"):c," ").replace(/ +/g," ").trim())};u.prototype.removeTextOutline=function(){var c=this.element.querySelector("tspan.highcharts-text-outline");c&&this.safeRemoveChild(c)};u.prototype.safeRemoveChild=function(c){var e=c.parentNode;e&&e.removeChild(c)};u.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};
|
|
|
+u.prototype.setTextPath=function(c,f){var h=this.element,b=this.text?this.text.element:h,u={textAnchor:"text-anchor"},p=!1,F=this.textPathWrapper,d=!F;f=t(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},f);var Q=r.filterUserAttributes(f.attributes);if(c&&f&&f.enabled){F&&null===F.element.parentNode?(d=!0,F=F.destroy()):F&&this.removeTextOutline.call(F.parentGroup);this.options&&this.options.padding&&(Q.dx=-this.options.padding);F||(this.textPathWrapper=F=this.renderer.createElement("textPath"),
|
|
|
+p=!0);var C=F.element;(f=c.element.getAttribute("id"))||c.element.setAttribute("id",f=n());if(d)for(b.setAttribute("y",0),v(Q.dx)&&b.setAttribute("x",-Q.dx),c=[].slice.call(b.childNodes),d=0;d<c.length;d++){var w=c[d];w.nodeType!==l.Node.TEXT_NODE&&"tspan"!==w.nodeName||C.appendChild(w)}p&&F&&F.add({element:b});C.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+f);J(Q.dy)&&(C.parentNode.setAttribute("dy",Q.dy),delete Q.dy);J(Q.dx)&&(C.parentNode.setAttribute("dx",Q.dx),delete Q.dx);
|
|
|
+e(Q,function(c,e){C.setAttribute(u[e]||e,c)});h.removeAttribute("transform");this.removeTextOutline.call(F);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=g}else F&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(h,c),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};u.prototype.shadow=function(c,f,h){var n=[],b=this.element,
|
|
|
+N=this.oldShadowOptions,t={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},u=!1,p;!0===c?p=t:"object"===typeof c&&(p=z(t,c));p&&(p&&N&&e(p,function(c,e){c!==N[e]&&(u=!0)}),u&&this.destroyShadows(),this.oldShadowOptions=p);if(!p)this.destroyShadows();else if(!this.shadows){var F=p.opacity/p.width;var v=this.parentInverted?"translate("+p.offsetY+", "+p.offsetX+")":"translate("+p.offsetX+", "+p.offsetY+")";for(t=1;t<=p.width;t++){var d=b.cloneNode(!1);
|
|
|
+var C=2*p.width+1-2*t;A(d,{stroke:c.color||"#000000","stroke-opacity":F*t,"stroke-width":C,transform:v,fill:"none"});d.setAttribute("class",(d.getAttribute("class")||"")+" highcharts-shadow");h&&(A(d,"height",Math.max(A(d,"height")-C,0)),d.cutHeight=C);f?f.element.appendChild(d):b.parentNode&&b.parentNode.insertBefore(d,b);n.push(d)}this.shadows=n}return this};u.prototype.show=function(c){void 0===c&&(c=!0);return this.attr({visibility:c?"inherit":"visible"})};u.prototype.strokeSetter=function(c,
|
|
|
+e,f){this[e]=c;this.stroke&&this["stroke-width"]?(u.prototype.fillSetter.call(this,this.stroke,"stroke",f),f.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===c&&this.hasStroke?(f.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(f.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};u.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 f=k.createElementNS(b,"rect");A(f,{width:c,"stroke-width":0});this.element.parentNode.appendChild(f);e=f.getBBox().width;f.parentNode.removeChild(f)}return e};u.prototype.symbolAttr=function(e){var f=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(h){f[h]=c(e[h],f[h])});f.attr({d:f.renderer.symbols[f.symbolName](f.x,f.y,f.width,f.height,f)})};u.prototype.textSetter=function(c){c!==this.textStr&&
|
|
|
+(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this))};u.prototype.titleSetter=function(e){var f=this.element,h=f.getElementsByTagName("title")[0]||k.createElementNS(this.SVG_NS,"title");f.insertBefore?f.insertBefore(h,f.firstChild):f.appendChild(h);h.textContent=String(c(e,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")};u.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};u.prototype.translate=function(c,e){return this.attr({translateX:c,
|
|
|
+translateY:e})};u.prototype.updateShadows=function(c,e,f){var h=this.shadows;if(h)for(var n=h.length;n--;)f.call(h[n],"height"===c?Math.max(e-(h[n].cutHeight||0),0):"d"===c?this.d:e,c,h[n])};u.prototype.updateTransform=function(){var e=this.scaleX,f=this.scaleY,h=this.inverted,n=this.rotation,b=this.matrix,t=this.element,u=this.translateX||0,p=this.translateY||0;h&&(u+=this.width,p+=this.height);u=["translate("+u+","+p+")"];J(b)&&u.push("matrix("+b.join(",")+")");h?u.push("rotate(90) scale(-1,1)"):
|
|
|
+n&&u.push("rotate("+n+" "+c(this.rotationOriginX,t.getAttribute("x"),0)+" "+c(this.rotationOriginY,t.getAttribute("y")||0)+")");(J(e)||J(f))&&u.push("scale("+c(e,1)+" "+c(f,1)+")");u.length&&t.setAttribute("transform",u.join(" "))};u.prototype.visibilitySetter=function(c,e,f){"inherit"===c?f.removeAttribute(e):this[e]!==c&&f.setAttribute(e,c);this[e]=c};u.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};u.prototype.zIndexSetter=
|
|
|
+function(c,e){var f=this.renderer,h=this.parentGroup,n=(h||f).element||f.box,b=this.element;f=n===f.box;var t=!1;var u=this.added;var p;J(c)?(b.setAttribute("data-z-index",c),c=+c,this[e]===c&&(u=!1)):J(this[e])&&b.removeAttribute("data-z-index");this[e]=c;if(u){(c=this.zIndex)&&h&&(h.handleZ=!0);e=n.childNodes;for(p=e.length-1;0<=p&&!t;p--){h=e[p];u=h.getAttribute("data-z-index");var d=!J(u);if(h!==b)if(0>c&&d&&!f&&!p)n.insertBefore(b,e[p]),t=!0;else if(F(u)<=c||d&&(!J(c)||0<=c))n.insertBefore(b,
|
|
|
+e[p+1]||null),t=!0}t||(n.insertBefore(b,e[f?3:0]||null),t=!0)}return t};return u}();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});
|
|
|
+P(a,"Core/Renderer/RendererRegistry.js",[a["Core/Globals.js"]],function(a){var y;(function(y){y.rendererTypes={};var r;y.getRendererType=function(a){void 0===a&&(a=r);return y.rendererTypes[a]||y.rendererTypes[r]};y.registerRendererType=function(x,D,I){y.rendererTypes[x]=D;if(!r||I)r=x,a.Renderer=D}})(y||(y={}));return y});P(a,"Core/Renderer/SVG/SVGLabel.js",[a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,r){var y=this&&this.__extends||function(){var a=function(g,d){a=Object.setPrototypeOf||
|
|
|
+{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var a in d)d.hasOwnProperty(a)&&(b[a]=d[a])};return a(g,d)};return function(g,d){function b(){this.constructor=g}a(g,d);g.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),G=r.defined,x=r.extend,H=r.isNumber,I=r.merge,E=r.pick,q=r.removeEvent;return function(k){function g(d,b,a,m,A,L,B,J,M,z){var w=k.call(this)||this;w.paddingLeftSetter=w.paddingSetter;w.paddingRightSetter=w.paddingSetter;w.init(d,
|
|
|
+"g");w.textStr=b;w.x=a;w.y=m;w.anchorX=L;w.anchorY=B;w.baseline=M;w.className=z;w.addClass("button"===z?"highcharts-no-tooltip":"highcharts-label");z&&w.addClass("highcharts-"+z);w.text=d.text(void 0,0,0,J).attr({zIndex:1});var p;"string"===typeof A&&((p=/^url\((.*?)\)$/.test(A))||w.renderer.symbols[A])&&(w.symbolKey=A);w.bBox=g.emptyBBox;w.padding=3;w.baselineOffset=0;w.needsBox=d.styledMode||p;w.deferredAttr={};w.alignFactor=0;return w}y(g,k);g.prototype.alignSetter=function(d){d={left:0,center:.5,
|
|
|
+right:1}[d];d!==this.alignFactor&&(this.alignFactor=d,this.bBox&&H(this.xSetting)&&this.attr({x:this.xSetting}))};g.prototype.anchorXSetter=function(d,b){this.anchorX=d;this.boxAttr(b,Math.round(d)-this.getCrispAdjust()-this.xSetting)};g.prototype.anchorYSetter=function(d,b){this.anchorY=d;this.boxAttr(b,d-this.ySetting)};g.prototype.boxAttr=function(d,b){this.box?this.box.attr(d,b):this.deferredAttr[d]=b};g.prototype.css=function(d){if(d){var b={};d=I(d);g.textProps.forEach(function(a){"undefined"!==
|
|
|
+typeof d[a]&&(b[a]=d[a],delete d[a])});this.text.css(b);var l="width"in b;"fontSize"in b||"fontWeight"in b?this.updateTextPadding():l&&this.updateBoxSize()}return a.prototype.css.call(this,d)};g.prototype.destroy=function(){q(this.element,"mouseenter");q(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};g.prototype.fillSetter=function(d,b){d&&(this.needsBox=!0);this.fill=d;this.boxAttr(b,d)};g.prototype.getBBox=function(){this.textStr&&
|
|
|
+0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var d=this.padding,b=E(this.paddingLeft,d);return{width:this.width,height:this.height,x:this.bBox.x-b,y:this.bBox.y-d}};g.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};g.prototype.heightSetter=function(d){this.heightSetting=d};g.prototype.onAdd=function(){var d=this.textStr;this.text.add(this);this.attr({text:G(d)?
|
|
|
+d:"",x:this.x,y:this.y});this.box&&G(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};g.prototype.paddingSetter=function(d,b){H(d)?d!==this[b]&&(this[b]=d,this.updateTextPadding()):this[b]=void 0};g.prototype.rSetter=function(d,b){this.boxAttr(b,d)};g.prototype.shadow=function(d){d&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(d));return this};g.prototype.strokeSetter=function(d,b){this.stroke=d;this.boxAttr(b,d)};g.prototype["stroke-widthSetter"]=
|
|
|
+function(d,b){d&&(this.needsBox=!0);this["stroke-width"]=d;this.boxAttr(b,d)};g.prototype["text-alignSetter"]=function(d){this.textAlign=d};g.prototype.textSetter=function(d){"undefined"!==typeof d&&this.text.attr({text:d});this.updateTextPadding()};g.prototype.updateBoxSize=function(){var d=this.text.element.style,b={},a=this.padding,m=this.bBox=H(this.widthSetting)&&H(this.heightSetting)&&!this.textAlign||!G(this.text.textStr)?g.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=
|
|
|
+(this.heightSetting||m.height||0)+2*a;d=this.renderer.fontMetrics(d&&d.fontSize,this.text);this.baselineOffset=a+Math.min((this.text.firstLineMetrics||d).b,m.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-d.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(),
|
|
|
+b.x=a,b.y=(this.baseline?-this.baselineOffset:0)+a,b.width=Math.round(this.width),b.height=Math.round(this.height),this.box.attr(x(b,this.deferredAttr)),this.deferredAttr={})};g.prototype.updateTextPadding=function(){var d=this.text;this.updateBoxSize();var b=this.baseline?0:this.baselineOffset,a=E(this.paddingLeft,this.padding);G(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(a+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(a!==
|
|
|
+d.x||b!==d.y)d.attr("x",a),d.hasBoxWidthChanged&&(this.bBox=d.getBBox(!0)),"undefined"!==typeof b&&d.attr("y",b);d.x=a;d.y=b};g.prototype.widthSetter=function(d){this.widthSetting=H(d)?d:void 0};g.prototype.getPaddedWidth=function(){var d=this.padding,b=E(this.paddingLeft,d);d=E(this.paddingRight,d);return(this.widthSetting||this.bBox.width||0)+b+d};g.prototype.xSetter=function(d){this.x=d;this.alignFactor&&(d-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(d);
|
|
|
+this.attr("translateX",this.xSetting)};g.prototype.ySetter=function(d){this.ySetting=this.y=Math.round(d);this.attr("translateY",this.ySetting)};g.emptyBBox={width:0,height:0,x:0,y:0};g.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return g}(a)});P(a,"Core/Renderer/SVG/Symbols.js",[a["Core/Utilities.js"]],function(a){function y(a,q,k,g,d){var b=[];if(d){var l=d.start||0,m=I(d.r,k);k=I(d.r,g||k);var A=
|
|
|
+(d.end||0)-.001;g=d.innerR;var L=I(d.open,.001>Math.abs((d.end||0)-l-2*Math.PI)),B=Math.cos(l),J=Math.sin(l),M=Math.cos(A),z=Math.sin(A);l=I(d.longArc,.001>A-l-Math.PI?0:1);b.push(["M",a+m*B,q+k*J],["A",m,k,0,l,I(d.clockwise,1),a+m*M,q+k*z]);x(g)&&b.push(L?["M",a+g*M,q+g*z]:["L",a+g*M,q+g*z],["A",g,g,0,l,x(d.clockwise)?1-d.clockwise:0,a+g*B,q+g*J]);L||b.push(["Z"])}return b}function D(a,q,k,g,d){return d&&d.r?G(a,q,k,g,d):[["M",a,q],["L",a+k,q],["L",a+k,q+g],["L",a,q+g],["Z"]]}function G(a,q,k,g,
|
|
|
+d){d=d&&d.r||0;return[["M",a+d,q],["L",a+k-d,q],["C",a+k,q,a+k,q,a+k,q+d],["L",a+k,q+g-d],["C",a+k,q+g,a+k,q+g,a+k-d,q+g],["L",a+d,q+g],["C",a,q+g,a,q+g,a,q+g-d],["L",a,q+d],["C",a,q,a,q,a+d,q]]}var x=a.defined,H=a.isNumber,I=a.pick;return{arc:y,callout:function(a,q,k,g,d){var b=Math.min(d&&d.r||0,k,g),l=b+6,m=d&&d.anchorX;d=d&&d.anchorY||0;var A=G(a,q,k,g,{r:b});if(!H(m))return A;a+m>=k?d>q+l&&d<q+g-l?A.splice(3,1,["L",a+k,d-6],["L",a+k+6,d],["L",a+k,d+6],["L",a+k,q+g-b]):A.splice(3,1,["L",a+k,g/
|
|
|
+2],["L",m,d],["L",a+k,g/2],["L",a+k,q+g-b]):0>=a+m?d>q+l&&d<q+g-l?A.splice(7,1,["L",a,d+6],["L",a-6,d],["L",a,d-6],["L",a,q+b]):A.splice(7,1,["L",a,g/2],["L",m,d],["L",a,g/2],["L",a,q+b]):d&&d>g&&m>a+l&&m<a+k-l?A.splice(5,1,["L",m+6,q+g],["L",m,q+g+6],["L",m-6,q+g],["L",a+b,q+g]):d&&0>d&&m>a+l&&m<a+k-l&&A.splice(1,1,["L",m-6,q],["L",m,q-6],["L",m+6,q],["L",k-b,q]);return A},circle:function(a,q,k,g){return y(a+k/2,q+g/2,k/2,g/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(a,q,k,g){return[["M",
|
|
|
+a+k/2,q],["L",a+k,q+g/2],["L",a+k/2,q+g],["L",a,q+g/2],["Z"]]},rect:D,roundedRect:G,square:D,triangle:function(a,q,k,g){return[["M",a+k/2,q],["L",a+k,q+g],["L",a,q+g],["Z"]]},"triangle-down":function(a,q,k,g){return[["M",a,q],["L",a+k,q],["L",a+k/2,q+g],["Z"]]}}});P(a,"Core/Renderer/SVG/TextBuilder.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,r,D){var y=r.doc,x=r.SVG_NS,H=r.win,I=D.attr,E=D.extend,q=D.isString,k=D.objectEach,g=D.pick;return function(){function d(b){var a=
|
|
|
+b.styles;this.renderer=b.renderer;this.svgElement=b;this.width=b.textWidth;this.textLineHeight=a&&a.lineHeight;this.textOutline=a&&a.textOutline;this.ellipsis=!(!a||"ellipsis"!==a.textOverflow);this.noWrap=!(!a||"nowrap"!==a.whiteSpace);this.fontSize=a&&a.fontSize}d.prototype.buildSVG=function(){var b=this.svgElement,d=b.element,m=b.renderer,A=g(b.textStr,"").toString(),k=-1!==A.indexOf("<"),B=d.childNodes;m=this.width&&!b.added&&m.box;var J=/<br.*?>/g,M=[A,this.ellipsis,this.noWrap,this.textLineHeight,
|
|
|
+this.textOutline,this.fontSize,this.width].join();if(M!==b.textCache){b.textCache=M;delete b.actualWidth;for(M=B.length;M--;)d.removeChild(B[M]);k||this.ellipsis||this.width||-1!==A.indexOf(" ")&&(!this.noWrap||J.test(A))?""!==A&&(m&&m.appendChild(d),A=new a(A),this.modifyTree(A.nodes),A.addToDOM(b.element),this.modifyDOM(),this.ellipsis&&-1!==(d.textContent||"").indexOf("\u2026")&&b.attr("title",this.unescapeEntities(b.textStr||"",["<",">"])),m&&m.removeChild(d)):d.appendChild(y.createTextNode(this.unescapeEntities(A)));
|
|
|
+q(this.textOutline)&&b.applyTextOutline&&b.applyTextOutline(this.textOutline)}};d.prototype.modifyDOM=function(){var b=this,a=this.svgElement,d=I(a.element,"x");a.firstLineMetrics=void 0;for(var g;g=a.element.firstChild;)if(/^[\s\u200B]*$/.test(g.textContent||" "))a.element.removeChild(g);else break;[].forEach.call(a.element.querySelectorAll("tspan.highcharts-br"),function(g,l){g.nextSibling&&g.previousSibling&&(0===l&&1===g.previousSibling.nodeType&&(a.firstLineMetrics=a.renderer.fontMetrics(void 0,
|
|
|
+g.previousSibling)),I(g,{dy:b.getLineHeight(g.nextSibling),x:d}))});var k=this.width||0;if(k){var B=function(g,l){var w=g.textContent||"",p=w.replace(/([^\^])-/g,"$1- ").split(" "),f=!b.noWrap&&(1<p.length||1<a.element.childNodes.length),v=b.getLineHeight(l),h=0,t=a.actualWidth;if(b.ellipsis)w&&b.truncate(g,w,void 0,0,Math.max(0,k-parseInt(b.fontSize||12,10)),function(e,c){return e.substring(0,c)+"\u2026"});else if(f){w=[];for(f=[];l.firstChild&&l.firstChild!==g;)f.push(l.firstChild),l.removeChild(l.firstChild);
|
|
|
+for(;p.length;)p.length&&!b.noWrap&&0<h&&(w.push(g.textContent||""),g.textContent=p.join(" ").replace(/- /g,"-")),b.truncate(g,void 0,p,0===h?t||0:0,k,function(e,c){return p.slice(0,c).join(" ").replace(/- /g,"-")}),t=a.actualWidth,h++;f.forEach(function(e){l.insertBefore(e,g)});w.forEach(function(e){l.insertBefore(y.createTextNode(e),g);e=y.createElementNS(x,"tspan");e.textContent="\u200b";I(e,{dy:v,x:d});l.insertBefore(e,g)})}},J=function(b){[].slice.call(b.childNodes).forEach(function(d){d.nodeType===
|
|
|
+H.Node.TEXT_NODE?B(d,b):(-1!==d.className.baseVal.indexOf("highcharts-br")&&(a.actualWidth=0),J(d))})};J(a.element)}};d.prototype.getLineHeight=function(b){var a;b=b.nodeType===H.Node.TEXT_NODE?b.parentElement:b;this.renderer.styledMode||(a=b&&/(px|em)$/.test(b.style.fontSize)?b.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(a,b||this.svgElement.element).h};d.prototype.modifyTree=function(b){var a=
|
|
|
+this,d=function(g,l){var m=g.attributes;m=void 0===m?{}:m;var k=g.children,A=g.style;A=void 0===A?{}:A;var z=g.tagName,w=a.renderer.styledMode;if("b"===z||"strong"===z)w?m["class"]="highcharts-strong":A.fontWeight="bold";else if("i"===z||"em"===z)w?m["class"]="highcharts-emphasized":A.fontStyle="italic";A&&A.color&&(A.fill=A.color);"br"===z?(m["class"]="highcharts-br",g.textContent="\u200b",(l=b[l+1])&&l.textContent&&(l.textContent=l.textContent.replace(/^ +/gm,""))):"a"===z&&k&&k.some(function(b){return"#text"===
|
|
|
+b.tagName})&&(g.children=[{children:k,tagName:"tspan"}]);"#text"!==z&&"a"!==z&&(g.tagName="tspan");E(g,{attributes:m,style:A});k&&k.filter(function(b){return"#text"!==b.tagName}).forEach(d)};b.forEach(d)};d.prototype.truncate=function(b,a,d,g,k,B){var l=this.svgElement,m=l.renderer,z=l.rotation,w=[],p=d?1:0,f=(a||d||"").length,v=f,h,t=function(c,e){e=e||c;var f=b.parentNode;if(f&&"undefined"===typeof w[e])if(f.getSubStringLength)try{w[e]=g+f.getSubStringLength(0,d?e+1:e)}catch(n){""}else m.getSpanWidth&&
|
|
|
+(b.textContent=B(a||d,c),w[e]=g+m.getSpanWidth(l,b));return w[e]};l.rotation=0;var e=t(b.textContent.length);if(g+e>k){for(;p<=f;)v=Math.ceil((p+f)/2),d&&(h=B(d,v)),e=t(v,h&&h.length-1),p===f?p=f+1:e>k?f=v-1:p=v;0===f?b.textContent="":a&&f===a.length-1||(b.textContent=h||B(a||d,v))}d&&d.splice(0,v);l.actualWidth=e;l.rotation=z};d.prototype.unescapeEntities=function(b,a){k(this.renderer.escapes,function(d,g){a&&-1!==a.indexOf(d)||(b=b.toString().replace(new RegExp(d,"g"),g))});return b};return d}()});
|
|
|
+P(a,"Core/Renderer/SVG/SVGRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Color/Color.js"],a["Core/Globals.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,r,D,G,x,H,I,E,q){var k=D.charts,g=D.deg2rad,d=D.doc,b=D.isFirefox,l=D.isMS,m=D.isWebKit,A=D.noop,L=D.SVG_NS,B=D.symbolSizes,J=D.win,M=q.addEvent,z=q.attr,w=q.createElement,
|
|
|
+p=q.css,f=q.defined,v=q.destroyObjectProperties,h=q.extend,t=q.isArray,e=q.isNumber,c=q.isObject,F=q.isString,C=q.merge,n=q.pick,u=q.pInt,K=q.uniqueKey,V;D=function(){function N(c,e,f,h,n,b,t){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,f,h,n,b,t)}N.prototype.init=function(c,e,f,h,n,t,a){var N=this.createElement("svg").attr({version:"1.1",
|
|
|
+"class":"highcharts-root"}),u=N.element;a||N.css(this.getStyle(h));c.appendChild(u);z(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&z(u,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=u;this.boxWrapper=N;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 10.1.0"));this.defs=this.createElement("defs").add();this.allowHTML=t;this.forExport=n;this.styledMode=a;this.gradients={};this.cache={};this.cacheKeys=
|
|
|
+[];this.imgCount=0;this.setSize(e,f,!1);var O;b&&c.getBoundingClientRect&&(e=function(){p(c,{left:0,top:0});O=c.getBoundingClientRect();p(c,{left:Math.ceil(O.left)-O.left+"px",top:Math.ceil(O.top)-O.top+"px"})},e(),this.unSubPixelFix=M(J,"resize",e))};N.prototype.definition=function(c){return(new a([c])).addToDOM(this.defs.element)};N.prototype.getReferenceURL=function(){if((b||m)&&d.getElementsByTagName("base").length){if(!f(V)){var c=K();c=(new a([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",
|
|
|
+children:[{tagName:"clipPath",attributes:{id:c},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+c+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(d.body);p(c,{position:"fixed",top:0,left:0,zIndex:9E5});var e=d.elementFromPoint(6,6);V="hitme"===(e&&e.id);d.body.removeChild(c)}if(V)return J.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};N.prototype.getStyle=
|
|
|
+function(c){return this.style=h({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};N.prototype.setStyle=function(c){this.boxWrapper.css(this.getStyle(c))};N.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};N.prototype.destroy=function(){var c=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();v(this.gradients||{});this.gradients=null;c&&(this.defs=c.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=
|
|
|
+null};N.prototype.createElement=function(c){var e=new this.Element;e.init(this,c);return e};N.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]}};N.prototype.buildText=function(c){(new E(c)).buildSVG()};N.prototype.getContrast=function(c){c=r.parse(c).rgba;c[0]*=1;c[1]*=1.2;c[2]*=.5;return 459<c[0]+c[1]+c[2]?"#000000":"#FFFFFF"};N.prototype.button=function(e,f,n,b,t,N,u,d,p,F){var O=this.label(e,f,n,p,void 0,void 0,F,void 0,"button"),
|
|
|
+v=this.styledMode;e=t&&t.states||{};t&&delete t.states;var Q=0,g=t?C(t):{},w=C({color:"#333333",cursor:"pointer",fontWeight:"normal"},g.style);delete g.style;g=a.filterUserAttributes(g);O.attr(C({padding:8,r:2},g));if(!v){g=C({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},g);N=C(g,{fill:"#e6e6e6"},a.filterUserAttributes(N||e.hover||{}));var W=N.style;delete N.style;u=C(g,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a.filterUserAttributes(u||e.select||{}));var m=u.style;delete u.style;
|
|
|
+d=C(g,{style:{color:"#cccccc"}},a.filterUserAttributes(d||e.disabled||{}));var K=d.style;delete d.style}M(O.element,l?"mouseover":"mouseenter",function(){3!==Q&&O.setState(1)});M(O.element,l?"mouseout":"mouseleave",function(){3!==Q&&O.setState(Q)});O.setState=function(e){1!==e&&(O.state=Q=e);O.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][e||0]);v||(O.attr([g,N,u,d][e||0]),e=[w,W,m,K][e||0],c(e)&&O.css(e))};v||
|
|
|
+O.attr(g).css(h({cursor:"default"},w));return O.on("touchstart",function(c){return c.stopPropagation()}).on("click",function(c){3!==Q&&b.call(O,c)})};N.prototype.crispLine=function(c,e,h){void 0===h&&(h="round");var n=c[0],b=c[1];f(n[1])&&n[1]===b[1]&&(n[1]=b[1]=Math[h](n[1])-e%2/2);f(n[2])&&n[2]===b[2]&&(n[2]=b[2]=Math[h](n[2])+e%2/2);return c};N.prototype.path=function(e){var f=this.styledMode?{}:{fill:"none"};t(e)?f.d=e:c(e)&&h(f,e);return this.createElement("path").attr(f)};N.prototype.circle=
|
|
|
+function(e,f,h){e=c(e)?e:"undefined"===typeof e?{}:{x:e,y:f,r:h};f=this.createElement("circle");f.xSetter=f.ySetter=function(c,e,f){f.setAttribute("c"+e,c)};return f.attr(e)};N.prototype.arc=function(e,f,h,n,b,t){c(e)?(n=e,f=n.y,h=n.r,e=n.x):n={innerR:n,start:b,end:t};e=this.symbol("arc",e,f,h,h,n);e.r=h;return e};N.prototype.rect=function(e,f,h,n,b,t){b=c(e)?e.r:b;var a=this.createElement("rect");e=c(e)?e:"undefined"===typeof e?{}:{x:e,y:f,width:Math.max(h,0),height:Math.max(n,0)};this.styledMode||
|
|
|
+("undefined"!==typeof t&&(e["stroke-width"]=t,e=a.crisp(e)),e.fill="none");b&&(e.r=b);a.rSetter=function(c,e,f){a.r=c;z(f,{rx:c,ry:c})};a.rGetter=function(){return a.r||0};return a.attr(e)};N.prototype.setSize=function(c,e,f){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:n(f,!0)?void 0:0});this.alignElements()};N.prototype.g=function(c){var e=this.createElement("g");return c?e.attr({"class":"highcharts-"+
|
|
|
+c}):e};N.prototype.image=function(c,f,h,n,b,t){var a={preserveAspectRatio:"none"},N=function(c,e){c.setAttributeNS?c.setAttributeNS("http://www.w3.org/1999/xlink","href",e):c.setAttribute("hc-svg-href",e)};e(f)&&(a.x=f);e(h)&&(a.y=h);e(n)&&(a.width=n);e(b)&&(a.height=b);var u=this.createElement("image").attr(a);f=function(e){N(u.element,c);t.call(u,e)};t?(N(u.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),h=new J.Image,M(h,"load",f),h.src=c,h.complete&&f({})):
|
|
|
+N(u.element,c);return u};N.prototype.symbol=function(c,e,b,t,a,N){var u=this,v=/^url\((.*?)\)$/,F=v.test(c),C=!F&&(this.symbols[c]?c:"circle"),g=C&&this.symbols[C],O;if(g){"number"===typeof e&&(O=g.call(this.symbols,Math.round(e||0),Math.round(b||0),t||0,a||0,N));var Q=this.path(O);u.styledMode||Q.attr("fill","none");h(Q,{symbolName:C||void 0,x:e,y:b,width:t,height:a});N&&h(Q,N)}else if(F){var l=c.match(v)[1];var m=Q=this.image(l);m.imgwidth=n(B[l]&&B[l].width,N&&N.width);m.imgheight=n(B[l]&&B[l].height,
|
|
|
+N&&N.height);var K=function(c){return c.attr({width:c.width,height:c.height})};["width","height"].forEach(function(c){m[c+"Setter"]=function(c,e){var h=this["img"+e];this[e]=c;f(h)&&(N&&"within"===N.backgroundSize&&this.width&&this.height&&(h=Math.round(h*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,h),this.alignByTranslate||(c=((this[e]||0)-h)/2,this.attr("width"===e?{translateX:c}:{translateY:c})))}});f(e)&&m.attr({x:e,y:b});m.isImg=!0;
|
|
|
+f(m.imgwidth)&&f(m.imgheight)?K(m):(m.attr({width:0,height:0}),w("img",{onload:function(){var c=k[u.chartIndex];0===this.width&&(p(this,{position:"absolute",top:"-999em"}),d.body.appendChild(this));B[l]={width:this.width,height:this.height};m.imgwidth=this.width;m.imgheight=this.height;m.element&&K(m);this.parentNode&&this.parentNode.removeChild(this);u.imgCount--;if(!u.imgCount&&c&&!c.hasLoaded)c.onload()},src:l}),this.imgCount++)}return Q};N.prototype.clipRect=function(c,e,f,h){var n=K()+"-",b=
|
|
|
+this.createElement("clipPath").attr({id:n}).add(this.defs);c=this.rect(c,e,f,h,0).add(b);c.id=n;c.clipPath=b;c.count=0;return c};N.prototype.text=function(c,e,h,n){var b={};if(n&&(this.allowHTML||!this.forExport))return this.html(c,e,h);b.x=Math.round(e||0);h&&(b.y=Math.round(h));f(c)&&(b.text=c);c=this.createElement("text").attr(b);if(!n||this.forExport&&!this.allowHTML)c.xSetter=function(c,e,f){for(var h=f.getElementsByTagName("tspan"),n=f.getAttribute(e),b=0,t;b<h.length;b++)t=h[b],t.getAttribute(e)===
|
|
|
+n&&t.setAttribute(e,c);f.setAttribute(e,c)};return c};N.prototype.fontMetrics=function(c,e){c=!this.styledMode&&/px/.test(c)||!J.getComputedStyle?c||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&x.prototype.getStyle.call(e,"font-size");c=/px/.test(c)?u(c):12;e=24>c?c+3:Math.round(1.2*c);return{h:e,b:Math.round(.8*e),f:c}};N.prototype.rotCorr=function(c,e,f){var h=c;e&&f&&(h=Math.max(h*Math.cos(e*g),4));return{x:-c/3*Math.sin(e*g),y:h}};N.prototype.pathToSegments=function(c){for(var f=
|
|
|
+[],h=[],n={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},b=0;b<c.length;b++)F(h[0])&&e(c[b])&&h.length===n[h[0].toUpperCase()]&&c.splice(b,0,h[0].replace("M","L").replace("m","l")),"string"===typeof c[b]&&(h.length&&f.push(h.slice(0)),h.length=0),h.push(c[b]);f.push(h.slice(0));return f};N.prototype.label=function(c,e,f,h,n,b,t,a,N){return new H(this,c,e,f,h,n,b,t,a,N)};N.prototype.alignElements=function(){this.alignedObjects.forEach(function(c){return c.align()})};return N}();h(D.prototype,{Element:x,SVG_NS:L,
|
|
|
+escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:I,draw:A});G.registerRendererType("svg",D,!0);"";return D});P(a,"Core/Renderer/HTML/HTMLElement.js",[a["Core/Globals.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,r,D){var y=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 g(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),x=a.isFirefox,H=a.isMS,I=a.isWebKit,E=a.win,q=D.css,k=D.defined,g=D.extend,d=D.pick,b=D.pInt;return function(a){function l(){return null!==a&&a.apply(this,arguments)||this}y(l,a);l.compose=function(b){if(-1===l.composedClasses.indexOf(b)){l.composedClasses.push(b);var a=l.prototype,d=b.prototype;d.getSpanCorrection=a.getSpanCorrection;d.htmlCss=a.htmlCss;d.htmlGetBBox=a.htmlGetBBox;
|
|
|
+d.htmlUpdateTransform=a.htmlUpdateTransform;d.setSpanRotation=a.setSpanRotation}return b};l.prototype.getSpanCorrection=function(b,a,d){this.xCorr=-b*d;this.yCorr=-a};l.prototype.htmlCss=function(b){var a="SPAN"===this.element.tagName&&b&&"width"in b,l=d(a&&b.width,void 0);if(a){delete b.width;this.textWidth=l;var m=!0}b&&"ellipsis"===b.textOverflow&&(b.whiteSpace="nowrap",b.overflow="hidden");this.styles=g(this.styles,b);q(this.element,b);m&&this.htmlUpdateTransform();return this};l.prototype.htmlGetBBox=
|
|
|
+function(){var b=this.element;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}};l.prototype.htmlUpdateTransform=function(){if(this.added){var a=this.renderer,d=this.element,g=this.translateX||0,l=this.translateY||0,m=this.x||0,z=this.y||0,w=this.textAlign||"left",p={left:0,center:.5,right:1}[w],f=this.styles;f=f&&f.whiteSpace;q(d,{marginLeft:g,marginTop:l});!a.styledMode&&this.shadows&&this.shadows.forEach(function(c){q(c,{marginLeft:g+1,marginTop:l+1})});this.inverted&&
|
|
|
+[].forEach.call(d.childNodes,function(c){a.invertChild(c,d)});if("SPAN"===d.tagName){var v=this.rotation,h=this.textWidth&&b(this.textWidth),t=[v,w,d.innerHTML,this.textWidth,this.textAlign].join(),e=void 0;e=!1;if(h!==this.oldTextWidth){if(this.textPxLength)var c=this.textPxLength;else q(d,{width:"",whiteSpace:f||"nowrap"}),c=d.offsetWidth;(h>this.oldTextWidth||c>h)&&(/[ \-]/.test(d.textContent||d.innerText)||"ellipsis"===d.style.textOverflow)&&(q(d,{width:c>h||v?h+"px":"auto",display:"block",whiteSpace:f||
|
|
|
+"normal"}),this.oldTextWidth=h,e=!0)}this.hasBoxWidthChanged=e;t!==this.cTT&&(e=a.fontMetrics(d.style.fontSize,d).b,!k(v)||v===(this.oldRotation||0)&&w===this.oldAlign||this.setSpanRotation(v,p,e),this.getSpanCorrection(!k(v)&&this.textPxLength||d.offsetWidth,e,p,v,w));q(d,{left:m+(this.xCorr||0)+"px",top:z+(this.yCorr||0)+"px"});this.cTT=t;this.oldRotation=v;this.oldAlign=w}}else this.alignOnAdd=!0};l.prototype.setSpanRotation=function(b,a,d){var g={},l=H&&!/Edge/.test(E.navigator.userAgent)?"-ms-transform":
|
|
|
+I?"-webkit-transform":x?"MozTransform":E.opera?"-o-transform":void 0;l&&(g[l]=g.transform="rotate("+b+"deg)",g[l+(x?"Origin":"-origin")]=g.transformOrigin=100*a+"% "+d+"px",q(this.element,g))};l.composedClasses=[];return l}(r)});P(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,r,D,G){var y=this&&this.__extends||function(){var a=function(g,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(g,d)};return function(g,d){function b(){this.constructor=g}a(g,d);g.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),H=G.attr,I=G.createElement,E=G.extend,q=G.pick;return function(k){function g(){return null!==k&&k.apply(this,arguments)||this}y(g,k);g.compose=function(a){-1===g.composedClasses.indexOf(a)&&(g.composedClasses.push(a),a.prototype.html=
|
|
|
+g.prototype.html);return a};g.prototype.html=function(d,b,g){var l=this.createElement("span"),k=l.element,L=l.renderer,B=L.isSVG,J=function(b,a){["opacity","visibility"].forEach(function(d){b[d+"Setter"]=function(p,f,v){var h=b.div?b.div.style:a;r.prototype[d+"Setter"].call(this,p,f,v);h&&(h[f]=p)}});b.addedSetters=!0};l.textSetter=function(b){b!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,q(b,"")),this.textStr=b,l.doTransform=!0)};B&&J(l,l.element.style);
|
|
|
+l.xSetter=l.ySetter=l.alignSetter=l.rotationSetter=function(b,a){"align"===a?l.alignValue=l.textAlign=b:l[a]=b;l.doTransform=!0};l.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};l.attr({text:d,x:Math.round(b),y:Math.round(g)}).css({position:"absolute"});L.styledMode||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});k.style.whiteSpace="nowrap";l.css=l.htmlCss;B&&(l.add=function(b){var a=L.box.parentNode,d=[];if(this.parentGroup=b){var p=
|
|
|
+b.div;if(!p){for(;b;)d.push(b),b=b.parentGroup;d.reverse().forEach(function(f){function b(c,h){f[h]=c;"translateX"===h?e.left=c+"px":e.top=c+"px";f.doTransform=!0}var h=H(f.element,"class"),t=f.styles||{};p=f.div=f.div||I("div",h?{className:h}:void 0,{position:"absolute",left:(f.translateX||0)+"px",top:(f.translateY||0)+"px",display:f.display,opacity:f.opacity,cursor:t.cursor,pointerEvents:t.pointerEvents,visibility:f.visibility},p||a);var e=p.style;E(f,{classSetter:function(c){return function(e){this.element.setAttribute("class",
|
|
|
+e);c.className=e}}(p),on:function(){d[0].div&&l.on.apply({element:d[0].div,onEvents:f.onEvents},arguments);return f},translateXSetter:b,translateYSetter:b});f.addedSetters||J(f)})}}else p=a;p.appendChild(k);l.added=!0;l.alignOnAdd&&l.htmlUpdateTransform();return l});return l};g.composedClasses=[];return g}(D)});P(a,"Core/Axis/AxisDefaults.js",[],function(){var a;(function(a){a.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",
|
|
|
+range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,
|
|
|
+minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",
|
|
|
+lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};a.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",
|
|
|
+textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};a.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};a.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};a.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};a.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(a||(a={}));return a});P(a,"Core/Foundation.js",[a["Core/Utilities.js"]],function(a){var y=a.addEvent,D=a.isFunction,G=a.objectEach,x=a.removeEvent,
|
|
|
+H;(function(a){a.registerEventOptions=function(a,q){a.eventOptions=a.eventOptions||{};G(q.events,function(k,g){a.eventOptions[g]!==k&&(a.eventOptions[g]&&(x(a,g,a.eventOptions[g]),delete a.eventOptions[g]),D(k)&&(a.eventOptions[g]=k,y(a,g,k)))})}})(H||(H={}));return H});P(a,"Core/Axis/Tick.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,r,D){var y=r.deg2rad,x=D.clamp,H=D.correctFloat,I=D.defined,E=D.destroyObjectProperties,q=D.extend,k=D.fireEvent,g=D.isNumber,
|
|
|
+d=D.merge,b=D.objectEach,l=D.pick;r=function(){function m(b,a,d,g,l){this.isNewLabel=this.isNew=!0;this.axis=b;this.pos=a;this.type=d||"";this.parameters=l||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;k(this,"init");d||g||this.addLabel()}m.prototype.addLabel=function(){var b=this,d=b.axis,m=d.options,J=d.chart,M=d.categories,z=d.logarithmic,w=d.names,p=b.pos,f=l(b.options&&b.options.labels,m.labels),v=d.tickPositions,h=p===v[0],t=p===v[v.length-1],e=
|
|
|
+(!f.step||1===f.step)&&1===d.tickInterval;v=v.info;var c=b.label,F;M=this.parameters.category||(M?l(M[p],w[p],p):p);z&&g(M)&&(M=H(z.lin2log(M)));if(d.dateTime)if(v){var C=J.time.resolveDTLFormat(m.dateTimeLabelFormats[!m.grid&&v.higherRanks[p]||v.unitName]);var n=C.main}else g(M)&&(n=d.dateTime.getXDateFormat(M,m.dateTimeLabelFormats||{}));b.isFirst=h;b.isLast=t;var u={axis:d,chart:J,dateTimeLabelFormat:n,isFirst:h,isLast:t,pos:p,tick:b,tickPositionInfo:v,value:M};k(this,"labelFormat",u);var K=function(c){return f.formatter?
|
|
|
+f.formatter.call(c,c):f.format?(c.text=d.defaultLabelFormatter.call(c),a.format(f.format,c,J)):d.defaultLabelFormatter.call(c,c)};m=K.call(u,u);var V=C&&C.list;b.shortenLabel=V?function(){for(F=0;F<V.length;F++)if(q(u,{dateTimeLabelFormat:V[F]}),c.attr({text:K.call(u,u)}),c.getBBox().width<d.getSlotWidth(b)-2*f.padding)return;c.attr({text:""})}:void 0;e&&d._addedPlotLB&&b.moveLabel(m,f);I(c)||b.movedLabel?c&&c.textStr!==m&&!e&&(!c.textWidth||f.style.width||c.styles.width||c.css({width:null}),c.attr({text:m}),
|
|
|
+c.textPxLength=c.getBBox().width):(b.label=c=b.createLabel({x:0,y:0},m,f),b.rotation=0)};m.prototype.createLabel=function(b,a,g){var l=this.axis,k=l.chart;if(b=I(a)&&g.enabled?k.renderer.text(a,b.x,b.y,g.useHTML).add(l.labelGroup):null)k.styledMode||b.css(d(g.style)),b.textPxLength=b.getBBox().width;return b};m.prototype.destroy=function(){E(this,this.axis)};m.prototype.getPosition=function(b,a,d,g){var l=this.axis,m=l.chart,w=g&&m.oldChartHeight||m.chartHeight;b={x:b?H(l.translate(a+d,null,null,
|
|
|
+g)+l.transB):l.left+l.offset+(l.opposite?(g&&m.oldChartWidth||m.chartWidth)-l.right-l.left:0),y:b?w-l.bottom+l.offset-(l.opposite?l.height:0):H(w-l.translate(a+d,null,null,g)-l.transB)};b.y=x(b.y,-1E5,1E5);k(this,"afterGetPosition",{pos:b});return b};m.prototype.getLabelPosition=function(b,a,d,g,l,m,w,p){var f=this.axis,v=f.transA,h=f.isLinked&&f.linkedParent?f.linkedParent.reversed:f.reversed,t=f.staggerLines,e=f.tickRotCorr||{x:0,y:0},c=g||f.reserveSpaceDefault?0:-f.labelOffset*("center"===f.labelAlign?
|
|
|
+.5:1),F={},C=l.y;I(C)||(C=0===f.side?d.rotation?-8:-d.getBBox().height:2===f.side?e.y+8:Math.cos(d.rotation*y)*(e.y-d.getBBox(!1,0).height/2));b=b+l.x+c+e.x-(m&&g?m*v*(h?-1:1):0);a=a+C-(m&&!g?m*v*(h?1:-1):0);t&&(d=w/(p||1)%t,f.opposite&&(d=t-d-1),a+=f.labelOffset/t*d);F.x=b;F.y=Math.round(a);k(this,"afterGetLabelPosition",{pos:F,tickmarkOffset:m,index:w});return F};m.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};m.prototype.getMarkPath=
|
|
|
+function(b,a,d,g,l,m){return m.crispLine([["M",b,a],["L",b+(l?0:-d),a+(l?d:0)]],g)};m.prototype.handleOverflow=function(b){var a=this.axis,d=a.options.labels,g=b.x,m=a.chart.chartWidth,k=a.chart.spacing,w=l(a.labelLeft,Math.min(a.pos,k[3]));k=l(a.labelRight,Math.max(a.isRadial?0:a.pos+a.len,m-k[1]));var p=this.label,f=this.rotation,v={left:0,center:.5,right:1}[a.labelAlign||p.attr("align")],h=p.getBBox().width,t=a.getSlotWidth(this),e={},c=t,F=1,C;if(f||"justify"!==d.overflow)0>f&&g-v*h<w?C=Math.round(g/
|
|
|
+Math.cos(f*y)-w):0<f&&g+v*h>k&&(C=Math.round((m-g)/Math.cos(f*y)));else if(m=g+(1-v)*h,g-v*h<w?c=b.x+c*(1-v)-w:m>k&&(c=k-b.x+c*v,F=-1),c=Math.min(t,c),c<t&&"center"===a.labelAlign&&(b.x+=F*(t-c-v*(t-Math.min(h,c)))),h>c||a.autoRotation&&(p.styles||{}).width)C=c;C&&(this.shortenLabel?this.shortenLabel():(e.width=Math.floor(C)+"px",(d.style||{}).textOverflow||(e.textOverflow="ellipsis"),p.css(e)))};m.prototype.moveLabel=function(a,d){var g=this,l=g.label,m=g.axis,k=m.reversed,w=!1;l&&l.textStr===a?
|
|
|
+(g.movedLabel=l,w=!0,delete g.label):b(m.ticks,function(f){w||f.isNew||f===g||!f.label||f.label.textStr!==a||(g.movedLabel=f.label,w=!0,f.labelPos=g.movedLabel.xy,delete f.label)});if(!w&&(g.labelPos||l)){var p=g.labelPos||l.xy;l=m.horiz?k?0:m.width+m.left:p.x;m=m.horiz?p.y:k?m.width+m.left:0;g.movedLabel=g.createLabel({x:l,y:m},a,d);g.movedLabel&&g.movedLabel.attr({opacity:0})}};m.prototype.render=function(b,a,d){var g=this.axis,m=g.horiz,z=this.pos,w=l(this.tickmarkOffset,g.tickmarkOffset);z=this.getPosition(m,
|
|
|
+z,w,a);w=z.x;var p=z.y;g=m&&w===g.pos+g.len||!m&&p===g.pos?-1:1;m=l(d,this.label&&this.label.newOpacity,1);d=l(d,1);this.isActive=!0;this.renderGridLine(a,d,g);this.renderMark(z,d,g);this.renderLabel(z,a,m,b);this.isNew=!1;k(this,"afterRender")};m.prototype.renderGridLine=function(b,a,d){var g=this.axis,m=g.options,k={},w=this.pos,p=this.type,f=l(this.tickmarkOffset,g.tickmarkOffset),v=g.chart.renderer,h=this.gridLine,t=m.gridLineWidth,e=m.gridLineColor,c=m.gridLineDashStyle;"minor"===this.type&&
|
|
|
+(t=m.minorGridLineWidth,e=m.minorGridLineColor,c=m.minorGridLineDashStyle);h||(g.chart.styledMode||(k.stroke=e,k["stroke-width"]=t||0,k.dashstyle=c),p||(k.zIndex=1),b&&(a=0),this.gridLine=h=v.path().attr(k).addClass("highcharts-"+(p?p+"-":"")+"grid-line").add(g.gridGroup));if(h&&(d=g.getPlotLinePath({value:w+f,lineWidth:h.strokeWidth()*d,force:"pass",old:b})))h[b||this.isNew?"attr":"animate"]({d:d,opacity:a})};m.prototype.renderMark=function(b,a,d){var g=this.axis,m=g.options,k=g.chart.renderer,w=
|
|
|
+this.type,p=g.tickSize(w?w+"Tick":"tick"),f=b.x;b=b.y;var v=l(m["minor"!==w?"tickWidth":"minorTickWidth"],!w&&g.isXAxis?1:0);m=m["minor"!==w?"tickColor":"minorTickColor"];var h=this.mark,t=!h;p&&(g.opposite&&(p[0]=-p[0]),h||(this.mark=h=k.path().addClass("highcharts-"+(w?w+"-":"")+"tick").add(g.axisGroup),g.chart.styledMode||h.attr({stroke:m,"stroke-width":v})),h[t?"attr":"animate"]({d:this.getMarkPath(f,b,p[0],h.strokeWidth()*d,g.horiz,k),opacity:a}))};m.prototype.renderLabel=function(b,a,d,m){var k=
|
|
|
+this.axis,z=k.horiz,w=k.options,p=this.label,f=w.labels,v=f.step;k=l(this.tickmarkOffset,k.tickmarkOffset);var h=b.x;b=b.y;var t=!0;p&&g(h)&&(p.xy=b=this.getLabelPosition(h,b,p,z,f,k,m,v),this.isFirst&&!this.isLast&&!w.showFirstLabel||this.isLast&&!this.isFirst&&!w.showLastLabel?t=!1:!z||f.step||f.rotation||a||0===d||this.handleOverflow(b),v&&m%v&&(t=!1),t&&g(b.y)?(b.opacity=d,p[this.isNewLabel?"attr":"animate"](b).show(!0),this.isNewLabel=!1):(p.hide(),this.isNewLabel=!0))};m.prototype.replaceMovedLabel=
|
|
|
+function(){var b=this.label,a=this.axis,d=a.reversed;if(b&&!this.isNew){var g=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:g,y:d,opacity:0},void 0,b.destroy);delete this.label}a.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return m}();"";return r});P(a,"Core/Axis/Axis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/AxisDefaults.js"],a["Core/Color/Color.js"],a["Core/DefaultOptions.js"],a["Core/Foundation.js"],a["Core/Globals.js"],
|
|
|
+a["Core/Axis/Tick.js"],a["Core/Utilities.js"]],function(a,r,D,G,x,H,I,E){var q=a.animObject,k=G.defaultOptions,g=x.registerEventOptions,d=H.deg2rad,b=E.arrayMax,l=E.arrayMin,m=E.clamp,A=E.correctFloat,L=E.defined,B=E.destroyObjectProperties,J=E.erase,M=E.error,z=E.extend,w=E.fireEvent,p=E.isArray,f=E.isNumber,v=E.isString,h=E.merge,t=E.normalizeTickInterval,e=E.objectEach,c=E.pick,F=E.relativeLength,C=E.removeEvent,n=E.splat,u=E.syncTimeout,K=function(e,f){return t(f,void 0,void 0,c(e.options.allowDecimals,
|
|
|
+.5>f||void 0!==e.tickAmount),!!e.tickAmount)};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.bottom=this.alternateBands=void 0;this.init(c,e)}a.prototype.init=function(e,b){var h=b.isX;this.chart=e;this.horiz=e.inverted&&!this.isZAxis?!h:h;this.isXAxis=h;this.coll=this.coll||(h?"xAxis":"yAxis");w(this,
|
|
|
+"init",{userOptions:b});this.opposite=c(b.opposite,this.opposite);this.side=c(b.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(b);var a=this.options,d=a.labels,t=a.type;this.userOptions=b;this.minPixelPadding=0;this.reversed=c(a.reversed,this.reversed);this.visible=a.visible;this.zoomEnabled=a.zoomEnabled;this.hasNames="category"===t||!0===a.categories;this.categories=a.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups=
|
|
|
+{};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=L(a.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=a.minRange||a.maxZoom;this.range=a.range;this.offset=a.offset||0;this.min=this.max=null;b=c(a.crosshair,n(e.options.tooltip.crosshairs)[h?0:1]);this.crosshair=!0===b?{}:b;-1===e.axes.indexOf(this)&&(h?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),e[this.coll].push(this));this.series=
|
|
|
+this.series||[];e.inverted&&!this.isZAxis&&h&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=f(d.rotation)?d.rotation:void 0;g(this,a);w(this,"afterInit")};a.prototype.setOptions=function(c){this.options=h(r.defaultXAxisOptions,"yAxis"===this.coll&&r.defaultYAxisOptions,[r.defaultTopAxisOptions,r.defaultRightAxisOptions,r.defaultBottomAxisOptions,r.defaultLeftAxisOptions][this.side],h(k[this.coll],c));w(this,"afterSetOptions",{userOptions:c})};a.prototype.defaultLabelFormatter=
|
|
|
+function(c){var e=this.axis;c=this.chart.numberFormatter;var b=f(this.value)?this.value:NaN,h=e.chart.time,a=this.dateTimeLabelFormat,n=k.lang,d=n.numericSymbols;n=n.numericSymbolMagnitude||1E3;var t=e.logarithmic?Math.abs(b):e.tickInterval,u=d&&d.length;if(e.categories)var N=""+this.value;else if(a)N=h.dateFormat(a,b);else if(u&&1E3<=t)for(;u--&&"undefined"===typeof N;)e=Math.pow(n,u+1),t>=e&&0===10*b%e&&null!==d[u]&&0!==b&&(N=c(b/e,-1)+d[u]);"undefined"===typeof N&&(N=1E4<=Math.abs(b)?c(b,-1):c(b,
|
|
|
+-1,void 0,""));return N};a.prototype.getSeriesExtremes=function(){var e=this,b=e.chart,h;w(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1;e.dataMin=e.dataMax=e.threshold=null;e.softThreshold=!e.isXAxis;e.stacking&&e.stacking.buildStacks();e.series.forEach(function(a){if(a.visible||!b.options.chart.ignoreHiddenSeries){var n=a.options,d=n.threshold;e.hasVisibleSeries=!0;e.positiveValuesOnly&&0>=d&&(d=null);if(e.isXAxis){if(n=a.xData,n.length){n=e.logarithmic?n.filter(e.validatePositiveValue):
|
|
|
+n;h=a.getXExtremes(n);var t=h.min;var u=h.max;f(t)||t instanceof Date||(n=n.filter(f),h=a.getXExtremes(n),t=h.min,u=h.max);n.length&&(e.dataMin=Math.min(c(e.dataMin,t),t),e.dataMax=Math.max(c(e.dataMax,u),u))}}else if(a=a.applyExtremes(),f(a.dataMin)&&(t=a.dataMin,e.dataMin=Math.min(c(e.dataMin,t),t)),f(a.dataMax)&&(u=a.dataMax,e.dataMax=Math.max(c(e.dataMax,u),u)),L(d)&&(e.threshold=d),!n.softThreshold||e.positiveValuesOnly)e.softThreshold=!1}})});w(this,"afterGetSeriesExtremes")};a.prototype.translate=
|
|
|
+function(c,e,b,h,a,n){var d=this.linkedParent||this,t=h&&d.old?d.old.min:d.min,u=d.minPixelPadding;a=(d.isOrdinal||d.brokenAxis&&d.brokenAxis.hasBreaks||d.logarithmic&&a)&&d.lin2val;var g=1,p=0;h=h&&d.old?d.old.transA:d.transA;h||(h=d.transA);b&&(g*=-1,p=d.len);d.reversed&&(g*=-1,p-=g*(d.sector||d.len));e?(n=(c*g+p-u)/h+t,a&&(n=d.lin2val(n))):(a&&(c=d.val2lin(c)),c=g*(c-t)*h,n=f(t)?(d.isRadial?c:A(c))+p+g*u+(f(n)?h*n:0):void 0);return n};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(e){function b(c,e,f){if("pass"!==F&&c<e||c>f)F?c=m(c,e,f):q=!0;return c}var h=this,a=h.chart,n=h.left,d=h.top,t=e.old,u=e.value,g=e.lineWidth,p=t&&a.oldChartHeight||a.chartHeight,N=t&&a.oldChartWidth||a.chartWidth,v=h.transB,C=e.translatedValue,F=e.force,l,k,K,z,q;e={value:u,lineWidth:g,old:t,force:F,acrossPanes:e.acrossPanes,
|
|
|
+translatedValue:C};w(this,"getPlotLinePath",e,function(e){C=c(C,h.translate(u,null,null,t));C=m(C,-1E5,1E5);l=K=Math.round(C+v);k=z=Math.round(p-C-v);f(C)?h.horiz?(k=d,z=p-h.bottom,l=K=b(l,n,n+h.width)):(l=n,K=N-h.right,k=z=b(k,d,d+h.height)):(q=!0,F=!1);e.path=q&&!F?null:a.renderer.crispLine([["M",l,k],["L",K,z]],g||1)});return e.path};a.prototype.getLinearTickPositions=function(c,e,f){var b=A(Math.floor(e/c)*c);f=A(Math.ceil(f/c)*c);var h=[],a;A(b+c)===b&&(a=20);if(this.single)return[e];for(e=b;e<=
|
|
|
+f;){h.push(e);e=A(e+c,a);if(e===n)break;var n=e}return h};a.prototype.getMinorTickInterval=function(){var e=this.options;return!0===e.minorTicks?c(e.minorTickInterval,"auto"):!1===e.minorTicks?null:e.minorTickInterval};a.prototype.getMinorTickPositions=function(){var c=this.options,e=this.tickPositions,f=this.minorTickInterval,b=this.pointRangePadding||0,h=this.min-b;b=this.max+b;var a=b-h,n=[];if(a&&a/f<this.len/3){var d=this.logarithmic;if(d)this.paddedTicks.forEach(function(c,e,b){e&&n.push.apply(n,
|
|
|
+d.getLogTickPositions(f,b[e-1],b[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())n=n.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(f),h,b,c.startOfWeek));else for(c=h+(e[0]-h)%f;c<=b&&c!==n[0];c+=f)n.push(c)}0!==n.length&&this.trimTicks(n);return n};a.prototype.adjustForMinRange=function(){var e=this.options,f=this.logarithmic,h=this.min,a=this.max,n=0,d,t,u,g;this.isXAxis&&"undefined"===typeof this.minRange&&!f&&(L(e.min)||L(e.max)||L(e.floor)||L(e.ceiling)?
|
|
|
+this.minRange=null:(this.series.forEach(function(c){u=c.xData;g=c.xIncrement?1:u.length-1;if(1<u.length)for(d=g;0<d;d--)if(t=u[d]-u[d-1],!n||t<n)n=t}),this.minRange=Math.min(5*n,this.dataMax-this.dataMin)));if(a-h<this.minRange){var p=this.dataMax-this.dataMin>=this.minRange;var C=this.minRange;var v=(C-a+h)/2;v=[h-v,c(e.min,h-v)];p&&(v[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);h=b(v);a=[h+C,c(e.max,h+C)];p&&(a[2]=f?f.log2lin(this.dataMax):this.dataMax);a=l(a);a-h<C&&
|
|
|
+(v[0]=a-C,v[1]=c(e.min,a-C),h=b(v))}this.min=h;this.max=a};a.prototype.getClosest=function(){var c;this.categories?c=1:this.series.forEach(function(e){var f=e.closestPointRange,b=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&L(f)&&b&&(c=L(c)?Math.min(c,f):f)});return c};a.prototype.nameToX=function(e){var f=p(this.options.categories),b=f?this.categories:this.names,h=e.options.x;e.series.requireSorting=!1;L(h)||(h=this.options.uniqueNames&&b?f?b.indexOf(e.name):c(b.keys[e.name],
|
|
|
+-1):e.series.autoIncrement());if(-1===h){if(!f&&b)var a=b.length}else a=h;"undefined"!==typeof a&&(this.names[a]=e.name,this.names.keys[e.name]=a);return a};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(f,
|
|
|
+b){if(f&&f.options&&"undefined"!==typeof f.name){var h=c.nameToX(f);"undefined"!==typeof h&&h!==f.x&&(f.x=h,e.xData[b]=h)}})}))};a.prototype.setAxisTranslation=function(){var e=this,f=e.max-e.min,b=e.linkedParent,h=!!e.categories,a=e.isXAxis,n=e.axisPointRange||0,d=0,t=0,u=e.transA;if(a||h||n){var g=e.getClosest();b?(d=b.minPointOffset,t=b.pointRangePadding):e.series.forEach(function(f){var b=h?1:a?c(f.options.pointRange,g,0):e.axisPointRange||0,u=f.options.pointPlacement;n=Math.max(n,b);if(!e.single||
|
|
|
+h)f=f.is("xrange")?!a:a,d=Math.max(d,f&&v(u)?0:b/2),t=Math.max(t,f&&"on"===u?0:b)});b=e.ordinal&&e.ordinal.slope&&g?e.ordinal.slope/g:1;e.minPointOffset=d*=b;e.pointRangePadding=t*=b;e.pointRange=Math.min(n,e.single&&h?1:f);a&&(e.closestPointRange=g)}e.translationSlope=e.transA=u=e.staticScale||e.len/(f+t||1);e.transB=e.horiz?e.left:e.bottom;e.minPixelPadding=u*d;w(this,"afterSetAxisTranslation")};a.prototype.minFromRange=function(){return this.max-this.range};a.prototype.setTickInterval=function(e){var b=
|
|
|
+this.chart,h=this.logarithmic,a=this.options,n=this.isXAxis,d=this.isLinked,t=a.tickPixelInterval,u=this.categories,g=this.softThreshold,p=a.maxPadding,v=a.minPadding,C=f(a.tickInterval)&&0<=a.tickInterval?a.tickInterval:void 0,F=f(this.threshold)?this.threshold:null;this.dateTime||u||d||this.getTickAmount();var l=c(this.userMin,a.min);var N=c(this.userMax,a.max);if(d){this.linkedParent=b[this.coll][a.linkedTo];var m=this.linkedParent.getExtremes();this.min=c(m.min,m.dataMin);this.max=c(m.max,m.dataMax);
|
|
|
+a.type!==this.linkedParent.options.type&&M(11,1,b)}else{if(g&&L(F))if(this.dataMin>=F)m=F,v=0;else if(this.dataMax<=F){var k=F;p=0}this.min=c(l,m,this.dataMin);this.max=c(N,k,this.dataMax)}h&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,c(this.dataMin,this.min))&&M(10,1,b),this.min=A(h.log2lin(this.min),16),this.max=A(h.log2lin(this.max),16));this.range&&L(this.max)&&(this.userMin=this.min=l=Math.max(this.dataMin,this.minFromRange()),this.userMax=N=this.max,this.range=null);w(this,"foundExtremes");
|
|
|
+this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(u||this.axisPointRange||this.stacking&&this.stacking.usePercentage||d)&&L(this.min)&&L(this.max)&&(b=this.max-this.min)&&(!L(l)&&v&&(this.min-=b*v),!L(N)&&p&&(this.max+=b*p));f(this.userMin)||(f(a.softMin)&&a.softMin<this.min&&(this.min=l=a.softMin),f(a.floor)&&(this.min=Math.max(this.min,a.floor)));f(this.userMax)||(f(a.softMax)&&a.softMax>this.max&&(this.max=N=a.softMax),f(a.ceiling)&&(this.max=Math.min(this.max,a.ceiling)));g&&
|
|
|
+L(this.dataMin)&&(F=F||0,!L(l)&&this.min<F&&this.dataMin>=F?this.min=this.options.minRange?Math.min(F,this.max-this.minRange):F:!L(N)&&this.max>F&&this.dataMax<=F&&(this.max=this.options.minRange?Math.max(F,this.min+this.minRange):F));f(this.min)&&f(this.max)&&!this.chart.polar&&this.min>this.max&&(L(this.options.min)?this.max=this.min:L(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:d&&this.linkedParent&&
|
|
|
+!C&&t===this.linkedParent.options.tickPixelInterval?C=this.linkedParent.tickInterval:c(C,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,u?1:(this.max-this.min)*t/Math.max(this.len,t));if(n&&!e){var z=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(c){c.forceCrop=c.forceCropping&&c.forceCropping();c.processData(z)});w(this,"postProcessData",{hasExtemesChanged:z})}this.setAxisTranslation();w(this,"initialAxisTranslation");
|
|
|
+this.pointRange&&!C&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));e=c(a.minTickInterval,this.dateTime&&!this.series.some(function(c){return c.noSharedTooltip})?this.closestPointRange:0);!C&&this.tickInterval<e&&(this.tickInterval=e);this.dateTime||this.logarithmic||C||(this.tickInterval=K(this,this.tickInterval));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};a.prototype.setTickPositions=function(){var c=this.options,e=c.tickPositions,f=this.getMinorTickInterval(),
|
|
|
+b=this.hasVerticalPanning(),h="colorAxis"===this.coll,a=(h||!b)&&c.startOnTick;b=(h||!b)&&c.endOnTick;h=c.tickPositioner;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===f&&this.tickInterval?this.tickInterval/5:f;this.single=this.min===this.max&&L(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==c.allowDecimals);this.tickPositions=f=e&&e.slice();if(!f){if(this.ordinal&&this.ordinal.positions||!((this.max-
|
|
|
+this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)f=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)f=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var n=c=this.tickInterval;n<=2*c;)if(f=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&f.length>this.tickAmount)this.tickInterval=
|
|
|
+K(this,n*=1.1);else break;else f=[this.min,this.max],M(19,!1,this.chart);f.length>this.len&&(f=[f[0],f.pop()],f[0]===f[1]&&(f.length=1));this.tickPositions=f;h&&(h=h.apply(this,[this.min,this.max]))&&(this.tickPositions=f=h)}this.paddedTicks=f.slice(0);this.trimTicks(f,a,b);this.isLinked||(this.single&&2>f.length&&!this.categories&&!this.series.some(function(c){return c.is("heatmap")&&"between"===c.options.pointPlacement})&&(this.min-=.5,this.max+=.5),e||h||this.adjustTickAmount());w(this,"afterSetTickPositions")};
|
|
|
+a.prototype.trimTicks=function(c,e,f){var b=c[0],h=c[c.length-1],a=!this.isOrdinal&&this.minPointOffset||0;w(this,"trimTicks");if(!this.isLinked){if(e&&-Infinity!==b)this.min=b;else for(;this.min-a>c[0];)c.shift();if(f)this.max=h;else for(;this.max+a<c[c.length-1];)c.pop();0===c.length&&L(b)&&!this.options.tickPositions&&c.push((h+b)/2)}};a.prototype.alignToOthers=function(){var c=this,e=[this],b=c.options,h="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,a=[],n;c.thresholdAlignment=
|
|
|
+void 0;if((!1!==this.chart.options.chart.alignTicks&&b.alignTicks||h)&&!1!==b.startOnTick&&!1!==b.endOnTick&&!c.logarithmic){var d=function(c){var e=c.options;return[c.horiz?e.left:e.top,e.width,e.height,e.pane].join()},t=d(this);this.chart[this.coll].forEach(function(f){var b=f.series;b.length&&b.some(function(c){return c.visible})&&f!==c&&d(f)===t&&(n=!0,e.push(f))})}if(n&&h){e.forEach(function(e){e=e.getThresholdAlignment(c);f(e)&&a.push(e)});var u=1<a.length?a.reduce(function(c,e){return c+e},
|
|
|
+0)/a.length:void 0;e.forEach(function(c){c.thresholdAlignment=u})}return n};a.prototype.getThresholdAlignment=function(c){(!f(this.dataMin)||this!==c&&this.series.some(function(c){return c.isDirty||c.isDirtyData}))&&this.getSeriesExtremes();if(f(this.threshold))return c=m((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(c=1-c),c};a.prototype.getTickAmount=function(){var c=this.options,e=c.tickPixelInterval,f=c.tickAmount;!L(c.tickInterval)&&!f&&
|
|
|
+this.len<e&&!this.isRadial&&!this.logarithmic&&c.startOnTick&&c.endOnTick&&(f=2);!f&&this.alignToOthers()&&(f=Math.ceil(this.len/e)+1);4>f&&(this.finalTickAmt=f,f=5);this.tickAmount=f};a.prototype.adjustTickAmount=function(){var e=this,b=e.finalTickAmt,h=e.max,a=e.min,n=e.options,d=e.tickPositions,t=e.tickAmount,u=e.thresholdAlignment,g=d&&d.length,p=c(e.threshold,e.softThreshold?0:null);var C=e.tickInterval;if(f(u)){var v=.5>u?Math.ceil(u*(t-1)):Math.floor(u*(t-1));n.reversed&&(v=t-1-v)}if(e.hasData()&&
|
|
|
+f(a)&&f(h)){u=function(){e.transA*=(g-1)/(t-1);e.min=n.startOnTick?d[0]:Math.min(a,d[0]);e.max=n.endOnTick?d[d.length-1]:Math.max(h,d[d.length-1])};if(f(v)&&f(e.threshold)){for(;d[v]!==p||d.length!==t||d[0]>a||d[d.length-1]<h;){d.length=0;for(d.push(e.threshold);d.length<t;)void 0===d[v]||d[v]>e.threshold?d.unshift(A(d[0]-C)):d.push(A(d[d.length-1]+C));if(C>8*e.tickInterval)break;C*=2}u()}else if(g<t){for(;d.length<t;)d.length%2||a===p?d.push(A(d[d.length-1]+C)):d.unshift(A(d[0]-C));u()}if(L(b)){for(C=
|
|
|
+p=d.length;C--;)(3===b&&1===C%2||2>=b&&0<C&&C<p-1)&&d.splice(C,1);e.finalTickAmt=void 0}}};a.prototype.setScale=function(){var c=!1,e=!1;this.series.forEach(function(f){c=c||f.isDirtyData||f.isDirty;e=e||f.xAxis&&f.xAxis.isDirty||!1});this.setAxisSize();var f=this.len!==(this.old&&this.old.len);f||c||e||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=f||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);w(this,"afterSetScale")};a.prototype.setExtremes=function(e,f,b,h,a){var n=this,d=n.chart;b=c(b,!0);n.series.forEach(function(c){delete c.kdTree});a=z(a,{min:e,max:f});w(n,"setExtremes",a,function(){n.userMin=e;n.userMax=f;n.eventArgs=a;b&&d.redraw(h)})};
|
|
|
+a.prototype.zoom=function(e,f){var b=this,h=this.dataMin,a=this.dataMax,n=this.options,d=Math.min(h,c(n.min,h)),t=Math.max(a,c(n.max,a));e={newMin:e,newMax:f};w(this,"zoom",e,function(c){var e=c.newMin,f=c.newMax;if(e!==b.min||f!==b.max)b.allowZoomOutside||(L(h)&&(e<d&&(e=d),e>t&&(e=t)),L(a)&&(f<d&&(f=d),f>t&&(f=t))),b.displayBtn="undefined"!==typeof e||"undefined"!==typeof f,b.setExtremes(e,f,!1,void 0,{trigger:"zoom"});c.zoomed=!0});return e.zoomed};a.prototype.setAxisSize=function(){var e=this.chart,
|
|
|
+f=this.options,b=f.offsets||[0,0,0,0],h=this.horiz,a=this.width=Math.round(F(c(f.width,e.plotWidth-b[3]+b[1]),e.plotWidth)),n=this.height=Math.round(F(c(f.height,e.plotHeight-b[0]+b[2]),e.plotHeight)),d=this.top=Math.round(F(c(f.top,e.plotTop+b[0]),e.plotHeight,e.plotTop));f=this.left=Math.round(F(c(f.left,e.plotLeft+b[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-n-d;this.right=e.chartWidth-a-f;this.len=Math.max(h?a:n,0);this.pos=h?f:d};a.prototype.getExtremes=function(){var c=this.logarithmic;
|
|
|
+return{min:c?A(c.lin2log(this.min)):this.min,max:c?A(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,f=e?e.lin2log(this.min):this.min;e=e?e.lin2log(this.max):this.max;null===c||-Infinity===c?c=f:Infinity===c?c=e:f>c?c=f:e<c&&(c=e);return this.translate(c,0,1,0,1)};a.prototype.autoLabelAlign=function(e){var f=(c(e,0)-90*this.side+720)%360;e={align:"center"};w(this,"autoLabelAlign",
|
|
|
+e,function(c){15<f&&165>f?c.align="right":195<f&&345>f&&(c.align="left")});return e.align};a.prototype.tickSize=function(e){var f=this.options,b=c(f["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),h=f["tick"===e?"tickLength":"minorTickLength"];if(b&&h){"inside"===f[e+"Position"]&&(h=-h);var a=[h,b]}e={tickSize:a};w(this,"afterTickSize",e);return e.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 e=this.options.labels,b=this.horiz,h=this.tickInterval,a=this.len/(((this.categories?1:0)+this.max-this.min)/h),n=e.rotation,t=this.labelMetrics(),u=Math.max(this.max-this.min,0),g=function(c){var e=c/(a||1);e=1<e?Math.ceil(e):1;e*h>u&&Infinity!==c&&Infinity!==a&&u&&(e=Math.ceil(u/h));return A(e*h)},p=h,C,v,F=Number.MAX_VALUE;if(b){if(!e.staggerLines&&!e.step)if(f(n))var l=[n];else a<e.autoRotationLimit&&(l=e.autoRotation);l&&
|
|
|
+l.forEach(function(c){if(c===n||c&&-90<=c&&90>=c){v=g(Math.abs(t.h/Math.sin(d*c)));var e=v+Math.abs(c/360);e<F&&(F=e,C=c,p=v)}})}else e.step||(p=g(t.h));this.autoRotation=l;this.labelRotation=c(C,f(n)?n:0);return p};a.prototype.getSlotWidth=function(c){var e=this.chart,b=this.horiz,h=this.options.labels,a=Math.max(this.tickPositions.length-(this.categories?0:1),1),n=e.margin[3];if(c&&f(c.slotWidth))return c.slotWidth;if(b&&2>h.step)return h.rotation?0:(this.staggerLines||1)*this.len/a;if(!b){c=h.style.width;
|
|
|
+if(void 0!==c)return parseInt(String(c),10);if(n)return n-e.spacing[3]}return.33*e.chartWidth};a.prototype.renderUnsquish=function(){var c=this.chart,e=c.renderer,f=this.tickPositions,b=this.ticks,h=this.options.labels,a=h.style,n=this.horiz,d=this.getSlotWidth(),t=Math.max(1,Math.round(d-2*h.padding)),u={},g=this.labelMetrics(),p=a.textOverflow,C=0;v(h.rotation)||(u.rotation=h.rotation||0);f.forEach(function(c){c=b[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>C&&(C=c.label.textPxLength)});
|
|
|
+this.maxLabelLength=C;if(this.autoRotation)C>t&&C>g.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(d){var F=t;if(!p){var l="clip";for(t=f.length;!n&&t--;){var w=f[t];if(w=b[w].label)w.styles&&"ellipsis"===w.styles.textOverflow?w.css({textOverflow:"clip"}):w.textPxLength>d&&w.css({width:d+"px"}),w.getBBox().height>this.len/f.length-(g.h-g.f)&&(w.specificTextOverflow="ellipsis")}}}u.rotation&&(F=C>.5*c.chartHeight?.33*c.chartHeight:C,p||(l="ellipsis"));if(this.labelAlign=h.align||this.autoLabelAlign(this.labelRotation))u.align=
|
|
|
+this.labelAlign;f.forEach(function(c){var e=(c=b[c])&&c.label,f=a.width,h={};e&&(e.attr(u),c.shortenLabel?c.shortenLabel():F&&!f&&"nowrap"!==a.whiteSpace&&(F<e.textPxLength||"SPAN"===e.element.tagName)?(h.width=F+"px",p||(h.textOverflow=e.specificTextOverflow||l),e.css(h)):e.styles&&e.styles.width&&!h.width&&!f&&e.css({width:null}),delete e.specificTextOverflow,c.rotation=u.rotation)},this);this.tickRotCorr=e.rotCorr(g.b,this.labelRotation||0,0!==this.side)};a.prototype.hasData=function(){return this.series.some(function(c){return c.hasData()})||
|
|
|
+this.options.showEmpty&&L(this.min)&&L(this.max)};a.prototype.addTitle=function(c){var e=this.chart.renderer,f=this.horiz,b=this.opposite,a=this.options.title,n=this.chart.styledMode,d;this.axisTitle||((d=a.textAlign)||(d=(f?{low:"left",middle:"center",high:"right"}:{low:b?"right":"left",middle:"center",high:b?"left":"right"})[a.align]),this.axisTitle=e.text(a.text||"",0,0,a.useHTML).attr({zIndex:7,rotation:a.rotation,align:d}).addClass("highcharts-axis-title"),n||this.axisTitle.css(h(a.style)),this.axisTitle.add(this.axisGroup),
|
|
|
+this.axisTitle.isNew=!0);n||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 I(this,c)};a.prototype.getOffset=function(){var f=this,b=this,h=b.chart,a=b.horiz,n=b.options,d=b.side,t=b.ticks,u=b.tickPositions,g=b.coll,p=b.axisParent,C=h.renderer,v=h.inverted&&!b.isZAxis?[1,0,3,2][d]:d,F=b.hasData(),l=n.title,m=n.labels,k=h.axisOffset;h=h.clipOffset;var K=[-1,
|
|
|
+1,1,-1][d],z=n.className,q,A=0,B=0,J=0;b.showAxis=q=F||n.showEmpty;b.staggerLines=b.horiz&&m.staggerLines||void 0;if(!b.axisGroup){var M=function(c,e,b){return C.g(c).attr({zIndex:b}).addClass("highcharts-"+g.toLowerCase()+e+" "+(f.isRadial?"highcharts-radial-axis"+e+" ":"")+(z||"")).add(p)};b.gridGroup=M("grid","-grid",n.gridZIndex);b.axisGroup=M("axis","",n.zIndex);b.labelGroup=M("axis-labels","-labels",m.zIndex)}F||b.isLinked?(u.forEach(function(c){b.generateTick(c)}),b.renderUnsquish(),b.reserveSpaceDefault=
|
|
|
+0===d||2===d||{1:"left",3:"right"}[d]===b.labelAlign,c(m.reserveSpace,"center"===b.labelAlign?!0:null,b.reserveSpaceDefault)&&u.forEach(function(c){J=Math.max(t[c].getLabelSize(),J)}),b.staggerLines&&(J*=b.staggerLines),b.labelOffset=J*(b.opposite?-1:1)):e(t,function(c,e){c.destroy();delete t[e]});if(l&&l.text&&!1!==l.enabled&&(b.addTitle(q),q&&!1!==l.reserveSpace)){b.titleOffset=A=b.axisTitle.getBBox()[a?"height":"width"];var V=l.offset;B=L(V)?0:c(l.margin,a?5:10)}b.renderLine();b.offset=K*c(n.offset,
|
|
|
+k[d]?k[d]+(n.margin||0):0);b.tickRotCorr=b.tickRotCorr||{x:0,y:0};l=0===d?-b.labelMetrics().h:2===d?b.tickRotCorr.y:0;F=Math.abs(J)+B;J&&(F=F-l+K*(a?c(m.y,b.tickRotCorr.y+8*K):m.x));b.axisTitleMargin=c(V,F);b.getMaxLabelDimensions&&(b.maxLabelDimensions=b.getMaxLabelDimensions(t,u));"colorAxis"!==g&&(a=this.tickSize("tick"),k[d]=Math.max(k[d],(b.axisTitleMargin||0)+A+K*b.offset,F,u&&u.length&&a?a[0]+K*b.offset:0),n=!b.axisLine||n.offset?0:2*Math.floor(b.axisLine.strokeWidth()/2),h[v]=Math.max(h[v],
|
|
|
+n));w(this,"afterGetOffset")};a.prototype.getLinePath=function(c){var e=this.chart,f=this.opposite,b=this.offset,h=this.horiz,a=this.left+(f?this.width:0)+b;b=e.chartHeight-this.bottom-(f?this.height:0)+b;f&&(c*=-1);return e.renderer.crispLine([["M",h?this.left:a,h?b:this.top],["L",h?e.chartWidth-this.right:a,h?b: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,e=this.left,f=this.top,b=this.len,h=this.options.title,a=c?e:f,n=this.opposite,d=this.offset,t=h.x,u=h.y,g=this.axisTitle,p=this.chart.renderer.fontMetrics(h.style.fontSize,g);g=g?Math.max(g.getBBox(!1,0).height-p.h-1,0):0;b={low:a+(c?0:b),middle:a+b/2,high:a+(c?b:0)}[h.align];e=(c?f+this.height:e)+(c?1:-1)*(n?-1:1)*(this.axisTitleMargin||0)+
|
|
|
+[-g,g,p.f,-g][this.side];c={x:c?b+t:e+(n?this.width:0)+d+t,y:c?e+u-(n?this.height:0)+d:b+u};w(this,"afterGetTitlePosition",{titlePosition:c});return c};a.prototype.renderMinorTick=function(c,e){var f=this.minorTicks;f[c]||(f[c]=new I(this,c,"minor"));e&&f[c].isNew&&f[c].render(null,!0);f[c].render(null,!1,1)};a.prototype.renderTick=function(c,e,f){var b=this.ticks;if(!this.isLinked||c>=this.min&&c<=this.max||this.grid&&this.grid.isColumn)b[c]||(b[c]=new I(this,c)),f&&b[c].isNew&&b[c].render(e,!0,
|
|
|
+-1),b[c].render(e)};a.prototype.render=function(){var c=this,b=c.chart,h=c.logarithmic,a=c.options,n=c.isLinked,d=c.tickPositions,t=c.axisTitle,g=c.ticks,p=c.minorTicks,C=c.alternateBands,v=a.stackLabels,F=a.alternateGridColor,l=c.tickmarkOffset,m=c.axisLine,k=c.showAxis,K=q(b.renderer.globalAnimation),z,A;c.labelEdge.length=0;c.overlap=!1;[g,p,C].forEach(function(c){e(c,function(c){c.isActive=!1})});if(c.hasData()||n){var B=c.chart.hasRendered&&c.old&&f(c.old.min);c.minorTickInterval&&!c.categories&&
|
|
|
+c.getMinorTickPositions().forEach(function(e){c.renderMinorTick(e,B)});d.length&&(d.forEach(function(e,f){c.renderTick(e,f,B)}),l&&(0===c.min||c.single)&&(g[-1]||(g[-1]=new I(c,-1,null,!0)),g[-1].render(-1)));F&&d.forEach(function(e,f){A="undefined"!==typeof d[f+1]?d[f+1]+l:c.max-l;0===f%2&&e<c.max&&A<=c.max+(b.polar?-l:l)&&(C[e]||(C[e]=new H.PlotLineOrBand(c)),z=e+l,C[e].options={from:h?h.lin2log(z):z,to:h?h.lin2log(A):A,color:F,className:"highcharts-alternate-grid"},C[e].render(),C[e].isActive=
|
|
|
+!0)});c._addedPlotLB||(c._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(e){c.addPlotBandOrLine(e)}))}[g,p,C].forEach(function(c){var f=[],h=K.duration;e(c,function(c,e){c.isActive||(c.render(e,!1,0),c.isActive=!1,f.push(e))});u(function(){for(var e=f.length;e--;)c[f[e]]&&!c[f[e]].isActive&&(c[f[e]].destroy(),delete c[f[e]])},c!==C&&b.hasRendered&&h?h:0)});m&&(m[m.isPlaced?"animate":"attr"]({d:this.getLinePath(m.strokeWidth())}),m.isPlaced=!0,m[k?"show":"hide"](k));t&&k&&
|
|
|
+(a=c.getTitlePosition(),t[t.isNew?"attr":"animate"](a),t.isNew=!1);v&&v.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;w(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 f=this,b=f.plotLinesAndBands,h=this.eventOptions;w(this,"destroy",{keepEvents:c});c||C(f);[f.ticks,f.minorTicks,f.alternateBands].forEach(function(c){B(c)});if(b)for(c=b.length;c--;)b[c].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(c){f[c]&&(f[c]=f[c].destroy())});for(var a in f.plotLinesAndBandsGroups)f.plotLinesAndBandsGroups[a]=f.plotLinesAndBandsGroups[a].destroy();e(f,function(c,e){-1===f.getKeepProps().indexOf(e)&&
|
|
|
+delete f[e]});this.eventOptions=h};a.prototype.drawCrosshair=function(e,f){var b=this.crosshair,h=c(b&&b.snap,!0),a=this.chart,n,d=this.cross;w(this,"drawCrosshair",{e:e,point:f});e||(e=this.cross&&this.cross.e);if(b&&!1!==(L(f)||!h)){h?L(f)&&(n=c("colorAxis"!==this.coll?f.crosshairPos:null,this.isXAxis?f.plotX:this.len-f.plotY)):n=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos);if(L(n)){var t={value:f&&(this.isXAxis?f.x:c(f.stackY,f.y)),translatedValue:n};a.polar&&z(t,{isCrosshair:!0,
|
|
|
+chartX:e&&e.chartX,chartY:e&&e.chartY,point:f});t=this.getPlotLinePath(t)||null}if(!L(t)){this.hideCrosshair();return}h=this.categories&&!this.isRadial;d||(this.cross=d=a.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(h?"category ":"thin ")+(b.className||"")).attr({zIndex:c(b.zIndex,2)}).add(),a.styledMode||(d.attr({stroke:b.color||(h?D.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":c(b.width,1)}).css({"pointer-events":"none"}),b.dashStyle&&d.attr({dashstyle:b.dashStyle})));
|
|
|
+d.show().attr({d:t});h&&!b.width&&d.attr({"stroke-width":this.transA});this.cross.e=e}else this.hideCrosshair();w(this,"afterDrawCrosshair",{e:e,point:f})};a.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();w(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 f(c)&&0<c};a.prototype.update=function(e,f){var b=this.chart;e=h(this.userOptions,
|
|
|
+e);this.destroy(!0);this.init(b,e);b.isDirtyBox=!0;c(f,!0)&&b.redraw()};a.prototype.remove=function(e){for(var f=this.chart,b=this.coll,h=this.series,a=h.length;a--;)h[a]&&h[a].remove(!1);J(f.axes,this);J(f[b],this);f[b].forEach(function(c,e){c.options.index=c.userOptions.index=e});this.destroy();f.isDirtyBox=!0;c(e,!0)&&f.redraw()};a.prototype.setTitle=function(c,e){this.update({title:c},e)};a.prototype.setCategories=function(c,e){this.update({categories:c},e)};a.defaultOptions=r.defaultXAxisOptions;
|
|
|
+a.keepProps="extKey hcEvents names series userMax userMin".split(" ");return a}();"";return a});P(a,"Core/Axis/DateTimeAxis.js",[a["Core/Utilities.js"]],function(a){var y=a.addEvent,D=a.getMagnitude,G=a.normalizeTickInterval,x=a.timeUnits,H;(function(a){function r(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function q(a){"datetime"!==a.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new g(this))}var k=[];a.compose=function(a){-1===k.indexOf(a)&&(k.push(a),
|
|
|
+a.keepProps.push("dateTime"),a.prototype.getTimeTicks=r,y(a,"init",q));return a};var g=function(){function a(b){this.axis=b}a.prototype.normalizeTimeTickInterval=function(b,a){var d=a||[["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]];a=d[d.length-1];var g=x[a[0]],l=a[1],k;for(k=0;k<d.length&&!(a=d[k],g=x[a[0]],l=a[1],d[k+1]&&b<=(g*l[l.length-1]+x[d[k+
|
|
|
+1][0]])/2);k++);g===x.year&&b<5*g&&(l=[1,2,5]);b=G(b/g,l,"year"===a[0]?Math.max(D(b/g),1):1);return{unitRange:g,count:b,unitName:a[0]}};a.prototype.getXDateFormat=function(b,a){var d=this.axis;return d.closestPointRange?d.chart.time.getDateFormat(d.closestPointRange,b,d.options.startOfWeek,a)||a.year:a.day};return a}();a.Additions=g})(H||(H={}));return H});P(a,"Core/Axis/LogarithmicAxis.js",[a["Core/Utilities.js"]],function(a){var y=a.addEvent,D=a.normalizeTickInterval,G=a.pick,x;(function(a){function r(a){var d=
|
|
|
+this.logarithmic;"logarithmic"!==a.userOptions.type?this.logarithmic=void 0:d||(this.logarithmic=new k(this))}function x(){var a=this.logarithmic;a&&(this.lin2val=function(d){return a.lin2log(d)},this.val2lin=function(d){return a.log2lin(d)})}var q=[];a.compose=function(a){-1===q.indexOf(a)&&(q.push(a),a.keepProps.push("logarithmic"),y(a,"init",r),y(a,"afterInit",x));return a};var k=function(){function a(a){this.axis=a}a.prototype.getLogTickPositions=function(a,b,g,k){var d=this.axis,l=d.len,m=d.options,
|
|
|
+q=[];k||(this.minorAutoInterval=void 0);if(.5<=a)a=Math.round(a),q=d.getLinearTickPositions(a,b,g);else if(.08<=a){var M=Math.floor(b),z,w=m=void 0;for(l=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];M<g+1&&!w;M++){var p=l.length;for(z=0;z<p&&!w;z++){var f=this.log2lin(this.lin2log(M)*l[z]);f>b&&(!k||m<=g)&&"undefined"!==typeof m&&q.push(m);m>g&&(w=!0);m=f}}}else b=this.lin2log(b),g=this.lin2log(g),a=k?d.getMinorTickInterval():m.tickInterval,a=G("auto"===a?null:a,this.minorAutoInterval,m.tickPixelInterval/
|
|
|
+(k?5:1)*(g-b)/((k?l/d.tickPositions.length:l)||1)),a=D(a),q=d.getLinearTickPositions(a,b,g).map(this.log2lin),k||(this.minorAutoInterval=a/5);k||(d.tickInterval=a);return q};a.prototype.lin2log=function(a){return Math.pow(10,a)};a.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return a}();a.Additions=k})(x||(x={}));return x});P(a,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[a["Core/Utilities.js"]],function(a){var y=a.erase,D=a.extend,G=a.isNumber,x;(function(a){var r=[],x;a.compose=
|
|
|
+function(a,g){x||(x=a);-1===r.indexOf(g)&&(r.push(g),D(g.prototype,q.prototype));return g};var q=function(){function a(){}a.prototype.getPlotBandPath=function(a,d,b){void 0===b&&(b=this.options);var g=this.getPlotLinePath({value:d,force:!0,acrossPanes:b.acrossPanes}),m=[],k=this.horiz;d=!G(this.min)||!G(this.max)||a<this.min&&d<this.min||a>this.max&&d>this.max;a=this.getPlotLinePath({value:a,force:!0,acrossPanes:b.acrossPanes});b=1;if(a&&g){if(d){var q=a.toString()===g.toString();b=0}for(d=0;d<a.length;d+=
|
|
|
+2){var B=a[d],J=a[d+1],M=g[d],z=g[d+1];"M"!==B[0]&&"L"!==B[0]||"M"!==J[0]&&"L"!==J[0]||"M"!==M[0]&&"L"!==M[0]||"M"!==z[0]&&"L"!==z[0]||(k&&M[1]===B[1]?(M[1]+=b,z[1]+=b):k||M[2]!==B[2]||(M[2]+=b,z[2]+=b),m.push(["M",B[1],B[2]],["L",J[1],J[2]],["L",z[1],z[2]],["L",M[1],M[2]],["Z"]));m.isFlat=q}}return m};a.prototype.addPlotBand=function(a){return this.addPlotBandOrLine(a,"plotBands")};a.prototype.addPlotLine=function(a){return this.addPlotBandOrLine(a,"plotLines")};a.prototype.addPlotBandOrLine=function(a,
|
|
|
+d){var b=this,g=this.userOptions,k=new x(this,a);this.visible&&(k=k.render());if(k){this._addedPlotLB||(this._addedPlotLB=!0,(g.plotLines||[]).concat(g.plotBands||[]).forEach(function(a){b.addPlotBandOrLine(a)}));if(d){var q=g[d]||[];q.push(a);g[d]=q}this.plotLinesAndBands.push(k)}return k};a.prototype.removePlotBandOrLine=function(a){var d=this.plotLinesAndBands,b=this.options,g=this.userOptions;if(d){for(var k=d.length;k--;)d[k].id===a&&d[k].destroy();[b.plotLines||[],g.plotLines||[],b.plotBands||
|
|
|
+[],g.plotBands||[]].forEach(function(b){for(k=b.length;k--;)(b[k]||{}).id===a&&y(b,b[k])})}};a.prototype.removePlotBand=function(a){this.removePlotBandOrLine(a)};a.prototype.removePlotLine=function(a){this.removePlotBandOrLine(a)};return a}()})(x||(x={}));return x});P(a,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[a["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],a["Core/Utilities.js"]],function(a,r){var y=r.arrayMax,G=r.arrayMin,x=r.defined,H=r.destroyObjectProperties,I=r.erase,E=r.fireEvent,
|
|
|
+q=r.merge,k=r.objectEach,g=r.pick;r=function(){function d(a,d){this.axis=a;d&&(this.options=d,this.id=d.id)}d.compose=function(b){return a.compose(d,b)};d.prototype.render=function(){E(this,"render");var a=this,d=a.axis,m=d.horiz,A=d.logarithmic,L=a.options,B=L.color,J=g(L.zIndex,0),M=L.events,z={},w=d.chart.renderer,p=L.label,f=a.label,v=L.to,h=L.from,t=L.value,e=a.svgElem,c=[],F=x(h)&&x(v);c=x(t);var C=!e,n={"class":"highcharts-plot-"+(F?"band ":"line ")+(L.className||"")},u=F?"bands":"lines";A&&
|
|
|
+(h=A.log2lin(h),v=A.log2lin(v),t=A.log2lin(t));d.chart.styledMode||(c?(n.stroke=B||"#999999",n["stroke-width"]=g(L.width,1),L.dashStyle&&(n.dashstyle=L.dashStyle)):F&&(n.fill=B||"#e6ebf5",L.borderWidth&&(n.stroke=L.borderColor,n["stroke-width"]=L.borderWidth)));z.zIndex=J;u+="-"+J;(A=d.plotLinesAndBandsGroups[u])||(d.plotLinesAndBandsGroups[u]=A=w.g("plot-"+u).attr(z).add());C&&(a.svgElem=e=w.path().attr(n).add(A));if(c)c=d.getPlotLinePath({value:t,lineWidth:e.strokeWidth(),acrossPanes:L.acrossPanes});
|
|
|
+else if(F)c=d.getPlotBandPath(h,v,L);else return;!a.eventsAdded&&M&&(k(M,function(c,f){e.on(f,function(c){M[f].apply(a,[c])})}),a.eventsAdded=!0);(C||!e.d)&&c&&c.length?e.attr({d:c}):e&&(c?(e.show(),e.animate({d:c})):e.d&&(e.hide(),f&&(a.label=f=f.destroy())));p&&(x(p.text)||x(p.formatter))&&c&&c.length&&0<d.width&&0<d.height&&!c.isFlat?(p=q({align:m&&F&&"center",x:m?!F&&4:10,verticalAlign:!m&&F&&"middle",y:m?F?16:10:F?6:-4,rotation:m&&!F&&90},p),this.renderLabel(p,c,F,J)):f&&f.hide();return a};d.prototype.renderLabel=
|
|
|
+function(a,d,g,k){var b=this.axis,l=b.chart.renderer,m=this.label;m||(this.label=m=l.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(g?"band":"line")+"-label "+(a.className||""),zIndex:k}).add(),b.chart.styledMode||m.css(q({textOverflow:"ellipsis"},a.style)));k=d.xBounds||[d[0][1],d[1][1],g?d[2][1]:d[0][1]];d=d.yBounds||[d[0][2],d[1][2],g?d[2][2]:d[0][2]];g=G(k);l=G(d);m.align(a,!1,{x:g,y:l,width:y(k)-g,height:y(d)-l});m.alignValue&&
|
|
|
+"left"!==m.alignValue||m.css({width:(90===m.rotation?b.height-(m.alignAttr.y-b.top):b.width-(m.alignAttr.x-b.left))+"px"});m.show(!0)};d.prototype.getLabelText=function(a){return x(a.formatter)?a.formatter.call(this):a.text};d.prototype.destroy=function(){I(this.axis.plotLinesAndBands,this);delete this.axis;H(this)};return d}();"";"";return r});P(a,"Core/Tooltip.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],
|
|
|
+function(a,r,D,G,x){var y=a.format,I=r.doc,E=D.distribute,q=x.addEvent,k=x.clamp,g=x.css,d=x.defined,b=x.discardElement,l=x.extend,m=x.fireEvent,A=x.isArray,L=x.isNumber,B=x.isString,J=x.merge,M=x.pick,z=x.splat,w=x.syncTimeout;a=function(){function a(f,a){this.allowShared=!0;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=f;this.init(f,a)}a.prototype.applyFilter=function(){var f=this.chart;f.renderer.definition({tagName:"filter",
|
|
|
+attributes:{id:"drop-shadow-"+f.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};a.prototype.bodyFormatter=function(f){return f.map(function(f){var a=f.series.tooltipOptions;return(a[(f.point.formatPrefix||
|
|
|
+"point")+"Formatter"]||f.point.tooltipFormatter).call(f.point,a[(f.point.formatPrefix||"point")+"Format"]||"")})};a.prototype.cleanSplit=function(f){this.chart.series.forEach(function(a){var b=a&&a.tt;b&&(!b.isActive||f?a.tt=b.destroy():b.isActive=!1)})};a.prototype.defaultFormatter=function(f){var a=this.points||z(this);var b=[f.tooltipFooterHeaderFormatter(a[0])];b=b.concat(f.bodyFormatter(a));b.push(f.tooltipFooterHeaderFormatter(a[0],!0));return b};a.prototype.destroy=function(){this.label&&(this.label=
|
|
|
+this.label.destroy());this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),b(this.container));x.clearTimeout(this.hideTimer);x.clearTimeout(this.tooltipTimeout)};a.prototype.getAnchor=function(f,a){var b=this.chart,d=b.pointer,e=b.inverted,c=b.plotTop,g=b.plotLeft,p,n,u=0,v=0;f=z(f);this.followPointer&&a?("undefined"===typeof a.chartX&&(a=d.normalize(a)),d=[a.chartX-g,a.chartY-c]):f[0].tooltipPos?d=f[0].tooltipPos:(f.forEach(function(f){p=
|
|
|
+f.series.yAxis;n=f.series.xAxis;u+=f.plotX||0;v+=f.plotLow?(f.plotLow+(f.plotHigh||0))/2:f.plotY||0;n&&p&&(e?(u+=c+b.plotHeight-n.len-n.pos,v+=g+b.plotWidth-p.len-p.pos):(u+=n.pos-g,v+=p.pos-c))}),u/=f.length,v/=f.length,d=[e?b.plotWidth-v:u,e?b.plotHeight-u:v],this.shared&&1<f.length&&a&&(e?d[0]=a.chartX-g:d[1]=a.chartY-c));return d.map(Math.round)};a.prototype.getLabel=function(){var f=this,a=this.chart.styledMode,b=this.options,t=this.split&&this.allowShared,e="tooltip"+(d(b.className)?" "+b.className:
|
|
|
+""),c=b.style.pointerEvents||(!this.followPointer&&b.stickOnContact?"auto":"none"),p=function(){f.inContact=!0},C=function(c){var e=f.chart.hoverSeries;f.inContact=f.shouldStickOnContact()&&f.chart.pointer.inClass(c.relatedTarget,"highcharts-tooltip");if(!f.inContact&&e&&e.onMouseOut)e.onMouseOut()},n,u=this.chart.renderer;if(f.label){var w=!f.label.hasClass("highcharts-label");(t&&!w||!t&&w)&&f.destroy()}if(!this.label){if(this.outside){w=this.chart.options.chart.style;var l=G.getRendererType();
|
|
|
+this.container=n=r.doc.createElement("div");n.className="highcharts-tooltip-container";g(n,{position:"absolute",top:"1px",pointerEvents:c,zIndex:Math.max(this.options.style.zIndex||0,(w&&w.zIndex||0)+3)});q(n,"mouseenter",p);q(n,"mouseleave",C);r.doc.body.appendChild(n);this.renderer=u=new l(n,0,0,w,void 0,void 0,u.styledMode)}t?this.label=u.g(e):(this.label=u.label("",0,0,b.shape,void 0,void 0,b.useHTML,void 0,e).attr({padding:b.padding,r:b.borderRadius}),a||this.label.attr({fill:b.backgroundColor,
|
|
|
+"stroke-width":b.borderWidth}).css(b.style).css({pointerEvents:c}).shadow(b.shadow));a&&b.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(f.outside&&!f.split){var k=this.label,m=k.xSetter,z=k.ySetter;k.xSetter=function(c){m.call(k,f.distance);n.style.left=c+"px"};k.ySetter=function(c){z.call(k,f.distance);n.style.top=c+"px"}}this.label.on("mouseenter",p).on("mouseleave",C).attr({zIndex:8}).add()}return this.label};a.prototype.getPosition=function(f,
|
|
|
+a,b){var h=this.chart,e=this.distance,c={},d=h.inverted&&b.h||0,g=this.outside,n=g?I.documentElement.clientWidth-2*e:h.chartWidth,u=g?Math.max(I.body.scrollHeight,I.documentElement.scrollHeight,I.body.offsetHeight,I.documentElement.offsetHeight,I.documentElement.clientHeight):h.chartHeight,p=h.pointer.getChartPosition(),v=function(c){var d="x"===c;return[c,d?n:u,d?f:a].concat(g?[d?f*p.scaleX:a*p.scaleY,d?p.left-e+(b.plotX+h.plotLeft)*p.scaleX:p.top-e+(b.plotY+h.plotTop)*p.scaleY,0,d?n:u]:[d?f:a,d?
|
|
|
+b.plotX+h.plotLeft:b.plotY+h.plotTop,d?h.plotLeft:h.plotTop,d?h.plotLeft+h.plotWidth:h.plotTop+h.plotHeight])},w=v("y"),l=v("x"),k;v=!!b.negative;!h.polar&&h.hoverSeries&&h.hoverSeries.yAxis&&h.hoverSeries.yAxis.reversed&&(v=!v);var m=!this.followPointer&&M(b.ttBelow,!h.inverted===v),z=function(f,a,b,h,n,t,u){var C=g?"y"===f?e*p.scaleY:e*p.scaleX:e,F=(b-h)/2,v=h<n-e,w=n+e+h<a,l=n-C-b+F;n=n+C-F;if(m&&w)c[f]=n;else if(!m&&v)c[f]=l;else if(v)c[f]=Math.min(u-h,0>l-d?l:l-d);else if(w)c[f]=Math.max(t,n+
|
|
|
+d+b>a?n:n+d);else return!1},q=function(f,a,b,h,n){var d;n<e||n>a-e?d=!1:c[f]=n<b/2?1:n>a-h/2?a-h-2:n-b/2;return d},Q=function(c){var e=w;w=l;l=e;k=c},A=function(){!1!==z.apply(0,w)?!1!==q.apply(0,l)||k||(Q(!0),A()):k?c.x=c.y=0:(Q(!0),A())};(h.inverted||1<this.len)&&Q();A();return c};a.prototype.hide=function(f){var a=this;x.clearTimeout(this.hideTimer);f=M(f,this.options.hideDelay);this.isHidden||(this.hideTimer=w(function(){a.getLabel().fadeOut(f?void 0:f);a.isHidden=!0},f))};a.prototype.init=function(f,
|
|
|
+a){this.chart=f;this.options=a;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=a.split&&!f.inverted&&!f.polar;this.shared=a.shared||this.split;this.outside=M(a.outside,!(!f.scrollablePixelsX&&!f.scrollablePixelsY))};a.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)};a.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)};a.prototype.move=function(f,a,b,d){var e=this,c=e.now,h=!1!==e.options.animation&&
|
|
|
+!e.isHidden&&(1<Math.abs(f-c.x)||1<Math.abs(a-c.y)),t=e.followPointer||1<e.len;l(c,{x:h?(2*c.x+f)/3:f,y:h?(c.y+a)/2:a,anchorX:t?void 0:h?(2*c.anchorX+b)/3:b,anchorY:t?void 0:h?(c.anchorY+d)/2:d});e.getLabel().attr(c);e.drawTracker();h&&(x.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(f,a,b,d)},32))};a.prototype.refresh=function(f,a){var b=this.chart,d=this.options,e=z(f),c=e[0],g=[],p=d.formatter||this.defaultFormatter,n=this.shared,u=b.styledMode,v={};if(d.enabled&&
|
|
|
+c.series){x.clearTimeout(this.hideTimer);this.allowShared=!(!A(f)&&f.series&&f.series.noSharedTooltip);this.followPointer=!this.split&&c.series.tooltipOptions.followPointer;f=this.getAnchor(f,a);var w=f[0],l=f[1];n&&this.allowShared?(b.pointer.applyInactiveState(e),e.forEach(function(c){c.setState("hover");g.push(c.getLabelConfig())}),v={x:c.category,y:c.y},v.points=g):v=c.getLabelConfig();this.len=g.length;p=p.call(v,this);n=c.series;this.distance=M(n.tooltipOptions.distance,16);if(!1===p)this.hide();
|
|
|
+else{if(this.split&&this.allowShared)this.renderSplit(p,e);else{var k=w,q=l;a&&b.pointer.isDirectTouch&&(k=a.chartX-b.plotLeft,q=a.chartY-b.plotTop);if(b.polar||!1===n.options.clip||e.some(function(c){return c.series.shouldShowTooltip(k,q)}))a=this.getLabel(),d.style.width&&!u||a.css({width:this.chart.spacingBox.width+"px"}),a.attr({text:p&&p.join?p.join(""):p}),a.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+M(c.colorIndex,n.colorIndex)),u||a.attr({stroke:d.borderColor||c.color||
|
|
|
+n.color||"#666666"}),this.updatePosition({plotX:w,plotY:l,negative:c.negative,ttBelow:c.ttBelow,h:f[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}m(this,"refresh")}};a.prototype.renderSplit=function(f,a){function b(c,e,a,f,b){void 0===b&&(b=!0);a?(e=x?0:fa,c=k(c-f/2,S.left,S.right-f-(d.outside?D:0))):(e-=H,c=b?c-f-J:c+J,c=k(c,b?c:S.left,S.right));return{x:c,y:e}}var d=this,e=d.chart,c=d.chart,g=c.chartWidth,p=c.chartHeight,n=c.plotHeight,
|
|
|
+u=c.plotLeft,v=c.plotTop,w=c.pointer,m=c.scrollablePixelsY;m=void 0===m?0:m;var z=c.scrollablePixelsX,q=c.scrollingContainer;q=void 0===q?{scrollLeft:0,scrollTop:0}:q;var A=q.scrollLeft;q=q.scrollTop;var L=c.styledMode,J=d.distance,Q=d.options,X=d.options.positioner,S=d.outside&&"number"!==typeof z?I.documentElement.getBoundingClientRect():{left:A,right:A+g,top:q,bottom:q+p},y=d.getLabel(),r=this.renderer||e.renderer,x=!(!e.xAxis[0]||!e.xAxis[0].opposite);e=w.getChartPosition();var D=e.left;e=e.top;
|
|
|
+var H=v+q,G=0,fa=n-m;B(f)&&(f=[!1,f]);f=f.slice(0,a.length+1).reduce(function(c,e,f){if(!1!==e&&""!==e){f=a[f-1]||{isHeader:!0,plotX:a[0].plotX,plotY:n,series:{}};var h=f.isHeader,t=h?d:f.series;e=e.toString();var g=t.tt,p=f.isHeader;var C=f.series;var F="highcharts-color-"+M(f.colorIndex,C.colorIndex,"none");g||(g={padding:Q.padding,r:Q.borderRadius},L||(g.fill=Q.backgroundColor,g["stroke-width"]=Q.borderWidth),g=r.label("",0,0,Q[p?"headerShape":"shape"],void 0,void 0,Q.useHTML).addClass((p?"highcharts-tooltip-header ":
|
|
|
+"")+"highcharts-tooltip-box "+F).attr(g).add(y));g.isActive=!0;g.attr({text:e});L||g.css(Q.style).shadow(Q.shadow).attr({stroke:Q.borderColor||f.color||C.color||"#333333"});t=t.tt=g;p=t.getBBox();e=p.width+t.strokeWidth();h&&(G=p.height,fa+=G,x&&(H-=G));C=f.plotX;C=void 0===C?0:C;F=f.plotY;F=void 0===F?0:F;g=f.series;if(f.isHeader){C=u+C;var w=v+n/2}else{var l=g.xAxis,m=g.yAxis;C=l.pos+k(C,-J,l.len+J);g.shouldShowTooltip(0,m.pos-v+F,{ignoreX:!0})&&(w=m.pos+F)}C=k(C,S.left-J,S.right+J);"number"===
|
|
|
+typeof w?(p=p.height+1,F=X?X.call(d,e,p,f):b(C,w,h,e),c.push({align:X?0:void 0,anchorX:C,anchorY:w,boxWidth:e,point:f,rank:M(F.rank,h?1:0),size:p,target:F.y,tt:t,x:F.x})):t.isActive=!1}return c},[]);!X&&f.some(function(c){var e=(d.outside?D:0)+c.anchorX;return e<S.left&&e+c.boxWidth<S.right?!0:e<D-S.left+c.boxWidth&&S.right-e>e})&&(f=f.map(function(c){var e=b(c.anchorX,c.anchorY,c.point.isHeader,c.boxWidth,!1);return l(c,{target:e.y,x:e.x})}));d.cleanSplit();E(f,fa);var P=D,Z=D;f.forEach(function(c){var e=
|
|
|
+c.x,f=c.boxWidth;c=c.isHeader;c||(d.outside&&D+e<P&&(P=D+e),!c&&d.outside&&P+f>Z&&(Z=D+e))});f.forEach(function(c){var e=c.x,f=c.anchorX,a=c.pos,b=c.point.isHeader;a={visibility:"undefined"===typeof a?"hidden":"inherit",x:e,y:a+H,anchorX:f,anchorY:c.anchorY};if(d.outside&&e<f){var h=D-P;0<h&&(b||(a.x=e+h,a.anchorX=f+h),b&&(a.x=(Z-P)/2,a.anchorX=f+h))}c.tt.attr(a)});f=d.container;m=d.renderer;d.outside&&f&&m&&(c=y.getBBox(),m.setSize(c.width+c.x,c.height+c.y,!1),f.style.left=P+"px",f.style.top=e+"px")};
|
|
|
+a.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var f=this.chart,a=this.label,b=this.shared?f.hoverPoints:f.hoverPoint;if(a&&b){var d={x:0,y:0,width:0,height:0};b=this.getAnchor(b);var e=a.getBBox();b[0]+=f.plotLeft-a.translateX;b[1]+=f.plotTop-a.translateY;d.x=Math.min(0,b[0]);d.y=Math.min(0,b[1]);d.width=0>b[0]?Math.max(Math.abs(b[0]),e.width-b[0]):Math.max(Math.abs(b[0]),e.width);d.height=0>b[1]?Math.max(Math.abs(b[1]),
|
|
|
+e.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),e.height);this.tracker?this.tracker.attr(d):(this.tracker=a.renderer.rect(d).addClass("highcharts-tracker").add(a),f.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};a.prototype.styledModeFormat=function(f){return f.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};a.prototype.tooltipFooterHeaderFormatter=function(f,a){var b=f.series,
|
|
|
+d=b.tooltipOptions,e=b.xAxis,c=e&&e.dateTime;e={isFooter:a,labelConfig:f};var g=d.xDateFormat,p=d[a?"footerFormat":"headerFormat"];m(this,"headerFormatter",e,function(e){c&&!g&&L(f.key)&&(g=c.getXDateFormat(f.key,d.dateTimeLabelFormats));c&&g&&(f.point&&f.point.tooltipDateKeys||["key"]).forEach(function(c){p=p.replace("{point."+c+"}","{point."+c+":"+g+"}")});b.chart.styledMode&&(p=this.styledModeFormat(p));e.text=y(p,{point:f,series:b},this.chart)});return e.text};a.prototype.update=function(f){this.destroy();
|
|
|
+J(!0,this.chart.options.tooltip.userOptions,f);this.init(this.chart,J(!0,this.options,f))};a.prototype.updatePosition=function(f){var a=this.chart,b=this.options,d=a.pointer,e=this.getLabel();d=d.getChartPosition();var c=(b.positioner||this.getPosition).call(this,e.width,e.height,f),p=f.plotX+a.plotLeft;f=f.plotY+a.plotTop;if(this.outside){b=b.borderWidth+2*this.distance;this.renderer.setSize(e.width+b,e.height+b,!1);if(1!==d.scaleX||1!==d.scaleY)g(this.container,{transform:"scale("+d.scaleX+", "+
|
|
|
+d.scaleY+")"}),p*=d.scaleX,f*=d.scaleY;p+=d.left-c.x;f+=d.top-c.y}this.move(Math.round(c.x),Math.round(c.y||0),p,f)};return a}();"";return a});P(a,"Core/Series/Point.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/DefaultOptions.js"],a["Core/FormatUtilities.js"],a["Core/Utilities.js"]],function(a,r,D,G,x){var y=r.animObject,I=D.defaultOptions,E=G.format,q=x.addEvent,k=x.defined,g=x.erase,d=x.extend,b=x.fireEvent,l=x.getNestedProperty,m=x.isArray,A=x.isFunction,
|
|
|
+L=x.isNumber,B=x.isObject,J=x.merge,M=x.objectEach,z=x.pick,w=x.syncTimeout,p=x.removeEvent,f=x.uniqueKey;r=function(){function v(){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}v.prototype.animateBeforeDestroy=function(){var a=this,f={x:a.startXPos,opacity:0},e=a.getGraphicalProps();e.singular.forEach(function(c){a[c]=a[c].animate("dataLabel"===
|
|
|
+c?{x:a[c].startXPos,y:a[c].startYPos,opacity:0}:f)});e.plural.forEach(function(c){a[c].forEach(function(c){c.element&&c.animate(d({x:a.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})};v.prototype.applyOptions=function(a,f){var e=this.series,c=e.options.pointValKey||e.pointValKey;a=v.prototype.optionsToObject.call(this,a);d(this,a);this.options=this.options?d(this.options,a):a;a.group&&delete this.group;a.dataLabels&&delete this.dataLabels;c&&(this.y=v.prototype.getNestedProperty.call(this,
|
|
|
+c));this.formatPrefix=(this.isNull=z(this.isValid&&!this.isValid(),null===this.x||!L(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof f&&e.xAxis&&e.xAxis.hasNames&&(this.x=e.xAxis.nameToX(this));"undefined"===typeof this.x&&e?this.x="undefined"===typeof f?e.autoIncrement():f:L(a.x)&&e.options.relativeXValue&&(this.x=e.autoIncrement(a.x));return this};v.prototype.destroy=function(){function a(){if(f.graphic||f.dataLabel||f.dataLabels)p(f),f.destroyElements();
|
|
|
+for(n in f)f[n]=null}var f=this,e=f.series,c=e.chart;e=e.options.dataSorting;var b=c.hoverPoints,d=y(f.series.chart.renderer.globalAnimation),n;f.legendItem&&c.legend.destroyItem(f);b&&(f.setState(),g(b,f),b.length||(c.hoverPoints=null));if(f===c.hoverPoint)f.onMouseOut();e&&e.enabled?(this.animateBeforeDestroy(),w(a,d.duration)):a();c.pointCount--};v.prototype.destroyElements=function(a){var f=this;a=f.getGraphicalProps(a);a.singular.forEach(function(e){f[e]=f[e].destroy()});a.plural.forEach(function(e){f[e].forEach(function(c){c.element&&
|
|
|
+c.destroy()});delete f[e]})};v.prototype.firePointEvent=function(a,f,e){var c=this,h=this.series.options;(h.point.events[a]||c.options&&c.options.events&&c.options.events[a])&&c.importEvents();"click"===a&&h.allowPointSelect&&(e=function(e){c.select&&c.select(null,e.ctrlKey||e.metaKey||e.shiftKey)});b(c,a,f,e)};v.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",""):"")};v.prototype.getGraphicalProps=function(a){var f=this,e=[],c={singular:[],plural:[]},b;a=a||{graphic:1,dataLabel:1};a.graphic&&e.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&e.push("dataLabel","dataLabelUpper","connector");for(b=e.length;b--;){var h=e[b];f[h]&&
|
|
|
+c.singular.push(h)}["dataLabel","connector"].forEach(function(e){var b=e+"s";a[e]&&f[b]&&c.plural.push(b)});return c};v.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}};v.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?l(a,this.options):this[a]};v.prototype.getZone=function(){var a=this.series,
|
|
|
+f=a.zones;a=a.zoneAxis||"y";var e,c=0;for(e=f[c];this[a]>=e.value;)e=f[++c];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=e&&e.color&&!this.options.color?e.color:this.nonZonedColor;return e};v.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};v.prototype.init=function(a,d,e){this.series=a;this.applyOptions(d,e);this.id=k(this.id)?this.id:f();this.resolveColor();a.chart.pointCount++;b(this,"afterInit");
|
|
|
+return this};v.prototype.optionsToObject=function(a){var f=this.series,e=f.options.keys,c=e||f.pointArrayMap||["y"],b=c.length,h={},d=0,u=0;if(L(a)||null===a)h[c[0]]=a;else if(m(a))for(!e&&a.length>b&&(f=typeof a[0],"string"===f?h.name=a[0]:"number"===f&&(h.x=a[0]),d++);u<b;)e&&"undefined"===typeof a[d]||(0<c[u].indexOf(".")?v.prototype.setNestedProperty(h,a[d],c[u]):h[c[u]]=a[d]),d++,u++;else"object"===typeof a&&(h=a,a.dataLabels&&(f._hasPointLabels=!0),a.marker&&(f._hasPointMarkers=!0));return h};
|
|
|
+v.prototype.resolveColor=function(){var a=this.series,f=a.chart.styledMode;var e=a.chart.options.chart.colorCount;delete this.nonZonedColor;if(a.options.colorByPoint){if(!f){e=a.options.colors||a.chart.options.colors;var c=e[a.colorCounter];e=e.length}f=a.colorCounter;a.colorCounter++;a.colorCounter===e&&(a.colorCounter=0)}else f||(c=a.color),f=a.colorIndex;this.colorIndex=z(this.options.colorIndex,f);this.color=z(this.options.color,c)};v.prototype.setNestedProperty=function(a,f,e){e.split(".").reduce(function(c,
|
|
|
+e,a,b){c[e]=b.length-1===a?f:B(c[e],!0)?c[e]:{};return c[e]},a);return a};v.prototype.tooltipFormatter=function(a){var f=this.series,e=f.tooltipOptions,c=z(e.valueDecimals,""),b=e.valuePrefix||"",d=e.valueSuffix||"";f.chart.styledMode&&(a=f.chart.tooltip.styledModeFormat(a));(f.pointArrayMap||["y"]).forEach(function(e){e="{point."+e;if(b||d)a=a.replace(RegExp(e+"}","g"),b+e+"}"+d);a=a.replace(RegExp(e+"}","g"),e+":,."+c+"f}")});return E(a,{point:this,series:this.series},f.chart)};v.prototype.update=
|
|
|
+function(a,f,e,c){function b(){d.applyOptions(a);var c=u&&d.hasDummyGraphic;c=null===d.y?!c:c;u&&c&&(d.graphic=u.destroy(),delete d.hasDummyGraphic);B(a,!0)&&(u&&u.element&&a&&a.marker&&"undefined"!==typeof a.marker.symbol&&(d.graphic=u.destroy()),a&&a.dataLabels&&d.dataLabel&&(d.dataLabel=d.dataLabel.destroy()),d.connector&&(d.connector=d.connector.destroy()));t=d.index;h.updateParallelArrays(d,t);p.data[t]=B(p.data[t],!0)||B(a,!0)?d.options:z(a,p.data[t]);h.isDirty=h.isDirtyData=!0;!h.fixedBox&&
|
|
|
+h.hasCartesianSeries&&(g.isDirtyBox=!0);"point"===p.legendType&&(g.isDirtyLegend=!0);f&&g.redraw(e)}var d=this,h=d.series,u=d.graphic,g=h.chart,p=h.options,t;f=z(f,!0);!1===c?b():d.firePointEvent("update",{options:a},b)};v.prototype.remove=function(a,f){this.series.removePoint(this.series.data.indexOf(this),a,f)};v.prototype.select=function(a,f){var e=this,c=e.series,b=c.chart;this.selectedStaging=a=z(a,!e.selected);e.firePointEvent(a?"select":"unselect",{accumulate:f},function(){e.selected=e.options.selected=
|
|
|
+a;c.options.data[c.data.indexOf(e)]=e.options;e.setState(a&&"select");f||b.getSelectedPoints().forEach(function(c){var a=c.series;c.selected&&c!==e&&(c.selected=c.options.selected=!1,a.options.data[a.data.indexOf(c)]=c.options,c.setState(b.hoverPoints&&a.options.inactiveOtherPoints?"inactive":""),c.firePointEvent("unselect"))})});delete this.selectedStaging};v.prototype.onMouseOver=function(a){var f=this.series.chart,e=f.pointer;a=a?e.normalize(a):e.getChartCoordinatesFromPoint(this,f.inverted);e.runPointActions(a,
|
|
|
+this)};v.prototype.onMouseOut=function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(a){a.setState()});a.hoverPoints=a.hoverPoint=null};v.prototype.importEvents=function(){if(!this.hasImportedEvents){var a=this,f=J(a.series.options.point,a.options).events;a.events=f;M(f,function(e,c){A(e)&&q(a,c,e)});this.hasImportedEvents=!0}};v.prototype.setState=function(f,g){var e=this.series,c=this.state,h=e.options.states[f||
|
|
|
+"normal"]||{},p=I.plotOptions[e.type].marker&&e.options.marker,n=p&&!1===p.enabled,u=p&&p.states&&p.states[f||"normal"]||{},t=!1===u.enabled,v=this.marker||{},w=e.chart,l=p&&e.markerAttribs,k=e.halo,m,q=e.stateMarkerGraphic;f=f||"";if(!(f===this.state&&!g||this.selected&&"select"!==f||!1===h.enabled||f&&(t||n&&!1===u.enabled)||f&&v.states&&v.states[f]&&!1===v.states[f].enabled)){this.state=f;l&&(m=e.markerAttribs(this,f));if(this.graphic&&!this.hasDummyGraphic){c&&this.graphic.removeClass("highcharts-point-"+
|
|
|
+c);f&&this.graphic.addClass("highcharts-point-"+f);if(!w.styledMode){var A=e.pointAttribs(this,f);var Q=z(w.options.chart.animation,h.animation);e.options.inactiveOtherPoints&&L(A.opacity)&&((this.dataLabels||[]).forEach(function(c){c&&c.animate({opacity:A.opacity},Q)}),this.connector&&this.connector.animate({opacity:A.opacity},Q));this.graphic.animate(A,Q)}m&&this.graphic.animate(m,z(w.options.chart.animation,u.animation,p.animation));q&&q.hide()}else{if(f&&u){c=v.symbol||e.symbol;q&&q.currentSymbol!==
|
|
|
+c&&(q=q.destroy());if(m)if(q)q[g?"animate":"attr"]({x:m.x,y:m.y});else c&&(e.stateMarkerGraphic=q=w.renderer.symbol(c,m.x,m.y,m.width,m.height).add(e.markerGroup),q.currentSymbol=c);!w.styledMode&&q&&"inactive"!==this.state&&q.attr(e.pointAttribs(this,f))}q&&(q[f&&this.isInside?"show":"hide"](),q.element.point=this,q.addClass(this.getClassName(),!0))}h=h.halo;m=(q=this.graphic||q)&&q.visibility||"inherit";h&&h.size&&q&&"hidden"!==m&&!this.isCluster?(k||(e.halo=k=w.renderer.path().add(q.parentGroup)),
|
|
|
+k.show()[g?"animate":"attr"]({d:this.haloPath(h.size)}),k.attr({"class":"highcharts-halo highcharts-color-"+z(this.colorIndex,e.colorIndex)+(this.className?" "+this.className:""),visibility:m,zIndex:-1}),k.point=this,w.styledMode||k.attr(d({fill:this.color||e.color,"fill-opacity":h.opacity},a.filterUserAttributes(h.attributes||{})))):k&&k.point&&k.point.haloPath&&k.animate({d:k.point.haloPath(0)},null,k.hide);b(this,"afterSetState",{state:f})}};v.prototype.haloPath=function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-
|
|
|
+a,this.plotY-a,2*a,2*a)};return v}();"";return r});P(a,"Core/Pointer.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Tooltip.js"],a["Core/Utilities.js"]],function(a,r,D,G){var y=a.parse,H=r.charts,I=r.noop,E=G.addEvent,q=G.attr,k=G.css,g=G.defined,d=G.extend,b=G.find,l=G.fireEvent,m=G.isNumber,A=G.isObject,L=G.objectEach,B=G.offset,J=G.pick,M=G.splat;a=function(){function a(a,b){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=
|
|
|
+!1;this.options=b;this.init(a,b)}a.prototype.applyInactiveState=function(a){var b=[],f;(a||[]).forEach(function(a){f=a.series;b.push(f);f.linkedParent&&b.push(f.linkedParent);f.linkedSeries&&(b=b.concat(f.linkedSeries));f.navigatorSeries&&b.push(f.navigatorSeries)});this.chart.series.forEach(function(a){-1===b.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};a.prototype.destroy=function(){var b=this;this.eventsToUnbind.forEach(function(a){return a()});
|
|
|
+this.eventsToUnbind=[];r.chartCount||(a.unbindDocumentMouseUp&&(a.unbindDocumentMouseUp=a.unbindDocumentMouseUp()),a.unbindDocumentTouchEnd&&(a.unbindDocumentTouchEnd=a.unbindDocumentTouchEnd()));clearInterval(b.tooltipTimeout);L(b,function(a,f){b[f]=void 0})};a.prototype.drag=function(a){var b=this.chart,f=b.options.chart,d=this.zoomHor,h=this.zoomVert,g=b.plotLeft,e=b.plotTop,c=b.plotWidth,w=b.plotHeight,C=this.mouseDownX||0,n=this.mouseDownY||0,u=A(f.panning)?f.panning&&f.panning.enabled:f.panning,
|
|
|
+l=f.panKey&&a[f.panKey+"Key"],k=a.chartX,m=a.chartY,q=this.selectionMarker;if(!q||!q.touch)if(k<g?k=g:k>g+c&&(k=g+c),m<e?m=e:m>e+w&&(m=e+w),this.hasDragged=Math.sqrt(Math.pow(C-k,2)+Math.pow(n-m,2)),10<this.hasDragged){var z=b.isInsidePlot(C-g,n-e,{visiblePlotOnly:!0});!b.hasCartesianSeries&&!b.mapView||!this.zoomX&&!this.zoomY||!z||l||q||(this.selectionMarker=q=b.renderer.rect(g,e,d?1:c,h?1:w,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),b.styledMode||q.attr({fill:f.selectionMarkerFill||
|
|
|
+y("#335cad").setOpacity(.25).get()}));q&&d&&(d=k-C,q.attr({width:Math.abs(d),x:(0<d?0:d)+C}));q&&h&&(d=m-n,q.attr({height:Math.abs(d),y:(0<d?0:d)+n}));z&&!q&&u&&b.pan(a,f.panning)}};a.prototype.dragStart=function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY};a.prototype.drop=function(a){var b=this,f=this.chart,w=this.hasPinched;if(this.selectionMarker){var h=this.selectionMarker,t=h.attr?h.attr("x"):h.x,e=h.attr?
|
|
|
+h.attr("y"):h.y,c=h.attr?h.attr("width"):h.width,F=h.attr?h.attr("height"):h.height,C={originalEvent:a,xAxis:[],yAxis:[],x:t,y:e,width:c,height:F},n=!!f.mapView;if(this.hasDragged||w)f.axes.forEach(function(f){if(f.zoomEnabled&&g(f.min)&&(w||b[{xAxis:"zoomX",yAxis:"zoomY"}[f.coll]])&&m(t)&&m(e)){var d=f.horiz,h="touchend"===a.type?f.minPixelPadding:0,u=f.toValue((d?t:e)+h);d=f.toValue((d?t+c:e+F)-h);C[f.coll].push({axis:f,min:Math.min(u,d),max:Math.max(u,d)});n=!0}}),n&&l(f,"selection",C,function(c){f.zoom(d(c,
|
|
|
+w?{animation:!1}:null))});m(f.index)&&(this.selectionMarker=this.selectionMarker.destroy());w&&this.scaleGroups()}f&&m(f.index)&&(k(f.container,{cursor:f._cursor}),f.cancelClick=10<this.hasDragged,f.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};a.prototype.findNearestKDPoint=function(a,b,f){var d=this.chart,h=d.hoverPoint;d=d.tooltip;if(h&&d&&d.isStickyOnContact())return h;var g;a.forEach(function(e){var c=!(e.noSharedTooltip&&b)&&0>e.options.findNearestPointBy.indexOf("y");e=
|
|
|
+e.searchPoint(f,c);if((c=A(e,!0)&&e.series)&&!(c=!A(g,!0))){c=g.distX-e.distX;var a=g.dist-e.dist,d=(e.series.group&&e.series.group.zIndex)-(g.series.group&&g.series.group.zIndex);c=0<(0!==c&&b?c:0!==a?a:0!==d?d:g.series.index>e.series.index?-1:1)}c&&(g=e)});return g};a.prototype.getChartCoordinatesFromPoint=function(a,b){var f=a.series,d=f.xAxis;f=f.yAxis;var h=a.shapeArgs;if(d&&f){var g=J(a.clientX,a.plotX),e=a.plotY||0;a.isNode&&h&&m(h.x)&&m(h.y)&&(g=h.x,e=h.y);return b?{chartX:f.len+f.pos-e,chartY:d.len+
|
|
|
+d.pos-g}:{chartX:g+d.pos,chartY:e+f.pos}}if(h&&h.x&&h.y)return{chartX:h.x,chartY:h.y}};a.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,b=B(a);this.chartPosition={left:b.left,top:b.top,scaleX:1,scaleY:1};var f=a.offsetWidth;a=a.offsetHeight;2<f&&2<a&&(this.chartPosition.scaleX=b.width/f,this.chartPosition.scaleY=b.height/a);return this.chartPosition};a.prototype.getCoordinates=function(a){var b={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(f){b[f.isXAxis?
|
|
|
+"xAxis":"yAxis"].push({axis:f,value:f.toValue(a[f.horiz?"chartX":"chartY"])})});return b};a.prototype.getHoverData=function(a,d,f,g,h,t){var e=[];g=!(!g||!a);var c={chartX:t?t.chartX:void 0,chartY:t?t.chartY:void 0,shared:h};l(this,"beforeGetHoverData",c);var p=d&&!d.stickyTracking?[d]:f.filter(function(e){return c.filter?c.filter(e):e.visible&&!(!h&&e.directTouch)&&J(e.options.enableMouseTracking,!0)&&e.stickyTracking});var C=g||!t?a:this.findNearestKDPoint(p,h,t);d=C&&C.series;C&&(h&&!d.noSharedTooltip?
|
|
|
+(p=f.filter(function(e){return c.filter?c.filter(e):e.visible&&!(!h&&e.directTouch)&&J(e.options.enableMouseTracking,!0)&&!e.noSharedTooltip}),p.forEach(function(c){var a=b(c.points,function(c){return c.x===C.x&&!c.isNull});A(a)&&(c.chart.isBoosting&&(a=c.getPoint(a)),e.push(a))})):e.push(C));c={hoverPoint:C};l(this,"afterGetHoverData",c);return{hoverPoint:c.hoverPoint,hoverSeries:d,hoverPoints:e}};a.prototype.getPointFromEvent=function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b};
|
|
|
+a.prototype.onTrackerMouseOut=function(a){a=a.relatedTarget||a.toElement;var b=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!b||!a||b.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+b.index)&&this.inClass(a,"highcharts-tracker")))b.onMouseOut()};a.prototype.inClass=function(a,b){for(var f;a;){if(f=q(a,"class")){if(-1!==f.indexOf(b))return!0;if(-1!==f.indexOf("highcharts-container"))return!1}a=a.parentElement}};a.prototype.init=function(a,b){this.options=
|
|
|
+b;this.chart=a;this.runChartClick=!(!b.chart.events||!b.chart.events.click);this.pinchDown=[];this.lastValidTouch={};D&&(a.tooltip=new D(a,b.tooltip),this.followTouchMove=J(b.tooltip.followTouchMove,!0));this.setDOMEvents()};a.prototype.normalize=function(a,b){var f=a.touches,g=f?f.length?f.item(0):J(f.changedTouches,a.changedTouches)[0]:a;b||(b=this.getChartPosition());f=g.pageX-b.left;g=g.pageY-b.top;f/=b.scaleX;g/=b.scaleY;return d(a,{chartX:Math.round(f),chartY:Math.round(g)})};a.prototype.onContainerClick=
|
|
|
+function(a){var b=this.chart,f=b.hoverPoint;a=this.normalize(a);var g=b.plotLeft,h=b.plotTop;b.cancelClick||(f&&this.inClass(a.target,"highcharts-tracker")?(l(f.series,"click",d(a,{point:f})),b.hoverPoint&&f.firePointEvent("click",a)):(d(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-g,a.chartY-h,{visiblePlotOnly:!0})&&l(b,"click",a)))};a.prototype.onContainerMouseDown=function(a){var b=1===((a.buttons||a.button)&1);a=this.normalize(a);if(r.isFirefox&&0!==a.button)this.onContainerMouseMove(a);
|
|
|
+if("undefined"===typeof a.button||b)this.zoomOption(a),b&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};a.prototype.onContainerMouseLeave=function(b){var d=H[J(a.hoverChartIndex,-1)],f=this.chart.tooltip;f&&f.shouldStickOnContact()&&this.inClass(b.relatedTarget,"highcharts-tooltip-container")||(b=this.normalize(b),d&&(b.relatedTarget||b.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0),f&&!f.isHidden&&this.reset())};a.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};
|
|
|
+a.prototype.onContainerMouseMove=function(a){var b=this.chart;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===b.mouseIsDown||this.touchSelect(a))&&this.drag(a);b.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop,{visiblePlotOnly:!0})||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};a.prototype.onDocumentTouchEnd=function(b){var d=H[J(a.hoverChartIndex,
|
|
|
+-1)];d&&d.pointer.drop(b)};a.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};a.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);else this.zoomOption(a),this.touch(a,!0)};a.prototype.onDocumentMouseMove=function(a){var b=this.chart,f=this.chartPosition;a=this.normalize(a,f);var d=b.tooltip;!f||d&&d.isStickyOnContact()||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop,{visiblePlotOnly:!0})||
|
|
|
+this.inClass(a.target,"highcharts-tracker")||this.reset()};a.prototype.onDocumentMouseUp=function(b){var d=H[J(a.hoverChartIndex,-1)];d&&d.pointer.drop(b)};a.prototype.pinch=function(a){var b=this,f=b.chart,g=b.pinchDown,h=a.touches||[],t=h.length,e=b.lastValidTouch,c=b.hasZoom,k={},C=1===t&&(b.inClass(a.target,"highcharts-tracker")&&f.runTrackerClick||b.runChartClick),n={},u=b.selectionMarker;1<t?b.initiated=!0:1===t&&this.followTouchMove&&(b.initiated=!1);c&&b.initiated&&!C&&!1!==a.cancelable&&
|
|
|
+a.preventDefault();[].map.call(h,function(c){return b.normalize(c)});"touchstart"===a.type?([].forEach.call(h,function(c,e){g[e]={chartX:c.chartX,chartY:c.chartY}}),e.x=[g[0].chartX,g[1]&&g[1].chartX],e.y=[g[0].chartY,g[1]&&g[1].chartY],f.axes.forEach(function(c){if(c.zoomEnabled){var e=f.bounds[c.horiz?"h":"v"],a=c.minPixelPadding,b=c.toPixels(Math.min(J(c.options.min,c.dataMin),c.dataMin)),d=c.toPixels(Math.max(J(c.options.max,c.dataMax),c.dataMax)),h=Math.max(b,d);e.min=Math.min(c.pos,Math.min(b,
|
|
|
+d)-a);e.max=Math.max(c.pos+c.len,h+a)}}),b.res=!0):b.followTouchMove&&1===t?this.runPointActions(b.normalize(a)):g.length&&(l(f,"touchpan",{originalEvent:a},function(){u||(b.selectionMarker=u=d({destroy:I,touch:!0},f.plotBox));b.pinchTranslate(g,h,k,u,n,e);b.hasPinched=c;b.scaleGroups(k,n)}),b.res&&(b.res=!1,this.reset(!1,0)))};a.prototype.pinchTranslate=function(a,b,f,d,h,g){this.zoomHor&&this.pinchTranslateDirection(!0,a,b,f,d,h,g);this.zoomVert&&this.pinchTranslateDirection(!1,a,b,f,d,h,g)};a.prototype.pinchTranslateDirection=
|
|
|
+function(a,b,f,d,h,g,e,c){var t=this.chart,p=a?"x":"y",n=a?"X":"Y",u="chart"+n,l=a?"width":"height",k=t["plot"+(a?"Left":"Top")],m=t.inverted,v=t.bounds[a?"h":"v"],w=1===b.length,q=b[0][u],z=!w&&b[1][u];b=function(){"number"===typeof J&&20<Math.abs(q-z)&&(B=c||Math.abs(S-J)/Math.abs(q-z));Q=(k-S)/B+q;A=t["plot"+(a?"Width":"Height")]/B};var A,Q,B=c||1,S=f[0][u],J=!w&&f[1][u];b();f=Q;if(f<v.min){f=v.min;var L=!0}else f+A>v.max&&(f=v.max-A,L=!0);L?(S-=.8*(S-e[p][0]),"number"===typeof J&&(J-=.8*(J-e[p][1])),
|
|
|
+b()):e[p]=[S,J];m||(g[p]=Q-k,g[l]=A);g=m?1/B:B;h[l]=A;h[p]=f;d[m?a?"scaleY":"scaleX":"scale"+n]=B;d["translate"+n]=g*k+(S-g*q)};a.prototype.reset=function(a,b){var f=this.chart,d=f.hoverSeries,h=f.hoverPoint,g=f.hoverPoints,e=f.tooltip,c=e&&e.shared?g:h;a&&c&&M(c).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(a=!1)});if(a)e&&c&&M(c).length&&(e.refresh(c),e.shared&&g?g.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))}):h&&(h.setState(h.state,!0),f.axes.forEach(function(c){c.crosshair&&h.series[c.coll]===c&&c.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();g&&g.forEach(function(c){c.setState()});if(d)d.onMouseOut();e&&e.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());f.axes.forEach(function(c){c.hideCrosshair()});this.hoverX=f.hoverPoints=f.hoverPoint=null}};a.prototype.runPointActions=function(d,g){var f=this.chart,
|
|
|
+l=f.tooltip&&f.tooltip.options.enabled?f.tooltip:void 0,h=l?l.shared:!1,t=g||f.hoverPoint,e=t&&t.series||f.hoverSeries;g=this.getHoverData(t,e,f.series,(!d||"touchmove"!==d.type)&&(!!g||e&&e.directTouch&&this.isDirectTouch),h,d);t=g.hoverPoint;e=g.hoverSeries;var c=g.hoverPoints;g=e&&e.tooltipOptions.followPointer&&!e.tooltipOptions.split;var p=h&&e&&!e.noSharedTooltip;if(t&&(t!==f.hoverPoint||l&&l.isHidden)){(f.hoverPoints||[]).forEach(function(e){-1===c.indexOf(e)&&e.setState()});if(f.hoverSeries!==
|
|
|
+e)e.onMouseOver();this.applyInactiveState(c);(c||[]).forEach(function(c){c.setState("hover")});f.hoverPoint&&f.hoverPoint.firePointEvent("mouseOut");if(!t.series)return;f.hoverPoints=c;f.hoverPoint=t;t.firePointEvent("mouseOver",void 0,function(){l&&t&&l.refresh(p?c:t,d)})}else g&&l&&!l.isHidden&&(h=l.getAnchor([{}],d),f.isInsidePlot(h[0],h[1],{visiblePlotOnly:!0})&&l.updatePosition({plotX:h[0],plotY:h[1]}));this.unDocMouseMove||(this.unDocMouseMove=E(f.container.ownerDocument,"mousemove",function(c){var e=
|
|
|
+H[a.hoverChartIndex];if(e)e.pointer.onDocumentMouseMove(c)}),this.eventsToUnbind.push(this.unDocMouseMove));f.axes.forEach(function(e){var a=J((e.crosshair||{}).snap,!0),h;a&&((h=f.hoverPoint)&&h.series[e.coll]===e||(h=b(c,function(c){return c.series&&c.series[e.coll]===e})));h||!a?e.drawCrosshair(d,h):e.hideCrosshair()})};a.prototype.scaleGroups=function(a,b){var f=this.chart;f.series.forEach(function(d){var h=a||d.getPlotBox();d.group&&(d.xAxis&&d.xAxis.zoomEnabled||f.mapView)&&(d.group.attr(h),
|
|
|
+d.markerGroup&&(d.markerGroup.attr(h),d.markerGroup.clip(b?f.clipRect:null)),d.dataLabelsGroup&&d.dataLabelsGroup.attr(h))});f.clipRect.attr(b||f.clipBox)};a.prototype.setDOMEvents=function(){var b=this,d=this.chart.container,f=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(E(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(E(d,"mouseleave",
|
|
|
+this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=E(f,"mouseup",this.onDocumentMouseUp.bind(this)));for(var g=this.chart.renderTo.parentElement;g&&"BODY"!==g.tagName;)this.eventsToUnbind.push(E(g,"scroll",function(){delete b.chartPosition})),g=g.parentElement;r.hasTouch&&(this.eventsToUnbind.push(E(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(E(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),
|
|
|
+a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=E(f,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=function(){var b=this.chart,d=r.charts[J(a.hoverChartIndex,-1)];if(d&&d!==b)d.pointer.onContainerMouseLeave({relatedTarget:b.container});d&&d.mouseIsDown||(a.hoverChartIndex=b.index)};a.prototype.touch=function(a,b){var f=this.chart,d;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(d=f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-
|
|
|
+f.plotTop,{visiblePlotOnly:!0}))&&!f.openMenu){b&&this.runPointActions(a);if("touchmove"===a.type){b=this.pinchDown;var h=b[0]?4<=Math.sqrt(Math.pow(b[0].chartX-a.chartX,2)+Math.pow(b[0].chartY-a.chartY,2)):!1}J(h,!0)&&this.pinch(a)}else b&&this.reset();else 2===a.touches.length&&this.pinch(a)};a.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};a.prototype.zoomOption=function(a){var b=this.chart,f=b.options.chart;b=b.inverted;
|
|
|
+var d=f.zoomType||"";/touch/.test(a.type)&&(d=J(f.pinchType,d));this.zoomX=a=/x/.test(d);this.zoomY=f=/y/.test(d);this.zoomHor=a&&!b||f&&b;this.zoomVert=f&&!b||a&&b;this.hasZoom=a||f};return a}();"";return a});P(a,"Core/MSPointer.js",[a["Core/Globals.js"],a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,r,D){function y(){var a=[];a.item=function(a){return this[a]};b(m,function(b){a.push({pageX:b.pageX,pageY:b.pageY,target:b.target})});return a}function x(a,b,d,g){var l=I[r.hoverChartIndex||
|
|
|
+NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!l||(l=l.pointer,g(a),l[b]({type:d,target:a.currentTarget,preventDefault:q,touches:y()}))}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 d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,
|
|
|
+new g)}}(),I=a.charts,E=a.doc,q=a.noop,k=a.win,g=D.addEvent,d=D.css,b=D.objectEach,l=D.removeEvent,m={},A=!!k.PointerEvent;return function(b){function q(){return null!==b&&b.apply(this,arguments)||this}H(q,b);q.isRequired=function(){return!(a.hasTouch||!k.PointerEvent&&!k.MSPointerEvent)};q.prototype.batchMSEvents=function(a){a(this.chart.container,A?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,A?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(E,A?
|
|
|
+"pointerup":"MSPointerUp",this.onDocumentPointerUp)};q.prototype.destroy=function(){this.batchMSEvents(l);b.prototype.destroy.call(this)};q.prototype.init=function(a,g){b.prototype.init.call(this,a,g);this.hasZoom&&d(a.container,{"-ms-touch-action":"none","touch-action":"none"})};q.prototype.onContainerPointerDown=function(a){x(a,"onContainerTouchStart","touchstart",function(a){m[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};q.prototype.onContainerPointerMove=function(a){x(a,
|
|
|
+"onContainerTouchMove","touchmove",function(a){m[a.pointerId]={pageX:a.pageX,pageY:a.pageY};m[a.pointerId].target||(m[a.pointerId].target=a.currentTarget)})};q.prototype.onDocumentPointerUp=function(a){x(a,"onDocumentTouchEnd","touchend",function(a){delete m[a.pointerId]})};q.prototype.setDOMEvents=function(){b.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(g)};return q}(r)});P(a,"Core/Legend/Legend.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],
|
|
|
+a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Utilities.js"]],function(a,r,D,G,x,H){var y=a.animObject,E=a.setAnimation,q=r.format;a=D.isFirefox;var k=D.marginNames;D=D.win;var g=x.distribute,d=H.addEvent,b=H.createElement,l=H.css,m=H.defined,A=H.discardElement,L=H.find,B=H.fireEvent,J=H.isNumber,M=H.merge,z=H.pick,w=H.relativeLength,p=H.stableSort,f=H.syncTimeout;x=H.wrap;H=function(){function a(a,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=void 0;this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=a;this.init(a,b)}a.prototype.init=function(a,b){this.chart=
|
|
|
+a;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(a){var b=z(a.padding,8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=M(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||
|
|
|
+0;this.itemMarginBottom=a.itemMarginBottom||0;this.padding=b;this.initialItemY=b-5;this.symbolWidth=z(a.symbolWidth,16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted;this.baseline=void 0};a.prototype.update=function(a,b){var e=this.chart;this.setOptions(M(!0,this.options,a));this.destroy();e.isDirtyLegend=e.isDirtyBox=!0;z(b,!0)&&e.redraw();B(this,"afterUpdate")};a.prototype.colorizeItem=function(a,b){a.legendGroup[b?"removeClass":"addClass"]("highcharts-legend-item-hidden");
|
|
|
+if(!this.chart.styledMode){var e=this.options,c=a.legendItem,f=a.legendLine,d=a.legendSymbol,h=this.itemHiddenStyle.color;e=b?e.itemStyle.color:h;var g=b?a.color||h:h,t=a.options&&a.options.marker,l={fill:g};c&&c.css({fill:e,color:e});f&&f.attr({stroke:g});d&&(t&&d.isMarker&&(l=a.pointAttribs(),b||(l.stroke=l.fill=h)),d.attr(l))}B(this,"afterColorizeItem",{item:a,visible:b})};a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};
|
|
|
+a.prototype.positionItem=function(a){var b=this,e=this.options,c=e.symbolPadding,f=!e.rtl,d=a._legendItemPos;e=d[0];d=d[1];var h=a.checkbox,g=a.legendGroup;g&&g.element&&(c={translateX:f?e:this.legendWidth-e-2*c-4,translateY:d},f=function(){B(b,"afterPositionItem",{item:a})},m(g.translateY)?g.animate(c,void 0,f):(g.attr(c),f()));h&&(h.x=e,h.y=d)};a.prototype.destroyItem=function(a){var b=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(e){a[e]&&(a[e]=a[e].destroy())});
|
|
|
+b&&A(a.checkbox)};a.prototype.destroy=function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(b){["legendItem","legendGroup"].forEach(a,b)});"clipRect up down pager nav box title group".split(" ").forEach(a,this);this.display=null};a.prototype.positionCheckboxes=function(){var a=this.group&&this.group.alignAttr,b=this.clipHeight||this.legendHeight,e=this.titleHeight;if(a){var c=a.translateY;this.allItems.forEach(function(f){var d=f.checkbox;if(d){var h=c+
|
|
|
+e+d.y+(this.scrollOffset||0)+3;l(d,{left:a.translateX+f.checkboxOffset+d.x-20+"px",top:h+"px",display:this.proximate||h>c-6&&h<c+b-6?"":"none"})}},this)}};a.prototype.renderTitle=function(){var a=this.options,b=this.padding,e=a.title,c=0;e.text&&(this.title||(this.title=this.chart.renderer.label(e.text,b-3,b-4,void 0,void 0,void 0,a.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(e.style),this.title.add(this.group)),e.width||this.title.css({width:this.maxLegendWidth+
|
|
|
+"px"}),a=this.title.getBBox(),c=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:c}));this.titleHeight=c};a.prototype.setText=function(a){var b=this.options;a.legendItem.attr({text:b.labelFormat?q(b.labelFormat,a,this.chart):b.labelFormatter.call(a)})};a.prototype.renderItem=function(a){var b=this.chart,e=b.renderer,c=this.options,f=this.symbolWidth,d=c.symbolPadding||0,n=this.itemStyle,h=this.itemHiddenStyle,g="horizontal"===c.layout?z(c.itemDistance,20):0,l=!c.rtl,k=!a.series,
|
|
|
+p=!k&&a.series.drawLegendSymbol?a.series:a,m=p.options,v=this.createCheckboxForItem&&m&&m.showCheckbox,q=c.useHTML,w=a.options.className,Q=a.legendItem;m=f+d+g+(v?20:0);Q||(a.legendGroup=e.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+a.colorIndex+(w?" "+w:"")+(k?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=Q=e.text("",l?f+d:-d,this.baseline||0,q),b.styledMode||Q.css(M(a.visible?n:h)),Q.attr({align:l?"left":"right",zIndex:2}).add(a.legendGroup),
|
|
|
+this.baseline||(this.fontMetrics=e.fontMetrics(b.styledMode?12:n.fontSize,Q),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,Q.attr("y",this.baseline),this.symbolHeight=c.symbolHeight||this.fontMetrics.f,c.squareSymbol&&(this.symbolWidth=z(c.symbolWidth,Math.max(this.symbolHeight,16)),m=this.symbolWidth+d+g+(v?20:0),l&&Q.attr("x",this.symbolWidth+d))),p.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,Q,q));v&&!a.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(a);
|
|
|
+this.colorizeItem(a,a.visible);!b.styledMode&&n.width||Q.css({width:(c.itemWidth||this.widthOption||b.spacingBox.width)-m+"px"});this.setText(a);b=Q.getBBox();e=this.fontMetrics&&this.fontMetrics.h||0;a.itemWidth=a.checkboxOffset=c.itemWidth||a.legendItemWidth||b.width+m;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||(b.height>1.5*e?b.height:e))};a.prototype.layoutItem=function(a){var b=this.options,
|
|
|
+e=this.padding,c="horizontal"===b.layout,f=a.itemHeight,d=this.itemMarginBottom,n=this.itemMarginTop,h=c?z(b.itemDistance,20):0,g=this.maxLegendWidth;b=b.alignColumns&&this.totalItemWidth>g?this.maxItemWidth:a.itemWidth;c&&this.itemX-e+b>g&&(this.itemX=e,this.lastLineHeight&&(this.itemY+=n+this.lastLineHeight+d),this.lastLineHeight=0);this.lastItemY=n+this.itemY+d;this.lastLineHeight=Math.max(f,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];c?this.itemX+=b:(this.itemY+=n+f+d,this.lastLineHeight=
|
|
|
+f);this.offsetWidth=this.widthOption||Math.max((c?this.itemX-e-(a.checkbox?0:h):b)+e,this.offsetWidth)};a.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(b){var e=b&&b.options;b&&z(e.showInLegend,m(e.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||("point"===e.legendType?b.data:b)))});B(this,"afterGetAllItems",{allItems:a});return a};a.prototype.getAlignment=function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+
|
|
|
+a.verticalAlign.charAt(0)+a.layout.charAt(0)};a.prototype.adjustMargins=function(a,b){var e=this.chart,c=this.options,f=this.getAlignment();f&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(d,n){d.test(f)&&!m(a[n])&&(e[k[n]]=Math.max(e[k[n]],e.legend[(n+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][n]*c[n%2?"x":"y"]+z(c.margin,12)+b[n]+(e.titleOffset[n]||0)))})};a.prototype.proximatePositions=function(){var a=this.chart,b=[],e="left"===this.options.align;this.allItems.forEach(function(c){var f;
|
|
|
+var d=e;if(c.yAxis){c.xAxis.options.reversed&&(d=!d);c.points&&(f=L(d?c.points:c.points.slice(0).reverse(),function(a){return J(a.plotY)}));d=this.itemMarginTop+c.legendItem.getBBox().height+this.itemMarginBottom;var n=c.yAxis.top-a.plotTop;c.visible?(f=f?f.plotY:c.yAxis.height,f+=n-.3*d):f=n+c.yAxis.height;b.push({target:f,size:d,item:c})}},this);g(b,a.plotHeight).forEach(function(c){c.item._legendItemPos&&(c.item._legendItemPos[1]=a.plotTop-a.spacing[0]+c.pos)})};a.prototype.render=function(){var a=
|
|
|
+this.chart,b=a.renderer,e=this.options,c=this.padding,f=this.getAllItems(),d=this.group,n=this.box;this.itemX=c;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=w(e.width,a.spacingBox.width-c);var g=a.spacingBox.width-2*c-e.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(g/=2);this.maxLegendWidth=this.widthOption||g;d||(this.group=d=b.g("legend").addClass(e.className||"").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(d),this.scrollGroup=
|
|
|
+b.g().add(this.contentGroup));this.renderTitle();p(f,function(a,c){return(a.options&&a.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});e.reversed&&f.reverse();this.allItems=f;this.display=g=!!f.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;f.forEach(this.renderItem,this);f.forEach(this.layoutItem,this);f=(this.widthOption||this.offsetWidth)+c;var l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l);l+=c;n||(this.box=n=
|
|
|
+b.rect().addClass("highcharts-legend-box").attr({r:e.borderRadius}).add(d));a.styledMode||n.attr({stroke:e.borderColor,"stroke-width":e.borderWidth||0,fill:e.backgroundColor||"none"}).shadow(e.shadow);if(0<f&&0<l)n[n.placed?"animate":"attr"](n.crisp.call({},{x:0,y:0,width:f,height:l},n.strokeWidth()));n[g?"show":"hide"]();a.styledMode&&"none"===d.getStyle("display")&&(f=l=0);this.legendWidth=f;this.legendHeight=l;g&&this.align();this.proximate||this.positionItems();B(this,"afterRender")};a.prototype.align=
|
|
|
+function(a){void 0===a&&(a=this.chart.spacingBox);var b=this.chart,e=this.options,c=a.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<b.titleOffset[0]?c+=b.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<b.titleOffset[2]&&(c-=b.titleOffset[2]);c!==a.y&&(a=M(a,{y:c}));b.hasRendered||(this.group.placed=!1);this.group.align(M(e,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":e.verticalAlign}),!0,a)};a.prototype.handleOverflow=function(a){var b=this,e=this.chart,
|
|
|
+c=e.renderer,f=this.options,d=f.y,n="top"===f.verticalAlign,g=this.padding,h=f.maxHeight,l=f.navigation,k=z(l.animation,!0),m=l.arrowSize||12,p=this.pages,v=this.allItems,q=function(a){"number"===typeof a?B.attr({height:a}):B&&(b.clipRect=B.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=a?"rect("+g+"px,9999px,"+(g+a)+"px,0)":"auto")},w=function(a){b[a]=c.circle(0,0,1.3*m).translate(m/2,m/2).add(S);e.styledMode||b[a].attr("fill","rgba(0,0,0,0.0001)");return b[a]},
|
|
|
+Q,A;d=e.spacingBox.height+(n?-d:d)-g;var S=this.nav,B=this.clipRect;"horizontal"!==f.layout||"middle"===f.verticalAlign||f.floating||(d/=2);h&&(d=Math.min(d,h));p.length=0;a&&0<d&&a>d&&!1!==l.enabled?(this.clipHeight=Q=Math.max(d-20-this.titleHeight-g,0),this.currentPage=z(this.currentPage,1),this.fullHeight=a,v.forEach(function(a,c){var e=a._legendItemPos[1],b=Math.round(a.legendItem.getBBox().height),f=p.length;if(!f||e-p[f-1]>Q&&(A||e)!==p[f-1])p.push(A||e),f++;a.pageIx=f-1;A&&(v[c-1].pageIx=f-
|
|
|
+1);c===v.length-1&&e+b-p[f-1]>Q&&b<=Q&&(p.push(e),a.pageIx=f);e!==A&&(A=e)}),B||(B=b.clipRect=c.clipRect(0,g,9999,0),b.contentGroup.clip(B)),q(Q),S||(this.nav=S=c.g().attr({zIndex:1}).add(this.group),this.up=c.symbol("triangle",0,0,m,m).add(S),w("upTracker").on("click",function(){b.scroll(-1,k)}),this.pager=c.text("",15,10).addClass("highcharts-legend-navigation"),!e.styledMode&&l.style&&this.pager.css(l.style),this.pager.add(S),this.down=c.symbol("triangle-down",0,0,m,m).add(S),w("downTracker").on("click",
|
|
|
+function(){b.scroll(1,k)})),b.scroll(0),a=d):S&&(q(),this.nav=S.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a};a.prototype.scroll=function(a,b){var e=this,c=this.chart,d=this.pages,g=d.length,n=this.clipHeight,h=this.options.navigation,l=this.pager,k=this.padding,m=this.currentPage+a;m>g&&(m=g);0<m&&("undefined"!==typeof b&&E(b,c),this.nav.attr({translateX:k,translateY:n+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===
|
|
|
+m?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:m+"/"+g}),[this.down,this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,"class":m===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),c.styledMode||(this.up.attr({fill:1===m?h.inactiveColor:h.activeColor}),this.upTracker.css({cursor:1===m?"default":"pointer"}),this.down.attr({fill:m===g?h.inactiveColor:h.activeColor}),this.downTracker.css({cursor:m===g?"default":"pointer"})),
|
|
|
+this.scrollOffset=-d[m-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=m,this.positionCheckboxes(),a=y(z(b,c.renderer.globalAnimation,!0)),f(function(){B(e,"afterScroll",{currentPage:m})},a.duration))};a.prototype.setItemEvents=function(a,b,e){var c=this,f=c.chart.renderer.boxWrapper,d=a instanceof G,n="highcharts-legend-"+(d?"point":"series")+"-active",g=c.chart.styledMode,h=function(e){c.allItems.forEach(function(c){a!==c&&[c].concat(c.linkedSeries||
|
|
|
+[]).forEach(function(a){a.setState(e,!d)})})};(e?[b,a.legendSymbol]:[a.legendGroup]).forEach(function(e){if(e)e.on("mouseover",function(){a.visible&&h("inactive");a.setState("hover");a.visible&&f.addClass(n);g||b.css(c.options.itemHoverStyle)}).on("mouseout",function(){c.chart.styledMode||b.css(M(a.visible?c.itemStyle:c.itemHiddenStyle));h("");f.removeClass(n);a.setState()}).on("click",function(c){var e=function(){a.setVisible&&a.setVisible();h(a.visible?"inactive":"")};f.removeClass(n);c={browserEvent:c};
|
|
|
+a.firePointEvent?a.firePointEvent("legendItemClick",c,e):B(a,"legendItemClick",c,e)})})};a.prototype.createCheckboxForItem=function(a){a.checkbox=b("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);d(a.checkbox,"click",function(b){B(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})};return a}();(/Trident\/7\.0/.test(D.navigator&&D.navigator.userAgent)||
|
|
|
+a)&&x(H.prototype,"positionItem",function(a,b){var f=this,e=function(){b._legendItemPos&&a.call(f,b)};e();f.bubbleLegend||setTimeout(e)});"";return H});P(a,"Core/Series/SeriesRegistry.js",[a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,r,D,G){var y=r.defaultOptions,H=G.error,I=G.extendClass,E=G.merge,q;(function(k){function g(a,b){var d=y.plotOptions||{},g=b.defaultOptions;b.prototype.pointClass||(b.prototype.pointClass=D);b.prototype.type=
|
|
|
+a;g&&(d[a]=g);k.seriesTypes[a]=b}k.seriesTypes=a.seriesTypes;k.getSeries=function(a,b){void 0===b&&(b={});var d=a.options.chart;d=b.type||d.type||d.defaultSeriesType||"";var g=k.seriesTypes[d];k||H(17,!0,a,{missingModuleFor:d});d=new g;"function"===typeof d.init&&d.init(a,b);return d};k.registerSeriesType=g;k.seriesType=function(a,b,l,m,q){var d=y.plotOptions||{};b=b||"";d[a]=E(d[b],l);g(a,I(k.seriesTypes[b]||function(){},m));k.seriesTypes[a].prototype.type=a;q&&(k.seriesTypes[a].prototype.pointClass=
|
|
|
+I(D,q));return k.seriesTypes[a]}})(q||(q={}));return q});P(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/Legend.js"],a["Core/MSPointer.js"],a["Core/DefaultOptions.js"],a["Core/Pointer.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Time.js"],a["Core/Utilities.js"],a["Core/Renderer/HTML/AST.js"]],
|
|
|
+function(a,r,D,G,x,H,I,E,q,k,g,d,b,l,m){var A=a.animate,L=a.animObject,B=a.setAnimation,J=D.numberFormat,M=G.registerEventOptions,z=x.charts,w=x.doc,p=x.marginNames,f=x.svg,v=x.win,h=E.defaultOptions,t=E.defaultTime,e=g.seriesTypes,c=l.addEvent,F=l.attr,C=l.cleanRecursively,n=l.createElement,u=l.css,K=l.defined,y=l.discardElement,N=l.erase,O=l.error,W=l.extend,aa=l.find,R=l.fireEvent,ba=l.getStyle,Q=l.isArray,X=l.isNumber,S=l.isObject,da=l.isString,Y=l.merge,ca=l.objectEach,T=l.pick,ea=l.pInt,ia=
|
|
|
+l.relativeLength,P=l.removeEvent,ha=l.splat,Z=l.syncTimeout,ja=l.uniqueKey;a=function(){function a(a,c,e){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(a,c,e)}a.chart=function(c,e,b){return new a(c,e,b)};a.prototype.getArgs=function(a,c,e){da(a)||a.nodeName?(this.renderTo=a,this.init(c,e)):this.init(a,c)};a.prototype.init=function(a,c){var e=a.plotOptions||{};R(this,"init",{args:arguments},function(){var f=Y(h,a),d=f.chart;ca(f.plotOptions,function(a,c){S(a)&&(a.tooltip=e[c]&&Y(e[c].tooltip)||void 0)});f.tooltip.userOptions=
|
|
|
+a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;this.userOptions=a;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=c;this.isResizing=0;this.options=f;this.axes=[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new b(a.time):x.time;this.numberFormatter=d.numberFormatter||J;this.styledMode=d.styledMode;this.hasCartesianSeries=d.showAxes;this.index=z.length;z.push(this);x.chartCount++;M(this,d);this.xAxis=[];this.yAxis=[];this.pointCount=
|
|
|
+this.colorCounter=this.symbolCounter=0;R(this,"afterInit");this.firstRender()})};a.prototype.initSeries=function(a){var c=this.options.chart;c=a.type||c.type||c.defaultSeriesType;var b=e[c];b||O(17,!0,this,{missingModuleFor:c});c=new b;"function"===typeof c.init&&c.init(this,a);return c};a.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(a){a.points||a.data||!a.enabledDataSorting||a.setData(a.options.data,!1)})};a.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(a,
|
|
|
+c){return a.linkedSeries.length||c.linkedSeries.length?c.linkedSeries.length-a.linkedSeries.length:0})};a.prototype.orderSeries=function(a){var c=this.series;a=a||0;for(var e=c.length;a<e;++a)c[a]&&(c[a].index=a,c[a].name=c[a].getName())};a.prototype.isInsidePlot=function(a,c,e){void 0===e&&(e={});var b=this.inverted,f=this.plotBox,d=this.plotLeft,n=this.plotTop,g=this.scrollablePlotBox,h=0;var u=0;e.visiblePlotOnly&&this.scrollingContainer&&(u=this.scrollingContainer,h=u.scrollLeft,u=u.scrollTop);
|
|
|
+var l=e.series;f=e.visiblePlotOnly&&g||f;g=e.inverted?c:a;c=e.inverted?a:c;a={x:g,y:c,isInsidePlot:!0};if(!e.ignoreX){var k=l&&(b?l.yAxis:l.xAxis)||{pos:d,len:Infinity};g=e.paneCoordinates?k.pos+g:d+g;g>=Math.max(h+d,k.pos)&&g<=Math.min(h+d+f.width,k.pos+k.len)||(a.isInsidePlot=!1)}!e.ignoreY&&a.isInsidePlot&&(b=l&&(b?l.xAxis:l.yAxis)||{pos:n,len:Infinity},e=e.paneCoordinates?b.pos+c:n+c,e>=Math.max(u+n,b.pos)&&e<=Math.min(u+n+f.height,b.pos+b.len)||(a.isInsidePlot=!1));R(this,"afterIsInsidePlot",
|
|
|
+a);return a.isInsidePlot};a.prototype.redraw=function(a){R(this,"beforeRedraw");var c=this.hasCartesianSeries?this.axes:this.colorAxis||[],e=this.series,b=this.pointer,f=this.legend,d=this.userOptions.legend,n=this.renderer,g=n.isHidden(),h=[],u=this.isDirtyBox,l=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);B(this.hasRendered?a:!1,this);g&&this.temporaryDisplay();this.layOutTitles();for(a=e.length;a--;){var k=e[a];if(k.options.stacking||k.options.centerInCategory){var m=!0;if(k.isDirty){var p=
|
|
|
+!0;break}}}if(p)for(a=e.length;a--;)k=e[a],k.options.stacking&&(k.isDirty=!0);e.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),l=!0):d&&(d.labelFormatter||d.labelFormat)&&(l=!0));a.isDirtyData&&R(a,"updatedData")});l&&f&&f.options.enabled&&(f.render(),this.isDirtyLegend=!1);m&&this.getStacks();c.forEach(function(a){a.updateNames();a.setScale()});this.getMargins();c.forEach(function(a){a.isDirty&&(u=!0)});c.forEach(function(a){var c=
|
|
|
+a.min+","+a.max;a.extKey!==c&&(a.extKey=c,h.push(function(){R(a,"afterSetExtremes",W(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(u||m)&&a.redraw()});u&&this.drawChartBox();R(this,"predraw");e.forEach(function(a){(u||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});b&&b.reset(!0);n.draw();R(this,"redraw");R(this,"render");g&&this.temporaryDisplay(!0);h.forEach(function(a){a.call()})};a.prototype.get=function(a){function c(c){return c.id===a||c.options&&c.options.id===a}for(var e=this.series,
|
|
|
+b=aa(this.axes,c)||aa(this.series,c),f=0;!b&&f<e.length;f++)b=aa(e[f].points||[],c);return b};a.prototype.getAxes=function(){var a=this,c=this.options,e=c.xAxis=ha(c.xAxis||{});c=c.yAxis=ha(c.yAxis||{});R(this,"getAxes");e.forEach(function(a,c){a.index=c;a.isX=!0});c.forEach(function(a,c){a.index=c});e.concat(c).forEach(function(c){new r(a,c)});R(this,"afterGetAxes")};a.prototype.getSelectedPoints=function(){return this.series.reduce(function(a,c){c.getPointsCollection().forEach(function(c){T(c.selectedStaging,
|
|
|
+c.selected)&&a.push(c)});return a},[])};a.prototype.getSelectedSeries=function(){return this.series.filter(function(a){return a.selected})};a.prototype.setTitle=function(a,c,e){this.applyDescription("title",a);this.applyDescription("subtitle",c);this.applyDescription("caption",void 0);this.layOutTitles(e)};a.prototype.applyDescription=function(a,c){var e=this,b="title"===a?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};b=this.options[a]=Y(!this.styledMode&&{style:b},
|
|
|
+this.options[a],c);var f=this[a];f&&c&&(this[a]=f=f.destroy());b&&!f&&(f=this.renderer.text(b.text,0,0,b.useHTML).attr({align:b.align,"class":"highcharts-"+a,zIndex:b.zIndex||4}).add(),f.update=function(c){e[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](c)},this.styledMode||f.css(b.style),this[a]=f)};a.prototype.layOutTitles=function(a){var c=[0,0,0],e=this.renderer,b=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var f=this[a],d=this.options[a],n=d.verticalAlign||
|
|
|
+"top";a="title"===a?"top"===n?-3:0:"top"===n?c[0]+2:0;var g;if(f){this.styledMode||(g=d.style&&d.style.fontSize);g=e.fontMetrics(g,f).b;f.css({width:(d.width||b.width+(d.widthAdjust||0))+"px"});var h=Math.round(f.getBBox(d.useHTML).height);f.align(W({y:"bottom"===n?g:a+g,height:h},d),!1,"spacingBox");d.floating||("top"===n?c[0]=Math.ceil(c[0]+h):"bottom"===n&&(c[2]=Math.ceil(c[2]+h)))}},this);c[0]&&"top"===(this.options.title.verticalAlign||"top")&&(c[0]+=this.options.title.margin);c[2]&&"bottom"===
|
|
|
+this.options.caption.verticalAlign&&(c[2]+=this.options.caption.margin);var f=!this.titleOffset||this.titleOffset.join(",")!==c.join(",");this.titleOffset=c;R(this,"afterLayOutTitles");!this.isDirtyBox&&f&&(this.isDirtyBox=this.isDirtyLegend=f,this.hasRendered&&T(a,!0)&&this.isDirtyBox&&this.redraw())};a.prototype.getChartSize=function(){var a=this.options.chart,c=a.width;a=a.height;var e=this.renderTo;K(c)||(this.containerWidth=ba(e,"width"));K(a)||(this.containerHeight=ba(e,"height"));this.chartWidth=
|
|
|
+Math.max(0,c||this.containerWidth||600);this.chartHeight=Math.max(0,ia(a,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};a.prototype.temporaryDisplay=function(a){var c=this.renderTo;if(a)for(;c&&c.style;)c.hcOrigStyle&&(u(c,c.hcOrigStyle),delete c.hcOrigStyle),c.hcOrigDetached&&(w.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){w.body.contains(c)||c.parentNode||(c.hcOrigDetached=!0,w.body.appendChild(c));if("none"===ba(c,"display",!1)||c.hcOricDetached)c.hcOrigStyle=
|
|
|
+{display:c.style.display,height:c.style.height,overflow:c.style.overflow},a={display:"block",overflow:"hidden"},c!==this.renderTo&&(a.height=0),u(c,a),c.offsetWidth||c.style.setProperty("display","block","important");c=c.parentNode;if(c===w.body)break}};a.prototype.setClassName=function(a){this.container.className="highcharts-container "+(a||"")};a.prototype.getContainer=function(){var a=this.options,c=a.chart,e=ja(),b,g=this.renderTo;g||(this.renderTo=g=c.renderTo);da(g)&&(this.renderTo=g=w.getElementById(g));
|
|
|
+g||O(13,!0,this);var h=ea(F(g,"data-highcharts-chart"));X(h)&&z[h]&&z[h].hasRendered&&z[h].destroy();F(g,"data-highcharts-chart",this.index);g.innerHTML=m.emptyHTML;c.skipClone||g.offsetWidth||this.temporaryDisplay();this.getChartSize();h=this.chartWidth;var l=this.chartHeight;u(g,{overflow:"hidden"});this.styledMode||(b=W({position:"relative",overflow:"hidden",width:h+"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"},c.style||{}));this.container=e=n("div",{id:e},b,g);this._cursor=e.style.cursor;this.renderer=new (c.renderer||!f?k.getRendererType(c.renderer):d)(e,h,l,void 0,c.forExport,a.exporting&&a.exporting.allowHTML,this.styledMode);B(void 0,this);this.setClassName(c.className);if(this.styledMode)for(var p in a.defs)this.renderer.definition(a.defs[p]);else this.renderer.setStyle(c.style);this.renderer.chartIndex=this.index;R(this,"afterGetContainer")};a.prototype.getMargins=
|
|
|
+function(a){var c=this.spacing,e=this.margin,b=this.titleOffset;this.resetMargins();b[0]&&!K(e[0])&&(this.plotTop=Math.max(this.plotTop,b[0]+c[0]));b[2]&&!K(e[2])&&(this.marginBottom=Math.max(this.marginBottom,b[2]+c[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(e,c);R(this,"getMargins");a||this.getAxisMargins()};a.prototype.getAxisMargins=function(){var a=this,c=a.axisOffset=[0,0,0,0],e=a.colorAxis,b=a.margin,f=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?
|
|
|
+f(a.axes):e&&e.length&&f(e);p.forEach(function(e,f){K(b[f])||(a[e]+=c[f])});a.setChartSize()};a.prototype.reflow=function(a){var c=this,e=c.options.chart,b=c.renderTo,f=K(e.width)&&K(e.height),d=e.width||ba(b,"width");e=e.height||ba(b,"height");b=a?a.target:v;delete c.pointer.chartPosition;if(!f&&!c.isPrinting&&d&&e&&(b===v||b===w)){if(d!==c.containerWidth||e!==c.containerHeight)l.clearTimeout(c.reflowTimeout),c.reflowTimeout=Z(function(){c.container&&c.setSize(void 0,void 0,!1)},a?100:0);c.containerWidth=
|
|
|
+d;c.containerHeight=e}};a.prototype.setReflow=function(a){var e=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=c(v,"resize",function(a){e.options&&e.reflow(a)}),c(this,"destroy",this.unbindReflow))};a.prototype.setSize=function(a,c,e){var b=this,f=b.renderer;b.isResizing+=1;B(e,b);e=f.globalAnimation;b.oldChartHeight=b.chartHeight;b.oldChartWidth=b.chartWidth;"undefined"!==typeof a&&(b.options.chart.width=a);"undefined"!==typeof c&&
|
|
|
+(b.options.chart.height=c);b.getChartSize();b.styledMode||(e?A:u)(b.container,{width:b.chartWidth+"px",height:b.chartHeight+"px"},e);b.setChartSize(!0);f.setSize(b.chartWidth,b.chartHeight,e);b.axes.forEach(function(a){a.isDirty=!0;a.setScale()});b.isDirtyLegend=!0;b.isDirtyBox=!0;b.layOutTitles();b.getMargins();b.redraw(e);b.oldChartHeight=null;R(b,"resize");Z(function(){b&&R(b,"endResize",null,function(){--b.isResizing})},L(e).duration)};a.prototype.setChartSize=function(a){var c=this.inverted,
|
|
|
+e=this.renderer,b=this.chartWidth,f=this.chartHeight,d=this.options.chart,n=this.spacing,g=this.clipOffset,h,u,l,k;this.plotLeft=h=Math.round(this.plotLeft);this.plotTop=u=Math.round(this.plotTop);this.plotWidth=l=Math.max(0,Math.round(b-h-this.marginRight));this.plotHeight=k=Math.max(0,Math.round(f-u-this.marginBottom));this.plotSizeX=c?k:l;this.plotSizeY=c?l:k;this.plotBorderWidth=d.plotBorderWidth||0;this.spacingBox=e.spacingBox={x:n[3],y:n[0],width:b-n[3]-n[1],height:f-n[0]-n[2]};this.plotBox=
|
|
|
+e.plotBox={x:h,y:u,width:l,height:k};c=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(c,g[3])/2);f=Math.ceil(Math.max(c,g[0])/2);this.clipBox={x:b,y:f,width:Math.floor(this.plotSizeX-Math.max(c,g[1])/2-b),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(c,g[2])/2-f))};a||(this.axes.forEach(function(a){a.setAxisSize();a.setAxisTranslation()}),e.alignElements());R(this,"afterSetChartSize",{skipAxes:a})};a.prototype.resetMargins=function(){R(this,"resetMargins");var a=this,c=a.options.chart;
|
|
|
+["margin","spacing"].forEach(function(e){var b=c[e],f=S(b)?b:[b,b,b,b];["Top","Right","Bottom","Left"].forEach(function(b,d){a[e][d]=T(c[e+b],f[d])})});p.forEach(function(c,e){a[c]=T(a.margin[e],a.spacing[e])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]};a.prototype.drawChartBox=function(){var a=this.options.chart,c=this.renderer,e=this.chartWidth,b=this.chartHeight,f=this.styledMode,d=this.plotBGImage,n=a.backgroundColor,g=a.plotBackgroundColor,h=a.plotBackgroundImage,u=this.plotLeft,l=this.plotTop,
|
|
|
+k=this.plotWidth,m=this.plotHeight,p=this.plotBox,t=this.clipRect,C=this.clipBox,v=this.chartBackground,F=this.plotBackground,q=this.plotBorder,Q,w="animate";v||(this.chartBackground=v=c.rect().addClass("highcharts-background").add(),w="attr");if(f)var K=Q=v.strokeWidth();else{K=a.borderWidth||0;Q=K+(a.shadow?8:0);n={fill:n||"none"};if(K||v["stroke-width"])n.stroke=a.borderColor,n["stroke-width"]=K;v.attr(n).shadow(a.shadow)}v[w]({x:Q/2,y:Q/2,width:e-Q-K%2,height:b-Q-K%2,r:a.borderRadius});w="animate";
|
|
|
+F||(w="attr",this.plotBackground=F=c.rect().addClass("highcharts-plot-background").add());F[w](p);f||(F.attr({fill:g||"none"}).shadow(a.plotShadow),h&&(d?(h!==d.attr("href")&&d.attr("href",h),d.animate(p)):this.plotBGImage=c.image(h,u,l,k,m).add()));t?t.animate({width:C.width,height:C.height}):this.clipRect=c.clipRect(C);w="animate";q||(w="attr",this.plotBorder=q=c.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());f||q.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||
|
|
|
+0,fill:"none"});q[w](q.crisp({x:u,y:l,width:k,height:m},-q.strokeWidth()));this.isDirtyBox=!1;R(this,"afterDrawChartBox")};a.prototype.propFromSeries=function(){var a=this,c=a.options.chart,b=a.options.series,f,d,n;["inverted","angular","polar"].forEach(function(g){d=e[c.type||c.defaultSeriesType];n=c[g]||d&&d.prototype[g];for(f=b&&b.length;!n&&f--;)(d=e[b[f].type])&&d.prototype[g]&&(n=!0);a[g]=n})};a.prototype.linkSeries=function(){var a=this,c=a.series;c.forEach(function(a){a.linkedSeries.length=
|
|
|
+0});c.forEach(function(c){var e=c.options.linkedTo;da(e)&&(e=":previous"===e?a.series[c.index-1]:a.get(e))&&e.linkedParent!==c&&(e.linkedSeries.push(c),c.linkedParent=e,e.enabledDataSorting&&c.setDataSortingOptions(),c.visible=T(c.options.visible,e.options.visible,c.visible))});R(this,"afterLinkSeries")};a.prototype.renderSeries=function(){this.series.forEach(function(a){a.translate();a.render()})};a.prototype.renderLabels=function(){var a=this,c=a.options.labels;c.items&&c.items.forEach(function(e){var b=
|
|
|
+W(c.style,e.style),f=ea(b.left)+a.plotLeft,d=ea(b.top)+a.plotTop+12;delete b.left;delete b.top;a.renderer.text(e.html,f,d).attr({zIndex:2}).css(b).add()})};a.prototype.render=function(){var a=this.axes,c=this.colorAxis,e=this.renderer,b=this.options,f=function(a){a.forEach(function(a){a.visible&&a.render()})},d=0;this.setTitle();this.legend=new H(this,b.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();b=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&
|
|
|
+a.series.length)return d=21,!0});var n=this.plotHeight=Math.max(this.plotHeight-d,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var g=1.1<b/this.plotWidth,h=1.05<n/this.plotHeight;if(g||h)a.forEach(function(a){(a.horiz&&g||!a.horiz&&h)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?f(a):c&&c.length&&f(c);this.seriesGroup||(this.seriesGroup=e.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&
|
|
|
+this.setResponsive();this.hasRendered=!0};a.prototype.addCredits=function(a){var c=this,e=Y(!0,this.options.credits,a);e.enabled&&!this.credits&&(this.credits=this.renderer.text(e.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){e.href&&(v.location.href=e.href)}).attr({align:e.position.align,zIndex:8}),c.styledMode||this.credits.css(e.style),this.credits.add().align(e.position),this.credits.update=function(a){c.credits=c.credits.destroy();c.addCredits(a)})};a.prototype.destroy=
|
|
|
+function(){var a=this,c=a.axes,e=a.series,b=a.container,f=b&&b.parentNode,d;R(a,"destroy");a.renderer.forExport?N(z,a):z[a.index]=void 0;x.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");P(a);for(d=c.length;d--;)c[d]=c[d].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(d=e.length;d--;)e[d]=e[d].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(c){var e=
|
|
|
+a[c];e&&e.destroy&&(a[c]=e.destroy())});b&&(b.innerHTML=m.emptyHTML,P(b),f&&y(b));ca(a,function(c,e){delete a[e]})};a.prototype.firstRender=function(){var a=this,c=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();(Q(c.series)?c.series:[]).forEach(function(c){a.initSeries(c)});a.linkSeries();a.setSeriesData();R(a,"beforeRender");q&&(I.isRequired()?a.pointer=new I(a,c):a.pointer=new q(a,c));a.render();a.pointer.getChartPosition();
|
|
|
+if(!a.renderer.imgCount&&!a.hasLoaded)a.onload();a.temporaryDisplay(!0)}};a.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&"undefined"!==typeof this.index&&a.apply(this,[this])},this);R(this,"load");R(this,"render");K(this.index)&&this.setReflow(this.options.chart.reflow);this.warnIfA11yModuleNotLoaded();this.hasLoaded=!0};a.prototype.warnIfA11yModuleNotLoaded=function(){var a=this;setTimeout(function(){var c=a&&a.options;!c||a.accessibility||c.accessibility&&
|
|
|
+!1===c.accessibility.enabled||O('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,a)},100)};a.prototype.addSeries=function(a,c,e){var b=this,f;a&&(c=T(c,!0),R(b,"addSeries",{options:a},function(){f=b.initSeries(a);b.isDirtyLegend=!0;b.linkSeries();f.enabledDataSorting&&f.setData(a.data,
|
|
|
+!1);R(b,"afterAddSeries",{series:f});c&&b.redraw(e)}));return f};a.prototype.addAxis=function(a,c,e,b){return this.createAxis(c?"xAxis":"yAxis",{axis:a,redraw:e,animation:b})};a.prototype.addColorAxis=function(a,c,e){return this.createAxis("colorAxis",{axis:a,redraw:c,animation:e})};a.prototype.createAxis=function(a,c){a=new r(this,Y(c.axis,{index:this[a].length,isX:"xAxis"===a}));T(c.redraw,!0)&&this.redraw(c.animation);return a};a.prototype.showLoading=function(a){var e=this,b=e.options,f=b.loading,
|
|
|
+d=function(){g&&u(g,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},g=e.loadingDiv,h=e.loadingSpan;g||(e.loadingDiv=g=n("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container));h||(e.loadingSpan=h=n("span",{className:"highcharts-loading-inner"},null,g),c(e,"redraw",d));g.className="highcharts-loading";m.setElementHTML(h,T(a,b.lang.loading,""));e.styledMode||(u(g,W(f.style,{zIndex:10})),u(h,f.labelStyle),e.loadingShown||(u(g,{opacity:0,
|
|
|
+display:""}),A(g,{opacity:f.style.opacity||.5},{duration:f.showDuration||0})));e.loadingShown=!0;d()};a.prototype.hideLoading=function(){var a=this.options,c=this.loadingDiv;c&&(c.className="highcharts-loading highcharts-loading-hidden",this.styledMode||A(c,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){u(c,{display:"none"})}}));this.loadingShown=!1};a.prototype.update=function(a,c,e,f){var d=this,n={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},
|
|
|
+g=a.isResponsiveOptions,h=[],u,l;R(d,"update",{options:a});g||d.setResponsive(!1,!0);a=C(a,d.options);d.userOptions=Y(d.userOptions,a);var k=a.chart;if(k){Y(!0,d.options.chart,k);"className"in k&&d.setClassName(k.className);"reflow"in k&&d.setReflow(k.reflow);if("inverted"in k||"polar"in k||"type"in k){d.propFromSeries();var m=!0}"alignTicks"in k&&(m=!0);"events"in k&&M(this,k);ca(k,function(a,c){-1!==d.propsRequireUpdateSeries.indexOf("chart."+c)&&(u=!0);-1!==d.propsRequireDirtyBox.indexOf(c)&&(d.isDirtyBox=
|
|
|
+!0);-1!==d.propsRequireReflow.indexOf(c)&&(g?d.isDirtyBox=!0:l=!0)});!d.styledMode&&k.style&&d.renderer.setStyle(d.options.chart.style||{})}!d.styledMode&&a.colors&&(this.options.colors=a.colors);a.time&&(this.time===t&&(this.time=new b(a.time)),Y(!0,d.options.time,a.time));ca(a,function(c,e){if(d[e]&&"function"===typeof d[e].update)d[e].update(c,!1);else if("function"===typeof d[n[e]])d[n[e]](c);else"colors"!==e&&-1===d.collectionsWithUpdate.indexOf(e)&&Y(!0,d.options[e],a[e]);"chart"!==e&&-1!==
|
|
|
+d.propsRequireUpdateSeries.indexOf(e)&&(u=!0)});this.collectionsWithUpdate.forEach(function(c){if(a[c]){var b=[];d[c].forEach(function(a,c){a.options.isInternal||b.push(T(a.options.index,c))});ha(a[c]).forEach(function(a,f){var n=K(a.id),g;n&&(g=d.get(a.id));!g&&d[c]&&(g=d[c][b?b[f]:f])&&n&&K(g.options.id)&&(g=void 0);g&&g.coll===c&&(g.update(a,!1),e&&(g.touched=!0));!g&&e&&d.collectionsWithInit[c]&&(d.collectionsWithInit[c][0].apply(d,[a].concat(d.collectionsWithInit[c][1]||[]).concat([!1])).touched=
|
|
|
+!0)});e&&d[c].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:h.push(a)})}});h.forEach(function(a){a.chart&&a.remove&&a.remove(!1)});m&&d.axes.forEach(function(a){a.update({},!1)});u&&d.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);m=k&&k.width;k=k&&(da(k.height)?ia(k.height,m||d.chartWidth):k.height);l||X(m)&&m!==d.chartWidth||X(k)&&k!==d.chartHeight?d.setSize(m,k,f):T(c,!0)&&d.redraw(f);R(d,"afterUpdate",{options:a,redraw:c,animation:f})};a.prototype.setSubtitle=
|
|
|
+function(a,c){this.applyDescription("subtitle",a);this.layOutTitles(c)};a.prototype.setCaption=function(a,c){this.applyDescription("caption",a);this.layOutTitles(c)};a.prototype.showResetZoom=function(){function a(){c.zoomOut()}var c=this,e=h.lang,b=c.options.chart.resetZoomButton,f=b.theme,d="chart"===b.relativeTo||"spacingBox"===b.relativeTo?null:"scrollablePlotBox";R(this,"beforeShowResetZoom",null,function(){c.resetZoomButton=c.renderer.button(e.resetZoom,null,null,a,f).attr({align:b.position.align,
|
|
|
+title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(b.position,!1,d)});R(this,"afterShowResetZoom")};a.prototype.zoomOut=function(){R(this,"selection",{resetSelection:!0},this.zoom)};a.prototype.zoom=function(a){var c=this,e=c.pointer,b=c.inverted?e.mouseDownX:e.mouseDownY,f=!1,d;!a||a.resetSelection?(c.axes.forEach(function(a){d=a.zoom()}),e.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var g=a.axis,n=c.inverted?g.left:g.top,h=c.inverted?n+g.width:n+g.height,u=g.isXAxis,
|
|
|
+l=!1;if(!u&&b>=n&&b<=h||u||!K(b))l=!0;e[u?"zoomX":"zoomY"]&&l&&(d=g.zoom(a.min,a.max),g.displayBtn&&(f=!0))});var g=c.resetZoomButton;f&&!g?c.showResetZoom():!f&&S(g)&&(c.resetZoomButton=g.destroy());d&&c.redraw(T(c.options.chart.animation,a&&a.animation,100>c.pointCount))};a.prototype.pan=function(a,c){var e=this,b=e.hoverPoints;c="object"===typeof c?c:{enabled:c,type:"x"};var f=e.options.chart,d=e.options.mapNavigation&&e.options.mapNavigation.enabled;f&&f.panning&&(f.panning=c);var g=c.type,n;
|
|
|
+R(this,"pan",{originalEvent:a},function(){b&&b.forEach(function(a){a.setState()});var c=e.xAxis;"xy"===g?c=c.concat(e.yAxis):"y"===g&&(c=e.yAxis);var f={};c.forEach(function(c){if(c.options.panningEnabled&&!c.options.isInternal){var b=c.horiz,h=a[b?"chartX":"chartY"];b=b?"mouseDownX":"mouseDownY";var u=e[b],l=c.minPointOffset||0,k=c.reversed&&!e.inverted||!c.reversed&&e.inverted?-1:1,m=c.getExtremes(),p=c.toValue(u-h,!0)+l*k,t=c.toValue(u+c.len-h,!0)-(l*k||c.isXAxis&&c.pointRangePadding||0),C=t<p;
|
|
|
+k=c.hasVerticalPanning();u=C?t:p;p=C?p:t;var v=c.panningState;!k||c.isXAxis||v&&!v.isDirty||c.series.forEach(function(a){var c=a.getProcessedData(!0);c=a.getExtremes(c.yData,!0);v||(v={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});X(c.dataMin)&&X(c.dataMax)&&(v.startMin=Math.min(T(a.options.threshold,Infinity),c.dataMin,v.startMin),v.startMax=Math.max(T(a.options.threshold,-Infinity),c.dataMax,v.startMax))});k=Math.min(T(v&&v.startMin,m.dataMin),l?m.min:c.toValue(c.toPixels(m.min)-c.minPixelPadding));
|
|
|
+t=Math.max(T(v&&v.startMax,m.dataMax),l?m.max:c.toValue(c.toPixels(m.max)+c.minPixelPadding));c.panningState=v;c.isOrdinal||(l=k-u,0<l&&(p+=l,u=k),l=p-t,0<l&&(p=t,u-=l),c.series.length&&u!==m.min&&p!==m.max&&u>=k&&p<=t&&(c.setExtremes(u,p,!1,!1,{trigger:"pan"}),e.resetZoomButton||d||u===k||p===t||!g.match("y")||(e.showResetZoom(),c.displayBtn=!1),n=!0),f[b]=h)}});ca(f,function(a,c){e[c]=a});n&&e.redraw(!1);u(e.container,{cursor:"move"})})};return a}();W(a.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a.prototype.addAxis,
|
|
|
+[!0]],yAxis:[a.prototype.addAxis,[!1]],series:[a.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});
|
|
|
+"";return a});P(a,"Core/Legend/LegendSymbol.js",[a["Core/Utilities.js"]],function(a){var y=a.merge,D=a.pick,G;(function(a){a.drawLineMarker=function(a){var r=this.options,x=a.symbolWidth,q=a.symbolHeight,k=q/2,g=this.chart.renderer,d=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var b={},l=r.marker;this.chart.styledMode||(b={"stroke-width":r.lineWidth||0},r.dashStyle&&(b.dashstyle=r.dashStyle));this.legendLine=g.path([["M",0,a],["L",x,a]]).addClass("highcharts-graph").attr(b).add(d);
|
|
|
+l&&!1!==l.enabled&&x&&(r=Math.min(D(l.radius,k),k),0===this.symbol.indexOf("url")&&(l=y(l,{width:q,height:q}),r=0),this.legendSymbol=x=g.symbol(this.symbol,x/2-r,a-r,2*r,2*r,l).addClass("highcharts-point").add(d),x.isMarker=!0)};a.drawRectangle=function(a,r){var y=a.symbolHeight,q=a.options.squareSymbol;r.legendSymbol=this.chart.renderer.rect(q?(a.symbolWidth-y)/2:0,a.baseline-y+1,q?y:a.symbolWidth,y,D(a.options.symbolRadius,y/2)).addClass("highcharts-point").attr({zIndex:3}).add(r.legendGroup)}})(G||
|
|
|
+(G={}));return G});P(a,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var a=this.series.chart.numberFormatter;
|
|
|
+return"number"!==typeof this.y?"":a(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});P(a,"Core/Series/Series.js",
|
|
|
+[a["Core/Animation/AnimationUtilities.js"],a["Core/DefaultOptions.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/Point.js"],a["Core/Series/SeriesDefaults.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,r,D,G,x,H,I,E,q,k){var g=a.animObject,d=a.setAnimation,b=r.defaultOptions,l=D.registerEventOptions,m=G.hasTouch,A=G.svg,L=G.win,B=E.seriesTypes,J=k.addEvent,M=k.arrayMax,z=k.arrayMin,w=
|
|
|
+k.clamp,p=k.cleanRecursively,f=k.correctFloat,v=k.defined,h=k.erase,t=k.error,e=k.extend,c=k.find,F=k.fireEvent,C=k.getNestedProperty,n=k.isArray,u=k.isNumber,K=k.isString,y=k.merge,N=k.objectEach,O=k.pick,W=k.removeEvent,aa=k.splat,R=k.syncTimeout;a=function(){function a(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=
|
|
|
+void 0}a.prototype.init=function(a,c){F(this,"init",{options:c});var b=this,f=a.series;this.eventsToUnbind=[];b.chart=a;b.options=b.setOptions(c);c=b.options;b.linkedSeries=[];b.bindAxes();e(b,{name:c.name,state:"",visible:!1!==c.visible,selected:!0===c.selected});l(this,c);var d=c.events;if(d&&d.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;b.getColor();b.getSymbol();b.parallelArrays.forEach(function(a){b[a+"Data"]||(b[a+"Data"]=[])});b.isCartesian&&
|
|
|
+(a.hasCartesianSeries=!0);var g;f.length&&(g=f[f.length-1]);b._i=O(g&&g._i,-1)+1;b.opacity=b.options.opacity;a.orderSeries(this.insert(f));c.dataSorting&&c.dataSorting.enabled?b.setDataSortingOptions():b.points||b.data||b.setData(c.data,!1);F(this,"afterInit")};a.prototype.is=function(a){return B[a]&&this instanceof B[a]};a.prototype.insert=function(a){var c=this.options.index,e;if(u(c)){for(e=a.length;e--;)if(c>=O(a[e].options.index,a[e]._i)){a.splice(e+1,0,this);break}-1===e&&a.unshift(this);e+=
|
|
|
+1}else a.push(this);return O(e,a.length-1)};a.prototype.bindAxes=function(){var a=this,c=a.options,e=a.chart,b;F(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(f){var d=0;e[f].forEach(function(e){b=e.options;if(c[f]===d&&!b.isInternal||"undefined"!==typeof c[f]&&c[f]===b.id||"undefined"===typeof c[f]&&0===b.index)a.insert(e.series),a[f]=e,e.isDirty=!0;b.isInternal||d++});a[f]||a.optionalAxis===f||t(18,!0,e)})});F(this,"afterBindAxes")};a.prototype.updateParallelArrays=function(a,
|
|
|
+c){var e=a.series,b=arguments,f=u(c)?function(b){var f="y"===b&&e.toYData?e.toYData(a):a[b];e[b+"Data"][c]=f}:function(a){Array.prototype[c].apply(e[a+"Data"],Array.prototype.slice.call(b,2))};e.parallelArrays.forEach(f)};a.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};a.prototype.autoIncrement=function(a){var c=this.options,e=c.pointIntervalUnit,b=c.relativeXValue,f=this.chart.time,
|
|
|
+d=this.xIncrement,g;d=O(d,c.pointStart,0);this.pointInterval=g=O(this.pointInterval,c.pointInterval,1);b&&u(a)&&(g*=a);e&&(c=new f.Date(d),"day"===e?f.set("Date",c,f.get("Date",c)+g):"month"===e?f.set("Month",c,f.get("Month",c)+g):"year"===e&&f.set("FullYear",c,f.get("FullYear",c)+g),g=c.getTime()-d);if(b&&u(a))return d+g;this.xIncrement=d+g;return d};a.prototype.setDataSortingOptions=function(){var a=this.options;e(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});v(a.pointRange)||
|
|
|
+(a.pointRange=1)};a.prototype.setOptions=function(a){var c=this.chart,e=c.options,f=e.plotOptions,d=c.userOptions||{};a=y(a);c=c.styledMode;var g={plotOptions:f,userOptions:a};F(this,"setOptions",g);var n=g.plotOptions[this.type],h=d.plotOptions||{};this.userOptions=g.userOptions;d=y(n,f.series,d.plotOptions&&d.plotOptions[this.type],a);this.tooltipOptions=y(b.tooltip,b.plotOptions.series&&b.plotOptions.series.tooltip,b.plotOptions[this.type].tooltip,e.tooltip.userOptions,f.series&&f.series.tooltip,
|
|
|
+f[this.type].tooltip,a.tooltip);this.stickyTracking=O(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:d.stickyTracking);null===n.marker&&delete d.marker;this.zoneAxis=d.zoneAxis;f=this.zones=(d.zones||[]).slice();!d.negativeColor&&!d.negativeFillColor||d.zones||(e={value:d[this.zoneAxis+"Threshold"]||d.threshold||0,className:"highcharts-negative"},c||(e.color=d.negativeColor,e.fillColor=d.negativeFillColor),
|
|
|
+f.push(e));f.length&&v(f[f.length-1].value)&&f.push(c?{}:{color:this.color,fillColor:this.fillColor});F(this,"afterSetOptions",{options:d});return d};a.prototype.getName=function(){return O(this.options.name,"Series "+(this.index+1))};a.prototype.getCyclic=function(a,c,e){var b=this.chart,f=this.userOptions,d=a+"Index",g=a+"Counter",n=e?e.length:O(b.options.chart[a+"Count"],b[a+"Count"]);if(!c){var h=O(f[d],f["_"+d]);v(h)||(b.series.length||(b[g]=0),f["_"+d]=h=b[g]%n,b[g]+=1);e&&(c=e[h])}"undefined"!==
|
|
|
+typeof h&&(this[d]=h);this[a]=c};a.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||b.plotOptions[this.type].color,this.chart.options.colors)};a.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};a.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};a.prototype.findPointIndex=function(a,
|
|
|
+e){var b=a.id,f=a.x,d=this.points,g=this.options.dataSorting,n,h;if(b)g=this.chart.get(b),g instanceof H&&(n=g);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(n=function(c){return!c.touched&&c.index===a.index},g&&g.matchByName?n=function(c){return!c.touched&&c.name===a.name}:this.options.relativeXValue&&(n=function(c){return!c.touched&&c.options.x===a.x}),n=c(d,n),!n)return;if(n){var l=n&&n.index;"undefined"!==typeof l&&(h=!0)}"undefined"===typeof l&&u(f)&&(l=this.xData.indexOf(f,
|
|
|
+e));-1!==l&&"undefined"!==typeof l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l);!h&&u(l)&&d[l]&&d[l].touched&&(l=void 0);return l};a.prototype.updateData=function(a,c){var e=this.options,b=e.dataSorting,f=this.points,d=[],g=this.requireSorting,n=a.length===f.length,h,l,k,m=!0;this.xIncrement=null;a.forEach(function(a,c){var l=v(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{},m=l.x;if(l.id||u(m)){if(l=this.findPointIndex(l,k),-1===l||"undefined"===typeof l?d.push(a):
|
|
|
+f[l]&&a!==e.data[l]?(f[l].update(a,!1,null,!1),f[l].touched=!0,g&&(k=l+1)):f[l]&&(f[l].touched=!0),!n||c!==l||b&&b.enabled||this.hasDerivedData)h=!0}else d.push(a)},this);if(h)for(a=f.length;a--;)(l=f[a])&&!l.touched&&l.remove&&l.remove(!1,c);else!n||b&&b.enabled?m=!1:(a.forEach(function(a,c){a!==f[c].y&&f[c].update&&f[c].update(a,!1,null,!1)}),d.length=0);f.forEach(function(a){a&&(a.touched=!1)});if(!m)return!1;d.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&
|
|
|
+this.xData&&this.xData.length&&(this.xIncrement=M(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(a,c,e,b){var f=this,d=f.points,g=d&&d.length||0,h=f.options,l=f.chart,k=h.dataSorting,m=f.xAxis,p=h.turboThreshold,C=this.xData,v=this.yData,F=f.pointArrayMap;F=F&&F.length;var q=h.keys,w,z=0,Q=1,A=null;if(!l.options.chart.allowMutatingData){h.data&&delete f.options.data;f.userOptions.data&&delete f.userOptions.data;var B=y(!0,a)}a=B||a||[];B=a.length;c=O(c,!0);k&&k.enabled&&
|
|
|
+(a=this.sortData(a));l.options.chart.allowMutatingData&&!1!==b&&B&&g&&!f.cropped&&!f.hasGroupedData&&f.visible&&!f.isSeriesBoosting&&(w=this.updateData(a,e));if(!w){f.xIncrement=null;f.colorCounter=0;this.parallelArrays.forEach(function(a){f[a+"Data"].length=0});if(p&&B>p)if(A=f.getFirstValidPoint(a),u(A))for(e=0;e<B;e++)C[e]=this.autoIncrement(),v[e]=a[e];else if(n(A))if(F)if(A.length===F)for(e=0;e<B;e++)C[e]=this.autoIncrement(),v[e]=a[e];else for(e=0;e<B;e++)b=a[e],C[e]=b[0],v[e]=b.slice(1,F+1);
|
|
|
+else if(q&&(z=q.indexOf("x"),Q=q.indexOf("y"),z=0<=z?z:0,Q=0<=Q?Q:1),1===A.length&&(Q=0),z===Q)for(e=0;e<B;e++)C[e]=this.autoIncrement(),v[e]=a[e][Q];else for(e=0;e<B;e++)b=a[e],C[e]=b[z],v[e]=b[Q];else t(12,!1,l);else for(e=0;e<B;e++)"undefined"!==typeof a[e]&&(b={series:f},f.pointClass.prototype.applyOptions.apply(b,[a[e]]),f.updateParallelArrays(b,e));v&&K(v[0])&&t(14,!0,l);f.data=[];f.options.data=f.userOptions.data=a;for(e=g;e--;)d[e]&&d[e].destroy&&d[e].destroy();m&&(m.minRange=m.userMinRange);
|
|
|
+f.isDirty=l.isDirtyBox=!0;f.isDirtyData=!!d;e=!1}"point"===h.legendType&&(this.processData(),this.generatePoints());c&&l.redraw(e)};a.prototype.sortData=function(a){var c=this,e=c.options.dataSorting.sortKey||"y",b=function(a,c){return v(c)&&a.pointClass.prototype.optionsToObject.call({series:a},c)||{}};a.forEach(function(e,f){a[f]=b(c,e);a[f].index=f},this);a.concat().sort(function(a,c){a=C(e,a);c=C(e,c);return c<a?-1:c>a?1:0}).forEach(function(a,c){a.x=c},this);c.linkedSeries&&c.linkedSeries.forEach(function(c){var e=
|
|
|
+c.options,f=e.data;e.dataSorting&&e.dataSorting.enabled||!f||(f.forEach(function(e,d){f[d]=b(c,e);a[d]&&(f[d].x=a[d].x,f[d].index=d)}),c.setData(f,!1))});return a};a.prototype.getProcessedData=function(a){var c=this.xAxis,e=this.options,b=e.cropThreshold,f=a||this.getExtremesFromAll||e.getExtremesFromAll,d=this.isCartesian;a=c&&c.val2lin;e=!(!c||!c.logarithmic);var g=0,n=this.xData,h=this.yData,u=this.requireSorting;var l=!1;var k=n.length;if(c){l=c.getExtremes();var m=l.min;var p=l.max;l=!(!c.categories||
|
|
|
+c.names.length)}if(d&&this.sorted&&!f&&(!b||k>b||this.forceCrop))if(n[k-1]<m||n[0]>p)n=[],h=[];else if(this.yData&&(n[0]<m||n[k-1]>p)){var C=this.cropData(this.xData,this.yData,m,p);n=C.xData;h=C.yData;g=C.start;C=!0}for(b=n.length||1;--b;)if(c=e?a(n[b])-a(n[b-1]):n[b]-n[b-1],0<c&&("undefined"===typeof v||c<v))var v=c;else 0>c&&u&&!l&&(t(15,!1,this.chart),u=!1);return{xData:n,yData:h,cropped:C,cropStart:g,closestPointRange:v}};a.prototype.processData=function(a){var c=this.xAxis;if(this.isCartesian&&
|
|
|
+!this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData();this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange;F(this,"afterProcessData")};a.prototype.cropData=function(a,c,e,b,f){var d=a.length,g,n=0,h=d;f=O(f,this.cropShoulder);for(g=0;g<d;g++)if(a[g]>=e){n=Math.max(0,g-f);break}for(e=g;e<d;e++)if(a[e]>b){h=e+f;break}return{xData:a.slice(n,h),yData:c.slice(n,
|
|
|
+h),start:n,end:h}};a.prototype.generatePoints=function(){var a=this.options,c=this.processedData||a.data,b=this.processedXData,f=this.processedYData,d=this.pointClass,g=b.length,n=this.cropStart||0,h=this.hasGroupedData,u=a.keys,l=[];a=a.dataGrouping&&a.dataGrouping.groupAll?n:0;var k,m,p=this.data;if(!p&&!h){var t=[];t.length=c.length;p=this.data=t}u&&h&&(this.options.keys=!1);for(m=0;m<g;m++){t=n+m;if(h){var C=(new d).init(this,[b[m]].concat(aa(f[m])));C.dataGroup=this.groupMap[a+m];C.dataGroup.options&&
|
|
|
+(C.options=C.dataGroup.options,e(C,C.dataGroup.options),delete C.dataLabels)}else(C=p[t])||"undefined"===typeof c[t]||(p[t]=C=(new d).init(this,c[t],b[m]));C&&(C.index=h?a+m:t,l[m]=C)}this.options.keys=u;if(p&&(g!==(k=p.length)||h))for(m=0;m<k;m++)m!==n||h||(m+=g),p[m]&&(p[m].destroyElements(),p[m].plotX=void 0);this.data=p;this.points=l;F(this,"afterGeneratePoints")};a.prototype.getXExtremes=function(a){return{min:z(a),max:M(a)}};a.prototype.getExtremes=function(a,c){var e=this.xAxis,b=this.yAxis,
|
|
|
+f=this.processedXData||this.xData,d=[],g=this.requireSorting?this.cropShoulder:0;b=b?b.positiveValuesOnly:!1;var h,l=0,k=0,m=0;a=a||this.stackedYData||this.processedYData||[];var p=a.length;if(e){var t=e.getExtremes();l=t.min;k=t.max}for(h=0;h<p;h++){var C=f[h];t=a[h];var v=(u(t)||n(t))&&(t.length||0<t||!b);C=c||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!e||(f[h+g]||C)>=l&&(f[h-g]||C)<=k;if(v&&C)if(v=t.length)for(;v--;)u(t[v])&&(d[m++]=t[v]);else d[m++]=t}a={activeYData:d,
|
|
|
+dataMin:z(d),dataMax:M(d)};F(this,"afterGetExtremes",{dataExtremes:a});return a};a.prototype.applyExtremes=function(){var a=this.getExtremes();this.dataMin=a.dataMin;this.dataMax=a.dataMax;return a};a.prototype.getFirstValidPoint=function(a){for(var c=a.length,e=0,b=null;null===b&&e<c;)b=a[e],e++;return b};a.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,e=this.xAxis,b=e.categories,d=this.enabledDataSorting,g=this.yAxis,
|
|
|
+h=this.points,l=h.length,k=this.pointPlacementToXValue(),m=!!k,p=a.threshold,t=a.startFromThreshold?p:0,C=this.zoneAxis||"y",q,K,z=Number.MAX_VALUE;for(q=0;q<l;q++){var A=h[q],B=A.x,J=void 0,L=void 0,M=A.y,r=A.low,y=c&&g.stacking&&g.stacking.stacks[(this.negStacks&&M<(t?0:p)?"-":"")+this.stackKey];if(g.positiveValuesOnly&&!g.validatePositiveValue(M)||e.positiveValuesOnly&&!e.validatePositiveValue(B))A.isNull=!0;A.plotX=K=f(w(e.translate(B,0,0,0,1,k,"flags"===this.type),-1E5,1E5));if(c&&this.visible&&
|
|
|
+y&&y[B]){var N=this.getStackIndicator(N,B,this.index);A.isNull||(J=y[B],L=J.points[N.key])}n(L)&&(r=L[0],M=L[1],r===t&&N.key===y[B].base&&(r=O(u(p)&&p,g.min)),g.positiveValuesOnly&&0>=r&&(r=null),A.total=A.stackTotal=J.total,A.percentage=J.total&&A.y/J.total*100,A.stackY=M,this.irregularWidths||J.setOffset(this.pointXOffset||0,this.barW||0));A.yBottom=v(r)?w(g.translate(r,0,1,0,1),-1E5,1E5):null;this.dataModify&&(M=this.dataModify.modifyValue(M,q));A.plotY=void 0;u(M)&&(J=g.translate(M,!1,!0,!1,!0),
|
|
|
+"undefined"!==typeof J&&(A.plotY=w(J,-1E5,1E5)));A.isInside=this.isPointInside(A);A.clientX=m?f(e.translate(B,0,0,0,1,k)):K;A.negative=A[C]<(a[C+"Threshold"]||p||0);A.category=O(b&&b[A.x],A.x);if(!A.isNull&&!1!==A.visible){"undefined"!==typeof x&&(z=Math.min(z,Math.abs(K-x)));var x=K}A.zone=this.zones.length?A.getZone():void 0;!A.graphic&&this.group&&d&&(A.isNew=!0)}this.closestPointRangePx=z;F(this,"afterTranslate")};a.prototype.getValidPoints=function(a,c,e){var b=this.chart;return(a||this.points||
|
|
|
+[]).filter(function(a){return c&&!b.isInsidePlot(a.plotX,a.plotY,{inverted:b.inverted})?!1:!1!==a.visible&&(e||!a.isNull)})};a.prototype.getClipBox=function(){var a=this.chart,c=this.xAxis,e=this.yAxis,b=y(a.clipBox);c&&c.len!==a.plotSizeX&&(b.width=c.len);e&&e.len!==a.plotSizeY&&(b.height=e.len);return b};a.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};a.prototype.setClip=function(){var a=this.chart,c=this.group,e=this.markerGroup,
|
|
|
+b=a.sharedClips;a=a.renderer;var f=this.getClipBox(),d=this.getSharedClipKey(),g=b[d];g?g.animate(f):b[d]=g=a.clipRect(f);c&&c.clip(!1===this.options.clip?void 0:g);e&&e.clip()};a.prototype.animate=function(a){var c=this.chart,e=this.group,b=this.markerGroup,f=c.inverted,d=g(this.options.animation),n=[this.getSharedClipKey(),d.duration,d.easing,d.defer].join(),h=c.sharedClips[n],u=c.sharedClips[n+"m"];if(a&&e)d=this.getClipBox(),h?h.attr("height",d.height):(d.width=0,f&&(d.x=c.plotHeight),h=c.renderer.clipRect(d),
|
|
|
+c.sharedClips[n]=h,u=c.renderer.clipRect({x:f?(c.plotSizeX||0)+99:-99,y:f?-c.plotLeft:-c.plotTop,width:99,height:f?c.chartWidth:c.chartHeight}),c.sharedClips[n+"m"]=u),e.clip(h),b&&b.clip(u);else if(h&&!h.hasClass("highcharts-animating")){c=this.getClipBox();var l=d.step;b&&b.element.childNodes.length&&(d.step=function(a,c){l&&l.apply(c,arguments);u&&u.element&&u.attr(c.prop,"width"===c.prop?a+99:a)});h.addClass("highcharts-animating").animate(c,d)}};a.prototype.afterAnimate=function(){var a=this;
|
|
|
+this.setClip();N(this.chart.sharedClips,function(c,e,b){c&&!a.chart.container.querySelector('[clip-path="url(#'+c.id+')"]')&&(c.destroy(),delete b[e])});this.finishedAnimating=!0;F(this,"afterAnimate")};a.prototype.drawPoints=function(){var a=this.points,c=this.chart,e=this.options.marker,b=this[this.specialGroup]||this.markerGroup,f=this.xAxis,d=O(e.enabled,!f||f.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius),g,n;if(!1!==e.enabled||this._hasPointMarkers)for(g=0;g<a.length;g++){var h=
|
|
|
+a[g];var u=(n=h.graphic)?"animate":"attr";var l=h.marker||{};var k=!!h.marker;if((d&&"undefined"===typeof l.enabled||l.enabled)&&!h.isNull&&!1!==h.visible){var m=O(l.symbol,this.symbol,"rect");var p=this.markerAttribs(h,h.selected&&"select");this.enabledDataSorting&&(h.startXPos=f.reversed?-(p.width||0):f.width);var t=!1!==h.isInside;n?n[t?"show":"hide"](t).animate(p):t&&(0<(p.width||0)||h.hasImage)&&(h.graphic=n=c.renderer.symbol(m,p.x,p.y,p.width,p.height,k?l:e).add(b),this.enabledDataSorting&&
|
|
|
+c.hasRendered&&(n.attr({x:h.startXPos}),u="animate"));n&&"animate"===u&&n[t?"show":"hide"](t).animate(p);if(n&&!c.styledMode)n[u](this.pointAttribs(h,h.selected&&"select"));n&&n.addClass(h.getClassName(),!0)}else n&&(h.graphic=n.destroy())}};a.prototype.markerAttribs=function(a,c){var e=this.options,b=e.marker,f=a.marker||{},d=f.symbol||b.symbol,g=O(f.radius,b&&b.radius);c&&(b=b.states[c],c=f.states&&f.states[c],g=O(c&&c.radius,b&&b.radius,g&&g+(b&&b.radiusPlus||0)));a.hasImage=d&&0===d.indexOf("url");
|
|
|
+a.hasImage&&(g=0);a=u(g)?{x:e.crisp?Math.floor(a.plotX-g):a.plotX-g,y:a.plotY-g}:{};g&&(a.width=a.height=2*g);return a};a.prototype.pointAttribs=function(a,c){var e=this.options.marker,b=a&&a.options,f=b&&b.marker||{},d=b&&b.color,g=a&&a.color,n=a&&a.zone&&a.zone.color,h=this.color;a=O(f.lineWidth,e.lineWidth);b=1;h=d||n||g||h;d=f.fillColor||e.fillColor||h;g=f.lineColor||e.lineColor||h;c=c||"normal";e=e.states[c]||{};c=f.states&&f.states[c]||{};a=O(c.lineWidth,e.lineWidth,a+O(c.lineWidthPlus,e.lineWidthPlus,
|
|
|
+0));d=c.fillColor||e.fillColor||d;g=c.lineColor||e.lineColor||g;b=O(c.opacity,e.opacity,b);return{stroke:g,"stroke-width":a,fill:d,opacity:b}};a.prototype.destroy=function(a){var c=this,e=c.chart,b=/AppleWebKit\/533/.test(L.navigator.userAgent),f=c.data||[],d,g,n,u;F(c,"destroy",{keepEventsForUpdate:a});this.removeEvents(a);(c.axisTypes||[]).forEach(function(a){(u=c[a])&&u.series&&(h(u.series,c),u.isDirty=u.forceRedraw=!0)});c.legendItem&&c.chart.legend.destroyItem(c);for(g=f.length;g--;)(n=f[g])&&
|
|
|
+n.destroy&&n.destroy();c.clips&&c.clips.forEach(function(a){return a.destroy()});k.clearTimeout(c.animationTimeout);N(c,function(a,c){a instanceof q&&!a.survive&&(d=b&&"group"===c?"hide":"destroy",a[d]())});e.hoverSeries===c&&(e.hoverSeries=void 0);h(e.series,c);e.orderSeries();N(c,function(e,b){a&&"hcEvents"===b||delete c[b]})};a.prototype.applyZones=function(){var a=this,c=this.chart,e=c.renderer,b=this.zones,f=this.clips||[],d=this.graph,g=this.area,n=Math.max(c.chartWidth,c.chartHeight),h=this[(this.zoneAxis||
|
|
|
+"y")+"Axis"],u=c.inverted,l,k,m,p,t,C,v,F,q=!1;if(b.length&&(d||g)&&h&&"undefined"!==typeof h.min){var K=h.reversed;var z=h.horiz;d&&!this.showLine&&d.hide();g&&g.hide();var A=h.getExtremes();b.forEach(function(b,B){l=K?z?c.plotWidth:0:z?0:h.toPixels(A.min)||0;l=w(O(k,l),0,n);k=w(Math.round(h.toPixels(O(b.value,A.max),!0)||0),0,n);q&&(l=k=h.toPixels(A.max));p=Math.abs(l-k);t=Math.min(l,k);C=Math.max(l,k);h.isXAxis?(m={x:u?C:t,y:0,width:p,height:n},z||(m.x=c.plotHeight-m.x)):(m={x:0,y:u?C:t,width:n,
|
|
|
+height:p},z&&(m.y=c.plotWidth-m.y));u&&e.isVML&&(m=h.isXAxis?{x:0,y:K?t:C,height:m.width,width:c.chartWidth}:{x:m.y-c.plotLeft-c.spacingBox.x,y:0,width:m.height,height:c.chartHeight});f[B]?f[B].animate(m):f[B]=e.clipRect(m);v=a["zone-area-"+B];F=a["zone-graph-"+B];d&&F&&F.clip(f[B]);g&&v&&v.clip(f[B]);q=b.value>A.max;a.resetZones&&0===k&&(k=void 0)});this.clips=f}else a.visible&&(d&&d.show(),g&&g.show())};a.prototype.invertGroups=function(a){function c(){["group","markerGroup"].forEach(function(c){e[c]&&
|
|
|
+(b.renderer.isVML&&e[c].attr({width:e.yAxis.len,height:e.xAxis.len}),e[c].width=e.yAxis.len,e[c].height=e.xAxis.len,e[c].invert(e.isRadialSeries?!1:a))})}var e=this,b=e.chart;e.xAxis&&(e.eventsToUnbind.push(J(b,"resize",c)),c(),e.invertGroups=c)};a.prototype.plotGroup=function(a,c,e,b,f){var d=this[a],g=!d;e={visibility:e,zIndex:b||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(e.opacity=this.opacity);g&&(this[a]=d=this.chart.renderer.g().add(f));d.addClass("highcharts-"+
|
|
|
+c+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(v(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(d.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);d.attr(e)[g?"attr":"animate"](this.getPlotBox());return d};a.prototype.getPlotBox=function(){var a=this.chart,c=this.xAxis,e=this.yAxis;a.inverted&&(c=e,e=this.xAxis);return{translateX:c?c.left:a.plotLeft,translateY:e?e.top:a.plotTop,scaleX:1,scaleY:1}};a.prototype.removeEvents=
|
|
|
+function(a){a||W(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0)};a.prototype.render=function(){var a=this,c=a.chart,e=a.options,b=g(e.animation),f=a.visible?"inherit":"hidden",d=e.zIndex,n=a.hasRendered,h=c.seriesGroup,u=c.inverted;c=!a.finishedAnimating&&c.renderer.isSVG?b.duration:0;F(this,"render");var l=a.plotGroup("group","series",f,d,h);a.markerGroup=a.plotGroup("markerGroup","markers",f,d,h);!1!==e.clip&&a.setClip();a.animate&&
|
|
|
+c&&a.animate(!0);l.inverted=O(a.invertible,a.isCartesian)?u:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(u);a.animate&&c&&a.animate();n||(c&&b.defer&&(c+=b.defer),a.animationTimeout=R(function(){a.afterAnimate()},c||0));a.isDirty=!1;a.hasRendered=!0;F(a,"afterRender")};a.prototype.redraw=function(){var a=this.chart,c=this.isDirty||
|
|
|
+this.isDirtyData,e=this.group,b=this.xAxis,f=this.yAxis;e&&(a.inverted&&e.attr({width:a.plotWidth,height:a.plotHeight}),e.animate({translateX:O(b&&b.left,a.plotLeft),translateY:O(f&&f.top,a.plotTop)}));this.translate();this.render();c&&delete this.kdTree};a.prototype.searchPoint=function(a,c){var e=this.xAxis,b=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?e.len-a.chartY+e.pos:a.chartX-e.pos,plotY:f?b.len-a.chartX+b.pos:a.chartY-b.pos},c,a)};a.prototype.buildKDTree=function(a){function c(a,
|
|
|
+b,f){var d=a&&a.length;if(d){var g=e.kdAxisArray[b%f];a.sort(function(a,c){return a[g]-c[g]});d=Math.floor(d/2);return{point:a[d],left:c(a.slice(0,d),b+1,f),right:c(a.slice(d+1),b+1,f)}}}this.buildingKdTree=!0;var e=this,b=-1<e.options.findNearestPointBy.indexOf("y")?2:1;delete e.kdTree;R(function(){e.kdTree=c(e.getValidPoints(null,!e.directTouch),b,b);e.buildingKdTree=!1},e.options.kdNow||a&&"touchstart"===a.type?0:1)};a.prototype.searchKDTree=function(a,c,e){function b(a,c,e,h){var u=c.point,l=
|
|
|
+f.kdAxisArray[e%h],k=u,m=v(a[d])&&v(u[d])?Math.pow(a[d]-u[d],2):null;var p=v(a[g])&&v(u[g])?Math.pow(a[g]-u[g],2):null;p=(m||0)+(p||0);u.dist=v(p)?Math.sqrt(p):Number.MAX_VALUE;u.distX=v(m)?Math.sqrt(m):Number.MAX_VALUE;l=a[l]-u[l];p=0>l?"left":"right";m=0>l?"right":"left";c[p]&&(p=b(a,c[p],e+1,h),k=p[n]<k[n]?p:u);c[m]&&Math.sqrt(l*l)<k[n]&&(a=b(a,c[m],e+1,h),k=a[n]<k[n]?a:k);return k}var f=this,d=this.kdAxisArray[0],g=this.kdAxisArray[1],n=c?"distX":"dist";c=-1<f.options.findNearestPointBy.indexOf("y")?
|
|
|
+2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(e);if(this.kdTree)return b(a,this.kdTree,c,c)};a.prototype.pointPlacementToXValue=function(){var a=this.options,c=a.pointRange,e=this.xAxis;a=a.pointPlacement;"between"===a&&(a=e.reversed?-.5:.5);return u(a)?a*(c||e.pointRange):0};a.prototype.isPointInside=function(a){var c=this.chart,e=this.xAxis,b=this.yAxis;return"undefined"!==typeof a.plotY&&"undefined"!==typeof a.plotX&&0<=a.plotY&&a.plotY<=(b?b.len:c.plotHeight)&&0<=a.plotX&&a.plotX<=(e?
|
|
|
+e.len:c.plotWidth)};a.prototype.drawTracker=function(){var a=this,c=a.options,e=c.trackByArea,b=[].concat(e?a.areaPath:a.graphPath),f=a.chart,d=f.pointer,g=f.renderer,n=f.options.tooltip.snap,h=a.tracker,u=function(c){if(f.hoverSeries!==a)a.onMouseOver()},l="rgba(192,192,192,"+(A?.0001:.002)+")";h?h.attr({d:b}):a.graph&&(a.tracker=g.path(b).attr({visibility:a.visible?"inherit":"hidden",zIndex:2}).addClass(e?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),f.styledMode||a.tracker.attr({"stroke-linecap":"round",
|
|
|
+"stroke-linejoin":"round",stroke:l,fill:e?l:"none","stroke-width":a.graph.strokeWidth()+(e?0:2*n)}),[a.tracker,a.markerGroup,a.dataLabelsGroup].forEach(function(a){if(a&&(a.addClass("highcharts-tracker").on("mouseover",u).on("mouseout",function(a){d.onTrackerMouseOut(a)}),c.cursor&&!f.styledMode&&a.css({cursor:c.cursor}),m))a.on("touchstart",u)}));F(this,"afterDrawTracker")};a.prototype.addPoint=function(a,c,e,b,f){var d=this.options,g=this.data,n=this.chart,h=this.xAxis;h=h&&h.hasNames&&h.names;
|
|
|
+var u=d.data,l=this.xData,k;c=O(c,!0);var m={series:this};this.pointClass.prototype.applyOptions.apply(m,[a]);var p=m.x;var t=l.length;if(this.requireSorting&&p<l[t-1])for(k=!0;t&&l[t-1]>p;)t--;this.updateParallelArrays(m,"splice",t,0,0);this.updateParallelArrays(m,t);h&&m.name&&(h[p]=m.name);u.splice(t,0,a);if(k||this.processedData)this.data.splice(t,0,null),this.processData();"point"===d.legendType&&this.generatePoints();e&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(m,
|
|
|
+"shift"),u.shift()));!1!==f&&F(this,"addPoint",{point:m});this.isDirtyData=this.isDirty=!0;c&&n.redraw(b)};a.prototype.removePoint=function(a,c,e){var b=this,f=b.data,g=f[a],n=b.points,h=b.chart,u=function(){n&&n.length===f.length&&n.splice(a,1);f.splice(a,1);b.options.data.splice(a,1);b.updateParallelArrays(g||{series:b},"splice",a,1);g&&g.destroy();b.isDirty=!0;b.isDirtyData=!0;c&&h.redraw()};d(e,h);c=O(c,!0);g?g.firePointEvent("remove",null,u):u()};a.prototype.remove=function(a,c,e,b){function f(){d.destroy(b);
|
|
|
+g.isDirtyLegend=g.isDirtyBox=!0;g.linkSeries();O(a,!0)&&g.redraw(c)}var d=this,g=d.chart;!1!==e?F(d,"remove",null,f):f()};a.prototype.update=function(a,c){a=p(a,this.userOptions);F(this,"update",{options:a});var b=this,f=b.chart,d=b.userOptions,g=b.initialType||b.type,n=f.options.plotOptions,h=B[g].prototype,u=b.finishedAnimating&&{animation:!1},l={},k,m=["eventOptions","navigatorSeries","baseSeries"],C=a.type||d.type||f.options.chart.type,v=!(this.hasDerivedData||C&&C!==this.type||"undefined"!==
|
|
|
+typeof a.pointStart||"undefined"!==typeof a.pointInterval||"undefined"!==typeof a.relativeXValue||a.joinBy||a.mapData||b.hasOptionChanged("dataGrouping")||b.hasOptionChanged("pointStart")||b.hasOptionChanged("pointInterval")||b.hasOptionChanged("pointIntervalUnit")||b.hasOptionChanged("keys"));C=C||g;v&&(m.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData",
|
|
|
+"minY","maxY","minX","maxX"),!1!==a.visible&&m.push("area","graph"),b.parallelArrays.forEach(function(a){m.push(a+"Data")}),a.data&&(a.dataSorting&&e(b.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=y(d,u,{index:"undefined"===typeof d.index?b.index:d.index,pointStart:O(n&&n.series&&n.series.pointStart,d.pointStart,b.xData[0])},!v&&{data:b.options.data},a);v&&a.data&&(a.data=b.options.data);m=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(m);m.forEach(function(a){m[a]=
|
|
|
+b[a];delete b[a]});n=!1;if(B[C]){if(n=C!==b.type,b.remove(!1,!1,!1,!0),n)if(Object.setPrototypeOf)Object.setPrototypeOf(b,B[C].prototype);else{u=Object.hasOwnProperty.call(b,"hcEvents")&&b.hcEvents;for(k in h)b[k]=void 0;e(b,B[C].prototype);u?b.hcEvents=u:delete b.hcEvents}}else t(17,!0,f,{missingModuleFor:C});m.forEach(function(a){b[a]=m[a]});b.init(f,a);if(v&&this.points){var q=b.options;!1===q.visible?(l.graphic=1,l.dataLabel=1):b._hasPointLabels||(a=q.marker,h=q.dataLabels,!a||!1!==a.enabled&&
|
|
|
+(d.marker&&d.marker.symbol)===a.symbol||(l.graphic=1),h&&!1===h.enabled&&(l.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(l).length&&a.destroyElements(l),!1===q.showInLegend&&a.legendItem&&f.legend.destroyItem(a))},this)}b.initialType=g;f.linkSeries();n&&b.linkedSeries.length&&(b.isDirtyData=!0);F(this,"afterUpdate");O(c,!0)&&f.redraw(v?void 0:!1)};a.prototype.setName=function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=
|
|
|
+!0};a.prototype.hasOptionChanged=function(a){var c=this.options[a],e=this.chart.options.plotOptions,b=this.userOptions[a];return b?c!==b:c!==O(e&&e[this.type]&&e[this.type][a],e&&e.series&&e.series[a],c)};a.prototype.onMouseOver=function(){var a=this.chart,c=a.hoverSeries;a.pointer.setHoverChartIndex();if(c&&c!==this)c.onMouseOut();this.options.events.mouseOver&&F(this,"mouseOver");this.setState("hover");a.hoverSeries=this};a.prototype.onMouseOut=function(){var a=this.options,c=this.chart,e=c.tooltip,
|
|
|
+b=c.hoverPoint;c.hoverSeries=null;if(b)b.onMouseOut();this&&a.events.mouseOut&&F(this,"mouseOut");!e||this.stickyTracking||e.shared&&!this.noSharedTooltip||e.hide();c.series.forEach(function(a){a.setState("",!0)})};a.prototype.setState=function(a,c){var e=this,b=e.options,f=e.graph,d=b.inactiveOtherPoints,g=b.states,n=O(g[a||"normal"]&&g[a||"normal"].animation,e.chart.options.chart.animation),h=b.lineWidth,u=0,l=b.opacity;a=a||"";if(e.state!==a&&([e.group,e.markerGroup,e.dataLabelsGroup].forEach(function(c){c&&
|
|
|
+(e.state&&c.removeClass("highcharts-series-"+e.state),a&&c.addClass("highcharts-series-"+a))}),e.state=a,!e.chart.styledMode)){if(g[a]&&!1===g[a].enabled)return;a&&(h=g[a].lineWidth||h+(g[a].lineWidthPlus||0),l=O(g[a].opacity,l));if(f&&!f.dashstyle)for(b={"stroke-width":h},f.animate(b,n);e["zone-graph-"+u];)e["zone-graph-"+u].animate(b,n),u+=1;d||[e.group,e.markerGroup,e.dataLabelsGroup,e.labelBySeries].forEach(function(a){a&&a.animate({opacity:l},n)})}c&&d&&e.points&&e.setAllPointsToState(a||void 0)};
|
|
|
+a.prototype.setAllPointsToState=function(a){this.points.forEach(function(c){c.setState&&c.setState(a)})};a.prototype.setVisible=function(a,c){var e=this,b=e.chart,f=e.legendItem,d=b.options.chart.ignoreHiddenSeries,g=e.visible,n=(e.visible=a=e.options.visible=e.userOptions.visible="undefined"===typeof a?!g:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(e[a])e[a][n]()});if(b.hoverSeries===e||(b.hoverPoint&&b.hoverPoint.series)===e)e.onMouseOut();f&&
|
|
|
+b.legend.colorizeItem(e,a);e.isDirty=!0;e.options.stacking&&b.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});e.linkedSeries.forEach(function(c){c.setVisible(a,!1)});d&&(b.isDirtyBox=!0);F(e,n);!1!==c&&b.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide=function(){this.setVisible(!1)};a.prototype.select=function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);F(this,a?"select":
|
|
|
+"unselect")};a.prototype.shouldShowTooltip=function(a,c,e){void 0===e&&(e={});e.series=this;e.visiblePlotOnly=!0;return this.chart.isInsidePlot(a,c,e)};a.defaultOptions=I;return a}();e(a.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:x.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:H,requireSorting:!0,sorted:!0});E.series=a;"";"";return a});P(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,r,D,G,x,H){var y=a.stop,E=H.addEvent,q=H.createElement,k=H.merge,g=H.pick;E(D,"afterSetChartSize",function(a){var b=this.options.chart.scrollablePlotArea,d=b&&b.minWidth;b=b&&b.minHeight;if(!this.renderer.forExport){if(d){if(this.scrollablePixelsX=d=Math.max(0,d-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=
|
|
|
+k(this.plotBox);this.plotBox.width=this.plotWidth+=d;this.inverted?this.clipBox.height+=d:this.clipBox.width+=d;var g={1:{name:"right",value:d}}}}else b&&(this.scrollablePixelsY=d=Math.max(0,b-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=k(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,g={2:{name:"bottom",value:d}});g&&!a.skipAxes&&this.axes.forEach(function(a){g[a.side]?a.getPlotLinePath=function(){var b=
|
|
|
+g[a.side].name,d=this[b];this[b]=d-g[a.side].value;var l=r.prototype.getPlotLinePath.apply(this,arguments);this[b]=d;return l}:(a.setAxisSize(),a.setAxisTranslation())})}});E(D,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});D.prototype.setUpScrolling=function(){var a=this,b={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(b.overflowX=
|
|
|
+"auto");this.scrollablePixelsY&&(b.overflowY="auto");this.scrollingParent=q("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=q("div",{className:"highcharts-scrolling"},b,this.scrollingParent);E(this.scrollingContainer,"scroll",function(){a.pointer&&delete a.pointer.chartPosition});this.innerContainer=q("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=
|
|
|
+null};D.prototype.moveFixedElements=function(){var a=this.container,b=this.fixedRenderer,g=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),k;this.scrollablePixelsX&&!this.inverted?k=".highcharts-yaxis":this.scrollablePixelsX&&
|
|
|
+this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(k=".highcharts-yaxis");k&&g.push(k+":not(.highcharts-radial-axis)",k+"-labels:not(.highcharts-radial-axis-labels)");g.forEach(function(d){[].forEach.call(a.querySelectorAll(d),function(a){(a.namespaceURI===b.SVG_NS?b.box:b.box.parentNode).appendChild(a);a.style.pointerEvents="auto"})})};D.prototype.applyFixed=function(){var a=!this.fixedDiv,b=this.options.chart,
|
|
|
+l=b.scrollablePlotArea,k=x.getRendererType();a?(this.fixedDiv=q("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(b.style&&b.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=b=new k(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=b.path().attr({fill:this.options.chart.backgroundColor||
|
|
|
+"#fff","fill-opacity":g(l.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),E(this,"afterShowResetZoom",this.moveFixedElements),E(this,"afterApplyDrilldown",this.moveFixedElements),E(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a)this.scrollableDirty=!1,this.moveFixedElements();b=this.chartWidth+(this.scrollablePixelsX||0);k=this.chartHeight+(this.scrollablePixelsY||0);y(this.container);
|
|
|
+this.container.style.width=b+"px";this.container.style.height=k+"px";this.renderer.boxWrapper.attr({width:b,height:k,viewBox:[0,0,b,k].join(" ")});this.chartBackground.attr({width:b,height:k});this.scrollingContainer.style.height=this.chartHeight+"px";a&&(l.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*l.scrollPositionX),l.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*l.scrollPositionY));k=this.axisOffset;a=this.plotTop-k[0]-1;l=this.plotLeft-
|
|
|
+k[3]-1;b=this.plotTop+this.plotHeight+k[2]+1;k=this.plotLeft+this.plotWidth+k[1]+1;var A=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),L=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a=this.scrollablePixelsX?[["M",0,a],["L",this.plotLeft-1,a],["L",this.plotLeft-1,b],["L",0,b],["Z"],["M",A,a],["L",this.chartWidth,a],["L",this.chartWidth,b],["L",A,b],["Z"]]:this.scrollablePixelsY?[["M",l,0],["L",l,this.plotTop-1],["L",k,this.plotTop-1],["L",k,0],["Z"],["M",l,L],["L",l,this.chartHeight],
|
|
|
+["L",k,this.chartHeight],["L",k,L],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a})};E(r,"afterInit",function(){this.chart.scrollableDirty=!0});E(G,"show",function(){this.chart.scrollableDirty=!0});""});P(a,"Core/Axis/StackingAxis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,r,D){var y=a.getDeferredAnimation,x=D.addEvent,H=D.destroyObjectProperties,I=D.fireEvent,E=D.isNumber,q=D.objectEach,k;(function(a){function d(){var a=
|
|
|
+this.stacking;if(a){var b=a.stacks;q(b,function(a,d){H(a);b[d]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function b(){this.stacking||(this.stacking=new k(this))}var g=[];a.compose=function(a){-1===g.indexOf(a)&&(g.push(a),x(a,"init",b),x(a,"destroy",d));return a};var k=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,g=b.length,l;if(!a.isXAxis){this.usePercentage=
|
|
|
+!1;for(l=g;l--;){var k=b[d?l:g-l-1];k.setStackedPoints();k.setGroupedPoints()}for(l=0;l<g;l++)b[l].modifyStacks();I(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=this.stacks=this.oldStacks;q(a,function(a){q(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,b=a.stacks;a.axis.isXAxis||q(b,function(b){q(b,function(d,g){E(d.touched)&&d.touched<a.stacksTouched?(d.destroy(),delete b[g]):(d.total=null,d.cumulative=
|
|
|
+null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,b=a.chart,d=b.renderer,g=this.stacks;a=y(b,a.options.stackLabels&&a.options.stackLabels.animation||!1);var l=this.stackTotalGroup=this.stackTotalGroup||d.g("stack-labels").attr({zIndex:6,opacity:0}).add();l.translate(b.plotLeft,b.plotTop);q(g,function(a){q(a,function(a){a.render(l)})});l.animate({opacity:1},a)};return a}();a.Additions=k})(k||(k={}));return k});P(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,r,D,G,x,H,I){var y=D.format,q=I.correctFloat,k=I.defined,g=I.destroyObjectProperties,d=I.isArray,b=I.isNumber,l=I.objectEach,m=I.pick,A=function(){function a(a,b,d,g,l){var k=a.chart.inverted;this.axis=a;this.isNegative=d;this.options=b=b||{};this.x=g;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=l;this.rightCliff=this.leftCliff=0;this.alignOptions=
|
|
|
+{align:b.align||(k?d?"left":"right":"center"),verticalAlign:b.verticalAlign||(k?"middle":d?"bottom":"top"),y:b.y,x:b.x};this.textAlign=b.textAlign||(k?d?"right":"left":"center")}a.prototype.destroy=function(){g(this,this.axis)};a.prototype.render=function(a){var b=this.axis.chart,d=this.options,g=d.format;g=g?y(g,this,b):d.formatter.call(this);this.label?this.label.attr({text:g,visibility:"hidden"}):(this.label=b.renderer.label(g,null,null,d.shape,null,null,d.useHTML,!1,"stack-labels"),g={r:d.borderRadius||
|
|
|
+0,text:g,rotation:d.rotation,padding:m(d.padding,5),visibility:"hidden"},b.styledMode||(g.fill=d.backgroundColor,g.stroke=d.borderColor,g["stroke-width"]=d.borderWidth,this.label.css(d.style)),this.label.attr(g),this.label.added||this.label.add(a));this.label.labelrank=b.plotSizeY};a.prototype.setOffset=function(a,d,g,l,q){var p=this.axis,f=p.chart;l=p.translate(p.stacking.usePercentage?100:l?l:this.total,0,0,0,1);g=p.translate(g?g:0);g=k(l)&&Math.abs(l-g);a=m(q,f.xAxis[0].translate(this.x))+a;p=
|
|
|
+k(l)&&this.getStackBox(f,this,a,l,d,g,p);d=this.label;g=this.isNegative;a="justify"===m(this.options.overflow,"justify");var v=this.textAlign;d&&p&&(q=d.getBBox(),l=d.padding,v="left"===v?f.inverted?-l:l:"right"===v?q.width:f.inverted&&"center"===v?q.width/2:f.inverted?g?q.width+l:-l:q.width/2,g=f.inverted?q.height/2:g?-l:q.height,this.alignOptions.x=m(this.options.x,0),this.alignOptions.y=m(this.options.y,0),p.x-=v,p.y-=g,d.align(this.alignOptions,null,p),f.isInsidePlot(d.alignAttr.x+v-this.alignOptions.x,
|
|
|
+d.alignAttr.y+g-this.alignOptions.y)?d.show():(d.hide(),a=!1),a&&x.prototype.justifyDataLabel.call(this.axis,d,this.alignOptions,d.alignAttr,q,p),d.attr({x:d.alignAttr.x,y:d.alignAttr.y}),m(!a&&this.options.crop,!0)&&((f=b(d.x)&&b(d.y)&&f.isInsidePlot(d.x-l+d.width,d.y)&&f.isInsidePlot(d.x+l,d.y))||d.hide()))};a.prototype.getStackBox=function(a,b,d,g,l,k,f){var m=b.axis.reversed,h=a.inverted,p=f.height+f.pos-(h?a.plotLeft:a.plotTop);b=b.isNegative&&!m||!b.isNegative&&m;return{x:h?b?g-f.right:g-k+
|
|
|
+f.pos-a.plotLeft:d+a.xAxis[0].transB-a.plotLeft,y:h?f.height-d-l:b?p-g-k:p-g,width:h?k:l,height:h?l:k}};return a}();r.prototype.getStacks=function(){var a=this,b=a.inverted;a.yAxis.forEach(function(a){a.stacking&&a.stacking.stacks&&a.hasVisibleSeries&&(a.stacking.oldStacks=a.stacking.stacks)});a.series.forEach(function(d){var g=d.xAxis&&d.xAxis.options||{};!d.options.stacking||!0!==d.visible&&!1!==a.options.chart.ignoreHiddenSeries||(d.stackKey=[d.type,m(d.options.stack,""),b?g.top:g.left,b?g.height:
|
|
|
+g.width].join())})};H.compose(a);x.prototype.setGroupedPoints=function(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?x.prototype.setStackedPoints.call(this,"group"):a&&l(a.stacks,function(b,d){"group"===d.slice(-5)&&(l(b,function(a){return a.destroy()}),delete a.stacks[d])})};x.prototype.setStackedPoints=function(a){var b=a||this.options.stacking;if(b&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var g=
|
|
|
+this.processedXData,l=this.processedYData,z=[],w=l.length,p=this.options,f=p.threshold,v=m(p.startFromThreshold&&f,0);p=p.stack;a=a?this.type+","+b:this.stackKey;var h="-"+a,t=this.negStacks,e=this.yAxis,c=e.stacking.stacks,F=e.stacking.oldStacks,C,n;e.stacking.stacksTouched+=1;for(n=0;n<w;n++){var u=g[n];var K=l[n];var L=this.getStackIndicator(L,u,this.index);var r=L.key;var O=(C=t&&K<(v?0:f))?h:a;c[O]||(c[O]={});c[O][u]||(F[O]&&F[O][u]?(c[O][u]=F[O][u],c[O][u].total=null):c[O][u]=new A(e,e.options.stackLabels,
|
|
|
+C,u,p));O=c[O][u];null!==K?(O.points[r]=O.points[this.index]=[m(O.cumulative,v)],k(O.cumulative)||(O.base=r),O.touched=e.stacking.stacksTouched,0<L.index&&!1===this.singleStacks&&(O.points[r][0]=O.points[this.index+","+u+",0"][0])):O.points[r]=O.points[this.index]=null;"percent"===b?(C=C?a:h,t&&c[C]&&c[C][u]?(C=c[C][u],O.total=C.total=Math.max(C.total,O.total)+Math.abs(K)||0):O.total=q(O.total+(Math.abs(K)||0))):"group"===b?(d(K)&&(K=K[0]),null!==K&&(O.total=(O.total||0)+1)):O.total=q(O.total+(K||
|
|
|
+0));O.cumulative="group"===b?(O.total||1)-1:m(O.cumulative,v)+(K||0);null!==K&&(O.points[r].push(O.cumulative),z[n]=O.cumulative,O.hasValidPoints=!0)}"percent"===b&&(e.stacking.usePercentage=!0);"group"!==b&&(this.stackedYData=z);e.stacking.oldStacks={}}};x.prototype.modifyStacks=function(){var a=this,b=a.stackKey,d=a.yAxis.stacking.stacks,g=a.processedXData,l,k=a.options.stacking;a[k+"Stacker"]&&[b,"-"+b].forEach(function(b){for(var f=g.length,m,h;f--;)if(m=g[f],l=a.getStackIndicator(l,m,a.index,
|
|
|
+b),h=(m=d[b]&&d[b][m])&&m.points[l.key])a[k+"Stacker"](h,m,f)})};x.prototype.percentStacker=function(a,b,d){b=b.total?100/b.total:0;a[0]=q(a[0]*b);a[1]=q(a[1]*b);this.stackedYData[d]=a[1]};x.prototype.getStackIndicator=function(a,b,d,g){!k(a)||a.x!==b||g&&a.stackKey!==g?a={x:b,index:0,key:g,stackKey:g}:a.index++;a.key=[d,b,a.index].join();return a};G.StackItem=A;"";return G.StackItem});P(a,"Series/Line/LineSeries.js",[a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],
|
|
|
+function(a,r,D){var y=this&&this.__extends||function(){var a=function(r,q){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var d in g)g.hasOwnProperty(d)&&(a[d]=g[d])};return a(r,q)};return function(r,q){function k(){this.constructor=r}a(r,q);r.prototype=null===q?Object.create(q):(k.prototype=q.prototype,new k)}}(),x=D.defined,H=D.merge;D=function(r){function E(){var a=null!==r&&r.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=
|
|
|
+void 0;return a}y(E,r);E.prototype.drawGraph=function(){var a=this,k=this.options,g=(this.gappedPath||this.getGraphPath).call(this),d=this.chart.styledMode,b=[["graph","highcharts-graph"]];d||b[0].push(k.lineColor||this.color||"#cccccc",k.dashStyle);b=a.getZonesGraphs(b);b.forEach(function(b,m){var l=b[0],q=a[l],B=q?"animate":"attr";q?(q.endX=a.preventGraphAnimation?null:g.xMap,q.animate({d:g})):g.length&&(a[l]=q=a.chart.renderer.path(g).addClass(b[1]).attr({zIndex:1}).add(a.group));q&&!d&&(l={stroke:b[2],
|
|
|
+"stroke-width":k.lineWidth,fill:a.fillGraph&&a.color||"none"},b[3]?l.dashstyle=b[3]:"square"!==k.linecap&&(l["stroke-linecap"]=l["stroke-linejoin"]="round"),q[B](l).shadow(2>m&&k.shadow));q&&(q.startX=g.xMap,q.isArea=g.isArea)})};E.prototype.getGraphPath=function(a,k,g){var d=this,b=d.options,l=[],m=[],q,r=b.step;a=a||d.points;var B=a.reversed;B&&a.reverse();(r={right:1,center:2}[r]||r&&3)&&B&&(r=4-r);a=this.getValidPoints(a,!1,!(b.connectNulls&&!k&&!g));a.forEach(function(A,B){var z=A.plotX,w=A.plotY,
|
|
|
+p=a[B-1];(A.leftCliff||p&&p.rightCliff)&&!g&&(q=!0);A.isNull&&!x(k)&&0<B?q=!b.connectNulls:A.isNull&&!k?q=!0:(0===B||q?B=[["M",A.plotX,A.plotY]]:d.getPointSpline?B=[d.getPointSpline(a,A,B)]:r?(B=1===r?[["L",p.plotX,w]]:2===r?[["L",(p.plotX+z)/2,p.plotY],["L",(p.plotX+z)/2,w]]:[["L",z,p.plotY]],B.push(["L",z,w])):B=[["L",z,w]],m.push(A.x),r&&(m.push(A.x),2===r&&m.push(A.x)),l.push.apply(l,B),q=!1)});l.xMap=m;return d.graphPath=l};E.prototype.getZonesGraphs=function(a){this.zones.forEach(function(k,
|
|
|
+g){g=["zone-graph-"+g,"highcharts-graph highcharts-zone-graph-"+g+" "+(k.className||"")];this.chart.styledMode||g.push(k.color||this.color,k.dashStyle||this.options.dashStyle);a.push(g)},this);return a};E.defaultOptions=H(a.defaultOptions,{});return E}(a);r.registerSeriesType("line",D);"";return D});P(a,"Series/Area/AreaSeries.js",[a["Core/Color/Color.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,r,D,G){var y=this&&this.__extends||function(){var a=
|
|
|
+function(d,b){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(d,b)};return function(d,b){function g(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),H=a.parse,I=D.seriesTypes.line;a=G.extend;var E=G.merge,q=G.objectEach,k=G.pick;G=function(a){function d(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=
|
|
|
+void 0;return b}y(d,a);d.prototype.drawGraph=function(){this.areaPath=[];a.prototype.drawGraph.apply(this);var b=this,d=this.areaPath,g=this.options,q=[["area","highcharts-area",this.color,g.fillColor]];this.zones.forEach(function(a,d){q.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+a.className,a.color||b.color,a.fillColor||g.fillColor])});q.forEach(function(a){var l=a[0],m=b[l],q=m?"animate":"attr",z={};m?(m.endX=b.preventGraphAnimation?null:d.xMap,m.animate({d:d})):(z.zIndex=
|
|
|
+0,m=b[l]=b.chart.renderer.path(d).addClass(a[1]).add(b.group),m.isArea=!0);b.chart.styledMode||(z.fill=k(a[3],H(a[2]).setOpacity(k(g.fillOpacity,.75)).get()));m[q](z);m.startX=d.xMap;m.shiftUnit=g.step?2:1})};d.prototype.getGraphPath=function(a){var b=I.prototype.getGraphPath,d=this.options,g=d.stacking,q=this.yAxis,B,r=[],y=[],z=this.index,w=q.stacking.stacks[this.stackKey],p=d.threshold,f=Math.round(q.getThreshold(d.threshold));d=k(d.connectNulls,"percent"===g);var v=function(c,e,b){var d=a[c];
|
|
|
+c=g&&w[d.x].points[z];var h=d[b+"Null"]||0;b=d[b+"Cliff"]||0;d=!0;if(b||h){var l=(h?c[0]:c[1])+b;var k=c[0]+b;d=!!h}else!g&&a[e]&&a[e].isNull&&(l=k=p);"undefined"!==typeof l&&(y.push({plotX:t,plotY:null===l?f:q.getThreshold(l),isNull:d,isCliff:!0}),r.push({plotX:t,plotY:null===k?f:q.getThreshold(k),doCurve:!1}))};a=a||this.points;g&&(a=this.getStackPoints(a));for(B=0;B<a.length;B++){g||(a[B].leftCliff=a[B].rightCliff=a[B].leftNull=a[B].rightNull=void 0);var h=a[B].isNull;var t=k(a[B].rectPlotX,a[B].plotX);
|
|
|
+var e=g?k(a[B].yBottom,f):f;if(!h||d)d||v(B,B-1,"left"),h&&!g&&d||(y.push(a[B]),r.push({x:B,plotX:t,plotY:e})),d||v(B,B+1,"right")}B=b.call(this,y,!0,!0);r.reversed=!0;h=b.call(this,r,!0,!0);(e=h[0])&&"M"===e[0]&&(h[0]=["L",e[1],e[2]]);h=B.concat(h);h.length&&h.push(["Z"]);b=b.call(this,y,!1,d);h.xMap=B.xMap;this.areaPath=h;return b};d.prototype.getStackPoints=function(a){var b=this,d=[],g=[],r=this.xAxis,B=this.yAxis,y=B.stacking.stacks[this.stackKey],x={},z=B.series,w=z.length,p=B.options.reversedStacks?
|
|
|
+1:-1,f=z.indexOf(b);a=a||this.points;if(this.options.stacking){for(var v=0;v<a.length;v++)a[v].leftNull=a[v].rightNull=void 0,x[a[v].x]=a[v];q(y,function(a,e){null!==a.total&&g.push(e)});g.sort(function(a,e){return a-e});var h=z.map(function(a){return a.visible});g.forEach(function(a,e){var c=0,l,m;if(x[a]&&!x[a].isNull)d.push(x[a]),[-1,1].forEach(function(c){var d=1===c?"rightNull":"leftNull",n=0,u=y[g[e+c]];if(u)for(var k=f;0<=k&&k<w;){var t=z[k].index;l=u.points[t];l||(t===b.index?x[a][d]=!0:h[k]&&
|
|
|
+(m=y[a].points[t])&&(n-=m[1]-m[0]));k+=p}x[a][1===c?"rightCliff":"leftCliff"]=n});else{for(var n=f;0<=n&&n<w;){if(l=y[a].points[z[n].index]){c=l[1];break}n+=p}c=k(c,0);c=B.translate(c,0,1,0,1);d.push({isNull:!0,plotX:r.translate(a,0,0,0,1),x:a,plotY:c,yBottom:c})}})}return d};d.defaultOptions=E(I.defaultOptions,{threshold:0});return d}(I);a(G.prototype,{singleStacks:!1,drawLegendSymbol:r.drawRectangle});D.registerSeriesType("area",G);"";return G});P(a,"Series/Spline/SplineSeries.js",[a["Core/Series/SeriesRegistry.js"],
|
|
|
+a["Core/Utilities.js"]],function(a,r){var y=this&&this.__extends||function(){var a=function(r,q){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var d in g)g.hasOwnProperty(d)&&(a[d]=g[d])};return a(r,q)};return function(r,q){function k(){this.constructor=r}a(r,q);r.prototype=null===q?Object.create(q):(k.prototype=q.prototype,new k)}}(),G=a.seriesTypes.line,x=r.merge,H=r.pick;r=function(a){function r(){var q=null!==a&&a.apply(this,arguments)||
|
|
|
+this;q.data=void 0;q.options=void 0;q.points=void 0;return q}y(r,a);r.prototype.getPointSpline=function(a,k,g){var d=k.plotX||0,b=k.plotY||0,l=a[g-1];g=a[g+1];if(l&&!l.isNull&&!1!==l.doCurve&&!k.isCliff&&g&&!g.isNull&&!1!==g.doCurve&&!k.isCliff){a=l.plotY||0;var m=g.plotX||0;g=g.plotY||0;var q=0;var r=(1.5*d+(l.plotX||0))/2.5;var B=(1.5*b+a)/2.5;m=(1.5*d+m)/2.5;var y=(1.5*b+g)/2.5;m!==r&&(q=(y-B)*(m-d)/(m-r)+b-y);B+=q;y+=q;B>a&&B>b?(B=Math.max(a,b),y=2*b-B):B<a&&B<b&&(B=Math.min(a,b),y=2*b-B);y>g&&
|
|
|
+y>b?(y=Math.max(g,b),B=2*b-y):y<g&&y<b&&(y=Math.min(g,b),B=2*b-y);k.rightContX=m;k.rightContY=y}k=["C",H(l.rightContX,l.plotX,0),H(l.rightContY,l.plotY,0),H(r,d,0),H(B,b,0),d,b];l.rightContX=l.rightContY=void 0;return k};r.defaultOptions=x(G.defaultOptions);return r}(G);a.registerSeriesType("spline",r);"";return r});P(a,"Series/AreaSpline/AreaSplineSeries.js",[a["Series/Area/AreaSeries.js"],a["Series/Spline/SplineSeries.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],
|
|
|
+function(a,r,D,G,x){var y=this&&this.__extends||function(){var a=function(g,d){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(g,d)};return function(g,d){function b(){this.constructor=g}a(g,d);g.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),I=a.prototype,E=x.extend,q=x.merge;x=function(k){function g(){var a=null!==k&&k.apply(this,arguments)||this;a.data=void 0;a.points=
|
|
|
+void 0;a.options=void 0;return a}y(g,k);g.defaultOptions=q(r.defaultOptions,a.defaultOptions);return g}(r);E(x.prototype,{getGraphPath:I.getGraphPath,getStackPoints:I.getStackPoints,drawGraph:I.drawGraph,drawLegendSymbol:D.drawRectangle});G.registerSeriesType("areaspline",x);"";return x});P(a,"Series/Column/ColumnSeries.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],
|
|
|
+a["Core/Utilities.js"]],function(a,r,D,G,x,H,I){var y=this&&this.__extends||function(){var a=function(b,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f])};return a(b,f)};return function(b,f){function d(){this.constructor=b}a(b,f);b.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)}}(),q=a.animObject,k=r.parse,g=D.hasTouch;a=D.noop;var d=I.clamp,b=I.css,l=I.defined,m=I.extend,A=I.fireEvent,
|
|
|
+L=I.isArray,B=I.isNumber,J=I.merge,M=I.pick,z=I.objectEach;I=function(a){function p(){var b=null!==a&&a.apply(this,arguments)||this;b.borderWidth=void 0;b.data=void 0;b.group=void 0;b.options=void 0;b.points=void 0;return b}y(p,a);p.prototype.animate=function(a){var b=this,f=this.yAxis,g=b.options,e=this.chart.inverted,c={},l=e?"translateX":"translateY";if(a)c.scaleY=.001,a=d(f.toPixels(g.threshold),f.pos,f.pos+f.len),e?c.translateX=a-f.len:c.translateY=a,b.clipBox&&b.setClip(),b.group.attr(c);else{var k=
|
|
|
+Number(b.group.attr(l));b.group.animate({scaleY:1},m(q(b.options.animation),{step:function(a,e){b.group&&(c[l]=k+e.pos*(f.pos-k),b.group.attr(c))}}))}};p.prototype.init=function(b,d){a.prototype.init.apply(this,arguments);var f=this;b=f.chart;b.hasRendered&&b.series.forEach(function(a){a.type===f.type&&(a.isDirty=!0)})};p.prototype.getColumnMetrics=function(){var a=this,b=a.options,d=a.xAxis,g=a.yAxis,e=d.options.reversedStacks;e=d.reversed&&!e||!d.reversed&&e;var c={},l,k=0;!1===b.grouping?k=1:a.chart.series.forEach(function(e){var b=
|
|
|
+e.yAxis,f=e.options;if(e.type===a.type&&(e.visible||!a.chart.options.chart.ignoreHiddenSeries)&&g.len===b.len&&g.pos===b.pos){if(f.stacking&&"group"!==f.stacking){l=e.stackKey;"undefined"===typeof c[l]&&(c[l]=k++);var d=c[l]}else!1!==f.grouping&&(d=k++);e.columnIndex=d}});var n=Math.min(Math.abs(d.transA)*(d.ordinal&&d.ordinal.slope||b.pointRange||d.closestPointRange||d.tickInterval||1),d.len),u=n*b.groupPadding,m=(n-2*u)/(k||1);b=Math.min(b.maxPointWidth||d.len,M(b.pointWidth,m*(1-2*b.pointPadding)));
|
|
|
+a.columnMetrics={width:b,offset:(m-b)/2+(u+((a.columnIndex||0)+(e?1:0))*m-n/2)*(e?-1:1),paddedWidth:m,columnCount:k};return a.columnMetrics};p.prototype.crispCol=function(a,b,d,g){var e=this.chart,c=this.borderWidth,f=-(c%2?.5:0);c=c%2?.5:1;e.inverted&&e.renderer.isVML&&(c+=1);this.options.crisp&&(d=Math.round(a+d)+f,a=Math.round(a)+f,d-=a);g=Math.round(b+g)+c;f=.5>=Math.abs(b)&&.5<g;b=Math.round(b)+c;g-=b;f&&g&&(--b,g+=1);return{x:a,y:b,width:d,height:g}};p.prototype.adjustForMissingColumns=function(a,
|
|
|
+b,d,g){var e=this,c=this.options.stacking;if(!d.isNull&&1<g.columnCount){var f=this.yAxis.options.reversedStacks,h=0,n=f?0:-g.columnCount;z(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof d.x&&(a=a[d.x.toString()])){var b=a.points[e.index],g=a.total;c?(b&&(h=n),a.hasValidPoints&&(f?n++:n--)):L(b)&&(h=b[1],n=g||0)}});a=(d.plotX||0)+((n-1)*g.paddedWidth+b)/2-b-h*g.paddedWidth}return a};p.prototype.translate=function(){var a=this,b=a.chart,g=a.options,k=a.dense=2>a.closestPointRange*
|
|
|
+a.xAxis.transA;k=a.borderWidth=M(g.borderWidth,k?0:1);var e=a.xAxis,c=a.yAxis,m=g.threshold,p=a.translatedThreshold=c.getThreshold(m),n=M(g.minPointLength,5),u=a.getColumnMetrics(),q=u.width,w=a.pointXOffset=u.offset,z=a.dataMin,A=a.dataMax,r=a.barW=Math.max(q,1+2*k);b.inverted&&(p-=.5);g.pointPadding&&(r=Math.ceil(r));x.prototype.translate.apply(a);a.points.forEach(function(f){var h=M(f.yBottom,p),k=999+Math.abs(h),t=f.plotX||0;k=d(f.plotY,-k,c.len+k);var C=Math.min(k,h),v=Math.max(k,h)-C,F=q,K=
|
|
|
+t+w,y=r;n&&Math.abs(v)<n&&(v=n,t=!c.reversed&&!f.negative||c.reversed&&f.negative,B(m)&&B(A)&&f.y===m&&A<=m&&(c.min||0)<m&&(z!==A||(c.max||0)<=m)&&(t=!t),C=Math.abs(C-p)>n?h-n:p-(t?n:0));l(f.options.pointWidth)&&(F=y=Math.ceil(f.options.pointWidth),K-=Math.round((F-q)/2));g.centerInCategory&&(K=a.adjustForMissingColumns(K,F,f,u));f.barX=K;f.pointWidth=F;f.tooltipPos=b.inverted?[d(c.len+c.pos-b.plotLeft-k,c.pos-b.plotLeft,c.len+c.pos-b.plotLeft),e.len+e.pos-b.plotTop-K-y/2,v]:[e.left-b.plotLeft+K+
|
|
|
+y/2,d(k+c.pos-b.plotTop,c.pos-b.plotTop,c.len+c.pos-b.plotTop),v];f.shapeType=a.pointClass.prototype.shapeType||"rect";f.shapeArgs=a.crispCol.apply(a,f.isNull?[K,p,y,0]:[K,C,y,v])})};p.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};p.prototype.pointAttribs=function(a,b){var f=this.options,d=this.pointAttrToOptions||{},e=d.stroke||"borderColor",c=d["stroke-width"]||"borderWidth",g=a&&a.color||this.color,l=a&&a[e]||f[e]||g;d=a&&a.options.dashStyle||
|
|
|
+f.dashStyle;var n=a&&a[c]||f[c]||this[c]||0,u=M(a&&a.opacity,f.opacity,1);if(a&&this.zones.length){var m=a.getZone();g=a.options.color||m&&(m.color||a.nonZonedColor)||this.color;m&&(l=m.borderColor||l,d=m.dashStyle||d,n=m.borderWidth||n)}b&&a&&(a=J(f.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,g=a.color||"undefined"!==typeof b&&k(g).brighten(a.brightness).get()||g,l=a[e]||l,n=a[c]||n,d=a.dashStyle||d,u=M(a.opacity,u));e={fill:g,stroke:l,"stroke-width":n,opacity:u};d&&(e.dashstyle=
|
|
|
+d);return e};p.prototype.drawPoints=function(){var a=this,b=this.chart,d=a.options,g=b.renderer,e=d.animationLimit||250,c;a.points.forEach(function(f){var h=f.graphic,n=!!h,l=h&&b.pointCount<e?"animate":"attr";if(B(f.plotY)&&null!==f.y){c=f.shapeArgs;h&&f.hasNewShapeType()&&(h=h.destroy());a.enabledDataSorting&&(f.startXPos=a.xAxis.reversed?-(c?c.width||0:0):a.xAxis.width);h||(f.graphic=h=g[f.shapeType](c).add(f.group||a.group))&&a.enabledDataSorting&&b.hasRendered&&b.pointCount<e&&(h.attr({x:f.startXPos}),
|
|
|
+n=!0,l="animate");if(h&&n)h[l](J(c));if(d.borderRadius)h[l]({r:d.borderRadius});b.styledMode||h[l](a.pointAttribs(f,f.selected&&"select")).shadow(!1!==f.allowShadow&&d.shadow,null,d.stacking&&!d.borderRadius);h&&(h.addClass(f.getClassName(),!0),h.attr({visibility:f.visible?"inherit":"hidden"}))}else h&&(f.graphic=h.destroy())})};p.prototype.drawTracker=function(){var a=this,d=a.chart,h=d.pointer,l=function(a){var c=h.getPointFromEvent(a);"undefined"!==typeof c&&(h.isDirectTouch=!0,c.onMouseOver(a))},
|
|
|
+e;a.points.forEach(function(a){e=L(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);e.forEach(function(c){c.div?c.div.point=a:c.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(c){if(a[c]){a[c].addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(a){h.onTrackerMouseOut(a)});if(g)a[c].on("touchstart",l);!d.styledMode&&a.options.cursor&&a[c].css(b).css({cursor:a.options.cursor})}}),a._hasTracking=!0);A(this,"afterDrawTracker")};
|
|
|
+p.prototype.remove=function(){var a=this,b=a.chart;b.hasRendered&&b.series.forEach(function(b){b.type===a.type&&(b.isDirty=!0)});x.prototype.remove.apply(a,arguments)};p.defaultOptions=J(x.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,
|
|
|
+tooltip:{distance:6},threshold:0,borderColor:"#ffffff"});return p}(x);m(I.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:G.drawRectangle,getSymbol:a,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});H.registerSeriesType("column",I);"";"";return I});P(a,"Core/Series/DataLabel.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Utilities.js"]],function(a,r,D){var y=a.getDeferredAnimation,x=r.format,H=D.defined,I=D.extend,E=D.fireEvent,q=D.isArray,k=
|
|
|
+D.merge,g=D.objectEach,d=D.pick,b=D.splat,l;(function(a){function l(a,b,g,h,l){var e=this,c=this.chart,f=this.isCartesian&&c.inverted,k=this.enabledDataSorting,n=d(a.dlBox&&a.dlBox.centerX,a.plotX),u=a.plotY,m=g.rotation,p=g.align,t=H(n)&&H(u)&&c.isInsidePlot(n,Math.round(u),{inverted:f,paneCoordinates:!0,series:e}),q=function(c){k&&e.xAxis&&!v&&e.setDataLabelStartPos(a,b,l,t,c)},v="justify"===d(g.overflow,k?"none":"justify"),w=this.visible&&!1!==a.visible&&(a.series.forceDL||k&&!v||t||d(g.inside,
|
|
|
+!!this.options.stacking)&&h&&c.isInsidePlot(n,f?h.x+1:h.y+h.height-1,{inverted:f,paneCoordinates:!0,series:e}));if(w&&H(n)&&H(u)){m&&b.attr({align:p});p=b.getBBox(!0);var z=[0,0];var A=c.renderer.fontMetrics(c.styledMode?void 0:g.style.fontSize,b).b;h=I({x:f?this.yAxis.len-u:n,y:Math.round(f?this.xAxis.len-n:u),width:0,height:0},h);I(g,{width:p.width,height:p.height});m?(v=!1,z=c.renderer.rotCorr(A,m),n={x:h.x+(g.x||0)+h.width/2+z.x,y:h.y+(g.y||0)+{top:0,middle:.5,bottom:1}[g.verticalAlign]*h.height},
|
|
|
+z=[p.x-Number(b.attr("x")),p.y-Number(b.attr("y"))],q(n),b[l?"attr":"animate"](n)):(q(h),b.align(g,void 0,h),n=b.alignAttr);v&&0<=h.height?this.justifyDataLabel(b,g,n,p,h,l):d(g.crop,!0)&&(h=n.x,q=n.y,h+=z[0],q+=z[1],w=c.isInsidePlot(h,q,{paneCoordinates:!0,series:e})&&c.isInsidePlot(h+p.width,q+p.height,{paneCoordinates:!0,series:e}));if(g.shape&&!m)b[l?"attr":"animate"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY})}l&&k&&(b.placed=!1);w||k&&!v?b.show():(b.hide(),
|
|
|
+b.placed=!1)}function m(a,b){var f=b.filter;return f?(b=f.operator,a=a[f.property],f=f.value,">"===b&&a>f||"<"===b&&a<f||">="===b&&a>=f||"<="===b&&a<=f||"=="===b&&a==f||"==="===b&&a===f?!0:!1):!0}function B(){var a=this,f=a.chart,l=a.options,h=a.points,k=a.hasRendered||0,e=f.renderer,c=l.dataLabels,F,C=c.animation;C=c.defer?y(f,C,a):{defer:0,duration:0};c=M(M(f.options.plotOptions&&f.options.plotOptions.series&&f.options.plotOptions.series.dataLabels,f.options.plotOptions&&f.options.plotOptions[a.type]&&
|
|
|
+f.options.plotOptions[a.type].dataLabels),c);E(this,"drawDataLabels");if(q(c)||c.enabled||a._hasPointLabels){var n=a.plotGroup("dataLabelsGroup","data-labels",k?"inherit":"hidden",c.zIndex||6);n.attr({opacity:+k});!k&&(k=a.dataLabelsGroup)&&(a.visible&&n.show(),k[l.animation?"animate":"attr"]({opacity:1},C));h.forEach(function(h){F=b(M(c,h.dlOptions||h.options&&h.options.dataLabels));F.forEach(function(c,b){var k=c.enabled&&(!h.isNull||h.dataLabelOnNull)&&m(h,c),u=h.connectors?h.connectors[b]:h.connector,
|
|
|
+p=h.dataLabels?h.dataLabels[b]:h.dataLabel,t=!p,C=d(c.distance,h.labelDistance);if(k){var q=h.getLabelConfig();var v=d(c[h.formatPrefix+"Format"],c.format);q=H(v)?x(v,q,f):(c[h.formatPrefix+"Formatter"]||c.formatter).call(q,c);v=c.style;var F=c.rotation;f.styledMode||(v.color=d(c.color,v.color,a.color,"#000000"),"contrast"===v.color?(h.contrastColor=e.getContrast(h.color||a.color),v.color=!H(C)&&c.inside||0>C||l.stacking?h.contrastColor:"#000000"):delete h.contrastColor,l.cursor&&(v.cursor=l.cursor));
|
|
|
+var w={r:c.borderRadius||0,rotation:F,padding:c.padding,zIndex:1};f.styledMode||(w.fill=c.backgroundColor,w.stroke=c.borderColor,w["stroke-width"]=c.borderWidth);g(w,function(a,c){"undefined"===typeof a&&delete w[c]})}!p||k&&H(q)&&!!p.div===!!c.useHTML&&(p.rotation&&c.rotation||p.rotation===c.rotation)||(t=!0,h.dataLabel=p=h.dataLabel&&h.dataLabel.destroy(),h.dataLabels&&(1===h.dataLabels.length?delete h.dataLabels:delete h.dataLabels[b]),b||delete h.dataLabel,u&&(h.connector=h.connector.destroy(),
|
|
|
+h.connectors&&(1===h.connectors.length?delete h.connectors:delete h.connectors[b])));k&&H(q)?(p?w.text=q:(h.dataLabels=h.dataLabels||[],p=h.dataLabels[b]=F?e.text(q,0,0,c.useHTML).addClass("highcharts-data-label"):e.label(q,0,0,c.shape,null,null,c.useHTML,null,"data-label"),b||(h.dataLabel=p),p.addClass(" highcharts-data-label-color-"+h.colorIndex+" "+(c.className||"")+(c.useHTML?" highcharts-tracker":""))),p.options=c,p.attr(w),f.styledMode||p.css(v).shadow(c.shadow),p.added||p.add(n),c.textPath&&
|
|
|
+!c.useHTML&&(p.setTextPath(h.getDataLabelPath&&h.getDataLabelPath(p)||h.graphic,c.textPath),h.dataLabelPath&&!c.textPath.enabled&&(h.dataLabelPath=h.dataLabelPath.destroy())),a.alignDataLabel(h,p,c,null,t)):p&&p.hide()})})}E(this,"afterDrawDataLabels")}function r(a,b,d,g,l,e){var c=this.chart,f=b.align,h=b.verticalAlign,n=a.box?0:a.padding||0,k=b.x;k=void 0===k?0:k;var m=b.y;m=void 0===m?0:m;var p=(d.x||0)+n;if(0>p){"right"===f&&0<=k?(b.align="left",b.inside=!0):k-=p;var t=!0}p=(d.x||0)+g.width-n;
|
|
|
+p>c.plotWidth&&("left"===f&&0>=k?(b.align="right",b.inside=!0):k+=c.plotWidth-p,t=!0);p=d.y+n;0>p&&("bottom"===h&&0<=m?(b.verticalAlign="top",b.inside=!0):m-=p,t=!0);p=(d.y||0)+g.height-n;p>c.plotHeight&&("top"===h&&0>=m?(b.verticalAlign="bottom",b.inside=!0):m+=c.plotHeight-p,t=!0);t&&(b.x=k,b.y=m,a.placed=!e,a.align(b,void 0,l));return t}function M(a,b){var f=[],d;if(q(a)&&!q(b))f=a.map(function(a){return k(a,b)});else if(q(b)&&!q(a))f=b.map(function(b){return k(a,b)});else if(q(a)||q(b))for(d=
|
|
|
+Math.max(a.length,b.length);d--;)f[d]=k(a[d],b[d]);else f=k(a,b);return f}function z(a,b,d,g,l){var e=this.chart,c=e.inverted,f=this.xAxis,h=f.reversed,n=c?b.height/2:b.width/2;a=(a=a.pointWidth)?a/2:0;b.startXPos=c?l.x:h?-n-a:f.width-n+a;b.startYPos=c?h?this.yAxis.height-n+a:-n-a:l.y;g?"hidden"===b.visibility&&(b.show(),b.attr({opacity:0}).animate({opacity:1})):b.attr({opacity:1}).animate({opacity:0},void 0,b.hide);e.hasRendered&&(d&&b.attr({x:b.startXPos,y:b.startYPos}),b.placed=!0)}var w=[];a.compose=
|
|
|
+function(a){if(-1===w.indexOf(a)){var b=a.prototype;w.push(a);b.alignDataLabel=l;b.drawDataLabels=B;b.justifyDataLabel=r;b.setDataLabelStartPos=z}}})(l||(l={}));"";return l});P(a,"Series/Column/ColumnDataLabel.js",[a["Core/Series/DataLabel.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,r,D){var y=r.series,x=D.merge,H=D.pick,I;(function(r){function q(a,d,b,l,k){var g=this.chart.inverted,m=a.series,q=(m.xAxis?m.xAxis.len:this.chart.plotSizeX)||0;m=(m.yAxis?m.yAxis.len:this.chart.plotSizeY)||
|
|
|
+0;var r=a.dlBox||a.shapeArgs,M=H(a.below,a.plotY>H(this.translatedThreshold,m)),z=H(b.inside,!!this.options.stacking);r&&(l=x(r),0>l.y&&(l.height+=l.y,l.y=0),r=l.y+l.height-m,0<r&&r<l.height&&(l.height-=r),g&&(l={x:m-l.y-l.height,y:q-l.x-l.width,width:l.height,height:l.width}),z||(g?(l.x+=M?0:l.width,l.width=0):(l.y+=M?l.height:0,l.height=0)));b.align=H(b.align,!g||z?"center":M?"right":"left");b.verticalAlign=H(b.verticalAlign,g||z?"middle":M?"top":"bottom");y.prototype.alignDataLabel.call(this,a,
|
|
|
+d,b,l,k);b.inside&&a.contrastColor&&d.css({color:a.contrastColor})}var k=[];r.compose=function(g){a.compose(y);-1===k.indexOf(g)&&(k.push(g),g.prototype.alignDataLabel=q)}})(I||(I={}));return I});P(a,"Series/Bar/BarSeries.js",[a["Series/Column/ColumnSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,r,D){var y=this&&this.__extends||function(){var a=function(r,q){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var d in g)g.hasOwnProperty(d)&&
|
|
|
+(a[d]=g[d])};return a(r,q)};return function(r,q){function k(){this.constructor=r}a(r,q);r.prototype=null===q?Object.create(q):(k.prototype=q.prototype,new k)}}(),x=D.extend,H=D.merge;D=function(r){function x(){var a=null!==r&&r.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}y(x,r);x.defaultOptions=H(a.defaultOptions,{});return x}(a);x(D.prototype,{inverted:!0});r.registerSeriesType("bar",D);"";return D});P(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,r,D,G){var y=this&&this.__extends||function(){var a=function(k,g){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(k,g)};return function(k,g){function d(){this.constructor=k}a(k,g);k.prototype=null===g?Object.create(g):(d.prototype=g.prototype,new d)}}(),H=G.addEvent,I=G.extend,E=G.merge;G=
|
|
|
+function(a){function k(){var g=null!==a&&a.apply(this,arguments)||this;g.data=void 0;g.options=void 0;g.points=void 0;return g}y(k,a);k.prototype.applyJitter=function(){var a=this,d=this.options.jitter,b=this.points.length;d&&this.points.forEach(function(g,k){["x","y"].forEach(function(l,m){var q="plot"+l.toUpperCase();if(d[l]&&!g.isNull){var A=a[l+"Axis"];var r=d[l]*A.transA;if(A&&!A.isLog){var z=Math.max(0,g[q]-r);A=Math.min(A.len,g[q]+r);m=1E4*Math.sin(k+m*b);g[q]=z+(A-z)*(m-Math.floor(m));"x"===
|
|
|
+l&&(g.clientX=g.plotX)}}})})};k.prototype.drawGraph=function(){this.options.lineWidth?a.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};k.defaultOptions=E(r.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 k}(r);I(G.prototype,{drawTracker:a.prototype.drawTracker,
|
|
|
+sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});H(G,"afterTranslate",function(){this.applyJitter()});D.registerSeriesType("scatter",G);"";return G});P(a,"Series/CenteredUtilities.js",[a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,r,D){var y=a.deg2rad,x=D.isNumber,H=D.pick,I=D.relativeLength,E;(function(a){a.getCenter=function(){var a=this.options,g=this.chart,d=2*(a.slicedOffset||0),
|
|
|
+b=g.plotWidth-2*d,l=g.plotHeight-2*d,m=a.center,q=Math.min(b,l),y=a.thickness,B=a.size,J=a.innerSize||0;"string"===typeof B&&(B=parseFloat(B));"string"===typeof J&&(J=parseFloat(J));a=[H(m[0],"50%"),H(m[1],"50%"),H(B&&0>B?void 0:a.size,"100%"),H(J&&0>J?void 0:a.innerSize||0,"0%")];!g.angular||this instanceof r||(a[3]=0);for(m=0;4>m;++m)B=a[m],g=2>m||2===m&&/%$/.test(B),a[m]=I(B,[b,l,q,a[2]][m])+(g?d:0);a[3]>a[2]&&(a[3]=a[2]);x(y)&&2*y<a[2]&&0<y&&(a[3]=a[2]-2*y);return a};a.getStartAndEndRadians=function(a,
|
|
|
+g){a=x(a)?a:0;g=x(g)&&g>a&&360>g-a?g:a+360;return{start:y*(a+-90),end:y*(g+-90)}}})(E||(E={}));"";return E});P(a,"Series/Pie/PiePoint.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,r,D){var y=this&&this.__extends||function(){var a=function(d,b){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(d,b)};return function(d,b){function g(){this.constructor=
|
|
|
+d}a(d,b);d.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),x=a.setAnimation,H=D.addEvent,I=D.defined;a=D.extend;var E=D.isNumber,q=D.pick,k=D.relativeLength;r=function(a){function d(){var b=null!==a&&a.apply(this,arguments)||this;b.labelDistance=void 0;b.options=void 0;b.series=void 0;return b}y(d,a);d.prototype.getConnectorPath=function(){var a=this.labelPosition,d=this.series.options.dataLabels,g=this.connectorShapes,k=d.connectorShape;g[k]&&(k=g[k]);return k.call(this,{x:a.final.x,
|
|
|
+y:a.final.y,alignment:a.alignment},a.connectorPosition,d)};d.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};d.prototype.haloPath=function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:b.r-1,start:b.start,end:b.end})};d.prototype.init=function(){var b=this;a.prototype.init.apply(this,arguments);this.name=q(this.name,"Slice");var d=function(a){b.slice("select"===
|
|
|
+a.type)};H(this,"select",d);H(this,"unselect",d);return this};d.prototype.isValid=function(){return E(this.y)&&0<=this.y};d.prototype.setVisible=function(a,d){var b=this,g=this.series,l=g.chart,k=g.options.ignoreHiddenPoint;d=q(d,k);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,g.options.data[g.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(d){if(b[d])b[d][a?"show":"hide"](a)}),this.legendItem&&l.legend.colorizeItem(this,
|
|
|
+a),a||"hover"!==this.state||this.setState(""),k&&(g.isDirty=!0),d&&l.redraw())};d.prototype.slice=function(a,d,g){var b=this.series;x(g,b.chart);q(d,!0);this.sliced=this.options.sliced=I(a)?a:!this.sliced;b.options.data[b.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return d}(r);a(r.prototype,{connectorShapes:{fixedOffset:function(a,d,b){var g=d.breakAt;d=d.touchingSliceAt;return[["M",a.x,
|
|
|
+a.y],b.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*g.x-d.x,2*g.y-d.y,g.x,g.y]:["L",g.x,g.y],["L",d.x,d.y]]},straight:function(a,d){d=d.touchingSliceAt;return[["M",a.x,a.y],["L",d.x,d.y]]},crookedLine:function(a,d,b){d=d.touchingSliceAt;var g=this.series,m=g.center[0],q=g.chart.plotWidth,r=g.chart.plotLeft;g=a.alignment;var B=this.shapeArgs.r;b=k(b.crookDistance,1);q="left"===g?m+B+(q+r-m-B)*(1-b):r+(m-B)*b;b=["L",q,a.y];m=!0;if("left"===g?q>a.x||q<d.x:q<a.x||q>d.x)m=!1;a=[["M",a.x,a.y]];
|
|
|
+m&&a.push(b);a.push(["L",d.x,d.y]);return a}}});return r});P(a,"Series/Pie/PieSeries.js",[a["Series/CenteredUtilities.js"],a["Series/Column/ColumnSeries.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.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,r,D,G,x,H,I,E,q){var k=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 d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),g=a.getStartAndEndRadians;D=D.noop;var d=q.clamp,b=q.extend,l=q.fireEvent,m=q.merge,A=q.pick,y=q.relativeLength;q=function(a){function b(){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}k(b,a);b.prototype.animate=function(a){var b=this,d=b.points,g=b.startAngleRad;a||d.forEach(function(a){var f=a.graphic,d=a.shapeArgs;f&&d&&(f.attr({r:A(a.startR,b.center&&b.center[3]/2),start:g,end:g}),f.animate({r:d.r,start:d.start,end:d.end},b.options.animation))})};b.prototype.drawEmpty=function(){var a=this.startAngleRad,b=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var g=this.center[0];var f=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(g,
|
|
|
+f,this.center[1]/2,0,a,b).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:E.arc(g,f,this.center[2]/2,0,{start:a,end:b,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":d.borderWidth,fill:d.fillColor||"none",stroke:d.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};b.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(b){b.graphic&&b.hasNewShapeType()&&(b.graphic=b.graphic.destroy());b.graphic||
|
|
|
+(b.graphic=a[b.shapeType](b.shapeArgs).add(b.series.group),b.delayedRendering=!0)})};b.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};b.prototype.getX=function(a,b,g){var l=this.center,f=this.radii?this.radii[g.index]||0:l[2]/2;a=Math.asin(d((a-l[1])/(f+g.labelDistance),-1,1));return l[0]+(b?-1:1)*Math.cos(a)*(f+g.labelDistance)+(0<g.labelDistance?(b?-1:1)*this.options.dataLabels.padding:0)};b.prototype.hasData=function(){return!!this.processedXData.length};
|
|
|
+b.prototype.redrawPoints=function(){var a=this,b=a.chart,d=b.renderer,g=a.options.shadow,f,l,h,k;this.drawEmpty();!g||a.shadowGroup||b.styledMode||(a.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(e){var c={};l=e.graphic;if(!e.isNull&&l){var p=void 0;k=e.shapeArgs;f=e.getTranslate();b.styledMode||(p=e.shadowGroup,g&&!p&&(p=e.shadowGroup=d.g("shadow").add(a.shadowGroup)),p&&p.attr(f),h=a.pointAttribs(e,e.selected&&"select"));e.delayedRendering?(l.setRadialReference(a.center).attr(k).attr(f),
|
|
|
+b.styledMode||l.attr(h).attr({"stroke-linejoin":"round"}).shadow(g,p),e.delayedRendering=!1):(l.setRadialReference(a.center),b.styledMode||m(!0,c,h),m(!0,c,k,f),l.animate(c));l.attr({visibility:e.visible?"inherit":"hidden"});l.addClass(e.getClassName(),!0)}else l&&(e.graphic=l.destroy())})};b.prototype.sortByAngle=function(a,b){a.sort(function(a,d){return"undefined"!==typeof a.angle&&(d.angle-a.angle)*b})};b.prototype.translate=function(a){this.generatePoints();var b=this.options,d=b.slicedOffset,
|
|
|
+k=d+(b.borderWidth||0),f=g(b.startAngle,b.endAngle),m=this.startAngleRad=f.start;f=(this.endAngleRad=f.end)-m;var h=this.points,t=b.dataLabels.distance;b=b.ignoreHiddenPoint;var e=h.length,c,q=0;a||(this.center=a=this.getCenter());for(c=0;c<e;c++){var C=h[c];var n=m+q*f;!C.isValid()||b&&!C.visible||(q+=C.percentage/100);var u=m+q*f;var K={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*n)/1E3,end:Math.round(1E3*u)/1E3};C.shapeType="arc";C.shapeArgs=K;C.labelDistance=A(C.options.dataLabels&&
|
|
|
+C.options.dataLabels.distance,t);C.labelDistance=y(C.labelDistance,K.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,C.labelDistance);u=(u+n)/2;u>1.5*Math.PI?u-=2*Math.PI:u<-Math.PI/2&&(u+=2*Math.PI);C.slicedTranslation={translateX:Math.round(Math.cos(u)*d),translateY:Math.round(Math.sin(u)*d)};K=Math.cos(u)*a[2]/2;var r=Math.sin(u)*a[2]/2;C.tooltipPos=[a[0]+.7*K,a[1]+.7*r];C.half=u<-Math.PI/2||u>Math.PI/2?1:0;C.angle=u;n=Math.min(k,C.labelDistance/5);C.labelPosition={natural:{x:a[0]+K+
|
|
|
+Math.cos(u)*C.labelDistance,y:a[1]+r+Math.sin(u)*C.labelDistance},"final":{},alignment:0>C.labelDistance?"center":C.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+K+Math.cos(u)*n,y:a[1]+r+Math.sin(u)*n},touchingSliceAt:{x:a[0]+K,y:a[1]+r}}}}l(this,"afterTranslate")};b.prototype.updateTotals=function(){var a=this.points,b=a.length,d=this.options.ignoreHiddenPoint,g,f=0;for(g=0;g<b;g++){var l=a[g];!l.isValid()||d&&!l.visible||(f+=l.y)}this.total=f;for(g=0;g<b;g++)l=a[g],l.percentage=0<f&&(l.visible||
|
|
|
+!d)?l.y/f*100:0,l.total=f};b.defaultOptions=m(H.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:"#ffffff",
|
|
|
+borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return b}(H);b(q.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:G.drawRectangle,drawTracker:r.prototype.drawTracker,getCenter:a.getCenter,getSymbol:D,isCartesian:!1,noSharedTooltip:!0,pointAttribs:r.prototype.pointAttribs,pointClass:x,requireSorting:!1,searchPoint:D,trackerGroups:["group","dataLabelsGroup"]});I.registerSeriesType("pie",q);"";return q});P(a,"Series/Pie/PieDataLabel.js",[a["Core/Series/DataLabel.js"],
|
|
|
+a["Core/Globals.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,r,D,G,x){var y=r.noop,I=D.distribute,E=G.series,q=x.arrayMax,k=x.clamp,g=x.defined,d=x.merge,b=x.pick,l=x.relativeLength,m;(function(m){function r(){var a=this,l=a.data,f=a.chart,k=a.options.dataLabels||{},h=k.connectorPadding,m=f.plotWidth,e=f.plotHeight,c=f.plotLeft,F=Math.round(f.chartWidth/3),C=a.center,n=C[2]/2,u=C[1],K=[[],[]],r=[0,0,0,0],z=a.dataLabelPositioners,
|
|
|
+A,B,y,x,D,L,J,H,M,G,P,T;a.visible&&(k.enabled||a._hasPointLabels)&&(l.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),E.prototype.drawDataLabels.apply(a),l.forEach(function(a){a.dataLabel&&(a.visible?(K[a.half].push(a),a.dataLabel._pos=null,!g(k.style.width)&&!g(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>F&&(a.dataLabel.css({width:Math.round(.7*
|
|
|
+F)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),K.forEach(function(d,l){var p=d.length,t=[],q;if(p){a.sortByAngle(d,l-.5);if(0<a.maxLabelDistance){var F=Math.max(0,u-n-a.maxLabelDistance);var v=Math.min(u+n+a.maxLabelDistance,f.plotHeight);d.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,u-n-a.labelDistance),a.bottom=Math.min(u+n+a.labelDistance,f.plotHeight),q=a.dataLabel.getBBox().height||
|
|
|
+21,a.distributeBox={target:a.labelPosition.natural.y-a.top+q/2,size:q,rank:a.y},t.push(a.distributeBox))});F=v+q-F;I(t,F,F/5)}for(P=0;P<p;P++){A=d[P];L=A.labelPosition;x=A.dataLabel;G=!1===A.visible?"hidden":"inherit";M=F=L.natural.y;t&&g(A.distributeBox)&&("undefined"===typeof A.distributeBox.pos?G="hidden":(J=A.distributeBox.size,M=z.radialDistributionY(A)));delete A.positionIndex;if(k.justify)H=z.justify(A,n,C);else switch(k.alignTo){case "connectors":H=z.alignToConnectors(d,l,m,c);break;case "plotEdges":H=
|
|
|
+z.alignToPlotEdges(x,l,m,c);break;default:H=z.radialDistributionX(a,A,M,F)}x._attr={visibility:G,align:L.alignment};T=A.options.dataLabels||{};x._pos={x:H+b(T.x,k.x)+({left:h,right:-h}[L.alignment]||0),y:M+b(T.y,k.y)-10};L.final.x=H;L.final.y=M;b(k.crop,!0)&&(D=x.getBBox().width,F=null,H-D<h&&1===l?(F=Math.round(D-H+h),r[3]=Math.max(F,r[3])):H+D>m-h&&0===l&&(F=Math.round(H+D-m+h),r[1]=Math.max(F,r[1])),0>M-J/2?r[0]=Math.max(Math.round(-M+J/2),r[0]):M+J/2>e&&(r[2]=Math.max(Math.round(M+J/2-e),r[2])),
|
|
|
+x.sideOverflow=F)}}}),0===q(r)||this.verifyDataLabelOverflow(r))&&(this.placeDataLabels(),this.points.forEach(function(c){T=d(k,c.options.dataLabels);if(B=b(T.connectorWidth,1)){var e;y=c.connector;if((x=c.dataLabel)&&x._pos&&c.visible&&0<c.labelDistance){G=x._attr.visibility;if(e=!y)c.connector=y=f.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+c.colorIndex+(c.className?" "+c.className:"")).add(a.dataLabelsGroup),f.styledMode||y.attr({"stroke-width":B,stroke:T.connectorColor||
|
|
|
+c.color||"#666666"});y[e?"attr":"animate"]({d:c.getConnectorPath()});y.attr("visibility",G)}else y&&(c.connector=y.destroy())}}))}function A(){this.points.forEach(function(a){var b=a.dataLabel,f;b&&a.visible&&((f=b._pos)?(b.sideOverflow&&(b._attr.width=Math.max(b.getBBox().width-b.sideOverflow,0),b.css({width:b._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?"animate":"attr"](f),b.moved=!0):b&&b.attr({y:-9999}));
|
|
|
+delete a.distributeBox},this)}function x(a){var b=this.center,f=this.options,d=f.center,g=f.minSize||80,m=null!==f.size;if(!m){if(null!==d[0])var e=Math.max(b[2]-Math.max(a[1],a[3]),g);else e=Math.max(b[2]-a[1]-a[3],g),b[0]+=(a[3]-a[1])/2;null!==d[1]?e=k(e,g,b[2]-Math.max(a[0],a[2])):(e=k(e,g,b[2]-a[0]-a[2]),b[1]+=(a[0]-a[2])/2);e<b[2]?(b[2]=e,b[3]=Math.min(f.thickness?Math.max(0,e-2*f.thickness):Math.max(0,l(f.innerSize||0,e)),e),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):m=!0}return m}
|
|
|
+var D=[],z={radialDistributionY:function(a){return a.top+a.distributeBox.pos},radialDistributionX:function(a,b,f,d){return a.getX(f<b.top+2||f>b.bottom-2?d:f,b.half,b)},justify:function(a,b,f){return f[0]+(a.half?-1:1)*(b+a.labelDistance)},alignToPlotEdges:function(a,b,f,d){a=a.getBBox().width;return b?a+d:f-a-d},alignToConnectors:function(a,b,f,d){var g=0,l;a.forEach(function(a){l=a.dataLabel.getBBox().width;l>g&&(g=l)});return b?g+d:f-g-d}};m.compose=function(b){a.compose(E);-1===D.indexOf(b)&&
|
|
|
+(D.push(b),b=b.prototype,b.dataLabelPositioners=z,b.alignDataLabel=y,b.drawDataLabels=r,b.placeDataLabels=A,b.verifyDataLabelOverflow=x)}})(m||(m={}));return m});P(a,"Extensions/OverlappingDataLabels.js",[a["Core/Chart/Chart.js"],a["Core/Utilities.js"]],function(a,r){function y(a,g){var d=!1;if(a){var b=a.newOpacity;a.oldOpacity!==b&&(a.alignAttr&&a.placed?(a[b?"removeClass":"addClass"]("highcharts-data-label-hidden"),d=!0,a.alignAttr.opacity=b,a[a.isOld?"animate":"attr"](a.alignAttr,null,function(){g.styledMode||
|
|
|
+a.css({pointerEvents:b?"auto":"none"})}),x(g,"afterHideOverlappingLabel")):a.attr({opacity:b}));a.isOld=!0}return d}var G=r.addEvent,x=r.fireEvent,H=r.isArray,I=r.isNumber,E=r.objectEach,q=r.pick;G(a,"render",function(){var a=this,g=[];(this.labelCollectors||[]).forEach(function(a){g=g.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&E(a.stacking.stacks,function(a){E(a,function(a){a.label&&g.push(a.label)})})});(this.series||
|
|
|
+[]).forEach(function(d){var b=d.options.dataLabels;d.visible&&(!1!==b.enabled||d._hasPointLabels)&&(b=function(b){return b.forEach(function(b){b.visible&&(H(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[]).forEach(function(d){var l=d.options;d.labelrank=q(l.labelrank,b.labelrank,b.shapeArgs&&b.shapeArgs.height);l.allowOverlap?(d.oldOpacity=d.opacity,d.newOpacity=1,y(d,a)):g.push(d)})})},b(d.nodes||[]),b(d.points))});this.hideOverlappingLabels(g)});a.prototype.hideOverlappingLabels=function(a){var g=
|
|
|
+this,d=a.length,b=g.renderer,l,k,q,r=!1;var B=function(a){var d,g=a.box?0:a.padding||0,f=d=0,l;if(a&&(!a.alignAttr||a.placed)){var h=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var k=a.parentGroup;a.width||(d=a.getBBox(),a.width=d.width,a.height=d.height,d=b.fontMetrics(null,a.element).h);var e=a.width-2*g;(l={left:"0",center:"0.5",right:"1"}[a.alignValue])?f=+l*e:I(a.x)&&Math.round(a.x)!==a.translateX&&(f=a.x-a.translateX);return{x:h.x+(k.translateX||0)+g-(f||0),y:h.y+(k.translateY||0)+g-d,width:a.width-
|
|
|
+2*g,height:a.height-2*g}}};for(k=0;k<d;k++)if(l=a[k])l.oldOpacity=l.opacity,l.newOpacity=1,l.absoluteBox=B(l);a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(k=0;k<d;k++){var D=(B=a[k])&&B.absoluteBox;for(l=k+1;l<d;++l){var E=(q=a[l])&&q.absoluteBox;!D||!E||B===q||0===B.newOpacity||0===q.newOpacity||"hidden"===B.visibility||"hidden"===q.visibility||E.x>=D.x+D.width||E.x+E.width<=D.x||E.y>=D.y+D.height||E.y+E.height<=D.y||((B.labelrank<q.labelrank?B:q).newOpacity=0)}}a.forEach(function(a){y(a,
|
|
|
+g)&&(r=!0)});r&&x(g,"afterHideAllOverlappingLabels")}});P(a,"Core/Responsive.js",[a["Core/Utilities.js"]],function(a){var r=a.extend,y=a.find,G=a.isArray,x=a.isObject,H=a.merge,I=a.objectEach,E=a.pick,q=a.splat,k=a.uniqueKey,g;(function(a){var b=[];a.compose=function(a){-1===b.indexOf(a)&&(b.push(a),r(a.prototype,d.prototype));return a};var d=function(){function a(){}a.prototype.currentOptions=function(a){function b(a,g,l,k){var f;I(a,function(a,h){if(!k&&-1<d.collectionsWithUpdate.indexOf(h)&&g[h])for(a=
|
|
|
+q(a),l[h]=[],f=0;f<Math.max(a.length,g[h].length);f++)g[h][f]&&(void 0===a[f]?l[h][f]=g[h][f]:(l[h][f]={},b(a[f],g[h][f],l[h][f],k+1)));else x(a)?(l[h]=G(a)?[]:{},b(a,g[h]||{},l[h],k+1)):l[h]="undefined"===typeof g[h]?null:g[h]})}var d=this,g={};b(a,this.options,g,0);return g};a.prototype.matchResponsiveRule=function(a,b){var d=a.condition;(d.callback||function(){return this.chartWidth<=E(d.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=E(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=E(d.minWidth,
|
|
|
+0)&&this.chartHeight>=E(d.minHeight,0)}).call(this)&&b.push(a._id)};a.prototype.setResponsive=function(a,b){var d=this,g=this.options.responsive,l=this.currentResponsive,m=[];!b&&g&&g.rules&&g.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=k());d.matchResponsiveRule(a,m)},this);b=H.apply(void 0,m.map(function(a){return y((g||{}).rules||[],function(b){return b._id===a})}).map(function(a){return a&&a.chartOptions}));b.isResponsiveOptions=!0;m=m.toString()||void 0;m!==(l&&l.ruleIds)&&(l&&
|
|
|
+this.update(l.undoOptions,a,!0),m?(l=this.currentOptions(b),l.isResponsiveOptions=!0,this.currentResponsive={ruleIds:m,mergedOptions:b,undoOptions:l},this.update(b,a,!0)):this.currentResponsive=void 0)};return a}()})(g||(g={}));"";"";return g});P(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/RendererUtilities.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/DateTimeAxis.js"],a["Core/Axis/LogarithmicAxis.js"],a["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],a["Core/Axis/Tick.js"],a["Core/Tooltip.js"],a["Core/Series/Point.js"],a["Core/Pointer.js"],a["Core/MSPointer.js"],a["Core/Legend/Legend.js"],a["Core/Chart/Chart.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],
|
|
|
+a["Series/Column/ColumnSeries.js"],a["Series/Column/ColumnDataLabel.js"],a["Series/Pie/PieSeries.js"],a["Series/Pie/PieDataLabel.js"],a["Core/Series/DataLabel.js"],a["Core/Responsive.js"],a["Core/Color/Color.js"],a["Core/Time.js"]],function(a,r,D,G,x,H,I,E,q,k,g,d,b,l,m,A,L,B,J,M,z,w,p,f,v,h,t,e,c,F,C,n,u){a.animate=x.animate;a.animObject=x.animObject;a.getDeferredAnimation=x.getDeferredAnimation;a.setAnimation=x.setAnimation;a.stop=x.stop;a.timers=G.timers;a.AST=H;a.Axis=b;a.Chart=p;a.chart=p.chart;
|
|
|
+a.Fx=G;a.Legend=w;a.PlotLineOrBand=A;a.Point=J;a.Pointer=z.isRequired()?z:M;a.Series=f;a.SVGElement=q;a.SVGRenderer=k;a.Tick=L;a.Time=u;a.Tooltip=B;a.Color=n;a.color=n.parse;d.compose(k);g.compose(q);a.defaultOptions=D.defaultOptions;a.getOptions=D.getOptions;a.time=D.defaultTime;a.setOptions=D.setOptions;a.dateFormat=I.dateFormat;a.format=I.format;a.numberFormat=I.numberFormat;a.addEvent=r.addEvent;a.arrayMax=r.arrayMax;a.arrayMin=r.arrayMin;a.attr=r.attr;a.clearTimeout=r.clearTimeout;a.correctFloat=
|
|
|
+r.correctFloat;a.createElement=r.createElement;a.css=r.css;a.defined=r.defined;a.destroyObjectProperties=r.destroyObjectProperties;a.discardElement=r.discardElement;a.distribute=E.distribute;a.erase=r.erase;a.error=r.error;a.extend=r.extend;a.extendClass=r.extendClass;a.find=r.find;a.fireEvent=r.fireEvent;a.getMagnitude=r.getMagnitude;a.getStyle=r.getStyle;a.inArray=r.inArray;a.isArray=r.isArray;a.isClass=r.isClass;a.isDOMElement=r.isDOMElement;a.isFunction=r.isFunction;a.isNumber=r.isNumber;a.isObject=
|
|
|
+r.isObject;a.isString=r.isString;a.keys=r.keys;a.merge=r.merge;a.normalizeTickInterval=r.normalizeTickInterval;a.objectEach=r.objectEach;a.offset=r.offset;a.pad=r.pad;a.pick=r.pick;a.pInt=r.pInt;a.relativeLength=r.relativeLength;a.removeEvent=r.removeEvent;a.seriesType=v.seriesType;a.splat=r.splat;a.stableSort=r.stableSort;a.syncTimeout=r.syncTimeout;a.timeUnits=r.timeUnits;a.uniqueKey=r.uniqueKey;a.useSerialIds=r.useSerialIds;a.wrap=r.wrap;t.compose(h);F.compose(f);l.compose(b);m.compose(b);c.compose(e);
|
|
|
+A.compose(b);C.compose(p);return a});P(a,"Core/Axis/OrdinalAxis.js",[a["Core/Axis/Axis.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,r,D,G){var x=G.addEvent,y=G.correctFloat,I=G.css,E=G.defined,q=G.error,k=G.pick,g=G.timeUnits,d=[],b;(function(a){function b(a,b,c,f,d,n,h){void 0===d&&(d=[]);void 0===n&&(n=0);var e={},l=this.options.tickPixelInterval,k=this.chart.time,u=[],m,p,t=0,C=[],F=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!d||
|
|
|
+3>d.length||"undefined"===typeof b)return k.getTimeTicks.apply(k,arguments);var v=d.length;for(m=0;m<v;m++){var r=m&&d[m-1]>c;d[m]<b&&(t=m);if(m===v-1||d[m+1]-d[m]>5*n||r){if(d[m]>F){for(p=k.getTimeTicks(a,d[t],d[m],f);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);u.push(C.length);C=C.concat(p)}t=m+1}if(r)break}if(p){p=p.info;if(h&&p.unitRange<=g.hour){m=C.length-1;for(t=1;t<m;t++)if(k.dateFormat("%d",C[t])!==k.dateFormat("%d",C[t-1])){e[C[t]]="day";var w=!0}w&&(e[C[0]]="day");p.higherRanks=
|
|
|
+e}p.segmentStarts=u;C.info=p}else q(12,!1,this.chart);if(h&&E(l)){p=C.length;k=[];t=[];m=void 0;for(w=p;w--;)u=this.translate(C[w]),m&&(t[w]=m-u),k[w]=m=u;t.sort();t=t[Math.floor(t.length/2)];t<.6*l&&(t=null);w=C[p-1]>c?p-1:p;for(m=void 0;w--;)u=k[w],p=Math.abs(m-u),m&&p<.8*l&&(null===t||p<.8*t)?(e[C[w]]&&!e[C[w+1]]?(p=w+1,m=u):p=w,C.splice(p,1)):m=u}return C}function l(a){var b=this.ordinal.positions;if(!b)return a;var c=b.length-1;if(0>a)a=b[0];else if(a>c)a=b[c];else{c=Math.floor(a);var d=a-c}return"undefined"!==
|
|
|
+typeof d&&"undefined"!==typeof b[c]?b[c]+(d?d*(b[c+1]-b[c]):0):a}function L(a){var b=this.ordinal,c=b.positions;if(!c)return a;var d=(a-(this.old?this.old.min:this.min))*(this.old?this.old.transA:this.transA)+this.minPixelPadding;0<d&&d<this.left+this.len||(b.extendedOrdinalPositions||(b.extendedOrdinalPositions=b.getExtendedPositions()),c=b.extendedOrdinalPositions);if(c&&c.length){a=b.getIndexOfPoint(d,c);b=y(a%1);if(0<=a&&a<c.length-1)return c[Math.floor(a)]+b*(c[Math.ceil(a)]-c[Math.floor(a)]);
|
|
|
+b=c.length;d=c[0];c=c[b-1];var f=(c-d)/(b-1);return 0>a?d+f*a:c+f*(a-b)}return a}function B(b,e){var c=a.Additions.findIndexOf(b,e,!0);return b[c]===e?c:c+(e-b[c])/(b[c+1]-b[c])}function H(){this.ordinal||(this.ordinal=new a.Additions(this))}function G(){this.isXAxis&&E(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&E(this.userMin)&&
|
|
|
+(this.min+=this.options.overscroll))}function z(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function w(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function p(a){var b=this.xAxis[0],c=b.options.overscroll,d=a.originalEvent.chartX,f=this.options.chart.panning,g=!1;if(f&&"y"!==f.type&&b.options.ordinal&&b.series.length){var h=this.mouseDownX,
|
|
|
+l=b.getExtremes(),k=l.dataMax,m=l.min,p=l.max,t=this.hoverPoints,q=b.closestPointRange||b.ordinal&&b.ordinal.overscrollPointsRange;h=(h-d)/(b.translationSlope*(b.ordinal.slope||q));q=b.ordinal.getExtendedPositions();q={ordinal:{positions:q,extendedOrdinalPositions:q}};var v=b.index2val,r=b.val2lin,w=void 0,A=w=void 0,z=void 0;q.ordinal.positions?1<Math.abs(h)&&(t&&t.forEach(function(a){a.setState()}),0>h?(A=q,z=b.ordinal.positions?b:q):(A=b.ordinal.positions?b:q,z=q),w=z.ordinal.positions,k>w[w.length-
|
|
|
+1]&&w.push(k),this.fixedRange=p-m,w=b.navigatorAxis.toFixedRange(void 0,void 0,v.apply(A,[r.apply(A,[m,!0])+h]),v.apply(z,[r.apply(z,[p,!0])+h])),w.min>=Math.min(l.dataMin,m)&&w.max<=Math.max(k,p)+c&&b.setExtremes(w.min,w.max,!0,!1,{trigger:"pan"}),this.mouseDownX=d,I(this.container,{cursor:"move"})):g=!0}else g=!0;g||f&&/y/.test(f.type)?c&&(b.max=b.dataMax+c):a.preventDefault()}function f(){var a=this.xAxis;a&&a.options.ordinal&&(delete a.ordinal.index,delete a.ordinal.extendedOrdinalPositions)}
|
|
|
+function v(a,b){var c=this.ordinal,e=c.positions,d=c.slope,f=c.extendedOrdinalPositions;if(!e)return a;var g=e.length;if(e[0]<=a&&e[g-1]>=a)a=B(e,a);else{f||(f=c.getExtendedPositions&&c.getExtendedPositions(),c.extendedOrdinalPositions=f);if(!f||!f.length)return a;g=f.length;d||(d=(f[g-1]-f[0])/g);e=B(f,e[0]);a>=f[0]&&a<=f[g-1]?a=B(f,a)-e:a<f[0]?(a=f[0]-a,a=-e-a/d):(a-=f[g-1],a=a/d+g-e)}return b?a:d*(a||0)+c.offset}a.compose=function(a,e,c){if(-1===d.indexOf(a)){d.push(a);var g=a.prototype;g.getTimeTicks=
|
|
|
+b;g.index2val=l;g.lin2val=L;g.val2lin=v;g.ordinal2lin=g.val2lin;x(a,"afterInit",H);x(a,"foundExtremes",G);x(a,"afterSetScale",z);x(a,"initialAxisTranslation",w)}-1===d.indexOf(c)&&(d.push(c),x(c,"pan",p));-1===d.indexOf(e)&&(d.push(e),x(e,"updatedData",f));return a};var h=function(){function a(a){this.index={};this.axis=a}a.prototype.beforeSetTickPositions=function(){var a=this.axis,c=a.ordinal,b=a.getExtremes(),f=b.min,d=b.max,g=a.isXAxis&&!!a.options.breaks;b=a.options.ordinal;var h=a.chart.options.chart.ignoreHiddenSeries,
|
|
|
+l,m,p=[],q=Number.MAX_VALUE,t=!1;if(b||g){a.series.forEach(function(a,c){l=[];if(!(h&&!1===a.visible||!1===a.takeOrdinalPosition&&!g)&&(p=p.concat(a.processedXData),v=p.length,p.sort(function(a,c){return a-c}),q=Math.min(q,k(a.closestPointRange,q)),v)){for(c=0;c<v-1;)p[c]!==p[c+1]&&l.push(p[c+1]),c++;l[0]!==p[0]&&l.unshift(p[0]);p=l}});var v=p.length;if(2<v){var w=p[1]-p[0];for(m=v-1;m--&&!t;)p[m+1]-p[m]!==w&&(t=!0);!a.options.keepOrdinalPadding&&(p[0]-f>w||d-p[p.length-1]>w)&&(t=!0)}else a.options.overscroll&&
|
|
|
+(2===v?q=p[1]-p[0]:1===v?(q=a.options.overscroll,p=[p[0],p[0]+q]):q=c.overscrollPointsRange);t||a.forceOrdinal?(a.options.overscroll&&(c.overscrollPointsRange=q,p=p.concat(c.getOverscrollPositions())),c.positions=p,w=a.ordinal2lin(Math.max(f,p[0]),!0),m=Math.max(a.ordinal2lin(Math.min(d,p[p.length-1]),!0),1),c.slope=d=(d-f)/(m-w),c.offset=f-w*d):(c.overscrollPointsRange=k(a.closestPointRange,c.overscrollPointsRange),c.positions=a.ordinal.slope=c.offset=void 0)}a.isOrdinal=b&&t;c.groupIntervalFactor=
|
|
|
+null};a.findIndexOf=function(a,c,b){for(var e=0,f=a.length-1,d;e<f;)d=Math.ceil((e+f)/2),a[d]<=c?e=d:f=d-1;return a[e]===c?e:b?e:-1};a.prototype.getExtendedPositions=function(){var a=this,c=a.axis,b=c.constructor.prototype,f=c.chart,d=c.series[0].currentDataGrouping,g=d?d.count+d.unitName:"raw",h=c.options.overscroll,l=c.getExtremes(),k=void 0,m=a.index;m||(m=a.index={});if(!m[g]){var p={series:[],chart:f,forceOrdinal:!1,getExtremes:function(){return{min:l.dataMin,max:l.dataMax+h}},getGroupPixelWidth:b.getGroupPixelWidth,
|
|
|
+getTimeTicks:b.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:b.ordinal2lin,getIndexOfPoint:b.getIndexOfPoint,val2lin:b.val2lin};p.ordinal.axis=p;c.series.forEach(function(c){k={xAxis:p,xData:c.xData.slice(),chart:f,destroyGroupedData:r.noop,getProcessedData:D.prototype.getProcessedData,applyGrouping:D.prototype.applyGrouping};k.xData=k.xData.concat(a.getOverscrollPositions());k.options={dataGrouping:d?{firstAnchor:"firstPoint",anchor:"middle",
|
|
|
+lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[d.unitName,[d.count]]]}:{enabled:!1}};p.series.push(k);c.processData.apply(k)});k.closestPointRange!==k.basePointRange&&k.currentDataGrouping&&(p.forceOrdinal=!0);c.ordinal.beforeSetTickPositions.apply({axis:p});m[g]=p.ordinal.positions}return m[g]};a.prototype.getGroupIntervalFactor=function(a,c,b){b=b.processedXData;var e=b.length,d=[];var f=this.groupIntervalFactor;if(!f){for(f=0;f<e-1;f++)d[f]=b[f+1]-b[f];d.sort(function(a,
|
|
|
+c){return a-c});d=d[Math.floor(e/2)];a=Math.max(a,b[0]);c=Math.min(c,b[e-1]);this.groupIntervalFactor=f=e*d/(c-a)}return f};a.prototype.getIndexOfPoint=function(b,c){var e=this.axis,f=this.positions?this.positions[0]:0,d=e.series[0].points&&e.series[0].points[0]&&e.series[0].points[0].plotX||e.minPixelPadding;1<e.series.length&&e.series.forEach(function(a){a.points&&E(a.points[0])&&E(a.points[0].plotX)&&a.points[0].plotX<d&&(d=a.points[0].plotX)});b=(b-d)/(e.translationSlope*(this.slope||e.closestPointRange||
|
|
|
+this.overscrollPointsRange));return a.findIndexOf(c,f)+b};a.prototype.getOverscrollPositions=function(){var a=this.axis,c=a.options.overscroll,b=this.overscrollPointsRange,d=[],f=a.dataMax;if(E(b))for(;f<=a.dataMax+c;)f+=b,d.push(f);return d};a.prototype.postProcessTickInterval=function(a){var c=this.axis,b=this.slope;return b?c.options.breaks?c.closestPointRange||a:a/(b/c.closestPointRange):a};return a}();a.Additions=h})(b||(b={}));return b});P(a,"Series/DataModifyComposition.js",[a["Core/Axis/Axis.js"],
|
|
|
+a["Core/Series/Point.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,r,D,G){var x=r.prototype.tooltipFormatter,y=G.addEvent,I=G.arrayMax,E=G.arrayMin,q=G.correctFloat,k=G.defined,g=G.isArray,d=G.isNumber,b=G.isString,l=G.pick,m;(function(a){function m(a,c,f){this.isXAxis||(this.series.forEach(function(e){"compare"===a&&"boolean"!==typeof c?e.setCompare(c,!1):"cumulative"!==a||b(c)||e.setCumulative(c,!1)}),l(f,!0)&&this.chart.redraw())}function r(a){var c=this,b=c.series.chart.numberFormatter,
|
|
|
+e=function(e){a=a.replace("{point."+e+"}",(0<c[e]&&"change"===e?"+":"")+b(c[e],l(c.series.tooltipOptions.changeDecimals,2)))};k(c.change)&&e("change");k(c.cumulativeSum)&&e("cumulativeSum");return x.apply(this,[a])}function A(){var a=this.options.compare;if("percent"===a||"value"===a||this.options.cumulative){var c=new t(this);"percent"===a||"value"===a?c.initCompare(a):c.initCumulative()}this.dataModify=c}function D(a){a=a.dataExtremes;var c=a.activeYData;if(this.dataModify&&a){var b=void 0;this.options.compare?
|
|
|
+b=[this.dataModify.modifyValue(a.dataMin),this.dataModify.modifyValue(a.dataMax)]:this.options.cumulative&&g(c)&&2<=c.length&&(b=t.getCumulativeExtremes(c));b&&(a.dataMin=E(b),a.dataMax=I(b))}}function z(a,c){this.options.compare=this.userOptions.compare=a;this.update({},l(c,!0));!this.dataModify||"value"!==a&&"percent"!==a?this.points.forEach(function(a){delete a.change}):this.dataModify.initCompare(a)}function w(){if(this.xAxis&&this.processedYData&&this.dataModify){var a=this.processedXData,c=
|
|
|
+this.processedYData,b=c.length,f=!0===this.options.compareStart?0:1,g=-1,h;this.pointArrayMap&&(g=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y"));for(h=0;h<b-f;h++){var l=c[h]&&-1<g?c[h][g]:c[h];if(d(l)&&0!==l&&a[h+f]>=(this.xAxis.min||0)){this.dataModify.compareValue=l;break}}}}function p(a,c){this.setModifier("compare",a,c)}function f(a,c){a=l(a,!1);this.options.cumulative=this.userOptions.cumulative=a;this.update({},l(c,!0));this.dataModify?this.dataModify.initCumulative():
|
|
|
+this.points.forEach(function(a){delete a.cumulativeSum})}function v(a,c){this.setModifier("cumulative",a,c)}var h=[];a.compose=function(a,c,b){if(-1===h.indexOf(a)){h.push(a);var e=a.prototype;e.setCompare=z;e.setCumulative=f;y(a,"afterInit",A);y(a,"afterGetExtremes",D);y(a,"afterProcessData",w)}-1===h.indexOf(c)&&(h.push(c),c=c.prototype,c.setCompare=p,c.setModifier=m,c.setCumulative=v);-1===h.indexOf(b)&&(h.push(b),b.prototype.tooltipFormatter=r);return a};var t=function(){function a(a){this.series=
|
|
|
+a}a.prototype.modifyValue=function(){return 0};a.getCumulativeExtremes=function(a){var c=Infinity,b=-Infinity;a.reduce(function(a,e){e=a+e;c=Math.min(c,e,a);b=Math.max(b,e,a);return e});return[c,b]};a.prototype.initCompare=function(a){this.modifyValue=function(c,b){null===c&&(c=0);var e=this.compareValue;return"undefined"!==typeof c&&"undefined"!==typeof e?(c="value"===a?c-e:c/e*100-(100===this.series.options.compareBase?0:100),"undefined"!==typeof b&&(b=this.series.points[b])&&(b.change=c),c):0}};
|
|
|
+a.prototype.initCumulative=function(){this.modifyValue=function(a,b){null===a&&(a=0);if(void 0!==a&&void 0!==b){var c=0<b?this.series.points[b-1]:null;c&&c.cumulativeSum&&(a=q(c.cumulativeSum+a));if(b=this.series.points[b])b.cumulativeSum=a;return a}return 0}};return a}();a.Additions=t})(m||(m={}));"";return m});P(a,"Core/Axis/BrokenAxis.js",[a["Extensions/Stacking.js"],a["Core/Utilities.js"]],function(a,r){var y=r.addEvent,G=r.find,x=r.fireEvent,H=r.isArray,I=r.isNumber,E=r.pick,q;(function(k){function g(){"undefined"!==
|
|
|
+typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function d(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function b(){var a=this.brokenAxis;if(a&&a.hasBreaks){for(var b=this.tickPositions,d=this.tickPositions.info,f=[],g=0;g<b.length;g++)a.isInAnyBreak(b[g])||f.push(b[g]);this.tickPositions=f;this.tickPositions.info=d}}function l(){this.brokenAxis||(this.brokenAxis=new M(this))}function m(){var a=this.options.connectNulls,b=this.points,d=this.xAxis,
|
|
|
+f=this.yAxis;if(this.isDirty)for(var g=b.length;g--;){var h=b[g],l=!(null===h.y&&!1===a)&&(d&&d.brokenAxis&&d.brokenAxis.isInAnyBreak(h.x,!0)||f&&f.brokenAxis&&f.brokenAxis.isInAnyBreak(h.y,!0));h.visible=l?!1:!1!==h.options.visible}}function q(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,E(this.pointArrayMap,["y"]))}function r(a,b){var d=this,f=d.points,g,h,l,e;if(a&&a.brokenAxis&&a.brokenAxis.hasBreaks){var c=a.brokenAxis;b.forEach(function(b){g=c&&c.breakArray||[];h=a.isXAxis?
|
|
|
+a.min:E(d.options.threshold,a.min);f.forEach(function(c){e=E(c["stack"+b.toUpperCase()],c[b]);g.forEach(function(b){if(I(h)&&I(e)){l=!1;if(h<b.from&&e>b.to||h>b.from&&e<b.from)l="pointBreak";else if(h<b.from&&e>b.from&&e<b.to||h>b.from&&e>b.to&&e<b.from)l="pointInBreak";l&&x(a,l,{point:c,brk:b})}})})})}}function B(){var b=this.currentDataGrouping,d=b&&b.gapSize;b=this.points.slice();var g=this.yAxis,f=this.options.gapSize,l=b.length-1,h;if(f&&0<l)for("value"!==this.options.gapUnit&&(f*=this.basePointRange),
|
|
|
+d&&d>f&&d>=this.basePointRange&&(f=d),h=void 0;l--;)h&&!1!==h.visible||(h=b[l+1]),d=b[l],!1!==h.visible&&!1!==d.visible&&(h.x-d.x>f&&(h=(d.x+h.x)/2,b.splice(l+1,0,{isNull:!0,x:h}),g.stacking&&this.options.stacking&&(h=g.stacking.stacks[this.stackKey][h]=new a(g,g.options.stackLabels,!1,h,this.stack),h.total=0)),h=d);return this.getGraphPath(b)}var D=[];k.compose=function(a,k){-1===D.indexOf(a)&&(D.push(a),a.keepProps.push("brokenAxis"),y(a,"init",l),y(a,"afterInit",g),y(a,"afterSetTickPositions",
|
|
|
+b),y(a,"afterSetOptions",d));if(-1===D.indexOf(k)){D.push(k);var p=k.prototype;p.drawBreaks=r;p.gappedPath=B;y(k,"afterGeneratePoints",m);y(k,"afterRender",q)}return a};var M=function(){function a(a){this.hasBreaks=!1;this.axis=a}a.isInBreak=function(a,b){var d=a.repeat||Infinity,g=a.from,h=a.to-a.from;b=b>=g?(b-g)%d:d-(g-b)%d;return a.inclusive?b<=h:b<h&&0!==b};a.lin2Val=function(b){var d=this.brokenAxis;d=d&&d.breakArray;if(!d||!I(b))return b;var f;for(f=0;f<d.length;f++){var g=d[f];if(g.from>=
|
|
|
+b)break;else g.to<b?b+=g.len:a.isInBreak(g,b)&&(b+=g.len)}return b};a.val2Lin=function(b){var d=this.brokenAxis;d=d&&d.breakArray;if(!d||!I(b))return b;var f=b,g;for(g=0;g<d.length;g++){var h=d[g];if(h.to<=b)f-=h.len;else if(h.from>=b)break;else if(a.isInBreak(h,b)){f-=b-h.from;break}}return f};a.prototype.findBreakAt=function(a,b){return G(b,function(b){return b.from<a&&a<b.to})};a.prototype.isInAnyBreak=function(b,d){var f=this.axis,g=f.options.breaks||[],h=g.length,l;if(h&&I(b)){for(;h--;)if(a.isInBreak(g[h],
|
|
|
+b)){var e=!0;l||(l=E(g[h].showPoints,!f.isXAxis))}var c=e&&d?e&&!l:e}return c};a.prototype.setBreaks=function(b,d){var f=this,g=f.axis,h=H(b)&&!!b.length;g.isDirty=f.hasBreaks!==h;f.hasBreaks=h;g.options.breaks=g.userOptions.breaks=b;g.forceRedraw=!0;g.series.forEach(function(a){a.isDirty=!0});h||g.val2lin!==a.val2Lin||(delete g.val2lin,delete g.lin2val);h&&(g.userOptions.ordinal=!1,g.lin2val=a.lin2Val,g.val2lin=a.val2Lin,g.setExtremes=function(a,b,c,d,h){if(f.hasBreaks){for(var e=this.options.breaks||
|
|
|
+[],l;l=f.findBreakAt(a,e);)a=l.to;for(;l=f.findBreakAt(b,e);)b=l.from;b<a&&(b=a)}g.constructor.prototype.setExtremes.call(this,a,b,c,d,h)},g.setAxisTranslation=function(){g.constructor.prototype.setAxisTranslation.call(this);f.unitLength=void 0;if(f.hasBreaks){var b=g.options.breaks||[],e=[],c=[],d=E(g.pointRangePadding,0),h=0,n,l=g.userMin||g.min,k=g.userMax||g.max,m;b.forEach(function(c){n=c.repeat||Infinity;I(l)&&I(k)&&(a.isInBreak(c,l)&&(l+=c.to%n-l%n),a.isInBreak(c,k)&&(k-=k%n-c.from%n))});b.forEach(function(a){q=
|
|
|
+a.from;n=a.repeat||Infinity;if(I(l)&&I(k)){for(;q-n>l;)q-=n;for(;q<l;)q+=n;for(m=q;m<k;m+=n)e.push({value:m,move:"in"}),e.push({value:m+a.to-a.from,move:"out",size:a.breakSize})}});e.sort(function(a,c){return a.value===c.value?("in"===a.move?0:1)-("in"===c.move?0:1):a.value-c.value});var p=0;var q=l;e.forEach(function(a){p+="in"===a.move?1:-1;1===p&&"in"===a.move&&(q=a.value);0===p&&I(q)&&(c.push({from:q,to:a.value,len:a.value-q-(a.size||0)}),h+=a.value-q-(a.size||0))});f.breakArray=c;I(l)&&I(k)&&
|
|
|
+I(g.min)&&(f.unitLength=k-l-h+d,x(g,"afterBreaks"),g.staticScale?g.transA=g.staticScale:f.unitLength&&(g.transA*=(k-g.min+d)/f.unitLength),d&&(g.minPixelPadding=g.transA*(g.minPointOffset||0)),g.min=l,g.max=k)}});E(d,!0)&&g.chart.redraw()};return a}();k.Additions=M})(q||(q={}));return q});P(a,"masters/modules/broken-axis.src.js",[a["Core/Globals.js"],a["Core/Axis/BrokenAxis.js"]],function(a,r){r.compose(a.Axis,a.Series)});P(a,"Extensions/DataGrouping.js",[a["Core/Axis/Axis.js"],a["Core/Axis/DateTimeAxis.js"],
|
|
|
+a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Series/Series.js"],a["Core/Tooltip.js"],a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,r,D,G,x,H,I,E,q){var k=D.format,g=H.prototype;D=q.addEvent;var d=q.arrayMax,b=q.arrayMin,l=q.correctFloat,m=q.defined,A=q.error,y=q.extend,B=q.isNumber,J=q.merge,M=q.pick;"";var z=G.approximations={sum:function(a){var b=a.length;if(!b&&a.hasNulls)var c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=
|
|
|
+a.length;a=z.sum(a);B(a)&&b&&(a=l(a/b));return a},averages:function(){var a=[];[].forEach.call(arguments,function(b){a.push(z.average(b))});return"undefined"===typeof a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?d(a):a.hasNulls?null:void 0},low:function(a){return a.length?b(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},hlc:function(a,b,c){a=z.high(a);b=z.low(b);c=z.close(c);if(B(a)||
|
|
|
+B(b)||B(c))return[a,b,c]},ohlc:function(a,b,c,d){a=z.open(a);b=z.high(b);c=z.low(c);d=z.close(d);if(B(a)||B(b)||B(c)||B(d))return[a,b,c,d]},range:function(a,b){a=z.low(a);b=z.high(b);if(B(a)||B(b))return[a,b];if(null===a&&null===b)return null}};q=function(a,b,c,d){var e=this,f=e.data,g=e.options&&e.options.data,h=[],l=[],k=[],p=a.length,q=!!b,t=[],r=e.pointArrayMap,v=r&&r.length,F=["x"].concat(r||["y"]),A=this.options.dataGrouping&&this.options.dataGrouping.groupAll,w=0,x=0,y;d="function"===typeof d?
|
|
|
+d:z[d]?z[d]:z[e.getDGApproximation&&e.getDGApproximation()||"average"];v?r.forEach(function(){t.push([])}):t.push([]);var D=v||1;for(y=0;y<=p&&!(a[y]>=c[0]);y++);for(y;y<=p;y++){for(;"undefined"!==typeof c[w+1]&&a[y]>=c[w+1]||y===p;){var E=c[w];e.dataGroupInfo={start:A?x:e.cropStart+x,length:t[0].length};var L=d.apply(e,t);e.pointClass&&!m(e.dataGroupInfo.options)&&(e.dataGroupInfo.options=J(e.pointClass.prototype.optionsToObject.call({series:e},e.options.data[e.cropStart+x])),F.forEach(function(a){delete e.dataGroupInfo.options[a]}));
|
|
|
+"undefined"!==typeof L&&(h.push(E),l.push(L),k.push(e.dataGroupInfo));x=y;for(E=0;E<D;E++)t[E].length=0,t[E].hasNulls=!1;w+=1;if(y===p)break}if(y===p)break;if(r){E=e.options.dataGrouping&&e.options.dataGrouping.groupAll?y:e.cropStart+y;L=f&&f[E]||e.pointClass.prototype.applyOptions.apply({series:e},[g[E]]);var H=void 0;for(E=0;E<v;E++)H=L[r[E]],B(H)?t[E].push(H):null===H&&(t[E].hasNulls=!0)}else E=q?b[y]:null,B(E)?t[0].push(E):null===E&&(t[0].hasNulls=!0)}return{groupedXData:h,groupedYData:l,groupMap:k}};
|
|
|
+var w={approximations:z,groupData:q},p=g.generatePoints,f={groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y",
|
|
|
+"%Y","-%Y"]}},v={line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},h=G.defaultDataGroupingUnits=[["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]],["week",[1]],["month",[1,3,6]],["year",null]];g.getDGApproximation=function(){return this.is("arearange")?
|
|
|
+"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"};g.groupData=q;g.applyGrouping=function(a){var b=this.chart,c=this.options.dataGrouping,d=!1!==this.allowDG&&c&&M(c.enabled,b.options.isStock),f=this.visible||!b.options.chart.ignoreHiddenSeries,n,l=this.currentDataGrouping,k=!1;d&&!this.requireSorting&&(this.requireSorting=k=!0);a=!1===!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!a)||!d;k&&(this.requireSorting=!1);if(!a){this.destroyGroupedData();
|
|
|
+d=c.groupAll?this.xData:this.processedXData;var p=c.groupAll?this.yData:this.processedYData;a=b.plotSizeX;k=this.xAxis;var q=k.options.ordinal,t=this.groupPixelWidth;if(t&&d&&d.length){this.isDirty=n=!0;this.points=null;var v=k.getExtremes();var w=v.min;v=v.max;q=q&&k.ordinal&&k.ordinal.getGroupIntervalFactor(w,v,this)||1;a=k.getTimeTicks(r.Additions.prototype.normalizeTimeTickInterval(t*(v-w)/a*q,c.units||h),Math.min(w,d[0]),Math.max(v,d[d.length-1]),k.options.startOfWeek,d,this.closestPointRange);
|
|
|
+t=g.groupData.apply(this,[d,p,a,c.approximation]);d=t.groupedXData;p=t.groupedYData;q=0;c&&c.smoothed&&d.length&&(c.firstAnchor="firstPoint",c.anchor="middle",c.lastAnchor="lastPoint",A(32,!1,b,{"dataGrouping.smoothed":"use dataGrouping.anchor"}));b=d;var z=this.options.dataGrouping;w=this.currentDataGrouping&&this.currentDataGrouping.gapSize;if(z&&this.xData&&w&&this.groupMap){var x=b.length-1;var y=z.anchor;var E=M(z.firstAnchor,y);z=M(z.lastAnchor,y);if(y&&"start"!==y){var D=w*{middle:.5,end:1}[y];
|
|
|
+for(y=b.length-1;y--&&0<y;)b[y]+=D}if(E&&"start"!==E&&this.xData[0]>=b[0]){y=this.groupMap[0].start;D=this.groupMap[0].length;var L=void 0;B(y)&&B(D)&&(L=y+(D-1));b[0]={middle:b[0]+.5*w,end:b[0]+w,firstPoint:this.xData[0],lastPoint:L&&this.xData[L]}[E]}z&&"start"!==z&&w&&b[x]>=v-w&&(v=this.groupMap[this.groupMap.length-1].start,b[x]={middle:b[x]+.5*w,end:b[x]+w,firstPoint:v&&this.xData[v],lastPoint:this.xData[this.xData.length-1]}[z])}for(v=1;v<a.length;v++)a.info.segmentStarts&&-1!==a.info.segmentStarts.indexOf(v)||
|
|
|
+(q=Math.max(a[v]-a[v-1],q));v=a.info;v.gapSize=q;this.closestPointRange=a.info.totalRange;this.groupMap=t.groupMap;if(f){f=d;if(m(f[0])&&B(k.min)&&B(k.dataMin)&&f[0]<k.min){if(!m(k.options.min)&&k.min<=k.dataMin||k.min===k.dataMin)k.min=Math.min(f[0],k.min);k.dataMin=Math.min(f[0],k.dataMin)}if(m(f[f.length-1])&&B(k.max)&&B(k.dataMax)&&f[f.length-1]>k.max){if(!m(k.options.max)&&B(k.dataMax)&&k.max>=k.dataMax||k.max===k.dataMax)k.max=Math.max(f[f.length-1],k.max);k.dataMax=Math.max(f[f.length-1],k.dataMax)}}c.groupAll&&
|
|
|
+(this.allGroupedData=p,c=this.cropData(d,p,k.min,k.max,1),d=c.xData,p=c.yData,this.cropStart=c.start);this.processedXData=d;this.processedYData=p}else this.groupMap=null;this.hasGroupedData=n;this.currentDataGrouping=v;this.preventGraphAnimation=(l&&l.totalRange)!==(v&&v.totalRange)}};g.destroyGroupedData=function(){this.groupedData&&(this.groupedData.forEach(function(a,b){a&&(this.groupedData[b]=a.destroy?a.destroy():null)},this),this.groupedData.length=0)};g.generatePoints=function(){p.apply(this);
|
|
|
+this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};a.prototype.applyGrouping=function(a){var b=this,c=b.series;c.forEach(function(a){a.groupPixelWidth=void 0});c.forEach(function(c){c.groupPixelWidth=b.getGroupPixelWidth&&b.getGroupPixelWidth();c.groupPixelWidth&&(c.hasProcessed=!0);c.applyGrouping(!!a.hasExtemesChanged)})};a.prototype.getGroupPixelWidth=function(){var a=this.series,b=a.length,c,d=0,g=!1,h;for(c=b;c--;)(h=a[c].options.dataGrouping)&&(d=Math.max(d,M(h.groupPixelWidth,
|
|
|
+f.groupPixelWidth)));for(c=b;c--;)if(h=a[c].options.dataGrouping)if(b=(a[c].processedXData||a[c].data).length,a[c].groupPixelWidth||b>this.chart.plotSizeX/d||b&&h.forced)g=!0;return g?d:0};a.prototype.setDataGrouping=function(b,e){var c;e=M(e,!0);b||(b={forced:!1,units:null});if(this instanceof a)for(c=this.series.length;c--;)this.series[c].update({dataGrouping:b},!1);else this.chart.options.series.forEach(function(a){a.dataGrouping="boolean"===typeof b?b:J(b,a.dataGrouping)});this.ordinal&&(this.ordinal.slope=
|
|
|
+void 0);e&&this.chart.redraw()};D(a,"postProcessData",a.prototype.applyGrouping);D(x,"update",function(){if(this.dataGroup)return A(24,!1,this.series.chart),!1});D(I,"headerFormatter",function(a){var b=this.chart,c=b.time,d=a.labelConfig,g=d.series,h=g.tooltipOptions,l=g.options.dataGrouping,m=h.xDateFormat,p=g.xAxis,q=h[a.isFooter?"footerFormat":"headerFormat"];if(p&&"datetime"===p.options.type&&l&&B(d.key)){var t=g.currentDataGrouping;l=l.dateTimeLabelFormats||f.dateTimeLabelFormats;if(t)if(h=l[t.unitName],
|
|
|
+1===t.count)m=h[0];else{m=h[1];var v=h[2]}else!m&&l&&p.dateTime&&(m=p.dateTime.getXDateFormat(d.x,h.dateTimeLabelFormats));m=c.dateFormat(m,d.key);v&&(m+=c.dateFormat(v,d.key+t.totalRange-1));g.chart.styledMode&&(q=this.styledModeFormat(q));a.text=k(q,{point:y(d.point,{key:m}),series:g},b);a.preventDefault()}});D(H,"destroy",g.destroyGroupedData);D(H,"afterSetOptions",function(a){a=a.options;var b=this.type,c=this.chart.options.plotOptions,d=E.defaultOptions.plotOptions[b].dataGrouping,g=this.useCommonDataGrouping&&
|
|
|
+f;if(c&&(v[b]||g)){d||(d=J(f,v[b]));var h=this.chart.rangeSelector;a.dataGrouping=J(g,d,c.series&&c.series.dataGrouping,c[b].dataGrouping,this.userOptions.dataGrouping,!a.isInternal&&h&&B(h.selected)&&h.buttonOptions[h.selected].dataGrouping)}});D(a,"afterSetScale",function(){this.series.forEach(function(a){a.hasProcessed=!1})});G.dataGrouping=w;"";return w});P(a,"Series/HLC/HLCPoint.js",[a["Core/Series/SeriesRegistry.js"]],function(a){var r=this&&this.__extends||function(){var a=function(r,x){a=
|
|
|
+Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var x in r)r.hasOwnProperty(x)&&(a[x]=r[x])};return a(r,x)};return function(r,x){function y(){this.constructor=r}a(r,x);r.prototype=null===x?Object.create(x):(y.prototype=x.prototype,new y)}}();return function(a){function y(){var r=null!==a&&a.apply(this,arguments)||this;r.close=void 0;r.high=void 0;r.low=void 0;r.options=void 0;r.plotClose=void 0;r.series=void 0;return r}r(y,a);return y}(a.seriesTypes.column.prototype.pointClass)});
|
|
|
+P(a,"Series/HLC/HLCSeries.js",[a["Series/HLC/HLCPoint.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,r,D){var y=this&&this.__extends||function(){var a=function(q,k){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(q,k)};return function(q,k){function g(){this.constructor=q}a(q,k);q.prototype=null===k?Object.create(k):(g.prototype=k.prototype,new g)}}(),x=r.seriesTypes.column,
|
|
|
+H=D.extend,I=D.merge;D=function(a){function q(){var k=null!==a&&a.apply(this,arguments)||this;k.data=void 0;k.options=void 0;k.points=void 0;k.yData=void 0;return k}y(q,a);q.prototype.extendStem=function(a,g,d){var b=a[0];a=a[1];"number"===typeof b[2]&&(b[2]=Math.max(d+g,b[2]));"number"===typeof a[2]&&(a[2]=Math.min(d-g,a[2]))};q.prototype.getPointPath=function(a,g){g=g.strokeWidth();var d=a.series,b=g%2/2,l=Math.round(a.plotX)-b,k=Math.round(a.shapeArgs.width/2);var q=[["M",l,Math.round(a.yBottom)],
|
|
|
+["L",l,Math.round(a.plotHigh)]];null!==a.close&&(a=Math.round(a.plotClose)+b,q.push(["M",l,a],["L",l+k,a]),d.extendStem(q,g/2,a));return q};q.prototype.drawSinglePoint=function(a){var g=a.series,d=g.chart,b=a.graphic,l=!b;"undefined"!==typeof a.plotY&&(b||(a.graphic=b=d.renderer.path().add(g.group)),d.styledMode||b.attr(g.pointAttribs(a,a.selected&&"select")),g=g.getPointPath(a,b),b[l?"attr":"animate"]({d:g}).addClass(a.getClassName(),!0))};q.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)};
|
|
|
+q.prototype.init=function(){a.prototype.init.apply(this,arguments);this.options.stacking=void 0};q.prototype.pointAttribs=function(k,g){k=a.prototype.pointAttribs.call(this,k,g);delete k.fill;return k};q.prototype.toYData=function(a){return[a.high,a.low,a.close]};q.prototype.translate=function(){var k=this,g=k.yAxis,d=this.pointArrayMap&&this.pointArrayMap.slice()||[],b=d.map(function(a){return"plot"+(a.charAt(0).toUpperCase()+a.slice(1))});b.push("yBottom");d.push("low");a.prototype.translate.apply(k);
|
|
|
+k.points.forEach(function(a){d.forEach(function(d,l){d=a[d];null!==d&&(k.dataModify&&(d=k.dataModify.modifyValue(d)),a[b[l]]=g.toPixels(d,!0))});a.tooltipPos[1]=a.plotHigh+g.pos-k.chart.plotTop})};q.defaultOptions=I(x.defaultOptions,{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0});return q}(x);H(D.prototype,
|
|
|
+{animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"});D.prototype.pointClass=a;r.registerSeriesType("hlc",D);"";return D});P(a,"Series/OHLC/OHLCPoint.js",[a["Core/Series/SeriesRegistry.js"]],function(a){var r=this&&this.__extends||function(){var a=function(r,x){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var x in r)r.hasOwnProperty(x)&&(a[x]=
|
|
|
+r[x])};return a(r,x)};return function(r,x){function y(){this.constructor=r}a(r,x);r.prototype=null===x?Object.create(x):(y.prototype=x.prototype,new y)}}();return function(a){function y(){var r=null!==a&&a.apply(this,arguments)||this;r.open=void 0;r.options=void 0;r.plotOpen=void 0;r.series=void 0;return r}r(y,a);y.prototype.getClassName=function(){return a.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")};y.prototype.resolveUpColor=function(){this.open<
|
|
|
+this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)};y.prototype.resolveColor=function(){a.prototype.resolveColor.call(this);this.resolveUpColor()};y.prototype.getZone=function(){var r=a.prototype.getZone.call(this);this.resolveUpColor();return r};y.prototype.applyOptions=function(){a.prototype.applyOptions.apply(this,arguments);this.resolveColor&&this.resolveColor();return this};return y}(a.seriesTypes.hlc.prototype.pointClass)});P(a,"Series/OHLC/OHLCSeries.js",
|
|
|
+[a["Series/OHLC/OHLCPoint.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,r,D){var y=this&&this.__extends||function(){var a=function(d,b){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(d,b)};return function(d,b){function g(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),x=r.series,H=r.seriesTypes.hlc,I=D.addEvent,
|
|
|
+E=D.extend,q=D.merge,k=function(a){function d(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}y(d,a);d.prototype.getPointPath=function(b,d){var g=a.prototype.getPointPath.call(this,b,d);d=d.strokeWidth();var l=d%2/2,k=Math.round(b.plotX)-l,q=Math.round(b.shapeArgs.width/2);null!==b.open&&(b=Math.round(b.plotOpen)+l,g.push(["M",k,b],["L",k-q,b]),a.prototype.extendStem.call(this,g,d/2,b));return g};d.prototype.pointAttribs=function(b,d){d=a.prototype.pointAttribs.call(this,
|
|
|
+b,d);var g=this.options;delete d.fill;!b.options.color&&g.upColor&&b.open<b.close&&(d.stroke=g.upColor);return d};d.prototype.toYData=function(a){return[a.open,a.high,a.low,a.close]};d.defaultOptions=q(H.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}});return d}(H);E(k.prototype,{pointArrayMap:["open","high","low","close"]});k.prototype.pointClass=
|
|
|
+a;r.registerSeriesType("ohlc",k);I(x,"init",function(a){a=a.options;a.useOhlcData&&"highcharts-navigator-series"!==a.id&&E(this,{pointValKey:k.prototype.pointValKey,pointArrayMap:k.prototype.pointArrayMap,toYData:k.prototype.toYData})});I(x,"afterSetOptions",function(a){a=a.options;var d=a.dataGrouping;d&&a.useOhlcData&&"highcharts-navigator-series"!==a.id&&(d.approximation="ohlc")});"";return k});P(a,"Series/Candlestick/CandlestickSeries.js",[a["Core/DefaultOptions.js"],a["Core/Series/SeriesRegistry.js"],
|
|
|
+a["Core/Utilities.js"]],function(a,r,D){var y=this&&this.__extends||function(){var a=function(k,g){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(k,g)};return function(k,g){function d(){this.constructor=k}a(k,g);k.prototype=null===g?Object.create(g):(d.prototype=g.prototype,new d)}}(),x=a.defaultOptions;a=r.seriesTypes;var H=a.column,I=a.ohlc,E=D.merge;D=function(a){function k(){var g=null!==
|
|
|
+a&&a.apply(this,arguments)||this;g.data=void 0;g.options=void 0;g.points=void 0;return g}y(k,a);k.prototype.pointAttribs=function(a,d){var b=H.prototype.pointAttribs.call(this,a,d),g=this.options,k=a.open<a.close,q=g.lineColor||this.color,r=a.color||this.color;b["stroke-width"]=g.lineWidth;b.fill=a.options.color||(k?g.upColor||r:r);b.stroke=a.options.lineColor||(k?g.upLineColor||q:q);d&&(a=g.states[d],b.fill=a.color||b.fill,b.stroke=a.lineColor||b.stroke,b["stroke-width"]=a.lineWidth||b["stroke-width"]);
|
|
|
+return b};k.prototype.drawPoints=function(){var a=this,d=a.chart,b=a.yAxis.reversed;a.points.forEach(function(g){var l=g.graphic,k=!l;if("undefined"!==typeof g.plotY){l||(g.graphic=l=d.renderer.path().add(a.group));a.chart.styledMode||l.attr(a.pointAttribs(g,g.selected&&"select")).shadow(a.options.shadow);var q=l.strokeWidth()%2/2;var r=Math.round(g.plotX)-q;var x=g.plotOpen;var y=g.plotClose;var z=Math.min(x,y);x=Math.max(x,y);var w=Math.round(g.shapeArgs.width/2);y=b?x!==g.yBottom:Math.round(z)!==
|
|
|
+Math.round(g.plotHigh);var p=b?Math.round(z)!==Math.round(g.plotHigh):x!==g.yBottom;z=Math.round(z)+q;x=Math.round(x)+q;q=[];q.push(["M",r-w,x],["L",r-w,z],["L",r+w,z],["L",r+w,x],["Z"],["M",r,z],["L",r,y?Math.round(b?g.yBottom:g.plotHigh):z],["M",r,x],["L",r,p?Math.round(b?g.plotHigh:g.yBottom):x]);l[k?"attr":"animate"]({d:q}).addClass(g.getClassName(),!0)}})};k.defaultOptions=E(I.defaultOptions,x.plotOptions,{states:{hover:{lineWidth:2}},tooltip:x.plotOptions.ohlc.tooltip,threshold:null,lineColor:"#000000",
|
|
|
+lineWidth:1,upColor:"#ffffff",stickyTracking:!0});return k}(I);r.registerSeriesType("candlestick",D);"";return D});P(a,"Series/Flags/FlagsPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,r){var y=this&&this.__extends||function(){var a=function(r,x){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,q){a.__proto__=q}||function(a,q){for(var k in q)q.hasOwnProperty(k)&&(a[k]=q[k])};return a(r,x)};return function(r,x){function y(){this.constructor=r}a(r,
|
|
|
+x);r.prototype=null===x?Object.create(x):(y.prototype=x.prototype,new y)}}(),G=r.isNumber;return function(a){function r(){var r=null!==a&&a.apply(this,arguments)||this;r.options=void 0;r.series=void 0;return r}y(r,a);r.prototype.isValid=function(){return G(this.y)||"undefined"===typeof this.y};r.prototype.hasNewShapeType=function(){var a=this.options.shape||this.series.options.shape;return this.graphic&&a&&a!==this.graphic.symbolKey};return r}(a.seriesTypes.column.prototype.pointClass)});P(a,"Series/OnSeriesComposition.js",
|
|
|
+[a["Series/Column/ColumnSeries.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,r,D){var y=a.prototype,x=r.prototype,H=D.defined,I=D.stableSort,E;(function(a){function k(){return x.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this)}function g(){y.translate.apply(this);var a=this,d=a.options,g=a.chart,k=a.points,q=d.onSeries,r=(q=q&&g.get(q))&&q.options.step,x=q&&q.points,D=g.inverted,z=a.xAxis,w=a.yAxis;g=k.length-1;var p;d=d.onKey||"y";var f=x&&
|
|
|
+x.length,v=0,h;if(q&&q.visible&&f){v=(q.pointXOffset||0)+(q.barW||0)/2;var t=q.currentDataGrouping;var e=x[f-1].x+(t?t.totalRange:0);I(k,function(a,c){return a.x-c.x});for(d="plot"+d[0].toUpperCase()+d.substr(1);f--&&k[g];){var c=x[f];t=k[g];t.y=c.y;if(c.x<=t.x&&"undefined"!==typeof c[d]){if(t.x<=e&&(t.plotY=c[d],c.x<t.x&&!r&&(h=x[f+1])&&"undefined"!==typeof h[d])){var F=(t.x-c.x)/(h.x-c.x);t.plotY+=F*(h[d]-c[d]);t.y+=F*(h.y-c.y)}g--;f++;if(0>g)break}}}k.forEach(function(c,b){c.plotX+=v;if("undefined"===
|
|
|
+typeof c.plotY||D)0<=c.plotX&&c.plotX<=z.len?D?(c.plotY=z.translate(c.x,0,1,0,1),c.plotX=H(c.y)?w.translate(c.y,0,0,0,1):0):c.plotY=(z.opposite?0:a.yAxis.len)+z.offset:c.shapeArgs={};if((p=k[b-1])&&p.plotX===c.plotX){"undefined"===typeof p.stackIndex&&(p.stackIndex=0);var e=p.stackIndex+1}c.stackIndex=e});this.onSeries=q}var d=[];a.compose=function(a){if(-1===d.indexOf(a)){d.push(a);var b=a.prototype;b.getPlotBox=k;b.translate=g}return a};a.getPlotBox=k;a.translate=g})(E||(E={}));return E});P(a,"Series/Flags/FlagsSymbols.js",
|
|
|
+[a["Core/Renderer/RendererRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"]],function(a,r){function y(a){G[a+"pin"]=function(r,x,y,q,k){var g=k&&k.anchorX;k=k&&k.anchorY;"circle"===a&&q>y&&(r-=Math.round((q-y)/2),y=q);var d=G[a](r,x,y,q);if(g&&k){var b=g;"circle"===a?b=r+y/2:(r=d[0],y=d[1],"M"===r[0]&&"L"===y[0]&&(b=(r[1]+y[1])/2));d.push(["M",b,x>k?x:x+q],["L",g,k]);d=d.concat(G.circle(g-1,k-1,2,2))}return d}}var G=r.prototype.symbols;G.flag=function(a,r,y,D,q){var k=q&&q.anchorX||a;q=q&&q.anchorY||
|
|
|
+r;var g=G.circle(k-1,q-1,2,2);g.push(["M",k,q],["L",a,r+D],["L",a,r],["L",a+y,r],["L",a+y,r+D],["L",a,r+D],["Z"]);return g};y("circle");y("square");a=a.getRendererType();a!==r&&(a.prototype.symbols.circlepin=G.circlepin,a.prototype.symbols.flag=G.flag,a.prototype.symbols.squarepin=G.squarepin);return G});P(a,"Series/Flags/FlagsSeries.js",[a["Series/Flags/FlagsPoint.js"],a["Core/Globals.js"],a["Series/OnSeriesComposition.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Series/SeriesRegistry.js"],
|
|
|
+a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,r,D,G,x,H,I){var y=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 d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}();r=r.noop;var q=G.distribute,k=x.series,g=x.seriesTypes.column,
|
|
|
+d=I.addEvent,b=I.defined;G=I.extend;var l=I.merge,m=I.objectEach,A=I.wrap;I=function(a){function r(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}y(r,a);r.prototype.animate=function(a){a&&this.setClip()};r.prototype.drawPoints=function(){var a=this.points,d=this.chart,g=d.renderer,k=d.inverted,p=this.options,f=p.y,r,h=this.yAxis,t={},e=[];for(r=a.length;r--;){var c=a[r];var F=(k?c.plotY:c.plotX)>this.xAxis.len;var C=c.plotX;var n=c.stackIndex;
|
|
|
+var u=c.options.shape||p.shape;var K=c.plotY;"undefined"!==typeof K&&(K=c.plotY+f-("undefined"!==typeof n&&n*p.stackDistance));c.anchorX=n?void 0:c.plotX;var x=n?void 0:c.plotY;var y="flag"!==u;n=c.graphic;"undefined"!==typeof K&&0<=C&&!F?(n&&c.hasNewShapeType()&&(n=n.destroy()),n||(n=c.graphic=g.label("",null,null,u,null,null,p.useHTML).addClass("highcharts-point").add(this.markerGroup),c.graphic.div&&(c.graphic.div.point=c),n.isNew=!0),n.attr({align:y?"center":"left",width:p.width,height:p.height,
|
|
|
+"text-align":p.textAlign}),d.styledMode||n.attr(this.pointAttribs(c)).css(l(p.style,c.style)).shadow(p.shadow),0<C&&(C-=n.strokeWidth()%2),u={y:K,anchorY:x},p.allowOverlapX&&(u.x=C,u.anchorX=c.anchorX),n.attr({text:c.options.title||p.title||"A"})[n.isNew?"attr":"animate"](u),p.allowOverlapX||(t[c.plotX]?t[c.plotX].size=Math.max(t[c.plotX].size,n.width):t[c.plotX]={align:y?.5:0,size:n.width,target:C,anchorX:C}),c.tooltipPos=[C,K+h.pos-d.plotTop]):n&&(c.graphic=n.destroy())}if(!p.allowOverlapX){var B=
|
|
|
+100;m(t,function(a){a.plotX=a.anchorX;e.push(a);B=Math.max(a.size,B)});q(e,k?h.len:this.xAxis.len,B);a.forEach(function(a){var c=a.plotX,e=a.graphic;(c=e&&t[c])&&e&&(b(c.pos)?e[e.isNew?"attr":"animate"]({x:c.pos+(c.align||0)*c.size,anchorX:a.anchorX}).show().isNew=!1:e.hide().isNew=!0)})}p.useHTML&&A(this.markerGroup,"on",function(a){return H.prototype.on.apply(a.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})};r.prototype.drawTracker=function(){var b=this.points;a.prototype.drawTracker.call(this);
|
|
|
+b.forEach(function(a){var g=a.graphic;g&&(a.unbindMouseOver&&a.unbindMouseOver(),a.unbindMouseOver=d(g.element,"mouseover",function(){0<a.stackIndex&&!a.raised&&(a._y=g.y,g.attr({y:a._y-8}),a.raised=!0);b.forEach(function(b){b!==a&&b.raised&&b.graphic&&(b.graphic.attr({y:b._y}),b.raised=!1)})}))})};r.prototype.pointAttribs=function(a,b){var d=this.options,g=a&&a.color||this.color,k=d.lineColor,f=a&&a.lineWidth;a=a&&a.fillColor||d.fillColor;b&&(a=d.states[b].fillColor,k=d.states[b].lineColor,f=d.states[b].lineWidth);
|
|
|
+return{fill:a||g,stroke:k||g,"stroke-width":f||d.lineWidth||0}};r.prototype.setClip=function(){k.prototype.setClip.apply(this,arguments);!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])};r.defaultOptions=l(g.defaultOptions,{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",
|
|
|
+fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}});return r}(g);D.compose(I);G(I.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:a,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:r,init:k.prototype.init,invertGroups:r});x.registerSeriesType("flags",I);"";"";return I});P(a,"Core/Axis/ScrollbarAxis.js",[a["Core/Utilities.js"]],function(a){var r=a.addEvent,y=a.defined,G=a.pick;return function(){function a(){}a.compose=function(x,
|
|
|
+D){if(-1===a.composed.indexOf(x))a.composed.push(x);else return x;var E=function(a){var k=G(a.options&&a.options.min,a.min),g=G(a.options&&a.options.max,a.max);return{axisMin:k,axisMax:g,scrollMin:y(a.dataMin)?Math.min(k,a.min,a.dataMin,G(a.threshold,Infinity)):k,scrollMax:y(a.dataMax)?Math.max(g,a.max,a.dataMax,G(a.threshold,-Infinity)):g}};r(x,"afterInit",function(){var a=this;a.options&&a.options.scrollbar&&a.options.scrollbar.enabled&&(a.options.scrollbar.vertical=!a.horiz,a.options.startOnTick=
|
|
|
+a.options.endOnTick=!1,a.scrollbar=new D(a.chart.renderer,a.options.scrollbar,a.chart),r(a.scrollbar,"changed",function(k){var g=E(a),d=g.axisMax,b=g.scrollMin,l=g.scrollMax-b;y(g.axisMin)&&y(d)&&(a.horiz&&!a.reversed||!a.horiz&&a.reversed?(g=b+l*this.to,b+=l*this.from):(g=b+l*(1-this.from),b+=l*(1-this.to)),this.shouldUpdateExtremes(k.DOMType)?a.setExtremes(b,g,!0,"mousemove"!==k.DOMType&&"touchmove"!==k.DOMType,k):this.setRange(this.from,this.to))}))});r(x,"afterRender",function(){var a=E(this),
|
|
|
+k=a.scrollMin,g=a.scrollMax;a=this.scrollbar;var d=this.axisTitleMargin+(this.titleOffset||0),b=this.chart.scrollbarsOffsets,l=this.options.margin||0;a&&(this.horiz?(this.opposite||(b[1]+=d),a.position(this.left,this.top+this.height+2+b[1]-(this.opposite?l:0),this.width,this.height),this.opposite||(b[1]+=l),d=1):(this.opposite&&(b[0]+=d),a.position(a.options.opposite?this.left+this.width+2+b[0]-(this.opposite?0:l):this.opposite?0:l,this.top,this.width,this.height),this.opposite&&(b[0]+=l),d=0),b[d]+=
|
|
|
+a.size+a.options.margin,isNaN(k)||isNaN(g)||!y(this.min)||!y(this.max)||this.min===this.max?a.setRange(0,1):(b=(this.min-k)/(g-k),k=(this.max-k)/(g-k),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(b,k):a.setRange(1-k,1-b)))});r(x,"afterGetOffset",function(){var a=this.scrollbar&&!this.scrollbar.options.opposite;a=this.horiz?2:a?3:1;var k=this.scrollbar;k&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[a]+=k.size+k.options.margin)});return x};a.composed=[];return a}()});
|
|
|
+P(a,"Core/ScrollbarDefaults.js",[a["Core/Globals.js"]],function(a){return{height:a.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}});P(a,"Core/Scrollbar.js",
|
|
|
+[a["Core/DefaultOptions.js"],a["Core/Globals.js"],a["Core/Axis/ScrollbarAxis.js"],a["Core/ScrollbarDefaults.js"],a["Core/Utilities.js"]],function(a,r,D,G,x){var y=a.defaultOptions,I=x.addEvent,E=x.correctFloat,q=x.defined,k=x.destroyObjectProperties,g=x.fireEvent,d=x.merge,b=x.pick,l=x.removeEvent;a=function(){function a(a,b,d){this._events=[];this.chart=void 0;this.from=this.chartY=this.chartX=0;this.scrollbar=this.renderer=this.options=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=
|
|
|
+void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=void 0;this.trackBorderWidth=1;this.userOptions=void 0;this.y=this.x=0;this.init(a,b,d)}a.compose=function(b){D.compose(b,a)};a.swapXY=function(a,b){b&&a.forEach(function(a){for(var b=a.length,d,g=0;g<b;g+=2)d=a[g+1],"number"===typeof d&&(a[g+1]=a[g+2],a[g+2]=d)});return a};a.prototype.addEvents=function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,
|
|
|
+d=this.scrollbarGroup.element,g=this.track.element,k=this.mouseDownHandler.bind(this),l=this.mouseMoveHandler.bind(this),m=this.mouseUpHandler.bind(this);a=[[b[a[0]].element,"click",this.buttonToMinClick.bind(this)],[b[a[1]].element,"click",this.buttonToMaxClick.bind(this)],[g,"click",this.trackClick.bind(this)],[d,"mousedown",k],[d.ownerDocument,"mousemove",l],[d.ownerDocument,"mouseup",m]];r.hasTouch&&a.push([d,"touchstart",k],[d.ownerDocument,"touchmove",l],[d.ownerDocument,"touchend",m]);a.forEach(function(a){I.apply(null,
|
|
|
+a)});this._events=a};a.prototype.buttonToMaxClick=function(a){var d=(this.to-this.from)*b(this.options.step,.2);this.updatePosition(this.from+d,this.to+d);g(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};a.prototype.buttonToMinClick=function(a){var d=E(this.to-this.from)*b(this.options.step,.2);this.updatePosition(E(this.from-d),E(this.to-d));g(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};a.prototype.cursorToScrollbarPosition=function(a){var b=
|
|
|
+this.options;b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}};a.prototype.destroy=function(){var a=this,b=a.chart.scroller;a.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(b){a[b]&&a[b].destroy&&(a[b]=a[b].destroy())});b&&a===b.scrollbar&&(b.scrollbar=null,k(b.scrollbarButtons))};a.prototype.drawScrollbarButton=function(b){var d=this.renderer,
|
|
|
+g=this.scrollbarButtons,k=this.options,l=this.size,m=d.g().add(this.group);g.push(m);m=d.rect().addClass("highcharts-scrollbar-button").add(m);this.chart.styledMode||m.attr({stroke:k.buttonBorderColor,"stroke-width":k.buttonBorderWidth,fill:k.buttonBackgroundColor});m.attr(m.crisp({x:-.5,y:-.5,width:l+1,height:l+1,r:k.buttonBorderRadius},m.strokeWidth()));m=d.path(a.swapXY([["M",l/2+(b?-1:1),l/2-3],["L",l/2+(b?-1:1),l/2+3],["L",l/2+(b?2:-2),l/2]],k.vertical)).addClass("highcharts-scrollbar-arrow").add(g[b]);
|
|
|
+this.chart.styledMode||m.attr({fill:k.buttonArrowColor})};a.prototype.init=function(a,g,k){this.scrollbarButtons=[];this.renderer=a;this.userOptions=g;this.options=d(G,y.scrollbar,g);this.chart=k;this.size=b(this.options.size,this.options.height);g.enabled&&(this.render(),this.addEvents())};a.prototype.mouseDownHandler=function(a){a=this.chart.pointer.normalize(a);a=this.cursorToScrollbarPosition(a);this.chartX=a.chartX;this.chartY=a.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=
|
|
|
+!0};a.prototype.mouseMoveHandler=function(a){var b=this.chart.pointer.normalize(a),d=this.options.vertical?"chartY":"chartX",k=this.initPositions||[];!this.grabbedCenter||a.touches&&0===a.touches[0][d]||(b=this.cursorToScrollbarPosition(b)[d],d=this[d],d=b-d,this.hasDragged=!0,this.updatePosition(k[0]+d,k[1]+d),this.hasDragged&&g(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a}))};a.prototype.mouseUpHandler=function(a){this.hasDragged&&g(this,"changed",{from:this.from,
|
|
|
+to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};a.prototype.position=function(a,b,d,g){var k=this.options.vertical,l=this.rendered?"animate":"attr",m=g,p=0;this.group.show();this.x=a;this.y=b+this.trackBorderWidth;this.width=d;this.height=g;this.xOffset=m;this.yOffset=p;k?(this.width=this.yOffset=d=p=this.size,this.xOffset=m=0,this.barWidth=g-2*d,this.x=a+=this.options.margin):(this.height=this.xOffset=g=m=this.size,this.barWidth=
|
|
|
+d-2*g,this.y+=this.options.margin);this.group[l]({translateX:a,translateY:this.y});this.track[l]({width:d,height:g});this.scrollbarButtons[1][l]({translateX:k?0:d-m,translateY:k?g-p:0})};a.prototype.removeEvents=function(){this._events.forEach(function(a){l.apply(null,a)});this._events.length=0};a.prototype.render=function(){var b=this.renderer,d=this.options,g=this.size,k=this.chart.styledMode,l=b.g("scrollbar").attr({zIndex:d.zIndex}).hide().add();this.group=l;this.track=b.rect().addClass("highcharts-scrollbar-track").attr({x:0,
|
|
|
+r:d.trackBorderRadius||0,height:g,width:g}).add(l);k||this.track.attr({fill:d.trackBackgroundColor,stroke:d.trackBorderColor,"stroke-width":d.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=b.g().add(l);this.scrollbar=b.rect().addClass("highcharts-scrollbar-thumb").attr({height:g,width:g,r:d.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=b.path(a.swapXY([["M",-3,g/4],["L",-3,2*g/3],["M",0,g/4],
|
|
|
+["L",0,2*g/3],["M",3,g/4],["L",3,2*g/3]],d.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);k||(this.scrollbar.attr({fill:d.barBackgroundColor,stroke:d.barBorderColor,"stroke-width":d.barBorderWidth}),this.scrollbarRifles.attr({stroke:d.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};a.prototype.setRange=
|
|
|
+function(a,b){var d=this.options,g=d.vertical,k=d.minWidth,l=this.barWidth,m=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(q(l)){var p=l*Math.min(b,1);a=Math.max(a,0);var f=Math.ceil(l*a);this.calculatedWidth=p=E(p-f);p<k&&(f=(l-k+p)*a,p=k);k=Math.floor(f+this.xOffset+this.yOffset);l=p/2-.5;this.from=a;this.to=b;g?(this.scrollbarGroup[m]({translateY:k}),this.scrollbar[m]({height:p}),this.scrollbarRifles[m]({translateY:l}),this.scrollbarTop=
|
|
|
+k,this.scrollbarLeft=0):(this.scrollbarGroup[m]({translateX:k}),this.scrollbar[m]({width:p}),this.scrollbarRifles[m]({translateX:l}),this.scrollbarLeft=k,this.scrollbarTop=0);12>=p?this.scrollbarRifles.hide():this.scrollbarRifles.show();!1===d.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show());this.rendered=!0}};a.prototype.shouldUpdateExtremes=function(a){return b(this.options.liveRedraw,r.svg&&!r.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===a||"touchend"===a||!q(a)};a.prototype.trackClick=
|
|
|
+function(a){var b=this.chart.pointer.normalize(a),d=this.to-this.from,k=this.y+this.scrollbarTop,l=this.x+this.scrollbarLeft;this.options.vertical&&b.chartY>k||!this.options.vertical&&b.chartX>l?this.updatePosition(this.from+d,this.to+d):this.updatePosition(this.from-d,this.to-d);g(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};a.prototype.update=function(a){this.destroy();this.init(this.chart.renderer,d(!0,this.options,a),this.chart)};a.prototype.updatePosition=function(a,
|
|
|
+b){1<b&&(a=E(1-E(b-a)),b=1);0>a&&(b=E(b-a),a=0);this.from=a;this.to=b};a.defaultOptions=G;return a}();y.scrollbar=d(!0,a.defaultOptions,y.scrollbar);return a});P(a,"Core/Axis/NavigatorAxis.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,r){var y=a.isTouchDevice,G=r.addEvent,x=r.correctFloat,H=r.defined,I=r.isNumber,E=r.pick,q=function(){function a(a){this.axis=a}a.prototype.destroy=function(){this.axis=void 0};a.prototype.toFixedRange=function(a,d,b,k){var g=this.axis,l=g.chart;l=l&&
|
|
|
+l.fixedRange;var q=(g.pointRange||0)/2;a=E(b,g.translate(a,!0,!g.horiz));d=E(k,g.translate(d,!0,!g.horiz));g=l&&(d-a)/l;H(b)||(a=x(a+q));H(k)||(d=x(d-q));.7<g&&1.3>g&&(k?a=d-l:d=a+l);I(a)&&I(d)||(a=d=void 0);return{min:a,max:d}};return a}();return function(){function a(){}a.compose=function(a){a.keepProps.push("navigatorAxis");G(a,"init",function(){this.navigatorAxis||(this.navigatorAxis=new q(this))});G(a,"zoom",function(a){var b=this.chart.options,d=b.navigator,g=this.navigatorAxis,k=b.chart.pinchType,
|
|
|
+q=b.rangeSelector;b=b.chart.zoomType;this.isXAxis&&(d&&d.enabled||q&&q.enabled)&&("y"===b?a.zoomed=!1:(!y&&"xy"===b||y&&"xy"===k)&&this.options.range&&(d=g.previousZoom,H(a.newMin)?g.previousZoom=[this.min,this.max]:d&&(a.newMin=d[0],a.newMax=d[1],g.previousZoom=void 0)));"undefined"!==typeof a.zoomed&&a.preventDefault()})};a.AdditionsClass=q;return a}()});P(a,"Core/Navigator.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Axis/NavigatorAxis.js"],
|
|
|
+a["Core/DefaultOptions.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Scrollbar.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,r,D,G,x,H,I,E,q,k,g){D=D.parse;var d=G.hasTouch,b=G.isTouchDevice,l=H.defaultOptions,m=g.addEvent,y=g.clamp,L=g.correctFloat,B=g.defined,J=g.destroyObjectProperties,M=g.erase,z=g.extend,w=g.find,p=g.isArray,f=g.isNumber,v=g.merge,h=g.pick,t=g.removeEvent,e=g.splat,c=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-
|
|
|
+1]=arguments[c];b=[].filter.call(b,f);if(b.length)return Math[a].apply(0,b)};H="undefined"===typeof k.seriesTypes.areaspline?"line":"areaspline";z(l,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:D("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:H,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",
|
|
|
+enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["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,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",
|
|
|
+tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});I.getRendererType().prototype.symbols["navigator-handle"]=function(a,b,c,e,d){a=(d&&d.width||0)/2;b=Math.round(a/3)+.5;d=d&&d.height||0;return[["M",
|
|
|
+-a-1,.5],["L",a,.5],["L",a,d+.5],["L",-a-1,d+.5],["L",-a-1,.5],["M",-b,4],["L",-b,d-3],["M",b-1,4],["L",b-1,d-3]]};var F=function(){function g(a){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0;this.init(a)}g.prototype.drawHandle=
|
|
|
+function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})};g.prototype.drawOutline=function(a,b,c,e){var d=this.navigatorOptions.maskInside,f=this.outline.strokeWidth(),g=f/2,h=f%2/2;f=this.outlineHeight;var n=this.scrollbarHeight||0,k=this.size,l=this.left-n,m=this.top;c?
|
|
|
+(l-=g,c=m+b+h,b=m+a+h,h=[["M",l+f,m-n-h],["L",l+f,c],["L",l,c],["L",l,b],["L",l+f,b],["L",l+f,m+k+n]],d&&h.push(["M",l+f,c-g],["L",l+f,b+g])):(a+=l+n-h,b+=l+n-h,m+=g,h=[["M",l,m],["L",a,m],["L",a,m+f],["L",b,m+f],["L",b,m],["L",l+k+2*n,m]],d&&h.push(["M",a-g,m],["L",b+g,m]));this.outline[e]({d:h})};g.prototype.drawMasks=function(a,b,c,e){var d=this.left,f=this.top,g=this.height;if(c){var h=[d,d,d];var n=[f,f+a,f+b];var k=[g,g,g];var l=[a,b-a,this.size-b]}else h=[d,d+a,d+b],n=[f,f,f],k=[a,b-a,this.size-
|
|
|
+b],l=[g,g,g];this.shades.forEach(function(a,b){a[e]({x:h[b],y:n[b],width:k[b],height:l[b]})})};g.prototype.renderElements=function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,d=e.renderer,f,g={cursor:e.inverted?"ns-resize":"ew-resize"};a.navigatorGroup=f=d.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!c,c,!c].forEach(function(c,h){var n=d.rect().addClass("highcharts-navigator-mask"+(1===h?"-inside":"-outside")).add(f);e.styledMode||(n.attr({fill:c?b.maskFill:"rgba(0,0,0,0)"}),
|
|
|
+1===h&&n.css(g));a.shades[h]=n});a.outline=d.path().addClass("highcharts-navigator-outline").add(f);e.styledMode||a.outline.attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor});b.handles.enabled&&[0,1].forEach(function(c){b.handles.inverted=e.inverted;a.handles[c]=d.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][c]).add(f);if(!e.styledMode){var h=
|
|
|
+b.handles;a.handles[c].attr({fill:h.backgroundColor,stroke:h.borderColor,"stroke-width":h.lineWidth}).css(g)}})};g.prototype.update=function(a){(this.series||[]).forEach(function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();v(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)};g.prototype.render=function(a,b,c,e){var d=this.chart,g=this.scrollbarHeight,n,k=this.xAxis,l=k.pointRange||0;var m=k.navigatorAxis.fake?d.xAxis[0]:k;var u=this.navigatorEnabled,p,
|
|
|
+q=this.rendered;var r=d.inverted;var t=d.xAxis[0].minRange,v=d.xAxis[0].options.maxRange;if(!this.hasDragged||B(c)){a=L(a-l/2);b=L(b+l/2);if(!f(a)||!f(b))if(q)c=0,e=h(k.width,m.width);else return;this.left=h(k.left,d.plotLeft+g+(r?d.plotWidth:0));this.size=p=n=h(k.len,(r?d.plotHeight:d.plotWidth)-2*g);d=r?g:n+2*g;c=h(c,k.toPixels(a,!0));e=h(e,k.toPixels(b,!0));f(c)&&Infinity!==Math.abs(c)||(c=0,e=d);a=k.toValue(c,!0);b=k.toValue(e,!0);var C=Math.abs(L(b-a));C<t?this.grabbedLeft?c=k.toPixels(b-t-l,
|
|
|
+!0):this.grabbedRight&&(e=k.toPixels(a+t+l,!0)):B(v)&&L(C-l)>v&&(this.grabbedLeft?c=k.toPixels(b-v-l,!0):this.grabbedRight&&(e=k.toPixels(a+v+l,!0)));this.zoomedMax=y(Math.max(c,e),0,p);this.zoomedMin=y(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(c,e),0,p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin);u&&(this.navigatorGroup.attr({visibility:"inherit"}),q=q&&!this.hasDragged?"animate":"attr",this.drawMasks(c,p,r,q),this.drawOutline(c,
|
|
|
+p,r,q),this.navigatorOptions.handles.enabled&&(this.drawHandle(c,0,r,q),this.drawHandle(p,1,r,q)));this.scrollbar&&(r?(r=this.top-g,m=this.left-g+(u||!m.opposite?0:(m.titleOffset||0)+m.axisTitleMargin),g=n+2*g):(r=this.top+(u?this.height:-g),m=this.left-g),this.scrollbar.position(m,r,d,g),this.scrollbar.setRange(this.zoomedMin/(n||1),this.zoomedMax/(n||1)));this.rendered=!0}};g.prototype.addMouseEvents=function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};
|
|
|
+a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents("mousedown");e.push(m(b.renderTo,"mousemove",f),m(c.ownerDocument,"mouseup",g));d&&(e.push(m(b.renderTo,"touchmove",f),m(c.ownerDocument,"touchend",g)),e.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(m(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))};g.prototype.getPartsEvents=function(a){var b=this,c=[];["shades","handles"].forEach(function(e){b[e].forEach(function(d,
|
|
|
+f){c.push(m(d.element,a,function(a){b[e+"Mousedown"](a,f)}))})});return c};g.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,e=this.xAxis,d=this.zoomedMin,f=this.left,g=this.size,h=this.range,k=a.chartX;c.inverted&&(k=a.chartY,f=this.top);if(1===b)this.grabbedCenter=k,this.fixedWidth=h,this.dragOffset=k-d;else{a=k-f-h/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+h>=g)if(a=g-h,this.reversedExtremes){a-=h;var l=this.getUnionExtremes().dataMin}else var n=this.getUnionExtremes().dataMax;
|
|
|
+a!==d&&(this.fixedWidth=h,b=e.navigatorAxis.toFixedRange(a,a+h,l,n),B(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};g.prototype.handlesMousedown=function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],e=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=e?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=e?c.max:c.min);a.fixedRange=
|
|
|
+null};g.prototype.onMouseMove=function(a){var c=this,e=c.chart,d=c.left,f=c.navigatorSize,g=c.range,k=c.dragOffset,l=e.inverted;a.touches&&0===a.touches[0].pageX||(a=e.pointer.normalize(a),e=a.chartX,l&&(d=c.top,e=a.chartY),c.grabbedLeft?(c.hasDragged=!0,c.render(0,0,e-d,c.otherHandlePos)):c.grabbedRight?(c.hasDragged=!0,c.render(0,0,c.otherHandlePos,e-d)):c.grabbedCenter&&(c.hasDragged=!0,e<k?e=k:e>f+k-g&&(e=f+k-g),c.render(0,0,e-k,e-k+g)),c.hasDragged&&c.scrollbar&&h(c.scrollbar.options.liveRedraw,
|
|
|
+G.svg&&!b&&!this.chart.isBoosting)&&(a.DOMType=a.type,setTimeout(function(){c.onMouseUp(a)},0)))};g.prototype.onMouseUp=function(a){var b=this.chart,c=this.xAxis,e=this.scrollbar,d=a.DOMEvent||a,g=b.inverted,h=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!e||!e.hasDragged)||"scrollbar"===a.trigger){e=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var k=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var l=this.fixedExtreme;this.zoomedMax===
|
|
|
+this.size&&(l=this.reversedExtremes?e.dataMin:e.dataMax);0===this.zoomedMin&&(k=this.reversedExtremes?e.dataMax:e.dataMin);c=c.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,k,l);B(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:d})}"mousemove"!==a.DOMType&&"touchmove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=
|
|
|
+this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&f(this.zoomedMin)&&f(this.zoomedMax)&&(b=Math.round(this.zoomedMin),a=Math.round(this.zoomedMax),this.shades&&this.drawMasks(b,a,g,h),this.outline&&this.drawOutline(b,a,g,h),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(b,0,g,h),this.drawHandle(a,1,g,h)))};g.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=
|
|
|
+void 0);this.removeBaseSeriesEvents()};g.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){t(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&t(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};g.prototype.init=function(b){var e=b.options,d=e.navigator,f=d.enabled,g=e.scrollbar,k=g.enabled;e=f?d.height:0;var l=k?g.height:0;this.handles=[];this.shades=[];this.chart=
|
|
|
+b;this.setBaseSeries();this.height=e;this.scrollbarHeight=l;this.scrollbarEnabled=k;this.navigatorEnabled=f;this.navigatorOptions=d;this.scrollbarOptions=g;this.outlineHeight=e+l;this.opposite=h(d.opposite,!(f||!b.inverted));var n=this;f=n.baseSeries;g=b.xAxis.length;k=b.yAxis.length;var p=f&&f[0]&&f[0].xAxis||b.xAxis[0]||{options:{}};b.isDirtyBox=!0;n.navigatorEnabled?(n.xAxis=new a(b,v({breaks:p.options.breaks,ordinal:p.options.ordinal},d.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,
|
|
|
+type:"datetime",index:g,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},b.inverted?{offsets:[l,0,-l,0],width:e}:{offsets:[0,-l,0,l],height:e})),n.yAxis=new a(b,v(d.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:k,isInternal:!0,reversed:h(d.yAxis&&d.yAxis.reversed,b.yAxis[0]&&b.yAxis[0].reversed,!1),zoomEnabled:!1},b.inverted?{width:e}:{height:e})),f||d.series.data?n.updateNavigatorSeries(!1):0===b.series.length&&(n.unbindRedraw=
|
|
|
+m(b,"beforeRedraw",function(){0<b.series.length&&!n.series&&(n.setBaseSeries(),n.unbindRedraw())})),n.reversedExtremes=b.inverted&&!n.xAxis.reversed||!b.inverted&&n.xAxis.reversed,n.renderElements(),n.addMouseEvents()):(n.xAxis={chart:b,navigatorAxis:{fake:!0},translate:function(a,e){var d=b.xAxis[0],f=d.getExtremes(),g=d.len-2*l,h=c("min",d.options.min,f.dataMin);d=c("max",d.options.max,f.dataMax)-h;return e?a*d/g+h:g*(a-h)/d},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,
|
|
|
+!0)}},n.xAxis.navigatorAxis.axis=n.xAxis,n.xAxis.navigatorAxis.toFixedRange=x.AdditionsClass.prototype.toFixedRange.bind(n.xAxis.navigatorAxis));b.options.scrollbar.enabled&&(b.scrollbar=n.scrollbar=new E(b.renderer,v(b.options.scrollbar,{margin:n.navigatorEnabled?0:10,vertical:b.inverted}),b),m(n.scrollbar,"changed",function(a){var b=n.size,c=b*this.to;b*=this.from;n.hasDragged=n.scrollbar.hasDragged;n.render(0,0,b,c);this.shouldUpdateExtremes(a.DOMType)&&setTimeout(function(){n.onMouseUp(a)})}));
|
|
|
+n.addBaseSeriesEvents();n.addChartEvents()};g.prototype.getUnionExtremes=function(a){var b=this.chart.xAxis[0],e=this.xAxis,d=e.options,f=b.options,g;a&&null===b.dataMin||(g={dataMin:h(d&&d.min,c("min",f.min,b.dataMin,e.dataMin,e.min)),dataMax:h(d&&d.max,c("max",f.max,b.dataMax,e.dataMax,e.max))});return g};g.prototype.setBaseSeries=function(a,b){var c=this.chart,e=this.baseSeries=[];a=a||c.options&&c.options.navigator.baseSeries||(c.series.length?w(c.series,function(a){return!a.options.isInternal}).index:
|
|
|
+0);(c.series||[]).forEach(function(b,c){b.options.isInternal||!b.options.showInNavigator&&(c!==a&&b.options.id!==a||!1===b.options.showInNavigator)||e.push(b)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,b)};g.prototype.updateNavigatorSeries=function(a,b){var c=this,d=c.chart,f=c.baseSeries,g,k,n=c.navigatorOptions.series,m,q={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,
|
|
|
+isInternal:!0,states:{inactive:{opacity:1}}},u=c.series=(c.series||[]).filter(function(a){var b=a.baseSeries;return 0>f.indexOf(b)?(b&&(t(b,"updatedData",c.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});f&&f.length&&f.forEach(function(a){var r=a.navigatorSeries,t=z({color:a.color,visible:a.visible},p(n)?l.navigator.series:n);r&&!1===c.navigatorOptions.adaptToUpdatedData||(q.name="Navigator "+f.length,g=a.options||{},m=g.navigatorOptions||{},t.dataLabels=e(t.dataLabels),
|
|
|
+k=v(g,q,t,m),k.pointRange=h(t.pointRange,m.pointRange,l.plotOptions[k.type||"line"].pointRange),t=m.data||t.data,c.hasNavigatorData=c.hasNavigatorData||!!t,k.data=t||g.data&&g.data.slice(0),r&&r.options?r.update(k,b):(a.navigatorSeries=d.initSeries(k),a.navigatorSeries.baseSeries=a,u.push(a.navigatorSeries)))});if(n.data&&(!f||!f.length)||p(n))c.hasNavigatorData=!1,n=e(n),n.forEach(function(a,b){q.name="Navigator "+(u.length+1);k=v(l.navigator.series,{color:d.series[b]&&!d.series[b].options.isInternal&&
|
|
|
+d.series[b].color||d.options.colors[b]||d.options.colors[0]},q,a);k.data=a.data;k.data&&(c.hasNavigatorData=!0,u.push(d.initSeries(k)))});a&&this.addBaseSeriesEvents()};g.prototype.addBaseSeriesEvents=function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&b[0].eventsToUnbind.push(m(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));b.forEach(function(b){b.eventsToUnbind.push(m(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}));b.eventsToUnbind.push(m(b,"hide",
|
|
|
+function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}));!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&b.eventsToUnbind.push(m(b,"updatedData",this.updatedDataHandler));b.eventsToUnbind.push(m(b,"remove",function(){this.navigatorSeries&&(M(a.series,this.navigatorSeries),B(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))},this)};g.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a,
|
|
|
+b.xData&&b.xData.length?b.xData[0]:a)},a)};g.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))};g.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax;b=b.max-b.min;var d=a.stickToMin,g=a.stickToMax,k=h(this.options.overscroll,0),l=a.series&&a.series[0],m=!!this.setExtremes;if(!this.eventArgs||
|
|
|
+"rangeSelectorButton"!==this.eventArgs.trigger){if(d){var p=c;var q=p+b}g&&(q=e+k,d||(p=Math.max(c,q-b,a.getBaseSeriesMin(l&&l.xData?l.xData[0]:-Number.MAX_VALUE))));m&&(d||g)&&f(p)&&(this.min=this.userMin=p,this.max=this.userMax=q)}a.stickToMin=a.stickToMax=null};g.prototype.updatedDataHandler=function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=a.shouldStickToMin(this,a);
|
|
|
+b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))};g.prototype.shouldStickToMin=function(a,b){b=b.getBaseSeriesMin(a.xData[0]);var c=a.xAxis;a=c.max;var e=c.min;c=c.options.range;return f(a)&&f(e)?c&&0<a-b?a-b<c:e<=b:!1};g.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(m(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||this.xAxis[0]);
|
|
|
+b&&a.render(b.min,b.max)}),m(this.chart,"getMargins",function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?"marginRight":"plotLeft");this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};g.prototype.destroy=function(){this.removeEvents();this.xAxis&&(M(this.chart.xAxis,this.xAxis),M(this.chart.axes,this.xAxis));this.yAxis&&(M(this.chart.yAxis,this.yAxis),M(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&
|
|
|
+a.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){J(a)},this)};return g}();G.Navigator||(G.Navigator=F,x.compose(a),m(r,"beforeShowResetZoom",function(){var a=this.options,c=a.navigator,e=a.rangeSelector;if((c&&c.enabled||e&&e.enabled)&&(!b&&"x"===a.chart.zoomType||b&&"x"===a.chart.pinchType))return!1}),
|
|
|
+m(r,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new F(this)}),m(r,"afterSetChartSize",function(){var a=this.legend,b=this.navigator;if(b){var c=a&&a.options;var e=b.xAxis;var d=b.yAxis;var f=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-f-b.height:this.spacing[3]+f,b.top=this.plotTop+f):(b.left=h(e.left,this.plotLeft+f),b.top=b.navigatorOptions.top||this.chartHeight-b.height-f-this.spacing[2]-(this.rangeSelector&&
|
|
|
+this.extraBottomMargin?this.rangeSelector.getHeight():0)-(c&&"bottom"===c.verticalAlign&&"proximate"!==c.layout&&c.enabled&&!c.floating?a.legendHeight+h(c.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));e&&d&&(this.inverted?e.options.left=d.options.left=b.left:e.options.top=d.options.top=b.top,e.setAxisSize(),d.setAxisSize())}}),m(r,"update",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(v(!0,this.options.navigator,
|
|
|
+b),v(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)}),m(r,"afterUpdate",function(a){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new F(this),h(a.redraw,!0)&&this.redraw(a.animation))}),m(r,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),m(q,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,
|
|
|
+!1)}),r.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))}));G.Navigator=F;return G.Navigator});P(a,"Extensions/RangeSelector.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,r,D,G,x,H){function y(a){if(-1!==a.indexOf("%L"))return"text";var b="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+
|
|
|
+b)}),e="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return b&&e?"datetime-local":b?"date":e?"time":"text"}var E=G.defaultOptions,q=H.addEvent,k=H.createElement,g=H.css,d=H.defined,b=H.destroyObjectProperties,l=H.discardElement,m=H.extend,A=H.find,L=H.fireEvent,B=H.isNumber,J=H.merge,M=H.objectEach,z=H.pad,w=H.pick,p=H.pInt,f=H.splat;m(E,{rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,
|
|
|
+height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}});m(E.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"});var v=
|
|
|
+function(){function e(a){this.buttons=void 0;this.buttonOptions=e.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=a;this.init(a)}e.prototype.clickButton=function(b,e){var c=this.chart,g=this.buttonOptions[b],h=c.xAxis[0],k=c.scroller&&c.scroller.getUnionExtremes()||h||{},l=k.dataMin,m=k.dataMax,p=h&&Math.round(Math.min(h.max,w(m,h.max))),r=g.type;k=g._range;var t,v=g.dataGrouping;if(null!==l&&null!==m){c.fixedRange=k;this.setSelected(b);v&&(this.forcedDataGrouping=
|
|
|
+!0,a.prototype.setDataGrouping.call(h||{chart:this.chart},v,!1),this.frozenStates=g.preserveDataGrouping);if("month"===r||"year"===r)if(h){r={range:g,max:p,chart:c,dataMin:l,dataMax:m};var F=h.minFromRange.call(r);B(r.newMax)&&(p=r.newMax)}else k=g;else if(k)F=Math.max(p-k,l),p=Math.min(F+k,m);else if("ytd"===r)if(h)"undefined"===typeof m&&(l=Number.MAX_VALUE,m=Number.MIN_VALUE,c.series.forEach(function(a){a=a.xData;l=Math.min(a[0],l);m=Math.max(a[a.length-1],m)}),e=!1),p=this.getYTDExtremes(m,l,
|
|
|
+c.time.useUTC),F=t=p.min,p=p.max;else{this.deferredYTDClick=b;return}else"all"===r&&h&&(c.navigator&&c.navigator.baseSeries[0]&&(c.navigator.baseSeries[0].xAxis.options.range=void 0),F=l,p=m);d(F)&&(F+=g._offsetMin);d(p)&&(p+=g._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=b+1);if(h)h.setExtremes(F,p,w(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:g});else{var x=f(c.options.xAxis)[0];var y=x.range;x.range=k;var z=x.min;x.min=t;q(c,"load",function(){x.range=y;x.min=z})}L(this,
|
|
|
+"afterBtnClick")}};e.prototype.setSelected=function(a){this.selected=this.options.selected=a};e.prototype.init=function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||b.defaultButtons.slice(),d=c.selected,f=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&L(a,"blur");c&&c.blur&&L(c,"blur")};b.chart=a;b.options=c;b.buttons=[];b.buttonOptions=e;this.eventsToUnbind=[];this.eventsToUnbind.push(q(a.container,"mousedown",f));this.eventsToUnbind.push(q(a,"resize",f));e.forEach(b.computeButtonRange);
|
|
|
+"undefined"!==typeof d&&e[d]&&this.clickButton(d,!1);this.eventsToUnbind.push(q(a,"load",function(){a.xAxis&&a.xAxis[0]&&q(a.xAxis[0],"setExtremes",function(c){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==c.trigger&&"updatedData"!==c.trigger&&b.forcedDataGrouping&&!b.frozenStates&&this.setDataGrouping(!1,!1)})}))};e.prototype.updateButtonStates=function(){var a=this,b=this.chart,e=this.dropdown,d=b.xAxis[0],f=Math.round(d.max-d.min),g=!d.hasVisibleSeries,h=b.scroller&&b.scroller.getUnionExtremes()||
|
|
|
+d,k=h.dataMin,l=h.dataMax;b=a.getYTDExtremes(l,k,b.time.useUTC);var m=b.min,p=b.max,q=a.selected,r=B(q),t=a.options.allButtonsEnabled,v=a.buttons;a.buttonOptions.forEach(function(b,c){var h=b._range,n=b.type,u=b.count||1,C=v[c],w=0,F=b._offsetMax-b._offsetMin;b=c===q;var x=h>l-k,y=h<d.minRange,z=!1,A=!1;h=h===f;("month"===n||"year"===n)&&f+36E5>=864E5*{month:28,year:365}[n]*u-F&&f-36E5<=864E5*{month:31,year:366}[n]*u+F?h=!0:"ytd"===n?(h=p-m+F===f,z=!b):"all"===n&&(h=d.max-d.min>=l-k,A=!b&&r&&h);n=
|
|
|
+!t&&(x||y||A||g);u=b&&h||h&&!r&&!z||b&&a.frozenStates;n?w=3:u&&(r=!0,w=2);C.state!==w&&(C.setState(w),e&&(e.options[c+1].disabled=n,2===w&&(e.selectedIndex=c+1)),0===w&&q===c&&a.setSelected())})};e.prototype.computeButtonRange=function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=w(a.offsetMin,0);a._offsetMax=w(a.offsetMax,0);a._range+=
|
|
|
+a._offsetMax-a._offsetMin};e.prototype.getInputValue=function(a){a="min"===a?this.minInput:this.maxInput;var b=this.chart.options.rangeSelector,c=this.chart.time;return a?("text"===a.type&&b.inputDateParser||this.defaultInputDateParser)(a.value,c.useUTC,c):0};e.prototype.setInputValue=function(a,b){var c=this.options,e=this.chart.time,f="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(f){var g=f.getAttribute("data-hc-time");g=d(g)?Number(g):void 0;d(b)&&(d(g)&&
|
|
|
+f.setAttribute("data-hc-time-previous",g),f.setAttribute("data-hc-time",b),g=b);f.value=e.dateFormat(this.inputTypeFormats[f.type]||c.inputEditDateFormat,g);a&&a.attr({text:e.dateFormat(c.inputDateFormat,g)})}};e.prototype.setInputExtremes=function(a,b,e){if(a="min"===a?this.minInput:this.maxInput){var c=this.inputTypeFormats[a.type],d=this.chart.time;c&&(b=d.dateFormat(c,b),a.min!==b&&(a.min=b),e=d.dateFormat(c,e),a.max!==e&&(a.max=e))}};e.prototype.showInput=function(a){var b="min"===a?this.minDateBox:
|
|
|
+this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&b&&this.inputGroup){var c="text"===a.type,e=this.inputGroup,d=e.translateX;e=e.translateY;var f=this.options.inputBoxWidth;g(a,{width:c?b.width+(f?-2:20)+"px":"auto",height:c?b.height-2+"px":"auto",border:"2px solid silver"});c&&f?g(a,{left:d+b.x+"px",top:e+"px"}):g(a,{left:Math.min(Math.round(b.x+d-(a.offsetWidth-b.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:e-(a.offsetHeight-b.height)/2+"px"})}};e.prototype.hideInput=function(a){(a=
|
|
|
+"min"===a?this.minInput:this.maxInput)&&g(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};e.prototype.defaultInputDateParser=function(a,b,e){var c=a.split("/").join("-").split(" ").join("T");-1===c.indexOf("T")&&(c+="T00:00");if(b)c+="Z";else{var d;if(d=D.isSafari)d=c,d=!(6<d.length&&(d.lastIndexOf("-")===d.length-6||d.lastIndexOf("+")===d.length-6));d&&(d=(new Date(c)).getTimezoneOffset()/60,c+=0>=d?"+"+z(-d)+":00":"-"+z(d)+":00")}c=Date.parse(c);B(c)||(a=a.split("-"),c=Date.UTC(p(a[0]),p(a[1])-
|
|
|
+1,p(a[2])));e&&b&&B(c)&&(c+=e.getTimezoneOffset(c));return c};e.prototype.drawInput=function(a){function b(){var b=f.getInputValue(a),e=c.xAxis[0],d=c.scroller&&c.scroller.xAxis?c.scroller.xAxis:e,g=d.dataMin;d=d.dataMax;var h=f.maxInput,k=f.minInput;b!==Number(t.getAttribute("data-hc-time-previous"))&&B(b)&&(t.setAttribute("data-hc-time-previous",b),q&&h&&B(g)?b>Number(h.getAttribute("data-hc-time"))?b=void 0:b<g&&(b=g):k&&B(d)&&(b<Number(k.getAttribute("data-hc-time"))?b=void 0:b>d&&(b=d)),"undefined"!==
|
|
|
+typeof b&&e.setExtremes(q?b:e.min,q?e.max:b,void 0,void 0,{trigger:"rangeSelectorInput"}))}var c=this.chart,e=this.div,d=this.inputGroup,f=this,h=c.renderer.style||{},l=c.renderer,p=c.options.rangeSelector,q="min"===a,r=E.lang[q?"rangeSelectorFrom":"rangeSelectorTo"]||"";r=l.label(r,0).addClass("highcharts-range-label").attr({padding:r?2:0,height:r?p.inputBoxHeight:0}).add(d);l=l.label("",0).addClass("highcharts-range-input").attr({padding:2,width:p.inputBoxWidth,height:p.inputBoxHeight,"text-align":"center"}).on("click",
|
|
|
+function(){f.showInput(a);f[a+"Input"].focus()});c.styledMode||l.attr({stroke:p.inputBoxBorderColor,"stroke-width":1});l.add(d);var t=k("input",{name:a,className:"highcharts-range-selector"},void 0,e);t.setAttribute("type",y(p.inputDateFormat||"%b %e, %Y"));c.styledMode||(r.css(J(h,p.labelStyle)),l.css(J({color:"#333333"},h,p.inputStyle)),g(t,m({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:h.fontSize,fontFamily:h.fontFamily,
|
|
|
+top:"-9999em"},p.inputStyle)));t.onfocus=function(){f.showInput(a)};t.onblur=function(){t===D.doc.activeElement&&b();f.hideInput(a);f.setInputValue(a);t.blur()};var v=!1;t.onchange=function(){v||(b(),f.hideInput(a),t.blur())};t.onkeypress=function(a){13===a.keyCode&&b()};t.onkeydown=function(a){v=!0;38!==a.keyCode&&40!==a.keyCode||b()};t.onkeyup=function(){v=!1};return{dateBox:l,input:t,label:r}};e.prototype.getPosition=function(){var a=this.chart,b=a.options.rangeSelector;a="top"===b.verticalAlign?
|
|
|
+a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}};e.prototype.getYTDExtremes=function(a,b,e){var c=this.chart.time,d=new c.Date(a),f=c.get("FullYear",d);e=e?c.Date.UTC(f,0,1):+new c.Date(f,0,1);b=Math.max(b,e);d=d.getTime();return{max:Math.min(a||d,d),min:b}};e.prototype.render=function(a,b){var c=this.chart,e=c.renderer,f=c.container,g=c.options,h=g.rangeSelector,l=w(g.chart.style&&g.chart.style.zIndex,0)+1;g=h.inputEnabled;if(!1!==h.enabled){this.rendered||
|
|
|
+(this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=k("div",void 0,{position:"relative",height:0,zIndex:l}),this.buttonOptions.length&&this.renderButtons(),f.parentNode&&f.parentNode.insertBefore(this.div,f),g&&(this.inputGroup=e.g("input-group").add(this.group),e=this.drawInput("min"),this.minDateBox=e.dateBox,this.minLabel=e.label,this.minInput=e.input,e=this.drawInput("max"),this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input));if(g&&(this.setInputValue("min",
|
|
|
+a),this.setInputValue("max",b),a=c.scroller&&c.scroller.getUnionExtremes()||c.xAxis[0]||{},d(a.dataMin)&&d(a.dataMax)&&(c=c.xAxis[0].minRange||0,this.setInputExtremes("min",a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-c),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+c,a.dataMax)),this.inputGroup)){var m=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b=a.getBBox().width;b&&(a.attr({x:m}),m+=b+h.inputSpacing)}})}this.alignElements();
|
|
|
+this.rendered=!0}};e.prototype.renderButtons=function(){var a=this,b=this.buttons,e=this.options,d=E.lang,f=this.chart.renderer,g=J(e.buttonTheme),h=g&&g.states,l=g.width||28;delete g.width;delete g.states;this.buttonGroup=f.g("range-selector-buttons").add(this.group);var m=this.dropdown=k("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);q(m,"touchstart",function(){m.style.fontSize="16px"});[[D.isMS?"mouseover":
|
|
|
+"mouseenter"],[D.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(c){var e=c[0],d=c[1];q(m,e,function(){var c=b[a.currentButtonIndex()];c&&L(c.element,d||e)})});this.zoomText=f.label(d&&d.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(e.labelStyle),g["stroke-width"]=w(g["stroke-width"],0));k("option",{textContent:this.zoomText.textStr,disabled:!0},
|
|
|
+void 0,m);this.buttonOptions.forEach(function(c,e){k("option",{textContent:c.title||c.text},void 0,m);b[e]=f.button(c.text,0,0,function(b){var d=c.events&&c.events.click,f;d&&(f=d.call(c,b));!1!==f&&a.clickButton(e);a.isActive=!0},g,h&&h.hover,h&&h.select,h&&h.disabled).attr({"text-align":"center",width:l}).add(a.buttonGroup);c.title&&b[e].attr("title",c.title)})};e.prototype.alignElements=function(){var a=this,b=this.buttonGroup,e=this.buttons,d=this.chart,f=this.group,g=this.inputGroup,h=this.options,
|
|
|
+k=this.zoomText,l=d.options,m=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions;l=h.buttonPosition;var p=h.inputPosition,q=h.verticalAlign,r=function(b,c){return m&&a.titleCollision(d)&&"top"===q&&"right"===c.align&&c.y-b.getBBox().height-12<(m.y||0)+(m.height||0)+d.spacing[0]?-40:0},t=d.plotLeft;if(f&&l&&p){var v=l.x-d.spacing[3];if(b){this.positionButtons();if(!this.initialButtonGroupWidth){var x=0;k&&(x+=k.getBBox().width+5);e.forEach(function(a,b){x+=a.width;b!==
|
|
|
+e.length-1&&(x+=h.buttonSpacing)});this.initialButtonGroupWidth=x}t-=d.spacing[3];this.updateButtonStates();k=r(b,l);this.alignButtonGroup(k);f.placed=b.placed=d.hasLoaded}b=0;g&&(b=r(g,p),"left"===p.align?v=t:"right"===p.align&&(v=-Math.max(d.axisOffset[1],-b)),g.align({y:p.y,width:g.getBBox().width,align:p.align,x:p.x+v-2},!0,d.spacingBox),g.placed=d.hasLoaded);this.handleCollision(b);f.align({verticalAlign:q},!0,d.spacingBox);g=f.alignAttr.translateY;b=f.getBBox().height+20;r=0;"bottom"===q&&(r=
|
|
|
+(r=d.legend&&d.legend.options)&&"bottom"===r.verticalAlign&&r.enabled&&!r.floating?d.legend.legendHeight+w(r.margin,10):0,b=b+r-20,r=g-b-(h.floating?0:h.y)-(d.titleOffset?d.titleOffset[2]:0)-10);if("top"===q)h.floating&&(r=0),d.titleOffset&&d.titleOffset[0]&&(r=d.titleOffset[0]),r+=d.margin[0]-d.spacing[0]||0;else if("middle"===q)if(p.y===l.y)r=g;else if(p.y||l.y)r=0>p.y||0>l.y?r-Math.min(p.y,l.y):g-b;f.translate(h.x,h.y+Math.floor(r));l=this.minInput;p=this.maxInput;g=this.dropdown;h.inputEnabled&&
|
|
|
+l&&p&&(l.style.marginTop=f.translateY+"px",p.style.marginTop=f.translateY+"px");g&&(g.style.marginTop=f.translateY+"px")}};e.prototype.alignButtonGroup=function(a,b){var c=this.chart,e=this.buttonGroup,d=this.options.buttonPosition,f=c.plotLeft-c.spacing[3],g=d.x-c.spacing[3];"right"===d.align?g+=a-f:"center"===d.align&&(g-=f/2);e&&e.align({y:d.y,width:w(b,this.initialButtonGroupWidth),align:d.align,x:g},!0,c.spacingBox)};e.prototype.positionButtons=function(){var a=this.buttons,b=this.chart,e=this.options,
|
|
|
+d=this.zoomText,f=b.hasLoaded?"animate":"attr",g=e.buttonPosition,h=b.plotLeft,k=h;d&&"hidden"!==d.visibility&&(d[f]({x:w(h+g.x,h)}),k+=g.x+d.getBBox().width+5);this.buttonOptions.forEach(function(b,c){if("hidden"!==a[c].visibility)a[c][f]({x:k}),k+=a[c].width+e.buttonSpacing;else a[c][f]({x:h})})};e.prototype.handleCollision=function(a){var b=this,c=this.chart,e=this.buttonGroup,d=this.inputGroup,f=this.options,g=f.buttonPosition,h=f.dropdown,k=f.inputPosition;f=function(){var a=0;b.buttons.forEach(function(b){b=
|
|
|
+b.getBBox();b.width>a&&(a=b.width)});return a};var l=function(b){if(d&&e){var c=d.alignAttr.translateX+d.alignOptions.x-a+d.getBBox().x+2,f=d.alignOptions.width,h=e.alignAttr.translateX+e.getBBox().x;return h+b>c&&c+f>h&&g.y<k.y+d.getBBox().height}return!1},m=function(){d&&e&&d.attr({translateX:d.alignAttr.translateX+(c.axisOffset[1]>=-a?0:-a),translateY:d.alignAttr.translateY+e.getBBox().height+10})};if(e){if("always"===h){this.collapseButtons(a);l(f())&&m();return}"never"===h&&this.expandButtons()}d&&
|
|
|
+e?k.align===g.align||l(this.initialButtonGroupWidth+20)?"responsive"===h?(this.collapseButtons(a),l(f())&&m()):m():"responsive"===h&&this.expandButtons():e&&"responsive"===h&&(this.initialButtonGroupWidth>c.plotWidth?this.collapseButtons(a):this.expandButtons())};e.prototype.collapseButtons=function(a){var b=this.buttons,c=this.buttonOptions,e=this.chart,d=this.dropdown,f=this.options,g=this.zoomText,h=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},k=function(a){return{text:a?
|
|
|
+a+" \u25be":"\u25be",width:"auto",paddingLeft:w(f.buttonTheme.paddingLeft,h.padding,8),paddingRight:w(f.buttonTheme.paddingRight,h.padding,8)}};g&&g.hide();var l=!1;c.forEach(function(a,c){c=b[c];2!==c.state?c.hide():(c.show(),c.attr(k(a.text)),l=!0)});l||(d&&(d.selectedIndex=0),b[0].show(),b[0].attr(k(this.zoomText&&this.zoomText.textStr)));c=f.buttonPosition.align;this.positionButtons();"right"!==c&&"center"!==c||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()};
|
|
|
+e.prototype.expandButtons=function(){var a=this.buttons,b=this.buttonOptions,e=this.options,d=this.zoomText;this.hideDropdown();d&&d.show();b.forEach(function(b,c){c=a[c];c.show();c.attr({text:b.text,width:e.buttonTheme.width||28,paddingLeft:w(e.buttonTheme.paddingLeft,"unset"),paddingRight:w(e.buttonTheme.paddingRight,"unset")});2>c.state&&c.setState(0)});this.positionButtons()};e.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0<a.selectedIndex?a.selectedIndex-1:0};e.prototype.showDropdown=
|
|
|
+function(){var a=this.buttonGroup,b=this.buttons,e=this.chart,d=this.dropdown;if(a&&d){var f=a.translateX;a=a.translateY;b=b[this.currentButtonIndex()].getBBox();g(d,{left:e.plotLeft+f+"px",top:a+.5+"px",width:b.width+"px",height:b.height+"px"});this.hasVisibleDropdown=!0}};e.prototype.hideDropdown=function(){var a=this.dropdown;a&&(g(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};e.prototype.getHeight=function(){var a=this.options,b=this.group,e=a.y,d=a.buttonPosition.y,
|
|
|
+f=a.inputPosition.y;if(a.height)return a.height;this.alignElements();a=b?b.getBBox(!0).height+13+e:0;b=Math.min(f,d);if(0>f&&0>d||0<f&&0<d)a+=Math.abs(b);return a};e.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)};e.prototype.update=function(a){var b=this.chart;J(!0,b.options.rangeSelector,a);this.destroy();this.init(b);this.render()};e.prototype.destroy=function(){var a=this,d=a.minInput,f=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(a){return a()}),
|
|
|
+a.eventsToUnbind=void 0);b(a.buttons);d&&(d.onfocus=d.onblur=d.onchange=null);f&&(f.onfocus=f.onblur=f.onchange=null);M(a,function(b,c){b&&"chart"!==c&&(b instanceof x?b.destroy():b instanceof U.HTMLElement&&l(b));b!==e.prototype[c]&&(a[c]=null)},this)};return e}();v.prototype.defaultButtons=[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},
|
|
|
+{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}];v.prototype.inputTypeFormats={"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"};a.prototype.minFromRange=function(){var a=this.range,b=a.type,d=this.max,f=this.chart.time,g=function(a,c){var e="year"===b?"FullYear":"Month",d=new f.Date(a),g=f.get(e,d);f.set(e,d,g+c);g===f.get(e,d)&&f.set("Date",d,0);return d.getTime()-a};if(B(a)){var h=d-a;var k=a}else h=d+g(d,-a.count),this.chart&&(this.chart.fixedRange=
|
|
|
+d-h);var l=w(this.dataMin,Number.MIN_VALUE);B(h)||(h=l);h<=l&&(h=l,"undefined"===typeof k&&(k=g(h,a.count)),this.newMax=Math.min(h+k,this.dataMax));B(d)||(h=void 0);return h};if(!D.RangeSelector){var h=[],t=function(a){function b(){d&&(e=a.xAxis[0].getExtremes(),f=a.legend,k=d&&d.options.verticalAlign,B(e.min)&&d.render(e.min,e.max),f.display&&"top"===k&&k===f.options.verticalAlign&&(g=J(a.spacingBox),g.y="vertical"===f.options.layout?a.plotTop:g.y+d.getHeight(),f.group.placed=!1,f.align(g)))}var e,
|
|
|
+d=a.rangeSelector,f,g,k;d&&(A(h,function(b){return b[0]===a})||h.push([a,[q(a.xAxis[0],"afterSetExtremes",function(a){d&&d.render(a.min,a.max)}),q(a,"redraw",b)]]),b())};q(r,"afterGetContainer",function(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new v(this))});q(r,"beforeRender",function(){var a=this.axes,b=this.rangeSelector;b&&(B(b.deferredYTDClick)&&(b.clickButton(b.deferredYTDClick),delete b.deferredYTDClick),a.forEach(function(a){a.updateNames();a.setScale()}),
|
|
|
+this.getAxisMargins(),b.render(),a=b.options.verticalAlign,b.options.floating||("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0)))});q(r,"update",function(a){var b=a.options.rangeSelector;a=this.rangeSelector;var e=this.extraBottomMargin,f=this.extraTopMargin;b&&b.enabled&&!d(a)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=a=new v(this));this.extraTopMargin=this.extraBottomMargin=!1;a&&(t(this),b=b&&b.verticalAlign||a.options&&
|
|
|
+a.options.verticalAlign,a.options.floating||("bottom"===b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=!0)),this.extraBottomMargin!==e||this.extraTopMargin!==f)&&(this.isDirtyBox=!0)});q(r,"render",function(){var a=this.rangeSelector;a&&!a.options.floating&&(a.render(),a=a.options.verticalAlign,"bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))});q(r,"getMargins",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=
|
|
|
+a),this.extraBottomMargin&&(this.marginBottom+=a))});r.prototype.callbacks.push(t);q(r,"destroy",function(){for(var a=0;a<h.length;a++){var b=h[a];if(b[0]===this){b[1].forEach(function(a){return a()});h.splice(a,1);break}}});D.RangeSelector=v}return v});P(a,"Core/Chart/StockChart.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/DefaultOptions.js"],a["Core/Series/Series.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],
|
|
|
+function(a,r,D,G,x,H,I,E){function q(a,b){return"xAxis"===a?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:"yAxis"===a?{labels:{y:-2},opposite:z(b.opposite,!0),showLastLabel:!(!b.categories&&"category"!==b.type),title:{text:null}}:{}}function k(a,d){if("xAxis"===a){a=b();var f={type:"datetime",categories:void 0};z(d.navigator&&d.navigator.enabled,a.navigator.enabled,!0)&&(f.startOnTick=!1,f.endOnTick=!1);return f}return{}}var g=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 e in b)b.hasOwnProperty(e)&&(a[e]=b[e])};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)}}(),d=G.format,b=x.getOptions;a=E.addEvent;var l=E.clamp,m=E.defined,y=E.extend,L=E.find,B=E.isNumber,J=E.isString,M=E.merge,z=E.pick,w=E.splat;E=function(a){function d(){return null!==
|
|
|
+a&&a.apply(this,arguments)||this}g(d,a);d.prototype.init=function(d,f){var g=b(),e=d.xAxis,c=d.yAxis,h=z(d.navigator&&d.navigator.enabled,g.navigator.enabled,!0);d.xAxis=d.yAxis=void 0;h=M({chart:{panning:{enabled:!0,type:"x"},pinchType:"x"},navigator:{enabled:h},scrollbar:{enabled:z(g.scrollbar&&g.scrollbar.enabled,!0)},rangeSelector:{enabled:z(g.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:z(g.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},d,{isStock:!0});d.xAxis=e;d.yAxis=
|
|
|
+c;h.xAxis=w(d.xAxis||{}).map(function(a,b){return M(q("xAxis",a),g.xAxis,g.xAxis&&g.xAxis[b],a,k("xAxis",d))});h.yAxis=w(d.yAxis||{}).map(function(a,b){return M(q("yAxis",a),g.yAxis,g.yAxis&&g.yAxis[b],a)});a.prototype.init.call(this,h,f)};d.prototype.createAxis=function(b,d){d.axis=M(q(b,d.axis),d.axis,k(b,this.userOptions));return a.prototype.createAxis.call(this,b,d)};return d}(D);(function(a){a.stockChart=function(b,d,g){return new a(b,d,g)}})(E||(E={}));a(H,"setOptions",function(a){var b;this.chart.options.isStock&&
|
|
|
+(this.is("column")||this.is("columnrange")?b={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(b={marker:{enabled:!1,radius:2}}),b&&(a.plotOptions[this.type]=M(a.plotOptions[this.type],b)))});a(r,"autoLabelAlign",function(a){var b=this.chart,d=this.options;b=b._labelPanes=b._labelPanes||{};var g=this.options.labels;this.chart.options.isStock&&"yAxis"===this.coll&&(d=d.top+","+d.height,!b[d]&&g.enabled&&(15===g.x&&(g.x=0),"undefined"===typeof g.align&&(g.align="right"),b[d]=this,a.align=
|
|
|
+"right",a.preventDefault()))});a(r,"destroy",function(){var a=this.chart,b=this.options&&this.options.top+","+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});a(r,"getPlotLinePath",function(a){function b(a){var b="xAxis"===a?"yAxis":"xAxis";a=d.options[b];return B(a)?[k[b][a]]:J(a)?[k.get(a)]:g.map(function(a){return a[b]})}var d=this,g=this.isLinked&&!this.series?this.linkedParent.series:this.series,k=d.chart,e=k.renderer,c=d.left,p=d.top,q,n,r,w,x=[],y=[],
|
|
|
+A=a.translatedValue,D=a.value,E=a.force;if(k.options.isStock&&!1!==a.acrossPanes&&"xAxis"===d.coll||"yAxis"===d.coll){a.preventDefault();y=b(d.coll);var G=d.isXAxis?k.yAxis:k.xAxis;G.forEach(function(a){if(m(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis";b=m(a.options[b])?k[b][a.options[b]]:k[b][0];d===b&&y.push(a)}});var H=y.length?[]:[d.isXAxis?k.yAxis[0]:k.xAxis[0]];y.forEach(function(a){-1!==H.indexOf(a)||L(H,function(b){return b.pos===a.pos&&b.len===a.len})||
|
|
|
+H.push(a)});var I=z(A,d.translate(D,null,null,a.old));B(I)&&(d.horiz?H.forEach(function(a){var b;n=a.pos;w=n+a.len;q=r=Math.round(I+d.transB);"pass"!==E&&(q<c||q>c+d.width)&&(E?q=r=l(q,c,c+d.width):b=!0);b||x.push(["M",q,n],["L",r,w])}):H.forEach(function(a){var b;q=a.pos;r=q+a.len;n=w=Math.round(p+d.height-I);"pass"!==E&&(n<p||n>p+d.height)&&(E?n=w=l(n,p,p+d.height):b=!0);b||x.push(["M",q,n],["L",r,w])}));a.path=0<x.length?e.crispPolyLine(x,a.lineWidth||1):null}});I.prototype.crispPolyLine=function(a,
|
|
|
+b){for(var d=0;d<a.length;d+=2){var f=a[d],g=a[d+1];f[1]===g[1]&&(f[1]=g[1]=Math.round(f[1])-b%2/2);f[2]===g[2]&&(f[2]=g[2]=Math.round(f[2])+b%2/2)}return a};a(r,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});a(r,"afterDrawCrosshair",function(a){var b,g;if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&B(this.min)&&B(this.max)){var h=this.chart,k=this.logarithmic,e=this.crosshair.label,c=this.horiz,l=this.opposite,m=this.left,
|
|
|
+n=this.top,p=this.crossLabel,q=e.format,r="",w="inside"===this.options.tickPosition,x=!1!==this.crosshair.snap,A=0,D=a.e||this.cross&&this.cross.e;a=a.point;var E=this.min,G=this.max;k&&(E=k.lin2log(E),G=k.lin2log(G));k=c?"center":l?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";p||(p=this.crossLabel=h.renderer.label("",0,void 0,e.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(a?a.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:e.align||
|
|
|
+k,padding:z(e.padding,8),r:z(e.borderRadius,3),zIndex:2}).add(this.labelGroup),h.styledMode||p.attr({fill:e.backgroundColor||a&&a.series&&a.series.color||"#666666",stroke:e.borderColor||"","stroke-width":e.borderWidth||0}).css(y({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},e.style||{})));c?(k=x?(a.plotX||0)+m:D.chartX,n+=l?0:this.height):(k=l?this.width+m:0,n=x?(a.plotY||0)+n:D.chartY);q||e.formatter||(this.dateTime&&(r="%b %d, %Y"),q="{value"+(r?":"+r:"")+"}");r=x?this.isXAxis?
|
|
|
+a.x:a.y:this.toValue(c?D.chartX:D.chartY);x=a?a.series.isPointInside(a):B(r)&&r>E&&r<G;D="";q?D=d(q,{value:r},h):e.formatter&&B(r)&&(D=e.formatter.call(this,r));p.attr({text:D,x:k,y:n,visibility:x?"inherit":"hidden"});e=p.getBBox();if(B(p.y))if(c){if(w&&!l||!w&&l)n=p.y-e.height}else n=p.y-e.height/2;c?(b=m-e.x,g=m+this.width-e.x):(b="left"===this.labelAlign?m:0,g="right"===this.labelAlign?m+this.width:h.chartWidth);p.translateX<b&&(A=b-p.translateX);p.translateX+e.width>=g&&(A=-(p.translateX+e.width-
|
|
|
+g));p.attr({x:k+A,y:n,anchorX:c?k:this.opposite?0:h.chartWidth,anchorY:c?this.opposite?h.chartHeight:0:n+e.height/2})}});H.prototype.forceCropping=function(){var a=this.chart,b=this.options.dataGrouping;return!1!==this.allowDG&&b&&z(b.enabled,a.options.isStock)};a(D,"update",function(a){a=a.options;"scrollbar"in a&&this.navigator&&(M(!0,this.options.scrollbar,a.scrollbar),this.navigator.update({},!1),delete a.scrollbar)});return E});P(a,"masters/modules/stock.src.js",[a["Core/Globals.js"],a["Core/Axis/OrdinalAxis.js"],
|
|
|
+a["Series/DataModifyComposition.js"],a["Core/Scrollbar.js"],a["Core/Chart/StockChart.js"]],function(a,r,D,G,x){a.Scrollbar=G;a.StockChart=a.stockChart=x.stockChart;G.compose(a.Axis);r.compose(a.Axis,a.Series,a.Chart);D.compose(a.Series,a.Axis,a.Point)});P(a,"masters/highstock.src.js",[a["masters/highcharts.src.js"]],function(a){a.product="Highstock";return a});a["masters/highstock.src.js"]._modules=a;return a["masters/highstock.src.js"]});
|
|
|
+//# sourceMappingURL=highstock.js.map
|