highcharts
Version:
JavaScript charting framework
105 lines (103 loc) • 97.1 kB
JavaScript
/*
Highcharts JS v9.0.1 (2021-02-15)
(c) 2009-2021 Torstein Honsi
License: www.highcharts.com/license
*/
(function(e){"object"===typeof module&&module.exports?(e["default"]=e,module.exports=e):"function"===typeof define&&define.amd?define("highcharts/highcharts-more",["highcharts"],function(z){e(z);e.Highcharts=z;return e}):e("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(e){function z(e,c,h,g){e.hasOwnProperty(c)||(e[c]=g.apply(null,h))}e=e?e._modules:{};z(e,"Extensions/Pane.js",[e["Core/Chart/Chart.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Pointer.js"],e["Core/Utilities.js"],
e["Mixins/CenteredSeries.js"]],function(e,c,h,g,a,u){function d(b,a,k){return Math.sqrt(Math.pow(b-k[0],2)+Math.pow(a-k[1],2))<=k[2]/2}var r=a.addEvent,n=a.extend,x=a.merge,b=a.pick,k=a.splat;e.prototype.collectionsWithUpdate.push("pane");a=function(){function b(b,a){this.options=this.chart=this.center=this.background=void 0;this.coll="pane";this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0};this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:h.neutralColor20,
backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,h.backgroundColor],[1,h.neutralColor10]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"};this.init(b,a)}b.prototype.init=function(b,a){this.chart=a;this.background=[];a.pane.push(this);this.setOptions(b)};b.prototype.setOptions=function(b){this.options=x(this.defaultOptions,this.chart.angular?{background:{}}:void 0,b)};b.prototype.render=function(){var b=this.options,a=this.options.background,l=this.chart.renderer;
this.group||(this.group=l.g("pane-group").attr({zIndex:b.zIndex||0}).add());this.updateCenter();if(a)for(a=k(a),b=Math.max(a.length,this.background.length||0),l=0;l<b;l++)a[l]&&this.axis?this.renderBackground(x(this.defaultBackgroundOptions,a[l]),l):this.background[l]&&(this.background[l]=this.background[l].destroy(),this.background.splice(l,1))};b.prototype.renderBackground=function(b,a){var k="animate",l={"class":"highcharts-pane "+(b.className||"")};this.chart.styledMode||n(l,{fill:b.backgroundColor,
stroke:b.borderColor,"stroke-width":b.borderWidth});this.background[a]||(this.background[a]=this.chart.renderer.path().add(this.group),k="attr");this.background[a][k]({d:this.axis.getPlotBandPath(b.from,b.to,b)}).attr(l)};b.prototype.updateCenter=function(b){this.center=(b||this.axis||{}).center=u.getCenter.call(this)};b.prototype.update=function(b,a){x(!0,this.options,b);x(!0,this.chart.options.pane,b);this.setOptions(this.options);this.render();this.chart.axes.forEach(function(b){b.pane===this&&
(b.pane=null,b.update({},a))},this)};return b}();e.prototype.getHoverPane=function(b){var a=this,k;b&&a.pane.forEach(function(l){var c=b.chartX-a.plotLeft,h=b.chartY-a.plotTop;d(a.inverted?h:c,a.inverted?c:h,l.center)&&(k=l)});return k};r(e,"afterIsInsidePlot",function(b){this.polar&&(b.isInsidePlot=this.pane.some(function(a){return d(b.x,b.y,a.center)}))});r(g,"beforeGetHoverData",function(a){var k=this.chart;k.polar?(k.hoverPane=k.getHoverPane(a),a.filter=function(l){return l.visible&&!(!a.shared&&
l.directTouch)&&b(l.options.enableMouseTracking,!0)&&(!k.hoverPane||l.xAxis.pane===k.hoverPane)}):k.hoverPane=void 0});r(g,"afterGetHoverData",function(b){var a=this.chart;b.hoverPoint&&b.hoverPoint.plotX&&b.hoverPoint.plotY&&a.hoverPane&&!d(b.hoverPoint.plotX,b.hoverPoint.plotY,a.hoverPane.center)&&(b.hoverPoint=void 0)});c.Pane=a;return c.Pane});z(e,"Core/Axis/HiddenAxis.js",[],function(){return function(){function e(){}e.init=function(c){c.getOffset=function(){};c.redraw=function(){this.isDirty=
!1};c.render=function(){this.isDirty=!1};c.createLabelCollector=function(){return function(){}};c.setScale=function(){};c.setCategories=function(){};c.setTitle=function(){};c.isHidden=!0};return e}()});z(e,"Core/Axis/RadialAxis.js",[e["Core/Axis/Axis.js"],e["Core/Axis/Tick.js"],e["Core/Axis/HiddenAxis.js"],e["Core/Utilities.js"]],function(e,c,h,g){var a=g.addEvent,u=g.correctFloat,d=g.defined,r=g.extend,n=g.fireEvent,x=g.merge,b=g.pick,k=g.relativeLength,l=g.wrap;g=function(){function c(){}c.init=
function(a){var l=e.prototype;a.setOptions=function(b){b=this.options=x(a.constructor.defaultOptions,this.defaultPolarOptions,b);b.plotBands||(b.plotBands=[]);n(this,"afterSetOptions")};a.getOffset=function(){l.getOffset.call(this);this.chart.axisOffset[this.side]=0};a.getLinePath=function(a,k,l){a=this.pane.center;var q=this.chart,p=b(k,a[2]/2-this.offset),f=this.left||0,A=this.top||0;"undefined"===typeof l&&(l=this.horiz?0:this.center&&-this.center[3]/2);l&&(p+=l);this.isCircular||"undefined"!==
typeof k?(k=this.chart.renderer.symbols.arc(f+a[0],A+a[1],p,p,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}),k.xBounds=[f+a[0]],k.yBounds=[A+a[1]-p]):(k=this.postTranslate(this.angleRad,p),k=[["M",this.center[0]+q.plotLeft,this.center[1]+q.plotTop],["L",k.x,k.y]]);return k};a.setAxisTranslation=function(){l.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):(this.center[2]-this.center[3])/2/(this.max-
this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)};a.beforeSetTickPositions=function(){this.autoConnect=this.isCircular&&"undefined"===typeof b(this.userMax,this.options.max)&&u(this.endAngleRad-this.startAngleRad)===u(2*Math.PI);!this.isCircular&&this.chart.inverted&&this.max++;this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)};a.setAxisSize=function(){l.setAxisSize.call(this);if(this.isRadial){this.pane.updateCenter(this);
var a=this.center=r([],this.pane.center);if(this.isCircular)this.sector=this.endAngleRad-this.startAngleRad;else{var k=this.postTranslate(this.angleRad,a[3]/2);a[0]=k.x-this.chart.plotLeft;a[1]=k.y-this.chart.plotTop}this.len=this.width=this.height=(a[2]-a[3])*b(this.sector,1)/2}};a.getPosition=function(a,k){a=this.translate(a);return this.postTranslate(this.isCircular?a:this.angleRad,b(this.isCircular?k:0>a?0:a,this.center[2]/2)-this.offset)};a.postTranslate=function(b,a){var k=this.chart,q=this.center;
b=this.startAngleRad+b;return{x:k.plotLeft+q[0]+Math.cos(b)*a,y:k.plotTop+q[1]+Math.sin(b)*a}};a.getPlotBandPath=function(a,k,l){var q=function(f){if("string"===typeof f){var p=parseInt(f,10);c.test(f)&&(p=p*A/100);return p}return f},p=this.center,f=this.startAngleRad,A=p[2]/2,v=Math.min(this.offset,0),m=this.left||0,D=this.top||0,c=/%$/;var C=this.isCircular;var d=b(q(l.outerRadius),A),y=q(l.innerRadius);q=b(q(l.thickness),10);if("polygon"===this.options.gridLineInterpolation)v=this.getPlotLinePath({value:a}).concat(this.getPlotLinePath({value:k,
reverse:!0}));else{a=Math.max(a,this.min);k=Math.min(k,this.max);a=this.translate(a);k=this.translate(k);C||(d=a||0,y=k||0);if("circle"!==l.shape&&C)l=f+(a||0),f+=k||0;else{l=-Math.PI/2;f=1.5*Math.PI;var h=!0}d-=v;v=this.chart.renderer.symbols.arc(m+p[0],D+p[1],d,d,{start:Math.min(l,f),end:Math.max(l,f),innerR:b(y,d-(q-v)),open:h});C&&(C=(f+l)/2,m=m+p[0]+p[2]/2*Math.cos(C),v.xBounds=C>-Math.PI/2&&C<Math.PI/2?[m,this.chart.plotWidth]:[0,m],v.yBounds=[D+p[1]+p[2]/2*Math.sin(C)],v.yBounds[0]+=C>-Math.PI&&
0>C||C>Math.PI?-10:10)}return v};a.getCrosshairPosition=function(b,a,k){var q=b.value,p=this.pane.center;if(this.isCircular){if(d(q))b.point&&(f=b.point.shapeArgs||{},f.start&&(q=this.chart.inverted?this.translate(b.point.rectPlotY,!0):b.point.x));else{var f=b.chartX||0;var A=b.chartY||0;q=this.translate(Math.atan2(A-k,f-a)-this.startAngleRad,!0)}b=this.getPosition(q);f=b.x;A=b.y}else d(q)||(f=b.chartX,A=b.chartY),d(f)&&d(A)&&(k=p[1]+this.chart.plotTop,q=this.translate(Math.min(Math.sqrt(Math.pow(f-
a,2)+Math.pow(A-k,2)),p[2]/2)-p[3]/2,!0));return[q,f||0,A||0]};a.getPlotLinePath=function(b){var a=this,l=a.pane.center,q=a.chart,p=q.inverted,f=b.value,A=b.reverse,v=a.getPosition(f),m=a.pane.options.background?a.pane.options.background[0]||a.pane.options.background:{},D=m.innerRadius||"0%",c=m.outerRadius||"100%";m=l[0]+q.plotLeft;var C=l[1]+q.plotTop,d=v.x,E=v.y,h=a.height;v=l[3]/2;var g;b.isCrosshair&&(E=this.getCrosshairPosition(b,m,C),f=E[0],d=E[1],E=E[2]);if(a.isCircular)f=Math.sqrt(Math.pow(d-
m,2)+Math.pow(E-C,2)),A="string"===typeof D?k(D,1):D/f,q="string"===typeof c?k(c,1):c/f,l&&v&&(f=v/f,A<f&&(A=f),q<f&&(q=f)),l=[["M",m+A*(d-m),C-A*(C-E)],["L",d-(1-q)*(d-m),E+(1-q)*(C-E)]];else if((f=a.translate(f))&&(0>f||f>h)&&(f=0),"circle"===a.options.gridLineInterpolation)l=a.getLinePath(0,f,v);else if(l=[],q[p?"yAxis":"xAxis"].forEach(function(f){f.pane===a.pane&&(g=f)}),g)for(m=g.tickPositions,g.autoConnect&&(m=m.concat([m[0]])),A&&(m=m.slice().reverse()),f&&(f+=v),d=0;d<m.length;d++)C=g.getPosition(m[d],
f),l.push(d?["L",C.x,C.y]:["M",C.x,C.y]);return l};a.getTitlePosition=function(){var b=this.center,a=this.chart,k=this.options.title;return{x:a.plotLeft+b[0]+(k.x||0),y:a.plotTop+b[1]-{high:.5,middle:.25,low:0}[k.align]*b[2]+(k.y||0)}};a.createLabelCollector=function(){var b=this;return function(){if(b.isRadial&&b.tickPositions&&!0!==b.options.labels.allowOverlap)return b.tickPositions.map(function(a){return b.ticks[a]&&b.ticks[a].label}).filter(function(b){return!!b})}}};c.compose=function(d,g){a(d,
"init",function(b){var a=this.chart,k=a.inverted,q=a.angular,p=a.polar,f=this.isXAxis,A=this.coll,v=q&&f,m,D=a.options;b=b.userOptions.pane||0;b=this.pane=a.pane&&a.pane[b];if("colorAxis"===A)this.isRadial=!1;else{if(q){if(v?h.init(this):c.init(this),m=!f)this.defaultPolarOptions=c.defaultRadialGaugeOptions}else p&&(c.init(this),this.defaultPolarOptions=(m=this.horiz)?c.defaultCircularOptions:x("xAxis"===A?d.defaultOptions:d.defaultYAxisOptions,c.defaultRadialOptions),k&&"yAxis"===A&&(this.defaultPolarOptions.stackLabels=
d.defaultYAxisOptions.stackLabels));q||p?(this.isRadial=!0,D.chart.zoomType=null,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&a.labelCollectors.push(this.labelCollector)):this.isRadial=!1;b&&m&&(b.axis=this);this.isCircular=m}});a(d,"afterInit",function(){var a=this.chart,k=this.options,l=this.pane,q=l&&l.options;a.angular&&this.isXAxis||!l||!a.angular&&!a.polar||(this.angleRad=(k.angle||0)*Math.PI/180,this.startAngleRad=(q.startAngle-90)*Math.PI/180,
this.endAngleRad=(b(q.endAngle,q.startAngle+360)-90)*Math.PI/180,this.offset=k.offset||0)});a(d,"autoLabelAlign",function(b){this.isRadial&&(b.align=void 0,b.preventDefault())});a(d,"destroy",function(){if(this.chart&&this.chart.labelCollectors){var b=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;0<=b&&this.chart.labelCollectors.splice(b,1)}});a(d,"initialAxisTranslation",function(){this.isRadial&&this.beforeSetTickPositions()});a(g,"afterGetPosition",function(b){this.axis.getPosition&&
r(b.pos,this.axis.getPosition(this.pos))});a(g,"afterGetLabelPosition",function(a){var l=this.axis,d=this.label;if(d){var q=d.getBBox(),p=l.options.labels,f=p.y,A=20,v=p.align,m=(l.translate(this.pos)+l.startAngleRad+Math.PI/2)/Math.PI*180%360,D=Math.round(m),c="end",C=0>D?D+360:D,g=C,E=0,h=0,r=null===p.y?.3*-q.height:0;if(l.isRadial){var x=l.getPosition(this.pos,l.center[2]/2+k(b(p.distance,-25),l.center[2]/2,-l.center[2]/2));"auto"===p.rotation?d.attr({rotation:m}):null===f&&(f=l.chart.renderer.fontMetrics(d.styles&&
d.styles.fontSize).b-q.height/2);null===v&&(l.isCircular?(q.width>l.len*l.tickInterval/(l.max-l.min)&&(A=0),v=m>A&&m<180-A?"left":m>180+A&&m<360-A?"right":"center"):v="center",d.attr({align:v}));if("auto"===v&&2===l.tickPositions.length&&l.isCircular){90<C&&180>C?C=180-C:270<C&&360>=C&&(C=540-C);180<g&&360>=g&&(g=360-g);if(l.pane.options.startAngle===D||l.pane.options.startAngle===D+360||l.pane.options.startAngle===D-360)c="start";v=-90<=D&&90>=D||-360<=D&&-270>=D||270<=D&&360>=D?"start"===c?"right":
"left":"start"===c?"left":"right";70<g&&110>g&&(v="center");15>C||180<=C&&195>C?E=.3*q.height:15<=C&&35>=C?E="start"===c?0:.75*q.height:195<=C&&215>=C?E="start"===c?.75*q.height:0:35<C&&90>=C?E="start"===c?.25*-q.height:q.height:215<C&&270>=C&&(E="start"===c?q.height:.25*-q.height);15>g?h="start"===c?.15*-q.height:.15*q.height:165<g&&180>=g&&(h="start"===c?.15*q.height:.15*-q.height);d.attr({align:v});d.translate(h,E+r)}a.pos.x=x.x+p.x;a.pos.y=x.y+f}}});l(g.prototype,"getMarkPath",function(b,a,k,
q,p,f,A){var v=this.axis;v.isRadial?(b=v.getPosition(this.pos,v.center[2]/2+q),a=["M",a,k,"L",b.x,b.y]):a=b.call(this,a,k,q,p,f,A);return a})};c.defaultCircularOptions={gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0};c.defaultRadialGaugeOptions={labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",
tickWidth:2,title:{rotation:0},zIndex:2};c.defaultRadialOptions={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};return c}();g.compose(e,c);return g});z(e,"Series/AreaRange/AreaRangePoint.js",[e["Series/Area/AreaSeries.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(e,c,h){var g=this&&this.__extends||function(){var a=function(d,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,
a){b.__proto__=a}||function(b,a){for(var k in a)a.hasOwnProperty(k)&&(b[k]=a[k])};return a(d,c)};return function(d,c){function b(){this.constructor=d}a(d,c);d.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),a=c.prototype,u=h.defined,d=h.isNumber;return function(c){function h(){var a=null!==c&&c.apply(this,arguments)||this;a.high=void 0;a.low=void 0;a.options=void 0;a.plotHigh=void 0;a.plotLow=void 0;a.plotHighX=void 0;a.plotLowX=void 0;a.plotX=void 0;a.series=void 0;return a}
g(h,c);h.prototype.setState=function(){var d=this.state,b=this.series,k=b.chart.polar;u(this.plotHigh)||(this.plotHigh=b.yAxis.toPixels(this.high,!0));u(this.plotLow)||(this.plotLow=this.plotY=b.yAxis.toPixels(this.low,!0));b.stateMarkerGraphic&&(b.lowerStateMarkerGraphic=b.stateMarkerGraphic,b.stateMarkerGraphic=b.upperStateMarkerGraphic);this.graphic=this.upperGraphic;this.plotY=this.plotHigh;k&&(this.plotX=this.plotHighX);a.setState.apply(this,arguments);this.state=d;this.plotY=this.plotLow;this.graphic=
this.lowerGraphic;k&&(this.plotX=this.plotLowX);b.stateMarkerGraphic&&(b.upperStateMarkerGraphic=b.stateMarkerGraphic,b.stateMarkerGraphic=b.lowerStateMarkerGraphic,b.lowerStateMarkerGraphic=void 0);a.setState.apply(this,arguments)};h.prototype.haloPath=function(){var d=this.series.chart.polar,b=[];this.plotY=this.plotLow;d&&(this.plotX=this.plotLowX);this.isInside&&(b=a.haloPath.apply(this,arguments));this.plotY=this.plotHigh;d&&(this.plotX=this.plotHighX);this.isTopInside&&(b=b.concat(a.haloPath.apply(this,
arguments)));return b};h.prototype.isValid=function(){return d(this.low)&&d(this.high)};return h}(e.prototype.pointClass)});z(e,"Series/AreaRange/AreaRangeSeries.js",[e["Series/AreaRange/AreaRangePoint.js"],e["Series/Area/AreaSeries.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,c,h,g,a,u,d){var r=this&&this.__extends||function(){var b=function(a,q){b=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(b,f){b.__proto__=f}||function(b,f){for(var p in f)f.hasOwnProperty(p)&&(b[p]=f[p])};return b(a,q)};return function(a,q){function p(){this.constructor=a}b(a,q);a.prototype=null===q?Object.create(q):(p.prototype=q.prototype,new p)}}(),n=c.prototype,x=h.prototype,b=g.noop,k=a.prototype,l=d.defined,t=d.extend,w=d.isArray,K=d.pick,L=d.merge;h=function(a){function d(){var q=null!==a&&a.apply(this,arguments)||this;q.data=void 0;q.options=void 0;q.points=void 0;q.lowerStateMarkerGraphic=void 0;
q.xAxis=void 0;q.setStackedPoints=b;return q}r(d,a);d.prototype.toYData=function(b){return[b.low,b.high]};d.prototype.highToXY=function(b){var p=this.chart,f=this.xAxis.postTranslate(b.rectPlotX,this.yAxis.len-b.plotHigh);b.plotHighX=f.x-p.plotLeft;b.plotHigh=f.y-p.plotTop;b.plotLowX=b.plotX};d.prototype.translate=function(){var b=this,p=b.yAxis,f=!!b.modifyValue;n.translate.apply(b);b.points.forEach(function(a){var v=a.high,m=a.plotY;a.isNull?a.plotY=null:(a.plotLow=m,a.plotHigh=p.translate(f?b.modifyValue(v,
a):v,0,1,0,1),f&&(a.yBottom=a.plotHigh))});this.chart.polar&&this.points.forEach(function(f){b.highToXY(f);f.tooltipPos=[(f.plotHighX+f.plotLowX)/2,(f.plotHigh+f.plotLow)/2]})};d.prototype.getGraphPath=function(b){var p=[],f=[],a,v=n.getGraphPath;var m=this.options;var q=this.chart.polar,k=q&&!1!==m.connectEnds,l=m.connectNulls,d=m.step;b=b||this.points;for(a=b.length;a--;){var c=b[a];var g=q?{plotX:c.rectPlotX,plotY:c.yBottom,doCurve:!1}:{plotX:c.plotX,plotY:c.plotY,doCurve:!1};c.isNull||k||l||b[a+
1]&&!b[a+1].isNull||f.push(g);var h={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,yBottom:c.yBottom,plotX:K(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull};f.push(h);p.push(h);c.isNull||k||l||b[a-1]&&!b[a-1].isNull||f.push(g)}b=v.call(this,b);d&&(!0===d&&(d="left"),m.step={left:"right",center:"center",right:"left"}[d]);p=v.call(this,p);f=v.call(this,f);m.step=d;m=[].concat(b,p);!this.chart.polar&&f[0]&&"M"===f[0][0]&&(f[0]=["L",f[0][1],f[0][2]]);this.graphPath=m;this.areaPath=b.concat(f);
m.isArea=!0;m.xMap=b.xMap;this.areaPath.xMap=b.xMap;return m};d.prototype.drawDataLabels=function(){var b=this.points,a=b.length,f,A=[],v=this.options.dataLabels,m,D=this.chart.inverted;if(w(v)){var l=v[0]||{enabled:!1};var d=v[1]||{enabled:!1}}else l=t({},v),l.x=v.xHigh,l.y=v.yHigh,d=t({},v),d.x=v.xLow,d.y=v.yLow;if(l.enabled||this._hasPointLabels){for(f=a;f--;)if(m=b[f]){var c=l.inside?m.plotHigh<m.plotLow:m.plotHigh>m.plotLow;m.y=m.high;m._plotY=m.plotY;m.plotY=m.plotHigh;A[f]=m.dataLabel;m.dataLabel=
m.dataLabelUpper;m.below=c;D?l.align||(l.align=c?"right":"left"):l.verticalAlign||(l.verticalAlign=c?"top":"bottom")}this.options.dataLabels=l;k.drawDataLabels&&k.drawDataLabels.apply(this,arguments);for(f=a;f--;)if(m=b[f])m.dataLabelUpper=m.dataLabel,m.dataLabel=A[f],delete m.dataLabels,m.y=m.low,m.plotY=m._plotY}if(d.enabled||this._hasPointLabels){for(f=a;f--;)if(m=b[f])c=d.inside?m.plotHigh<m.plotLow:m.plotHigh>m.plotLow,m.below=!c,D?d.align||(d.align=c?"left":"right"):d.verticalAlign||(d.verticalAlign=
c?"bottom":"top");this.options.dataLabels=d;k.drawDataLabels&&k.drawDataLabels.apply(this,arguments)}if(l.enabled)for(f=a;f--;)if(m=b[f])m.dataLabels=[m.dataLabelUpper,m.dataLabel].filter(function(f){return!!f});this.options.dataLabels=v};d.prototype.alignDataLabel=function(){x.alignDataLabel.apply(this,arguments)};d.prototype.drawPoints=function(){var b=this.points.length,a;k.drawPoints.apply(this,arguments);for(a=0;a<b;){var f=this.points[a];f.origProps={plotY:f.plotY,plotX:f.plotX,isInside:f.isInside,
negative:f.negative,zone:f.zone,y:f.y};f.lowerGraphic=f.graphic;f.graphic=f.upperGraphic;f.plotY=f.plotHigh;l(f.plotHighX)&&(f.plotX=f.plotHighX);f.y=f.high;f.negative=f.high<(this.options.threshold||0);f.zone=this.zones.length&&f.getZone();this.chart.polar||(f.isInside=f.isTopInside="undefined"!==typeof f.plotY&&0<=f.plotY&&f.plotY<=this.yAxis.len&&0<=f.plotX&&f.plotX<=this.xAxis.len);a++}k.drawPoints.apply(this,arguments);for(a=0;a<b;)f=this.points[a],f.upperGraphic=f.graphic,f.graphic=f.lowerGraphic,
t(f,f.origProps),delete f.origProps,a++};d.defaultOptions=L(c.defaultOptions,{lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}});return d}(c);t(h.prototype,{pointArrayMap:["low","high"],pointValKey:"low",deferTranslatePolar:!0,pointClass:e});u.registerSeriesType("arearange",h);"";return h});z(e,"Series/AreaSplineRange/AreaSplineRangeSeries.js",
[e["Series/AreaRange/AreaRangeSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,c,h){var g=this&&this.__extends||function(){var a=function(d,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var k in a)a.hasOwnProperty(k)&&(b[k]=a[k])};return a(d,c)};return function(d,c){function b(){this.constructor=d}a(d,c);d.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)}}(),a=c.seriesTypes.spline,u=h.merge;
h=h.extend;var d=function(a){function d(){var d=null!==a&&a.apply(this,arguments)||this;d.options=void 0;d.data=void 0;d.points=void 0;return d}g(d,a);d.defaultOptions=u(e.defaultOptions);return d}(e);h(d.prototype,{getPointSpline:a.prototype.getPointSpline});c.registerSeriesType("areasplinerange",d);"";return d});z(e,"Series/ColumnRange/ColumnRangePoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,c){var h=this&&this.__extends||function(){var a=function(d,c){a=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var k in b)b.hasOwnProperty(k)&&(a[k]=b[k])};return a(d,c)};return function(d,c){function g(){this.constructor=d}a(d,c);d.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)}}(),g=e.seriesTypes;e=g.column.prototype.pointClass;var a=c.extend,u=c.isNumber;c=function(a){function d(){var d=null!==a&&a.apply(this,arguments)||this;d.series=void 0;d.options=void 0;d.barX=void 0;d.pointWidth=void 0;d.shapeArgs=
void 0;d.shapeType=void 0;return d}h(d,a);d.prototype.isValid=function(){return u(this.low)};return d}(g.arearange.prototype.pointClass);a(c.prototype,{setState:e.prototype.setState});return c});z(e,"Series/ColumnRange/ColumnRangeSeries.js",[e["Series/ColumnRange/ColumnRangePoint.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,c,h,g){var a=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,
a){b.__proto__=a}||function(b,a){for(var q in a)a.hasOwnProperty(q)&&(b[q]=a[q])};return b(a,d)};return function(a,d){function k(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(k.prototype=d.prototype,new k)}}();c=c.noop;var u=h.seriesTypes,d=u.arearange,r=u.column,n=r.prototype,x=d.prototype,b=g.clamp,k=g.merge,l=g.pick;g=g.extend;var t={pointRange:null,marker:null,states:{hover:{halo:!1}}};u=function(c){function g(){var b=null!==c&&c.apply(this,arguments)||this;b.data=void 0;
b.points=void 0;b.options=void 0;return b}a(g,c);g.prototype.setOptions=function(){k(!0,arguments[0],{stacking:void 0});return x.setOptions.apply(this,arguments)};g.prototype.translate=function(){var a=this,d=a.yAxis,k=a.xAxis,q=k.startAngleRad,p,f=a.chart,A=a.xAxis.isRadial,v=Math.max(f.chartWidth,f.chartHeight)+999,m;n.translate.apply(a);a.points.forEach(function(c){var D=c.shapeArgs,g=a.options.minPointLength;c.plotHigh=m=b(d.translate(c.high,0,1,0,1),-v,v);c.plotLow=b(c.plotY,-v,v);var h=m;var e=
l(c.rectPlotY,c.plotY)-m;Math.abs(e)<g?(g-=e,e+=g,h-=g/2):0>e&&(e*=-1,h-=e);A?(p=c.barX+q,c.shapeType="arc",c.shapeArgs=a.polarArc(h+e,h,p,p+c.pointWidth)):(D.height=e,D.y=h,c.tooltipPos=f.inverted?[d.len+d.pos-f.plotLeft-h-e/2,k.len+k.pos-f.plotTop-D.x-D.width/2,e]:[k.left-f.plotLeft+D.x+D.width/2,d.pos-f.plotTop+h+e/2,e])})};g.prototype.crispCol=function(){return n.crispCol.apply(this,arguments)};g.prototype.drawPoints=function(){return n.drawPoints.apply(this,arguments)};g.prototype.drawTracker=
function(){return n.drawTracker.apply(this,arguments)};g.prototype.getColumnMetrics=function(){return n.getColumnMetrics.apply(this,arguments)};g.prototype.pointAttribs=function(){return n.pointAttribs.apply(this,arguments)};g.prototype.adjustForMissingColumns=function(){return n.adjustForMissingColumns.apply(this,arguments)};g.prototype.animate=function(){return n.animate.apply(this,arguments)};g.prototype.translate3dPoints=function(){return n.translate3dPoints.apply(this,arguments)};g.prototype.translate3dShapes=
function(){return n.translate3dShapes.apply(this,arguments)};g.defaultOptions=k(r.defaultOptions,d.defaultOptions,t);return g}(d);g(u.prototype,{directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:c,getSymbol:c,polarArc:function(){return n.polarArc.apply(this,arguments)},pointClass:e});h.registerSeriesType("columnrange",u);"";return u});z(e,"Series/ColumnPyramid/ColumnPyramidSeries.js",[e["Series/Column/ColumnSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,
c,h){var g=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(d,b)};return function(d,b){function k(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(k.prototype=b.prototype,new k)}}(),a=e.prototype,u=h.clamp,d=h.merge,r=h.pick;h=function(c){function h(){var b=null!==c&&c.apply(this,arguments)||this;b.data=void 0;b.options=
void 0;b.points=void 0;return b}g(h,c);h.prototype.translate=function(){var b=this,d=b.chart,c=b.options,g=b.dense=2>b.closestPointRange*b.xAxis.transA;g=b.borderWidth=r(c.borderWidth,g?0:1);var h=b.yAxis,e=c.threshold,x=b.translatedThreshold=h.getThreshold(e),n=r(c.minPointLength,5),y=b.getColumnMetrics(),q=y.width,p=b.barW=Math.max(q,1+2*g),f=b.pointXOffset=y.offset;d.inverted&&(x-=.5);c.pointPadding&&(p=Math.ceil(p));a.translate.apply(b);b.points.forEach(function(a){var v=r(a.yBottom,x),m=999+
Math.abs(v),k=u(a.plotY,-m,h.len+m);m=a.plotX+f;var A=p/2,l=Math.min(k,v);v=Math.max(k,v)-l;var g;a.barX=m;a.pointWidth=q;a.tooltipPos=d.inverted?[h.len+h.pos-d.plotLeft-k,b.xAxis.len-m-A,v]:[m+A,k+h.pos-d.plotTop,v];k=e+(a.total||a.y);"percent"===c.stacking&&(k=e+(0>a.y)?-100:100);k=h.toPixels(k,!0);var E=(g=d.plotHeight-k-(d.plotHeight-x))?A*(l-k)/g:0;var t=g?A*(l+v-k)/g:0;g=m-E+A;E=m+E+A;var y=m+t+A;t=m-t+A;var w=l-n;var H=l+v;0>a.y&&(w=l,H=l+v+n);d.inverted&&(y=d.plotWidth-l,g=k-(d.plotWidth-
x),E=A*(k-y)/g,t=A*(k-(y-v))/g,g=m+A+E,E=g-2*E,y=m-t+A,t=m+t+A,w=l,H=l+v-n,0>a.y&&(H=l+v+n));a.shapeType="path";a.shapeArgs={x:g,y:w,width:E-g,height:v,d:[["M",g,w],["L",E,w],["L",y,H],["L",t,H],["Z"]]}})};h.defaultOptions=d(e.defaultOptions,{});return h}(e);c.registerSeriesType("columnpyramid",h);"";return h});z(e,"Series/Gauge/GaugePoint.js",[e["Core/Series/SeriesRegistry.js"]],function(e){var c=this&&this.__extends||function(){var c=function(g,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(a,d){a.__proto__=d}||function(a,d){for(var c in d)d.hasOwnProperty(c)&&(a[c]=d[c])};return c(g,a)};return function(g,a){function h(){this.constructor=g}c(g,a);g.prototype=null===a?Object.create(a):(h.prototype=a.prototype,new h)}}();return function(h){function g(){var a=null!==h&&h.apply(this,arguments)||this;a.options=void 0;a.series=void 0;a.shapeArgs=void 0;return a}c(g,h);g.prototype.setState=function(a){this.state=a};return g}(e.series.prototype.pointClass)});z(e,"Series/Gauge/GaugeSeries.js",
[e["Series/Gauge/GaugePoint.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,c,h,g,a){var u=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 c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,
new c)}}();c=c.noop;var d=g.series,r=g.seriesTypes.column,n=a.clamp,x=a.isNumber,b=a.extend,k=a.merge,l=a.pick,t=a.pInt;a=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.points=void 0;b.options=void 0;b.yAxis=void 0;return b}u(b,a);b.prototype.translate=function(){var b=this.yAxis,a=this.options,d=b.center;this.generatePoints();this.points.forEach(function(c){var p=k(a.dial,c.dial),f=t(l(p.radius,"80%"))*d[2]/200,A=t(l(p.baseLength,"70%"))*f/100,v=t(l(p.rearLength,
"10%"))*f/100,m=p.baseWidth||3,q=p.topWidth||1,g=a.overshoot,h=b.startAngleRad+b.translate(c.y,null,null,null,!0);if(x(g)||!1===a.wrap)g=x(g)?g/180*Math.PI:0,h=n(h,b.startAngleRad-g,b.endAngleRad+g);h=180*h/Math.PI;c.shapeType="path";c.shapeArgs={d:p.path||[["M",-v,-m/2],["L",A,-m/2],["L",f,-q/2],["L",f,q/2],["L",A,m/2],["L",-v,m/2],["Z"]],translateX:d[0],translateY:d[1],rotation:h};c.plotX=d[0];c.plotY=d[1]})};b.prototype.drawPoints=function(){var b=this,a=b.chart,d=b.yAxis.center,c=b.pivot,p=b.options,
f=p.pivot,A=a.renderer;b.points.forEach(function(f){var d=f.graphic,c=f.shapeArgs,v=c.d,q=k(p.dial,f.dial);d?(d.animate(c),c.d=v):f.graphic=A[f.shapeType](c).attr({rotation:c.rotation,zIndex:1}).addClass("highcharts-dial").add(b.group);if(!a.styledMode)f.graphic[d?"animate":"attr"]({stroke:q.borderColor||"none","stroke-width":q.borderWidth||0,fill:q.backgroundColor||h.neutralColor100})});c?c.animate({translateX:d[0],translateY:d[1]}):(b.pivot=A.circle(0,0,l(f.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(d[0],
d[1]).add(b.group),a.styledMode||b.pivot.attr({"stroke-width":f.borderWidth||0,stroke:f.borderColor||h.neutralColor20,fill:f.backgroundColor||h.neutralColor100}))};b.prototype.animate=function(b){var a=this;b||a.points.forEach(function(b){var d=b.graphic;d&&(d.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),d.animate({rotation:b.shapeArgs.rotation},a.options.animation))})};b.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,
this.chart.seriesGroup);d.prototype.render.call(this);this.group.clip(this.chart.clipRect)};b.prototype.setData=function(b,a){d.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();l(a,!0)&&this.chart.redraw()};b.prototype.hasData=function(){return!!this.points.length};b.defaultOptions=k(d.defaultOptions,{dataLabels:{borderColor:h.neutralColor20,borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},
showInLegend:!1});return b}(d);b(a.prototype,{angular:!0,directTouch:!0,drawGraph:c,drawTracker:r.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:e,trackerGroups:["group","dataLabelsGroup"]});g.registerSeriesType("gauge",a);"";return a});z(e,"Series/BoxPlot/BoxPlotSeries.js",[e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,c,h,g,a){var u=this&&this.__extends||function(){var a=
function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}();c=c.noop;var d=a.extend,r=a.merge,n=a.pick;a=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}u(b,a);b.prototype.pointAttribs=
function(){return{}};b.prototype.translate=function(){var b=this.yAxis,d=this.pointArrayMap;a.prototype.translate.apply(this);this.points.forEach(function(a){d.forEach(function(d){null!==a[d]&&(a[d+"Plot"]=b.translate(a[d],0,1,0,1))});a.plotHigh=a.highPlot})};b.prototype.drawPoints=function(){var a=this,b=a.options,d=a.chart,c=d.renderer,g,h,e,r,q,p,f=0,A,v,m,D,I=!1!==a.doQuartiles,C,u=a.options.whiskerLength;a.points.forEach(function(k){var l=k.graphic,t=l?"animate":"attr",E=k.shapeArgs,x={},y={},
w={},J={},B=k.color||a.color;"undefined"!==typeof k.plotY&&(A=Math.round(E.width),v=Math.floor(E.x),m=v+A,D=Math.round(A/2),g=Math.floor(I?k.q1Plot:k.lowPlot),h=Math.floor(I?k.q3Plot:k.lowPlot),e=Math.floor(k.highPlot),r=Math.floor(k.lowPlot),l||(k.graphic=l=c.g("point").add(a.group),k.stem=c.path().addClass("highcharts-boxplot-stem").add(l),u&&(k.whiskers=c.path().addClass("highcharts-boxplot-whisker").add(l)),I&&(k.box=c.path(void 0).addClass("highcharts-boxplot-box").add(l)),k.medianShape=c.path(void 0).addClass("highcharts-boxplot-median").add(l)),
d.styledMode||(y.stroke=k.stemColor||b.stemColor||B,y["stroke-width"]=n(k.stemWidth,b.stemWidth,b.lineWidth),y.dashstyle=k.stemDashStyle||b.stemDashStyle||b.dashStyle,k.stem.attr(y),u&&(w.stroke=k.whiskerColor||b.whiskerColor||B,w["stroke-width"]=n(k.whiskerWidth,b.whiskerWidth,b.lineWidth),w.dashstyle=k.whiskerDashStyle||b.whiskerDashStyle||b.dashStyle,k.whiskers.attr(w)),I&&(x.fill=k.fillColor||b.fillColor||B,x.stroke=b.lineColor||B,x["stroke-width"]=b.lineWidth||0,x.dashstyle=k.boxDashStyle||b.boxDashStyle||
b.dashStyle,k.box.attr(x)),J.stroke=k.medianColor||b.medianColor||B,J["stroke-width"]=n(k.medianWidth,b.medianWidth,b.lineWidth),J.dashstyle=k.medianDashStyle||b.medianDashStyle||b.dashStyle,k.medianShape.attr(J)),p=k.stem.strokeWidth()%2/2,f=v+D+p,l=[["M",f,h],["L",f,e],["M",f,g],["L",f,r]],k.stem[t]({d:l}),I&&(p=k.box.strokeWidth()%2/2,g=Math.floor(g)+p,h=Math.floor(h)+p,v+=p,m+=p,l=[["M",v,h],["L",v,g],["L",m,g],["L",m,h],["L",v,h],["Z"]],k.box[t]({d:l})),u&&(p=k.whiskers.strokeWidth()%2/2,e+=
p,r+=p,C=/%$/.test(u)?D*parseFloat(u)/100:u/2,l=[["M",f-C,e],["L",f+C,e],["M",f-C,r],["L",f+C,r]],k.whiskers[t]({d:l})),q=Math.round(k.medianPlot),p=k.medianShape.strokeWidth()%2/2,q+=p,l=[["M",v,q],["L",m,q]],k.medianShape[t]({d:l}))})};b.prototype.toYData=function(b){return[b.low,b.q1,b.median,b.q3,b.high]};b.defaultOptions=r(e.defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},
whiskerLength:"50%",fillColor:h.backgroundColor,lineWidth:1,medianWidth:2,whiskerWidth:2});return b}(e);d(a.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:c,setStackedPoints:c});g.registerSeriesType("boxplot",a);"";return a});z(e,"Series/ErrorBar/ErrorBarSeries.js",[e["Series/BoxPlot/BoxPlotSeries.js"],e["Series/Column/ColumnSeries.js"],e["Core/Color/Palette.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,c,h,g,a){var u=this&&
this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}(),d=g.seriesTypes.arearange,r=a.merge;a=a.extend;var n=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;
b.points=void 0;return b}u(b,a);b.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||c.prototype.getColumnMetrics.call(this)};b.prototype.drawDataLabels=function(){var b=this.pointValKey;d&&(d.prototype.drawDataLabels.call(this),this.data.forEach(function(a){a.y=a[b]}))};b.prototype.toYData=function(b){return[b.low,b.high]};b.defaultOptions=r(e.defaultOptions,{color:h.neutralColor100,grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},
whiskerWidth:null});return b}(e);a(n.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1});g.registerSeriesType("errorbar",n);"";return n});z(e,"Core/Axis/WaterfallAxis.js",[e["Extensions/Stacking.js"],e["Core/Utilities.js"]],function(e,c){var h=c.addEvent,g=c.objectEach,a;(function(a){function d(){var b=this.waterfall.stacks;b&&(b.changed=!1,delete b.alreadyChanged)}function c(){var b=this.options.stackLabels;b&&b.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}
function u(){for(var b=this.axes,a=this.series,d=a.length;d--;)a[d].options.stacking&&(b.forEach(function(b){b.isXAxis||(b.waterfall.stacks.changed=!0)}),d=0)}function x(){this.waterfall||(this.waterfall=new b(this))}var b=function(){function b(b){this.axis=b;this.stacks={changed:!1}}b.prototype.renderStackTotals=function(){var b=this.axis,a=b.waterfall.stacks,d=b.stacking&&b.stacking.stackTotalGroup,c=new e(b,b.options.stackLabels,!1,0,void 0);this.dummyStackItem=c;g(a,function(b){g(b,function(b){c.total=
b.stackTotal;b.label&&(c.label=b.label);e.prototype.render.call(c,d);b.label=c.label;delete c.label})});c.total=null};return b}();a.Composition=b;a.compose=function(b,a){h(b,"init",x);h(b,"afterBuildStacks",d);h(b,"afterRender",c);h(a,"beforeRedraw",u)}})(a||(a={}));return a});z(e,"Series/Waterfall/WaterfallPoint.js",[e["Series/Column/ColumnSeries.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(e,c,h){var g=this&&this.__extends||function(){var a=function(d,c){a=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,c)};return function(d,c){function g(){this.constructor=d}a(d,c);d.prototype=null===c?Object.create(c):(g.prototype=c.prototype,new g)}}(),a=h.isNumber;return function(h){function d(){var a=null!==h&&h.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}g(d,h);d.prototype.getClassName=function(){var a=c.prototype.getClassName.call(this);this.isSum?
a+=" highcharts-sum":this.isIntermediateSum&&(a+=" highcharts-intermediate-sum");return a};d.prototype.isValid=function(){return a(this.y)||this.isSum||!!this.isIntermediateSum};return d}(e.prototype.pointClass)});z(e,"Series/Waterfall/WaterfallSeries.js",[e["Core/Chart/Chart.js"],e["Core/Globals.js"],e["Core/Color/Palette.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"],e["Core/Axis/WaterfallAxis.js"],e["Series/Waterfall/WaterfallPoint.js"]],function(e,c,h,g,a,u,d){var r=this&&this.__extends||
function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var a in f)f.hasOwnProperty(a)&&(b[a]=f[a])};return b(a,d)};return function(a,d){function p(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(p.prototype=d.prototype,new p)}}(),n=g.seriesTypes,x=n.column,b=n.line,k=a.arrayMax,l=a.arrayMin,t=a.correctFloat;n=a.extend;var w=a.merge,B=a.objectEach,z=a.pick;a=function(a){function d(){var b=null!==a&&
a.apply(this,arguments)||this;b.chart=void 0;b.data=void 0;b.options=void 0;b.points=void 0;b.stackedYNeg=void 0;b.stackedYPos=void 0;b.stackKey=void 0;b.xData=void 0;b.yAxis=void 0;b.yData=void 0;return b}r(d,a);d.prototype.generatePoints=function(){var b;x.prototype.generatePoints.apply(this);var a=0;for(b=this.points.length;a<b;a++){var f=this.points[a];var d=this.processedYData[a];if(f.isIntermediateSum||f.isSum)f.y=t(d)}};d.prototype.translate=function(){var b=this.options,a=this.yAxis,f,d=z(b.minPointLength,
5),c=d/2,m=b.threshold,k=b.stacking,g=a.waterfall.stacks[this.stackKey];x.prototype.translate.apply(this);var h=f=m;var l=this.points;var e=0;for(b=l.length;e<b;e++){var r=l[e];var u=this.processedYData[e];var t=r.shapeArgs;var n=[0,u];var y=r.y;if(k){if(g){n=g[e];if("overlap"===k){var w=n.stackState[n.stateIndex--];w=0<=y?w:w-y;Object.hasOwnProperty.call(n,"absolutePos")&&delete n.absolutePos;Object.hasOwnProperty.call(n,"absoluteNeg")&&delete n.absoluteNeg}else 0<=y?(w=n.threshold+n.posTotal,n.posTotal-=
y):(w=n.threshold+n.negTotal,n.negTotal-=y,w-=y),!n.posTotal&&Object.hasOwnProperty.call(n,"absolutePos")&&(n.posTotal=n.absolutePos,delete n.absolutePos),!n.negTotal&&Object.hasOwnProperty.call(n,"absoluteNeg")&&(n.negTotal=n.absoluteNeg,delete n.absoluteNeg);r.isSum||(n.connectorThreshold=n.threshold+n.stackTotal);a.reversed?(u=0<=y?w-y:w+y,y=w):(u=w,y=w-y);r.below=u<=z(m,0);t.y=a.translate(u,0,1,0,1);t.height=Math.abs(t.y-a.translate(y,0,1,0,1));if(y=a.waterfall.dummyStackItem)y.x=e,y.label=g[e].label,
y.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[e],this.stackedYPos[e])}}else w=Math.max(h,h+y)+n[0],t.y=a.translate(w,0,1,0,1),r.isSum?(t.y=a.translate(n[1],0,1,0,1),t.height=Math.min(a.translate(n[0],0,1,0,1),a.len)-t.y):r.isIntermediateSum?(0<=y?(u=n[1]+f,y=f):(u=f,y=n[1]+f),a.reversed&&(u^=y,y^=u,u^=y),t.y=a.translate(u,0,1,0,1),t.height=Math.abs(t.y-Math.min(a.translate(y,0,1,0,1),a.len)),f+=n[1]):(t.height=0<u?a.translate(h,0,1,0,1)-t.y:a.translate(h,0,1,0,1)-a.translate(h-u,
0,1,0,1),h+=u,r.below=h<z(m,0)),0>t.height&&(t.y+=t.height,t.height*=-1);r.plotY=t.y=Math.round(t.y)-this.borderWidth%2/2;t.height=Math.max(Math.round(t.height),.001);r.yBottom=t.y+t.height;t.height<=d&&!r.isNull?(t.height=d,t.y-=c,r.plotY=t.y,r.minPointLengthOffset=0>r.y?-c:c):(r.isNull&&(t.width=0),r.minPointLengthOffset=0);t=r.plotY+(r.negative?t.height:0);this.chart.inverted?r.tooltipPos[0]=a.len-t:r.tooltipPos[1]=t}};d.prototype.processData=function(b){var d=this.options,f=this.yData,c=d.data,
v=f.length,m=d.threshold||0,k,g,q,h,l;for(l=g=k=q=h=0;l<v;l++){var e=f[l];var r=c&&c[l]?c[l]:{};"sum"===e||r.isSum?f[l]=t(g):"intermediateSum"===e||r.isIntermediateSum?(f[l]=t(k),k=0):(g+=e,k+=e);q=Math.min(g,q);h=Math.max(g,h)}a.prototype.processData.call(this,b);d.stacking||(this.dataMin=q+m,this.dataMax=h)};d.prototype.toYData=function(b){return b.isSum?"sum":b.isIntermediateSum?"intermediateSum":b.y};d.prototype.updateParallelArrays=function(b,d){a.prototype.updateParallelArrays.call(this,b,d);
if("sum"===this.yData[0]||"intermediateSum"===this.yData[0])this.yData[0]=null};d.prototype.pointAttribs=function(b,a){var f=this.options.upColor;f&&!b.options.color&&(b.color=0<b.y?f:null);b=x.prototype.pointAttribs.call(this,b,a);delete b.dashstyle;return b};d.prototype.getGraphPath=function(){return[["M",0,0]]};d.prototype.getCrispPath=function(){var b=this.data,a=this.yAxis,f=b.length,d=Math.round(this.graph.strokeWidth())%2/2,c=Math.round(this.borderWidth)%2/2,m=this.xAxis.reversed,k=this.yAxis.reversed,
g=this.options.stacking,h=[],l;for(l=1;l<f;l++){var e=b[l].shapeArgs;var t=b[l-1];var r=b[l-1].shapeArgs;var u=a.waterfall.stacks[this.stackKey];var n=0<t.y?-r.height:0;u&&r&&e&&(u=u[l-1],g?(u=u.connectorThreshold,n=Math.round(a.translate(u,0,1,0,1)+(k?n:0))-d):n=r.y+t.minPointLengthOffset+c-d,h.push(["M",(r.x||0)+(m?0:r.width||0),n],["L",(e.x||0)+(m?e.width||0:0),n]));r&&h.length&&(!g&&0>t.y&&!k||0<t.y&&k)&&(h[h.length-2][2]+=r.height,h[h.length-1][2]+=r.height)}return h};d.prototype.drawGraph=function(){b.prototype.drawGraph.call(this);
this.graph.attr({d:this.getCrispPath()})};d.prototype.setStackedPoints=function(){function b(b,f,a,d){if(z)for(a;a<z;a++)w.stackState[a]+=d;else w.stackState[0]=b,z=w.stackState.length;w.stackState.push(w.stackState[z-1]+f)}var a=this.options,f=this.yAxis.waterfall.stacks,d=a.threshold,c=d||0,m=c,k=this.stackKey,g=this.xData,h=g.length,l,e,r;this.yAxis.stacking.usePercentage=!1;var t=e=r=c;if(this.visible||!this.chart.options.chart.ignoreHiddenSeries){var u=f.changed;(l=f.alreadyChanged)&&0>l.indexOf(k)&&
(u=!0);f[k]||(f[k]={});l=f[k];for(var n=0;n<h;n++){var y=g[n];if(!l[y]||u)l[y]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:u&&l[y]?l[y].label:void 0};var w=l[y];var x=this.yData[n];0<=x?w.posTotal+=x:w.negTotal+=x;var B=a.data[n];y=w.absolutePos=w.posTotal;var K=w.absoluteNeg=w.negTotal;w.stackTotal=y+K;var z=w.stackState.length;B&&B.isIntermediateSum?(b(r,e,0,r),r=e,e=d,c^=m,m^=c,c^=m):B&&B.isSum?(b(d,t,z),c=d):(b(c,x,0,t),B&&(t+=x,e+=x));w.stateIndex++;w.threshold=
c;c+=w.stackTotal}f.changed=!1;f.alreadyChanged||(f.alreadyChanged=[]);f.alreadyChanged.push(k)}};d.prototype.getExtremes=function(){var b=this.options.stacking;if(b){var a=this.yAxis;a=a.waterfall.stacks;var f=this.stackedYNeg=[];var d=this.stackedYPos=[];"overlap"===b?B(a[this.stackKey],function(b){f.push(l(b.stackState));d.push(k(b.stackState))}):B(a[this.stackKey],function(b){f.push(b.negTotal+b.threshold);d.push(b.posTotal+b.threshold)});return{dataMin:l(f),dataMax:k(d)}}return{dataMin:this.dataMin,
dataMax:this.dataMax}};d.defaultOptions=w(x.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:h.neutralColor80,dashStyle:"Dot",borderColor:h.neutralColor80,states:{hover:{lineWidthPlus:0}}});return d}(x);n(a.prototype,{getZonesGraphs:b.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:d});g.registerSeriesType("waterfall",a);u.compose(c.Axis,e);"";return a});z(e,"Series/Polygon/PolygonSeries.js",[e["Core/Globals.js"],e["Mixins/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],
e["Core/Utilities.js"]],function(e,c,h,g){var a=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(a,d)};return function(a,d){function c(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}();e=e.noop;var u=h.series,d=h.seriesTypes,r=d.area,n=d.line,x=d.scatter;d=g.extend;var b=g.merge;g=function(d){function c(){var b=
null!==d&&d.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}a(c,d);c.prototype.getGraphPath=function(){for(var b=n.prototype.getGraphPath.call(this),a=b.length+1;a--;)(a===b.length||"M"===b[a][0])&&0<a&&b.splice(a,0,["Z"]);return this.areaPath=b};c.prototype.drawGraph=function(){this.options.fillColor=this.color;r.prototype.drawGraph.call(this)};c.defaultOptions=b(x.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,
pointFormat:""},trackByArea:!0});return c}(x);d(g.prototype,{type:"polygon",drawLegendSymbol:c.drawRectangle,drawTracker:u.prototype.drawTracker,setStackedPoints:e});h.registerSeriesType("polygon",g);"";return g});z(e,"Series/Bubble/BubblePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(e,c,h){var g=this&&this.__extends||function(){var a=function(c,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,
d){for(var c in d)d.hasOwnProperty(c)&&(a[c]=d[c])};return a(c,d)};return function(c,d){function g(){this.constructor=c}a(c,d);c.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}();h=h.extend;c=function(a){function c(){var d=null!==a&&a.apply(this,arguments)||this;d.options=void 0;d.series=void 0;return d}g(c,a);c.prototype.haloPath=function(a){return e.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)};return c}(c.seriesTypes.scatter.prototype.pointClass);
h(c.prototype,{ttBelow:!1});return c});z(e,"Series/Bubble/BubbleLegend.js",[e["Core/Chart/Chart.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Legend.js"],e["Core/Color/Palette.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(e,c,h,g,a,u,d){var r=c.parse,n=h.noop;c=d.addEvent;var x=d.arrayMax,b=d.arrayMin,k=d.isNumber,l=d.merge,t=d.objectEach,w=d.pick,B=d.setOptions,z=d.stableSort,G=d.wrap;"";B({legend:{bubbleLegend:{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,
connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:10,color:void 0},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}});B=function(){function c(b,a){this.options=this.symbols=this.visible=this.ranges=this.movementX=this.maxLabel=
this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=n;this.init(b,a)}c.prototype.init=function(b,a){this.options=b;this.visible=!0;this.chart=a.chart;this.legend=a};c.prototype.addToLegend=function(b){b.splice(this.options.legendIndex,0,this)};c.prototype.drawLegendSymbol=function(b){var a=this.chart,f=this.options,d=w(b.options.itemDistance,20),c=f.ranges;var m=f.connectorDistance;this.fontMetrics=
a.renderer.fontMetrics(f.labels.style.fontSize.toString()+"px");c&&c.length&&k(c[0].value)?(z(c,function(b,a){return a.value-b.value}),this.ranges=c,this.setOptions(),this.render(),a=this.getMaxLabelSize(),c=this.ranges[0].radius,b=2*c,m=m-c+a.width,m=0<m?m:0,this.maxLabel=a,this.movementX="left"===f.labels.align?m:0,this.legendItemWidth=b+m+d,this.legendItemHeight=b+this.fontMetrics.h/2):b.options.bubbleLegend.autoRanges=!0};c.prototype.setOptions=function(){var b=this.ranges,a=this.options,f=this.chart.series[a.seriesIndex],
d=this.legend.baseline,c={"z-index":a.zIndex,"stroke-width":a.borderWidth},m={"z-index":a.zIndex,"stroke-width":a.connectorWidth},k=this.getLabelStyles(),g=f.options.marker.fillOpacity,h=this.chart.styledMode;b.forEach(function(p,v){h||(c.stroke=w(p.borderColor,a.borderColor,f.color),c.fill=w(p.color,a.color,1!==g?r(f.color).setOpacity(g).get("rgba"):f.color),m.stroke=w(p.connectorColor,a.connectorColor,f.color));b[v].radius=this.getRangeRadius(p.value);b[v]=l(b[v],{center:b[0].radius-b[v].radius+
d});h||l(!0,b[v],{bubbleStyle:l(!1,c),connectorStyle:l(!1,m),labelStyle:k})},this)};c.prototype.getLabelStyles=function(){var b=this.options,d={},f="left"===b.labels.align,c=this.legend.options.rtl;t(b.labels.style,function(b,a){"color"!==a&&"fontSize"!==a&&"z-index"!==a&&(d[a]=b)});return l(!1,d,{"font-size":b.labels.style.fontSize,fill:w(b.labels.style.color,a.neutralColor100),"z-index":b.zIndex,align:c||f?"right":"left"})};c.prototype.getRangeRadius=function(b){var a=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,
a.ranges[a.ranges.len