@highcharts/highcharts-react-native
Version:
Highcharts react native wrapper
105 lines (103 loc) • 80.7 kB
JavaScript
/*
Highcharts JS v8.0.4 (2020-03-10)
(c) 2009-2018 Torstein Honsi
License: www.highcharts.com/license
*/
(function(f){"object"===typeof module&&module.exports?(f["default"]=f,module.exports=f):"function"===typeof define&&define.amd?define("highcharts/highcharts-more",["highcharts"],function(E){f(E);f.Highcharts=E;return f}):f("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(f){function E(l,a,c,b){l.hasOwnProperty(a)||(l[a]=b.apply(null,c))}f=f?f._modules:{};E(f,"parts-more/Pane.js",[f["parts/Globals.js"],f["parts/Utilities.js"]],function(l,a){function c(d,b,n){return Math.sqrt(Math.pow(d-
n[0],2)+Math.pow(b-n[1],2))<n[2]/2}var b=a.addEvent,u=a.extend,v=a.merge,w=a.pick,f=a.splat,y=l.CenteredSeriesMixin;l.Chart.prototype.collectionsWithUpdate.push("pane");a=function(){function d(d,b){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:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,
"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"};this.init(d,b)}d.prototype.init=function(d,b){this.chart=b;this.background=[];b.pane.push(this);this.setOptions(d)};d.prototype.setOptions=function(d){this.options=v(this.defaultOptions,this.chart.angular?{background:{}}:void 0,d)};d.prototype.render=function(){var d=this.options,b=this.options.background,a=this.chart.renderer;this.group||(this.group=a.g("pane-group").attr({zIndex:d.zIndex||0}).add());
this.updateCenter();if(b)for(b=f(b),d=Math.max(b.length,this.background.length||0),a=0;a<d;a++)b[a]&&this.axis?this.renderBackground(v(this.defaultBackgroundOptions,b[a]),a):this.background[a]&&(this.background[a]=this.background[a].destroy(),this.background.splice(a,1))};d.prototype.renderBackground=function(d,b){var a="animate",n={"class":"highcharts-pane "+(d.className||"")};this.chart.styledMode||u(n,{fill:d.backgroundColor,stroke:d.borderColor,"stroke-width":d.borderWidth});this.background[b]||
(this.background[b]=this.chart.renderer.path().add(this.group),a="attr");this.background[b][a]({d:this.axis.getPlotBandPath(d.from,d.to,d)}).attr(n)};d.prototype.updateCenter=function(d){this.center=(d||this.axis||{}).center=y.getCenter.call(this)};d.prototype.update=function(d,b){v(!0,this.options,d);v(!0,this.chart.options.pane,d);this.setOptions(this.options);this.render();this.chart.axes.forEach(function(d){d.pane===this&&(d.pane=null,d.update({},b))},this)};return d}();l.Chart.prototype.getHoverPane=
function(d){var b=this,a;d&&b.pane.forEach(function(n){var m=d.chartX-b.plotLeft,t=d.chartY-b.plotTop;c(b.inverted?t:m,b.inverted?m:t,n.center)&&(a=n)});return a};b(l.Chart,"afterIsInsidePlot",function(d){this.polar&&(d.isInsidePlot=this.pane.some(function(b){return c(d.x,d.y,b.center)}))});b(l.Pointer,"beforeGetHoverData",function(d){var b=this.chart;b.polar&&(b.hoverPane=b.getHoverPane(d),d.filter=function(a){return a.visible&&!(!d.shared&&a.directTouch)&&w(a.options.enableMouseTracking,!0)&&(!b.hoverPane||
a.xAxis.pane===b.hoverPane)})});b(l.Pointer,"afterGetHoverData",function(d){var b=this.chart;d.hoverPoint&&d.hoverPoint.plotX&&d.hoverPoint.plotY&&b.hoverPane&&!c(d.hoverPoint.plotX,d.hoverPoint.plotY,b.hoverPane.center)&&(d.hoverPoint=void 0)});l.Pane=a;return l.Pane});E(f,"parts-more/RadialAxis.js",[f["parts/Globals.js"],f["parts/Tick.js"],f["parts/Utilities.js"]],function(l,a,c){var b=c.addEvent,u=c.correctFloat,v=c.defined,w=c.extend,f=c.merge,y=c.pick,d=c.pInt,m=c.relativeLength;c=c.wrap;var n=
l.Axis,t=l.noop,x=n.prototype,A=a.prototype;var r={getOffset:t,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},createLabelCollector:function(){return!1},setScale:t,setCategories:t,setTitle:t};var p={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},defaultCircularOptions:{gridLineWidth:1,
labels:{align:null,distance:15,x:0,y:null,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},defaultRadialOptions:{gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(h){h=this.options=f(this.defaultOptions,this.defaultPolarOptions,h);h.plotBands||(h.plotBands=[]);l.fireEvent(this,"afterSetOptions")},getOffset:function(){x.getOffset.call(this);this.chart.axisOffset[this.side]=
0},getLinePath:function(h,g,e){h=this.pane.center;var k=this.chart,p=y(g,h[2]/2-this.offset);"undefined"===typeof e&&(e=this.horiz?0:this.center&&-this.center[3]/2);e&&(p+=e);this.isCircular||"undefined"!==typeof g?(g=this.chart.renderer.symbols.arc(this.left+h[0],this.top+h[1],p,p,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}),g.xBounds=[this.left+h[0]],g.yBounds=[this.top+h[1]-p]):(g=this.postTranslate(this.angleRad,p),g=["M",this.center[0]+k.plotLeft,this.center[1]+k.plotTop,
"L",g.x,g.y]);return g},setAxisTranslation:function(){x.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)},beforeSetTickPositions:function(){this.autoConnect=this.isCircular&&"undefined"===typeof y(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)},setAxisSize:function(){x.setAxisSize.call(this);if(this.isRadial){this.pane.updateCenter(this);var h=this.center=w([],this.pane.center);if(this.isCircular)this.sector=this.endAngleRad-this.startAngleRad;else{var g=this.postTranslate(this.angleRad,h[3]/2);h[0]=g.x-this.chart.plotLeft;h[1]=g.y-this.chart.plotTop}this.len=this.width=this.height=(h[2]-h[3])*y(this.sector,1)/2}},
getPosition:function(h,g){h=this.translate(h);return this.postTranslate(this.isCircular?h:this.angleRad,y(this.isCircular?g:0>h?0:h,this.center[2]/2)-this.offset)},postTranslate:function(h,g){var e=this.chart,k=this.center;h=this.startAngleRad+h;return{x:e.plotLeft+k[0]+Math.cos(h)*g,y:e.plotTop+k[1]+Math.sin(h)*g}},getPlotBandPath:function(h,g,e){var k=this.center,p=this.startAngleRad,C=k[2]/2,q=[y(e.outerRadius,"100%"),e.innerRadius,y(e.thickness,10)],r=Math.min(this.offset,0),b=/%$/;var a=this.isCircular;
if("polygon"===this.options.gridLineInterpolation)q=this.getPlotLinePath({value:h}).concat(this.getPlotLinePath({value:g,reverse:!0}));else{h=Math.max(h,this.min);g=Math.min(g,this.max);a||(q[0]=this.translate(h),q[1]=this.translate(g));q=q.map(function(e){b.test(e)&&(e=d(e,10)*C/100);return e});if("circle"!==e.shape&&a)h=p+this.translate(h),g=p+this.translate(g);else{h=-Math.PI/2;g=1.5*Math.PI;var n=!0}q[0]-=r;q[2]-=r;q=this.chart.renderer.symbols.arc(this.left+k[0],this.top+k[1],q[0],q[0],{start:Math.min(h,
g),end:Math.max(h,g),innerR:y(q[1],q[0]-q[2]),open:n});a&&(a=(g+h)/2,r=this.left+k[0]+k[2]/2*Math.cos(a),q.xBounds=a>-Math.PI/2&&a<Math.PI/2?[r,this.chart.plotWidth]:[0,r],q.yBounds=[this.top+k[1]+k[2]/2*Math.sin(a)],q.yBounds[0]+=a>-Math.PI&&0>a||a>Math.PI?-10:10)}return q},getCrosshairPosition:function(h,g,e){var k=h.value,p=this.pane.center;if(this.isCircular){if(v(k))h.point&&(d=h.point.shapeArgs||{},d.start&&(k=this.chart.inverted?this.translate(h.point.rectPlotY,!0):h.point.x));else{var d=h.chartX||
0;var q=h.chartY||0;k=this.translate(Math.atan2(q-e,d-g)-this.startAngleRad,!0)}h=this.getPosition(k);d=h.x;q=h.y}else v(k)||(d=h.chartX,q=h.chartY),v(d)&&v(q)&&(e=p[1]+this.chart.plotTop,k=this.translate(Math.min(Math.sqrt(Math.pow(d-g,2)+Math.pow(q-e,2)),p[2]/2)-p[3]/2,!0));return[k,d||0,q||0]},getPlotLinePath:function(h){var g=this,e=g.pane.center,k=g.chart,p=k.inverted,d=h.value,q=h.reverse,r=g.getPosition(d),b=g.pane.options.background?g.pane.options.background[0]||g.pane.options.background:
{},a=b.innerRadius||"0%",n=b.outerRadius||"100%";b=e[0]+k.plotLeft;var c=e[1]+k.plotTop,t=r.x,x=r.y,u=g.height;r=e[3]/2;var v,l;h.isCrosshair&&(x=this.getCrosshairPosition(h,b,c),d=x[0],t=x[1],x=x[2]);if(g.isCircular){q=Math.sqrt(Math.pow(t-b,2)+Math.pow(x-c,2));a="string"===typeof a?m(a,1):a/q;n="string"===typeof n?m(n,1):n/q;e&&r&&(e=r/q,a<e&&(a=e),n<e&&(n=e));var w=["M",b+a*(t-b),c-a*(c-x),"L",t-(1-n)*(t-b),x+(1-n)*(c-x)]}else(d=g.translate(d))&&(0>d||d>u)&&(d=0),"circle"===g.options.gridLineInterpolation?
w=g.getLinePath(0,d,r):(k[p?"yAxis":"xAxis"].forEach(function(e){e.pane===g.pane&&(v=e)}),w=[],e=v.tickPositions,v.autoConnect&&(e=e.concat([e[0]])),q&&(e=[].concat(e).reverse()),d&&(d+=r),e.forEach(function(e,k){l=v.getPosition(e,d);w.push(k?"L":"M",l.x,l.y)}));return w},getTitlePosition:function(){var h=this.center,g=this.chart,e=this.options.title;return{x:g.plotLeft+h[0]+(e.x||0),y:g.plotTop+h[1]-{high:.5,middle:.25,low:0}[e.align]*h[2]+(e.y||0)}},createLabelCollector:function(){var h=this;return function(){if(h.isRadial&&
h.tickPositions&&!0!==h.options.labels.allowOverlap)return h.tickPositions.map(function(g){return h.ticks[g]&&h.ticks[g].label}).filter(function(g){return!!g})}}};b(n,"init",function(h){var g=this.chart,e=g.inverted,k=g.angular,d=g.polar,b=this.isXAxis,q=this.coll,a=k&&b,n,c=g.options;h=h.userOptions.pane||0;h=this.pane=g.pane&&g.pane[h];if("colorAxis"===q)this.isRadial=!1;else{if(k){if(w(this,a?r:p),n=!b)this.defaultPolarOptions=this.defaultRadialGaugeOptions}else d&&(w(this,p),this.defaultPolarOptions=
(n=this.horiz)?this.defaultCircularOptions:f("xAxis"===q?this.defaultOptions:this.defaultYAxisOptions,this.defaultRadialOptions),e&&"yAxis"===q&&(this.defaultPolarOptions.stackLabels=this.defaultYAxisOptions.stackLabels));k||d?(this.isRadial=!0,c.chart.zoomType=null,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&g.labelCollectors.push(this.labelCollector)):this.isRadial=!1;h&&n&&(h.axis=this);this.isCircular=n}});b(n,"afterInit",function(){var h=this.chart,
g=this.options,e=this.pane,k=e&&e.options;h.angular&&this.isXAxis||!e||!h.angular&&!h.polar||(this.angleRad=(g.angle||0)*Math.PI/180,this.startAngleRad=(k.startAngle-90)*Math.PI/180,this.endAngleRad=(y(k.endAngle,k.startAngle+360)-90)*Math.PI/180,this.offset=g.offset||0)});b(n,"autoLabelAlign",function(h){this.isRadial&&(h.align=void 0,h.preventDefault())});b(n,"destroy",function(){if(this.chart&&this.chart.labelCollectors){var h=this.chart.labelCollectors.indexOf(this.labelCollector);0<=h&&this.chart.labelCollectors.splice(h,
1)}});b(a,"afterGetPosition",function(h){this.axis.getPosition&&w(h.pos,this.axis.getPosition(this.pos))});b(a,"afterGetLabelPosition",function(h){var g=this.axis,e=this.label,k=e.getBBox(),d=g.options.labels,p=d.y,q=20,r=d.align,b=(g.translate(this.pos)+g.startAngleRad+Math.PI/2)/Math.PI*180%360,a=Math.round(b),n="end",c=0>a?a+360:a,x=c,t=0,u=0,v=null===d.y?.3*-k.height:0;if(g.isRadial){var l=g.getPosition(this.pos,g.center[2]/2+m(y(d.distance,-25),g.center[2]/2,-g.center[2]/2));"auto"===d.rotation?
e.attr({rotation:b}):null===p&&(p=g.chart.renderer.fontMetrics(e.styles&&e.styles.fontSize).b-k.height/2);null===r&&(g.isCircular?(k.width>g.len*g.tickInterval/(g.max-g.min)&&(q=0),r=b>q&&b<180-q?"left":b>180+q&&b<360-q?"right":"center"):r="center",e.attr({align:r}));if("auto"===r&&2===g.tickPositions.length&&g.isCircular){90<c&&180>c?c=180-c:270<c&&360>=c&&(c=540-c);180<x&&360>=x&&(x=360-x);if(g.pane.options.startAngle===a||g.pane.options.startAngle===a+360||g.pane.options.startAngle===a-360)n="start";
r=-90<=a&&90>=a||-360<=a&&-270>=a||270<=a&&360>=a?"start"===n?"right":"left":"start"===n?"left":"right";70<x&&110>x&&(r="center");15>c||180<=c&&195>c?t=.3*k.height:15<=c&&35>=c?t="start"===n?0:.75*k.height:195<=c&&215>=c?t="start"===n?.75*k.height:0:35<c&&90>=c?t="start"===n?.25*-k.height:k.height:215<c&&270>=c&&(t="start"===n?k.height:.25*-k.height);15>x?u="start"===n?.15*-k.height:.15*k.height:165<x&&180>=x&&(u="start"===n?.15*k.height:.15*-k.height);e.attr({align:r});e.translate(u,t+v)}h.pos.x=
l.x+d.x;h.pos.y=l.y+p}});c(A,"getMarkPath",function(h,g,e,k,d,p,q){var r=this.axis;r.isRadial?(h=r.getPosition(this.pos,r.center[2]/2+k),g=["M",g,e,"L",h.x,h.y]):g=h.call(this,g,e,k,d,p,q);return g})});E(f,"parts-more/AreaRangeSeries.js",[f["parts/Globals.js"],f["parts/Point.js"],f["parts/Utilities.js"]],function(l,a,c){var b=c.defined,u=c.extend,v=c.isArray,w=c.isNumber,f=c.pick;c=c.seriesType;var y=l.seriesTypes,d=l.Series.prototype,m=a.prototype;c("arearange","area",{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:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}},{pointArrayMap:["low","high"],pointValKey:"low",deferTranslatePolar:!0,toYData:function(d){return[d.low,d.high]},highToXY:function(d){var b=this.chart,a=this.xAxis.postTranslate(d.rectPlotX,this.yAxis.len-d.plotHigh);d.plotHighX=a.x-b.plotLeft;d.plotHigh=a.y-b.plotTop;d.plotLowX=
d.plotX},translate:function(){var d=this,b=d.yAxis,a=!!d.modifyValue;y.area.prototype.translate.apply(d);d.points.forEach(function(c){var r=c.high,p=c.plotY;c.isNull?c.plotY=null:(c.plotLow=p,c.plotHigh=b.translate(a?d.modifyValue(r,c):r,0,1,0,1),a&&(c.yBottom=c.plotHigh))});this.chart.polar&&this.points.forEach(function(b){d.highToXY(b);b.tooltipPos=[(b.plotHighX+b.plotLowX)/2,(b.plotHigh+b.plotLow)/2]})},getGraphPath:function(d){var b=[],a=[],c,r=y.area.prototype.getGraphPath;var p=this.options;
var h=this.chart.polar&&!1!==p.connectEnds,g=p.connectNulls,e=p.step;d=d||this.points;for(c=d.length;c--;){var k=d[c];k.isNull||h||g||d[c+1]&&!d[c+1].isNull||a.push({plotX:k.plotX,plotY:k.plotY,doCurve:!1});var B={polarPlotY:k.polarPlotY,rectPlotX:k.rectPlotX,yBottom:k.yBottom,plotX:f(k.plotHighX,k.plotX),plotY:k.plotHigh,isNull:k.isNull};a.push(B);b.push(B);k.isNull||h||g||d[c-1]&&!d[c-1].isNull||a.push({plotX:k.plotX,plotY:k.plotY,doCurve:!1})}d=r.call(this,d);e&&(!0===e&&(e="left"),p.step={left:"right",
center:"center",right:"left"}[e]);b=r.call(this,b);a=r.call(this,a);p.step=e;p=[].concat(d,b);this.chart.polar||"M"!==a[0]||(a[0]="L");this.graphPath=p;this.areaPath=d.concat(a);p.isArea=!0;p.xMap=d.xMap;this.areaPath.xMap=d.xMap;return p},drawDataLabels:function(){var b=this.points,a=b.length,c,m=[],r=this.options.dataLabels,p,h=this.chart.inverted;if(v(r))if(1<r.length){var g=r[0];var e=r[1]}else g=r[0],e={enabled:!1};else g=u({},r),g.x=r.xHigh,g.y=r.yHigh,e=u({},r),e.x=r.xLow,e.y=r.yLow;if(g.enabled||
this._hasPointLabels){for(c=a;c--;)if(p=b[c]){var k=g.inside?p.plotHigh<p.plotLow:p.plotHigh>p.plotLow;p.y=p.high;p._plotY=p.plotY;p.plotY=p.plotHigh;m[c]=p.dataLabel;p.dataLabel=p.dataLabelUpper;p.below=k;h?g.align||(g.align=k?"right":"left"):g.verticalAlign||(g.verticalAlign=k?"top":"bottom")}this.options.dataLabels=g;d.drawDataLabels&&d.drawDataLabels.apply(this,arguments);for(c=a;c--;)if(p=b[c])p.dataLabelUpper=p.dataLabel,p.dataLabel=m[c],delete p.dataLabels,p.y=p.low,p.plotY=p._plotY}if(e.enabled||
this._hasPointLabels){for(c=a;c--;)if(p=b[c])k=e.inside?p.plotHigh<p.plotLow:p.plotHigh>p.plotLow,p.below=!k,h?e.align||(e.align=k?"left":"right"):e.verticalAlign||(e.verticalAlign=k?"bottom":"top");this.options.dataLabels=e;d.drawDataLabels&&d.drawDataLabels.apply(this,arguments)}if(g.enabled)for(c=a;c--;)if(p=b[c])p.dataLabels=[p.dataLabelUpper,p.dataLabel].filter(function(e){return!!e});this.options.dataLabels=r},alignDataLabel:function(){y.column.prototype.alignDataLabel.apply(this,arguments)},
drawPoints:function(){var a=this.points.length,c;d.drawPoints.apply(this,arguments);for(c=0;c<a;){var m=this.points[c];m.origProps={plotY:m.plotY,plotX:m.plotX,isInside:m.isInside,negative:m.negative,zone:m.zone,y:m.y};m.lowerGraphic=m.graphic;m.graphic=m.upperGraphic;m.plotY=m.plotHigh;b(m.plotHighX)&&(m.plotX=m.plotHighX);m.y=m.high;m.negative=m.high<(this.options.threshold||0);m.zone=this.zones.length&&m.getZone();this.chart.polar||(m.isInside=m.isTopInside="undefined"!==typeof m.plotY&&0<=m.plotY&&
m.plotY<=this.yAxis.len&&0<=m.plotX&&m.plotX<=this.xAxis.len);c++}d.drawPoints.apply(this,arguments);for(c=0;c<a;)m=this.points[c],m.upperGraphic=m.graphic,m.graphic=m.lowerGraphic,u(m,m.origProps),delete m.origProps,c++},setStackedPoints:l.noop},{setState:function(){var d=this.state,a=this.series,c=a.chart.polar;b(this.plotHigh)||(this.plotHigh=a.yAxis.toPixels(this.high,!0));b(this.plotLow)||(this.plotLow=this.plotY=a.yAxis.toPixels(this.low,!0));a.stateMarkerGraphic&&(a.lowerStateMarkerGraphic=
a.stateMarkerGraphic,a.stateMarkerGraphic=a.upperStateMarkerGraphic);this.graphic=this.upperGraphic;this.plotY=this.plotHigh;c&&(this.plotX=this.plotHighX);m.setState.apply(this,arguments);this.state=d;this.plotY=this.plotLow;this.graphic=this.lowerGraphic;c&&(this.plotX=this.plotLowX);a.stateMarkerGraphic&&(a.upperStateMarkerGraphic=a.stateMarkerGraphic,a.stateMarkerGraphic=a.lowerStateMarkerGraphic,a.lowerStateMarkerGraphic=void 0);m.setState.apply(this,arguments)},haloPath:function(){var d=this.series.chart.polar,
a=[];this.plotY=this.plotLow;d&&(this.plotX=this.plotLowX);this.isInside&&(a=m.haloPath.apply(this,arguments));this.plotY=this.plotHigh;d&&(this.plotX=this.plotHighX);this.isTopInside&&(a=a.concat(m.haloPath.apply(this,arguments)));return a},destroyElements:function(){["lowerGraphic","upperGraphic"].forEach(function(d){this[d]&&(this[d]=this[d].destroy())},this);this.graphic=null;return m.destroyElements.apply(this,arguments)},isValid:function(){return w(this.low)&&w(this.high)}});""});E(f,"parts-more/AreaSplineRangeSeries.js",
[f["parts/Globals.js"],f["parts/Utilities.js"]],function(l,a){a=a.seriesType;a("areasplinerange","arearange",null,{getPointSpline:l.seriesTypes.spline.prototype.getPointSpline});""});E(f,"parts-more/ColumnRangeSeries.js",[f["parts/Globals.js"],f["parts/Utilities.js"]],function(l,a){var c=a.clamp,b=a.merge,u=a.pick;a=a.seriesType;var v=l.defaultPlotOptions,w=l.noop,f=l.seriesTypes.column.prototype;a("columnrange","arearange",b(v.column,v.arearange,{pointRange:null,marker:null,states:{hover:{halo:!1}}}),
{translate:function(){var a=this,d=a.yAxis,b=a.xAxis,n=b.startAngleRad,v,l=a.chart,w=a.xAxis.isRadial,r=Math.max(l.chartWidth,l.chartHeight)+999,p;f.translate.apply(a);a.points.forEach(function(h){var g=h.shapeArgs,e=a.options.minPointLength;h.plotHigh=p=c(d.translate(h.high,0,1,0,1),-r,r);h.plotLow=c(h.plotY,-r,r);var k=p;var B=u(h.rectPlotY,h.plotY)-p;Math.abs(B)<e?(e-=B,B+=e,k-=e/2):0>B&&(B*=-1,k-=B);w?(v=h.barX+n,h.shapeType="arc",h.shapeArgs=a.polarArc(k+B,k,v,v+h.pointWidth)):(g.height=B,g.y=
k,h.tooltipPos=l.inverted?[d.len+d.pos-l.plotLeft-k-B/2,b.len+b.pos-l.plotTop-g.x-g.width/2,B]:[b.left-l.plotLeft+g.x+g.width/2,d.pos-l.plotTop+k+B/2,B])})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:w,getSymbol:w,crispCol:function(){return f.crispCol.apply(this,arguments)},drawPoints:function(){return f.drawPoints.apply(this,arguments)},drawTracker:function(){return f.drawTracker.apply(this,arguments)},getColumnMetrics:function(){return f.getColumnMetrics.apply(this,arguments)},
pointAttribs:function(){return f.pointAttribs.apply(this,arguments)},animate:function(){return f.animate.apply(this,arguments)},polarArc:function(){return f.polarArc.apply(this,arguments)},translate3dPoints:function(){return f.translate3dPoints.apply(this,arguments)},translate3dShapes:function(){return f.translate3dShapes.apply(this,arguments)}},{setState:f.pointClass.prototype.setState});""});E(f,"parts-more/ColumnPyramidSeries.js",[f["parts/Globals.js"],f["parts/Utilities.js"]],function(l,a){var c=
a.clamp,b=a.pick;a=a.seriesType;var u=l.seriesTypes.column.prototype;a("columnpyramid","column",{},{translate:function(){var a=this,l=a.chart,f=a.options,y=a.dense=2>a.closestPointRange*a.xAxis.transA;y=a.borderWidth=b(f.borderWidth,y?0:1);var d=a.yAxis,m=f.threshold,n=a.translatedThreshold=d.getThreshold(m),t=b(f.minPointLength,5),x=a.getColumnMetrics(),A=x.width,r=a.barW=Math.max(A,1+2*y),p=a.pointXOffset=x.offset;l.inverted&&(n-=.5);f.pointPadding&&(r=Math.ceil(r));u.translate.apply(a);a.points.forEach(function(h){var g=
b(h.yBottom,n),e=999+Math.abs(g),k=c(h.plotY,-e,d.len+e);e=h.plotX+p;var B=r/2,C=Math.min(k,g);g=Math.max(k,g)-C;var q;h.barX=e;h.pointWidth=A;h.tooltipPos=l.inverted?[d.len+d.pos-l.plotLeft-k,a.xAxis.len-e-B,g]:[e+B,k+d.pos-l.plotTop,g];k=m+(h.total||h.y);"percent"===f.stacking&&(k=m+(0>h.y)?-100:100);k=d.toPixels(k,!0);var F=(q=l.plotHeight-k-(l.plotHeight-n))?B*(C-k)/q:0;var G=q?B*(C+g-k)/q:0;q=e-F+B;F=e+F+B;var u=e+G+B;G=e-G+B;var v=C-t;var w=C+g;0>h.y&&(v=C,w=C+g+t);l.inverted&&(u=l.plotWidth-
C,q=k-(l.plotWidth-n),F=B*(k-u)/q,G=B*(k-(u-g))/q,q=e+B+F,F=q-2*F,u=e-G+B,G=e+G+B,v=C,w=C+g-t,0>h.y&&(w=C+g+t));h.shapeType="path";h.shapeArgs={x:q,y:v,width:F-q,height:g,d:["M",q,v,"L",F,v,u,w,G,w,"Z"]}})}});""});E(f,"parts-more/GaugeSeries.js",[f["parts/Globals.js"],f["parts/Utilities.js"]],function(l,a){var c=a.clamp,b=a.isNumber,u=a.merge,v=a.pick,f=a.pInt;a=a.seriesType;var z=l.Series,y=l.TrackerMixin;a("gauge","line",{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,
enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:l.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var d=this.yAxis,a=this.options,n=d.center;this.generatePoints();this.points.forEach(function(m){var l=u(a.dial,m.dial),t=f(v(l.radius,"80%"))*n[2]/200,r=f(v(l.baseLength,"70%"))*t/100,p=f(v(l.rearLength,"10%"))*t/100,h=l.baseWidth||3,g=l.topWidth||
1,e=a.overshoot,k=d.startAngleRad+d.translate(m.y,null,null,null,!0);if(b(e)||!1===a.wrap)e=b(e)?e/180*Math.PI:0,k=c(k,d.startAngleRad-e,d.endAngleRad+e);k=180*k/Math.PI;m.shapeType="path";m.shapeArgs={d:l.path||["M",-p,-h/2,"L",r,-h/2,t,-g/2,t,g/2,r,h/2,-p,h/2,"z"],translateX:n[0],translateY:n[1],rotation:k};m.plotX=n[0];m.plotY=n[1]})},drawPoints:function(){var d=this,a=d.chart,b=d.yAxis.center,c=d.pivot,l=d.options,f=l.pivot,r=a.renderer;d.points.forEach(function(b){var h=b.graphic,g=b.shapeArgs,
e=g.d,k=u(l.dial,b.dial);h?(h.animate(g),g.d=e):b.graphic=r[b.shapeType](g).attr({rotation:g.rotation,zIndex:1}).addClass("highcharts-dial").add(d.group);if(!a.styledMode)b.graphic[h?"animate":"attr"]({stroke:k.borderColor||"none","stroke-width":k.borderWidth||0,fill:k.backgroundColor||"#000000"})});c?c.animate({translateX:b[0],translateY:b[1]}):(d.pivot=r.circle(0,0,v(f.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(b[0],b[1]).add(d.group),a.styledMode||d.pivot.attr({"stroke-width":f.borderWidth||
0,stroke:f.borderColor||"#cccccc",fill:f.backgroundColor||"#000000"}))},animate:function(d){var a=this;d||a.points.forEach(function(d){var b=d.graphic;b&&(b.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),b.animate({rotation:d.shapeArgs.rotation},a.options.animation))})},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup);z.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(d,a){z.prototype.setData.call(this,
d,!1);this.processData();this.generatePoints();v(a,!0)&&this.chart.redraw()},hasData:function(){return!!this.points.length},drawTracker:y&&y.drawTrackerPoint},{setState:function(d){this.state=d}});""});E(f,"parts-more/BoxPlotSeries.js",[f["parts/Globals.js"],f["parts/Utilities.js"]],function(l,a){var c=a.pick;a=a.seriesType;var b=l.noop,u=l.seriesTypes;a("boxplot","column",{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:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2},{pointArrayMap:["low","q1","median","q3","high"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:"high",pointAttribs:function(){return{}},drawDataLabels:b,translate:function(){var a=this.yAxis,b=this.pointArrayMap;u.column.prototype.translate.apply(this);this.points.forEach(function(c){b.forEach(function(b){null!==c[b]&&(c[b+"Plot"]=a.translate(c[b],0,1,0,1))});c.plotHigh=c.highPlot})},drawPoints:function(){var a=
this,b=a.options,l=a.chart,u=l.renderer,d,m,n,f,x,A,r=0,p,h,g,e,k=!1!==a.doQuartiles,B,C=a.options.whiskerLength;a.points.forEach(function(q){var F=q.graphic,G=F?"animate":"attr",K=q.shapeArgs,v={},t={},H={},J={},I=q.color||a.color;"undefined"!==typeof q.plotY&&(p=K.width,h=Math.floor(K.x),g=h+p,e=Math.round(p/2),d=Math.floor(k?q.q1Plot:q.lowPlot),m=Math.floor(k?q.q3Plot:q.lowPlot),n=Math.floor(q.highPlot),f=Math.floor(q.lowPlot),F||(q.graphic=F=u.g("point").add(a.group),q.stem=u.path().addClass("highcharts-boxplot-stem").add(F),
C&&(q.whiskers=u.path().addClass("highcharts-boxplot-whisker").add(F)),k&&(q.box=u.path(void 0).addClass("highcharts-boxplot-box").add(F)),q.medianShape=u.path(void 0).addClass("highcharts-boxplot-median").add(F)),l.styledMode||(t.stroke=q.stemColor||b.stemColor||I,t["stroke-width"]=c(q.stemWidth,b.stemWidth,b.lineWidth),t.dashstyle=q.stemDashStyle||b.stemDashStyle,q.stem.attr(t),C&&(H.stroke=q.whiskerColor||b.whiskerColor||I,H["stroke-width"]=c(q.whiskerWidth,b.whiskerWidth,b.lineWidth),q.whiskers.attr(H)),
k&&(v.fill=q.fillColor||b.fillColor||I,v.stroke=b.lineColor||I,v["stroke-width"]=b.lineWidth||0,q.box.attr(v)),J.stroke=q.medianColor||b.medianColor||I,J["stroke-width"]=c(q.medianWidth,b.medianWidth,b.lineWidth),q.medianShape.attr(J)),A=q.stem.strokeWidth()%2/2,r=h+e+A,q.stem[G]({d:["M",r,m,"L",r,n,"M",r,d,"L",r,f]}),k&&(A=q.box.strokeWidth()%2/2,d=Math.floor(d)+A,m=Math.floor(m)+A,h+=A,g+=A,q.box[G]({d:["M",h,m,"L",h,d,"L",g,d,"L",g,m,"L",h,m,"z"]})),C&&(A=q.whiskers.strokeWidth()%2/2,n+=A,f+=A,
B=/%$/.test(C)?e*parseFloat(C)/100:C/2,q.whiskers[G]({d:["M",r-B,n,"L",r+B,n,"M",r-B,f,"L",r+B,f]})),x=Math.round(q.medianPlot),A=q.medianShape.strokeWidth()%2/2,x+=A,q.medianShape[G]({d:["M",h,x,"L",g,x]}))})},setStackedPoints:b});""});E(f,"parts-more/ErrorBarSeries.js",[f["parts/Globals.js"],f["parts/Utilities.js"]],function(l,a){a=a.seriesType;var c=l.noop,b=l.seriesTypes;a("errorbar","boxplot",{color:"#000000",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},{type:"errorbar",pointArrayMap:["low","high"],toYData:function(a){return[a.low,a.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:b.arearange?function(){var a=this.pointValKey;b.arearange.prototype.drawDataLabels.call(this);this.data.forEach(function(b){b.y=b[a]})}:c,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||b.column.prototype.getColumnMetrics.call(this)}});""});E(f,"parts-more/WaterfallSeries.js",[f["parts/Globals.js"],f["parts/Point.js"],
f["parts/Utilities.js"]],function(l,a,c){var b=c.addEvent,u=c.arrayMax,f=c.arrayMin,w=c.correctFloat,z=c.isNumber,y=c.objectEach,d=c.pick;c=c.seriesType;var m=l.Axis,n=l.Chart,t=l.Series,x=l.StackItem,A=l.seriesTypes;b(m,"afterInit",function(){this.isXAxis||(this.waterfallStacks={changed:!1})});b(m,"afterBuildStacks",function(){this.waterfallStacks.changed=!1;delete this.waterfallStacks.alreadyChanged});b(n,"beforeRedraw",function(){for(var a=this.axes,d=this.series,h=d.length;h--;)d[h].options.stacking&&
(a.forEach(function(g){g.isXAxis||(g.waterfallStacks.changed=!0)}),h=0)});b(m,"afterRender",function(){var a=this.options.stackLabels;a&&a.enabled&&this.waterfallStacks&&this.renderWaterfallStackTotals()});m.prototype.renderWaterfallStackTotals=function(){var a=this.waterfallStacks,d=this.stackTotalGroup,h=new x(this,this.options.stackLabels,!1,0,void 0);this.dummyStackItem=h;y(a,function(g){y(g,function(e){h.total=e.stackTotal;e.label&&(h.label=e.label);x.prototype.render.call(h,d);e.label=h.label;
delete h.label})});h.total=null};c("waterfall","column",{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}},{pointValKey:"y",showLine:!0,generatePoints:function(){var a;A.column.prototype.generatePoints.apply(this);var d=0;for(a=this.points.length;d<a;d++){var h=this.points[d];var g=this.processedYData[d];if(h.isIntermediateSum||h.isSum)h.y=w(g)}},translate:function(){var a=this.options,b=this.yAxis,h,g=d(a.minPointLength,
5),e=g/2,k=a.threshold,c=a.stacking,C=b.waterfallStacks[this.stackKey];A.column.prototype.translate.apply(this);var q=h=k;var F=this.points;var m=0;for(a=F.length;m<a;m++){var l=F[m];var u=this.processedYData[m];var n=l.shapeArgs;var f=[0,u];var t=l.y;if(c){if(C){f=C[m];if("overlap"===c){var v=f.stackState[f.stateIndex--];v=0<=t?v:v-t;Object.hasOwnProperty.call(f,"absolutePos")&&delete f.absolutePos;Object.hasOwnProperty.call(f,"absoluteNeg")&&delete f.absoluteNeg}else 0<=t?(v=f.threshold+f.posTotal,
f.posTotal-=t):(v=f.threshold+f.negTotal,f.negTotal-=t,v-=t),!f.posTotal&&Object.hasOwnProperty.call(f,"absolutePos")&&(f.posTotal=f.absolutePos,delete f.absolutePos),!f.negTotal&&Object.hasOwnProperty.call(f,"absoluteNeg")&&(f.negTotal=f.absoluteNeg,delete f.absoluteNeg);l.isSum||(f.connectorThreshold=f.threshold+f.stackTotal);b.reversed?(u=0<=t?v-t:v+t,t=v):(u=v,t=v-t);l.below=u<=d(k,0);n.y=b.translate(u,0,1,0,1);n.height=Math.abs(n.y-b.translate(t,0,1,0,1))}if(t=b.dummyStackItem)t.x=m,t.label=
C[m].label,t.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[m],this.stackedYPos[m])}else v=Math.max(q,q+t)+f[0],n.y=b.translate(v,0,1,0,1),l.isSum?(n.y=b.translate(f[1],0,1,0,1),n.height=Math.min(b.translate(f[0],0,1,0,1),b.len)-n.y):l.isIntermediateSum?(0<=t?(u=f[1]+h,t=h):(u=h,t=f[1]+h),b.reversed&&(u^=t,t^=u,u^=t),n.y=b.translate(u,0,1,0,1),n.height=Math.abs(n.y-Math.min(b.translate(t,0,1,0,1),b.len)),h+=f[1]):(n.height=0<u?b.translate(q,0,1,0,1)-n.y:b.translate(q,0,1,0,1)-b.translate(q-
u,0,1,0,1),q+=u,l.below=q<d(k,0)),0>n.height&&(n.y+=n.height,n.height*=-1);l.plotY=n.y=Math.round(n.y)-this.borderWidth%2/2;n.height=Math.max(Math.round(n.height),.001);l.yBottom=n.y+n.height;n.height<=g&&!l.isNull?(n.height=g,n.y-=e,l.plotY=n.y,l.minPointLengthOffset=0>l.y?-e:e):(l.isNull&&(n.width=0),l.minPointLengthOffset=0);n=l.plotY+(l.negative?n.height:0);this.chart.inverted?l.tooltipPos[0]=b.len-n:l.tooltipPos[1]=n}},processData:function(a){var d=this.options,h=this.yData,g=d.data,e=h.length,
k=d.threshold||0,b,r,q,c,m;for(m=r=b=q=c=0;m<e;m++){var n=h[m];var l=g&&g[m]?g[m]:{};"sum"===n||l.isSum?h[m]=w(r):"intermediateSum"===n||l.isIntermediateSum?(h[m]=w(b),b=0):(r+=n,b+=n);q=Math.min(r,q);c=Math.max(r,c)}t.prototype.processData.call(this,a);d.stacking||(this.dataMin=q+k,this.dataMax=c)},toYData:function(a){return a.isSum?"sum":a.isIntermediateSum?"intermediateSum":a.y},updateParallelArrays:function(a,d){t.prototype.updateParallelArrays.call(this,a,d);if("sum"===this.yData[0]||"intermediateSum"===
this.yData[0])this.yData[0]=null},pointAttribs:function(a,d){var b=this.options.upColor;b&&!a.options.color&&(a.color=0<a.y?b:null);a=A.column.prototype.pointAttribs.call(this,a,d);delete a.dashstyle;return a},getGraphPath:function(){return["M",0,0]},getCrispPath:function(){var a=this.data,d=this.yAxis,b=a.length,g=Math.round(this.graph.strokeWidth())%2/2,e=Math.round(this.borderWidth)%2/2,k=this.xAxis.reversed,c=this.yAxis.reversed,C=this.options.stacking,q=[],m;for(m=1;m<b;m++){var n=a[m].shapeArgs;
var l=a[m-1];var f=a[m-1].shapeArgs;var u=d.waterfallStacks[this.stackKey];var t=0<l.y?-f.height:0;if(u){u=u[m-1];C?(u=u.connectorThreshold,t=Math.round(d.translate(u,0,1,0,1)+(c?t:0))-g):t=f.y+l.minPointLengthOffset+e-g;var v=["M",f.x+(k?0:f.width),t,"L",n.x+(k?n.width:0),t]}if(!C&&v&&0>l.y&&!c||0<l.y&&c)v[2]+=f.height,v[5]+=f.height;q=q.concat(v)}return q},drawGraph:function(){t.prototype.drawGraph.call(this);this.graph.attr({d:this.getCrispPath()})},setStackedPoints:function(){function a(e,a,k,
g){if(z)for(k;k<z;k++)w.stackState[k]+=g;else w.stackState[0]=e,z=w.stackState.length;w.stackState.push(w.stackState[z-1]+a)}var d=this.options,b=this.yAxis.waterfallStacks,g=d.threshold,e=g||0,k=e,c=this.stackKey,C=this.xData,q=C.length,m,n,l;this.yAxis.usePercentage=!1;var f=n=l=e;if(this.visible||!this.chart.options.chart.ignoreHiddenSeries){var u=b.changed;(m=b.alreadyChanged)&&0>m.indexOf(c)&&(u=!0);b[c]||(b[c]={});m=b[c];for(var t=0;t<q;t++){var v=C[t];if(!m[v]||u)m[v]={negTotal:0,posTotal:0,
stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:u&&m[v]?m[v].label:void 0};var w=m[v];var x=this.yData[t];0<=x?w.posTotal+=x:w.negTotal+=x;var y=d.data[t];v=w.absolutePos=w.posTotal;var A=w.absoluteNeg=w.negTotal;w.stackTotal=v+A;var z=w.stackState.length;y&&y.isIntermediateSum?(a(l,n,0,l),l=n,n=g,e^=k,k^=e,e^=k):y&&y.isSum?(a(g,f,z),e=g):(a(e,x,0,f),y&&(f+=x,n+=x));w.stateIndex++;w.threshold=e;e+=w.stackTotal}b.changed=!1;b.alreadyChanged||(b.alreadyChanged=[]);b.alreadyChanged.push(c)}},
getExtremes:function(){var a=this.options.stacking;if(a){var d=this.yAxis;d=d.waterfallStacks;var b=this.stackedYNeg=[];var g=this.stackedYPos=[];"overlap"===a?y(d[this.stackKey],function(e){b.push(f(e.stackState));g.push(u(e.stackState))}):y(d[this.stackKey],function(e){b.push(e.negTotal+e.threshold);g.push(e.posTotal+e.threshold)});this.dataMin=f(b);this.dataMax=u(g)}}},{getClassName:function(){var d=a.prototype.getClassName.call(this);this.isSum?d+=" highcharts-sum":this.isIntermediateSum&&(d+=
" highcharts-intermediate-sum");return d},isValid:function(){return z(this.y)||this.isSum||this.isIntermediateSum}});""});E(f,"parts-more/PolygonSeries.js",[f["parts/Globals.js"],f["mixins/legend-symbol.js"],f["parts/Utilities.js"]],function(l,a,c){c=c.seriesType;var b=l.Series,f=l.seriesTypes;c("polygon","scatter",{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0},{type:"polygon",getGraphPath:function(){for(var a=b.prototype.getGraphPath.call(this),
c=a.length+1;c--;)(c===a.length||"M"===a[c])&&0<c&&a.splice(c,0,"z");return this.areaPath=a},drawGraph:function(){this.options.fillColor=this.color;f.area.prototype.drawGraph.call(this)},drawLegendSymbol:a.drawRectangle,drawTracker:b.prototype.drawTracker,setStackedPoints:l.noop});""});E(f,"parts-more/BubbleLegend.js",[f["parts/Globals.js"],f["parts/Color.js"],f["parts/Legend.js"],f["parts/Utilities.js"]],function(l,a,c,b){"";var f=a.parse;a=b.addEvent;var v=b.arrayMax,w=b.arrayMin,z=b.isNumber,y=
b.merge,d=b.objectEach,m=b.pick,n=b.stableSort,t=b.wrap,x=l.Series,A=l.Chart,r=l.noop,p=l.setOptions;p({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}}});p=function(){function a(a,e){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=r;this.init(a,e)}a.prototype.init=function(a,e){this.options=a;this.visible=!0;this.chart=e.chart;this.legend=e};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,
0,this)};a.prototype.drawLegendSymbol=function(a){var e=this.chart,k=this.options,d=m(a.options.itemDistance,20),b=k.ranges;var g=k.connectorDistance;this.fontMetrics=e.renderer.fontMetrics(k.labels.style.fontSize.toString()+"px");b&&b.length&&z(b[0].value)?(n(b,function(e,a){return a.value-e.value}),this.ranges=b,this.setOptions(),this.render(),e=this.getMaxLabelSize(),b=this.ranges[0].radius,a=2*b,g=g-b+e.width,g=0<g?g:0,this.maxLabel=e,this.movementX="left"===k.labels.align?g:0,this.legendItemWidth=
a+g+d,this.legendItemHeight=a+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var a=this.ranges,e=this.options,k=this.chart.series[e.seriesIndex],d=this.legend.baseline,b={"z-index":e.zIndex,"stroke-width":e.borderWidth},h={"z-index":e.zIndex,"stroke-width":e.connectorWidth},c=this.getLabelStyles(),p=k.options.marker.fillOpacity,r=this.chart.styledMode;a.forEach(function(g,q){r||(b.stroke=m(g.borderColor,e.borderColor,k.color),b.fill=m(g.color,e.color,
1!==p?f(k.color).setOpacity(p).get("rgba"):k.color),h.stroke=m(g.connectorColor,e.connectorColor,k.color));a[q].radius=this.getRangeRadius(g.value);a[q]=y(a[q],{center:a[0].radius-a[q].radius+d});r||y(!0,a[q],{bubbleStyle:y(!1,b),connectorStyle:y(!1,h),labelStyle:c})},this)};a.prototype.getLabelStyles=function(){var a=this.options,e={},k="left"===a.labels.align,b=this.legend.options.rtl;d(a.labels.style,function(a,k){"color"!==k&&"fontSize"!==k&&"z-index"!==k&&(e[k]=a)});return y(!1,e,{"font-size":a.labels.style.fontSize,
fill:m(a.labels.style.color,"#000000"),"z-index":a.zIndex,align:b||k?"right":"left"})};a.prototype.getRangeRadius=function(a){var e=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,e.ranges[e.ranges.length-1].value,e.ranges[0].value,e.minSize,e.maxSize,a)};a.prototype.render=function(){var a=this.chart.renderer,e=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");
this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=e&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};a.prototype.renderRange=function(a){var e=this.options,k=e.labels,b=this.chart.renderer,d=this.symbols,g=d.labels,h=a.center,c=Math.abs(a.radius),p=e.connectorDistance,r=k.align,m=k.style.fontSize;p=this.legend.options.rtl||"left"===r?-p:p;k=e.connectorWidth;var n=
this.ranges[0].radius,l=h-c-e.borderWidth/2+k/2;m=m/2-(this.fontMetrics.h-m)/2;var f=b.styledMode;"center"===r&&(p=0,e.connectorDistance=0,a.labelStyle.align="center");r=l+e.labels.y;var u=n+p+e.labels.x;d.bubbleItems.push(b.circle(n,h+((l%1?1:.5)-(k%2?0:.5)),c).attr(f?{}:a.bubbleStyle).addClass((f?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-symbol "+(e.className||"")).add(this.legendSymbol));d.connectors.push(b.path(b.crispLine(["M",n,l,"L",n+p,l],e.connectorWidth)).attr(f?
{}:a.connectorStyle).addClass((f?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(e.connectorClassName||"")).add(this.legendSymbol));a=b.text(this.formatLabel(a),u,r+m).attr(f?{}:a.labelStyle).addClass("highcharts-bubble-legend-labels "+(e.labels.className||"")).add(this.legendSymbol);g.push(a);a.placed=!0;a.alignAttr={x:u,y:r+m}};a.prototype.getMaxLabelSize=function(){var a,e;this.symbols.labels.forEach(function(k){e=k.getBBox(!0);a=a?e.width>a.width?e:
a:e});return a||{}};a.prototype.formatLabel=function(a){var e=this.options,k=e.labels.formatter;e=e.labels.format;var d=this.chart.numberFormatter;return e?b.format(e,a):k?k.call(a):d(a.value,1)};a.prototype.hideOverlappingLabels=function(){var a=this.chart,e=this.symbols;!this.options.labels.allowOverlap&&e&&(a.hideOverlappingLabels(e.labels),e.labels.forEach(function(a,b){a.newOpacity?a.newOpacity!==a.oldOpacity&&e.connectors[b].show():e.connectors[b].hide()}))};a.prototype.getRanges=function(){var a=
this.legend.bubbleLegend,e=a.options.ranges,k,b=Number.MAX_VALUE,d=-Number.MAX_VALUE;a.chart.series.forEach(function(e){e.isBubble&&!e.ignoreSeries&&(k=e.zData.filter(z),k.length&&(b=m(e.options.zMin,Math.min(b,Math.max(w(k),!1===e.options.displayNegative?e.options.zThreshold:-Number.MAX_VALUE))),d=m(e.options.zMax,Math.max(d,v(k)))))});var h=b===d?[{value:d}]:[{value:b},{value:(b+d)/2},{value:d,autoRanges:!0}];e.length&&e[0].radius&&h.reverse();h.forEach(function(a,b){e&&e[b]&&(h[b]=y(!1,e[b],a))});
return h};a.prototype.predictBubbleSizes=function(){var a=this.chart,e=this.fontMetrics,b=a.legend.options,d="horizontal"===b.layout,h=d?a.legend.lastLineHeight:0,q=a.plotSizeX,c=a.plotSizeY,p=a.series[this.options.seriesIndex];a=Math.ceil(p.minPxSize);var r=Math.ceil(p.maxPxSize);p=p.options.maxSize;var m=Math.min(c,q);if(b.floating||!/%$/.test(p))e=r;else if(p=parseFloat(p),e=(m+h-e.h/2)*p/100/(p/100+1),d&&c-e>=q||!d&&q-e>=c)e=r;return[a,Math.ceil(e)]};a.prototype.updateRanges=function(a,e){var b=
this.legend.options.bubbleLegend;b.minSize=a;b.maxSize=e;b.ranges=this.getRanges()};a.prototype.correctSizes=function(){var a=this.legend,e=this.chart.series[this.options.seriesIndex];1<Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,e.maxPxSize),a.render())};return a}();a(c,"afterGetAllItems",function(a){var b=this.bubbleLegend,e=this.options,d=e.bubbleLegend,h=this.chart.getVisibleBubbleSeriesIndex();b&&b.ranges&&b.ranges.length&&(d.ranges.length&&
(d.autoRanges=!!d.ranges[0].autoRanges),this.destroyItem(b));0<=h&&e.enabled&&d.enabled&&(d.seriesIndex=h,this.bubbleLegend=new l.BubbleLegend(d,this),this.bubbleLegend.addToLegend(a.allItems))});A.prototype.getVisibleBubbleSeriesIndex=function(){for(var a=this.series,b=0;b<a.length;){if(a[b]&&a[b].isBubble&&a[b].visible&&a[b].zData.length)return b;b++}return-1};c.prototype.getLinesHeights=function(){var a=this.allItems,b=[],e=a.length,d,c=0;for(d=0;d<e;d++)if(a[d].legendItemHeight&&(a[d].itemHeight=
a[d].legendItemHeight),a[d]===a[e-1]||a[d+1]&&a[d]._legendItemPos[1]!==a[d+1]._legendItemPos[1]){b.push({height:0});var p=b[b.length-1];for(c;c<=d;c++)a[c].itemHeight>p.height&&(p.height=a[c].itemHeight);p.step=d}return b};c.prototype.retranslateItems=function(a){var b,e,d,h=this.options.rtl,c=0;this.allItems.forEach(function(k,g){b=k.legendGroup.translateX;e=k._legendItemPos[1];if((d=k.movementX)||h&&k.ranges)d=h?b-k.options.maxSize/2:b+d,k.legendGroup.attr({translateX:d});g>a[c].step&&c++;k.legendGroup.attr({translateY:Math.round(e+
a[c].height/2)});k._legendItemPos[1]=e+a[c].height/2})};a(x,"legendItemClick",function(){var a=this.chart,b=this.visible,e=this.chart.legend;e&&e.bubbleLegend&&(this.visible=!b,this.ignoreSeries=b,a=0<=a.getVisibleBubbleSeriesIndex(),e.bubbleLegend.visible!==a&&(e.update({bubbleLegend:{enabled:a}}),e.bubbleLegend.visible=a),this.visible=b)});t(A.prototype,"drawChartBox",function(a,b,e){var k=this.legend,h=0<=this.getVisibleBubbleSeriesIndex();if(k&&k.options.enabled&&k.bubbleLegend&&k.options.bubbleLegend.autoRanges&&
h){var g=k.bubbleLegend.options;h=k.bubbleLegend.predictBubbleSizes();k.bubbleLegend.updateRanges(h[0],h[1]);g.placed||(k.group.placed=!1,k.allItems.forEach(function(e){e.legendGroup.translateY=null}));k.render();this.getMargins();this.axes.forEach(function(e){e.visible&&e.render();g.placed||(e.setScale(),e.updateNames(),d(e.ticks,function(e){e.isNew=!0;e.isNewLabel=!0}))});g.placed=!0;this.getMargins();a.call(this,b,e);k.bubbleLegend.correctSizes();k.retranslateItems(k.getLinesHeights())}else a.call(this,
b,e),k&&k.options.enabled&&k.bubbleLegend&&(k.render(),k.retranslateItems(k.getLinesHeights()))});l.BubbleLegend=p;return l.BubbleLegend});E(f,"parts-more/BubbleSeries.js",[f["parts/Globals.js"],f["parts/Color.js"],f["parts/Point.js"],f["parts/Utilities.js"]],function(l,a,c,b){var f=a.parse,v=b.arrayMax,w=b.arrayMin,z=b.clamp,y=b.extend,d=b.isNumber,m=b.pick,n=b.pInt;a=b.seriesType;b=l.Axis;var t=l.noop,x=l.Series,A=l.seriesTypes;a("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},
inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,
isBubble:!0,pointAttribs:function(a,b){var d=this.options.marker.fillOpacity;a=x.prototype.pointAttribs.call(this,a,b);1!==d&&(a.fill=f(a.fill).setOpacity(d).get("rgba"));return a},getRadii:function(a,b,d){var g=this.zData,e=this.yData,k=d.minPxSize,h=d.maxPxSize,c=[];var q=0;for(d=g.length;q<d;q++){var p=g[q];c.push(this.getRadius(a,b,k,h,p,e[q]))}this.radii=c},getRadius:function(a,b,h,g,e,k){var c=this.options,p="width"!==c.sizeBy,q=c.zThreshold,r=b-a,m=.5;if(null===k||null===e)return null;if(d(e)){c.sizeByAbsoluteValue&&
(e=Math.abs(e-q),r=Math.max(b-q,Math.abs(a-q)),a=0);if(e<a)return h/2-1;0<r&&(m=(e-a)/r)}p&&0<=m&&(m=Math.sqrt(m));return Math.ceil(h+m*(g-h))/2},animate:function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var b=a.graphic;if(b&&b.width){var d={x:b.x,y:b.y,width:b.width,height:b.height};b.attr({x:a.plotX,y:a.plotY,width:1,height:1});b.animate(d,this.options.animation)}},this)},hasData:function(){return!!this.processedXData.length},translate:function(){var a,
b=this.data,c=this.radii;A.scatter.prototype.translate.call(this);for(a=b.length;a--;){var g=b[a];var e=c?c[a]:0;d(e)&&e>=this.minPxSize/2?(g.marker=y(g.marker,{radius:e,width:2*e,height:2*e}),g.dlBox={x:g.plotX-e,y:g.plotY-e,width:2*e,height:2*e}):g.shapeArgs=g.plotY=g.dlBox=void 0}},alignDataLabel:A.column.prototype.alignDataLabel,buildKDTree:t,applyZones:t},{haloPath:function(a){return c.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});b.prototype.beforePadding=
function(){var a=this,b=this.len,c=this.chart,g=0,e=b,k=this.isXAxis,l=k?"xData":"yData",f=this.min,q={},u=Math.min(c.plotWidth,c.plotHeight),t=Number.MAX_VALUE,x=-Number.MAX_VALUE,y=this.max-f,A=b/y,H=[];this.series.forEach(function(e){var b=e.options;!e.bubblePadding||!e.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,H.push(e),k&&(["minSize","maxSize"].forEach(function(e){var a=b[e],d=/%$/.test(a);a=n(a);q[e]=d?u*a/100:a}),e.minPxSize=q.minSize,e.maxPxSize=Math.max(q.maxSize,
q.minSize),e=e.zData.filter(d),e.length&&(t=m(b.zMin,z(w(e),!1===b.displayNegative?b.zThreshold:-Number.MAX_VALUE,t)),x=m(b.zMax,Math.max(x,v(e))))))});H.forEach(function(b){var c=b[l],h=c.length;k&&b.getRadii(t,x,b);if(0<y)for(;h--;)if(d(c[h])&&a.dataMin<=c[h]&&c[h]<=a.max){var q=b.radii?b.radii[h]:0;g=Math.min((c[h]-f)*A-q,g);e=Math.max((c[h]-f)*A+q,e)}});H.length&&0<y&&!this.isLog&&(e-=b,A*=(b+Math.max(0,g)-Math.min(e,b))/b,[["min","userMin",g],["max","userMax",e]].forEach(function(e){"undefined"===
typeof m(a.options[e[0]],a[e[1]])&&(a[e[0]]+=e[2]/A)}))};""});E(f,"modules/networkgraph/integrations.js",[f["parts/Globals.js"]],function(l){l.networkgraphIntegrations={verlet:{attractiveForceFunction:function(a,c){return(c-a)/a},repulsiveForceFunction:function(a,c){return(c-a)/a*(c>a?1:0)},barycenter:function(){var a=this.options.gravitationalConstant,c=this.barycenter.xFactor,b=this.barycenter.yFactor;c=(c-(this.box.left+this.box.width)/2)*a;b=(b-(this.box.top+this.box.height)/2)*a;this.nodes.forEach(function(a){a.fixedPosition||
(a.plotX-=c/a.mass/a.degree,a.plotY-=b/a.mass/a.degree)})},repulsive:function(a,c,b){c=c*this.diffTemperature/a.mass/a.degree;a.fixedPosition||(a.plotX+=b.x*c,a.plotY+=b.y*c)},attractive:function(a,c,b){var l=a.getMass(),f=-b.x*c*this.diffTemperature;c=-b.y*c*this.diffTemperature;a.fromNode.fixedPosition||(a.fromNode.plotX-=f*l.fromNode/a.fromNode.degree,a.fromNode.plotY-=c*l.fromNode/a.fromNode.degree);a.toNode.fixedPosition||(a.toNode.plotX+=f*l.toNode/a.toNode.degree,a.toNode.plotY+=c*l.toNode/
a.toNode.degree)},integrate:function(a,c){var b=-a.options.friction,l=a.options.maxSpeed,f=(c.plotX+c.dispX-c.prevX)*b;b*=c.plotY+c.dispY-c.prevY;var w=Math.abs,z=w(f)/(f||1);w=w(b)/(b||1);f=z*Math.min(l,Math.abs(f));b=w*Math.min(l,Math.abs(b));c.prevX=c.plotX+c.dispX;c.prevY=c.plotY+c.dispY;c.plotX+=f;c.plotY+=b;c.temperature=a.vectorLength({x:f,y:b})},getK:function(a){return Math.pow(a.box.width*a.box.height/a.nodes.length,.5)}},euler:{attractiveForceFunction:function(a,c){return a*a/c},repulsiveForceFunction:function(a,
c){return c*c/a},barycenter:function(){var a=this.options.gravitationalConstant,c=this.barycenter.xFactor,b=this.barycenter.yFactor;this.nodes.forEach(function(f){if(!f.fixedPosition){var l=f.getDegree();l*=1+l/2;f.dispX+=(c-f.plotX)*a*l/f.degree;f.dispY+=(b-f.plotY)*a*l/f.degree}})},repulsive:function(a,c,b,f){a.dispX+=b.x/f*c/a.degree;a.dispY+=b.y/f*c/a.degree},attractive:function(a,c,b,f){var l=a.getMass(),u=b.x/f*c;c*=b.y/f;a.fromNode.fixedPosition||(a.fromNode.dispX-=u*l.fromNode/a.fromNode.degree,
a.fromNode.dispY-=c*l.fromNode/a.fromNode.degree);a.toNode.fixedPosition||(a.toNode.dispX+=u*l.toNode/a.toNode.degree,a.toNode.dispY+=c*l.toNode/a.toNode.degree)},integrate:function(a,c){c.dispX+=c.dispX*a.options.friction;c.dispY+=c.dispY*a.options.friction;var b=c.temperature=a.vectorLength({x:c.dispX,y:c.dispY});0!==b&&(c.plotX+=c.dispX/b*Math.min(Math.abs(c.dispX),a.temperature),c.plotY+=c.dispY/b*Math.min(Math.abs(c.dispY),a.temperature))},getK:function(a){return Math.pow(a.box.width*a.box.height/
a.nodes.length,.3)}}}});E(f,"modules/networkgraph/QuadTree.js",[f["par