PageSourceSearch

https://xynergy.ai/_next/static/chunks/4043-40494cb721b5889e.js

js xynergy.ai collected 2026-10-05 16:01:37 UTC 444,934 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4043],{4442:function(t){var e;let i,s,o,r,n,a,l,h,d,c;i=(e="u"<typeof window?this:window)._Highcharts,s=e._Highcharts.SeriesRegistry,o=e._Highcharts.Series,r=e._Highcharts.Series.types.column,n=e._Highcharts.Templating,a=e._Highcharts.Point,l=e._Highcharts.Color,h=e._Highcharts.Chart,d=e._Highcharts.SVGElement,c=e._Highcharts.StackItem,t.exports=(()=>{"use strict";var t,e,p,u,g={28:t=>{t.exports=d},184:t=>{t.exports=c},260:t=>{t.exports=a},448:t=>{t.exports=r},512:t=>{t.exports=s},620:t=>{t.exports=l},820:t=>{t.exports=o},944:t=>{t.exports=i},960:t=>{t.exports=h},984:t=>{t.exports=n}},f={};function m(t){var e=f[t];if(void 0!==e)return e.exports;var i=f[t]={exports:{}};return g[t](i,i.exports,m),i.exports}m.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return m.d(e,{a:e}),e},m.d=(t,e)=>{for(var i in e)m.o(e,i)&&!m.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},m.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var x={};m.d(x,{default:()=>iR});var b=m(944),y=m.n(b),v=m(512),w=m.n(v),M=m(820),k=m.n(M);let{doc:A,win:P}=y();function E(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;y().Point&&t instanceof y().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let n=t.addEventListener;n&&n.call(t,e,i,!!y().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let a={fn:i,order:"number"==typeof s.order?s.order:1/0};return r[e].push(a),r[e].sort((t,e)=>t.order-e.order),function(){!function(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,X(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}(t,e,i)}}function S(t){let e=t.length,i=t[0];for(;e--;)t[e]<i&&(i=t[e]);return i}function T(t){let e=t.length,i=t[0];for(;e--;)t[e]>i&&(i=t[e]);return i}function C(t,e,i){return t>e?t<i?t:i:e}function L(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function O(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function N(t){return null!=t}function I(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function D(t,e,i,s){if(i=i||{},A?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==y())){let s=A.createEvent("Events");s.initEvent(e,!0,!0),i=I(s,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||I(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let s=[],o=t,r=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);r&&s.sort((t,e)=>t.order-e.order),s.forEach(e=>{!1===e.fn.call(t,i,t)&&i.preventDefault()})}s&&!i.defaultPrevented&&s.call(t,i)}let B=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]};function R(t){return H(t)&&"number"==typeof t.nodeType}function F(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function z(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function H(t,e){return!!t&&"object"==typeof t&&(!e||!z(t))}function W(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),X(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!H(i,!0)||(o=i?.constructor,H(i,!0)&&!R(i)&&o?.name&&"Object"!==o.name)||R(i)?t[s]=e[s]:t[s]=r(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let n=s.length;for(i=0;i<n;i++)o=r(o,s[i]);return o}function X(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function G(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function Y(t,e){return parseInt(t,e||10)}function V(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function j(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}function U(t){return z(t)?t:[t]}function _(t,e,i){let s=t[e];t[e]=function(){let t=arguments,e=this;return i.apply(this,[function(){return s.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}let{deg2rad:q}=y();(t=e||(e={})).getCenter=function(){let t=this.options,e=this.chart,i=2*(t.slicedOffset||0),s=e.plotWidth-2*i,o=e.plotHeight-2*i,r=t.center,n=Math.min(s,o),a=t.thickness,l,h=t.size,d=t.innerSize||0,c,p;"string"==typeof h&&(h=parseFloat(h)),"string"==typeof d&&(d=parseFloat(d));let u=[G(r?.[0],"50%"),G(r?.[1],"50%"),G(h&&h<0?void 0:t.size,"100%"),G(d&&d<0?void 0:t.innerSize||0,"0%")];for(!e.angular||this instanceof k()||(u[3]=0),c=0;c<4;++c)p=u[c],l=c<2||2===c&&/%$/.test(p),u[c]=j(p,[s,o,n,u[2]][c])+(l?i:0);return u[3]>u[2]&&(u[3]=u[2]),F(a)&&2*a<u[2]&&a>0&&(u[3]=u[2]-2*a),D(this,"afterGetCenter",{positions:u}),u},t.getStartAndEndRadians=function(t,e){let i=F(t)?t:0,s=F(e)&&e>i&&e-i<360?e:i+360;return{start:q*(i+-90),end:q*(s+-90)}};let K=e;function $(t){let e,i=this;return t&&i.pane.forEach(s=>{J(t.chartX-i.plotLeft,t.chartY-i.plotTop,s.center)&&(e=s)}),e}function Z({clipBox:t}){if(!this.xAxis||!this.yAxis||!this.chart.angular&&!this.chart.polar)return;let{plotWidth:e,plotHeight:i}=this.chart,s=Math.min(e,i),o=this.xAxis.pane,r=this.yAxis.pane;o&&o.axis&&(t.x+=o.center[0]-o.center[2]/s*e/2),r&&r.axis&&(t.y+=r.center[1]-r.center[2]/s*i/2)}function J(t,e,i,s,o){let r=!0,n=i[0],a=i[1],l=2*Math.PI,h=Math.sqrt(Math.pow(t-n,2)+Math.pow(e-
1a,2));if(N(s)&&N(o)){let i=Math.atan2(L(e-a,8),L(t-n,8));i=(i+l)%l,s=(s+l)%l,Math.abs((o=(o+l)%l)-s)>1e-6&&(r=s>o?i>=s||i<=o:i>=s&&i<=o)}else r=!0;return h<=Math.ceil(i[2]/2)&&r}function Q(t){this.polar&&(t.options.inverted&&([t.x,t.y]=[t.y,t.x]),t.isInsidePlot=this.pane.some(e=>J(t.x,t.y,e.center,e.axis&&e.axis.normalizedStartAngleRad,e.axis&&e.axis.normalizedEndAngleRad)))}function tt(t){let e=this.chart;t.hoverPoint&&t.hoverPoint.plotX&&t.hoverPoint.plotY&&e.hoverPane&&!J(t.hoverPoint.plotX,t.hoverPoint.plotY,e.hoverPane.center)&&(t.hoverPoint=void 0)}function te(t){let e=this.chart;e.polar?(e.hoverPane=e.getHoverPane(t),t.filter=function(i){return i.visible&&!(!t.shared&&i.directTouch)&&G(i.options.enableMouseTracking,!0)&&(!e.hoverPane||i.xAxis.pane===e.hoverPane)}):e.hoverPane=void 0}let{defaultOptions:ti}=y(),ts={shape:"circle",borderRadius:0,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%"},to={background:ts,center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0};ti.pane=to;class tr{constructor(t,e){this.coll="pane",this.init(t,e)}init(t,e){this.chart=e,this.background=[],e.pane.push(this),this.setOptions(t)}setOptions(t){this.options=t=W(to,{background:this.chart.angular?{}:void 0},t)}render(){let t=this.options,e=this.chart.renderer;this.group||(this.group=e.g("pane-group").attr({zIndex:t.zIndex||0}).add()),this.updateCenter();let i=this.options.background;if(i){let t=Math.max((i=U(i)).length,this.background.length||0);for(let e=0;e<t;e++)i[e]&&this.axis?this.renderBackground(W(ts,i[e]),e):this.background[e]&&(this.background[e]=this.background[e].destroy(),this.background.splice(e,1))}}renderBackground(t,e){let i={class:"highcharts-pane "+(t.className||"")},s="animate";this.chart.styledMode||I(i,{fill:t.backgroundColor,stroke:t.borderColor,"stroke-width":t.borderWidth}),this.background[e]||(this.background[e]=this.chart.renderer.path().add(this.group),s="attr"),this.background[e][s]({d:this.axis.getPlotBandPath(t.from,t.to,t)}).attr(i)}updateCenter(t){this.center=(t||this.axis||{}).center=K.getCenter.call(this)}update(t,e){W(!0,this.options,t),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(t){t.pane===this&&(t.pane=null,t.update({},e))},this)}}tr.compose=function(t,e,i){let s=t.prototype;s.getHoverPane||(s.collectionsWithUpdate.push("pane"),s.getHoverPane=$,E(t,"afterIsInsidePlot",Q),E(e,"afterGetHoverData",tt),E(e,"beforeGetHoverData",te),E(i,"setClip",Z))};let{area:{prototype:{pointClass:tn,pointClass:{prototype:ta}}}}=w().seriesTypes,tl=class extends tn{setState(){let t=this.state,e=this.series,i=e.chart.polar;N(this.plotHigh)||(this.plotHigh=e.yAxis.toPixels(this.high,!0)),N(this.plotLow)||(this.plotLow=this.plotY=e.yAxis.toPixels(this.low,!0)),e.lowerStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.upperStateMarkerGraphic,this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,i&&F(this.plotHighX)&&(this.plotX=this.plotHighX),ta.setState.apply(this,arguments),this.state=t,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],i&&F(this.plotLowX)&&(this.plotX=this.plotLowX),e.upperStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.lowerStateMarkerGraphic,e.lowerStateMarkerGraphic=void 0;let s=e.modifyMarkerSettings();ta.setState.apply(this,arguments),e.restoreMarkerSettings(s)}haloPath(){let t=this.series.chart.polar,e=[];return this.plotY=this.plotLow,t&&F(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(e=ta.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,t&&F(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(e=e.concat(ta.haloPath.apply(this,arguments))),e}isValid(){return F(this.low)&&F(this.high)}},{noop:th}=y(),{area:td,area:{prototype:tc},column:{prototype:tp}}=w().seriesTypes;class tu extends td{toYData(t){return[t.low,t.high]}highToXY(t){let e=this.chart,i=this.xAxis.postTranslate(t.rectPlotX||0,this.yAxis.len-(t.plotHigh||0));t.plotHighX=i.x-e.plotLeft,t.plotHigh=i.y-e.plotTop,t.plotLowX=t.plotX}getGraphPath(t){let e=[],i=[],s=tc.getGraphPath,o=this.options,r=this.chart.polar,n=r&&!1!==o.connectEnds,a=o.connectNulls,l,h,d,c=o.step;for(l=(t=t||this.points).length;l--;){h=t[l];let s=r?{plotX:h.rectPlotX,plotY:h.yBottom,doCurve:!1}:{plotX:h.plotX,plotY:h.plotY,doCurve:!1};h.isNull||n||a||t[l+1]&&!t[l+1].isNull||i.push(s),d={polarPlotY:h.polarPlotY,rectPlotX:h.rectPlotX,yBottom:h.yBottom,plotX:G(h.plotHighX,h.plotX),plotY:h.plotHigh,isNull:h.isNull},i.push(d),e.push(d),h.isNull||n||a||t[l-1]&&!t[l-1].isNull||i.push(s)}let p=s.call(this,t);
1c&&(!0===c&&(c="left"),o.step=({left:"right",center:"center",right:"left"})[c]);let u=s.call(this,e),g=s.call(this,i);o.step=c;let f=[].concat(p,u);return!this.chart.polar&&g[0]&&"M"===g[0][0]&&(g[0]=["L",g[0][1],g[0][2]]),this.graphPath=f,this.areaPath=p.concat(g),f.isArea=!0,f.xMap=p.xMap,this.areaPath.xMap=p.xMap,f}drawDataLabels(){let t,e,i,s,o,r=this.points,n=r.length,a=[],l=this.options.dataLabels,h=this.chart.inverted;if(l){if(z(l)?(s=l[0]||{enabled:!1},o=l[1]||{enabled:!1}):((s=I({},l)).x=l.xHigh,s.y=l.yHigh,(o=I({},l)).x=l.xLow,o.y=l.yLow),s.enabled||this.hasDataLabels?.()){for(t=n;t--;)if(e=r[t]){let{plotHigh:o=0,plotLow:r=0}=e;i=s.inside?o<r:o>r,e.y=e.high,e._plotY=e.plotY,e.plotY=o,a[t]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=i,h?s.align||(s.align=i?"right":"left"):s.verticalAlign||(s.verticalAlign=i?"top":"bottom")}for(this.options.dataLabels=s,tc.drawDataLabels&&tc.drawDataLabels.apply(this,arguments),t=n;t--;)(e=r[t])&&(e.dataLabelUpper=e.dataLabel,e.dataLabel=a[t],delete e.dataLabels,e.y=e.low,e.plotY=e._plotY)}if(o.enabled||this.hasDataLabels?.()){for(t=n;t--;)if(e=r[t]){let{plotHigh:t=0,plotLow:s=0}=e;i=o.inside?t<s:t>s,e.below=!i,h?o.align||(o.align=i?"left":"right"):o.verticalAlign||(o.verticalAlign=i?"bottom":"top")}this.options.dataLabels=o,tc.drawDataLabels&&tc.drawDataLabels.apply(this,arguments)}if(s.enabled)for(t=n;t--;)(e=r[t])&&(e.dataLabels=[e.dataLabelUpper,e.dataLabel].filter(function(t){return!!t}));this.options.dataLabels=l}}alignDataLabel(){tp.alignDataLabel.apply(this,arguments)}modifyMarkerSettings(){let t={marker:this.options.marker,symbol:this.symbol};if(this.options.lowMarker){let{options:{marker:t,lowMarker:e}}=this;this.options.marker=W(t,e),e.symbol&&(this.symbol=e.symbol)}return t}restoreMarkerSettings(t){this.options.marker=t.marker,this.symbol=t.symbol}drawPoints(){let t,e,i=this.points.length,s=this.modifyMarkerSettings();for(tc.drawPoints.apply(this,arguments),this.restoreMarkerSettings(s),t=0;t<i;)(e=this.points[t]).graphics=e.graphics||[],e.origProps={plotY:e.plotY,plotX:e.plotX,isInside:e.isInside,negative:e.negative,zone:e.zone,y:e.y},(e.graphic||e.graphics[0])&&(e.graphics[0]=e.graphic),e.graphic=e.graphics[1],e.plotY=e.plotHigh,N(e.plotHighX)&&(e.plotX=e.plotHighX),e.y=G(e.high,e.origProps.y),e.negative=e.y<(this.options.threshold||0),this.zones.length&&(e.zone=e.getZone()),this.chart.polar||(e.isInside=e.isTopInside=void 0!==e.plotY&&e.plotY>=0&&e.plotY<=this.yAxis.len&&e.plotX>=0&&e.plotX<=this.xAxis.len),t++;for(tc.drawPoints.apply(this,arguments),t=0;t<i;)(e=this.points[t]).graphics=e.graphics||[],(e.graphic||e.graphics[1])&&(e.graphics[1]=e.graphic),e.graphic=e.graphics[0],e.origProps&&(I(e,e.origProps),delete e.origProps),t++}hasMarkerChanged(t,e){let i=t.lowMarker,s=e.lowMarker||{};return i&&(!1===i.enabled||s.symbol!==i.symbol||s.height!==i.height||s.width!==i.width)||super.hasMarkerChanged(t,e)}}tu.defaultOptions=W(td.defaultOptions,{lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</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}}),E(tu,"afterTranslate",function(){"low,high"===this.pointArrayMap.join(",")&&this.points.forEach(t=>{let e=t.high,i=t.plotY;t.isNull?t.plotY=void 0:(t.plotLow=i,t.plotHigh=F(e)?this.yAxis.translate(this.dataModify?this.dataModify.modifyValue(e):e,!1,!0,void 0,!0):void 0,this.dataModify&&(t.yBottom=t.plotHigh))})},{order:0}),E(tu,"afterTranslate",function(){this.points.forEach(t=>{if(this.chart.polar)this.highToXY(t),t.plotLow=t.plotY,t.tooltipPos=[((t.plotHighX||0)+(t.plotLowX||0))/2,((t.plotHigh||0)+(t.plotLow||0))/2];else{let e=t.pos(!1,t.plotLow),i=t.pos(!1,t.plotHigh);e&&i&&(e[0]=(e[0]+i[0])/2,e[1]=(e[1]+i[1])/2),t.tooltipPos=e}})},{order:3}),I(tu.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:tl,pointValKey:"low",setStackedPoints:th}),w().registerSeriesType("arearange",tu);let tg=tu,{spline:{prototype:tf}}=w().seriesTypes;class tm extends tg{}tm.defaultOptions=W(tg.defaultOptions),I(tm.prototype,{getPointSpline:tf.getPointSpline}),w().registerSeriesType("areasplinerange",tm);var tx=m(448),tb=m.n(tx);let{noop:ty}=y();class tv extends tb(){pointAttribs(){return{}}getWhiskerPair(t,e,i,s,o){let r=o.whiskers.strokeWidth(),n=(i,s)=>{let o=j(i,2*t)/2,n=O(s,r);return[["M",O(e-o),n],["L",O(e+o),n]]};return[...n(i,o.highPlot),...n(s,o.lowPlot)]}translate(){let t=this.yAxis,e=this.pointArrayMap;
1super.translate.apply(this),this.points.forEach(function(i){e.forEach(function(e){null!==i[e]&&(i[e+"Plot"]=t.translate(i[e],0,1,0,1))}),i.plotHigh=i.highPlot})}drawPoints(){let t,e,i,s,o,r,n,a,l,h,d,c=this.points,p=this.options,u=this.chart,g=u.renderer,f=!1!==this.doQuartiles,m=this.options.whiskerLength;for(let x of c){let c=(a=x.graphic)?"animate":"attr",b=x.shapeArgs,y={},v={},w={},M={},k=x.color||this.color,A=x.options.whiskerLength||m;if(void 0!==x.plotY){let P;l=b.width,d=(h=b.x)+l,t=f?x.q1Plot:x.lowPlot,e=f?x.q3Plot:x.lowPlot,i=x.highPlot,s=x.lowPlot,a||(x.graphic=a=g.g("point").add(this.group),x.stem=g.path().addClass("highcharts-boxplot-stem").add(a),m&&(x.whiskers=g.path().addClass("highcharts-boxplot-whisker").add(a)),f&&(x.box=g.path(n).addClass("highcharts-boxplot-box").add(a)),x.medianShape=g.path(r).addClass("highcharts-boxplot-median").add(a)),u.styledMode||(v.stroke=x.stemColor||p.stemColor||k,v["stroke-width"]=G(x.stemWidth,p.stemWidth,p.lineWidth),v.dashstyle=x.stemDashStyle||p.stemDashStyle||p.dashStyle,x.stem.attr(v),A&&(w.stroke=x.whiskerColor||p.whiskerColor||k,w["stroke-width"]=G(x.whiskerWidth,p.whiskerWidth,p.lineWidth),w.dashstyle=x.whiskerDashStyle||p.whiskerDashStyle||p.dashStyle,x.whiskers.attr(w)),f&&(y.fill=x.fillColor||p.fillColor||k,y.stroke=p.lineColor||k,y["stroke-width"]=p.lineWidth||0,y.dashstyle=x.boxDashStyle||p.boxDashStyle||p.dashStyle,x.box.attr(y)),M.stroke=x.medianColor||p.medianColor||k,M["stroke-width"]=G(x.medianWidth,p.medianWidth,p.lineWidth),M.dashstyle=x.medianDashStyle||p.medianDashStyle||p.dashStyle,x.medianShape.attr(M));let E=O((x.plotX||0)+(this.pointXOffset||0)+(this.barW||0)/2,x.stem.strokeWidth());if(P=[["M",E,e],["L",E,i],["M",E,t],["L",E,s]],x.stem[c]({d:P}),f){let i=x.box.strokeWidth();t=O(t,i),e=O(e,i),P=[["M",h=O(h,i),e],["L",h,t],["L",d=O(d,i),t],["L",d,e],["L",h,e],["Z"]],x.box[c]({d:P})}if(A){let t=l/2,e=this.getWhiskerPair(t,E,x.upperWhiskerLength??p.upperWhiskerLength??A,x.lowerWhiskerLength??p.lowerWhiskerLength??A,x);x.whiskers[c]({d:e})}P=[["M",h,o=O(x.medianPlot,x.medianShape.strokeWidth())],["L",d,o]],x.medianShape[c]({d:P})}}}toYData(t){return[t.low,t.q1,t.median,t.q3,t.high]}}tv.defaultOptions=W(tb().defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</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}),I(tv.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:ty,setStackedPoints:ty}),w().registerSeriesType("boxplot",tv);let tw=tv,tM={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:"0.9em",color:"#000000"},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};var tk=m(984),tA=m.n(tk);let{noop:tP}=y(),tE=class{constructor(t,e){this.setState=tP,this.init(t,e)}init(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e}addToLegend(t){t.splice(this.options.legendIndex,0,this)}drawLegendSymbol(t){let e,i=G(t.options.itemDistance,20),s=this.legendItem||{},o=this.options,r=o.ranges,n=o.connectorDistance;if(!r||!r.length||!F(r[0].value)){t.options.bubbleLegend.autoRanges=!0;return}!function(t,e){let i,s,o=t.length;for(s=0;s<o;s++)t[s].safeI=s;for(t.sort(function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i}),s=0;s<o;s++)delete t[s].safeI}(r,function(t,e){return e.value-t.value}),this.ranges=r,this.setOptions(),this.render();let a=this.getMaxLabelSize(),l=this.ranges[0].radius,h=2*l;e=(e=n-l+a.width)>0?e:0,this.maxLabel=a,this.movementX="left"===o.labels.align?e:0,s.labelWidth=h+e+i,s.labelHeight=h+a.height/2}setOptions(){let t=this.ranges,e=this.options,i=this.chart.series[e.seriesIndex],s=this.legend.baseline,o={zIndex:e.zIndex,"stroke-width":e.borderWidth},r={zIndex:e.zIndex,"stroke-width":e.connectorWidth},n={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},a=i.options.marker.fillOpacity,l=this.chart.styledMode;t.forEach(function(h,d){l||(o.stroke=G(h.borderColor,e.borderColor,i.color),o.fill=h.color||e.color,o.fill||(o.fill=i.color,o["fill-opacity"]=a??1),r.stroke=G(h.connectorColor,e.connectorColor,i.color)),t[d].radius=this.getRangeRadius(h.value),t[d]=W(t[d],{center:t[0].radius-t[d].radius+s}),l||W(!0,t[d],{bubbleAttribs:W(o),connectorAttribs:W(r),labelAttribs:n})},this)}getRangeRadius(t){let e=this.options,i=this.options.seriesIndex,s=this.chart.series[i],o=e.ranges[0].value,r=e.ranges[e.ranges.length-1].value,n=e.minSize,a=e.maxSize;return s.getRadius.call(this,r,o,n,a,t)}render(){let t=this.legendItem||{},e=this.chart.renderer,i=this.options.zThreshold;for(let s of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),t.symbol=e.g("bubble-legend"),t.label=e.g("bubble-legend-item").
vendor: 5,450 bytes, line 1
1css(this.legend.itemStyle||{}),t.symbol.translateX=0,t.symbol.translateY=0,t.symbol.add(t.label),t.label.add(t.group),this.ranges))s.value>=i&&this.renderRange(s);this.hideOverlappingLabels()}renderRange(t){let e=this.ranges[0],i=this.legend,s=this.options,o=s.labels,r=this.chart,n=r.series[s.seriesIndex],a=r.renderer,l=this.symbols,h=l.labels,d=t.center,c=Math.abs(t.radius),p=s.connectorDistance||0,u=o.align,g=i.options.rtl,f=s.borderWidth,m=s.connectorWidth,x=e.radius||0,b=d-c-f/2+m/2,y=(b%1?1:.5)-(m%2?0:.5),v=a.styledMode,w=g||"left"===u?-p:p;"center"===u&&(w=0,s.connectorDistance=0,t.labelAttribs.align="center"),l.bubbleItems.push(a.circle(x,d+y,c).attr(v?{}:t.bubbleAttribs).addClass((v?"highcharts-color-"+n.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(s.className||"")).add(this.legendItem.symbol)),l.connectors.push(a.path(a.crispLine([["M",x,b],["L",x+w,b]],s.connectorWidth)).attr(v?{}:t.connectorAttribs).addClass((v?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(s.connectorClassName||"")).add(this.legendItem.symbol));let M=a.text(this.formatLabel(t)).attr(v?{}:t.labelAttribs).css(v?{}:o.style).addClass("highcharts-bubble-legend-labels "+(s.labels.className||"")).add(this.legendItem.symbol),k={x:x+w+s.labels.x,y:b+s.labels.y+.4*M.getBBox().height};M.attr(k),h.push(M),M.placed=!0,M.alignAttr=k}getMaxLabelSize(){let t,e;return this.symbols.labels.forEach(function(i){e=i.getBBox(!0),t=t?e.width>t.width?e:t:e}),t||{}}formatLabel(t){let e=this.options,i=e.labels.formatter,s=e.labels.format,{numberFormatter:o}=this.chart;return s?tA().format(s,t,this.chart):i?i.call(t,t):o(t.value,1)}hideOverlappingLabels(){let t=this.chart,e=this.options.labels.allowOverlap,i=this.symbols;!e&&i&&(t.hideOverlappingLabels(i.labels),i.labels.forEach(function(t,e){t.newOpacity?t.newOpacity!==t.oldOpacity&&i.connectors[e].show():i.connectors[e].hide()}))}getRanges(){let t=this.legend.bubbleLegend,e=t.chart.series,i=t.options.ranges,s,o,r=Number.MAX_VALUE,n=-Number.MAX_VALUE;return e.forEach(function(t){t.isBubble&&!t.ignoreSeries&&(o=t.getColumn("z").filter(F)).length&&(r=G(t.options.zMin,Math.min(r,Math.max(S(o),!1===t.options.displayNegative?t.options.zThreshold:-Number.MAX_VALUE))),n=G(t.options.zMax,Math.max(n,T(o))))}),s=r===n?[{value:n}]:[{value:r},{value:(r+n)/2},{value:n,autoRanges:!0}],i.length&&i[0].radius&&s.reverse(),s.forEach(function(t,e){i&&i[e]&&(s[e]=W(i[e],t))}),s}predictBubbleSizes(){let t=this.chart,e=t.legend.options,i=e.floating,s="horizontal"===e.layout,o=s?t.legend.lastLineHeight:0,r=t.plotSizeX,n=t.plotSizeY,a=t.series[this.options.seriesIndex],l=a.getPxExtremes(),h=Math.ceil(l.minPxSize),d=Math.ceil(l.maxPxSize),c=Math.min(n,r),p,u=a.options.maxSize;return i||!/%$/.test(u)?p=d:(p=(c+o)*(u=parseFloat(u))/100/(u/100+1),(s&&n-p>=r||!s&&r-p>=n)&&(p=d)),[h,Math.ceil(p)]}updateRanges(t,e){let i=this.legend.options.bubbleLegend;i.minSize=t,i.maxSize=e,i.ranges=this.getRanges()}correctSizes(){let t=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())}},{setOptions:tS}=y(),{composed:tT}=y();function tC(t,e,i){let s,o,r,n=this.legend,a=tL(this)>=0;n&&n.options.enabled&&n.bubbleLegend&&n.options.bubbleLegend.autoRanges&&a?(s=n.bubbleLegend.options,o=n.bubbleLegend.predictBubbleSizes(),n.bubbleLegend.updateRanges(o[0],o[1]),s.placed||(n.group.placed=!1,n.allItems.forEach(t=>{(r=t.legendItem||{}).group&&(r.group.translateY=void 0)})),n.render(),s.placed||(this.getMargins(),this.axes.forEach(t=>{t.setScale(),t.updateNames(),X(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0})}),this.getMargins()),s.placed=!0,t.call(this,e,i),n.bubbleLegend.correctSizes()):(t.call(this,e,i),n&&n.options.enabled&&n.bubbleLegend&&n.render())}function tL(t){let e=t.series,i=0;for(;i<e.length;){if(e[i]&&e[i].isBubble&&e[i].visible&&e[i].dataTable.rowCount)return i;i++}return -1}function tO(t){let e=this.bubbleLegend,i=this.options,s=i.bubbleLegend,o=tL(this.chart);e&&e.ranges&&e.ranges.length&&(s.ranges.length&&(s.autoRanges=!!s.ranges[0].autoRanges),this.destroyItem(e)),o>=0&&i.enabled&&s.enabled&&(s.seriesIndex=o,this.bubbleLegend=new tE(s,this),this.bubbleLegend.addToLegend(t.allItems))}function tN(){if(this.bubbleLegend){let t=this.allItems,e=this.options.rtl,i=function(t){let e=t.allItems,i=[],s=e.length,o,r,n,a=0,l=0;for(a=0;a<s;a++)if(r=e[a].legendItem||{},n=(e[a+1]||{}).legendItem||{},r.labelHeight&&(e[a].itemHeight=r.labelHeight),e[a]===e[s-1]||r.y!==n.y){for(i.push({height:0}),o=i[i.length-1];l<=a;l++)e[l].itemHeight>o.height&&(o.height=e[l].itemHeight);o.step=a}return i}(this),s,o,r,n,a=0;t.forEach((t,l)=>{(n=t.legendItem||{}).group&&(s=n.group.translateX||0,o=n.y||0,((r=t.movementX)||e&&t.ranges)&&(r=e?s-t.options.maxSize/2:s+r,n.group.attr({translateX:r})),l>i[a].step&&a++,n.group.attr({translateY:Math.round(o+i[a].height/2)}),n.y=o+i[a].height/2)})}}function tI(t){let e;if(t.defaultPrevented)return!1;let i=t.legendItem,s=this.chart,o=i.visible;this&&this.bubbleLegend&&(i.visible=!o,i.ignoreSeries=o,e=tL(s)>=0,this.bubbleLegend.visible!==e&&(this.update({bubbleLegend:{enabled:e}}),this.bubbleLegend.visible=e),i.visible=o)}let tD=function(t,e){V(tT,"Series.BubbleLegend")&&(tS({legend:{bubbleLegend:tM}}),_(t.prototype,"drawChartBox",tC),E(e,"afterGetAllItems",tO),E(e,"afterRe
1nder",tN),E(e,"itemClick",tI))};var tB=m(260),tR=m.n(tB);let{seriesTypes:{scatter:{prototype:{pointClass:tF}}}}=w();class tz extends tF{haloPath(t){let e=(t&&this.marker&&this.marker.radius||0)+t;if(this.series.chart.inverted){let t=this.pos()||[0,0],{xAxis:i,yAxis:s,chart:o}=this.series,r=2*e;return o.renderer.symbols.circle((i?.len||0)-t[1]-e,(s?.len||0)-t[0]-e,r,r)}return tR().prototype.haloPath.call(this,e)}}I(tz.prototype,{ttBelow:!1});let{composed:tH,noop:tW}=y(),{series:tX,seriesTypes:{column:{prototype:tG},scatter:tY}}=w();function tV(){let t=this.len,{coll:e,isXAxis:i,min:s}=this,o=(this.max||0)-(s||0),r=0,n=t,a=t/o,l;("xAxis"===e||"yAxis"===e)&&(this.series.forEach(t=>{if(t.bubblePadding&&t.reserveSpace()){this.allowZoomOutside=!0,l=!0;let e=t.getColumn(i?"x":"y");if(i&&((t.onPoint||t).getRadii(0,0,t),t.onPoint&&(t.radii=t.onPoint.radii)),o>0){let i=e.length;for(;i--;)if(F(e[i])&&this.dataMin<=e[i]&&e[i]<=this.max){let o=t.radii&&t.radii[i]||0;r=Math.min((e[i]-s)*a-o,r),n=Math.max((e[i]-s)*a+o,n)}}}}),l&&o>0&&!this.logarithmic&&(n-=t,a*=(t+Math.max(0,r)-Math.min(n,t))/t,[["min","userMin",r],["max","userMax",n]].forEach(t=>{void 0===G(this.options[t[0]],this[t[1]])&&(this[t[0]]+=t[2]/a)})))}function tj(){let{ticks:t,tickPositions:e,dataMin:i=0,dataMax:s=0,categories:o}=this,r=this.options.type;if((o?.length||"category"===r)&&this.series.find(t=>t.bubblePadding)){let o=e.length;for(;o--;){let r=t[e[o]],n=r.pos||0;(n>s||n<i)&&r.label?.hide()}}}class tU extends tY{static compose(t,e,i){tD(e,i),V(tH,"Series.Bubble")&&(E(t,"foundExtremes",tV),E(t,"afterRender",tj))}animate(t){!t&&this.points.length<this.options.animationLimit&&this.points.forEach(function(t){let{graphic:e,plotX:i=0,plotY:s=0}=t;e&&e.width&&(this.hasRendered||e.attr({x:i,y:s,width:1,height:1}),e.animate(this.markerAttribs(t),this.options.animation))},this)}getRadii(){let t=this.getColumn("z"),e=this.getColumn("y"),i=[],s,o,r,n=this.chart.bubbleZExtremes,{minPxSize:a,maxPxSize:l}=this.getPxExtremes();if(!n){let t,e=Number.MAX_VALUE,i=-Number.MAX_VALUE;this.chart.series.forEach(s=>{if(s.bubblePadding&&s.reserveSpace()){let o=(s.onPoint||s).getZExtremes();o&&(e=Math.min(G(e,o.zMin),o.zMin),i=Math.max(G(i,o.zMax),o.zMax),t=!0)}}),t?(n={zMin:e,zMax:i},this.chart.bubbleZExtremes=n):n={zMin:0,zMax:0}}for(o=0,s=t.length;o<s;o++)r=t[o],i.push(this.getRadius(n.zMin,n.zMax,a,l,r,e&&e[o]));this.radii=i}getRadius(t,e,i,s,o,r){let n=this.options,a="width"!==n.sizeBy,l=n.zThreshold,h=e-t,d=.5;if(null===r||null===o)return null;if(F(o)){if(n.sizeByAbsoluteValue&&(o=Math.abs(o-l),e=h=Math.max(e-l,Math.abs(t-l)),t=0),o<t)return i/2-1;h>0&&(d=(o-t)/h)}return a&&d>=0&&(d=Math.sqrt(d)),Math.ceil(i+d*(s-i))/2}hasData(){return!!this.dataTable.rowCount}markerAttribs(t,e){let i=super.markerAttribs(t,e),{height:s=0,width:o=0}=i;return this.chart.inverted?I(i,{x:(t.plotX||0)-o/2,y:(t.plotY||0)-s/2}):i}pointAttribs(t,e){let i=this.options.marker,s=i?.fillOpacity,o=tX.prototype.pointAttribs.call(this,t,e);return o["fill-opacity"]=s??1,o}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:t,options:e,radii:i}=this,{minPxSize:s}=this.getPxExtremes(),o=t.length;for(;o--;){let r=t[o],n=i?i[o]:0;"z"===this.zoneAxis&&(r.negative=(r.z||0)<(e.zThreshold||0)),F(n)&&(r.marker=I(r.marker,{radius:n,width:2*n,height:2*n})),F(n)&&n>=s/2?r.dlBox={x:r.plotX-n,y:r.plotY-n,width:2*n,height:2*n}:(r.shapeArgs=r.plotY=r.dlBox=void 0,r.isInside=!1)}}getPxExtremes(){let t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=e=>{let i;return"string"==typeof e&&(i=/%$/.test(e),e=parseInt(e,10)),i?t*e/100:e},i=e(G(this.options.minSize,8)),s=Math.max(e(G(this.options.maxSize,"20%")),i);return{minPxSize:i,maxPxSize:s}}getZExtremes(){let t=this.options,e=this.getColumn("z").filter(F);if(e.length){let i=G(t.zMin,C(S(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),s=G(t.zMa
1x,T(e));if(F(i)&&F(s))return{zMin:i,zMax:s}}}searchKDTree(t,e,i,s=tW,o=tW){return s=(t,e,i)=>{let s=t[i]||0,o=e[i]||0,r,n=!1;return s===o?r=t.index>e.index?t:e:s<0&&o<0?(r=s-(t.marker?.radius||0)>=o-(e.marker?.radius||0)?t:e,n=!0):r=s<o?t:e,[r,n]},o=(t,e,i)=>!i&&t>e||t<e,super.searchKDTree(t,e,i,s,o)}}tU.defaultOptions=W(tY.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:t}=this.series.chart,{z:e}=this.point;return F(e)?t(e,-1):""},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"}),I(tU.prototype,{alignDataLabel:tG.alignDataLabel,applyZones:tW,bubblePadding:!0,isBubble:!0,keysAffectYAxis:["y"],pointArrayMap:["y","z"],pointClass:tz,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),E(tU,"updatedData",t=>{delete t.target.chart.bubbleZExtremes}),E(tU,"remove",t=>{delete t.target.chart.bubbleZExtremes}),E(tU,"update",t=>{let e=t.target.options;(N(e.zMin)||N(e.zMax))&&delete t.target.chart.bubbleZExtremes}),w().registerSeriesType("bubble",tU);let{seriesTypes:{column:{prototype:{pointClass:{prototype:t_}}},arearange:{prototype:{pointClass:tq}}}}=w();class tK extends tq{isValid(){return F(this.low)}}I(tK.prototype,{setState:t_.setState});let{noop:t$}=y(),{seriesTypes:{arearange:tZ,column:tJ,column:{prototype:tQ}}}=w();class t0 extends tZ{setOptions(){return W(!0,arguments[0],{stacking:void 0}),tZ.prototype.setOptions.apply(this,arguments)}translate(){return tQ.translate.apply(this)}pointAttribs(){return tQ.pointAttribs.apply(this,arguments)}translate3dPoints(){return tQ.translate3dPoints.apply(this,arguments)}translate3dShapes(){return tQ.translate3dShapes.apply(this,arguments)}afterColumnTranslate(){let t,e,i,s,o=this.yAxis,r=this.xAxis,n=r.startAngleRad,a=this.chart,l=this.xAxis.isRadial,h=Math.max(a.chartWidth,a.chartHeight)+999;this.points.forEach(d=>{let c=d.shapeArgs||{},p=this.options.minPointLength,u=d.plotY,g=o.translate(d.high,0,1,0,1);if(F(g)&&F(u))if(d.plotHigh=C(g,-h,h),d.plotLow=C(u,-h,h),s=d.plotHigh,Math.abs(t=G(d.rectPlotY,d.plotY)-d.plotHigh)<p?(e=p-t,t+=e,s-=e/2):t<0&&(t*=-1,s-=t),l&&this.polar)i=d.barX+n,d.shapeType="arc",d.shapeArgs=this.polar.arc(s+t,s,i,i+(d.pointWidth||0));else{c.height=t,c.y=s;let{x:e=0,width:i=0}=c;d.shapeArgs=W(d.shapeArgs,this.crispCol(e,s,i,t)),d.tooltipPos=a.inverted?[o.len+o.pos-a.plotLeft-s-t/2,r.len+r.pos-a.plotTop-e-i/2,t]:[r.left-a.plotLeft+e+i/2,o.pos-a.plotTop+s+t/2,t]}})}}t0.defaultOptions=W(tJ.defaultOptions,tZ.defaultOptions,{borderRadius:{where:"all"},pointRange:null,legendSymbol:"rectangle",marker:null,states:{hover:{halo:!1}}}),E(t0,"afterColumnTranslate",function(){t0.prototype.afterColumnTranslate.apply(this)},{order:5}),I(t0.prototype,{directTouch:!0,pointClass:tK,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:tQ.adjustForMissingColumns,animate:tQ.animate,crispCol:tQ.crispCol,drawGraph:t$,drawPoints:tQ.drawPoints,getSymbol:t$,drawTracker:tQ.drawTracker,getColumnMetrics:tQ.getColumnMetrics}),w().registerSeriesType("columnrange",t0);let{column:t1}=w().seriesTypes;class t2 extends t1{translate(){let t=this.chart,e=this.options,i=this.dense=this.closestPointRange*this.xAxis.transA<2,s=this.borderWidth=G(e.borderWidth,+!i),o=this.yAxis,r=e.threshold,n=G(e.minPointLength,5),a=this.getColumnMetrics(),l=a.width,h=this.pointXOffset=a.offset,d=this.translatedThreshold=o.getThreshold(r),c=this.barW=Math.max(l,1+2*s);for(let i of(t.inverted&&(d-=.5),e.pointPadding&&(c=Math.ceil(c)),super.translate(),this.points)){let s=G(i.yBottom,d),p=999+Math.abs(s),u=C(i.plotY,-p,o.len+p),g=c/2,f=Math.min(u,s),m=Math.max(u,s)-f,x=i.plotX+h,b,y,v,w,M,k,A,P,E,S,T;e.centerInCategory&&(x=this.adjustForMissingColumns(x,l,i,a)),i.barX=x,i.pointWidth=l,i.tooltipPos=t.inverted?[o.len+o.pos-t.plotLeft-u,this.xAxis.len-x-g,m]:[x+g,u+o.pos-t.plotTop,m],b=r+(i.total||i.y),"percent"===e.stacking&&(b=r+(i.y<0)?-100:100);let L=o.toPixels(b,!0);v=(y=t.plotHeight-L-(t.plotHeight-d))?g*(f-L)/y:0,w=y?g*(f+m-L)/y:0,k=x-v+g,A=x+v+g,P=x+w+g,E=x-w+g,S=f-n,T=f+m,i.y<0&&(S=f,T=f+m+n),t.inverted&&(M=o.width-f,y=L-(o.width-d),v=g*(L-M)/y,w=g*(L-(M-m))/y,A=(k=x+g+v)-2*v,P=x-w+g,E=x+w+g,S=f,T=f+m-n,i.y<0&&(T=f+m+n)),i.shapeType="path",i.shapeArgs={x:k,y:S,width:A-k,height:m,d:[["M",k,S],["L",A,S],["L",P,T],["L",E,T],["Z"]]}}}}t2.defaultOptions=W(t1.defaultOptions,{}),w().registerSeriesType("columnpyramid",t2);let{arearange:t5}=w().seriesTypes;
1class t3 extends tw{getColumnMetrics(){return this.linkedParent&&this.linkedParent.columnMetrics||tb().prototype.getColumnMetrics.call(this)}drawDataLabels(){let t=this.pointValKey;if(t5)for(let e of(t5.prototype.drawDataLabels.call(this),this.points))e.y=e[t]}toYData(t){return[t.low,t.high]}}t3.defaultOptions=W(tw.defaultOptions,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}),E(t3,"afterTranslate",function(){for(let t of this.points)t.plotLow=t.plotY},{order:0}),I(t3.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),w().registerSeriesType("errorbar",t3);let{series:{prototype:{pointClass:t6}}}=w(),{noop:t4}=y(),{series:t9,seriesTypes:{column:t8}}=w();class t7 extends t9{translate(){let t=this.yAxis,e=this.options,i=t.center;this.generatePoints(),this.points.forEach(s=>{let o=W(e.dial,s.dial),r=Y(o.radius)*i[2]/200,n=Y(o.baseLength)*r/100,a=Y(o.rearLength)*r/100,l=o.baseWidth,h=o.topWidth,d=e.overshoot,c=t.startAngleRad+t.translate(s.y,void 0,void 0,void 0,!0);(F(d)||!1===e.wrap)&&(d=F(d)?d/180*Math.PI:0,c=C(c,t.startAngleRad-d,t.endAngleRad+d)),c=180*c/Math.PI,s.shapeType="path",s.shapeArgs={d:o.path||[["M",-a,-l/2],["L",n,-l/2],["L",r,-h/2],["L",r,h/2],["L",n,l/2],["L",-a,l/2],["Z"]],translateX:i[0],translateY:i[1],rotation:c},s.plotX=i[0],s.plotY=i[1],N(s.y)&&t.max-t.min&&(s.percentage=(s.y-t.min)/(t.max-t.min)*100)})}drawPoints(){let t=this,e=t.chart,i=t.yAxis.center,s=t.pivot,o=t.options,r=o.pivot,n=e.renderer;t.points.forEach(i=>{let s=i.graphic,r=i.shapeArgs,a=r.d,l=W(o.dial,i.dial);s?(s.animate(r),r.d=a):i.graphic=n[i.shapeType](r).addClass("highcharts-dial").add(t.group),e.styledMode||i.graphic[s?"animate":"attr"]({stroke:l.borderColor,"stroke-width":l.borderWidth,fill:l.backgroundColor})}),s?s.animate({translateX:i[0],translateY:i[1]}):r&&(t.pivot=n.circle(0,0,r.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(i[0],i[1]).add(t.group),e.styledMode||t.pivot.attr({fill:r.backgroundColor,stroke:r.borderColor,"stroke-width":r.borderWidth}))}animate(t){let e=this;t||e.points.forEach(t=>{let i=t.graphic;i&&(i.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),i.animate({rotation:t.shapeArgs.rotation},e.options.animation))})}render(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),t9.prototype.render.call(this),this.group.clip(this.chart.clipRect)}setData(t,e){t9.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),G(e,!0)&&this.chart.redraw()}hasData(){return!!this.points.length}}t7.defaultOptions=W(t9.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),I(t7.prototype,{angular:!0,directTouch:!0,drawGraph:t4,drawTracker:t8.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:class extends t6{setState(t){this.state=t}},trackerGroups:["group","dataLabelsGroup"]}),w().registerSeriesType("gauge",t7);var et=m(620),ee=m.n(et);let{composed:ei}=y();function es(){let t,e,i,s,o=this;o.container&&(t=E(o.container,"mousedown",t=>{e&&e(),i&&i(),(s=o.hoverPoint)&&s.series&&s.series.hasDraggableNodes&&s.series.options.draggable&&(s.series.onMouseDown(s,t),e=E(o.container,"mousemove",t=>s&&s.series&&s.series.onMouseMove(s,t)),i=E(o.container.ownerDocument,"mouseup",t=>(e(),i(),s&&s.series&&s.series.onMouseUp(s,t))))})),E(o,"destroy",function(){t()})}let eo={compose:function(t){V(ei,"DragNodes")&&E(t,"load",es)},onMouseDown:function(t,e){let{panKey:i}=this.chart.options.chart;if(i&&e[`${i}Key`])return;let s=this.chart.pointer?.normalize(e)||e;t.fixedPosition={chartX:s.chartX,chartY:s.chartY,plotX:t.plotX,plotY:t.plotY},t.inDragMode=!0},onMouseMove:function(t,e){if(t.fixedPosition&&t.inDragMode){let i,s,o=this.chart,r=o.pointer?.normalize(e)||e,n=t.fixedPosition.chartX-r.chartX,a=t.fixedPosition.chartY-r.chartY,l=o.graphLayoutsLookup;(Math.abs(n)>5||Math.abs(a)>5)&&(i=t.fixedPosition.plotX-n,s=t.fixedPosition.plotY-a,o.isInsidePlot(i,s)&&(t.plotX=i,t.plotY=s,t.hasDragged=!0,this.redrawHalo(t),l.forEach(t=>{t.restartSimulation()})))}},onMouseUp:function(t){t.fixedPosition&&(t.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),t.inDragMode=t.hasDragged=!1,this.options.fixedDraggable||delete t.fixedPosition)},redrawHalo:function(t){t&&this.halo&&this.halo.attr({d:t.haloPath(this.options.states.hover.halo.size)})}},{setAnimation:er}=y(),{composed:en}=y();function ea(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(t=>{t.updateSimulation()}),this.redraw())}function el(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(t=>{t.updateSimulation(!1)}),this.redraw())}function eh(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(t=>{t.stop()})}function ed(){let t,e=!1,i=i=>{i.maxIterations--&&isFinite(i.temperature)&&!i.isStable()&&!i.enableSimulation&&(i.beforeStep&&i.beforeStep(),i.step(),t=!1,e=!0)};if(this.graphLayoutsLookup&&!this.pointer?.hasDragged){for(er(!1,this),this.graphLayoutsLookup.forEach(t=>t.start());!t;)t=!0,this.graphLayoutsLookup.forEach(i);
vendor: 7,814 bytes, line 1
1e&&this.series.forEach(t=>{t&&t.layout&&t.render()})}}let ec=function(t){V(en,"GraphLayout")&&(E(t,"afterPrint",ea),E(t,"beforePrint",el),E(t,"predraw",eh),E(t,"render",ed))},ep={},eu={};var eg=m(960),ef=m.n(eg);let{seriesTypes:{bubble:{prototype:{pointClass:em}}}}=w(),ex=class extends em{destroy(){return this.series?.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),tR().prototype.destroy.apply(this,arguments)}firePointEvent(){let t=this.series.options;if(this.isParentNode&&t.parentNode){let e=t.allowPointSelect;t.allowPointSelect=t.parentNode.allowPointSelect,tR().prototype.firePointEvent.apply(this,arguments),t.allowPointSelect=e}else tR().prototype.firePointEvent.apply(this,arguments)}select(){let t=this.series.chart;this.isParentNode?(t.getSelectedPoints=t.getSelectedParentNodes,tR().prototype.select.apply(this,arguments),t.getSelectedPoints=ef().prototype.getSelectedPoints):tR().prototype.select.apply(this,arguments)}setState(t,e){this?.graphic?.parentGroup?.element&&super.setState(t,e)}},eb={attractive:function(t,e,i){let s=t.getMass(),o=-i.x*e*this.diffTemperature,r=-i.y*e*this.diffTemperature;t.fromNode.fixedPosition||(t.fromNode.plotX-=o*s.fromNode/t.fromNode.degree,t.fromNode.plotY-=r*s.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.plotX+=o*s.toNode/t.toNode.degree,t.toNode.plotY+=r*s.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return(e-t)/t},barycenter:function(){let t=this.options.gravitationalConstant||0,e=(this.barycenter.xFactor-(this.box.left+this.box.width)/2)*t,i=(this.barycenter.yFactor-(this.box.top+this.box.height)/2)*t;this.nodes.forEach(function(t){t.fixedPosition||(t.plotX-=e/t.mass/t.degree,t.plotY-=i/t.mass/t.degree)})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.5)},integrate:function(t,e){let i=-t.options.friction,s=t.options.maxSpeed,o=e.prevX,r=e.prevY,n=(e.plotX+e.dispX-o)*i,a=(e.plotY+e.dispY-r)*i,l=Math.abs,h=l(n)/(n||1),d=l(a)/(a||1),c=h*Math.min(s,Math.abs(n)),p=d*Math.min(s,Math.abs(a));e.prevX=e.plotX+e.dispX,e.prevY=e.plotY+e.dispY,e.plotX+=c,e.plotY+=p,e.temperature=t.vectorLength({x:c,y:p})},repulsive:function(t,e,i){let s=e*this.diffTemperature/t.mass/t.degree;t.fixedPosition||(t.plotX+=i.x*s,t.plotY+=i.y*s)},repulsiveForceFunction:function(t,e){return(e-t)/t*(e>t)}},{noop:ey}=y(),ev={barycenter:function(){let t,e,i=this.options.gravitationalConstant||0,s=this.box,o=this.nodes,r=Math.sqrt(o.length);for(let n of o)if(!n.fixedPosition){let o=n.mass*r,a=n.plotX||0,l=n.plotY||0,h=n.series,d=h.parentNode;this.resolveSplitSeries(n)&&d&&!n.isParentNode?(t=d.plotX||0,e=d.plotY||0):(t=s.width/2,e=s.height/2),n.plotX=a-(a-t)*i/o,n.plotY=l-(l-e)*i/o,h.chart.hoverPoint===n&&h.redrawHalo&&h.halo&&h.redrawHalo(n)}},getK:ey,integrate:eb.integrate,repulsive:function(t,e,i,s){let o=e*this.diffTemperature/t.mass/t.degree,r=i.x*o,n=i.y*o;t.fixedPosition||(t.plotX+=r,t.plotY+=n),s.fixedPosition||(s.plotX-=r,s.plotY-=n)},repulsiveForceFunction:function(t,e,i,s){return Math.min(t,(i.marker.radius+s.marker.radius)/2)}},ew={attractive:function(t,e,i,s){let o=t.getMass(),r=i.x/s*e,n=i.y/s*e;t.fromNode.fixedPosition||(t.fromNode.dispX-=r*o.fromNode/t.fromNode.degree,t.fromNode.dispY-=n*o.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.dispX+=r*o.toNode/t.toNode.degree,t.toNode.dispY+=n*o.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return t*t/e},barycenter:function(){let t=this.options.gravitationalConstant,e=this.barycenter.xFactor,i=this.barycenter.yFactor;this.nodes.forEach(function(s){if(!s.fixedPosition){let o=s.getDegree(),r=o*(1+o/2);s.dispX+=(e-s.plotX)*t*r/s.degree,s.dispY+=(i-s.plotY)*t*r/s.degree}})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.3)},integrate:function(t,e){e.dispX+=e.dispX*t.options.friction,e.dispY+=e.dispY*t.options.friction;let i=e.temperature=t.vectorLength({x:e.dispX,y:e.dispY});0!==i&&(e.plotX+=e.dispX/i*Math.min(Math.abs(e.dispX),t.temperature),e.plotY+=e.dispY/i*Math.min(Math.abs(e.dispY),t.temperature))},repulsive:function(t,e,i,s){t.dispX+=i.x/s*e/t.degree,t.dispY+=i.y/s*e/t.degree},repulsiveForceFunction:function(t,e){return e*e/t}};class eM{constructor(t){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=t,this.boxSize=Math.min(t.width,t.height)}divideBox(){let t=this.box.width/2,e=this.box.height/2;this.nodes[0]=new eM({left:this.box.left,top:this.box.top,width:t,height:e}),this.nodes[1]=new eM({left:this.box.left+t,top:this.box.top,width:t,height:e}),this.nodes[2]=new eM({left:this.box.left+t,top:this.box.top+e,width:t,height:e}),this.nodes[3]=new eM({left:this.box.left,top:this.box.top+e,width:t,height:e})}getBoxPosition(t){let e=t.plotX<this.box.left+this.box.width/2,i=t.plotY<this.box.top+this.box.height/2;return e?3*!i:i?1:2}insert(t,e){let i;this.isInternal?this.nodes[this.getBoxPosition(t)].insert(t,e-1):(this.isEmpty=!1,this.body?e?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,e-1),this.body=!0),this.nodes[this.getBoxPosition(t)].insert(t,e-1)):((i=new eM({top:t.plotX||NaN,left:t.plotY||NaN,width:.1,height:.1})).body=t,i.isInternal=!1,this.nodes.push(i)):(this.isInternal=!1,this.body=t))}updateMassAndCenter(){let t=0,e=0,i=0;if(this.isInternal){for(let s of this.nodes)s.isEmpty||(t+=s.mass,e+=s.plotX*s.mass,i+=s.plotY*s.mass);e/=t,i/=t}else this.body&&(t=this.body.mass,e=this.body.plotX,i=this.body.plotY);this.mass=t,this.plotX=e,this.plotY=i}}let ek=class{constructor(t,e,i,s){this.box={left:t,top:e,width:i,height:s},this.maxDepth=25,this.root=new eM(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}calculateMassAndCenter(){this.visitNodeRecursive(null,null,function(t){t.updateMassAndCenter()})}insertNodes(t){for(let e of t)this.root.insert(e,this.maxDepth)}visitNodeRecursive(t,e,i){let s;if(t||(t=this.root),t===this.root&&e&&(s=e(t)),!1!==s){for(let o of t.nodes){if(o.isInternal){if(e&&(s=e(o)),!1===s)continue;this.visitNodeRecursive(o,e,i)}else o.body&&e&&e(o.body);i&&i(o)}t===this.root&&i&&i(t)}}},{win:eA}=y();class eP{constructor(){this.box={},this.currentStep=0,this.initialRendering=!0,this.links=[],this.nodes=[],this.series=[],this.simulation=!1}static compose(t){ec(t),ep.euler=ew,ep.verlet=eb,eu["reingold-fruchterman"]=eP}init(t){this.options=t,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=ep[t.integration],this.enableSimulation=t.enableSimulation,this.attractiveForce=G(t.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=G(t.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=t.approximation}updateSimulation(t){this.enableSimulation=G(t,this.options.enableSimulation)}start(){let t=this.series,e=this.options;this.currentStep=0,this.forces=t[0]&&t[0].forces||[],this.chart=t[0]&&t[0].chart,this.initialRendering&&(this.initPositions(),t.forEach(function(t){t.finishedAnimating=!0,t.render()})),this.setK(),this.resetSimulation(e),this.enableSimulation&&this.step()}step(){let t=this.series;for(let t of(this.currentStep++,"barnes-hut"===this.approximation&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter()),this.forces||[]))this[t+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(let e of t)e.chart&&e.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&eA.cancelAnimationFrame(this.simulation),this.simulation=eA.requestAnimationFrame(()=>
1this.step())):(this.simulation=!1,this.series.forEach(t=>{D(t,"afterSimulation")}))}}stop(){this.simulation&&eA.cancelAnimationFrame(this.simulation)}setArea(t,e,i,s){this.box={left:t,top:e,width:i,height:s}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(t,e){for(let i of t)-1===e.indexOf(i)&&e.push(i)}removeElementFromCollection(t,e){let i=e.indexOf(t);-1!==i&&e.splice(i,1)}clear(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()}resetSimulation(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()}restartSimulation(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))}setMaxIterations(t){this.maxIterations=G(t,this.options.maxIterations)}setTemperature(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)}setDiffTemperature(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)}setInitialRendering(t){this.initialRendering=t}createQuadTree(){this.quadTree=new ek(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){let t=this.options.initialPositions;if("function"==typeof t)for(let e of(t.call(this),this.nodes))N(e.prevX)||(e.prevX=e.plotX),N(e.prevY)||(e.prevY=e.plotY),e.dispX=0,e.dispY=0;else"circle"===t?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){let t,e=this.box,i=this.nodes,s=2*Math.PI/(i.length+1),o=i.filter(function(t){return 0===t.linksTo.length}),r={},n=this.options.initialPositionRadius,a=t=>{for(let e of t.linksFrom||[])r[e.toNode.id]||(r[e.toNode.id]=!0,l.push(e.toNode),a(e.toNode))},l=[];for(let t of o)l.push(t),a(t);if(l.length)for(let t of i)-1===l.indexOf(t)&&l.push(t);else l=i;for(let i=0,o=l.length;i<o;++i)(t=l[i]).plotX=t.prevX=G(t.plotX,e.width/2+n*Math.cos(i*s)),t.plotY=t.prevY=G(t.plotY,e.height/2+n*Math.sin(i*s)),t.dispX=0,t.dispY=0}setRandomPositions(){let t,e=this.box,i=this.nodes,s=i.length+1,o=t=>{let e=t*t/Math.PI;return e-Math.floor(e)};for(let r=0,n=i.length;r<n;++r)(t=i[r]).plotX=t.prevX=G(t.plotX,e.width*o(r)),t.plotY=t.prevY=G(t.plotY,e.height*o(s+r)),t.dispX=0,t.dispY=0}force(t,...e){this.integration[t].apply(this,e)}barycenterForces(){this.getBarycenter(),this.force("barycenter")}getBarycenter(){let t=0,e=0,i=0;for(let s of this.nodes)e+=s.plotX*s.mass,i+=s.plotY*s.mass,t+=s.mass;return this.barycenter={x:e,y:i,xFactor:e/t,yFactor:i/t},this.barycenter}barnesHutApproximation(t,e){let i,s,o=this.getDistXY(t,e),r=this.vectorLength(o);return t!==e&&0!==r&&(e.isInternal?e.boxSize/r<this.options.theta&&0!==r?(s=this.repulsiveForce(r,this.k),this.force("repulsive",t,s*e.mass,o,r),i=!1):i=!0:(s=this.repulsiveForce(r,this.k),this.force("repulsive",t,s*e.mass,o,r))),i}repulsiveForces(){if("barnes-hut"===this.approximation)for(let t of this.nodes)this.quadTree.visitNodeRecursive(null,e=>this.barnesHutApproximation(t,e));else{let t,e,i;for(let s of this.nodes)for(let o of this.nodes)s===o||s.fixedPosition||(i=this.getDistXY(s,o),0!==(e=this.vectorLength(i))&&(t=this.repulsiveForce(e,this.k),this.force("repulsive",s,t*o.mass,i,e)))}}attractiveForces(){let t,e,i;for(let s of this.links)s.fromNode&&s.toNode&&(t=this.getDistXY(s.fromNode,s.toNode),0!==(e=this.vectorLength(t))&&(i=this.attractiveForce(e,this.k),this.force("attractive",s,i,t,e)))}applyLimits(){for(let t of this.nodes)t.fixedPosition||(this.integration.integrate(this,t),this.applyLimitBox(t,this.box),t.dispX=0,t.dispY=0)}applyLimitBox(t,e){let i=t.radius;t.plotX=C(t.plotX,e.left+i,e.width-i),t.plotY=C(t.plotY,e.top+i,e.height-i)}coolDown(t,e,i){return t-e*i}isStable(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||this.temperature<=0}getSystemTemperature(){let t=0;for(let e of this.nodes)t+=e.temperature;return t}vectorLength(t){return Math.sqrt(t.x*t.x+t.y*t.y)}getDistR(t,e){let i=this.getDistXY(t,e);return this.vectorLength(i)}getDistXY(t,e){let i=t.plotX-e.plotX,s=t.plotY-e.plotY;return{x:i,y:s,absX:Math.abs(i),absY:Math.abs(s)}}}let eE=eP;function eS(){let t=this.series,e=[];return t.forEach(t=>{t.parentNode&&t.parentNode.selected&&e.push(t.parentNode)}),e}function eT(){this.allDataPoints&&delete this.allDataPoints}class eC extends eE{constructor(){super(...arguments),this.index=NaN,this.nodes=[],this.series=[]}static compose(t){eE.compose(t),ep.packedbubble=ev,eu.packedbubble=eC;let e=t.prototype;e.getSelectedParentNodes||(E(t,"beforeRedraw",eT),e.getSelectedParentNodes=eS),e.allParentNodes||(e.allParentNodes=[])}
1beforeStep(){this.options.marker&&this.series.forEach(t=>{t&&t.calculateParentRadius()})}isStable(){let t=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&t<1e-5||this.temperature<=0}setCircularPositions(){let t=this.box,e=[...this.nodes,...this?.chart?.allParentNodes||[]],i=2*Math.PI/(e.length+1),s=this.options.initialPositionRadius,o,r,n=0;for(let a of e)this.resolveSplitSeries(a)&&!a.isParentNode?(o=a.series.parentNode.plotX,r=a.series.parentNode.plotY):(o=t.width/2,r=t.height/2),a.plotX=a.prevX=G(a.plotX,o+s*Math.cos(a.index||n*i)),a.plotY=a.prevY=G(a.plotY,r+s*Math.sin(a.index||n*i)),a.dispX=0,a.dispY=0,n++}repulsiveForces(){let{options:t,k:e}=this,{bubblePadding:i=0,seriesInteraction:s}=t,o=[...this.nodes,...this?.chart?.allParentNodes||[]];for(let t of o){let r=t.series,n=t.fixedPosition,a=(t.marker?.radius||0)+i;for(let i of(t.degree=t.mass,t.neighbors=0,o)){let o=i.series;if(t!==i&&!n&&(s||r===o)&&!(r===o&&(i.isParentNode||t.isParentNode))){let s,o=this.getDistXY(t,i),r=this.vectorLength(o)-(a+(i.marker?.radius||0));r<0&&(t.degree+=.01,s=this.repulsiveForce(-r/Math.sqrt(++t.neighbors),e,t,i)*i.mass),this.force("repulsive",t,s||0,o,i,r)}}}}resolveSplitSeries(t){let e=t.series?.options?.layoutAlgorithm?.splitSeries;return!N(e)&&t.series.chart?.options?.plotOptions?.packedbubble?.layoutAlgorithm?.splitSeries||e||!1}applyLimitBox(t,e){let i,s;this.resolveSplitSeries(t)&&!t.isParentNode&&this.options.parentNodeLimit&&(i=this.getDistXY(t,t.series.parentNode),(s=t.series.parentNodeRadius-t.marker.radius-this.vectorLength(i))<0&&s>-2*t.marker.radius&&(t.plotX-=.01*i.x,t.plotY-=.01*i.y)),super.applyLimitBox(t,e)}}eu.packedbubble=eC;let{animObject:eL}=y();var eO=m(28),eN=m.n(eO);let{deg2rad:eI}=y();function eD(t,e){e=W(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);let i=this.renderer.url,s=this.text||this,o=s.textPath,{attributes:r,enabled:n}=e;if(t=t||o&&o.path,o&&o.undo(),t&&n){let e=E(s,"afterModifyTree",e=>{if(t&&n){let o=t.attr("id");o||t.attr("id",o=(0,b.uniqueKey)());let n={x:0,y:0};N(r.dx)&&(n.dx=r.dx,delete r.dx),N(r.dy)&&(n.dy=r.dy,delete r.dy),s.attr(n),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let a=e.nodes.slice(0);e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:I(r,{"text-anchor":r.textAnchor,href:`${i}#${o}`}),children:a}}});s.textPath={path:t,undo:e}}else s.attr({dx:0,dy:0}),delete s.textPath;return this.added&&(s.textCache="",this.renderer.buildText(s)),this}function eB(t){let e=t.bBox,i=this.element?.querySelector("textPath");if(i){let t=[],{b:s,h:o}=this.renderer.fontMetrics(this.element),r=o-s,n=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),a=i.innerHTML.replace(n,"").split(/<tspan class="highcharts-br"[^>]*>/),l=a.length,h=(t,e)=>{let{x:o,y:n}=e,a=(i.getRotationOfChar(t)-90)*eI,l=Math.cos(a),h=Math.sin(a);return[[o-r*l,n-r*h],[o+s*l,n+s*h]]};for(let e=0,s=0;s<l;s++){let o=a[s].length;for(let r=0;r<o;r+=5)try{let o=e+r+s,[n,a]=h(o,i.getStartPositionOfChar(o));0===r?(t.push(a),t.push(n)):(0===s&&t.unshift(a),s===l-1&&t.push(n))}catch{break}e+=o-1;try{let o=e+s,r=i.getEndPositionOfChar(o),[n,a]=h(o,r);t.unshift(a),t.unshift(n)}catch{break}}t.length&&t.push(t[0].slice()),e.polygon=t}return e}function eR(t){let e=t.labelOptions,i=t.point,s=e[i.formatPrefix+"TextPath"]||e.textPath;s&&!e.useHTML&&(this.setTextPath(i.getDataLabelPath?.(this)||i.graphic,s),i.dataLabelPath&&!s.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy()))}let{parse:eF}=ee(),{noop:ez}=y(),{series:{prototype:eH},seriesTypes:{bubble:eW}}=w(),{initDataLabels:eX,initDataLabelsDefer:eG}={initDataLabels:function(){let t=this.options.dataLabels;if(!this.dataLabelsGroup){let e=this.initDataLabelsGroup(0,t);return!this.chart.styledMode&&t?.style&&e.css(t.style),e.attr({opacity:0}),this.visible&&(this.options.animation&&t?.animation?e.animate({opacity:1},t.animation):e.attr({opacity:1}),e.show()),e}return this.dataLabelsGroup.attr({opacity:1,...this.getPlotBox("data-labels")}),this.dataLabelsGroup},initDataLabelsDefer:function(){let t=this.options.dataLabels;if(t?.defer&&this.options.layoutAlgorithm?.enableSimulation){var e,i;e=()=>{this.deferDataLabels=!1},(i=t?eL(t.animation).defer:0)>0?setTimeout(e,i,void 0):e.call(0,void 0)}else this.deferDataLabels=!1}};({compose:function(t){E(t,"afterGetBBox",eB),E(t,"beforeAddingDataLabel",eR);let e=t.prototype;e.setTextPath||(e.setTextPath=eD)}}).compose(eN());class eY extends eW{constructor(){super(...arguments),this.parentNodeMass=0,this.deferDataLabels=!0}static compose(t,e,i){eW.compose(t,e,i),eo.compose(e),eC.compose(e)}accumulateAllPoints(){let t=this.chart,e=[];for(let i of t.series)if(i.is("packedbubble")&&i.reserveSpace()){let t=i.getColumn("value");for(let s=0;s<t.length;s++)e.push([null,null,t[s],i.index,s,{id:s,marker:{radius:0}}])}return e}addLayout(){let t=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=t.type||"packedbubble",i=this.chart.options.chart,s=this.chart.graphLayoutsStorage,o=this.chart.graphLayoutsLookup,r;s||(this.chart.graphLayoutsStorage=s={},this.chart.graphLayoutsLookup=o=[]),(r=s[e])||(t.enableSimulation=N(i.forExport)?!i.forExport:t.enableSimulation,s[e]=r=ne
1w eu[e],r.init(t),o.splice(r.index,0,r)),this.layout=r,this.points.forEach(t=>{t.mass=2,t.degree=1,t.collisionNmb=1}),r.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),r.addElementsToCollection([this],r.series),r.addElementsToCollection(this.points,r.nodes)}addSeriesLayout(){let t=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=t.type||"packedbubble",i=this.chart.graphLayoutsStorage,s=this.chart.graphLayoutsLookup,o=W(t,t.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),r=i[e+"-series"];r||(i[e+"-series"]=r=new eu[e],r.init(o),s.splice(r.index,0,r)),this.parentNodeLayout=r,this.createParentNodes()}calculateParentRadius(){let t=this.seriesBox();this.parentNodeRadius=C(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,t?Math.max(Math.sqrt(Math.pow(t.width,2)+Math.pow(t.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)}calculateZExtremes(){let t=this.chart.series,e=this.options.zMin,i=this.options.zMax,s=1/0,o=-1/0;return e&&i?[e,i]:(t.forEach(t=>{t.getColumn("value").forEach(t=>{N(t)&&(t>o&&(o=t),t<s&&(s=t))})}),[e=G(e,s),i=G(i,o)])}checkOverlap(t,e){let i=t[0]-e[0],s=t[1]-e[1];return Math.sqrt(i*i+s*s)-Math.abs(t[2]+e[2])<-.001}createParentNodes(){let t=this.pointClass,e=this.chart,i=this.parentNodeLayout,s=this.layout.options,o,r=this.parentNode,n={radius:this.parentNodeRadius,lineColor:this.color,fillColor:eF(this.color).brighten(.4).get()};s.parentNodeOptions&&(n=W(s.parentNodeOptions.marker||{},n)),this.parentNodeMass=0,this.points.forEach(t=>{this.parentNodeMass+=Math.PI*Math.pow(t.marker.radius,2)}),this.calculateParentRadius(),i.nodes.forEach(t=>{t.seriesIndex===this.index&&(o=!0)}),i.setArea(0,0,e.plotWidth,e.plotHeight),o||(r||(r=new t(this,{mass:this.parentNodeRadius/2,marker:n,dataLabels:{inside:!1},states:{normal:{marker:n},hover:{marker:n}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index}),this.chart.allParentNodes.push(r)),this.parentNode&&(r.plotX=this.parentNode.plotX,r.plotY=this.parentNode.plotY),this.parentNode=r,i.addElementsToCollection([this],i.series),i.addElementsToCollection([r],i.nodes))}deferLayout(){let t=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),t.splitSeries&&this.addSeriesLayout())}destroy(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(t=>{t.removeElementFromCollection(this,t.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),eH.destroy.apply(this,arguments)}drawDataLabels(){!this.deferDataLabels&&(eH.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",eH.drawDataLabels.call(this,[this.parentNode])))}drawGraph(){if(!this.layout||!this.layout.options.splitSeries)return;let t=this.chart,e=this.layout.options.parentNodeOptions.marker,i={fill:e.fillColor||eF(this.color).brighten(.4).get(),opacity:e.fillOpacity,stroke:e.lineColor||this.color,"stroke-width":G(e.lineWidth,this.options.lineWidth)},s={};this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,t.seriesGroup),this.group?.attr({zIndex:2}),this.calculateParentRadius(),this.parentNode&&N(this.parentNode.plotX)&&N(this.parentNode.plotY)&&N(this.parentNodeRadius)&&(s=W({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},i),this.parentNode.graphic||(this.graph=this.parentNode.graphic=t.renderer.symbol(i.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(s))}drawTracker(){let t,e=this.parentNode;super.drawTracker(),e&&(t=z(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach(t=>{(t.div||t.element).point=e}))}getPointRadius(){let t,e,i,s,o=this.chart,r=o.plotWidth,n=o.plotHeight,a=this.options,l=a.useSimulation,h=Math.min(r,n),d={},c=[],p=o.allDataPoints||[],u=p.length;["minSize","maxSize"].forEach(t=>{let e=parseInt(a[t],10),i=/%$/.test(a[t]);d[t]=i?h*e/100:e*Math.sqrt(u)}),o.minRadius=t=d.minSize/Math.sqrt(u),o.maxRadius=e=d.maxSize/Math.sqrt(u);let g=l?this.calculateZExtremes():[t,e];p.forEach((o,r)=>
vendor: 2,067 bytes, line 1
1{i=l?C(o[2],g[0],g[1]):o[2],0===(s=this.getRadius(g[0],g[1],t,e,i))&&(s=null),p[r][2]=s,c.push(s)}),this.radii=c}init(){return eH.init.apply(this,arguments),eG.call(this),this.eventsToUnbind.push(E(this,"updatedData",function(){this.chart.series.forEach(t=>{t.type===this.type&&(t.isDirty=!0)},this)})),this}onMouseUp(t){if(t.fixedPosition&&!t.removed){let e,i=this.layout,s=this.parentNodeLayout;!t.isParentNode&&s&&i.options.dragBetweenSeries&&s.nodes.forEach(s=>{t&&t.marker&&s!==t.series.parentNode&&(e=i.getDistXY(t,s),i.vectorLength(e)-s.marker.radius-t.marker.radius<0&&(s.series.addPoint(W(t.options,{plotX:t.plotX,plotY:t.plotY}),!1),i.removeElementFromCollection(t,i.nodes),t.remove()))}),eo.onMouseUp.apply(this,arguments)}}placeBubbles(t){let e=this.checkOverlap,i=this.positionBubble,s=[],o=1,r=0,n=0,a,l=[],h,d=t.sort((t,e)=>e[2]-t[2]);if(d.length){if(s.push([[0,0,d[0][2],d[0][3],d[0][4]]]),d.length>1)for(s.push([[0,0-d[1][2]-d[0][2],d[1][2],d[1][3],d[1][4]]]),h=2;h<d.length;h++)d[h][2]=d[h][2]||1,e(a=i(s[o][r],s[o-1][n],d[h]),s[o][0])?(s.push([]),n=0,s[o+1].push(i(s[o][r],s[o][0],d[h])),o++,r=0):o>1&&s[o-1][n+1]&&e(a,s[o-1][n+1])?(n++,s[o].push(i(s[o][r],s[o-1][n],d[h])),r++):(r++,s[o].push(a));this.chart.stages=s,this.chart.rawPositions=[].concat.apply([],s),this.resizeRadius(),l=this.chart.rawPositions}return l}pointAttribs(t,e){let i=this.options,s=t&&t.isParentNode,o=i.marker;s&&i.layoutAlgorithm&&i.layoutAlgorithm.parentNodeOptions&&(o=i.layoutAlgorithm.parentNodeOptions.marker);let r=o.fillOpacity,n=eH.pointAttribs.call(this,t,e);return 1!==r&&(n["fill-opacity"]=r),n}positionBubble(t,e,i){let s=Math.asin,o=Math.acos,r=Math.pow,n=Math.abs,a=(0,Math.sqrt)(r(t[0]-e[0],2)+r(t[1]-e[1],2)),l=o((r(a,2)+r(i[2]+e[2],2)-r(i[2]+t[2],2))/(2*(i[2]+e[2])*a)),h=s(n(t[0]-e[0])/a),d=(t[1]-e[1]<0?0:Math.PI)+l+h*((t[0]-e[0])*(t[1]-e[1])<0?1:-1),c=Math.cos(d),p=Math.sin(d);return[e[0]+(e[2]+i[2])*p,e[1]-(e[2]+i[2])*c,i[2],i[3],i[4]]}render(){let t=[];eH.render.apply(this,arguments),!this.options.dataLabels.allowOverlap&&(this.data.forEach(e=>
1{z(e.dataLabels)&&e.dataLabels.forEach(e=>{t.push(e)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(t))}resizeRadius(){let t,e,i,s,o,r=this.chart,n=r.rawPositions,a=Math.min,l=Math.max,h=r.plotLeft,d=r.plotTop,c=r.plotHeight,p=r.plotWidth;for(let r of(t=i=1/0,e=s=-1/0,n))o=r[2],t=a(t,r[0]-o),e=l(e,r[0]+o),i=a(i,r[1]-o),s=l(s,r[1]+o);let u=[e-t,s-i],g=[(p-h)/u[0],(c-d)/u[1]],f=a.apply([],g);if(Math.abs(f-1)>1e-10){for(let t of n)t[2]*=f;this.placeBubbles(n)}else r.diffY=c/2+d-i-(s-i)/2,r.diffX=p/2+h-t-(e-t)/2}seriesBox(){let t,e=this.chart,i=this.data,s=Math.max,o=Math.min,r=[e.plotLeft,e.plotLeft+e.plotWidth,e.plotTop,e.plotTop+e.plotHeight];return i.forEach(e=>{N(e.plotX)&&N(e.plotY)&&e.marker.radius&&(t=e.marker.radius,r[0]=o(r[0],e.plotX-t),r[1]=s(r[1],e.plotX+t),r[2]=o(r[2],e.plotY-t),r[3]=s(r[3],e.plotY+t))}),F(r.width/r.height)?r:null}setVisible(){let t=this;eH.setVisible.apply(t,arguments),t.parentNodeLayout&&t.graph?t.visible?(t.graph.show(),t.parentNode.dataLabel&&t.parentNode.dataLabel.show()):(t.graph.hide(),t.parentNodeLayout.removeElementFromCollection(t.parentNode,t.parentNodeLayout.nodes),t.parentNode.dataLabel&&t.parentNode.dataLabel.hide()):t.layout&&(t.visible?t.layout.addElementsToCollection(t.points,t.layout.nodes):t.points.forEach(e=>{t.layout.removeElementFromCollection(e,t.layout.nodes)}))}translate(){let t,e,i,s=this.chart,o=this.data,r=this.index,n=this.options.useSimulation;for(let a of(this.generatePoints(),N(s.allDataPoints)||(s.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),n?i=s.allDataPoints:(i=this.placeBubbles(s.allDataPoints),this.options.draggable=!1),i))a[3]===r&&(t=o[a[4]],e=G(a[2],void 0),n||(t.plotX=a[0]-s.plotLeft+s.diffX,t.plotY=a[1]-s.plotTop+s.diffY),F(e)&&(t.marker=I(t.marker,{radius:e,width:2*e,height:2*e}),t.radius=e));n&&this.deferLayout(),D(this,"afterTranslate")}}eY.defaultOptions=W(eW.defaultOptions,{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){let{numberFormatter:t}=this.series.chart,{value:e}=this.point;return F(e)?t(e,-1):""},parentNodeFormatter:function(){return this.name||""},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981},stickyTracking:!1}),I(eY.prototype,{pointClass:ex,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],initDataLabels:eX,alignDataLabel:eH.alignDataLabel,indexateNodes:ez,onMouseDown:eo.onMouseDown,onMouseMove:eo.onMouseMove,redrawHalo:eo.redrawHalo,searchPoint:ez}),w().registerSeriesType("packedbubble",eY);let{noop:eV}=y(),{area:ej,line:eU,scatter:e_}=w().seriesTypes;class eq extends e_{getGraphPath(){let t=eU.prototype.getGraphPath.call(this),e=t.length+1;for(;e--;)(e===t.length||"M"===t[e][0])&&e>0&&t.splice(e,0,["Z"]);return this.areaPath=t,t}drawGraph(){this.options.fillColor=this.color,ej.prototype.drawGraph.call(this)}}eq.defaultOptions=W(e_.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0,legendSymbol:"rectangle"}),I(eq.prototype,{type:"polygon",drawTracker:eU.prototype.drawTracker,setStackedPoints:eV}),w().registerSeriesType("polygon",eq);let{defaultOptions:eK}=y(),{noop:e$}=y(),eZ={radius:0,scope:"stack",where:void 0},eJ=e$,eQ=e$;function e0(t,e,i,s,o={}){let r=eJ(t,e,i,s,o),{brStart:n=!0,brEnd:a=!0,innerR:l=0,r:h=i,start:d=0,end:c=0}=o;if(o.open||!o.borderRadius)return r;let p=c-d,u=Math.sin(p/2),g=Math.max(Math.min(j(o.borderRadius||0,h-l),(h-l)/2,h*u/(1+u)),0),f=Math.min(g,p/Math.PI*2*l),m=r.length-1;for(;m--;
1)(n||0!==m&&3!==m)&&(a||1!==m&&2!==m)&&function(t,e,i){let s,o,r,n=t[e],a=t[e+1];if("Z"===a[0]&&(a=t[0]),("M"===n[0]||"L"===n[0])&&"A"===a[0]?(s=n,o=a,r=!0):"A"===n[0]&&("M"===a[0]||"L"===a[0])&&(s=a,o=n),s&&o&&o.params){let n=o[1],a=o[5],l=o.params,{start:h,end:d,cx:c,cy:p}=l,u=a?n-i:n+i,g=u?Math.asin(i/u):0,f=a?g:-g,m=Math.cos(g)*u;r?(l.start=h+f,s[1]=c+m*Math.cos(h),s[2]=p+m*Math.sin(h),t.splice(e+1,0,["A",i,i,0,0,1,c+n*Math.cos(l.start),p+n*Math.sin(l.start)])):(l.end=d-f,o[6]=c+n*Math.cos(l.end),o[7]=p+n*Math.sin(l.end),t.splice(e+1,0,["A",i,i,0,0,1,c+m*Math.cos(d),p+m*Math.sin(d)])),o[4]=Math.abs(l.end-l.start)<Math.PI?0:1}}(r,m,m>1?f:g);return r}function e1(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:t,yAxis:e}=this,i="percent"===t.stacking,s=eK.plotOptions?.[this.type]?.borderRadius,o=e2(t.borderRadius,H(s)?s:{}),r=e.options.reversed;for(let s of this.points){let{shapeArgs:n}=s;if("roundedRect"===s.shapeType&&n){let{width:a=0,height:l=0,y:h=0}=n,d=h,c=l;if("stack"===o.scope&&s.stackTotal){let o=e.translate(i?100:s.stackTotal,!1,!0,!1,!0),r=e.translate(t.threshold||0,!1,!0,!1,!0),n=this.crispCol(0,Math.min(o,r),0,Math.abs(o-r));d=n.y,c=n.height}let p=(s.negative?-1:1)*(r?-1:1)==-1,u=o.where;!u&&this.is("waterfall")&&Math.abs((s.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(u="all"),u||(u="end");let g=Math.min(j(o.radius,a),a/2,"all"===u?c/2:1/0)||0;"end"===u&&(p&&(d-=g),c+=g),I(n,{brBoxHeight:c,brBoxY:d,r:g})}}}}function e2(t,e){return H(t)||(t={radius:t||0}),W(eZ,e,t)}function e5(){let t=e2(this.options.borderRadius);for(let e of this.points){let i=e.shapeArgs;i&&(i.borderRadius=j(t.radius,(i.r||0)-(i.innerR||0)))}}function e3(t,e,i,s,o={}){let r=eQ(t,e,i,s,o),{r:n=0,brBoxHeight:a=s,brBoxY:l=e}=o,h=e-l,d=l+a-(e+s),c=h-n>-.1?0:n,p=d-n>-.1?0:n,u=Math.max(c&&h,0),g=Math.max(p&&d,0),f=[t+c,e],m=[t+i-c,e],x=[t+i,e+c],b=[t+i,e+s-p],y=[t+i-p,e+s],v=[t+p,e+s],w=[t,e+s-p],M=[t,e+c],k=(t,e)=>Math.sqrt(Math.pow(t,2)-Math.pow(e,2));if(u){let t=k(c,c-u);f[0]-=t,m[0]+=t,x[1]=M[1]=e+c-u}if(s<c-u){let o=k(c,c-u-s);x[0]=b[0]=t+i-c+o,y[0]=Math.min(x[0],y[0]),v[0]=Math.max(b[0],v[0]),w[0]=M[0]=t+c-o,x[1]=M[1]=e+s}if(g){let t=k(p,p-g);y[0]+=t,v[0]-=t,b[1]=w[1]=e+s-p+g}if(s<p-g){let o=k(p,p-g-s);x[0]=b[0]=t+i-p+o,m[0]=Math.min(x[0],m[0]),f[0]=Math.max(b[0],f[0]),w[0]=M[0]=t+p-o,b[1]=w[1]=e}return r.length=0,r.push(["M",...f],["L",...m],["A",c,c,0,0,1,...x],["L",...b],["A",p,p,0,0,1,...y],["L",...v],["A",p,p,0,0,1,...w],["L",...M],["A",c,c,0,0,1,...f],["Z"]),r}let e6={circular:{gridLineWidth:1,labels:{align:void 0,x:0,y:void 0},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},radial:{gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",padding:5,x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},radialGauge:{endOnTick:!1,gridLineWidth:0,labels:{align:"center",distance:-25,x:0,y:void 0},lineWidth:1,minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickPosition:"inside",tickWidth:2,title:{rotation:0,text:""},zIndex:2}},{defaultOptions:e4}=y(),{composed:e9,noop:e8}=y();!function(t){function e(){this.autoConnect=this.isCircular&&void 0===G(this.userMax,this.options.max)&&L(this.endAngleRad-this.startAngleRad)===L(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function i(){return()=>{if(this.isRadial&&this.tickPositions&&this.options.labels&&!0!==this.options.labels.allowOverlap)return this.tickPositions.map(t=>this.ticks[t]?.label).filter(t=>!!t)}}function s(){return e8}function o(t,e,i){let s=this.pane.center,o=t.value,r,n,a;return this.isCircular?(N(o)?t.point&&(t.point.shapeArgs||{}).start&&(o=this.chart.inverted?this.translate(t.point.rectPlotY,!0):t.point.x):(n=t.chartX||0,a=t.chartY||0,o=this.translate(Math.atan2(a-i,n-e)-this.startAngleRad,!0)),n=(r=this.getPosition(o)).x,a=r.y):(N(o)||(n=t.chartX,a=t.chartY),N(n)&&N(a)&&(i=s[1]+this.chart.plotTop,o=this.translate(Math.min(Math.sqrt(Math.pow(n-e,2)+Math.pow(a-i,2)),s[2]/2)-s[3]/2,!0))),[o,n||0,a||0]}function r(t,e,i){let s=this.pane.center,o=this.chart,r=this.left||0,n=this.top||0,a,l=G(e,s[2]/2-this.offset),h;return void 0===i&&(i=this.horiz?0:this.center&&-this.center[3]/2),i&&(l+=i),this.isCircular||void 0!==e?((h=this.chart.renderer.symbols.arc(r+s[0],n+s[1],l,l,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[r+s[0]],h.yBounds=[n+s[1]-l]):(a=this.postTranslate(this.angleRad,l),h=[["M",this.center[0]+o.plotLeft,this.center[1]+o.plotTop],["L",a.x,a.y]]),h}function n(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function a(t,e,i){let s=this.chart,o=t=>{if("string"==typeof t){let e=parseInt(t,10);return p.test(t)&&(e=e*l/100),e}return t},r=this.center,n=this.startAngleRad,a=i.borderRadius,l=r[2]/2,h=Math.min(this.offset,0),d=this.left||0,c=this.top||0,p=/%$/,u=this.isCircular,g=this.options.plotBands||[],f=g.indexOf(i),m,x,b,y,v,w,M=G(o(i.outerRadius),l),k=o(i.innerRadius),A=G(o(i.thickness),10),P=!0,E=!0;if(a&&f>-1&&(g[f-1]&&g[f-1].to===t&&(P=!1),g[f+1]&&g[f+1].from===e&&(E=!1)),"polygon"===this.options.gridLineInterpolation)w=this.getPlotLinePath({value:t}).concat(this.getPlotLinePath({value:e,reverse:!0}));else{t=Math.max(t,this.min),e=Math.min(e,this.max);let o=this.translate(t),l=this.translate(e);u||(M=o||0,k=l||0),"circle"!==i.shape&&u?(m=n+(o||0),x=n+(l||0)):(m=-Math.PI/2,x=1.5*Math.PI,v=!0),M-=h,A-=h,w=s.renderer.symbols.arc(d+r[0],c+r[1],M,M,{start:Math.min(m,x),end:Math.max(m,x),innerR:G(k,M-A),open:v,borderRadius:a,brStart:P,brEnd:E}),u&&(b=(x+m)/2,y=d+r[0]+r[2]/2*Math.cos(b),w.xBounds=b>-Math.PI/2&&b<Math.PI/2?[y,s.plotWidth]:[0,y],w.yBounds=[c+r[1]+r[2]/2*Math.sin(b)],w.yBounds[0]+=b>-Math.PI&&b<0||b>Math.PI?-10:10)}return w}function l(t){let e=this.pane.center,i=this.chart,s=i.inverted,o=t.reverse,r=this.pane.options.background,n=r?U(r)[0]:{},a=n.innerRadius||"0%",l=n.outerRadius||"100%",h=e[0]+i.plotLeft,d=e[1]+i.plotTop,c=this.height,p=t.isCrosshair,u=e[3]/2,g=t.value,f,m,x,b,
1y,v,w,M,k,A=this.getPosition(g),P=A.x,E=A.y;if(p&&(g=(M=this.getCrosshairPosition(t,h,d))[0],P=M[1],E=M[2]),this.isCircular)m=Math.sqrt(Math.pow(P-h,2)+Math.pow(E-d,2)),x="string"==typeof a?j(a,1):a/m,b="string"==typeof l?j(l,1):l/m,e&&u&&(x<(f=u/m)&&(x=f),b<f&&(b=f)),k=[["M",h+x*(P-h),d-x*(d-E)],["L",P-(1-b)*(P-h),E+(1-b)*(d-E)]];else if((g=this.translate(g))&&(g<0||g>c)&&(g=0),"circle"===this.options.gridLineInterpolation)k=this.getLinePath(0,g,u);else if(k=[],i[s?"yAxis":"xAxis"].forEach(t=>{t.pane===this.pane&&(y=t)}),y){w=y.tickPositions,y.autoConnect&&(w=w.concat([w[0]])),o&&(w=w.slice().reverse()),g&&(g+=u);for(let t=0;t<w.length;t++)v=y.getPosition(w[t],g),k.push(t?["L",v.x,v.y]:["M",v.x,v.y])}return k}function h(t,e){let i=this.translate(t);return this.postTranslate(this.isCircular?i:this.angleRad,G(this.isCircular?e:i<0?0:i,this.center[2]/2)-this.offset)}function d(){let t=this.center,e=this.chart,i=this.options.title;return{x:e.plotLeft+t[0]+(i.x||0),y:e.plotTop+t[1]-({high:.5,middle:.25,low:0})[i.align]*t[2]+(i.y||0)}}function c(t){t.beforeSetTickPositions=e,t.createLabelCollector=i,t.getCrosshairPosition=o,t.getLinePath=r,t.getOffset=n,t.getPlotBandPath=a,t.getPlotLinePath=l,t.getPosition=h,t.getTitlePosition=d,t.postTranslate=w,t.setAxisSize=k,t.setAxisTranslation=A,t.setOptions=P}function p(){let t=this.chart,e=this.options,i=t.angular&&this.isXAxis,s=this.pane,o=s?.options;if(!i&&s&&(t.angular||t.polar)){let t=2*Math.PI,i=(G(o.startAngle,0)-90)*Math.PI/180,s=(G(o.endAngle,G(o.startAngle,0)+360)-90)*Math.PI/180;this.angleRad=(e.angle||0)*Math.PI/180,this.startAngleRad=i,this.endAngleRad=s,this.offset=e.offset||0;let r=(i%t+t)%t,n=(s%t+t)%t;r>Math.PI&&(r-=t),n>Math.PI&&(n-=t),this.normalizedStartAngleRad=r,this.normalizedEndAngleRad=n}}function u(t){this.isRadial&&(t.align=void 0,t.preventDefault())}function g(){if(this.chart?.labelCollectors){let t=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;t>=0&&this.chart.labelCollectors.splice(t,1)}}function f(t){let e,i=this.chart,o=i.angular,r=i.polar,n=this.isXAxis,a=this.coll,l=t.userOptions.pane||0,h=this.pane=i.pane&&i.pane[l];if("colorAxis"===a){this.isRadial=!1;return}o?(o&&n?(this.isHidden=!0,this.createLabelCollector=s,this.getOffset=e8,this.redraw=M,this.render=M,this.setScale=e8,this.setCategories=e8,this.setTitle=e8):c(this),e=!n):r&&(c(this),e=this.horiz),o||r?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&i.labelCollectors.push(this.labelCollector)):this.isRadial=!1,h&&e&&(h.axis=this),this.isCircular=e}function m(){this.isRadial&&this.beforeSetTickPositions()}function x(t){let e=this.label;if(!e)return;let i=this.axis,s=e.getBBox(),o=i.options.labels,r=(i.translate(this.pos)+i.startAngleRad+Math.PI/2)/Math.PI*180%360,n=Math.round(r),a=N(o.y)?0:-(.3*s.height),l=o.y,h,d=20,c=o.align,p="end",u=n<0?n+360:n,g=u,f=0,m=0;i.isRadial&&(h=i.getPosition(this.pos,i.center[2]/2+j(G(o.distance,-25),i.center[2]/2,-i.center[2]/2)),"auto"===o.rotation?e.attr({rotation:r}):N(l)||(l=i.chart.renderer.fontMetrics(e).b-s.height/2),N(c)||(i.isCircular?(s.width>i.len*i.tickInterval/(i.max-i.min)&&(d=0),c=r>d&&r<180-d?"left":r>180+d&&r<360-d?"right":"center"):c="center",e.attr({align:c})),"auto"===c&&2===i.tickPositions.length&&i.isCircular&&(u>90&&u<180?u=180-u:u>270&&u<=360&&(u=540-u),g>180&&g<=360&&(g=360-g),(i.pane.options.startAngle===n||i.pane.options.startAngle===n+360||i.pane.options.startAngle===n-360)&&(p="start"),c=n>=-90&&n<=90||n>=-360&&n<=-270||n>=270&&n<=360?"start"===p?"right":"left":"start"===p?"left":"right",g>70&&g<110&&(c="center"),u<15||u>=180&&u<195?f=.3*s.height:u>=15&&u<=35?f="start"===p?0:.75*s.height:u>=195&&u<=215?f="start"===p?.75*s.height:0:u>35&&u<=90?f="start"===p?-(.25*s.height):s.height:u>215&&u<=270&&(f="start"===p?s.height:-(.25*s.height)),g<15?m="start"===p?-(.15*s.height):.15*s.height:g>165&&g<=180&&(m="start"===p?.15*s.height:-(.15*s.height)),e.attr({align:c}),e.translate(m,f+a)),t.pos.x=h.x+(o.x||0),t.pos.y=h.y+(l||0))}function b(t){this.axis.getPosition&&I(t.pos,this.axis.getPosition(this.pos))}function v({options:e}){e.xAxis&&W(!0,t.radialDefaultOptions.circular,e.xAxis),e.yAxis&&W(!0,t.radialDefaultOptions.radialGauge,e.yAxis)}function w(t,e){let i=this.chart,s=this.center;return t=this.startAngleRad+t,{x:i.plotLeft+s[0]+Math.cos(t)*e,y:i.plotTop+s[1]+Math.sin(t)*e}}function M(){this.isDirty=!1}function k(){let t,e;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),t=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(e=this.postTranslate(this.angleRad,t[3]/2),t[0]=e.x-this.chart.plotLeft,t[1]=e.y-this.chart.plotTop),this.len=this.width=this.height=(t[2]-t[3])*G(this.sector,1)/2)}function A(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}
1function P(e){let{coll:i}=this,{angular:s,inverted:o,polar:r}=this.chart,n={};s?this.isXAxis||(n=W(e4.yAxis,t.radialDefaultOptions.radialGauge)):r&&(n=this.horiz?W(e4.xAxis,t.radialDefaultOptions.circular):W("xAxis"===i?e4.xAxis:e4.yAxis,t.radialDefaultOptions.radial)),o&&"yAxis"===i&&(n.stackLabels=H(e4.yAxis,!0)?e4.yAxis.stackLabels:{},n.reversedStacks=!0);let a=this.options=W(n,e);a.plotBands||(a.plotBands=[]),D(this,"afterSetOptions")}function S(t,e,i,s,o,r,n){let a,l=this.axis;return l.isRadial?["M",e,i,"L",(a=l.getPosition(this.pos,l.center[2]/2+s)).x,a.y]:t.call(this,e,i,s,o,r,n)}t.radialDefaultOptions=W(e6),t.compose=function(t,e){return V(e9,"Axis.Radial")&&(E(t,"afterInit",p),E(t,"autoLabelAlign",u),E(t,"destroy",g),E(t,"init",f),E(t,"initialAxisTranslation",m),E(e,"afterGetLabelPosition",x),E(e,"afterGetPosition",b),E(y(),"setOptions",v),_(e.prototype,"getMarkPath",S)),t}}(p||(p={}));let e7=p,{animObject:it}=y(),{optionsToObject:ie}={compose:function(t,e,i){let s=t.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){let o=i.prototype.symbols;E(t,"afterColumnTranslate",e1,{order:9}),E(s,"afterTranslate",e5),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),eJ=o.arc,eQ=o.roundedRect,o.arc=e0,o.roundedRect=e3}},optionsToObject:e2},{defaultOptions:ii}=y(),{composed:is}=y();function io(){(this.pane||[]).forEach(t=>{t.render()})}function ir(t){let e=t.args[0].xAxis,i=t.args[0].yAxis,s=t.args[0].chart;e&&i&&("polygon"===i.gridLineInterpolation?(e.startOnTick=!0,e.endOnTick=!0):"polygon"===e.gridLineInterpolation&&s.inverted&&(i.startOnTick=!0,i.endOnTick=!0))}function ia(){this.pane||(this.pane=[]),this.options.pane=U(this.options.pane||{}),U(this.userOptions.pane||{}).forEach(t=>{new tr(t,this)},this)}function il(t){let e=t.args.marker,i=this.chart.xAxis[0],s=this.chart.yAxis[0],o=this.chart.inverted,r=o?s:i,n=o?i:s;if(this.chart.polar){t.preventDefault();let i=(e.attr?e.attr("start"):e.start)-r.startAngleRad,s=e.attr?e.attr("r"):e.r,o=(e.attr?e.attr("end"):e.end)-r.startAngleRad,a=e.attr?e.attr("innerR"):e.innerR;t.result.x=i+r.pos,t.result.width=o-i,t.result.y=n.len+n.pos-s,t.result.height=s-a}}function ih(t){let e=this.chart;if(e.polar&&e.hoverPane&&e.hoverPane.axis){t.preventDefault();let i=e.hoverPane.center,s=e.mouseDownX||0,o=e.mouseDownY||0,r=t.args.chartY,n=t.args.chartX,a=2*Math.PI,l=e.hoverPane.axis.startAngleRad,h=e.hoverPane.axis.endAngleRad,d=e.inverted?e.xAxis[0]:e.yAxis[0],c={},p="arc";if(c.x=i[0]+e.plotLeft,c.y=i[1]+e.plotTop,this.zoomHor){let t=l>0?h-l:Math.abs(l)+Math.abs(h),u=Math.atan2(o-e.plotTop-i[1],s-e.plotLeft-i[0])-l,g=Math.atan2(r-e.plotTop-i[1],n-e.plotLeft-i[0])-l;c.r=i[2]/2,c.innerR=i[3]/2,u<=0&&(u+=a),g<=0&&(g+=a),g<u&&(g=[u,u=g][0]),t<a&&l+g>h+(a-t)/2&&(g=u,u=l<=0?l:0);let f=c.start=Math.max(u+l,l),m=c.end=Math.min(g+l,h);if("polygon"===d.options.gridLineInterpolation){let t=e.hoverPane.axis,s=f-t.startAngleRad+t.pos,o=d.getPlotLinePath({value:d.max}),r=t.toValue(s),n=t.toValue(s+(m-f));if(r<t.getExtremes().min){let{min:e,max:i}=t.getExtremes();r=i-(e-r)}if(n<t.getExtremes().min){let{min:e,max:i}=t.getExtremes();n=i-(e-n)}n<r&&(n=[r,r=n][0]),(o=ig(o,r,n,t)).push(["L",i[0]+e.plotLeft,e.plotTop+i[1]]),c.d=o,p="path"}}if(this.zoomVert){let t=e.inverted?e.xAxis[0]:e.yAxis[0],a=Math.sqrt(Math.pow(s-e.plotLeft-i[0],2)+Math.pow(o-e.plotTop-i[1],2)),d=Math.sqrt(Math.pow(n-e.plotLeft-i[0],2)+Math.pow(r-e.plotTop-i[1],2));if(d<a&&(a=[d,d=a][0]),d>i[2]/2&&(d=i[2]/2),a<i[3]/2&&(a=i[3]/2),this.zoomHor||(c.start=l,c.end=h),c.r=d,c.innerR=a,"polygon"===t.options.gridLineInterpolation){let e=t.toValue(t.len+t.pos-a),i=t.toValue(t.len+t.pos-d);c.d=t.getPlotLinePath({value:i}).concat(t.getPlotLinePath({value:e,reverse:!0})),p="path"}}if(this.zoomHor&&this.zoomVert&&"polygon"===d.options.gridLineInterpolation){let t=e.hoverPane.axis,i=c.start||0,s=c.end||0,o=i-t.startAngleRad+t.pos,r=t.toValue(o),n=t.toValue(o+(s-i));if(c.d instanceof Array){let t=c.d.slice(0,c.d.length/2),i=c.d.slice(c.d.length/2,c.d.length);i=[...i].reverse();let s=e.hoverPane.axis;t=ig(t,r,n,s),(i=ig(i,r,n,s))&&(i[0][0]="L"),i=[...i].reverse(),c.d=t.concat(i),p="path"}}t.attrs=c,t.shapeType=p}}function id(){let t=this.chart;t.polar&&(this.polar=new iP(this),t.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function ic(){let{chart:t,options:e,yAxis:i}=this;if(e.borderRadius&&t.polar&&t.inverted){let t=ii.plotOptions?.[this.type]?.borderRadius,{scope:s,where:o="end"}=ie(e.borderRadius,H(t)?t:{});for(let t of this.points){let{shapeArgs:r}=t;if("arc"===t.shapeType&&r){let n="all"===o,a=!0;e.stacking&&"stack"===s&&(n=t.stackY===t.y&&"all"===o,a=t.stackY===t.stackTotal),i.reversed&&([n,a]=[a,n]),r.brStart=n,r.brEnd=a}}}}function ip(){if(this.chart.polar&&this.xAxis){let{xAxis:t,yAxis:e}=this,i=this.chart;
1this.kdByAngle=i.tooltip&&i.tooltip.shared,this.kdByAngle||i.inverted?this.searchPoint=iu:this.options.findNearestPointBy="xy";let s=this.points,o=s.length;for(;o--;)this.is("column")||this.is("columnrange")||this.polar.toXY(s[o]),i.hasParallelCoordinates||this.yAxis.reversed||(G(s[o].y,5e-324)<e.min||s[o].x<t.min||s[o].x>t.max?(s[o].isNull=!0,s[o].plotY=NaN):s[o].isNull=s[o].isValid&&!s[o].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(E(this,"afterRender",function(){let t;if(i.polar&&!1!==this.options.clip){if(t=this.yAxis.pane.center,this.clipCircle)this.clipCircle.animate({x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2});else{var e,s,o,r,n;let a,l,h;this.clipCircle=(e=i.renderer,s=t[0],o=t[1],r=t[2]/2,n=t[3]/2,a=(0,b.uniqueKey)(),l=e.createElement("clipPath").attr({id:a}).add(e.defs),(h=n?e.arc(s,o,r,n,0,2*Math.PI).add(l):e.circle(s,o,r).add(l)).id=a,h.clipPath=l,h)}this.group.clip(this.clipCircle),this.setClip=y().noop}})))}}function iu(t){let e=this.chart,i=this.xAxis,s=this.yAxis,o=i.pane&&i.pane.center,r=t.chartX-(o&&o[0]||0)-e.plotLeft,n=t.chartY-(o&&o[1]||0)-e.plotTop,a=e.inverted?{clientX:t.chartX-s.pos,plotY:t.chartY-i.pos}:{clientX:180+-180/Math.PI*Math.atan2(r,n)};return this.searchKDTree(a)}function ig(t,e,i,s){let o=s.tickInterval,r=s.tickPositions,n=B(r,t=>t>=i),a=B([...r].reverse(),t=>t<=e);return N(n)||(n=r[r.length-1]),N(a)||(a=r[0],n+=o,t[0][0]="L",t.unshift(t[t.length-3])),(t=t.slice(r.indexOf(a),r.indexOf(n)+1))[0][0]="M",t}function im(t,e){return B(this.pane||[],t=>t.options.id===e)||t.call(this,e)}function ix(t,e,i,s,o,r){let n,a,l,h=this.chart,d=G(s.inside,!!this.options.stacking);if(h.polar){if(n=e.rectPlotX/Math.PI*180,h.inverted)this.forceDL=h.isInsidePlot(e.plotX,e.plotY),d&&e.shapeArgs?(a=e.shapeArgs,o=W(o,{x:(l=this.yAxis.postTranslate(((a.start||0)+(a.end||0))/2-this.xAxis.startAngleRad,e.barX+(e.pointWidth||0)/2)).x-h.plotLeft,y:l.y-h.plotTop})):e.tooltipPos&&(o=W(o,{x:e.tooltipPos[0],y:e.tooltipPos[1]})),s.align=G(s.align,"center"),s.verticalAlign=G(s.verticalAlign,"middle");else{var c;null===(c=s).align&&(c.align=n>20&&n<160?"left":n>200&&n<340?"right":"center"),null===c.verticalAlign&&(c.verticalAlign=n<45||n>315?"bottom":n>135&&n<225?"top":"middle"),s=c}k().prototype.alignDataLabel.call(this,e,i,s,o,r),this.isRadialBar&&e.shapeArgs&&e.shapeArgs.start===e.shapeArgs.end?i.hide():i.show()}else t.call(this,e,i,s,o,r)}function ib(){let t=this.options,e=t.stacking,i=this.chart,s=this.xAxis,o=this.yAxis,r=o.reversed,n=o.center,a=s.startAngleRad,l=s.endAngleRad-a,h=t.threshold,d=0,c,p,u,g,f,m=0,x=0,b,y,v,w,M,k,A,P;if(s.isRadial)for(u=(c=this.points).length,g=o.translate(o.min),f=o.translate(o.max),h=t.threshold||0,i.inverted&&F(h)&&N(d=o.translate(h))&&(d<0?d=0:d>l&&(d=l),this.translatedThreshold=d+a);u--;){if(k=(p=c[u]).barX,y=p.x,v=p.y,p.shapeType="arc",i.inverted){p.plotY=o.translate(v),e&&o.stacking?(M=o.stacking.stacks[(v<0?"-":"")+this.stackKey],this.visible&&M&&M[y]&&!p.isNull&&(w=M[y].points[this.getStackIndicator(void 0,y,this.index).key],m=o.translate(w[0]),x=o.translate(w[1]),N(m)&&(m=C(m,0,l)))):(m=d,x=p.plotY),m>x&&(x=[m,m=x][0]),r?x>g?x=g:m<f?m=f:(m>g||x<f)&&(m=x=l):m<g?m=g:x>f?x=f:(x<g||m>f)&&(m=x=0),o.min>o.max&&(m=x=r?l:0),m+=a,x+=a,n&&(p.barX=k+=n[3]/2),A=Math.max(k,0),P=Math.max(k+(p.pointWidth||0),0);let i=t.borderRadius,s=j(("object"==typeof i?i.radius:i)||0,P-A);p.shapeArgs={x:n[0],y:n[1],r:P,innerR:A,start:m,end:x,borderRadius:s},p.opacity=m===x?0:void 0,p.plotY=(N(this.translatedThreshold)&&(m<this.translatedThreshold?m:x))-a}else m=k+a,p.shapeArgs=this.polar.arc(p.yBottom,p.plotY,m,m+(p.pointWidth||0)),p.shapeArgs.borderRadius=0;this.polar.toXY(p),i.inverted?(b=o.postTranslate(p.rectPlotY,k+(p.pointWidth||0)/2),p.tooltipPos=[b.x-i.plotLeft,b.y-i.plotTop]):p.tooltipPos=[p.plotX,p.plotY],n&&(p.ttBelow=p.plotY>n[1])}}function iy(t,e){let i,s,o=this;if(this.chart.polar){e=e||this.points;for(let t=0;t<e.length;t++)if(!e[t].isNull){i=t;break}!1!==this.options.connectEnds&&void 0!==i&&(this.connectEnds=!0,e.splice(e.length,0,e[i]),s=!0),e.forEach(t=>{void 0===t.polarPlotY&&o.polar.toXY(t)})}
vendor: 1,716 bytes, line 1
1let r=t.apply(this,[].slice.call(arguments,1));return s&&e.pop(),r}function iv(t,e){let i=this.chart,s={xAxis:[],yAxis:[]};return i.polar?i.axes.forEach(t=>{if("colorAxis"===t.coll)return;let o=t.isXAxis,r=t.center,n=e.chartX-r[0]-i.plotLeft,a=e.chartY-r[1]-i.plotTop;s[o?"xAxis":"yAxis"].push({axis:t,value:t.translate(o?Math.PI-Math.atan2(n,a):Math.sqrt(Math.pow(n,2)+Math.pow(a,2)),!0)})}):s=t.call(this,e),s}function iw(t,e){this.chart.polar||t.call(this,e)}function iM(t,e){let i=this,s=this.chart,o=this.group,r=this.markerGroup,n=this.xAxis&&this.xAxis.center,a=s.plotLeft,l=s.plotTop,h=this.options.animation,d,c,p,u,g,f;s.polar?i.isRadialBar?e||(i.startAngleRad=G(i.translatedThreshold,i.xAxis.startAngleRad),y().seriesTypes.pie.prototype.animate.call(i,e)):(h=it(h),i.is("column")?e||(c=n[3]/2,i.points.forEach(t=>{p=t.graphic,g=(u=t.shapeArgs)&&u.r,f=u&&u.innerR,p&&u&&(p.attr({r:c,innerR:c}),p.animate({r:g,innerR:f},i.options.animation))})):e?(d={translateX:n[0]+a,translateY:n[1]+l,scaleX:.001,scaleY:.001},o.attr(d),r&&r.attr(d)):(d={translateX:a,translateY:l,scaleX:1,scaleY:1},o.animate(d,h),r&&r.animate(d,h))):t.call(this,e)}function ik(t,e,i,s){let o,r;if(this.chart.polar)if(s){let t=(r=function t(e,i,s,o){let r,n,a,l,h,d,c=+!!o,p=(r=i>=0&&i<=e.length-1?i:i<0?e.length-1+i:0)-1<0?e.length-(1+c):r-1,u=r+1>e.length-1?c:r+1,g=e[p],f=e[u],m=g.plotX,x=g.plotY,b=f.plotX,y=f.plotY,v=e[r].plotX,w=e[r].plotY;n=(1.5*v+m)/2.5,a=(1.5*w+x)/2.5,l=(1.5*v+b)/2.5,h=(1.5*w+y)/2.5;let M=Math.sqrt(Math.pow(n-v,2)+Math.pow(a-w,2)),k=Math.sqrt(Math.pow(l-v,2)+Math.pow(h-w,2)),A=Math.atan2(a-w,n-v);d=Math.PI/2+(A+Math.atan2(h-w,l-v))/2,Math.abs(A-d)>Math.PI/2&&(d-=Math.PI),n=v+Math.cos(d)*M,a=w+Math.sin(d)*M;
1let P={rightContX:l=v+Math.cos(Math.PI+d)*k,rightContY:h=w+Math.sin(Math.PI+d)*k,leftContX:n,leftContY:a,plotX:v,plotY:w};return s&&(P.prevPointCont=t(e,p,!1,o)),P}(e,s,!0,this.connectEnds)).prevPointCont&&r.prevPointCont.rightContX,i=r.prevPointCont&&r.prevPointCont.rightContY;o=["C",F(t)?t:r.plotX,F(i)?i:r.plotY,F(r.leftContX)?r.leftContX:r.plotX,F(r.leftContY)?r.leftContY:r.plotY,r.plotX,r.plotY]}else o=["M",i.plotX,i.plotY];else o=t.call(this,e,i,s);return o}function iA(t,e,i=this.plotY){if(!this.destroyed){let{plotX:s,series:o}=this,{chart:r}=o;return r.polar&&F(s)&&F(i)?[s+(e?r.plotLeft:0),i+(e?r.plotTop:0)]:t.call(this,e,i)}}class iP{static compose(t,e,i,s,o,r,n,a,l,h){if(tr.compose(e,i,s),e7.compose(t,o),V(is,"Polar")){let t=e.prototype,o=r.prototype,d=i.prototype,c=s.prototype;if(E(e,"afterDrawChartBox",io),E(e,"createAxes",ia),E(e,"init",ir),_(t,"get",im),_(d,"getCoordinates",iv),_(d,"pinch",iw),E(i,"getSelectionMarkerAttrs",ih),E(i,"getSelectionBox",il),E(s,"afterInit",id),E(s,"afterColumnTranslate",ic,{order:9}),E(s,"afterTranslate",ip,{order:2}),E(s,"afterColumnTranslate",ib,{order:4}),_(c,"animate",iM),_(o,"pos",iA),a){let t=a.prototype;_(t,"alignDataLabel",ix),_(t,"animate",iM)}if(l&&_(l.prototype,"getGraphPath",iy),h){let t=h.prototype;_(t,"getPointSpline",ik),n&&(n.prototype.getPointSpline=t.getPointSpline)}}}constructor(t){this.series=t}arc(t,e,i,s){let o=this.series,r=o.xAxis.center,n=o.yAxis.len,a=r[3]/2,l=n-e+a,h=n-G(t,n)+a;return o.yAxis.reversed&&(l<0&&(l=a),h<0&&(h=a)),{x:r[0],y:r[1],r:l,innerR:h,start:i,end:s}}toXY(t){let e=this.series,i=e.chart,s=e.xAxis,o=e.yAxis,r=t.plotX,n=i.inverted,a=t.y,l=t.plotY,h=n?r:o.len-l,d;if(n&&e&&!e.isRadialBar&&(t.plotY=l=F(a)?o.translate(a):0),t.rectPlotX=r,t.rectPlotY=l,o.center&&(h+=o.center[3]/2),F(l)){let e=n?o.postTranslate(l,h):s.postTranslate(r,h);t.plotX=t.polarPlotX=e.x-i.plotLeft,t.plotY=t.polarPlotY=e.y-i.plotTop}e.kdByAngle?((d=(r/Math.PI*180+s.pane.options.startAngle)%360)<0&&(d+=360),t.clientX=d):t.clientX=t.plotX}}var iE=m(184),iS=m.n(iE);let{composed:iT}=y();!function(t){function e(){let t=this.waterfall?.stacks;t&&(t.changed=!1,delete t.alreadyChanged)}function i(){let t=this.options.stackLabels;t?.enabled&&this.waterfall?.stacks&&this.waterfall.renderStackTotals()}function s(){this.waterfall||(this.waterfall=new r(this))}function o(){let t=this.axes;for(let e of this.series)if(e.options.stacking){for(let e of t)!e.isXAxis&&e.waterfall&&(e.waterfall.stacks.changed=!0);break}}t.compose=function(t,r){V(iT,"Axis.Waterfall")&&(E(t,"init",s),E(t,"afterBuildStacks",e),E(t,"afterRender",i),E(r,"beforeRedraw",o))};class r{constructor(t){this.axis=t,this.stacks={changed:!1}}renderStackTotals(){let t=this.axis,e=t.waterfall?.stacks,i=t.stacking?.stackTotalGroup,s=new(iS())(t,t.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=s,i&&X(e,t=>{X(t,(t,e)=>{s.total=t.stackTotal,s.x=+e,t.label&&(s.label=t.label),iS().prototype.render.call(s,i),t.label=s.label,delete s.label})}),s.total=null}}t.Composition=r}(u||(u={}));let iC=u;class iL extends tb().prototype.pointClass{getClassName(){let t=tR().prototype.getClassName.call(this);return this.isSum?t+=" highcharts-sum":this.isIntermediateSum&&(t+=" highcharts-intermediate-sum"),t}isValid(){return F(this.y)||this.isSum||!!this.isIntermediateSum}}let{column:iO,line:iN}=w().seriesTypes;function iI(t,e){return Object.hasOwnProperty.call(t,e)}class iD extends iO{generatePoints(){iO.prototype.generatePoints.apply(this);let t=this.getColumn("y",!0);for(let e=0,i=this.points.length;e<i;e++){let i=this.points[e],s=t[e];F(s)&&(i.isIntermediateSum||i.isSum)&&(i.y=L(s))}}processData(t){let e,i,s,o,r,n,a=this.options,l=this.getColumn("y"),h=a.data,d=l.length,c=a.threshold||0;s=i=o=r=0;for(let t=0;t<d;t++)n=l[t],e=h?.[t]||{},"sum"===n||e.isSum?l[t]=L(s):"intermediateSum"===n||e.isIntermediateSum?(l[t]=L(i),i=0):(s+=n,i+=n),o=Math.min(s,o),r=Math.max(s,r);super.processData.call(this,t),a.stacking||(this.dataMin=o+c,this.dataMax=r)}toYData(t){return t.isSum?"sum":t.isIntermediateSum?"intermediateSum":t.y}pointAttribs(t,e){let i=this.options.upColor;i&&!t.options.color&&F(t.y)&&(t.color=t.y>0?i:void 0);let s=iO.prototype.pointAttribs.call(this,t,e);return delete s.dashstyle,s}getGraphPath(){return this.graph?.pathArray||[["M",0,0]]}getCrispPath(){let t=this.points.filter(t=>F(t.y)),e=this.yAxis,i=t.length,s=this.graph?.strokeWidth()||0,o=this.xAxis.reversed,r=this.yAxis.reversed,n=this.options.stacking,a=[];for(let l=1;l<i;l++){if(!(this.options.connectNulls||F(this.data[t[l].index-1].y)))continue;let i=t[l].box,h=t[l-1],d=h.y||0,c=t[l-1].box;if(!i||!c)continue;let p=e.waterfall?.stacks[this.stackKey],u=d>0?-c.height:0;if(p&&c&&i){let t,d=p[l-1];t=n?O(e.translate(d.connectorThreshold||0,!1,!0,!1,!0)+(r?u:0),s):O(c.y+(h.minPointLengthOffset||0),s),a.push(["M",(c.x||0)+(o?0:c.width||0),t],["L",(i.x||0)+(o&&i.width||0),t])}if(c&&a.length&&(!n&&d<0&&!r||d>0&&r)){let t=a[a.length-2];t&&"number"==typeof t[2]&&(t[2]+=c.height||0);let e=a[a.length-1];e&&"number"==typeof e[2]&&(e[2]+=c.height||0)}}return a}drawGraph(){iN.prototype.drawGraph.call(this),this.graph?.animate({d:this.getCrispPath()})}setStackedPoints(t){let e=this.options,i=t.waterfall?.stacks,s=e.threshold||0,o=this.stackKey,r=this.getColumn("x"),n=this.getColumn("y"),a=r.length,l=s,h=l,d,c=0,p=0,u=0,g,f,m,x,b,
1y,v,w,M=(t,e,i,s)=>{if(d){if(g)for(;i<g;i++)d.stackState[i]+=s;else d.stackState[0]=t,g=d.stackState.length;d.stackState.push(d.stackState[g-1]+e)}};if(t.stacking&&i&&this.reserveSpace()){w=i.changed,(v=i.alreadyChanged)&&0>v.indexOf(o)&&(w=!0),i[o]||(i[o]={});let t=i[o];if(t)for(let i=0;i<a;i++)(!t[y=r[i]]||w)&&(t[y]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:w&&t[y]?t[y].label:void 0}),d=t[y],(b=n[i])>=0?d.posTotal+=b:d.negTotal+=b,x=e.data[i],f=d.absolutePos=d.posTotal,m=d.absoluteNeg=d.negTotal,d.stackTotal=f+m,g=d.stackState.length,x?.isIntermediateSum?(M(u,p,0,u),u=p,p=s,l^=h,h^=l,l^=h):x?.isSum?(M(s,c,g,0),l=s):(M(l,b,0,c),x&&(c+=b,p+=b)),d.stateIndex++,d.threshold=l,l+=d.stackTotal;i.changed=!1,i.alreadyChanged||(i.alreadyChanged=[]),i.alreadyChanged.push(o)}}getExtremes(){let t,e,i=this.options.stacking,s=this.yAxis,o=s.waterfall?.stacks;return i&&o?(t=this.stackedYNeg=[],e=this.stackedYPos=[],"overlap"===i?X(o[this.stackKey],function(i){t.push(S(i.stackState)),e.push(T(i.stackState))}):X(o[this.stackKey],function(i){t.push(i.negTotal+i.threshold),e.push(i.posTotal+i.threshold)}),{dataMin:S(t),dataMax:T(e)}):{dataMin:this.dataMin,dataMax:this.dataMax}}}iD.defaultOptions=W(iO.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),iD.compose=iC.compose,I(iD.prototype,{pointValKey:"y",showLine:!0,pointClass:iL}),E(iD,"afterColumnTranslate",function(){let{options:t,points:e,yAxis:i}=this,s=G(t.minPointLength,5),o=s/2,r=t.threshold||0,n=t.stacking,a=i.waterfall?.stacks[this.stackKey],l=this.getColumn("y",!0),h=r,d=r,c,p,u;for(let t=0;t<e.length;t++){let g=e[t],f=l[t],m=I({x:0,y:0,width:0,height:0},g.shapeArgs||{});g.box=m;let x=[0,f],b=g.y||0;if(n){if(a){let e=a[t];"overlap"===n?(p=e.stackState[e.stateIndex--],c=b>=0?p:p-b,iI(e,"absolutePos")&&delete e.absolutePos,iI(e,"absoluteNeg")&&delete e.absoluteNeg):(b>=0?(p=e.threshold+e.posTotal,e.posTotal-=b,c=p):(p=e.threshold+e.negTotal,e.negTotal-=b,c=p-b),!e.posTotal&&F(e.absolutePos)&&iI(e,"absolutePos")&&(e.posTotal=e.absolutePos,delete e.absolutePos),!e.negTotal&&F(e.absoluteNeg)&&iI(e,"absoluteNeg")&&(e.negTotal=e.absoluteNeg,delete e.absoluteNeg)),g.isSum||(e.connectorThreshold=e.threshold+e.stackTotal),u=c-Math.abs(b),i.reversed&&([c,u]=[u,c]),g.below=c<=r,m.y=i.translate(c,!1,!0,!1,!0),m.height=i.translate(u,!1,!0,!1,!0)-m.y;let s=i.waterfall?.dummyStackItem;s&&(s.x=t,s.label=a[t].label,s.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[t],this.stackedYPos[t],void 0,this.xAxis))}}else c=Math.max(d,d+b)+x[0],m.y=i.translate(c,!1,!0,!1,!0),g.isSum?(m.y=i.translate(x[1],!1,!0,!1,!0),m.height=Math.min(i.translate(x[0],!1,!0,!1,!0),i.len)-m.y,g.below=x[1]<=r):g.isIntermediateSum?(b>=0?(c=x[1]+h,u=h):(c=h,u=x[1]+h),i.reversed&&([c,u]=[u,c]),m.y=i.translate(c,!1,!0,!1,!0),m.height=Math.abs(m.y-Math.min(i.translate(u,!1,!0,!1,!0),i.len)),h+=x[1],g.below=c<=r):(m.height=f>0?i.translate(d,!1,!0,!1,!0)-m.y:i.translate(d+f,!1,!0,!1,!0)-i.translate(d,!1,!0,!1,!0),g.below=(d+=f)<r);m.height<0&&(m.y+=m.height,m.height*=-1),g.plotY=m.y,g.yBottom=m.y+m.height,m.height<=s&&!g.isNull?(m.height=s,m.y-=o,g.yBottom=m.y+m.height,g.plotY=m.y,b<0?g.minPointLengthOffset=-o:g.minPointLengthOffset=o):(g.isNull&&(m.width=0),g.minPointLengthOffset=0);let y=g.plotY+(g.negative?m.height:0);g.below&&(g.plotY+=m.height),g.tooltipPos&&(this.chart.inverted?g.tooltipPos[0]=i.len-y:g.tooltipPos[1]=y),g.isInside=this.isPointInside(g);let v=O(g.yBottom,this.borderWidth);m.y=O(m.y,this.borderWidth),m.height=v-m.y,W(!0,g.shapeArgs,m)}},{order:2}),w().registerSeriesType("waterfall",iD);let iB=y();iB.RadialAxis=e7,tU.compose(iB.Axis,iB.Chart,iB.Legend),eY.compose(iB.Axis,iB.Chart,iB.Legend),tr.compose(iB.Chart,iB.Pointer,iB.Series),iP.compose(iB.Axis,iB.Chart,iB.Pointer,iB.Series,iB.Tick,iB.Point,w().seriesTypes.areasplinerange,w().seriesTypes.column,w().seriesTypes.line,w().seriesTypes.spline),iD.compose(iB.Axis,iB.Chart);let iR=iB;return x.default})()},11647:function(t){var e;let i,s,o,r,n,a,l,h,d,c;i=(e="u"<typeof window?this:window)._Highcharts,s=e._Highcharts.Chart,o=e._Highcharts.Axis,r=e._Highcharts.Color,n=e._Highcharts.SeriesRegistry,a=e._Highcharts.RendererRegistry,l=e._Highcharts.SVGElement,h=e._Highcharts.Templating,d=e._Highcharts.Point,c=e._Highcharts.StackItem,t.exports=(()=>{"use strict";let t,e,p;
1var u,g,f,m,x,b,y={28:t=>{t.exports=l},184:t=>{t.exports=c},260:t=>{t.exports=d},512:t=>{t.exports=n},532:t=>{t.exports=o},608:t=>{t.exports=a},620:t=>{t.exports=r},944:t=>{t.exports=i},960:t=>{t.exports=s},984:t=>{t.exports=h}},v={};function w(t){var e=v[t];if(void 0!==e)return e.exports;var i=v[t]={exports:{}};return y[t](i,i.exports,w),i.exports}w.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return w.d(e,{a:e}),e},w.d=(t,e)=>{for(var i in e)w.o(e,i)&&!w.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},w.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var M={};w.d(M,{default:()=>iL});var k=w(944),A=w.n(k);function P(t,e,i,s){return[["M",t,e+s/2],["L",t+i,e],["L",t,e+s/2],["L",t+i,e+s]]}function E(t,e,i,s){return P(t,e,i/2,s)}function S(t,e,i,s){return[["M",t+i,e],["L",t,e+s/2],["L",t+i,e+s],["Z"]]}function T(t,e,i,s){return S(t,e,i/2,s)}let C=function(t){let e=t.prototype.symbols;e.arrow=P,e["arrow-filled"]=S,e["arrow-filled-half"]=T,e["arrow-half"]=E,e["triangle-left"]=S,e["triangle-left-half"]=T},{doc:L,win:O}=A();function N(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;A().Point&&t instanceof A().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let n=t.addEventListener;n&&n.call(t,e,i,!!A().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let a={fn:i,order:"number"==typeof s.order?s.order:1/0};return r[e].push(a),r[e].sort((t,e)=>t.order-e.order),function(){tt(t,e,i)}}function I(t,e,i){return t>e?t<i?t:i:e}function D(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function B(t,e,i,s,o){let r=L.createElement(t);return e&&X(r,e),o&&F(r,{padding:"0",border:"none",margin:"0"}),i&&F(r,i),s&&s.appendChild(r),r}function R(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function F(t,e){X(t.style,e)}function z(t){return null!=t}function H(t,e,i){$(t,function(s,o){s!==e&&s?.destroy&&s.destroy(),(s?.destroy||!i)&&delete t[o]})}function W(t,e){let i=t.length;for(;i--;)if(t[i]===e){t.splice(i,1);break}}function X(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function G(t,e,i,s){if(i=i||{},L?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==A())){let s=L.createEvent("Events");s.initEvent(e,!0,!0),i=X(s,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||X(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let s=[],o=t,r=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);r&&s.sort((t,e)=>t.order-e.order),s.forEach(e=>{!1===e.fn.call(t,i,t)&&i.preventDefault()})}s&&!i.defaultPrevented&&s.call(t,i)}let Y=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]};function V(t){return q(t)&&"number"==typeof t.nodeType}function j(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function U(t){return"string"==typeof t}function _(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function q(t,e){return!!t&&"object"==typeof t&&(!e||!_(t))}function K(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),$(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!q(i,!0)||(o=i?.constructor,q(i,!0)&&!V(i)&&o?.name&&"Object"!==o.name)||V(i)?t[s]=e[s]:t[s]=r(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let n=s.length;for(i=0;i<n;i++)o=r(o,s[i]);return o}function $(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function Z(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function J(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function Q(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}function tt(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,$(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}function te(t){return _(t)?t:[t]}function ti(t,e,i){let s=t[e];t[e]=function(){let t=arguments,e=this;return i.apply(this,[function(){return s.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}let ts=A().deg2rad,to=Math.max,tr=Math.min,tn=class{constructor(t,e,i){this.init(t,e,i)}init(t,e,i){this.fromPoint=t,this.toPoint=e,this.options=i,this.chart=t.series.chart,this.pathfinder=this.chart.pathfinder}renderPath(t,e){let i=this.chart,s=i.styledMode,o=this.pathfinder,r={},n=this.graphics&&this.graphics.path;o.group||(o.group=i.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(i.seriesGroup)),o.group.translate(i.plotLeft,i.plotTop),!(n&&n.renderer)&&(n=i.renderer.path().add(o.group),s||n.attr({opacity:0}
1)),n.attr(e),r.d=t,s||(r.opacity=1),n.animate(r),this.graphics=this.graphics||{},this.graphics.path=n}addMarker(t,e,i){let s,o,r,n,a,l,h,d=this.fromPoint.series.chart,c=d.pathfinder,p=d.renderer,u="start"===t?this.fromPoint:this.toPoint,g=u.getPathfinderAnchorPoint(e);e.enabled&&((h="start"===t?i[1]:i[i.length-2])&&"M"===h[0]||"L"===h[0])&&(l={x:h[1],y:h[2]},o=u.getRadiansToVector(l,g),s=u.getMarkerVector(o,e.radius,g),e.width&&e.height?(n=e.width,a=e.height):n=a=2*e.radius,this.graphics=this.graphics||{},r={x:s.x-n/2,y:s.y-a/2,width:n,height:a,rotation:-o/ts,rotationOriginX:s.x,rotationOriginY:s.y},this.graphics[t]?this.graphics[t].animate(r):(this.graphics[t]=p.symbol(e.symbol).addClass("highcharts-point-connecting-path-"+t+"-marker highcharts-color-"+this.fromPoint.colorIndex).attr(r).add(c.group),p.styledMode||this.graphics[t].attr({fill:e.color||this.fromPoint.color,stroke:e.lineColor,"stroke-width":e.lineWidth,opacity:0}).animate({opacity:1},u.series.options.animation)))}getPath(t){let e=this.pathfinder,i=this.chart,s=e.algorithms[t.type],o=e.chartObstacles;return"function"!=typeof s?((0,k.error)('"'+t.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]}):(s.requiresObstacles&&!o&&(o=e.chartObstacles=e.getChartObstacles(t),i.options.connectors.algorithmMargin=t.algorithmMargin,e.chartObstacleMetrics=e.getObstacleMetrics(o)),s(this.fromPoint.getPathfinderAnchorPoint(t.startMarker),this.toPoint.getPathfinderAnchorPoint(t.endMarker),K({chartObstacles:o,lineObstacles:e.lineObstacles||[],obstacleMetrics:e.chartObstacleMetrics,hardBounds:{xMin:0,xMax:i.plotWidth,yMin:0,yMax:i.plotHeight},obstacleOptions:{margin:t.algorithmMargin},startDirectionX:e.getAlgorithmStartDirection(t.startMarker)},t)))}render(){let t=this.fromPoint,e=t.series,i=e.chart,s=i.pathfinder,o={},r=K(i.options.connectors,e.options.connectors,t.options.connectors,this.options);!i.styledMode&&(o.stroke=r.lineColor||t.color,o["stroke-width"]=r.lineWidth,r.dashStyle&&(o.dashstyle=r.dashStyle)),o.class="highcharts-point-connecting-path highcharts-color-"+t.colorIndex,z((r=K(o,r)).marker.radius)||(r.marker.radius=tr(to(Math.ceil((r.algorithmMargin||8)/2)-1,1),5));let n=this.getPath(r),a=n.path;n.obstacles&&(s.lineObstacles=s.lineObstacles||[],s.lineObstacles=s.lineObstacles.concat(n.obstacles)),this.renderPath(a,o),this.addMarker("start",K(r.marker,r.startMarker),a),this.addMarker("end",K(r.marker,r.endMarker),a)}destroy(){this.graphics&&($(this.graphics,function(t){t.destroy()}),delete this.graphics)}},{composed:ta}=A(),tl={color:"#ccd3ff",width:2,label:{format:"%[abdYHM]",formatter:function(t,e){return this.axis.chart.time.dateFormat(e||"",t,!0)},rotation:0,style:{fontSize:"0.7em"}}};function th(){let t=this.options,e=t.currentDateIndicator;if(e){let i="object"==typeof e?K(tl,e):K(tl);i.value=Date.now(),i.className="highcharts-current-date-indicator",t.plotLines||(t.plotLines=[]),t.plotLines.push(i)}}function td(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})}function tc(t,e){let i=this.options;return i&&i.className&&-1!==i.className.indexOf("highcharts-current-date-indicator")&&i.label&&"function"==typeof i.label.formatter?(i.value=Date.now(),i.label.formatter.call(this,i.value,i.label.format,this)):t.call(this,e)}var tp=w(960),tu=w.n(tp);let{defaultOptions:tg}=A();class tf extends tu(){init(t,e){let i,s=t.xAxis,o=t.yAxis;t.xAxis=t.yAxis=void 0;let r=K(!0,{chart:{type:"gantt"},title:{text:""},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},t,{isGantt:!0});t.xAxis=s,t.yAxis=o,r.xAxis=(!_(t.xAxis)?[t.xAxis||{},{}]:t.xAxis).map((t,e)=>(1===e&&(i=0),K({grid:{borderColor:tg.xAxis?.grid?.borderColor||"#cccccc",enabled:!0},opposite:tg.xAxis?.opposite??t.opposite??!0,linkedTo:i},t,{type:"datetime"}))),r.yAxis=te(t.yAxis||{}).map(t=>K({grid:{borderColor:tg.yAxis?.grid?.borderColor||"#cccccc",enabled:!0},staticScale:50,reversed:!0,type:t.categories?t.type:"treegrid"},t)),super.init(r,e)}}(u=tf||(tf={})).ganttChart=function(t,e,i){return new u(t,e,i)};let tm=tf;var tx=w(532),tb=w.n(tx);let{isTouchDevice:ty}=A(),tv=[];function tw(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function tM(){let t,e,i,s=this.legend,o=this.navigator;if(o){t=s&&s.options,e=o.xAxis,i=o.yAxis;let{scrollbarHeight:r,scrollButtonSize:n}=o;this.inverted?(o.left=o.opposite?this.chartWidth-r-o.height:this.spacing[3]+r,o.top=this.plotTop+n):(o.left=Z(e.left,this.plotLeft+n),o.top=o.navigatorOptions.top||this.chartHe
1ight-o.height-r-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(t&&"bottom"===t.verticalAlign&&"proximate"!==t.layout&&t.enabled&&!t.floating?s.legendHeight+Z(t.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),e&&i&&(this.inverted?e.options.left=i.options.left=o.left:e.options.top=i.options.top=o.top,e.setAxisSize(),i.setAxisSize())}}function tk(e){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new t(this),Z(e.redraw,!0)&&this.redraw(e.animation))}function tA(){let e=this.options;(e.navigator.enabled||e.scrollbar.enabled)&&(this.scroller=this.navigator=new t(this))}function tP(){let t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!ty&&"x"===this.zooming.type||ty&&"x"===this.zooming.pinchType))return!1}function tE(t){let e=t.navigator;if(e&&t.xAxis[0]){let i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function tS(t){let e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&(K(!0,this.options.navigator,e),K(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}let tT=function(e,i){if(J(tv,e)){let s=e.prototype;t=i,s.callbacks.push(tE),N(e,"afterAddSeries",tw),N(e,"afterSetChartSize",tM),N(e,"afterUpdate",tk),N(e,"beforeRender",tA),N(e,"beforeShowResetZoom",tP),N(e,"update",tS)}},{isTouchDevice:tC}=A();function tL(){this.navigatorAxis||(this.navigatorAxis=new tN(this))}function tO(t){let e,i=this.chart,s=i.options,o=s.navigator,r=this.navigatorAxis,n=i.zooming.pinchType,a=s.rangeSelector,l=i.zooming.type;if(this.isXAxis&&(o?.enabled||a?.enabled)){if("y"===l&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===l||tC&&"xy"===n)&&this.options.range){let e=r.previousZoom;z(t.min)?r.previousZoom=[this.min,this.max]:e&&(t.min=e[0],t.max=e[1],r.previousZoom=void 0)}}void 0!==e&&t.preventDefault()}class tN{static compose(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),N(t,"init",tL),N(t,"setExtremes",tO))}constructor(t){this.axis=t}destroy(){this.axis=void 0}toFixedRange(t,e,i,s){let o=this.axis,r=(o.pointRange||0)/2,n=Z(i,o.translate(t,!0,!o.horiz)),a=Z(s,o.translate(e,!0,!o.horiz));return z(i)||(n=D(n+r)),z(s)||(a=D(a-r)),j(n)&&j(a)||(n=a=void 0),{min:n,max:a}}}var tI=w(620),tD=w.n(tI),tB=w(512),tR=w.n(tB);let{parse:tF}=tD(),{seriesTypes:tz}
1=tR(),tH={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:tF("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===tz.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:void 0},tickLength:0,tickWidth:0}},tW={"navigator-handle":function(t,e,i,s,o={}){var r,n,a,l;let h,d=o.width?o.width/2:i,c=Q(o.borderRadius||0,Math.min(2*d,s));return[["M",-1.5,(s=o.height||s)/2-3.5],["L",-1.5,s/2+4.5],["M",.5,s/2-3.5],["L",.5,s/2+4.5],...(r=-d-1,n=2*d+1,a=s,l={r:c},l?.r?[["M",r+(h=l?.r||0),.5],["L",r+n-h,.5],["A",h,h,0,0,1,r+n,.5+h],["L",r+n,.5+a-h],["A",h,h,0,0,1,r+n-h,.5+a],["L",r+h,.5+a],["A",h,h,0,0,1,r,.5+a-h],["L",r,.5+h],["A",h,h,0,0,1,r+h,.5],["Z"]]:[["M",r,.5],["L",r+n,.5],["L",r+n,.5+a],["L",r,.5+a],["Z"]])]}};var tX=w(608),tG=w.n(tX);let{defaultOptions:tY}=A(),{composed:tV}=A(),{getRendererType:tj}=tG(),{setFixedRange:tU}={setFixedRange:function(t){let e=this.xAxis[0];z(e.dataMax)&&z(e.dataMin)&&t?this.fixedRange=Math.min(t,e.dataMax-e.dataMin):this.fixedRange=t}};function t_(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}let tq=function(t,e,i){tN.compose(e),J(tV,"Navigator")&&(t.prototype.setFixedRange=tU,X(tj().prototype.symbols,tW),X(tY,{navigator:tH}),N(i,"afterUpdate",t_))},{composed:tK}=A();!function(t){let e;function i(t){let e=Z(t.options?.min,t.min),i=Z(t.options?.max,t.max);return{axisMin:e,axisMax:i,scrollMin:z(t.dataMin)?Math.min(e,t.min??1/0,t.dataMin,t.threshold??1/0):e,scrollMax:t.treeGrid?.adjustedMax??(z(t.dataMax)?Math.max(i,t.max??-1/0,t.dataMax,t.threshold??-1/0):i)}}function s(){let t=this.scrollbar,e=t&&!t.options.opposite,i=this.horiz?2:e?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[i]+=t.size+(t.options.margin||0))}function o(){let t=this;t.options?.scrollbar?.enabled&&(t.options.scrollbar.vertical=!t.horiz,t.options.startOnTick=t.options.endOnTick=!1,t.scrollbar=new e(t.chart.renderer,t.options.scrollbar,t.chart),N(t.scrollbar,"changed",function(e){let s,o,{axisMin:r,axisMax:n,scrollMin:a,scrollMax:l}=i(t),h=t.toPixels(a),d=t.toPixels(l)-h;if(z(r)&&z(n))if(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(s=Math.min(l,t.toValue(h+d*this.to)),o=Math.max(a,t.toValue(h+d*this.from))):(s=Math.min(l,t.toValue(h+d*(1-this.from))),o=Math.max(a,t.toValue(h+d*(1-this.to)))),this.shouldUpdateExtremes(e.DOMType)){let i="mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&void 0;t.setExtremes(D(o),D(s),!0,i,e)}else this.setRange(this.from,this.to)}))}function r(){let t,e,s,{scrollMin:o,scrollMax:r}=i(this),n=this.scrollbar,a=(this.axisTitleMargin||0)+(this.titleOffset||0),l=this.chart.scrollbarsOffsets,h=this.options.margin||0;if(n&&l){if(this.horiz)this.opposite||(l[1]+=a),n.position(this.left,this.top+this.height+2+l[1]-(this.opposite?h:0),this.width,this.height),this.opposite||(l[1]+=h),t=1;else{let e;this.opposite&&(l[0]+=a),e=n.options.opposite?this.left+this.width+2+l[0]-(this.opposite?0:h):this.opposite?0:h,n.position(e,this.top,this.width,this.height),this.opposite&&(l[0]+=h),t=0}if(l[t]+=n.size+(n.options.margin||0),isNaN(o)||isNaN(r)||!z(this.min)||!z(this.max)||z(this.dataMin)&&this.dataMin===this.dataMax)n.setRange(0,1);else if(this.min===this.max){let t=this.pointRange/(this.dataMax+1);e=t*this.min,s=t*(this.max+1),n.setRange(e,s)}
vendor: 8,956 bytes, line 1
1else e=(this.toPixels(this.min)-this.toPixels(o))/(this.toPixels(r)-this.toPixels(o)),s=(this.toPixels(this.max)-this.toPixels(o))/(this.toPixels(r)-this.toPixels(o)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?n.setRange(e,s):n.setRange(1-s,1-e)}}t.compose=function(t,i){J(tK,"Axis.Scrollbar")&&(e=i,N(t,"afterGetOffset",s),N(t,"afterInit",o),N(t,"afterRender",r))}}(f||(f={}));let t$=f,tZ={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1},{defaultOptions:tJ}=A(),{composed:tQ}=A();class t0{static compose(t){t$.compose(t,t0),J(tQ,"Scrollbar")&&X(tJ,{scrollbar:tZ})}static swapXY(t,e){return e&&t.forEach(t=>{let e,i=t.length;for(let s=0;s<i;s+=2)"number"==typeof(e=t[s+1])&&(t[s+1]=t[s+2],t[s+2]=e)}),t}constructor(t,e,i){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,e,i)}addEvents(){let t=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,i=this.scrollbarGroup.element,s=this.track.element,o=this.mouseDownHandler.bind(this),r=this.mouseMoveHandler.bind(this),n=this.mouseUpHandler.bind(this),a=[[e[t[0]].element,"click",this.buttonToMinClick.bind(this)],[e[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[s,"click",this.trackClick.bind(this)],[i,"mousedown",o],[i.ownerDocument,"mousemove",r],[i.ownerDocument,"mouseup",n],[i,"touchstart",o],[i.ownerDocument,"touchmove",r],[i.ownerDocument,"touchend",n]];a.forEach(function(t){N.apply(null,t)}),this._events=a}buttonToMaxClick(t){let e=(this.to-this.from)*Z(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),G(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}buttonToMinClick(t){let e=D(this.to-this.from)*Z(this.options.step,.2);this.updatePosition(D(this.from-e),D(this.to-e)),G(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}cursorToScrollbarPosition(t){let e=this.options,i=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-i),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-i)}}destroy(){let t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())}),e&&t===e.scrollbar&&(e.scrollbar=null,H(e.scrollbarButtons))}drawScrollbarButton(t){let e=this.renderer,i=this.scrollbarButtons,s=this.options,o=this.size,r=e.g().add(this.group);if(i.push(r),s.buttonsEnabled){let n=e.rect().addClass("highcharts-scrollbar-button").add(r);this.chart.styledMode||n.attr({stroke:s.buttonBorderColor,"stroke-width":s.buttonBorderWidth,fill:s.buttonBackgroundColor}),n.attr(n.crisp({x:-.5,y:-.5,width:o,height:o,r:s.buttonBorderRadius},n.strokeWidth()));let a=e.path(t0.swapXY([["M",o/2+(t?-1:1),o/2-3],["L",o/2+(t?-1:1),o/2+3],["L",o/2+(t?2:-2),o/2]],s.vertical)).addClass("highcharts-scrollbar-arrow").add(i[t]);this.chart.styledMode||a.attr({fill:s.buttonArrowColor})}}init(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=K(tZ,tJ.scrollbar,e),this.options.margin=Z(this.options.margin,10),this.chart=i,this.size=Z(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())}mouseDownHandler(t){let e=this.chart.pointer?.normalize(t)||t,i=this.cursorToScrollbarPosition(e);this.chartX=i.chartX,this.chartY=i.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(t){let e,i=this.chart.pointer?.normalize(t)||t,s=this.options.vertical?"chartY":"chartX",o=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][s])&&(e=this.cursorToScrollbarPosition(i)[s]-this[s],this.hasDragged=!0,this.updatePosition(o[0]+e,o[1]+e),this.hasDragged&&G(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))}mouseUpHandler(t){this.hasDragged&&G(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(t,e,i,s){let{buttonsEnabled:o,margin:r=0,vertical:n}=this.options,a=this.rendered?"animate":"attr",l=s,h=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=s,this.xOffset=l,this.yOffset=h,n?(this.width=this.yOffset=i=h=this.size,this.xOffset=l=0,this.yOffset=h=o?this.size:0,this.barWidth=s-(o?2*i:0),this.x=t+=r):(this.height=s=this.size,this.xOffset=l=o?this.size:0,this.barWidth=i-(o?2*s:0),this.y=this.y+r),this.group[a]({translateX:t,translateY:this.y}),this.track[a]({width:i,height:s}),this.scrollbarButtons[1][a]({translateX:n?0:i-l,translateY:n?s-h:0})}removeEvents(){this._events.forEach(function(t){tt.apply(null,t)}),this._events.length=0}render(){let t=this.renderer,e=this.options,i=this.size,s=this.chart.styledMode,o=t.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=o,this.track=t.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:i,width:i}).add(o),s||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});let r=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-R(0,r),y:-R(0,r)}),this.scrollbarGroup=t.g().add(o),this.scrollbar=t.rect().addClass("highcharts-scrollbar-thumb").attr({height:i-r,width:i-r,r:e.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=t.path(t0.swapXY([["M",-3,i/4],["L",-3,2*i/3],["M",0,i/4],["L",0,2*i/3],["M",3,i/4],["L",3,2*i/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),s||(this.scrollbar.attr({fill:e.barBackgroundColor,stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-R(0,this.scrollbarStrokeWidth),-R(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(t,e){let i,s,o=this.options,r=o.vertical,n=o.minWidth,a=this.barWidth,l=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!z(a))return;let h=a*Math.min(e,1);i=Math.ceil(a*(t=Math.max(t,0))),this.calculatedWidth=s=D(h-i),s<n&&(i=(a-n+s)*t,s=n);let d=Math.floor(i+this.xOffset+this.yOffset),c=s/2-.5;this.from=t,this.to=e,r?(this.scrollbarGroup[l]({translateY:d}),this.scrollbar[l]({height:s}),this.scrollbarRifles[l]({translateY:c}),this.scrollbarTop=d,this.scrollbarLeft=0):(this.scrollbarGroup[l]({translateX:d}),this.scrollbar[l]({width:s}),this.scrollbarRifles[l]({translateX:c}),this.scrollbarLeft=d,this.scrollbarTop=0),s<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===o.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(t){return Z(this.options.liveRedraw,A().svg&&!A().isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!z(t)}trackClick(t){let e=this.chart.pointer?.normalize(t)||t,i=this.to-this.from,s=this.y+this.scrollbarTop,o=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>s||!this.options.vertical&&e.chartX>o?this.updatePosition(this.from+i,this.to+i):this.updatePosition(this.from-i,this.to-i),G(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}update(t){this.destroy(),this.init(this.chart.renderer,K(!0,this.options,t),this.chart)}updatePosition(t,e){e>1&&(t=D(1-D(e-t)),e=1),t<0&&(e=D(e-t),t=0),this.from=t,this.to=e}}t0.defaultOptions=tZ;let{defaultOptions:t1}=A(),{isTouchDevice:t2}=A();function t5(t,...e){let i=[].filter.call(e,j);if(i.length)return Math[t].apply(0,i)}class t3{static compose(t,e,i){tT(t,t3),tq(t,e,i)}constructor(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}drawHandle(t,e,i,s){let o=this.navigatorOptions.handles.height;this.handles[e][s](i?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-o)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-o/2-1)})}drawOutline(t,e,i,s){let o=this.navigatorOptions.maskInside,r=this.outline.strokeWidth(),n=r/2,a=r%2/2,l=this.scrollButtonSize,h=this.size,d=this.top,c=this.height,p=d-n,u=d+c,g=this.left,f,m;i?(f=d+e+a,e=d+t+a,m=[["M",g+c,d-l-a],["L",g+c,f],["L",g,f],["M",g,e],["L",g+c,e],["L",g+c,d+h+l]],o&&m.push(["M",g+c,f-n],["L",g+c,e+n])):(g-=l,t+=g+l-a,e+=g+l-a,m=[["M",g,p],["L",t,p],["L",t,u],["M",e,u],["L",e,p],["L",g+h+2*l,p]],o&&m.push(["M",t-n,p
vendor: 4,218 bytes, line 1
1],["L",e+n,p])),this.outline[s]({d:m})}drawMasks(t,e,i,s){let o,r,n,a,l=this.left,h=this.top,d=this.height;i?(n=[l,l,l],a=[h,h+t,h+e],r=[d,d,d],o=[t,e-t,this.size-e]):(n=[l,l+t,l+e],a=[h,h,h],r=[t,e-t,this.size-e],o=[d,d,d]),this.shades.forEach((t,e)=>{t[s]({x:n[e],y:a[e],width:r[e],height:o[e]})})}renderElements(){let t=this,e=t.navigatorOptions,i=e.maskInside,s=t.chart,o=s.inverted,r=s.renderer,n={cursor:o?"ns-resize":"ew-resize"},a=t.navigatorGroup??(t.navigatorGroup=r.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!i,i,!i].forEach((i,o)=>{let l=t.shades[o]??(t.shades[o]=r.rect().addClass("highcharts-navigator-mask"+(1===o?"-inside":"-outside")).add(a));s.styledMode||(l.attr({fill:i?e.maskFill:"rgba(0,0,0,0)"}),1===o&&l.css(n))}),t.outline||(t.outline=r.path().addClass("highcharts-navigator-outline").add(a)),s.styledMode||t.outline.attr({"stroke-width":e.outlineWidth,stroke:e.outlineColor}),e.handles?.enabled){let i=!1,o=e.handles,{height:l,width:h}=o;[0,1].forEach(e=>{let d=o.symbols[e];(i=i||t.handles[e]?.symbolName!==d)&&(t.handles[e]?.destroy(),t.handles[e]=r.symbol(d,-h/2-1,0,h,l,o),t.handles[e].attr({zIndex:7-e}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][e]).add(a)),s.inverted&&t.handles[e].attr({rotation:90,rotationOriginX:Math.floor(-h/2),rotationOriginY:(l+h)/2}),s.styledMode||t.handles[e].attr({fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.lineWidth,width:o.width,height:o.height,x:-h/2-1,y:0}).css(n)}),i&&(t.partsEventsToUnbind?.forEach(t=>{t()}),t.partsEventsToUnbind=[...t.getPartsEvents("mousedown"),...t.getPartsEvents("touchstart")])}}update(t,e=!1){let i=this.chart,s=i.options.chart.inverted!==i.scrollbar?.options.vertical;if(K(!0,i.options.navigator,t),this.navigatorOptions=i.options.navigator||{},this.setOpposite(),z(t.enabled)||s)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(i);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{tt(t,"updatedData",this.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{t.eventsToUnbind.push(N(t,"updatedData",this.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=t.height??this.height;let e=this.getXAxisOffsets();this.xAxis.update({...t.xAxis,offsets:e,[i.inverted?"width":"height"]:this.height,[i.inverted?"height":"width"]:void 0},!1),this.yAxis.update({...t.yAxis,[i.inverted?"width":"height"]:this.height},!1)}e&&i.redraw()}render(t,e,i,s){let o=this.chart,r=this.xAxis,n=r.pointRange||0,a=r.navigatorAxis.fake?o.xAxis[0]:r,l=this.navigatorEnabled,h=this.rendered,d=o.inverted,c=o.xAxis[0].minRange,p=o.xAxis[0].options.maxRange,u=this.scrollButtonSize,g,f,m,x=this.scrollbarHeight,b,y;if(this.hasDragged&&!z(i))return;if(this.isDirty&&this.renderElements(),t=D(t-n/2),e=D(e+n/2),!j(t)||!j(e))if(!h)return;else i=0,s=Z(r.width,a.width);this.left=Z(r.left,o.plotLeft+u+(d?o.plotWidth:0));let v=this.size=b=Z(r.len,(d?o.plotHeight:o.plotWidth)-2*u);g=d?x:b+2*u,i=Z(i,r.toPixels(t,!0)),s=Z(s,r.toPixels(e,!0)),j(i)&&Math.abs(i)!==1/0||(i=0,s=g);let w=r.toValue(i,!0),M=r.toValue(s,!0),k=Math.abs(D(M-w));z(c)&&k<c?this.grabbedLeft?i=r.toPixels(M-c-n,!0):this.grabbedRight&&(s=r.toPixels(w+c+n,!0)):z(p)&&D(k-n)>p&&(this.grabbedLeft?i=r.toPixels(M-p-n,!0):this.grabbedRight&&(s=r.toPixels(w+p+n,!0))),this.zoomedMax=I(Math.max(i,s),0,v),this.zoomedMin=I(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,s),0,v),this.range=this.zoomedMax-this.zoomedMin,v=Math.round(this.zoomedMax);let A=Math.round(this.zoomedMin);l&&(this.navigatorGroup.attr({visibility:"inherit"}),y=h&&!this.hasDragged?"animate":"attr",this.drawMasks(A,v,d,y),this.drawOutline(A,v,d,y),this.navigatorOptions.handles?.enabled&&(this.drawHandle(A,0,d,y),this.drawHandle(v,1,d,y))),this.scrollbar&&(d?(m=this.top-u,f=this.left-x+(l||!a.opposite?0:(a.titleOffset||0)+a.axisTitleMargin),x=b+2*u):(m=this.top+(l?this.height:-x),f=this.left-u),this.scrollbar.position(f,m,g,x),this.scrollbar.setRange(this.zoomedMin/(b||1),this.zoomedMax/(b||1))),this.rendered=!0,this.isDirty=!1,G(this,"afterRe
1nder")}addMouseEvents(){let t,e,i=this,s=i.chart,o=s.container,r=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},r.push(N(s.renderTo,"mousemove",t),N(o.ownerDocument,"mouseup",e),N(s.renderTo,"touchmove",t),N(o.ownerDocument,"touchend",e)),i.eventsToUnbind=r,i.series&&i.series[0]&&r.push(N(i.series[0].xAxis,"foundExtremes",function(){s.navigator?.modifyNavigatorAxisExtremes()}))}getPartsEvents(t){let e=this,i=[];return["shades","handles"].forEach(s=>{e[s].forEach(function(o,r){i.push(N(o.element,t,function(t){e[`${s}Mousedown`](t,r)}))})}),i}shadesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let i=this.chart,s=this.xAxis,o=this.zoomedMin,r=this.size,n=this.range,a=this.left,l=t.chartX,h,d,c,p;i.inverted&&(l=t.chartY,a=this.top),1===e?(this.grabbedCenter=l,this.fixedWidth=n,this.dragOffset=l-o):(p=l-a-n/2,0===e?p=Math.max(0,p):2===e&&p+n>=r&&(p=r-n,this.reversedExtremes?(p-=n,d=this.getUnionExtremes()?.dataMin):h=this.getUnionExtremes()?.dataMax),p!==o&&(this.fixedWidth=n,z((c=s.navigatorAxis.toFixedRange(p,p+n,d,h)).min)&&G(this,"setRange",{min:Math.min(c.min,c.max),max:Math.max(c.min,c.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let i=this.chart,s=i.xAxis[0],o=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=o?s.min:s.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=o?s.max:s.min),i.setFixedRange(void 0)}onMouseMove(t){let e=this,i=e.chart,s=e.navigatorSize,o=e.range,r=e.dragOffset,n=i.inverted,a=e.left,l;(!t.touches||0!==t.touches[0].pageX)&&(l=(t=i.pointer?.normalize(t)||t).chartX,n&&(a=e.top,l=t.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,l-a,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,l-a)):e.grabbedCenter&&r&&(e.hasDragged=!0,l<r?l=r:l>s+r-o&&(l=s+r-o),e.render(0,0,l-r,l-r+o)),e.hasDragged&&Z(e.scrollbarOptions?.liveRedraw,!t2&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){e.onMouseUp(t)},0)))}onMouseUp(t){let e,i,s,o,r,n,a=this.chart,l=this.xAxis,h=this.scrollbar,d=t.DOMEvent||t,c=a.inverted,p=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!h||!h.hasDragged)||"scrollbar"===t.trigger)&&(s=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?o=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(r=this.fixedExtreme),this.zoomedMax===this.size&&(r=this.reversedExtremes?s.dataMin:s.dataMax),0===this.zoomedMin&&(o=this.reversedExtremes?s.dataMax:s.dataMin),z((n=l.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,o,r)).min)&&G(this,"setRange",{min:Math.min(n.min,n.max),max:Math.max(n.min,n.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:d}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&j(this.zoomedMin)&&j(this.zoomedMax)&&(i=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(i,e,c,p),this.outline&&this.drawOutline(i,e,c,p),this.navigatorOptions.handles?.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(i,0,c,p),this.drawHandle(e,1,c,p)))}removeEvents(){this.eventsToUnbind?.forEach(t=>{t()}),this.eventsToUnbind=void 0,this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){tt(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&tt(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(t){let e=t.options,i=e.navigator||{},s=i.enabled,o=e.scrollbar||{},r=o.enabled,n=s&&i.height||0,a=r&&o.height||0,l=o.buttonsEnabled&&a||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=n,this.scrollbarHeight=a,this.scrollButtonSize=l,this.scrollbarEnabled=r,this.navigatorEnabled=!!s,this.navigatorOptions=i,this.scrollbarOptions=o,this.setOpposite();let h=this,d=h.baseSeries,c=t.xAxis.length,p=t.yAxis.length,u=d&&d[0]&&d[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,h.navigatorEnabled){let e=this.getXAxisOffsets();h.xAxis=new(tb())(t,K({breaks:u.options.breaks,ordinal:u.options.ordinal,overscroll:u.options.overscroll},i.xAxis,{type:"datetime",yAxis:i.yAxis?.id,index:c,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:u.options.ordinal?0:u.options.minPadding,maxPadding:u.options.ordinal?0:u.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:e,width:n}:{offsets:e,height:n}),"xAxis"),h.yAxis=new(tb())(t,K(i.yAxis,{alignTicks:!1,offset:0,index:p,isInternal:!0,reversed:Z(i.yAxis&&i.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:n}:{height:n}),"yAxis"),d||i.series?.data?h.updateNavigatorSeries(!1):0===t.series.length&&(h.unbindRedraw=N(t,"beforeRedraw",function(){t.series.length>0&&!h.series&&(h.setBaseSeries(),h.unbindRedraw?.())})),h.reversedExtremes=t.inverted&&!h.xAxis.reversed||!t.inverted&&h.xAxis.reversed,h.renderElements(),h.addMouseEvents()}else h.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,i){let s=t.xAxis[0],o=s.getExtremes(),r=s.len-2*l,n=t5("min",s.options.min,o.dataMin),a=t5("max",s.options.max,o.dataMax)-n;return i?e*a/r+n:r*(e-n)/a},toPixels:function(t){return this.translate(t)}
1,toValue:function(t){return this.translate(t,!0)}},h.xAxis.navigatorAxis.axis=h.xAxis,h.xAxis.navigatorAxis.toFixedRange=tN.prototype.toFixedRange.bind(h.xAxis.navigatorAxis);if(t.options.scrollbar?.enabled){let e=K(t.options.scrollbar,{vertical:t.inverted});j(e.margin)||(e.margin=t.inverted?-3:3),t.scrollbar=h.scrollbar=new t0(t.renderer,e,t),N(h.scrollbar,"changed",function(t){let e=h.size,i=e*this.to,s=e*this.from;h.hasDragged=h.scrollbar?.hasDragged,h.render(0,0,s,i),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){h.onMouseUp(t)})})}h.addBaseSeriesEvents(),h.addChartEvents()}setOpposite(){let t=this.navigatorOptions,e=this.navigatorEnabled,i=this.chart;this.opposite=Z(t.opposite,!!(!e&&i.inverted))}getUnionExtremes(t){let e,i=this.chart.xAxis[0],s=this.chart.time,o=this.xAxis,r=o.options,n=i.options;return t&&null===i.dataMin||(e={dataMin:Z(s.parse(r?.min),t5("min",s.parse(n.min),i.dataMin,o.dataMin,o.min)),dataMax:Z(s.parse(r?.max),t5("max",s.parse(n.max),i.dataMax,o.dataMax,o.max))}),e}setBaseSeries(t,e){let i=this.chart,s=this.baseSeries=[];t=t||i.options.navigator?.baseSeries||(i.series.length?Y(i.series,t=>!t.options.isInternal).index:0),(i.series||[]).forEach((e,i)=>{!e.options.isInternal&&(e.options.showInNavigator||(i===t||e.options.id===t)&&!1!==e.options.showInNavigator)&&s.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)}updateNavigatorSeries(t,e){let i=this,s=i.chart,o=i.baseSeries,r={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:this.navigatorOptions.xAxis?.id,yAxis:this.navigatorOptions.yAxis?.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},n=i.series=(i.series||[]).filter(t=>{let e=t.baseSeries;return!(e&&0>o.indexOf(e))||(e&&(tt(e,"updatedData",i.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),!1)}),a,l,h=i.navigatorOptions.series,d;o&&o.length&&o.forEach(t=>{let c=t.navigatorSeries,p=X({color:t.color,visible:t.visible},_(h)?t1.navigator.series:h);if(c&&!1===i.navigatorOptions.adaptToUpdatedData)return;r.name="Navigator "+o.length,d=(a=t.options||{}).navigatorOptions||{},p.dataLabels=te(p.dataLabels),(l=K(a,r,p,d)).pointRange=Z(p.pointRange,d.pointRange,t1.plotOptions[l.type||"line"]?.pointRange);let u=d.data||p.data;i.hasNavigatorData=i.hasNavigatorData||!!u,l.data=u||a.data?.slice(0),c&&c.options?c.update(l,e):(t.navigatorSeries=s.initSeries(l),s.setSortedData(),t.navigatorSeries.baseSeries=t,n.push(t.navigatorSeries))}),(h?.data&&!(o&&o.length)||_(h))&&(i.hasNavigatorData=!1,(h=te(h)).forEach((t,e)=>{r.name="Navigator "+(n.length+1),(l=K(t1.navigator?.series,{color:s.series[e]&&!s.series[e].options.isInternal&&s.series[e].color||s.options.colors?.[e]||s.options.colors?.[0]},r,t)).data=t.data,l.data&&(i.hasNavigatorData=!0,n.push(s.initSeries(l)))})),t&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let t=this,e=t.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(N(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(i=>{i.eventsToUnbind.push(N(i,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),i.eventsToUnbind.push(N(i,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&i.xAxis&&i.eventsToUnbind.push(N(i,"updatedData",this.updatedDataHandler)),i.eventsToUnbind.push(N(i,"remove",function(){e&&W(e,i),this.navigatorSeries&&t.series&&(W(t.series,this.navigatorSeries),z(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(t){return this.baseSeries.reduce(function(t,e){return Math.min(t,e.getColumn("x")[0]??t)},t)}modifyNavigatorAxisExtremes(){let t=this.xAxis;if(void 0!==t.getExtremes){let e=this.getUnionExtremes(!0);e&&(e.dataMin!==t.min||e.dataMax!==t.max)&&(t.min=e.dataMin,t.max=e.dataMax)}}modifyBaseAxisExtremes(){let t,e,i=this.chart.navigator,s=this.getExtremes(),o=s.min,r=s.max,n=s.dataMin,a=s.dataMax,l=r-o,h=i?.stickToMin,d=i?.stickToMax,c=Z(this.ordinal?.convertOverscroll(this.options.overscroll),0),p=i.series&&i.series[0],u=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(h&&(t=(e=n)+l),d&&(t=a+c,h||(e=Math.max(n,t-l,i.getBaseSeriesMin(p&&p.xData?p.xData[0]:-Number.MAX_VALUE)))),u&&(h||d)&&j(e)&&(this.min=this.userMin=e,this.max=this.userMax=t)),i.stickToMin=i.stickToMax=null}updatedDataHandler(){let t=this.chart.navigator,e=this.navigatorSeries,i=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=Z(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,i),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.getColumn("x")[0],e.setData(this.options.data,!1,void 0,!1))}shouldStickToMin(t,e){let i=e.getBaseSeriesMin(t.getColumn("x")[0]),s=t.xAxis,o=s.max,r=s.min,n=s.options.range;return!!(j(o)&&j(r))&&(n&&o-i>0?o-i<n:r<=i)}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(N(this.chart,"redraw",function(){let t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)}),N(this.chart,"getMargins",function(){let t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.he
1ight+(this.scrollbar?.options.margin||0)+t.scrollbarHeight:0)+(t.navigatorOptions.margin||0)}),N(this,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))}destroy(){this.removeEvents(),this.xAxis&&(W(this.chart.xAxis,this.xAxis),W(this.chart.axes,this.xAxis)),this.yAxis&&(W(this.chart.yAxis,this.yAxis),W(this.chart.axes,this.yAxis)),(this.series||[]).forEach(t=>{t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(t=>{this[t]&&this[t].destroy&&this[t].destroy(),this[t]=null}),[this.handles].forEach(t=>{H(t)}),this.baseSeries.forEach(t=>{t.navigatorSeries=void 0}),this.navigatorEnabled=!1}}let t6={rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→",rangeSelector:{allText:"All",allTitle:"View all",monthText:"{count}m",monthTitle:"View {count} {#eq count 1}month{else}months{/eq}",yearText:"{count}y",yearTitle:"View {count} {#eq count 1}year{else}years{/eq}",ytdText:"YTD",ytdTitle:"View year to date"}},t4={allButtonsEnabled:!1,buttons:[{type:"month",count:1},{type:"month",count:3},{type:"month",count:6},{type:"ytd"},{type:"year",count:1},{type:"all"}],buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%[ebY]",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#334eff",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"#666666",fontSize:"0.8em"}},{defaultOptions:t9}=A(),{composed:t8}=A(),t7=[];function et(){let t,e,i=this.range,s=i.type,o=this.max,r=this.chart.time,n=function(t,e){let i=r.toParts(t),o=i.slice();"year"===s?o[0]+=e:o[1]+=e;let n=r.makeTime.apply(r,o),a=r.toParts(n);return"month"===s&&i[1]===a[1]&&1===Math.abs(e)&&(o[0]=i[0],o[1]=i[1],o[2]=0),(n=r.makeTime.apply(r,o))-t};j(i)?(t=o-i,e=i):i&&(t=o+n(o,-(i.count||1)),this.chart&&this.chart.setFixedRange(o-t));let a=Z(this.dataMin,5e-324);return j(t)||(t=a),t<=a&&(t=a,void 0===e&&(e=n(t,i.count)),this.newMax=Math.min(t+e,Z(this.dataMax,Number.MAX_VALUE))),j(o)?!j(i)&&i&&i._offsetMin&&(t+=i._offsetMin):t=void 0,t}function ee(){this.rangeSelector?.redrawElements()}function ei(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new e(this))}function es(){let t=this.rangeSelector;if(t){j(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick);let e=t.options.verticalAlign;t.options.floating||("bottom"===e?this.extraBottomMargin=!0:"top"===e&&(this.extraTopMargin=!0))}}function eo(){let t,e=this.rangeSelector;if(!e)return;let i=this.xAxis[0].getExtremes(),s=this.legend,o=e&&e.options.verticalAlign;j(i.min)&&e.render(i.min,i.max),s?.display&&"top"===o&&o===s.options.verticalAlign&&(t=K(this.spacingBox),"vertical"===s.options.layout?t.y=this.plotTop:t.y+=e.getHeight(),s.group.placed=!1,s.align(t))}function er(){for(let t=0,e=t7.length;t<e;++t){let e=t7[t];
1if(e[0]===this){e[1].forEach(t=>t()),t7.splice(t,1);return}}}function en(){let t=this.rangeSelector;if(t?.options?.enabled){let{min:e,max:i}=this.xAxis[0].getExtremes();j(e)&&t.inputGroup&&t.inputGroup.getBBox().width<20&&t.render(e,i);let s=t.getHeight(),o=t.options.verticalAlign;t.options.floating||("bottom"===o?this.marginBottom+=s:"middle"!==o&&(this.plotTop+=s))}}function ea(t){let i=t.options.rangeSelector,s=this.extraBottomMargin,o=this.extraTopMargin,r=this.rangeSelector;if(i&&i.enabled&&!z(r)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=r=new e(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,r){let t=i&&i.verticalAlign||r.options&&r.options.verticalAlign;r.options.floating||("bottom"===t?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0)),(this.extraBottomMargin!==s||this.extraTopMargin!==o)&&(this.isDirtyBox=!0)}}let el=function(t,i,s){if(e=s,J(t8,"RangeSelector")){let e=i.prototype;t.prototype.minFromRange=et,N(i,"afterGetContainer",ei),N(i,"beforeRender",es),N(i,"destroy",er),N(i,"getMargins",en),N(i,"redraw",eo),N(i,"update",ea),N(i,"beforeRedraw",ee),e.callbacks.push(eo),X(t9,{rangeSelector:t4}),X(t9.lang,t6)}};var eh=w(28),ed=w.n(eh),ec=w(984),ep=w.n(ec);let{defaultOptions:eu}=A(),{format:eg}=ep();function ef(t){let e=e=>RegExp(`%[[a-zA-Z]*${e}`).test(t);if(U(t)?-1!==t.indexOf("%L"):t.fractionalSecondDigits)return"text";let i=U(t)?["a","A","d","e","w","b","B","m","o","y","Y"].some(e):t.dateStyle||t.day||t.month||t.year,s=U(t)?["H","k","I","l","M","S"].some(e):t.timeStyle||t.hour||t.minute||t.second;return i&&s?"datetime-local":i?"date":s?"time":"text"}class em{static compose(t,e){el(t,e,em)}constructor(t){this.isDirty=!1,this.buttonOptions=[],this.initialButtonGroupWidth=0,this.maxButtonWidth=()=>{let t=0;return this.buttons.forEach(e=>{let i=e.getBBox();i.width>t&&(t=i.width)}),t},this.init(t)}clickButton(t,e){let i=this.chart,s=this.buttonOptions[t],o=i.xAxis[0],r=i.scroller&&i.scroller.getUnionExtremes()||o||{},n=s.type,a=s.dataGrouping,l=r.dataMin,h=r.dataMax,d,c=j(o?.max)?Math.round(Math.min(o.max,h??o.max)
vendor: 26,431 bytes, line 1
1):void 0,p,u=s._range,g,f,m,x=!0;if(null!==l&&null!==h){if(this.setSelected(t),a&&(this.forcedDataGrouping=!0,tb().prototype.setDataGrouping.call(o||{chart:this.chart},a,!1),this.frozenStates=s.preserveDataGrouping),"month"===n||"year"===n)o?(f={range:s,max:c,chart:i,dataMin:l,dataMax:h},d=o.minFromRange.call(f),j(f.newMax)&&(c=f.newMax),x=!1):u=s;else if(u)j(c)&&(c=Math.min((d=Math.max(c-u,l))+u,h),x=!1);else if("ytd"===n)if(o)!o.hasData()||j(h)&&j(l)||(l=Number.MAX_VALUE,h=-Number.MAX_VALUE,i.series.forEach(t=>{let e=t.getColumn("x");e.length&&(l=Math.min(e[0],l),h=Math.max(e[e.length-1],h))}),e=!1),j(h)&&j(l)&&(d=g=(m=this.getYTDExtremes(h,l)).min,c=m.max);else{this.deferredYTDClick=t;return}else"all"===n&&o&&(i.navigator&&i.navigator.baseSeries[0]&&(i.navigator.baseSeries[0].xAxis.options.range=void 0),d=l,c=h);if(x&&s._offsetMin&&z(d)&&(d+=s._offsetMin),s._offsetMax&&z(c)&&(c+=s._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),o)(j(d)||j(c))&&(o.setExtremes(d,c,Z(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:s}),i.setFixedRange(s._range));else{p=te(i.options.xAxis||{})[0];let t=N(i,"afterCreateAxes",function(){let t=i.xAxis[0];t.range=t.options.range=u,t.min=t.options.min=g});N(i,"load",function(){let e=i.xAxis[0];i.setFixedRange(s._range),e.options.range=p.range,e.options.min=p.min,t()})}G(this,"afterBtnClick")}}setSelected(t){this.selected=this.options.selected=t}init(t){let e=this,i=t.options.rangeSelector,s=t.options.lang,o=i.buttons,r=i.selected,n=function(){let t=e.minInput,i=e.maxInput;t&&t.blur&&G(t,"blur"),i&&i.blur&&G(i,"blur")};e.chart=t,e.options=i,e.buttons=[],e.buttonOptions=o.map(t=>(t.type&&s.rangeSelector&&(t.text??(t.text=s.rangeSelector[`${t.type}Text`]),t.title??(t.title=s.rangeSelector[`${t.type}Title`])),t.text=eg(t.text,{count:t.count||1}),t.title=eg(t.title,{count:t.count||1}),t)),this.eventsToUnbind=[],this.eventsToUnbind.push(N(t.container,"mousedown",n)),this.eventsToUnbind.push(N(t,"resize",n)),o.forEach(e.computeButtonRange),void 0!==r&&o[r]&&this.clickButton(r,!1),this.eventsToUnbind.push(N(t,"load",function(){t.xAxis&&t.xAxis[0]&&N(t.xAxis[0],"setExtremes",function(i){j(this.max)&&j(this.min)&&this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==i.trigger&&"updatedData"!==i.trigger&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()}updateButtonStates(){let t=this,e=this.chart,i=this.dropdown,s=this.dropdownLabel,o=e.xAxis[0],r=Math.round(o.max-o.min),n=!o.hasVisibleSeries,a=24*36e5,l=e.scroller&&e.scroller.getUnionExtremes()||o,h=l.dataMin,d=l.dataMax,c=t.getYTDExtremes(d,h),p=c.min,u=c.max,g=t.selected,f=t.options.allButtonsEnabled,m=Array(t.buttonOptions.length).fill(0),x=j(g),b=t.buttons,y=!1,v=null;t.buttonOptions.forEach((e,i)=>{let s=e._range,l=e.type,c=e.count||1,b=e._offsetMax-e._offsetMin,w=i===g,M=s>d-h,k=s<o.minRange,A=!1,P=s===r;if(w&&M&&(y=!0),o.isOrdinal&&o.ordinal?.positions&&s&&r<s){let t=o.ordinal.positions;t[t.length-1]-t[0]>s&&(P=!0)}else("month"===l||"year"===l)&&r+36e5>=({month:28,year:365})[l]*a*c-b&&r-36e5<=({month:31,year:366})[l]*a*c+b?P=!0:"ytd"===l?(P=u-p+b===r,A=!w):"all"===l&&(P=o.max-o.min>=d-h);let E=!f&&!(y&&"all"===l)&&(M||k||n),S=y&&"all"===l||!A&&P||w&&t.frozenStates;E?m[i]=3:S&&(!x||i===g)&&(v=i)}),null!==v?(m[v]=2,t.setSelected(v),this.dropdown&&(this.dropdown.selectedIndex=v+1)):(t.setSelected(),this.dropdown&&(this.dropdown.selectedIndex=-1),s&&(s.setState(0),s.attr({text:(eu.lang.rangeSelectorZoom||"")+" ▾"})));for(let e=0;e<m.length;e++){let o=m[e],r=b[e];if(r.state!==o&&(r.setState(o),i)){i.options[e+1].disabled=3===o,2===o&&(s&&(s.setState(2),s.attr({text:t.buttonOptions[e].text+" ▾"})),i.selectedIndex=e+1);let r=s.getBBox();F(i,{width:`${r.width}px`,height:`${r.height}px`})}}}computeButtonRange(t){let e=t.type,i=t.count||1,s={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};s[e]?t._range=s[e]*i:("month"===e||"year"===e)&&(t._range=24*({month:30,year:365})[e]*36e5*i),t._offsetMin=Z(t.offsetMin,0),t._offsetMax=Z(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin}getInputValue(t){let e="min"===t?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,s=this.chart.time;return e?("text"===e.type&&i.inputDateParser||this.defaultInputDateParser)(e.value,"UTC"===s.timezone,s):0}setInputValue(t,e){let i=this.options,s=this.chart.time,o="min"===t?this.minInput:this.maxInput,r="min"===t?this.minDateBox:this.maxDateBox;if(o){o.setAttribute("type",ef(i.inputDateFormat||"%e %b %Y"));let t=o.getAttribute("data-hc-time"),n=z(t)?Number(t):void 0;if(z(e)){let t=n;z(t)&&o.setAttribute("data-hc-time-previous",t),o.setAttribute("data-hc-time",e),n=e}o.value=s.dateFormat(this.inputTypeFormats[o.type]||i.inputEditDateFormat,n),r&&r.attr({text:s.dateFormat(i.inputDateFormat,n)})}}setInputExtremes(t,e,i){let s="min"===t?this.minInput:this.maxInput;if(s){let t=this.inputTypeFormats[s.type],o=this.chart.time;if(t){let r=o.dateFormat(t,e);s.min!==r&&(s.min=r);let n=o.dateFormat(t,i);s.max!==n&&(s.max=n)}}}showInput(t){let e="min"===t?this.minDateBox:this.maxDateBox,i="min"===t?this.minInput:this.maxInput;if(i&&e&&this.inputGroup){let t="text"===i.type,{translateX:s=0,translateY:o=0}=this.inputGroup,{x:r=0,width:n=0,height:a=0}=e,{inputBoxWidth:l}=this.options;F(i,{width:t?n+(l?-2:20)+"px":"auto",height:a-2+"px",border:"2px solid silver"}),t&&l?F(i,{left:s+r+"px",top:o+"px"}):F(i,{left:Math.min(Math.round(r+s-(i.offsetWidth-n)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:o-(i.offsetHeight-a)/2+"px"})}}hideInput(t){let e="min"===t?this.minInput:this.maxInput;e&&F(e,{top:"-9999em",border:0,width:"1px",height:"1px"})}defaultInputDateParser(t,e,i){return i?.parse(t)||0}drawInput(t){let{chart:e,div:i,inputGroup:s}=this,o=this,r=e.renderer.style||{},n=e.renderer,a=e.options.rangeSelector,l=eu.lang,h="min"===t;function d(t){let{maxInput:i,minInput:s}=o,r=e.xAxis[0],n=e.scroller?.getUnionExtremes()||r,a=n.dataMin,l=n.dataMax,d=e.xAxis[0].getExtremes()[t],c=o.getInputValue(t);j(c)&&c!==d&&(h&&i&&j(a)?c>Number(i.getAttribute("data-hc-time"))?c=void 0:c<a&&(c=a):s&&j(l)&&(c<Number(s.getAttribute("data-hc-time"))?c=void 0:c>l&&(c=l)),void 0!==c&&r.setExtremes(h?c:r.min,h?r.max:c,void 0,void 0,{trigger:"rangeSelectorInput"}))}let c=l[h?"rangeSelectorFrom":"rangeSelectorTo"]||"",p=n.label(c,0).addClass("highcharts-range-label").attr({padding:2*!!c,height:c?a.inputBoxHeight:0}).add(s),u=n.label("",0).addClass("highcharts-range-input").attr({padding:2,width:a.inputBoxWidth,height:a.inputBoxHeight,"text-align":"center"}).on("click",function(){o.showInput(t),o[t+"Input"].focus()});e.styledMode||u.attr({stroke:a.inputBoxBorderColor,"stroke-width":1}),u.add(s);let g=B("input",{name:t,className:"highcharts-range-selector"},void 0,i);g.setAttribute("type",ef(a.inputDateFormat||"%e %b %Y")),e.styledMode||(p.css(K(r,a.labelStyle)),u.css(K({color:"#333333"},r,a.inputStyle)),F(g,X({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:r.fontSize,fontFamily:r.fontFamily,top:"-9999em"},a.inputStyle))),g.onfocus=()=>{o.showInput(t)},g.onblur=()=>{g===A().doc.activeElement&&d(t),o.hideInput(t),o.setInputValue(t),g.blur()};let f=!1;return g.onchange=()=>{f||(d(t),o.hideInput(t),g.blur())},g.onkeypress=e=>{13===e.keyCode&&d(t)},g.onkeydown=e=>{f=!0,("ArrowUp"===e.key||"ArrowDown"===e.key||"Tab"===e.key)&&d(t)},g.onkeyup=()=>{f=!1},{dateBox:u,input:g,label:p}}getPosition(){let t=this.chart,e=t.options.rangeSelector,i="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0;return{buttonTop:i+e.buttonPosition.y,inputTop:i+e.inputPosition.y-10}}getYTDExtremes(t,e){let i=this.chart.time,s=i.toParts(t)[0];return{max:t,min:Math.max(e,i.makeTime(s,0))}}createElements(){let t=this.chart,e=t.renderer,i=t.container,s=t.options,o=s.rangeSelector,r=o.inputEnabled,n=Z(s.chart.style?.zIndex,0)+1;!1!==o.enabled&&(this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=B("div",void 0,{position:"relative",height:0,zIndex:n}),this.buttonOptions.length&&this.renderButtons(),i.parentNode&&i.parentNode.insertBefore(this.div,i),r&&this.createInputs())}createInputs(){this.inputGroup=this.chart.renderer.g("input-group").add(this.group);let t=this.drawInput("min");this.minDateBox=t.dateBox,this.minLabel=t.label,this.minInput=t.input;let e=this.drawInput("max");this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input}render(t,e){if(!1===this.options.enabled)return;let i=this.chart,s=i.options.rangeSelector;if(s.inputEnabled){this.inputGroup||this.createInputs(),this.setInputValue("min",t),this.setInputValue("max",e),this.chart.styledMode||(this.maxLabel?.css(s.labelStyle),this.minLabel?.css(s.labelStyle));let o=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(z(o.dataMin)&&z(o.dataMax)){let t=i.xAxis[0].minRange||0;this.setInputExtremes("min",o.dataMin,Math.min(o.dataMax,this.getInputValue("max"))-t),this.setInputExtremes("max",Math.max(o.dataMin,this.getInputValue("min"))+t,o.dataMax)}if(this.inputGroup){let t=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(e=>{if(e){let{width:i}=e.getBBox();i&&(e.attr({x:t}),t+=i+s.inputSpacing)}})}}else this.inputGroup&&(this.inputGroup.destroy(),delete this.inputGroup);!this.chart.styledMode&&this.zoomText&&this.zoomText.css(s.labelStyle),this.alignElements(),this.updateButtonStates()}renderButtons(){var t;let{chart:e,options:i}=this,s=eu.lang,o=e.renderer,r=K(i.buttonTheme),n=r&&r.states;delete r.width,delete r.states,this.buttonGroup=o.g("range-selector-buttons").add(this.group);let a=this.dropdown=B("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),l=e.userOptions.rangeSelector?.buttonTheme;this.dropdownLabel=o.button("",0,0,()=>{},K(r,{"stroke-width":Z(r["stroke-width"],0),width:"auto",paddingLeft:Z(i.buttonTheme.paddingLeft,l?.padding,8),paddingRight:Z(i.buttonTheme.paddingRight,l?.padding,8)}),n&&n.hover,n&&n.select,n&&n.disabled).hide().add(this.group),N(a,"touchstart",()=>{a.style.fontSize="16px"});let h=A().isMS?"mouseover":"mouseenter",d=A().isMS?"mouseout":"mouseleave";N(a,h,()=>{G(this.dropdownLabel.element,h)}),N(a,d,()=>{G(this.dropdownLabel.element,d)}),N(a,"change",()=>{G(this.buttons[a.selectedIndex-1].element,"click")}),this.zoomText=o.label(s.rangeSelectorZoom||"",0).attr({padding:i.buttonTheme.padding,height:i.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(i.labelStyle),(t=i.buttonTheme)["stroke-width"]??(t["stroke-width"]=0)),B("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,a),this.createButtons()}createButtons(){let{options:t}=this,e=K(t.buttonTheme),i=e&&e.states,s=e.width||28;delete e.width,delete e.states,this.buttonOptions.forEach((t,e)=>{this.createButton(t,e,s,i)})}createButton(t,e,i,s){let{dropdown:o,buttons:r,chart:n,options:a}=this,l=n.renderer,h=K(a.buttonTheme);o?.add(B("option",{textContent:t.title||t.text}),e+2),r[e]=l.button(t.text??"",0,0,i=>{let s,o=t.events&&t.events.click;o&&(s=o.call(t,i)),!1!==s&&this.clickButton(e),this.isActive=!0},h,s&&s.hover,s&&s.select,s&&s.disabled).attr({"text-align":"center",width:i}).add(this.buttonGroup),t.title&&r[e].attr("title",t.title)}alignElements(){let{buttonGroup:t,buttons:e,chart:i,group:s,inputGroup:o,options:r,zoomText:n}=this,a=i.options,l=a.exporting&&!1!==a.exporting.enabled&&a.navigation&&a.navigation.buttonOptions,{buttonPosition:h,inputPosition:d,verticalAlign:c}=r,p=(t,e,s)=>l&&this.titleCollision(i)&&"top"===c&&s&&e.y-t.getBBox().height-12<(l.y||0)+(l.height||0)+i.spacing[0]?-40:0,u=i.plotLeft;if(s&&h&&d){let a=h.x-i.spacing[3];if(t){if(this.positionButtons(),!this.initialButtonGroupWidth){let t=0;n&&(t+=n.getBBox().width+5),e.forEach((i,s)=>{t+=i.width||0,s!==e.length-1&&(t+=r.buttonSpacing)}),this.initialButtonGroupWidth=t}u-=i.spacing[3];let o=p(t,h,"right"===h.align||"right"===d.align);this.alignButtonGroup(o),this.buttonGroup?.translateY&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),s.placed=t.placed=i.hasLoaded}let l=0;r.inputEnabled&&o&&(l=p(o,d,"right"===h.align||"right"===d.align),"left"===d.align?a=u:"right"===d.align&&(a=-Math.max(i.axisOffset[1],-l)),o.align({y:d.y,width:o.getBBox().width,align:d.align,x:d.x+a-2},!0,i.spacingBox),o.placed=i.hasLoaded),this.handleCollision(l),s.align({verticalAlign:c},!0,i.spacingBox);let g=s.alignAttr.translateY,f=s.getBBox().height+20,m=0;if("bottom"===c){let t=i.legend&&i.legend.options;m=g-(f=f+(t&&"bottom"===t.verticalAlign&&t.enabled&&!t.floating?i.legend.legendHeight+Z(t.margin,10):0)-20)-(r.floating?0:r.y)-(i.titleOffset?i.titleOffset[2]:0)-10}"top"===c?(r.floating&&(m=0),i.titleOffset&&i.titleOffset[0]&&(m=i.titleOffset[0]),m+=i.margin[0]-i.spacing[0]||0):"middle"===c&&(d.y===h.y?m=g:(d.y||h.y)&&(d.y<0||h.y<0?m-=Math.min(d.y,h.y):m=g-f)),s.translate(r.x,r.y+Math.floor(m));let{minInput:x,maxInput:b,dropdown:y}=this;r.inputEnabled&&x&&b&&(x.style.marginTop=s.translateY+"px",b.style.marginTop=s.translateY+"px"),y&&(y.style.marginTop=s.translateY+"px")}}redrawElements(){let t=this.chart,{inputBoxHeight:e,inputBoxBorderColor:i}=this.options;if(this.maxDateBox?.attr({height:e}),this.minDateBox?.attr({height:e}),t.styledMode||(this.maxDateBox?.attr({stroke:i}),this.minDateBox?.attr({stroke:i})),this.isDirty){this.isDirty=!1,this.isCollapsed=void 0;let t=this.options.buttons??[],e=Math.min(t.length,this.buttonOptions.length),{dropdown:i,options:s}=this,o=K(s.buttonTheme),r=o&&o.states,n=o.width||28;if(t.length<this.buttonOptions.length)for(let e=this.buttonOptions.length-1;e>=t.length;e--){let t=this.buttons.pop();t?.destroy(),this.dropdown?.options.remove(e+1)}for(let s=e-1;s>=0;s--){let e=t[s];this.buttons[s].destroy(),i?.options.remove(s+1),this.createButton(e,s,n,r),this.computeButtonRange(e)}if(t.length>this.buttonOptions.length)for(let e=this.buttonOptions.length;e<t.length;e++)this.createButton(t[e],e,n,r),this.computeButtonRange(t[e]);this.buttonOptions=this.options.buttons??[],z(this.options.selected)&&this.buttons.length&&this.clickButton(this.options.selected,!1)}}alignButtonGroup(t,e){let{chart:i,options:s,buttonGroup:o,dropdown:r,dropdownLabel:n}=this,{buttonPosition:a}=s,l=i.plotLeft-i.spacing[3],h=a.x-i.spacing[3],d=i.plotLeft;"right"===a.align?(h+=t-l,this.hasVisibleDropdown&&(d=i.chartWidth+t-this.maxButtonWidth()-20)):"center"===a.align&&(h-=l/2,this.hasVisibleDropdown&&(d=i.chartWidth/2-this.maxButtonWidth())),r&&F(r,{left:d+"px",top:o?.translateY+"px"}),n?.attr({x:d}),o&&o.align({y:a.y,width:Z(e,this.initialButtonGroupWidth),align:a.align,x:h},!0,i.spacingBox)}positionButtons(){let{buttons:t,chart:e,options:i,zoomText:s}=this,o=e.hasLoaded?"animate":"attr",{buttonPosition:r}=i,n=e.plotLeft,a=n;s&&"hidden"!==s.visibility&&(s[o]({x:Z(n+r.x,n)}),a+=r.x+s.getBBox().width+5);for(let e=0,s=this.buttonOptions.length;e<s;++e)"hidden"!==t[e].visibility?(t[e][o]({x:a}),a+=(t[e].width||0)+i.buttonSpacing):t[e][o]({x:n})}handleCollision(t){let{chart:e,buttonGroup:i,inputGroup:s,initialButtonGroupWidth:o}=this,{buttonPosition:r,dropdown:n,inputPosition:a}=this.options,l=()=>{s&&i&&s.attr({translateX:s.alignAttr.translateX+(e.axisOffset[1]>=-t?0:-t),translateY:s.alignAttr.translateY+i.getBBox().height+10})};s&&i?a.align===r.align?(l(),o>e.plotWidth+t-20?this.collapseButtons():this.expandButtons()):o-t+s.getBBox().width>e.plotWidth?"responsive"===n||"always"===n?this.collapseButtons():l():this.expandButtons():i&&"responsive"===n&&(o>e.plotWidth?this.collapseButtons():this.expandButtons()),i&&("always"===n&&this.collapseButtons(),"never"===n&&this.expandButtons()),this.alignButtonGroup(t)}collapseButtons(){let{buttons:t,zoomText:e}=this;!0!==this.isCollapsed&&(this.isCollapsed=!0,e.hide(),t.forEach(t=>void t.hide()),this.showDropdown())}expandButtons(){let{buttons:t,zoomText:e}=this;!1!==this.isCollapsed&&(this.isCollapsed=!1,this.hideDropdown(),e.show(),t.forEach(t=>void t.show()),this.positionButtons())}showDropdown(){let{buttonGroup:t,dropdownLabel:e,dropdown:i}=this;t&&i&&(e.show(),F(i,{visibility:"inherit"}),this.hasVisibleDropdown=!0)}hideDropdown(){let{dropdown:t}=this;t&&(this.dropdownLabel.hide(),F(t,{visibility:"hidden"}),this.hasVisibleDropdown=!1)}getHeight(){let t=this.options,e=this.group,i=t.inputPosition,s=t.buttonPosition,o=t.y,r=s.y,n=i.y,a=0;if(t.height)return t.height;this.alignElements(),a=e?e.getBBox(!0).height+13+o:0;let l=Math.min(n,r);return(n<0&&r<0||n>0&&r>0)&&(a+=Math.abs(l)),a}titleCollision(t){return!(t.options.title.text||t.options.subtitle.text)}update(t,e=!0){let i=this.chart;if(K(!0,this.options,t),this.options.selected&&this.options.selected>=this.options.buttons.length&&(this.options.selected=void 0,i.options.rangeSelector.selected=void 0),z(t.enabled))return this.destroy(),this.init(i);this.isDirty=!!t.buttons||!!t.buttonTheme,e&&this.render()}destroy(){let t=this,e=t.minInput,i=t.maxInput;t.eventsToUnbind&&(t.eventsToUnbind.forEach(t=>t()),t.eventsToUnbind=void 0),H(t.buttons),e&&(e.onfocus=e.onblur=e.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),$(t,function(e,i){e&&"chart"!==i&&(e instanceof ed()?e.destroy():e instanceof window.HTMLElement&&e?.parentElement?.removeChild(e),delete t[i]),e!==em.prototype[i]&&(t[i]=null)},this),this.buttons=[]}}X(em.prototype,{inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});let{min:ex,max:eb,abs:ey}=Math;function ev(t,e,i){let s=e-1e-7,o=i||0,r=t.length-1,n,a;for(;o<=r;)if((a=s-t[n=r+o>>1].xMin)>0)o=n+1;else{if(!(a<0))return n;r=n-1}return o>0?o-1:0}function ew(t,e){let i=ev(t,e.x+1)+1;for(;i--;){var s;if(t[i].xMax>=e.x&&(s=t[i],e.x<=s.xMax&&e.x>=s.xMin&&e.y<=s.yMax&&e.y>=s.yMin))return i}return -1}function eM(t){let e=[];if(t.length){e.push(["M",t[0].start.x,t[0].start.y]);for(let i=0;i<t.length;++i)e.push(["L",t[i].end.x,t[i].end.y])}return e}function ek(t,e){t.yMin=eb(t.yMin,e.yMin),t.yMax=ex(t.yMax,e.yMax),t.xMin=eb(t.xMin,e.xMin),t.xMax=ex(t.xMax,e.xMax)}let eA=function(t,e,i){let s=[],o=i.chartObstacles,r=ew(o,t),n=ew(o,e),a,l=Z(i.startDirectionX,ey(e.x-t.x)>ey(e.y-t.y))?"x":"y",h,d,c,p;function u(t,e,i,s,o){let r={x:t.x,y:t.y};return r[e]=i[s||e]+(o||0),r}function g(t,e,i){let s=ey(e[i]-t[i+"Min"])>ey(e[i]-t[i+"Max"]);return u(e,i,t,i+(s?"Max":"Min"),s?1:-1)}n>-1?(a={start:d=g(o[n],e,l),end:e},p=d):p=e,r>-1&&(d=g(h=o[r],t,l),s.push({start:t,end:d}),d[l]>=t[l]==d[l]>=p[l]&&(c=t[l="y"===l?"x":"y"]<e[l],s.push({start:d,end:u(d,l,h,l+(c?"Max":"Min"),c?1:-1)}),l="y"===l?"x":"y"));let f=s.length?s[s.length-1].end:t;d=u(f,l,p),s.push({start:f,end:d});let m=u(d,l="y"===l?"x":"y",p);return s.push({start:d,end:m}),s.push(a),{path:function(t,e){let i=[];for(let s=0;s<t.length;s++){let o=t[s][1],r=t[s][2];if("number"==typeof o&&"number"==typeof r)if(0===s)i.push(["M",o,r]);else if(s===t.length-1)i.push(["L",o,r]);else if(e){let n=t[s-1],a=t[s+1];if(n&&a){let t=n[1],s=n[2],l=a[1],h=a[2];if("number"==typeof t&&"number"==typeof l&&"number"==typeof s&&"number"==typeof h&&t!==l&&s!==h){let n=t<l?1:-1,a=s<h?1:-1;i.push(["L",o-n*Math.min(Math.abs(o-t),e),r-a*Math.min(Math.abs(r-s),e)],["C",o,r,o,r,o+n*Math.min(Math.abs(o-l),e),r+a*Math.min(Math.abs(r-h),e)])}}}else i.push(["L",o,r])}return i}(eM(s),i.radius),obstacles:s}};function eP(t,e,i){let s=Z(i.startDirectionX,ey(e.x-t.x)>ey(e.y-t.y)),o=s?"x":"y",r=[],n=i.obstacleMetrics,a=ex(t.x,e.x)-n.maxWidth-10,l=eb(t.x,e.x)+n.maxWidth+10,h=ex(t.y,e.y)-n.maxHeight-10,d=eb(t.y,e.y)+n.maxHeight+10,c,p,u,g=!1,f=i.chartObstacles,m=ev(f,l),x=ev(f,a);function b(t,e,i){let s,o,r,n,a=t.x<e.x?1:-1;t.x<e.x?(s=t,o=e):(s=e,o=t),t.y<e.y?(n=t,r=e):(n=e,r=t);let l=a<0?ex(ev(f,o.x),f.length-1):0;for(;f[l]&&(a>0&&f[l].xMin<=o.x||a<0&&f[l].xMax>=s.x);){if(f[l].xMin<=o.x&&f[l].xMax>=s.x&&f[l].yMin<=r.y&&f[l].yMax>=n.y){if(i)return{y:t.y,x:t.x<e.x?f[l].xMin-1:f[l].xMax+1,obstacle:f[l]};return{x:t.x,y:t.y<e.y?f[l].yMin-1:f[l].yMax+1,obstacle:f[l]}}l+=a}return e}function y(t,e,i,s,o){let r=o.soft,n=o.hard,a=s?"x":"y",l={x:e.x,y:e.y},h={x:e.x,y:e.y},d=t[a+"Max"]>=r[a+"Max"],c=t[a+"Min"]<=r[a+"Min"],p=t[a+"Max"]>=n[a+"Max"],u=t[a+"Min"]<=n[a+"Min"],g=ey(t[a+"Min"]-e[a]),f=ey(t[a+"Max"]-e[a]),m=10>ey(g-f)?e[a]<i[a]:f<g;h[a]=t[a+"Min"],l[a]=t[a+"Max"];let x=b(e,h,s)[a]!==h[a],y=b(e,l,s)[a]!==l[a];return m=x?!y||m:!y&&m,m=c?!d||m:!d&&m,m=u?!p||m:!p&&m}if((m=ew(f=f.slice(x,m+1),e))>-1){var v,w;let s,o;v=f[m],w=e,s=ex(v.xMax-w.x,w.x-v.xMin)<ex(v.yMax-w.y,w.y-v.yMin),o=y(v,w,t,s,{soft:i.hardBounds,hard:i.hardBounds}),u=s?{y:w.y,x:v[o?"xMax":"xMin"]+(o?1:-1)}:{x:w.x,y:v[o?"yMax":"yMin"]+(o?1:-1)},r.push({end:e,start:u}),e=u}for(;(m=ew(f,e))>-1;)p=e[o]-t[o]<0,(u={x:e.x,y:e.y})[o]=f[m][p?o+"Max":o+"Min"]+(p?1:-1),r.push({end:e,start:u}),e=u;return{path:eM(c=(c=function t(e,s,o){let r,n,c,p,u,m,x;if(e.x===s.x&&e.y===s.y)return[];let v=o?"x":"y",w=i.obstacleOptions.margin,M={soft:{xMin:a,xMax:l,yMin:h,yMax:d},hard:i.hardBounds};return(u=ew(f,e))>-1?(p=y(u=f[u],e,s,o,M),ek(u,i.hardBounds),x=o?{y:e.y,x:u[p?"xMax":"xMin"]+(p?1:-1)}:{x:e.x,y:u[p?"yMax":"yMin"]+(p?1:-1)},(m=ew(f,x))>-1&&(ek(m=f[m],i.hardBounds),x[v]=p?eb(u[v+"Max"]-w+1,(m[v+"Min"]+u[v+"Max"])/2):ex(u[v+"Min"]+w-1,(m[v+"Max"]+u[v+"Min"])/2),e.x===x.x&&e.y===x.y?(g&&(x[v]=p?eb(u[v+"Max"],m[v+"Max"])+1:ex(u[v+"Min"],m[v+"Min"])-1),g=!g):g=!1),n=[{start:e,end:x}]):(r=b(e,{x:o?s.x:e.x,y:o?e.y:s.y},o),n=[{start:e,end:{x:r.x,y:r.y}}],r[o?"x":"y"]!==s[o?"x":"y"]&&(p=y(r.obstacle,r,s,!o,M),ek(r.obstacle,i.hardBounds),c={x:o?r.x:r.obstacle[p?"xMax":"xMin"]+(p?1:-1),y:o?r.obstacle[p?"yMax":"yMin"]+(p?1:-1):r.y},o=!o,n=n.concat(t({x:r.x,y:r.y},c,o)))),n=n.concat(t(n[n.length-1].end,s,!o))}(t,e,s)).concat(r.reverse())),obstacles:c}}eA.requiresObstacles=!0,eP.requiresObstacles=!0;let eE={connectors:{type:"straight",radius:0,lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}},{setOptions:eS}=A();function eT(t){let e=t.shapeArgs;if(e)return{xMin:e.x||0,xMax:(e.x||0)+(e.width||0),yMin:e.y||0,yMax:(e.y||0)+(e.height||0)};let i=t.graphic&&t.graphic.getBBox();return i?{xMin:t.plotX-i.width/2,xMax:t.plotX+i.width/2,yMin:t.plotY-i.height/2,yMax:t.plotY+i.height/2}:null}!function(t){function e(t){let e,i,s=eT(this);switch(t.align){case"right":e="xMax";break;case"left":e="xMin"}switch(t.verticalAlign){case"top":i="yMin";break;case"bottom":i="yMax"}return{x:e?s[e]:(s.xMin+s.xMax)/2,y:i?s[i]:(s.yMin+s.yMax)/2}}function i(t,e){let i;return!z(e)&&(i=eT(this))&&(e={x:(i.xMin+i.xMax)/2,y:(i.yMin+i.yMax)/2}),Math.atan2(e.y-t.y,t.x-e.x)}function s(t,e,i){let s=2*Math.PI,o=eT(this),r=o.xMax-o.xMin,n=o.yMax-o.yMin,a=Math.atan2(n,r),l=r/2,h=n/2,d=o.xMin+l,c=o.yMin+h,p={x:d,y:c},u=t,g=1,f=!1,m=1,x=1;for(;u<-Math.PI;)u+=s;for(;u>Math.PI;)u-=s;return g=Math.tan(u),u>-a&&u<=a?(x=-1,f=!0):u>a&&u<=Math.PI-a?x=-1:u>Math.PI-a||u<=-(Math.PI-a)?(m=-1,f=!0):m=-1,f?(p.x+=m*l,p.y+=x*l*g):(p.x+=n/(2*g)*m,p.y+=x*h),i.x!==d&&(p.x=i.x),i.y!==c&&(p.y=i.y),{x:p.x+e*Math.cos(u),y:p.y-e*Math.sin(u)}}t.compose=function(t,o,r){let n=r.prototype;n.getPathfinderAnchorPoint||(t.prototype.callbacks.push(function(t){!1!==t.options.connectors.enabled&&((t.options.pathfinder||t.series.reduce(function(t,e){return e.options&&K(!0,e.options.connectors=e.options.connectors||{},e.options.pathfinder),t||e.options&&e.options.pathfinder},!1))&&(K(!0,t.options.connectors=t.options.connectors||{},t.options.pathfinder),(0,k.error)('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')),this.pathfinder=new o(this),this.pathfinder.update(!0))}),n.getMarkerVector=s,n.getPathfinderAnchorPoint=e,n.getRadiansToVector=i,eS(eE))}}(m||(m={}));let eC=m;var eL=w(260),eO=w.n(eL);let eN=Math.max,eI=Math.min;class eD{static compose(t,e){eC.compose(t,eD,e)}constructor(t){this.init(t)}init(t){this.chart=t,this.connections=[],N(t,"redraw",function(){this.pathfinder.update()})}update(t){let e=this.chart,i=this,s=i.connections;i.connections=[],e.series.forEach(function(t){t.visible&&!t.options.isInternal&&t.points.forEach(function(t){let s,o=t.options;o&&o.dependency&&(o.connect=o.dependency);let r=t.options?.connect?te(t.options.connect):[];t.visible&&!1!==t.isInside&&r.forEach(o=>{let r="string"==typeof o?o:o.to;r&&(s=e.get(r)),s instanceof eO()&&s.series.visible&&s.visible&&!1!==s.isInside&&i.connections.push(new tn(t,s,"string"==typeof o?{}:o))})})});for(let t=0,e,o,r=s.length,n=i.connections.length;t<r;++t){o=!1;let r=s[t];for(e=0;e<n;++e){let t=i.connections[e];if((r.options&&r.options.type)===(t.options&&t.options.type)&&r.fromPoint===t.fromPoint&&r.toPoint===t.toPoint){t.graphics=r.graphics,o=!0;break}}o||r.destroy()}delete this.chartObstacles,delete this.lineObstacles,i.renderConnections(t)}renderConnections(t){t?this.chart.series.forEach(function(t){let e=function(){let e=t.chart.pathfinder;(e&&e.connections||[]).forEach(function(e){e.fromPoint&&e.fromPoint.series===t&&e.render()}),t.pathfinderRemoveRenderEvent&&(t.pathfinderRemoveRenderEvent(),delete t.pathfinderRemoveRenderEvent)};!1===t.options.animation?e():t.pathfinderRemoveRenderEvent=N(t,"afterAnimate",e)}):this.connections.forEach(function(t){t.render()})}getChartObstacles(t){let e=this.chart.series,i=Z(t.algorithmMargin,0),s=[],o;for(let t=0,o=e.length;t<o;++t)if(e[t].visible&&!e[t].options.isInternal)for(let o=0,r=e[t].points.length,n,a;o<r;++o)(a=e[t].points[o]).visible&&(n=function(t){let e=t.shapeArgs;if(e)return{xMin:e.x||0,xMax:(e.x||0)+(e.width||0),yMin:e.y||0,yMax:(e.y||0)+(e.height||0)};let i=t.graphic&&t.graphic.getBBox();return i?{xMin:t.plotX-i.width/2,xMax:t.plotX+i.width/2,yMin:t.plotY-i.height/2,yMax:t.plotY+i.height/2}:null}(a))&&s.push({xMin:n.xMin-i,xMax:n.xMax+i,yMin:n.yMin-i,yMax:n.yMax+i});return s=s.sort(function(t,e){return t.xMin-e.xMin}),z(t.algorithmMargin)||(o=t.algorithmMargin=function(t){let e,i=t.length,s=[];for(let o=0;o<i;++o)for(let r=o+1;r<i;++r)(e=function t(e,i,s){let o=Z(s,10),r=e.yMax+o>i.yMin-o&&e.yMin-o<i.yMax+o,n=e.xMax+o>i.xMin-o&&e.xMin-o<i.xMax+o,a=r?e.xMin>i.xMax?e.xMin-i.xMax:i.xMin-e.xMax:1/0,l=n?e.yMin>i.yMax?e.yMin-i.yMax:i.yMin-e.yMax:1/0;return n&&r?o?t(e,i,Math.floor(o/2)):1/0:eI(a,l)}(t[o],t[r]))<80&&s.push(e);return s.push(80),eN(Math.floor(s.sort(function(t,e){return t-e})[Math.floor(s.length/10)]/2-1),1)}
1(s),s.forEach(function(t){t.xMin-=o,t.xMax+=o,t.yMin-=o,t.yMax+=o})),s}getObstacleMetrics(t){let e=0,i=0,s,o,r=t.length;for(;r--;)s=t[r].xMax-t[r].xMin,o=t[r].yMax-t[r].yMin,e<s&&(e=s),i<o&&(i=o);return{maxHeight:i,maxWidth:e}}getAlgorithmStartDirection(t){let e="left"!==t.align&&"right"!==t.align,i="top"!==t.verticalAlign&&"bottom"!==t.verticalAlign;return e?!!i&&void 0:!!i||void 0}}eD.prototype.algorithms={fastAvoid:eP,straight:function(t,e){return{path:[["M",t.x,t.y],["L",e.x,e.y]],obstacles:[{start:t,end:e}]}},simpleConnect:eA};let eB=A();function eR(){let t=this.chart.userOptions.chart;!this.horiz&&j(this.options.staticScale)&&(!t?.height||t.scrollablePlotArea?.minHeight)&&(this.staticScale=this.options.staticScale)}function eF(){if("adjustHeight"!==this.redrawTrigger){for(let t of this.axes||[]){let e=t.chart,i=t.options.staticScale;if(t.staticScale&&i&&z(t.min)&&z(t.max)){let s=(t.brokenAxis?.unitLength??t.max+t.tickInterval-t.min)*i,o=(s=Math.max(s,i))-e.plotHeight;!e.scrollablePixelsY&&Math.abs(o)>=1&&(e.plotHeight=s,e.redrawTrigger="adjustHeight",e.setSize(void 0,e.chartHeight+o,!!e.initiatedScale&&void 0)),t.series.forEach(function(t){let i=t.sharedClipKey&&e.sharedClips[t.sharedClipKey];i&&i.attr(e.inverted?{width:e.plotHeight}:{height:e.plotHeight})})}}this.initiatedScale=!0}this.redrawTrigger=void 0}eB.Pathfinder=eB.Pathfinder||eD,C(eB.SVGRenderer),eB.Pathfinder.compose(eB.Chart,eB.Point);let ez=function(t,e){let i=e.prototype;i.adjustHeight||(N(t,"afterSetOptions",eR),i.adjustHeight=eF,N(e,"render",i.adjustHeight))},eH=A();ez(eH.Axis,eH.Chart);let{column:{prototype:{pointClass:eW}}}=tR().seriesTypes;class eX extends eW{static getColorByCategory(t,e){let i=t.options.colors||t.chart.options.colors,s=i?i.length:t.chart.options.chart.colorCount,o=e.y%s,r=i?.[o];return{colorIndex:o,color:r}}resolveColor(){let t=this.series;if(t.options.colorByPoint&&!this.options.color){let e=eX.getColorByCategory(t,this);t.chart.styledMode||(this.color=e.color),(void 0===this.options.colorIndex||null===this.options.colorIndex)&&(this.colorIndex=e.colorIndex)}else this.color=this.options.color||t.color}constructor(t,e){super(t,e),this.y||(this.y=0)}applyOptions(t,e){return super.applyOptions(t,e),this.x2=this.series.chart.time.parse(this.x2),this.isNull=!this.isValid?.(),this.formatPrefix=this.isNull?"null":"point",this}setState(){super.setState.apply(this,arguments),this.series.drawPoint(this,this.series.getAnimationVerb())}isValid(){return"number"==typeof this.x&&"number"==typeof this.x2}}X(eX.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});let{composed:eG,noop:eY}=A(),{parse:eV}=tD(),{column:ej}=tR().seriesTypes;function eU(){let t,e;if(this.isXAxis){for(let i of(t=Z(this.dataMax,-Number.MAX_VALUE),this.series)){let s=i.dataTable.getColumn("x2",!0)||i.dataTable.getColumn("end",!0);if(s)for(let i of s)j(i)&&i>t&&(t=i,e=!0)}e&&(this.dataMax=t)}}class e_ extends ej{static compose(t){J(eG,"Series.XRange")&&N(t,"afterGetSeriesExtremes",eU)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}getColumnMetrics(){let t=()=>{for(let t of this.chart.series){let e=t.xAxis;t.xAxis=t.yAxis,t.yAxis=e}};t();let e=super.getColumnMetrics();return t(),e}cropData(t,e,i){let s=t.getColumn("x")||[],o=t.getColumn("x2");t.setColumn("x",o,void 0,{silent:!0});let r=super.cropData(t,e,i);return t.setColumn("x",s.slice(r.start,r.end),void 0,{silent:!0}),r}findPointIndex(t){let e,{cropStart:i,points:s}=this,{id:o}=t;if(o){let t=Y(s,t=>t.id===o);e=t?t.index:void 0}if(void 0===e){let i=Y(s,e=>e.x===t.x&&e.x2===t.x2&&!e.touched);e=i?i.index:void 0}return this.cropped&&j(e)&&j(i)&&e>=i&&(e-=i),e}alignDataLabel(t){let e=t.plotX;t.plotX=Z(t.dlBox?.centerX,t.plotX),t.dataLabel&&t.shapeArgs?.width&&t.dataLabel.css({width:`${t.shapeArgs.width}px`}),super.alignDataLabel.apply(this,arguments),t.plotX=e}translatePoint(t){let e=this.xAxis,i=this.yAxis,s=this.columnMetrics,o=this.options,r=o.minPointLength||0,n=(t.shapeArgs?.width||0)/2,a=this.pointXOffset=s.offset,l=Z(t.x2,t.x+(t.len||0)),h=o.borderRadius,d=this.chart.plotTop,c=this.chart.plotLeft,p=t.plotX,u=e.translate(l,0,0,0,1),g=Math.abs(u-p),f=this.chart.inverted,m=Z(o.borderWidth,1),x,b,y=s.offset,v=Math.round(s.width),w,M,k,A;r&&((x=r-g)<0&&(x=0),p-=x/2,u+=x/2),p=Math.max(p,-10),u=I(u,-10,e.len+10),z(t.options.pointWidth)&&(y-=(Math.ceil(t.options.pointWidth)-v)/2,v=Math.ceil(t.options.pointWidth)),o.pointPlacement&&j(t.plotY)&&i.categories&&(t.plotY=i.translate(t.y,0,1,0,1,o.pointPlacement));let P=R(Math.min(p,u),m),E=R(Math.max(p,u),m)-P,S=Math.min(Q("object"==typeof h?h.radius:h||0,v),Math.min(E,v)/2),T={x:P,y:R((t.plotY||0)+y,m),width:E,height:v,r:S};t.shapeArgs=T,f?t.tooltipPos[1]+=a+n:t.tooltipPos[0]-=n+a-T.width/2,M=(w=T.x)+T.width,w<0||M>e.len?(w=I(w,0,e.len),k=(M=I(M,0,e.len))-w,t.dlBox=K(T,{x:w,width:M-w,centerX:k?k/2:null})):t.dlBox=null;let C=t.tooltipPos,L=+!!f,O=+!f,N=this.columnMetrics?this.columnMetrics.offset:-s.width/2;f?C[L]+=T.width/2:C[L]=I(C[L]+(e.reversed?-1:0)*T.width,e.left-c,e.left+e.len-c-1),C[O]=I(C[O]+(f?-1:1)*N,i.top-d,i.top+i.len-d-1),(b=t.partialFill??0
1)&&(q(b)&&(b=b.amount||0),j(b)||(b=0),t.partShapeArgs=K(T),A=Math.max(Math.round(g*b+t.plotX-p),0),t.clipRectArgs={x:e.reversed?T.x+g-A:T.x,y:T.y,width:A,height:T.height}),t.key=t.category||t.name,t.yCategory=i.categories?.[t.y??-1]}translate(){for(let t of(super.translate.apply(this,arguments),this.points))this.translatePoint(t)}drawPoint(t,e){let i=this.options,s=this.chart.renderer,o=t.shapeType,r=t.shapeArgs,n=t.partShapeArgs,a=t.clipRectArgs,l=t.state,h=i.states[l||"normal"]||{},d=void 0===l?"attr":e,c=this.pointAttribs(t,l),p=Z(this.chart.options.chart.animation,h.animation),u=t.graphic,g=t.partialFill;if(t.isNull||!1===t.visible)u&&(t.graphic=u.destroy());else if(u?u.rect[e](r):(t.graphic=u=s.g("point").addClass(t.getClassName()).add(t.group||this.group),u.rect=s[o](K(r)).addClass(t.getClassName()).addClass("highcharts-partfill-original").add(u)),n&&(u.partRect?(u.partRect[e](K(n)),u.partialClipRect[e](K(a))):(u.partialClipRect=s.clipRect(a.x,a.y,a.width,a.height),u.partRect=s[o](n).addClass("highcharts-partfill-overlay").add(u).clip(u.partialClipRect))),!this.chart.styledMode&&(u.rect[e](c,p).shadow(i.shadow),n)){q(g)||(g={}),q(i.partialFill)&&(g=K(i.partialFill,g));let e=g.fill||eV(c.fill).brighten(-.3).get()||eV(t.color||this.color).brighten(-.3).get();c.fill=e,u.partRect[d](c,p).shadow(i.shadow)}}drawPoints(){let t=this.getAnimationVerb();for(let e of this.points)this.drawPoint(e,t)}getAnimationVerb(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"}isPointInside(t){let e=t.shapeArgs,i=t.plotX,s=t.plotY;return e?void 0!==i&&void 0!==s&&s>=0&&s<=this.yAxis.len&&(e.x||0)+(e.width||0)>=0&&i<=this.xAxis.len:super.isPointInside.apply(this,arguments)}}e_.defaultOptions=K(ej.defaultOptions,{colorByPoint:!0,dataLabels:{formatter:function(){let t=this.partialFill;if(q(t)&&(t=t.amount),j(t)&&t>0)return D(100*t)+"%"},inside:!0,verticalAlign:"middle",style:{whiteSpace:"nowrap"}},tooltip:{headerFormat:'<span style="font-size: 0.8em">{ucfirst point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0}),X(e_.prototype,{pointClass:eX,pointArrayMap:["x2","y"],getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:tR().series.prototype.animate,autoIncrement:eY,buildKDTree:eY}),tR().registerSeriesType("xrange",e_);let eq=A();e_.compose(eq.Axis);let{xrange:{prototype:{pointClass:eK}}}=tR().seriesTypes;class e$ extends eK{static setGanttPointAliases(t,e){t.x=t.start=e.time.parse(t.start??t.x),t.x2=t.end=e.time.parse(t.end??t.x2),t.partialFill=t.completed=t.completed??t.partialFill}applyOptions(t,e){let i=super.applyOptions(t,e);return e$.setGanttPointAliases(i,i.series.chart),this.isNull=!this.isValid?.(),this.formatPrefix=this.isNull?"null":"point",i}isValid(){return("number"==typeof this.start||"number"==typeof this.x)&&("number"==typeof this.end||"number"==typeof this.x2||this.milestone)}}var eZ=w(184),eJ=w.n(eZ);!function(t){function e(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function i(){Object.keys(this.options.breaks?.[0]||{}).length&&(this.options.ordinal=!1)}function s(){let t=this.brokenAxis;if(t?.hasBreaks){let e=this.tickPositions,i=this.tickPositions.info,s=[];for(let i=0;i<e.length;i++)t.isInAnyBreak(e[i])||s.push(e[i]);this.tickPositions=s,this.tickPositions.info=i}}function o(){this.brokenAxis||(this.brokenAxis=new h(this))}function r(){let{isDirty:t,options:{connectNulls:e},points:i,xAxis:s,yAxis:o}=this;if(t){let t=i.length;for(;t--;){let r=i[t],n=(null!==r.y||!1!==e)&&(s?.brokenAxis?.isInAnyBreak(r.x,!0)||o?.brokenAxis?.isInAnyBreak(r.y,!0));r.visible=!n&&!1!==r.options.visible}}}function n(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,Z(this.pointArrayMap,["y"]))}function a(t,e){let i,s,o,r=this,n=r.points;if(t?.brokenAxis?.hasBreaks){let a=t.brokenAxis;e.forEach(function(e){i=a?.breakArray||[],s=t.isXAxis?t.min:Z(r.options.threshold,t.min),n.forEach(function(r){o=r["stack"+e.toUpperCase()]??r[e],i.forEac
vendor: 9,446 bytes, line 1
1h(function(e){if(j(s)&&j(o)){let i="";s<e.from&&o>e.to||s>e.from&&o<e.from?i="pointBreak":(s<e.from&&o>e.from&&o<e.to||s>e.from&&o>e.to&&o<e.from)&&(i="pointInBreak"),i&&G(t,i,{point:r,brk:e})}})})})}}function l(){let t=this.currentDataGrouping,e=t?.gapSize,i=this.points.slice(),s=this.yAxis,o=this.options.gapSize,r=i.length-1;if(o&&r>0){let t,n;for("value"!==this.options.gapUnit&&(o*=this.basePointRange),e&&e>o&&e>=this.basePointRange&&(o=e);r--;)if(n&&!1!==n.visible||(n=i[r+1]),t=i[r],!1!==n.visible&&!1!==t.visible){if(n.x-t.x>o){let e=(t.x+n.x)/2;i.splice(r+1,0,{isNull:!0,x:e}),s.stacking&&this.options.stacking&&((s.stacking.stacks[this.stackKey][e]=new(eJ())(s,s.options.stackLabels,!1,e,this.stack??"")).total=0)}n=t}}return this.getGraphPath(i)}t.compose=function(t,h){if(!t.keepProps.includes("brokenAxis")){t.keepProps.push("brokenAxis"),N(t,"init",o),N(t,"afterInit",e),N(t,"afterSetTickPositions",s),N(t,"afterSetOptions",i);let d=h.prototype;d.drawBreaks=a,d.gappedPath=l,N(h,"afterGeneratePoints",r),N(h,"afterRender",n)}return t};class h{static isInBreak(t,e){let i=t.repeat||1/0,s=t.from,o=t.to-t.from,r=e>=s?(e-s)%i:i-(s-e)%i;return t.inclusive?r<=o:r<o&&0!==r}static lin2Val(t){let e=this.min||0,i=this.brokenAxis,s=i?.breakArray;if(!s?.length||!j(t))return t;let o=t;if(t>e)for(let t of s)if(t.from>o)break;else t.to<=o&&t.to>e?o+=t.len:h.isInBreak(t,o)&&(o+=t.len);else if(t<e)for(let t of s)if(t.from>e)break;else t.from>=o&&t.from<e?o-=t.len:h.isInBreak(t,o)&&(o-=t.len);return o}static val2Lin(t){let e=this.min||0,i=this.brokenAxis,s=i?.breakArray;if(!s?.length||!j(t))return t;let o=t;if(t>e){for(let i of s)if(i.to<=t&&i.to>e)o-=i.len;else if(i.from>t)break;else if(h.isInBreak(i,t)){o-=t-i.from;break}}else if(t<e){for(let i of s)if(i.from>=t&&i.from<e)o+=i.len;else if(i.from>e)break;else if(h.isInBreak(i,t)){o+=i.to-t;break}}return o}constructor(t){this.axis=t}findBreakAt(t,e){return Y(e,function(e){return e.from<t&&t<e.to})}isInAnyBreak(t,e){let i=this.axis,s=i.options.breaks||[],o=s.length,r,n,a;if(o&&j(t)){for(;o--;)h.isInBreak(s[o],t)&&(r=!0,n||(n=Z(s[o].showPoints,!i.isXAxis)));a=r&&e?r&&!n:r}return a}setBreaks(t,e){let i=this,s=i.axis,o=s.chart.time,r=_(t)&&!!Object.keys(t?.[0]||{}).length;s.isDirty=(i.hasBreaks??!1)!==r,i.hasBreaks=r,t?.forEach(t=>{t.from=o.parse(t.from)||0,t.to=o.parse(t.to)||0}),t!==s.options.breaks&&(s.options.breaks=s.userOptions.breaks=t),s.forceRedraw=!0,s.series.forEach(function(t){t.isDirty=!0}),r||s.val2lin!==h.val2Lin||(delete s.val2lin,delete s.lin2val),r&&(s.userOptions.ordinal=!1,s.lin2val=h.lin2Val,s.val2lin=h.val2Lin,s.setExtremes=function(t,e,o,r,n){if(i.hasBreaks&&!s.treeGrid?.tree){let s,o=this.brokenAxis.breakArray||[];for(;s=i.findBreakAt(t,o);)t=s.to;for(;s=i.findBreakAt(e,o);)e=s.from;e<t&&(e=t)}s.constructor.prototype.setExtremes.call(this,t,e,o,r,n)},s.setAxisTranslation=function(){if(s.constructor.prototype.setAxisTranslation.call(this),i.unitLength=void 0,i.hasBreaks){let t=s.options.breaks||[],e=[],o=[],r=s.pointRangePadding??0,n=0,a,l,d=s.userMin??s.min,c=s.userMax??s.max,p=s.dataMin??d,u=s.dataMax??c,g,f;j(s.threshold)&&(p=Math.min(p??s.threshold,s.threshold),u=Math.max(u??s.threshold,s.threshold)),s.treeGrid?.tree||t.forEach(function(t){l=t.repeat||1/0,j(d)&&j(c)&&(h.isInBreak(t,d)&&(d+=t.to%l-d%l),h.isInBreak(t,c)&&(c-=c%l-t.from%l))}),j(p)&&j(u)&&t.forEach(function(t){for(g=t.from,l=t.repeat||1/0;g-l>p;)g-=l;for(;g<p;)g+=l;for(f=g;f<u;f+=l)e.push({value:f,move:"in"}),e.push({value:f+t.to-t.from,move:"out",size:t.breakSize})}),e.sort(function(t,e){return t.value===e.value?("in"!==t.move)-("in"!==e.move):t.value-e.value}),a=0,g=p,e.forEach(t=>{1===(a+="in"===t.move?1:-1)&&"in"===t.move&&(g=t.value),0===a&&j(g)&&(o.push({from:g,to:t.value,len:t.value-g-(t.size||0)}),j(d)&&j(c)&&g<c&&t.value>d&&(n+=t.value-g-(t.size||0)))}),i.breakArray=o,j(d)&&j(c)&&j(s.min)&&(i.unitLength=c-d-n+r,G(s,"afterBreaks"),s.staticScale?s.transA=s.staticScale:i.unitLength&&(s.transA*=(c-s.min+r)/i.unitLength),r&&(s.minPixelPadding=s.transA*(s.minPointOffset||0)),s.min=d,s.max=c)}}),Z(e,!0)&&s.chart.redraw()}}t.Additions=h}(x||(x={}));let eQ=x,{dateFormats:e0}=A();function e1(t,e){let i={width:0,height:0};if(e.forEach(function(e){let s=t[e],o=0,r=0,n;q(s,!0)&&(o=(n=q(s.label,!0)?s.label:{}).getBBox?n.getBBox().height:0,n.textStr&&!j(n.textPxLength)&&(n.textPxLength=n.getBBox().width),r=j(n.textPxLength)?Math.round(n.textPxLength):0,n.textStr&&(r=Math.round(n.getBBox().width)),i.height=Math.max(o,i.height),i.width=Math.max(r,i.width))}),"treegrid"===this.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode){let t=this.treeGrid.mapOfPosToGridNode[-1].height||0;i.width+=this.options.labels.indentation*(t-1)}return i}function e2(t){let{grid:e}=this,i=3===this.side;if(i||t.apply(this),!e?.isColumn){let t=e?.columns||[];i&&(t=t.slice().reverse()),t.forEach(t=>{t.getOffset()})}i&&t.apply(this)}function e5(t){if(!0===(this.options.grid||{}).enabled){let{axisTitle:e,height:i,horiz:s,left:o,offset:r,opposite:n,options:a,top:l,width:h}=this,d=this.tickSize(),c=e?.getBBox().width,p=a.title.x,u=a.title.y,g=Z(a.title.margin,s?5:10),f=e?this.chart.renderer.fontMetrics(e).f:0,m=(s?l+i:o)+(s?1:-1)*(n?-1:1)*(d?d[0]/2:0)+(this.side===b.bottom?f:0);t.titlePosition.x=s?o-(c||0)/2-g+p:m+(n?h:0)+r+p,t.titlePosition.y=s?m-(n?i:0)+(n?f:-f)/2+r+u:l-g+u}}function e3(){let t,{chart:e,options:{grid:i={}},userOptions:s}=this;if(i.enabled&&((t=this.options).labels.align=Z(t.labels.align,"center"),this.categories||(t.showLastLabel=!1),this.labelRotation=0,t.labels.rotation=0,t.minTickInterval=1),i.columns){let t=this.grid.columns=[],o=this.grid.columnIndex=0;for(;++o<i.columns.length;){let r=K(s,i.columns[o],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),n=new(tb())(this.chart,r,this.coll);n.grid.isColumn=!0,n.grid.columnIndex=o,W(e.axes,n),W(e[this.coll]||[],n),t.push(n)}}}function e6(){let{axisTitle:t,grid:e,options:i}=this;if(!0===(i.grid||{}).enabled){let s=this.min||0,o=this.max||0,r=this.ticks[this.tickPositions[0]];if(t&&!this.chart.styledMode&&r?.slotWidth&&!this.options.title.style.width&&t.css({width:`${r.slotWidth}px`}),this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions),this.rightWall&&this.rightWall.destroy(),this.grid?.isOuterAxis()&&this.axisLine){let t=i.lineWidth;if(t){let e=this.getLinePath(t),r=e[0],n=e[1],a=(this.tickSize("tick")||[1])[0]*(this.side===b.top||this.side===b.left?-1:1);if("M"===r[0]&&"L"===n[0]&&(this.horiz?(r[2]+=a,n[2]+=a):(r[1]+=a,n[1]+=a)),!this.horiz&&this.chart.marginRight){let t=["L",this.left,r[2]||0],e=[r,t],a=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(o+this.tickmarkOffset)],l=[["M",n[1]||0,this.toPixels(o+this.tickmarkOffset)],a];this.grid.upperBorder||s%1==0||(this.grid.upperBorder=this.grid.renderBorder(e)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.upperBorder.animate({d:e})),this.grid.lowerBorder||o%1==0||(this.grid.lowerBorder=this.grid.renderBorder(l)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.lowerBorder.animate({d:l}))}this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.axisLineExtra.animate({d:e})):this.grid.axisLineExtra=this.grid.renderBorder(e),this.axisLine[this.showAxis?"show":"hide"]()}}if((e?.columns||[]).forEach(t=>t.render()),!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent?.scrollbar)&&this.tickPositions.length){let t,e,i=this.tickmarkOffset,r=this.tickPositions[this.tickPositions.length-1],n=this.tickPositions[0];for(;(t=this.hiddenLabels.pop())&&t.element;)t.show();for(;(e=this.hiddenMarks.pop())&&e.element;)e.show();(t=this.ticks[n].label)&&(s-n>i?this.hiddenLabels.push(t.hide()):t.show()),(t=this.ticks[r].label)&&(r-o>i?this.hiddenLabels.push(t.hide()):t.show());let a=this.ticks[r].mark;a&&r-o<i&&r-o>0&&this.ticks[r].isLast&&this.hiddenMarks.push(a.hide())}}}function e4(){let t=this.tickPositions?.info,e=this.options,i=e.grid||{},s=this.userOptions.labels||{};i.enabled&&(this.horiz?(this.series.forEach(t=>{t.options.pointRange=0}),t&&e.dateTimeLabelFormats&&e.labels&&!z(s.align)&&(!1===e.dateTimeLabelFormats[t.unitName].range||t.count>1)&&(e.labels.align="left",z(s.x)||(e.labels.x=3))):"treegrid"!==this.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function e9(t){let e,i=this.options,s=t.userOptions,o=i&&q(i.grid,!0)?i.grid:{};!0===o.enabled&&(e=K(!0,{className:"highcharts-grid-axis "+(s.className||""),dateTimeLabelFormats:{hour:{list:["%[HM]","%[H]"]},day:{list:["%[AeB]","%[aeb]","%[E]"]},week:{list:["Week %W","W%W"]},month:{list:["%[B]","%[b]","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"0.9em"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0,style:{textOverflow:"ellipsis"}},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},s),"xAxis"===this.coll&&(z(s.linkedTo)&&!z(s.tickPixelInterval)&&(e.tickPixelInterval=350),!(!z(s.tickPixelInterval)&&z(s.linkedTo))||z(s.tickPositioner)||z(s.tickInterval)||z(s.units)||(e.tickPositioner=function(t,i){let s=this.linkedParent?.tickPositions?.info;if(s){let o=e.units||[],r,n=1,a="year";for(let t=0;t<o.length;t++){let e=o[t];
1if(e&&e[0]===s.unitName){r=t;break}}let l=j(r)&&o[r+1];if(l){a=l[0]||"year";let t=l[1];n=t?.[0]||1}else"year"===s.unitName&&(n=10*s.count);let h=k.timeUnits[a];return this.tickInterval=h*n,this.chart.time.getTimeTicks({unitRange:h,count:n,unitName:a},t,i,this.options.startOfWeek)}})),K(!0,this.options,e),this.horiz&&(i.minPadding=Z(s.minPadding,0),i.maxPadding=Z(s.maxPadding,0)),j(i.grid.borderWidth)&&(i.tickWidth=i.lineWidth=o.borderWidth))}function e8(t){let e=t.userOptions,i=e?.grid||{},s=i.columns;i.enabled&&s&&K(!0,this.options,s[0])}function e7(){(this.grid.columns||[]).forEach(t=>t.setScale())}function it(t){let{horiz:e,maxLabelDimensions:i,options:{grid:s={}}}=this;if(s.enabled&&i){let o=2*this.options.labels.distance,r=e?s.cellHeight||o+i.height:o+i.width;_(t.tickSize)?t.tickSize[0]=r:t.tickSize=[r,0]}}function ie(){this.axes.forEach(t=>{(t.grid?.columns||[]).forEach(t=>{t.setAxisSize(),t.setAxisTranslation()})})}function ii(t){let{grid:e}=this;(e.columns||[]).forEach(e=>e.destroy(t.keepEvents)),e.columns=void 0}function is(t){let e=t.userOptions||{},i=e.grid||{};i.enabled&&z(i.borderColor)&&(e.tickColor=e.lineColor=i.borderColor),this.grid||(this.grid=new ih(this)),this.hiddenLabels=[],this.hiddenMarks=[]}function io(t){let e=this.label,i=this.axis,s=i.reversed,o=i.chart,r=i.options.grid||{},n=i.options.labels,a=n.align,l=b[i.side],h=t.tickmarkOffset,d=i.tickPositions,c=this.pos-h,p=j(d[t.index+1])?d[t.index+1]-h:(i.max||0)+h,u=i.tickSize("tick"),g=u?u[0]:0,f=u?u[1]/2:0;if(!0===r.enabled){let r,h,d,u;
vendor: 4,243 bytes, line 1
1if("top"===l?h=(r=i.top+i.offset)-g:"bottom"===l?r=(h=o.chartHeight-i.bottom+i.offset)+g:(r=i.top+i.len-(i.translate(s?p:c)||0),h=i.top+i.len-(i.translate(s?c:p)||0)),"right"===l?u=(d=o.chartWidth-i.right+i.offset)+g:"left"===l?d=(u=i.left+i.offset)-g:(d=Math.round(i.left+(i.translate(s?p:c)||0))-f,u=Math.min(Math.round(i.left+(i.translate(s?c:p)||0))-f,i.left+i.len)),this.slotWidth=u-d,t.pos.x="left"===a?d:"right"===a?u:d+(u-d)/2,t.pos.y=h+(r-h)/2,e){let i=o.renderer.fontMetrics(e),s=e.getBBox().height;if(n.useHTML)t.pos.y+=i.b+-(s/2);else{let e=Math.round(s/i.h);t.pos.y+=(i.b-(i.h-i.f))/2+-((e-1)*i.h/2)}}t.pos.x+=i.horiz&&n.x||0}}function ir(t){let{axis:e,value:i}=t;if(e.options.grid?.enabled){let s,o=e.tickPositions,r=(e.linkedParent||e).series[0],n=i===o[0],a=i===o[o.length-1],l=r&&Y(r.options.data,function(t){return t[e.isXAxis?"x":"y"]===i});l&&r.is("gantt")&&(s=K(l),A().seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(s,e.chart)),t.isFirst=n,t.isLast=a,t.point=s}}function ia(){let t=this.options,e=t.grid||{},i=this.categories,s=this.tickPositions,o=s[0],r=s[1],n=s[s.length-1],a=s[s.length-2],l=this.linkedParent?.min,h=this.linkedParent?.max,d=l||this.min,c=h||this.max,p=this.tickInterval,u=j(d)&&d>=o+p&&d<r,g=j(d)&&o<d&&o+p>d,f=j(c)&&n>c&&n-p<c,m=j(c)&&c<=n-p&&c>a;!0===e.enabled&&!i&&(this.isXAxis||this.isLinked)&&((g||u)&&!t.startOnTick&&(s[0]=d),(f||m)&&!t.endOnTick&&(s[s.length-1]=c))}function il(t){var e;let{options:{grid:i={}}}=this;return!0===i.enabled&&this.categories?this.tickInterval:t.apply(this,(e=arguments,Array.prototype.slice.call(e,1)))}(g=b||(b={}))[g.top=0]="top",g[g.right=1]="right",g[g.bottom=2]="bottom",g[g.left=3]="left";class ih{constructor(t){this.axis=t}isOuterAxis(){let t=this.axis,e=t.chart,i=t.grid.columnIndex,s=t.linkedParent?.grid.columns||t.grid.columns||[],o=i?t.linkedParent:t,r=-1,n=0;return 3===t.side&&!e.inverted&&s.length?!t.linkedParent:((e[t.coll]||[]).forEach((e,i)=>{e.side!==t.side||e.options.isInternal||(n=i,e===o&&(r=i))}),n===r&&(!j(i)||s.length===i))}renderBorder(t){let e=this.axis,i=e.chart.renderer,s=e.options,o=i.path(t).addClass("highcharts-axis-line").add(e.axisGroup);return i.styledMode||o.attr({stroke:s.lineColor,"stroke-width":s.lineWidth,zIndex:7}),o}}function id(t,e,i,s,o,r){let n=r&&r.after,a=r&&r.before,l={data:s,depth:i-1,id:t,level:i,parent:e||""},h=0,d=0,c,p;"function"==typeof a&&a(l,r);let u=(o[t]||[]).map(e=>{let s=id(e.id,t,i+1,e,o,r),n=e.start||NaN,a=!0===e.milestone?n:e.end||NaN;return c=!j(c)||n<c?n:c,p=!j(p)||a>p?a:p,h=h+1+s.descendants,d=Math.max(s.height+1,d),s});return s&&(s.start=Z(s.start,c),s.end=Z(s.end,p)),X(l,{children:u,descendants:h,height:d}),"function"==typeof n&&n(l,r),l}e0.E=function(t){return this.dateFormat("%a",t,!0).charAt(0)},e0.W=function(t){let e=this.toParts(t),i=(e[7]+6)%7,s=e.slice(0);s[2]=e[2]-i+3;let o=this.toParts(this.makeTime(s[0],0,1));return 4!==o[7]&&(e[1]=0,e[2]=1+(11-o[7])%7),(1+Math.floor((this.makeTime(s[0],s[1],s[2])-this.makeTime(o[0],o[1],o[2]))/6048e5)).toString()};let ic=function(t,e){let i,s;return id("",null,1,null,(i=[],Object.keys(s=t.reduce((t,e)=>{let{parent:s="",id:o}=e;return void 0===t[s]&&(t[s]=[]),t[s].push(e),o&&i.push(o),t},{})).forEach(t=>{if(""!==t&&-1===i.indexOf(t)){let e=s[t].map(function(t){let{...e}=t;return e});s[""].push(...e),delete s[t]}}),s),e)};function ip(){this.treeGrid||(this.treeGrid=new im(this))}function iu(t,e,i,s,o,r,n,a,l){let h,d,c,p=Z(this.options?.labels,r),u=this.pos,g=this.axis,f="treegrid"===g.type,m=t.apply(this,[e,i,s,o,p,n,a,l]);if(f){let{width:t=0,padding:e=5*!g.linkedParent}=p&&q(p.symbol,!0)?p.symbol:{},i=p&&j(p.indentation)?p.indentation:0;h=g.treeGrid.mapOfPosToGridNode,d=h?.[u],c=d?.depth||1,m.x+=t+2*e+(c-1)*i}return m}function ig(t){let e,{pos:i,axis:s,label:o,treeGrid:r,options:n}=this,a=r?.labelIcon,l=o?.element,{treeGrid:h,options:d,chart:c,tickPositions:p}=s,u=h.mapOfPosToGridNode,g=Z(n?.labels,d?.labels),f=g&&q(g.symbol,!0)?g.symbol:{},m=u?.[i],{descendants:x,depth:b}=m||{},y=m&&x&&x>0,v="treegrid"===s.type&&l,w=p.indexOf(i)>-1,M="highcharts-treegrid-node-",k=M+"level-",A=c.styledMode;if(v&&m&&o.removeClass(RegExp(k+".*")).addClass(k+b),t.apply(this,Array.prototype.slice.call(arguments,1
1)),v&&y){var P;let t,i,s,n,l,d,c,p,u,x,b,y;e=h.isCollapsed(m),P={color:!A&&o.styles.color||"",collapsed:e,group:o.parentGroup,options:f,renderer:o.renderer,show:w,xy:o.xy},i=!(t=this.treeGrid).labelIcon,s=P.renderer,n=P.xy,d=(l=P.options).width||0,c=l.height||0,p=l.padding??this.axis.linkedParent?0:5,u={x:n.x-d/2-p,y:n.y-c/2},x=P.collapsed?90:180,b=P.show&&j(u.y),(y=t.labelIcon)||(t.labelIcon=y=s.path(s.symbols[l.type](l.x||0,l.y||0,d,c)).addClass("highcharts-label-icon").add(P.group)),y[b?"show":"hide"](),s.styledMode||y.attr({cursor:"pointer",fill:Z(P.color,"#666666"),"stroke-width":1,stroke:l.lineColor,strokeWidth:l.lineWidth||0}),y[i?"attr":"animate"]({translateX:u.x,translateY:u.y,rotation:x}),o.addClass(M+(e?"collapsed":"expanded")).removeClass(M+(e?"expanded":"collapsed")),A||o.css({cursor:"pointer"}),[o,a].forEach(t=>{t&&!t.attachedTreeGridEvents&&(N(t.element,"mouseover",function(){o.addClass("highcharts-treegrid-node-active"),o.renderer.styledMode||o.css({textDecoration:"underline"})}),N(t.element,"mouseout",function(){let t;t=q(g.style)?g.style:{},o.removeClass("highcharts-treegrid-node-active"),o.renderer.styledMode||o.css({textDecoration:t.textDecoration||"none"})}),N(t.element,"click",function(){r.toggleCollapse()}),t.attachedTreeGridEvents=!0)})}else a&&(tt(l),o?.css({cursor:"default"}),a.destroy(),r.labelIcon=void 0)}class im{static compose(t){let e=t.prototype;e.toggleCollapse||(N(t,"init",ip),ti(e,"getLabelPosition",iu),ti(e,"renderLabel",ig),e.collapse=function(t){this.treeGrid.collapse(t)},e.expand=function(t){this.treeGrid.expand(t)},e.toggleCollapse=function(t){this.treeGrid.toggleCollapse(t)})}constructor(t){this.tick=t}collapse(t){let{pos:e,axis:i}=this.tick,{treeGrid:s,brokenAxis:o}=i,r=s.mapOfPosToGridNode;o&&r&&o.setBreaks(s.collapse(r[e]),t??!0)}destroy(){this.labelIcon?.destroy()}expand(t){let{pos:e,axis:i}=this.tick,{treeGrid:s,brokenAxis:o}=i,r=s.mapOfPosToGridNode;o&&r&&o.setBreaks(s.expand(r[e]),t??!0)}toggleCollapse(t=!0){let{axis:e,pos:i}=this.tick,{brokenAxis:s,treeGrid:o}=e;if(s&&o.mapOfPosToGridNode){let r=!!(e.scrollbar&&e.staticScale),n=e.pos+e.len+(o.pendingSizeAdjustment||0);if(o.pendingSizeAdjustment=0,s.setBreaks(o.toggleCollapse(o.mapOfPosToGridNode[i]),r&&t),r){let t=e.toValue(e.toPixels(e.dataMax)),i=e.toValue(n)-e.tickmarkOffset,s=e.userMin??e.min;if(o.adjustedMax=t!==e.dataMax?t-e.tickmarkOffset:void 0,i>e.dataMax){let t=n-e.toPixels(e.dataMax+e.tickmarkOffset);i=o.adjustedMax??e.dataMax,(s=e.toValue(e.toPixels(s-e.tickmarkOffset)-t)+e.tickmarkOffset)<e.dataMin&&(t=e.toPixels(e.dataMin)-e.toPixels(s),s=e.dataMin,o.pendingSizeAdjustment=t)}e.setExtremes(D(s),D(i),!1,!1,{trigger:"toggleCollapse"})}t&&e.chart.redraw()}}}let{getLevelOptions:ix}={getColor:function(t,e){let i,s,o,r,n,a,l=e.index,h=e.mapOptionsToLevel,d=e.parentColor,c=e.parentColorIndex,p=e.series,u=e.colors,g=e.siblings,f=p.points,m=p.chart.options.chart;if(t){let x;i=f[t.i],s=h[t.level]||{},i&&s.colorByPoint&&(r=i.index%(u?u.length:m.colorCount),o=u&&u[r]),p.chart.styledMode||(n=Z(i&&i.options.color,s&&s.color,o,d&&((x=s&&s.colorVariation)&&"brightness"===x.key&&l&&g?tD().parse(d).brighten(x.to*(l/g)).get():d),p.color)),a=Z(i&&i.options.colorIndex,s&&s.colorIndex,r,c,e.colorIndex)}return{color:n,colorIndex:a}},getLevelOptions:function(t){let e,i,s,o,r,n,a={};if(q(t))for(o=j(t.from)?t.from:1,n=t.levels,i={},e=q(t.defaults)?t.defaults:{},_(n)&&(i=n.reduce((t,i)=>{let s,r,n;return q(i)&&j(i.level)&&(r=Z((n=K({},i)).levelIsConstant,e.levelIsConstant),delete n.levelIsConstant,delete n.level,q(t[s=i.level+(r?0:o-1)])?K(!0,t[s],n):t[s]=n),t},{})),r=j(t.to)?t.to:1,s=0;s<=r;s++)a[s]=K({},e,q(i[s])?i[s]:{});return a},getNodeWidth:function(t,e){let{chart:i,options:s}=t,{nodeDistance:o=0,nodeWidth:r=0}=s,{plotSizeX:n=1}=i;if("auto"===r){if("string"==typeof o&&/%$/.test(o))return n/(e+parseFloat(o)/100*(e-1));let t=Number(o);return(n+t)/(e||1)-t}return Q(r,n)},setTreeValues:function t(e,i){let s=i.before,o=i.idRoot,r=i.mapIdToNode[o],n=!1!==i.levelIsConstant,a=i.points[e.i],l=a&&a.options||{},h=[],d=0;e.levelDynamic=e.level-(n?0:r.level),e.name=Z(a&&a.name,""),e.visible=o===e.id||!0===i.visible,"function"==typeof s&&(e=s(e,i)),e.children.forEac
1h((s,o)=>{let r=X({},i);X(r,{index:o,siblings:e.children.length,visible:e.visible}),s=t(s,r),h.push(s),s.visible&&(d+=s.val)});let c=Z(l.value,d);return e.visible=c>=0&&(d>0||e.visible),e.children=h,e.childrenTotal=d,e.isLeaf=e.visible&&!d,e.val=c,e},updateRootId:function(t){let e,i;return q(t)&&(i=q(t.options)?t.options:{},e=Z(t.rootNode,i.rootId,""),q(t.userOptions)&&(t.userOptions.rootId=e),t.rootNode=e),e}};function ib(t){return{from:t.collapseStart||0,to:t.collapseEnd||0,showPoints:!1}}function iy(t,e,i){var s;let o,r=[],n=[],a={},l=e||!1,h={},d=-1,c=ic(t,{after:function(t){let e=h[t.pos],i=0,s=0;e.children.forEach(function(t){s+=(t.descendants||0)+1,i=Math.max((t.height||0)+1,i)}),e.descendants=s,e.height=i,e.collapsed&&n.push(e)},before:function(t){let e,i,s=q(t.data,!0)?t.data:{},o=U(s.name)?s.name:"",n=a[t.parent],c=q(n,!0)?h[n.pos]:null;l&&q(c,!0)&&(e=Y(c.children,function(t){return t.name===o}))?(i=e.pos,e.nodes.push(t)):i=d++,!h[i]&&(h[i]=e={depth:c?c.depth+1:0,name:o,id:s.id,nodes:[t],children:[],pos:i},-1!==i&&r.push(o),q(c,!0)&&c.children.push(e)),U(t.id)&&(a[t.id]=t),e&&!0===s.collapsed&&(e.collapsed=!0),t.pos=i}});return s=h,{categories:r,mapOfIdToNode:a,mapOfPosToGridNode:h=(o=function(t,e,s){let r=t.nodes,n=e+(-1===e?0:i-1),a=(n-e)/2,l=e+a;return r.forEach(function(t){let i=t.data;q(i,!0)&&(i.y=e+(i.seriesIndex||0),delete i.seriesIndex),t.pos=l}),s[l]=t,t.pos=l,t.tickmarkOffset=a+.5,t.collapseStart=n+.5,t.children.forEach(function(t){o(t,n+1,s),n=(t.collapseEnd||0)-.5}),t.collapseEnd=n+.5,s})(s["-1"],-1,{}),collapsedNodes:n,tree:c}}function iv(t){let e=t.target;e.axes.filter(t=>"treegrid"===t.type).forEach(function(i){let s=i.options,o=s.labels,r=i.uniqueNames,n=e.time.parse(s.max),a=!i.treeGrid.mapOfPosToGridNode||i.series.some(function(t){return!t.hasRendered||t.isDirtyData||t.isDirty}),l=0,h,d;if(a){let s=[];if(h=i.series.reduce(function(t,i){let o=i.options.data||[],n=o[0],a=Array.isArray(n)&&!n.find(t=>"object"==typeof t);return s.push(a),i.visible&&(o.forEach(function(s){(a||i.options.keys?.length)&&(s=i.pointClass.prototype.optionsToObject.call({series:i},s),i.pointClass.setGanttPointAliases(s,e)),q(s,!0)&&(s.seriesIndex=l,t.push(s))}),!0===r&&l++),t},[]),n&&h.length<n)for(let t=h.length;t<=n;t++)h.push({name:t+"​"});i.categories=(d=iy(h,r||!1,!0===r?l:1)).categories,i.treeGrid.mapOfPosToGridNode=d.mapOfPosToGridNode,i.hasNames=!0,i.treeGrid.tree=d.tree,i.series.forEach(function(t,e){let i=(t.options.data||[]).map(function(i){return(s[e]||_(i)&&t.options.keys?.length)&&h.forEach(function(t){let e=te(i);e.indexOf(t.x||0)>=0&&e.indexOf(t.x2||0)>=0&&(i=t)}),q(i,!0)?K(i):i});t.visible&&t.setData(i,!1)}),i.treeGrid.mapOptionsToLevel=ix({defaults:o,from:1,levels:o?.levels,to:i.treeGrid.tree?.height}),"beforeRender"===t.type&&(i.treeGrid.collapsedNodes=d.collapsedNodes)}})}function iw(t,e){let i=this.treeGrid.mapOptionsToLevel||{},s="treegrid"===this.type,o=this.ticks,r=o[e],n,a,l;s&&this.treeGrid.mapOfPosToGridNode?((n=i[(l=this.treeGrid.mapOfPosToGridNode[e]).depth])&&(a={labels:n}),!r&&p?o[e]=r=new p(this,e,void 0,void 0,{category:l.name,tickmarkOffset:l.tickmarkOffset,options:a}):(r.parameters.category=l.name,r.options=a,r.addLabel())):t.apply(this,Array.prototype.slice.call(arguments,1))}function iM(t,e,i,s){let o=this,r="treegrid"===i.type;o.treeGrid||(o.treeGrid=new iP(o)),r&&(N(e,"beforeRender",iv),N(e,"beforeRedraw",iv),N(e,"addSeries",function(t){if(t.options.data){let e=iy(t.options.data,i.uniqueNames||!1,1);o.treeGrid.collapsedNodes=(o.treeGrid.collapsedNodes||[]).concat(e.collapsedNodes)}}),N(o,"foundExtremes",function(){o.treeGrid.collapsedNodes?.forEach(function(t){let e=o.treeGrid.collapse(t);o.brokenAxis&&(o.brokenAxis.setBreaks(e,!1),o.treeGrid.collapsedNodes&&(o.treeGrid.collapsedNodes=o.treeGrid.collapsedNodes.filter(e=>t.collapseStart!==e.collapseStart||t.collapseEnd!==e.collapseEnd)))})}),N(o,"afterBreaks",function(){"yAxis"===o.coll&&!o.staticScale&&o.chart.options.chart.height&&(o.isDirty=!0)}),i=K({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,width:10}},uniqueNames:!1},i,{reversed:!0})),t.apply(o,[e,i,s]),r&&(o.hasNames=!0,o.options.showLastLabel=!0)}function ik(t){let e=this.options,i=this.chart.time,s="number"==typeof e.linkedTo?this.chart[this.coll]?.[e.linkedTo]:void 0;if("treegrid"===this.type){if(this.min=this.userMin??i.parse(e.min)??this.dataMin,this.max=this.userMax??i.parse(e.max)??this.dataMax,G(this,"foundExtremes"),this.setAxisTranslation(),this.tickInterval=1,this.tickmarkOffset=.5,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[],s){let t=s.getExtremes();this.min=t.min??t.dataMin,this.max=t.max??t.dataMax,this.tickPositions=s.tickPositions}this.linkedParent=s}
1else t.apply(this,Array.prototype.slice.call(arguments,1))}function iA(t){let e=this;"treegrid"===this.type&&e.visible&&e.tickPositions.forEach(function(t){let i=e.ticks[t];i.label?.attachedTreeGridEvents&&(tt(i.label.element),i.label.attachedTreeGridEvents=!1)}),t.apply(e,Array.prototype.slice.call(arguments,1))}class iP{static compose(t,e,i,s){if(!t.keepProps.includes("treeGrid")){let e=t.prototype;t.keepProps.push("treeGrid"),ti(e,"generateTick",iw),ti(e,"init",iM),ti(e,"setTickInterval",ik),ti(e,"redraw",iA),e.utils={getNode:id},p||(p=s)}return t.keepProps.includes("grid")||(t.keepProps.push("grid"),t.prototype.getMaxLabelDimensions=e1,ti(t.prototype,"unsquish",il),ti(t.prototype,"getOffset",e2),N(t,"init",is),N(t,"afterGetTitlePosition",e5),N(t,"afterInit",e3),N(t,"afterRender",e6),N(t,"afterSetAxisTranslation",e4),N(t,"afterSetOptions",e9),N(t,"afterSetOptions",e8),N(t,"afterSetScale",e7),N(t,"afterTickSize",it),N(t,"trimTicks",ia),N(t,"destroy",ii),N(e,"afterSetChartSize",ie),N(s,"afterGetLabelPosition",io),N(s,"labelFormat",ir)),eQ.compose(t,i),im.compose(s),t}constructor(t){this.pendingSizeAdjustment=0,this.axis=t}setCollapsedStatus(t){let e=this.axis,i=e.chart;e.series.forEach(function(e){let s=e.options.data;if(t.id&&s){let o=i.get(t.id),r=s[e.data.indexOf(o)];o&&r&&(o.collapsed=t.collapsed,r.collapsed=t.collapsed)}})}collapse(t){let e=this.axis,i=e.options.breaks||[],s=ib(t);return i.push(s),t.collapsed=!0,e.treeGrid.setCollapsedStatus(t),i}expand(t){let e=this.axis,i=ib(t);return t.collapsed=!1,e.treeGrid.setCollapsedStatus(t),e.options.breaks?.reduce(function(t,e){return(e.to!==i.to||e.from!==i.from)&&t.push(e),t},[])||[]}getTickPositions(){let t=this.axis,e=Math.floor(t.min/t.tickInterval)*t.tickInterval,i=Math.ceil(t.max/t.tickInterval)*t.tickInterval;return Object.keys(t.treeGrid.mapOfPosToGridNode||{}).reduce(function(s,o){let r=+o;return r>=e&&r<=i&&!t.brokenAxis?.isInAnyBreak(r)&&s.push(r),s},[])}isCollapsed(t){let e=this.axis.options.breaks||[],i=ib(t);return e.some(function(t){return t.from===i.from&&t.to===i.to})}toggleCollapse(t){return this.isCollapsed(t)?this.expand(t):this.collapse(t)}}let{series:iE,seriesTypes:{xrange:iS}}=tR();class iT extends iS{static compose(t,e,i,s){iS.compose(t),e&&(ez(t,e),!i||(eD.compose(e,i.prototype.pointClass),s&&iP.compose(t,e,i,s)))}drawPoint(t,e){let i=this.options,s=this.chart.renderer,o=t.shapeArgs,r=t.plotY,n=t.selected&&"select",a=i.stacking&&!i.borderRadius,l=t.graphic,h;t.options.milestone?j(r)&&null!==t.y&&!1!==t.visible?(h=s.symbols.diamond(o.x||0,o.y||0,o.width||0,o.height||0),l?l[e]({d:h}):t.graphic=l=s.path(h).addClass(t.getClassName(),!0).add(t.group||this.group),this.chart.styledMode||t.graphic.attr(this.pointAttribs(t,n)).shadow(i.shadow,null,a)):l&&(t.graphic=l.destroy()):super.drawPoint(t,e)}translatePoint(t){let e,i;super.translatePoint(t),t.options.milestone&&(i=(e=t.shapeArgs).height||0,t.shapeArgs={x:(e.x||0)-i/2,y:e.y,width:i,height:i})}}iT.defaultOptions=K(iS.defaultOptions,{grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 0.8em">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){let t=this.series,e=t.xAxis,i=t.tooltipOptions.dateTimeLabelFormats,s=e.options.startOfWeek,o=t.tooltipOptions,r=this.options.milestone,n=o.xDateFormat,a="<b>"+(this.name||this.yCategory)+"</b>";if(o.pointFormat)return this.tooltipFormatter(o.pointFormat);!n&&j(this.start)&&(n=t.chart.time.getDateFormat(e.closestPointRange,this.start,s,i||{}));let l=t.chart.time.dateFormat(n,this.start),h=t.chart.time.dateFormat(n,this.end);return a+="<br/>",r?a+=l+"<br/>":a+="Start: "+l+"<br/>End: "+h+"<br/>",a}},connectors:{type:"simpleConnect",animation:{reversed:!0},radius:0,startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,align:"left"},endMarker:{enabled:!1,align:"right"}}}),X(iT.prototype,{pointArrayMap:["start","end","y"],pointClass:e$,setData:iE.prototype.setData}),tR().registerSeriesType("gantt",iT);let iC=A();iC.Connection=iC.Connection||tn,iC.GanttChart=iC.GanttChart||tm,iC.Navigator=iC.Navigator||t3,iC.RangeSelector=iC.RangeSelector||em,iC.Scrollbar=iC.Scrollbar||t0,iC.ganttChart=iC.GanttChart.ganttChart,C(iC.SVGRenderer),({compose:function(t,e){J(ta,"CurrentDateIndication")&&(N(t,"afterSetOptions",th),N(e,"render",td),ti(e.prototype,"getLabelText",tc))}}).compose(iC.Axis,iC.PlotLineOrBand),iT.compose(iC.Axis,iC.Chart,iC.Series,iC.Tick),iC.Navigator.compose(iC.Chart,iC.Axis,iC.Series),iC.RangeSelector.compose(iC.Axis,iC.Chart),iC.Scrollbar.compose(iC.Axis);let iL=A();return M.default})()},45913:function(t){var e;let i,s,o,r,n,a,l,h,d,c;i=(e="u"<typeof window?this:window)._Highcharts,s=e._Highcharts.Templating,o=e._Highcharts.AST,r=e._Highcharts.Legend,n=e._Highcharts.Axis,a=e._Highcharts.Color,l=e._Highcharts.SeriesRegistry,h=e._Highcharts.RendererRegistry,d=e._Highcharts.Point,c=e._Highcharts.Series,t.exports=(()=>{"use strict";let t;var e,p,u,g,f={260:t=>{t.exports=d},512:t=>{t.exports=l},532:t=>{t.exports=n},608:t=>{t.exports=h},620:t=>{t.exports=a},632:t=>{t.exports=r},660:t=>{t.exports=o},820:t=>{t.exports=c},944:t=>{t.exports=i},984:t=>{t.exports=s}},m={};function x(t){var e=m[t];if(void 0!==e)return e.exports;var i=m[t]={exports:{}};return f[t](i,i.exports,x),i.exports}x.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return x.d(e,{a:e}),e},x.d=(t,e)=>{for(var i in e)x.o(e,i)&&!x.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},x.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var b={};x.d(b,{default:()=>sw});var y=x(944),v=x.n(y);let{doc:w,win:M}=v();function k(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;v().Point&&t instanceof v().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let n=t.addEventListener;n&&n.call(t,e,i,!!v().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let a={fn:i,order:"number"==typeof s.order?s.order:1/0};return r[e].push(a),r[e].sort((t,e)=>t.order-e.order),function(){U(t,e,i)}}function A(t,e,i){let s,o=H(e)&&!C(i),r=(e,i)=>{C(e)?t.setAttribute(i,e):o?(s=t.getAttribute(i))||"class"!==i||(s=t.getAttribute(i+"Name")):t.removeAttribute(i)};return H(e)?r(i,e):Y(e,r),s}function P(t,e,i){return t>e?t<i?t:i:e}function E(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function S(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function T(t,e){N(t.style,e)}function C(t){return null!=t}function L(t,e,i){Y(t,function(s,o){s!==e&&s?.destroy&&s.destroy(),(s?.destroy||!i)&&delete t[o]})}function O(t,e){let i=t.length;for(;i--;)if(t[i]===e){t.splice(i,1);break}}function N(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function I(t,e,i,s){if(i=i||{},w?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==v())){let s=w.createEvent("Events");
1s.initEvent(e,!0,!0),i=N(s,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||N(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let s=[],o=t,r=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);r&&s.sort((t,e)=>t.order-e.order),s.forEach(e=>{!1===e.fn.call(t,i,t)&&i.preventDefault()})}s&&!i.defaultPrevented&&s.call(t,i)}function D(t,e){let i=t.split(".");for(;i.length&&C(e);){let t=i.shift();if(void 0===t||"__proto__"===t)return;if("this"===t){let t;return X(e)&&(t=e["@this"]),t??e}let s=e[t.replace(/[\\'"]/g,"")];if(!C(s)||"function"==typeof s||"number"==typeof s.nodeType||s===M)return;e=s}return e}let B=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]};function R(t){C(t)&&clearTimeout(t)}function F(t){return X(t)&&"number"==typeof t.nodeType}function z(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function H(t){return"string"==typeof t}function W(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function X(t,e){return!!t&&"object"==typeof t&&(!e||!W(t))}function G(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),Y(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!X(i,!0)||(o=i?.constructor,X(i,!0)&&!F(i)&&o?.name&&"Object"!==o.name)||F(i)?t[s]=e[s]:t[s]=r(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let n=s.length;for(i=0;i<n;i++)o=r(o,s[i]);return o}function Y(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function V(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function j(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function U(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,Y(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}function _(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)}let{doc:q,win:K}=v(),$=K.EventTarget&&new K.EventTarget||"none";function Z(t){if("function"==typeof K.MouseEvent)return new K.MouseEvent(t.type,t);if(q?.createEvent){let e=q.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t.type,t.bubbles,t.cancelable,t.view||K,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),e}return J(t.type)}function J(t,e,i){let s=e||{x:0,y:0};if("function"==typeof K.MouseEvent)return new K.MouseEvent(t,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:i||$,view:K,detail:+("click"===t),screenX:s.x,screenY:s.y,clientX:s.x,clientY:s.y});if(q?.createEvent){let e=q.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t,!0,!0,K,+("click"===t),s.x,s.y,s.x,s.y,!1,!1,
1!1,!1,0,null),e}return{type:t}}let Q={addClass:function(t,e){t.classList?t.classList.add(e):0>t.className.indexOf(e)&&(t.className+=" "+e)},cloneMouseEvent:Z,cloneTouchEvent:function(t){let e=t=>{let e=[];for(let i=0;i<t.length;++i){let s=t.item(i);s&&e.push(s)}return e};if("function"==typeof K.TouchEvent){let i=new K.TouchEvent(t.type,{touches:e(t.touches),targetTouches:e(t.targetTouches),changedTouches:e(t.changedTouches),ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed,detail:t.detail,view:t.view});return t.defaultPrevented&&i.preventDefault(),i}let i=Z(t);return i.touches=t.touches,i.changedTouches=t.changedTouches,i.targetTouches=t.targetTouches,i},escapeStringForHTML:function(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},getElement:function(t){return q.getElementById(t)},getFakeMouseEvent:J,getHeadingTagNameForElement:function(t){let e=t=>"h"+Math.min(6,parseInt(t.slice(1),10)+1),i=t=>/^H[1-6]$/i.test(t),s=t=>{let o=(t=>{let e=t;for(;e=e.previousSibling;){let t=e.tagName||"";if(i(t))return t}return""})(t);if(o)return e(o);let r=t.parentElement;if(!r)return"h6";let n=r.tagName;return i(n)?e(n):s(r)};return s(t)},removeChildNodes:function(t){for(;t.lastChild;)t.removeChild(t.lastChild)},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(RegExp(e,"g"),"")},removeElement:function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},reverseChildNodes:function(t){let e=t.childNodes.length;for(;e--;)t.appendChild(t.childNodes[e])},simulatedEventTarget:$,stripHTMLTagsFromString:function(t,e=!1){return"string"==typeof t?e?t.replace(/<\/?[^>]+(>|$)/g,""):t.replace(/<\/?(?!\s)[^>]+(>|$)/g,""):t},visuallyHideElement:function(t){T(t,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}};var tt=x(984),te=x.n(tt);let{format:ti}=te();var ts=e||(e={});function to(t,e,i){let s=(t,e)=>{let i=t.slice(e||0),s=i.indexOf("{"),o=i.indexOf("}");if(s>-1&&o>s)return{statement:i.substring(s+1,o),begin:e+s+1,end:e+o}},o=[],r,n,a=0;do r=s(t,a),(n=t.substring(a,r&&r.begin-1)).length&&o.push({value:n,type:"constant"}),r&&o.push({value:r.statement,type:"statement"}),a=r?r.end+1:a+1;while(r);return o.forEach(t=>{"statement"===t.type&&(t.value=function(t,e){let i,s,o=t.indexOf("#each("),r=t.indexOf("#plural("),n=t.indexOf("["),a=t.indexOf("]");if(o>-1){let r=t.slice(o).indexOf(")")+o,n=t.substring(0,o),a=t.substring(r+1),l=t.substring(o+6,r).split(","),h=Number(l[1]),d;if(s="",i=D(l[0],e)){d=(h=isNaN(h)?i.length:h)<0?i.length+h:Math.min(h,i.length);for(let t=0;t<d;++t)s+=n+i[t]+a}return s.length?s:""}if(r>-1){var l;let i=t.slice(r).indexOf(")")+r,o=t.substring(r+8,i).split(",");switch(Number(D(o[0],e))){case 0:s=V(o[4],o[1]);break;case 1:s=V(o[2],o[1]);break;case 2:s=V(o[3],o[1]);break;default:s=o[1]}return s?(l=s).trim&&l.trim()||l.replace(/^\s+|\s+$/g,""):""}if(n>-1){let s,o=t.substring(0,n),r=Number(t.substring(n+1,a));return i=D(o,e),!isNaN(r)&&i&&(r<0?void 0===(s=i[i.length+r])&&(s=i[0]):void 0===(s=i[r])&&(s=i[i.length-1])),void 0!==s?s:""}return"{"+t+"}"}(t.value,e))}),ti(o.reduce((t,e)=>t+e.value,""),e,i)}function tr(t,e){let i=t.split("."),s=this.options.lang,o=0;for(;o<i.length;++o)s=s&&s[i[o]];return"string"==typeof s?to(s,e,this):""}ts.compose=function(t){let e=t.prototype;e.langFormat||(e.langFormat=tr)},ts.i18nFormat=to;let tn=e,{doc:ta}=v(),{stripHTMLTagsFromString:tl}=Q;function th(t){if(t.points&&t.points.length){let e=B(t.points,t=>!!t.graphic);return e&&e.graphic&&e.graphic.element}}function td(t){let e=th(t);return e&&e.parentNode||t.graph&&t.graph.element||t.group&&t.group.element}let tc={fireEventOnWrappedOrUnwrappedElement:function t(e,i){let s=i.type,o=e.hcEvents;ta?.createEvent&&(e.dispatchEvent||e.fireEvent)?e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(s,i):o&&o[s]?I(e,s,i):e.element&&t(e.element,i)},getChartTitle:function(t){return tl(t.options.title.text||t.langFormat("accessibility.defaultChartTitle",{chart:t}),t.renderer.forExport)},getAxisDescription:function(t){return t&&(t.options.accessibility?.description||t.axisTitle?.textStr||t.options.id||t.categories&&t.chart.langFormat("accessibility.axis.defaultAxisNames.categories",{})||t.dateTime&&t.chart.langFormat("accessibility.axis.defaultAxisNames.time",{})||t.chart.langFormat("accessibility.axis.defaultAxisNames.values",{}))},getAxisRangeDescription:function(t){let e,i,s,o,r,n,a,l,h,d,c,p,u=t.options||{};return u.accessibility&&void 0!==u.accessibility.rangeDescription?u.accessibility.rangeDescription:t.categories?(e=t.chart,t.dataMax&&t.dataMin?e.langFormat("accessibility.axis.rangeCategories",{chart:e,axis:t,numCategories:t.dataMax-t.dataMin+1}):""):t.dateTime&&(0===t.min||0===t.dataMin)?(i=t.chart,s={},o=t.dataMin||t.min||0,r=t.dataMax||t.max||0,n="Seconds",s.Seconds=(r-o)/1e3,s.Minutes=s.Seconds/60,s.Hours=s.Minutes/60,s.Days=s.Hours/24,["Minutes","Hours","Days"].forEach(function(t){s[t]>2&&(n=t)}),a=s[n].toFixed(+("Seconds"!==n&&"Minutes"!==n)),i.langFormat("accessibility.axis.timeRange"+n,{chart:i,axis:t,range:a.replace(".0","")})):(d=(h=(l=t.chart).options)&&h.accessibility&&h.accessibility.screenReaderSection.axisRangeDateFormat||"",c={min:t.dataMin||t.min||0,max:t.dataMax||t.max||0},p=function(e){return t.dateTime?l.time.dateFormat(d,c[e]):c[e].toString()},l.langFormat("accessibility.axis.rangeFromTo",{chart:l,axis:t,rangeFrom
vendor: 5,871 bytes, line 1
1:p("min"),rangeTo:p("max")}))},getPointFromXY:function(t,e,i){let s=t.length,o;for(;s--;)if(o=B(t[s].points||[],function(t){return t.x===e&&t.y===i}))return o},getSeriesFirstPointElement:th,getSeriesFromName:function(t,e){return e?(t.series||[]).filter(function(t){return t.name===e}):t.series},getSeriesA11yElement:td,unhideChartElementFromAT:function t(e,i){i.setAttribute("aria-hidden",!1),i!==e.renderTo&&i.parentNode&&i.parentNode!==ta.body&&(Array.prototype.forEach.call(i.parentNode.childNodes,function(t){t.hasAttribute("aria-hidden")||t.setAttribute("aria-hidden",!0)}),t(e,i.parentNode))},hideSeriesFromAT:function(t){let e=td(t);e&&e.setAttribute("aria-hidden",!0)},scrollAxisToPoint:function(t){let e=t.series.xAxis,i=t.series.yAxis,s=e&&e.scrollbar?e:i,o=s&&s.scrollbar;if(o&&C(o.to)&&C(o.from)){let e=o.to-o.from,i=function(t,e){if(!C(t.dataMin)||!C(t.dataMax))return 0;let i=t.toPixels(t.dataMin),s=t.toPixels(t.dataMax),o="xAxis"===t.coll?"x":"y";return(t.toPixels(e[o]||0)-i)/(s-i)}(s,t);o.updatePosition(i-e/2,i+e/2),I(o,"changed",{from:o.from,to:o.to,trigger:"scrollbar",DOMEvent:null})}}},{doc:tp}=v(),{removeElement:tu}=Q,tg=class{constructor(){this.elements=[]}createElement(){let t=tp.createElement.apply(tp,arguments);return this.elements.push(t),t}removeElement(t){tu(t),this.elements.splice(this.elements.indexOf(t),1)}destroyCreatedElements(){this.elements.forEach(function(t){tu(t)}),this.elements=[]}},tf=class{constructor(){this.eventRemovers=[]}addEvent(){let t=k.apply(v(),arguments);return this.eventRemovers.push({element:arguments[0],remover:t}),t}removeEvent(t){let e=this.eventRemovers.map(t=>t.remover).indexOf(t);this.eventRemovers[e].remover(),this.eventRemovers.splice(e,1)}removeAddedEvents(){this.eventRemovers.map(t=>t.remover).forEach(t=>t()),this.eventRemovers=[]}},{fireEventOnWrappedOrUnwrappedElement:tm}=tc,{getFakeMouseEvent:tx}=Q,tb=class{destroy(){}getKeyboardNavigation(){return[]}init(){}onChartRender(){}onChartUpdate(){}initBase(t,e){this.chart=t,this.eventProvider=new tf,this.domElementProvider=new tg,this.proxyProvider=e,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}}addEvent(t,e,i,s){return this.eventProvider.addEvent(t,e,i,s)}createElement(t,e){return this.domElementProvider.createElement(t,e)}fakeClickEvent(t){tm(t,tx("click"))}destroyBase(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()}},ty=class{constructor(t,e){this.chart=t,this.keyCodeMap=e.keyCodeMap||[],this.validate=e.validate,this.init=e.init,this.terminate=e.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}run(t){let e=t.which||t.keyCode,i=this.response.noHandler,s=B(this.keyCodeMap,function(t){return t[0].indexOf(e)>-1});return s?i=s[1].call(this,e,t):9===e&&(i=this.response[t.shiftKey?"prev":"next"]),i}},{unhideChartElementFromAT:tv,getChartTitle:tw}=tc,{doc:tM}=v(),{stripHTMLTagsFromString:tk}=Q,tA=class extends tb{onChartUpdate(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()}handleSVGTitleElement(){let t=this.chart,e="highcharts-title-"+t.index,i=tk(t.langFormat("accessibility.svgContainerTitle",{chartTitle:tw(t)}));if(i.length){let s=this.svgTitleElement=this.svgTitleElement||tM.createElementNS("http://www.w3.org/2000/svg","title");s.textContent=i,s.id=e,t.renderTo.insertBefore(s,t.renderTo.firstChild)}}setSVGContainerLabel(){let t=this.chart,e=t.langFormat("accessibility.svgContainerLabel",{chartTitle:tw(t)});t.renderer.box&&e.length&&t.renderer.box.setAttribute("aria-label",e)}setGraphicContainerAttrs(){let t=this.chart,e=t.langFormat("accessibility.graphicContainerLabel",{chartTitle:tw(t)});e.length&&t.container.setAttribute("aria-label",e)}setRenderToAttrs(){let t=this.chart,e="disabled"!==t.options.accessibility.landmarkVerbosity,i=t.langFormat("accessibility.chartContainerLabel",{title:tw(t),chart:t});i&&(t.renderTo.setAttribute("role",e?"region":"group"),t.renderTo.setAttribute("aria-label",i))}makeCreditsAccessible(){let t=this.chart,e=t.credits;e&&(e.textStr&&e.element.setAttribute("aria-label",t.langFormat("accessibility.credits",{creditsStr:tk(e.textStr,t.renderer.forExport)})),tv(t,e.element))}getKeyboardNavigation(){let t=this.chart;return new ty(t,{keyCodeMap:[],validate:function(){return!0},init:function(){let e=t.accessibility;e&&e.keyboardNavigation.tabindexContainer.focus()}})}destroy(){this.chart.renderTo.setAttribute("aria-hidden",!0)}};!function(t){let e=["x","y","transform","width","height","r","d","stroke-width"];function i(){let t=this.focusElement,e=this.options.accessibility.keyboardNavigation.focusBorder;t&&(t.removeFocusBorder(),e.enabled&&t.addFocusBorder(e.margin,{stroke:e.style.color,strokeWidth:e.style.lineWidth,r:e.style.borderRadius}))}function s(t,e){let i=this.options.accessibility.keyboardNavigation.focusBorder,s=e||t.element;s&&s.focus&&(s.hcEvents&&s.hcEvents.focusin||k(s,"focusin",function(){}),s.focus(),i.hideBrowserFocusOutline&&(s.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=t,k(this,"endResize",function(){this.renderFocusBorder()}),this.renderFocusBorder()}function o(t,i){this.focusBorder&&this.removeFocusBorder();let s=this.getBBox(),o=V(t,3),r=this.parentGroup,n=this.scaleX||r&&r.scaleX,a=this.scaleY||r&&r.scaleY,l=(n?!a:a)?Math.abs(n||a||1):(Math.abs(n||1)+Math.abs(a||1))/2,h=this.renderer.fontMetrics(this).h;s.x+=this.translateX?this.translateX:0,s.y+=this.translateY?this.translateY:0;let d=s.x-o,c=s.y-o,p=s.width+2*o,u=s.height+2*o,g=!!this.text;if("text"===this.element.nodeName||g){let t,e,i=!!this.rotation,r=g?{x:+!!i,y:0}:(t=0,e=0,"middle"===this.attr("text-anchor")?t=e=.5:this.rotation?t=.25:e=.75,{x:t,y:e}),n=+this.attr("x"),a=+this.attr("y");
1if(isNaN(n)||(d=n-s.width*r.x-o),isNaN(a)||(c=a-("start"===this.attr("text-anchor")?h:s.height)*r.y-o),g&&i){let t=p;p=u,u=t,isNaN(n)||(d=n-s.height*r.x-o),isNaN(a)||(c=a-s.width*r.y-o)}}this.focusBorder=this.renderer.rect(d,c,p,u,parseInt((i&&i.r||0).toString(),10)/l).addClass("highcharts-focus-border").attr({zIndex:99}).add(r),this.renderer.styledMode||this.focusBorder.attr({stroke:i&&i.stroke,"stroke-width":(i&&i.strokeWidth||0)/l}),function(t,...i){t.focusBorderUpdateHooks||(t.focusBorderUpdateHooks={},e.forEach(e=>{let s=e+"Setter",o=t[s]||t._defaultSetter;t.focusBorderUpdateHooks[s]=o,t[s]=function(){let e=o.apply(t,arguments);return t.addFocusBorder.apply(t,i),e}}))}(this,t,i),function(t){if(t.focusBorderDestroyHook)return;let e=t.destroy;t.destroy=function(){return t.focusBorder&&t.focusBorder.destroy&&t.focusBorder.destroy(),e.apply(t,arguments)},t.focusBorderDestroyHook=e}(this)}function r(){var t;t=this,t.focusBorderUpdateHooks&&(Object.keys(t.focusBorderUpdateHooks).forEach(e=>{let i=t.focusBorderUpdateHooks[e];i===t._defaultSetter?delete t[e]:t[e]=i}),delete t.focusBorderUpdateHooks),this.focusBorderDestroyHook&&(this.destroy=this.focusBorderDestroyHook,delete this.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}t.compose=function(t,e){let n=t.prototype,a=e.prototype;n.renderFocusBorder||(n.renderFocusBorder=i,n.setFocusToElement=s),a.addFocusBorder||(a.addFocusBorder=o,a.removeFocusBorder=r)}}(p||(p={}));let tP=p;var tE=x(660),tS=x.n(tE);let{doc:tT}=v(),{addClass:tC,visuallyHideElement:tL}=Q,tO=class{constructor(t,e){this.chart=t,this.domElementProvider=new tg,this.announceRegion=this.addAnnounceRegion(e)}destroy(){this.domElementProvider.destroyCreatedElements()}announce(t){tS().setElementHTML(this.announceRegion,t),this.clearAnnouncementRegionTimer&&R(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(()=>{this.announceRegion.innerHTML=tS().emptyHTML,delete this.clearAnnouncementRegionTimer},3e3)}addAnnounceRegion(t){let e=this.chart.announcerContainer||this.createAnnouncerContainer(),i=this.domElementProvider.createElement("div");return A(i,{"aria-hidden":!1,"aria-live":t,"aria-atomic":!0}),this.chart.styledMode?tC(i,"highcharts-visually-hidden"):tL(i),e.appendChild(i),i}createAnnouncerContainer(){let t=this.chart,e=tT.createElement("div");return A(e,{"aria-hidden":!1,class:"highcharts-announcer-container"}),e.style.position="relative",t.renderTo.insertBefore(e,t.renderTo.firstChild),t.announcerContainer=e,e}},{escapeStringForHTML:tN,stripHTMLTagsFromString:tI}=Q;function tD(t){return(t.annotations||[]).reduce((t,e)=>(e.options&&!1!==e.options.visible&&(t=t.concat(e.labels)),t),[])}function tB(t){return t.options&&t.options.accessibility&&t.options.accessibility.description||t.graphic&&t.graphic.text&&t.graphic.text.textStr||""}function tR(t){let e=t.options&&t.options.accessibility&&t.options.accessibility.description;if(e)return e;let i=t.chart,s=tB(t),o=t.points.filter(t=>!!t.graphic).map(t=>{let e=t.accessibility&&t.accessibility.valueDescription||t.graphic&&t.graphic.element&&t.graphic.element.getAttribute("aria-label")||"",i=t&&t.series.name||"";return(i?i+", ":"")+"data point "+e}).filter(t=>!!t),r=o.length,n=r>1?"MultiplePoints":r?"SinglePoint":"NoPoints",a={annotationText:s,annotation:t,numPoints:r,annotationPoint:o[0],additionalAnnotationPoints:o.slice(1)};return i.langFormat("accessibility.screenReaderSection.annotations.description"+n,a)}function tF(t){return tD(t).map(e=>{let i=tN(tI(tR(e),t.renderer.forExport));return i?`<li>${i}</li>`:""})}let tz={getAnnotationsInfoHTML:function(t){let e=t.annotations;if(!(e&&e.length))return"";let i=tF(t);return`<ul style="list-style-type: none">${i.join(" ")}</ul>`},getAnnotationLabelDescription:tR,getAnnotationListItems:tF,getPointAnnotationTexts:function(t){let e=tD(t.series.chart).filter(e=>e.points.indexOf(t)>-1);return e.length?e.map(t=>`${tB(t)}`):[]}},{getAnnotationsInfoHTML:tH}=tz,{getAxisDescription:tW,getAxisRangeDescription:tX,getChartTitle:tG,unhideChartElementFromAT:tY}=tc,{format:tV}=te(),{doc:tj}=v(),{addClass:tU,getElement:t_,getHeadingTagNameForElement:tq,stripHTMLTagsFromString:tK,visuallyHideElement:t$}=Q;function tZ(t){return function(t,...e){let i,s;do for(s of(i=t,e))t=t.replace(s[0],s[1]);while(t!==i);return t}(t,[/<([\w\-.:!]+)\b[^<>]*>\s*<\/\1>/g,""])}let tJ=class extends tb{constructor(){super(...arguments),this.screenReaderSections={}}init(){let t=this.chart,e=this;this.initRegionsDefinitions(),this.addEvent(t,"afterGetTableAST",function(t){e.onDataTableCreated(t)}),this.addEvent(t,"afterViewData",function(t){t.wasHidden&&(e.dataTableDiv=t.element,setTimeout(function(){e.focusDataTable()},300))}),this.addEvent(t,"afterHideData",function(){e.viewDataTableButton&&e.viewDataTableButton.setAttribute("aria-expanded","fal
1se")}),t.exporting&&this.addEvent(t,"afterPrint",function(){e.updateAllScreenReaderSections()}),this.announcer=new tO(t,"assertive")}initRegionsDefinitions(){let t=this,e=this.chart.options.accessibility;this.screenReaderSections={before:{element:null,buildContent:function(i){let s=e.screenReaderSection.beforeChartFormatter;return s?s(i,t):t.defaultBeforeChartFormatter()},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.renderTo.firstChild)},afterInserted:function(){void 0!==t.sonifyButtonId&&t.initSonifyButton(t.sonifyButtonId),void 0!==t.dataTableButtonId&&t.initDataTableButton(t.dataTableButtonId)}},after:{element:null,buildContent:function(i){let s=e.screenReaderSection.afterChartFormatter;return s?s(i,t):t.defaultAfterChartFormatter()},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.container.nextSibling)},afterInserted:function(){t.chart.accessibility&&e.keyboardNavigation.enabled&&t.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}}onChartRender(){this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),this.updateAllScreenReaderSections()}updateAllScreenReaderSections(){let t=this;Object.keys(this.screenReaderSections).forEach(function(e){t.updateScreenReaderSection(e)})}getLinkedDescriptionElement(){let t=this.chart.options.accessibility.linkedDescription;if(!t)return;if("string"!=typeof t)return t;let e=tV(t,this.chart),i=tj.querySelectorAll(e);if(1===i.length)return i[0]}setLinkedDescriptionAttrs(){let t=this.linkedDescriptionElement;t&&(t.setAttribute("aria-hidden","true"),tU(t,"highcharts-linked-description"))}updateScreenReaderSection(t){let e=this.chart,i=this.screenReaderSections[t],s=i.buildContent(e),o=i.element=i.element||this.createElement("div"),r=o.firstChild||this.createElement("div");s?(this.setScreenReaderSectionAttribs(o,t),tS().setElementHTML(r,s),o.appendChild(r),i.insertIntoDOM(o,e),e.styledMode?tU(r,"highcharts-visually-hidden"):t$(r),tY(e,r),i.afterInserted&&i.afterInserted()):(o.parentNode&&o.parentNode.removeChild(o),i.element=null)}setScreenReaderSectionAttribs(t,e){let i=this.chart,s=i.langFormat("accessibility.screenReaderSection."+e+"RegionLabel",{chart:i,chartTitle:tG(i)});A(t,{id:`highcharts-screen-reader-region-${e}-${i.index}`,"aria-label":s||void 0}),t.style.position="relative",s&&t.setAttribute("role","all"===i.options.accessibility.landmarkVerbosity?"region":"group")}defaultBeforeChartFormatter(){let t=this.chart,e=t.options.accessibility.screenReaderSection.beforeChartFormat;if(!e)return"";let i=this.getAxesDescription(),s=t.sonify&&t.options.sonification&&t.options.sonification.enabled,o="highcharts-a11y-sonify-data-btn-"+t.index,r="hc-linkto-highcharts-data-table-"+t.index,n=tH(t),a=t.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:t}),l={headingTagName:tq(t.renderTo),chartTitle:tG(t),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:i.xAxis,yAxisDescription:i.yAxis,playAsSoundButton:s?this.getSonifyButtonText(o):"",viewTableButton:t.exporting?.getCSV?this.getDataTableButtonText(r):"",annotationsTitle:n?a:"",annotationsList:n},h=tn.i18nFormat(e,l,t);return this.dataTableButtonId=r,this.sonifyButtonId=o,tZ(h)}defaultAfterChartFormatter(){let t=this.chart,e=t.options.accessibility.screenReaderSection.afterChartFormat;if(!e)return"";let i={endOfChartMarker:this.getEndOfChartMarkerText()};return tZ(tn.i18nFormat(e,i,t))}getLinkedDescription(){let t=this.linkedDescriptionElement;return tK(t&&t.innerHTML||"",this.chart.renderer.forExport)}getLongdescText(){let t=this.chart.options,e=t.caption,i=e&&e.text,s=this.getLinkedDescription();return t.accessibility.description||s||i||""}getTypeDescriptionText(){var t;let e,i,s,o,r,n,a,l=this.chart;return l.types?l.options.accessibility.typeDescription||(o=(t=l.types)[0],r=l.series&&l.series[0]||{},n=l.mapView&&l.mapView.geoMap&&l.mapView.geoMap.title,a={numSeries:l.series.length,numPoints:r.points&&r.points.length,chart:l,mapTitle:n},o?"map"===o||"tiledwebmap"===o?a.mapTitle?l.langFormat("accessibility.chartTypes.mapTypeDescription",a):l.langFormat("accessibility.chartTypes.unknownMap",a):l.types.length>1?l.langFormat("accessibility.chartTypes.combinationChart",a):(e=t[0],i=l.langFormat("accessibility.seriesTypeDescriptions."+e,a),s=l.series&&l.series.length<2?"Single":"Multiple",(l.langFormat("accessibility.chartTypes."+e+s,a)||l.langFormat("accessibility.chartTypes.default"+s,a))+(i?" "+i:"")):l.langFormat("accessibility.chartTypes.emptyChart",a)):""}getDataTableButtonText(t){let e=this.chart;return'<button id="'+t+'">'+e.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:e,chartTitle:tG(e)})+"</button>"}getSonifyButtonText(t){let e=this.chart;return e.options.sonification&&!1===e.options.sonification.enabled?"":'<button id="'+t+'">'+e.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:e,chartTitle:tG(e)})+"</button>"}getSubtitleText(){let t=this.chart.options.subtitle;return tK(t&&t.text||"",this.chart.renderer.forExport)}getEndOfChartMarkerText(){let t=t_(`highcharts-end-of-chart-marker-${this.chart.index}`);
vendor: 4,962 bytes, line 1
1if(t)return t.outerHTML;let e=this.chart,i=e.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:e});return'<div id="highcharts-end-of-chart-marker-'+e.index+'">'+i+"</div>"}onDataTableCreated(t){let e=this.chart;if(e.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");let i=t.tree.attributes||{};i.tabindex=-1,i.summary=e.langFormat("accessibility.table.tableSummary",{chart:e}),t.tree.attributes=i}}focusDataTable(){let t=this.dataTableDiv,e=t&&t.getElementsByTagName("table")[0];e&&e.focus&&e.focus()}initSonifyButton(t){let e=this.sonifyButton=t_(t),i=this.chart,s=t=>{e&&(e.setAttribute("aria-hidden","true"),e.setAttribute("aria-label","")),t.preventDefault(),t.stopPropagation();let s=i.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:i});this.announcer.announce(s),setTimeout(()=>{e&&(e.removeAttribute("aria-hidden"),e.removeAttribute("aria-label")),i.sonify&&i.sonify()},1e3)};e&&i&&(e.setAttribute("tabindex",-1),e.onclick=function(t){(i.options.accessibility&&i.options.accessibility.screenReaderSection.onPlayAsSoundClick||s).call(this,t,i,this)})}initDataTableButton(t){let e=this.viewDataTableButton=t_(t),i=this.chart,s=t.replace("hc-linkto-","");e&&(A(e,{tabindex:-1,"aria-expanded":!!t_(s)}),e.onclick=i.options.accessibility.screenReaderSection.onViewDataTableClick||function(){i.exporting?.viewData()})}getAxesDescription(){let t=this.chart,e=function(e,i){let s=t[e];return s.length>1||s[0]&&V(s[0].options.accessibility&&s[0].options.accessibility.enabled,i)},i=!!t.types&&0>t.types.indexOf("map")&&0>t.types.indexOf("treemap")&&0>t.types.indexOf("tilemap"),s=!!t.hasCartesianSeries,o=e("xAxis",!t.angular&&s&&i),r=e("yAxis",s&&i),n={};return o&&(n.xAxis=this.getAxisDescriptionText("xAxis")),r&&(n.yAxis=this.getAxisDescriptionText("yAxis")),n}getAxisDescriptionText(t){let e=this.chart,i=e[t];return e.langFormat("accessibility.axis."+t+"Description"+(i.length>1?"Plural":"Singular"),{chart:e,names:i.map(function(t){return tW(t)}),ranges:i.map(function(t){return tX(t)}),numAxes:i.length})}destroy(){this.announcer&&this.announcer.destroy()}},{getChartTitle:tQ,unhideChartElementFromAT:t0}=tc,{getFakeMouseEvent:t1}=Q;function t2(t){return t.exporting?.svgElements?.[0]}class t5 extends tb{init(){let t=this.chart,e=this;this.addEvent(t,"exportMenuShown",function(){e.onMenuShown()}),this.addEvent(t,"exportMenuHidden",function(){e.onMenuHidden()}),this.createProxyGroup()}onMenuHidden(){let t=this.chart.exporting?.contextMenuEl;t&&t.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")}onMenuShown(){let t=this.chart,e=t.exporting?.contextMenuEl;e&&(this.addAccessibleContextMenuAttribs(),t0(t,e)),this.setExportButtonExpandedState("true")}setExportButtonExpandedState(t){this.exportButtonProxy&&this.exportButtonProxy.innerElement.setAttribute("aria-expanded",t)}onChartRender(){let t=this.chart,e=t.focusElement,i=t.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&e&&e===t.exporting?.group&&(e.focusBorder?t.setFocusToElement(e,this.exportButtonProxy.innerElement):i&&i.keyboardNavigation.tabindexContainer.focus())}proxyMenuButton(){let t,e,i=this.chart,s=this.proxyProvider,o=t2(i);t=i.options.exporting,e=t2(i),t&&!1!==t.enabled&&t.accessibility&&t.accessibility.enabled&&e&&e.element&&o&&(this.exportButtonProxy=s.addProxyElement("chartMenu",{click:o},"button",{"aria-label":i.langFormat("accessibility.exporting.menuButtonLabel",{chart:i,chartTitle:tQ(i)}),"aria-expanded":!1,title:i.options.lang.contextButtonTitle||null}))}createProxyGroup(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu")}addAccessibleContextMenuAttribs(){let t=this.chart,e=t.exporting?.divElements;if(e&&e.length){e.forEach(t=>{t&&("LI"!==t.tagName||t.children&&t.children.length?t.setAttribute("aria-hidden","true"):t.setAttribute("tabindex",-1))});let i=e[0]&&e[0].parentNode;i&&A(i,{"aria-hidden":void 0,"aria-label":t.langFormat("accessibility.exporting.chartMenuLabel",{chart:t}),role:"list"})}}getKeyboardNavigation(){let t=this.keyCodes,e=this.chart,i=this;return new ty(e,{keyCodeMap:[[[t.left,t.up],function(){return i.onKbdPrevious(this)}],[[t.right,t.down],function(){return i.onKbdNext(this)}],[[t.enter,t.space],function(){return i.onKbdClick(this)}]],validate:function(){return!!e.exporting&&e.options.exporting?.buttons?.contextButton.enabled!==!1&&!1!==e.options.exporting.enabled&&!1!==(e.options.exporting.accessibility?.enabled||!1)},init:function(){let t=i.exportButtonProxy,s=i.chart.exporting?.group;t&&s&&e.setFocusToElement(s,t.innerElement)},terminate:function(){e.hideExportMenu()}})}onKbdPrevious(t){let e=this.chart,i=e.options.accessibility,s=t.response,o=e.highlightedExportItemIx||0;for(;o--;)if(e.highlightExportItem(o))return s.success;return i.keyboardNavigation.wrapAround?(e.highlightLastExportItem(
1),s.success):s.prev}onKbdNext(t){let e=this.chart,i=e.options.accessibility,s=t.response;for(let t=(e.highlightedExportItemIx||0)+1;t<(e.exporting?.divElements?.length||0);++t)if(e.highlightExportItem(t))return s.success;return i.keyboardNavigation.wrapAround?(e.highlightExportItem(0),s.success):s.next}onKbdClick(t){let e=this.chart,i=void 0!==e.highlightedExportItemIx&&e.exporting?.divElements?.[e.highlightedExportItemIx],s=t2(e)?.element;return e.exporting?.openMenu?i&&this.fakeClickEvent(i):(s&&this.fakeClickEvent(s),e.highlightExportItem(0)),t.response.success}}!function(t){function e(){let t=t2(this);if(t){let e=t.element;e.onclick&&(e.onclick=function(){t1("click")})}}function i(){let t=this.exporting?.divElements;t&&this.exporting?.contextMenuEl&&this.exporting?.openMenu&&(t.forEach(t=>{t&&"highcharts-menu-item"===t.className&&t.onmouseout&&t.onmouseout(t1("mouseout"))}),this.highlightedExportItemIx=0,this.exporting.contextMenuEl.hideMenu(),this.container.focus())}function s(t){let e=this.exporting?.divElements?.[t],i=void 0!==this.highlightedExportItemIx&&this.exporting?.divElements?.[this.highlightedExportItemIx];if(e&&"LI"===e.tagName&&!(e.children&&e.children.length)){let s=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return e.focus&&s&&e.focus(),i&&i.onmouseout&&i.onmouseout(t1("mouseout")),e.onmouseover&&e.onmouseover(t1("mouseover")),this.highlightedExportItemIx=t,!0}return!1}function o(){if(this.exporting?.divElements){let t=this.exporting?.divElements.length;for(;t--;)if(this.highlightExportItem(t))return!0}return!1}t.compose=function(t){let r=t.prototype;r.hideExportMenu||(r.hideExportMenu=i,r.highlightExportItem=s,r.highlightLastExportItem=o,r.showExportMenu=e)}}(t5||(t5={}));let t3=t5,{doc:t6,win:t4}=v(),{getElement:t9,simulatedEventTarget:t8}=Q;class t7{constructor(t,e){this.currentModuleIx=NaN,this.modules=[],this.init(t,e)}init(t,e){let i=this.eventProvider=new tf;this.chart=t,this.components=e,this.modules=[],this.currentModuleIx=0,this.update(),i.addEvent(this.tabindexContainer,"keydown",t=>this.onKeydown(t)),i.addEvent(this.tabindexContainer,"focus",t=>this.onFocus(t)),["mouseup","touchend"].forEach(t=>i.addEvent(t6,t,t=>this.onMouseUp(t))),["mousedown","touchstart"].forEach(e=>i.addEvent(t.renderTo,e,()=>{this.isClickingChart=!0}))}update(t){let e=this.chart.options.accessibility,i=e&&e.keyboardNavigation,s=this.components;this.updateContainerTabindex(),i&&i.enabled&&t&&t.length?(this.modules=t.reduce(function(t,e){let i=s[e].getKeyboardNavigation();return t.concat(i)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())}updateExitAnchor(){let t=t9(`highcharts-end-of-chart-marker-${this.chart.index}`);this.removeExitAnchor(),t?(this.makeElementAnExitAnchor(t),this.exitAnchor=t):this.createExitAnchor()}move(t){let e=this.modules&&this.modules[this.currentModuleIx];e&&e.terminate&&e.terminate(t),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=t;let i=this.modules&&this.modules[this.currentModuleIx];if(i){if(i.validate&&!i.validate())return this.move(t);if(i.init)return i.init(t),!0}return this.currentModuleIx=0,this.exiting=!0,t>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1}onFocus(t){let e=this.chart,i=t.relatedTarget&&e.container.contains(t.relatedTarget),s=e.options.accessibility,o=s&&s.keyboardNavigation;if(o&&o.enabled&&!this.exiting&&!this.tabbingInBackwards&&!this.isClickingChart&&!i){let t=this.getFirstValidModuleIx();null!==t&&(this.currentModuleIx=t,this.modules[t].init(1))}this.keyboardReset=!1,this.exiting=!1}onMouseUp(t){if(delete this.isClickingChart,!this.keyboardReset&&t.relatedTarget!==t8){let e=this.chart;if(!t.target||!e.container.contains(t.target)){let t=this.modules&&this.modules[this.currentModuleIx||0];t&&t.terminate&&t.terminate(),this.currentModuleIx=0}e.focusElement&&(e.focusElement.removeFocusBorder(),delete e.focusElement),this.keyboardReset=!0}}onKeydown(t){let e,i=t||t4.event,s=this.modules&&this.modules.length&&this.modules[this.currentModuleIx],o=i.target;if((!o||"INPUT"!==o.nodeName||o.classList.contains("highcharts-a11y-proxy-element"))&&(this.keyboardReset=!1,this.exiting=!1,s)){let t=s.run(i);t===s.response.success?e=!0:t===s.response.prev?e=this.move(-1):t===s.response.next&&(e=this.move(1)),e&&(i.preventDefault(),i.stopPropagation())}}updateContainerTabindex(){let t,e=this.chart.options.accessibility,i=e&&e.keyboardNavigation,s=!(i&&!1===i.enabled),o=this.chart,r=o.container;o.renderTo.hasAttribute("tabindex")?(r.removeAttribute("tabindex"),t=
vendor: 4,928 bytes, line 1
1o.renderTo):t=r,this.tabindexContainer=t;let n=t.getAttribute("tabindex");s&&!n?t.setAttribute("tabindex","0"):s||o.container.removeAttribute("tabindex")}createExitAnchor(){let t=this.chart,e=this.exitAnchor=t6.createElement("div");t.renderTo.appendChild(e),this.makeElementAnExitAnchor(e)}makeElementAnExitAnchor(t){let e=this.tabindexContainer.getAttribute("tabindex")||0;t.setAttribute("class","highcharts-exit-anchor"),t.setAttribute("tabindex",e),t.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(t)}removeExitAnchor(){if(this.exitAnchor){let t=this.eventProvider.eventRemovers.find(t=>t.element===this.exitAnchor);t&&C(t.remover)&&this.eventProvider.removeEvent(t.remover),this.exitAnchor.parentNode&&this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor}}addExitAnchorEventsToEl(t){let e=this.chart,i=this;this.eventProvider.addEvent(t,"focus",function(t){let s=t||t4.event,o=!(s.relatedTarget&&e.container.contains(s.relatedTarget)||i.exiting);if(e.focusElement&&delete e.focusElement,o){if(i.tabbingInBackwards=!0,i.tabindexContainer.focus(),delete i.tabbingInBackwards,s.preventDefault(),i.modules&&i.modules.length){i.currentModuleIx=i.modules.length-1;let t=i.modules[i.currentModuleIx];t&&t.validate&&!t.validate()?i.move(-1):t&&t.init(-1)}}else i.exiting=!1})}getFirstValidModuleIx(){let t=this.modules.length;for(let e=0;e<t;++e){let t=this.modules[e];if(!t.validate||t.validate())return e}return null}destroy(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")}}function et(){let t=this;I(this,"dismissPopupContent",{},function(){t.tooltip&&t.tooltip.hide(0),t.hideExportMenu()})}function ee(t){27===(t.which||t.keyCode)&&v().charts&&v().charts.forEach(t=>{t&&t.dismissPopupContent&&t.dismissPopupContent()})}(t7||(t7={})).compose=function(t){t3.compose(t);let e=t.prototype;return!e.dismissPopupContent&&(e.dismissPopupContent=et,t6&&k(t6,"keydown",ee)),t};let ei=t7;var es=x(632),eo=x.n(es);let{animObject:er}=v(),{doc:en}=v(),{getChartTitle:ea}=tc,{stripHTMLTagsFromString:el,addClass:eh,removeClass:ed}=Q;function ec(t){let e=t.legend&&t.legend.allItems,i=t.options.legend.accessibility||{},s=t.colorAxis&&t.colorAxis.some(t=>!t.dataClasses||!t.dataClasses.length);return!!(e&&e.length&&!s&&!1!==i.enabled)}function ep(t,e){let i=e.legendItem||{};for(let s of(e.setState(t?"hover":"",!0),["group","label","symbol"])){let e=i[s],o=e&&e.element||e;o&&I(o,t?"mouseover":"mouseout")}}class eu extends tb{constructor(){super(...arguments),this.highlightedLegendItemIx=NaN,this.proxyGroup=null}init(){let t=this;this.recreateProxies(),this.addEvent(eo(),"afterScroll",function(){this.chart===t.chart&&(t.proxyProvider.updateGroupProxyElementPositions("legend"),t.updateLegendItemProxyVisibility(),t.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(t.highlightedLegendItemIx))}),this.addEvent(eo(),"afterPositionItem",function(e){this.chart===t.chart&&this.chart.renderer&&t.updateProxyPositionForItem(e.item)}),this.addEvent(eo(),"afterRender",function(){this.chart===t.chart&&this.chart.renderer&&t.recreateProxies()&&_(()=>t.proxyProvider.updateGroupProxyElementPositions("legend"),er(V(this.chart.renderer.globalAnimation,!0)).duration)})}updateLegendItemProxyVisibility(){let t,e=this.chart,i=e.legend,s=i.allItems||[],o=i.currentPage||1,r=i.clipHeight||0;s.forEach(s=>{if(s.a11yProxyElement){let n=i.pages&&i.pages.length,a=s.a11yProxyElement.element,l=!1;if(t=s.legendItem||{},n){let e=t.pageIx||0;l=(t.y||0)+(t.label?Math.round(t.label.getBBox().height):0)-i.pages[e]>r||e!==o-1}l?e.styledMode?eh(a,"highcharts-a11y-invisible"):a.style.visibility="hidden":(ed(a,"highcharts-a11y-invisible"),a.style.visibility="")}})}onChartRender(){ec(this.chart)||this.removeProxies()}highlightAdjacentLegendPage(t){let e=this.chart,i=e.legend,s=(i.currentPage||1)+t,o=i.pages||[];if(s>0&&s<=o.length){let t=0;for(let o of i.allItems)((o.legendItem||{}).pageIx||0)+1===s&&e.highlightLegendItem(t)&&(this.highlightedLegendItemIx=t),++t}}updateProxyPositionForItem(t){t.a11yProxyElement&&t.a11yProxyElement.refreshPosition()}recreateProxies(){let t=en.activeElement,e=this.proxyGroup,i=t&&e&&e.contains(t);return this.removeProxies(),!!ec(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),i&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)}removeProxies(){this.proxyProvider.removeGroup("legend")}updateLegendTitle(){let t=this.chart,e=el((t.legend&&t.legend.options.title&&t.legend.options.title.text||"").replace(/<br ?\/?>/g," "),t.renderer.forExport),i=t.langFormat("accessibility.legend.legendLabel"+(e?"":"NoTitle"),{chart:t,legendTitle:e,chartTitle:ea(t)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":i})}addLegendProxyGroup(){let t="all"===this.chart.options.accessibility.landmarkVerbosity?"regi
1on":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:t})}proxyLegendItems(){let t,e=this;((this.chart.legend||{}).allItems||[]).forEach(i=>{(t=i.legendItem||{}).label&&t.label.element&&e.proxyLegendItem(i)})}proxyLegendItem(t){let e=t.legendItem||{},i=t.legendItem?.label,s=i?.element,o=e.label?.styles?.textOverflow==="ellipsis";if(!e.label||!e.group)return;let r=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:el(t.name,this.chart.renderer.forExport),item:t}),n={tabindex:-1,"aria-pressed":t.visible,"aria-label":r,title:""};o&&-1!==(s.textContent||"").indexOf("…")&&(n.title=i?.textStr);let a=e.group.div?e.label:e.group;t.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:e.label,visual:a.element},"button",n)}getKeyboardNavigation(){let t=this.keyCodes,e=this,i=this.chart;return new ty(i,{keyCodeMap:[[[t.left,t.right,t.up,t.down],function(t){return e.onKbdArrowKey(this,t)}],[[t.enter,t.space],function(){return e.onKbdClick(this)}],[[t.pageDown,t.pageUp],function(i){let s=i===t.pageDown?1:-1;return e.highlightAdjacentLegendPage(s),this.response.success}]],validate:function(){return e.shouldHaveLegendNavigation()},init:function(){i.highlightLegendItem(0),e.highlightedLegendItemIx=0},terminate:function(){e.highlightedLegendItemIx=-1,i.legend.allItems.forEach(t=>ep(!1,t))}})}onKbdArrowKey(t,e){let{keyCodes:{left:i,up:s},highlightedLegendItemIx:o,chart:r}=this,n=r.legend.allItems.length,a=r.options.accessibility.keyboardNavigation.wrapAround,l=e===i||e===s?-1:1;return r.highlightLegendItem(o+l)?this.highlightedLegendItemIx+=l:a&&n>1&&(this.highlightedLegendItemIx=l>0?0:n-1,r.highlightLegendItem(this.highlightedLegendItemIx)),t.response.success}onKbdClick(t){let e=this.chart.legend.allItems[this.highlightedLegendItemIx];return e&&e.a11yProxyElement&&e.a11yProxyElement.click(),t.response.success}shouldHaveLegendNavigation(){if(!ec(this.chart))return!1;let t=this.chart,e=(t.options.legend||{}).accessibility||{};return!!(t.legend.display&&e.keyboardNavigation&&e.keyboardNavigation.enabled)}destroy(){this.removeProxies()}}function eg(t){let e=this.legend.allItems,i=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,s=e[t],o=s?.legendItem||{};if(s){var r;let n,a;z(i)&&e[i]&&ep(!1,e[i]),n=((r=this.legend).allItems[t].legendItem||{}).pageIx,a=r.currentPage,void 0!==n&&n+1!==a&&r.scroll(1+n-a);let l=o.label,h=s.a11yProxyElement&&s.a11yProxyElement.innerElement;return l&&l.element&&h&&this.setFocusToElement(l,h),ep(!0,s),!0}return!1}function ef(t){let e=this.chart.options.accessibility,i=t.item;e.enabled&&i&&i.a11yProxyElement&&i.a11yProxyElement.innerElement.setAttribute("aria-pressed",t.visible?"true":"false")}(eu||(eu={})).compose=function(t,e){let i=t.prototype;i.highlightLegendItem||(i.highlightLegendItem=eg,k(e,"afterColorizeItem",ef))};let em=eu;var ex=x(532),eb=x.n(ex);let{isTouchDevice:ey}=v(),ev=[];function ew(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function eM(){let t,e,i,s=this.legend,o=this.navigator;if(o){t=s&&s.options,e=o.xAxis,i=o.yAxis;let{scrollbarHeight:r,scrollButtonSize:n}=o;this.inverted?(o.left=o.opposite?this.chartWidth-r-o.height:this.spacing[3]+r,o.top=this.plotTop+n):(o.left=V(e.left,this.plotLeft+n),o.top=o.navigatorOptions.top||this.chartHeight-o.height-r-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(t&&"bottom"===t.verticalAlign&&"proximate"!==t.layout&&t.enabled&&!t.floating?s.legendHeight+V(t.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),e&&i&&(this.inverted?e.options.left=i.options.left=o.left:e.options.top=i.options.top=o.top,e.setAxisSize(),i.setAxisSize())}}function ek(e){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new t(this),V(e.redraw,!0)&&this.redraw(e.animation))}function eA(){let e=this.options;(e.navigator.enabled||e.scrollbar.enabled)&&(this.scroller=this.navigator=new t(this))}
1function eP(){let t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!ey&&"x"===this.zooming.type||ey&&"x"===this.zooming.pinchType))return!1}function eE(t){let e=t.navigator;if(e&&t.xAxis[0]){let i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function eS(t){let e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&(G(!0,this.options.navigator,e),G(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}let eT=function(e,i){if(j(ev,e)){let s=e.prototype;t=i,s.callbacks.push(eE),k(e,"afterAddSeries",ew),k(e,"afterSetChartSize",eM),k(e,"afterUpdate",ek),k(e,"beforeRender",eA),k(e,"beforeShowResetZoom",eP),k(e,"update",eS)}},{isTouchDevice:eC}=v();function eL(){this.navigatorAxis||(this.navigatorAxis=new eN(this))}function eO(t){let e,i=this.chart,s=i.options,o=s.navigator,r=this.navigatorAxis,n=i.zooming.pinchType,a=s.rangeSelector,l=i.zooming.type;if(this.isXAxis&&(o?.enabled||a?.enabled)){if("y"===l&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===l||eC&&"xy"===n)&&this.options.range){let e=r.previousZoom;C(t.min)?r.previousZoom=[this.min,this.max]:e&&(t.min=e[0],t.max=e[1],r.previousZoom=void 0)}}void 0!==e&&t.preventDefault()}class eN{static compose(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),k(t,"init",eL),k(t,"setExtremes",eO))}constructor(t){this.axis=t}destroy(){this.axis=void 0}toFixedRange(t,e,i,s){let o=this.axis,r=(o.pointRange||0)/2,n=V(i,o.translate(t,!0,!o.horiz)),a=V(s,o.translate(e,!0,!o.horiz));return C(i)||(n=E(n+r)),C(s)||(a=E(a-r)),z(n)&&z(a)||(n=a=void 0),{min:n,max:a}}}var eI=x(620),eD=x.n(eI),eB=x(512),eR=x.n(eB);let{parse:eF}=eD(),{seriesTypes:ez}=eR(),eH={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:eF("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===ez.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:void 0},tickLength:0,tickWidth:0}},eW={"navigator-handle":function(t,e,i,s,o={}){var r,n,a,l,h,d;let c,p=o.width?o.width/2:i,u=(r=o.borderRadius||0,n=Math.min(2*p,s),/%$/.test(r)?n*parseFloat(r)/100+0:parseFloat(r));return[["M",-1.5,(s=o.height||s)/2-3.5],["L",-1.5,s/2+4.5],["M",.5,s/2-3.5],["L",.5,s/2+4.5],...(a=-p-1,l=2*p+1,h=s,d={r:u},d?.r?[["M",a+(c=d?.r||0),.5],["L",a+l-c,.5],["A",c,c,0,0,1,a+l,.5+c],["L",a+l,.5+h-c],["A",c,c,0,0,1,a+l-c,.5+h],["L",a+c,.5+h],["A",c,c,0,0,1,a,.5+h-c],["L",a,.5+c],["A",c,c,0,0,1,a+c,.5],["Z"]]:[["M",a,.5],["L",a+l,.5],["L",a+l,.5+h],["L",a,.5+h],["Z"]])]}};var eX=x(608),eG=x.n(eX);let{defaultOptions:eY}=v(),{composed:eV}=v(),{getRendererType:ej}=eG(),{setFixedRange:eU}={setFixedRange:function(t){let e=this.xAxis[0];C(e.dataMax)&&C(e.dataMin)&&t?this.fixedRange=Math.min(t,e.dataMax-e.dataMin):this.fixedRange=t}};function e_(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}
vendor: 11,143 bytes, line 1
1let eq=function(t,e,i){eN.compose(e),j(eV,"Navigator")&&(t.prototype.setFixedRange=eU,N(ej().prototype.symbols,eW),N(eY,{navigator:eH}),k(i,"afterUpdate",e_))},{composed:eK}=v();!function(t){let e;function i(t){let e=V(t.options?.min,t.min),i=V(t.options?.max,t.max);return{axisMin:e,axisMax:i,scrollMin:C(t.dataMin)?Math.min(e,t.min??1/0,t.dataMin,t.threshold??1/0):e,scrollMax:t.treeGrid?.adjustedMax??(C(t.dataMax)?Math.max(i,t.max??-1/0,t.dataMax,t.threshold??-1/0):i)}}function s(){let t=this.scrollbar,e=t&&!t.options.opposite,i=this.horiz?2:e?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[i]+=t.size+(t.options.margin||0))}function o(){let t=this;t.options?.scrollbar?.enabled&&(t.options.scrollbar.vertical=!t.horiz,t.options.startOnTick=t.options.endOnTick=!1,t.scrollbar=new e(t.chart.renderer,t.options.scrollbar,t.chart),k(t.scrollbar,"changed",function(e){let s,o,{axisMin:r,axisMax:n,scrollMin:a,scrollMax:l}=i(t),h=t.toPixels(a),d=t.toPixels(l)-h;if(C(r)&&C(n))if(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(s=Math.min(l,t.toValue(h+d*this.to)),o=Math.max(a,t.toValue(h+d*this.from))):(s=Math.min(l,t.toValue(h+d*(1-this.from))),o=Math.max(a,t.toValue(h+d*(1-this.to)))),this.shouldUpdateExtremes(e.DOMType)){let i="mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&void 0;t.setExtremes(E(o),E(s),!0,i,e)}else this.setRange(this.from,this.to)}))}function r(){let t,e,s,{scrollMin:o,scrollMax:r}=i(this),n=this.scrollbar,a=(this.axisTitleMargin||0)+(this.titleOffset||0),l=this.chart.scrollbarsOffsets,h=this.options.margin||0;if(n&&l){if(this.horiz)this.opposite||(l[1]+=a),n.position(this.left,this.top+this.height+2+l[1]-(this.opposite?h:0),this.width,this.height),this.opposite||(l[1]+=h),t=1;else{let e;this.opposite&&(l[0]+=a),e=n.options.opposite?this.left+this.width+2+l[0]-(this.opposite?0:h):this.opposite?0:h,n.position(e,this.top,this.width,this.height),this.opposite&&(l[0]+=h),t=0}if(l[t]+=n.size+(n.options.margin||0),isNaN(o)||isNaN(r)||!C(this.min)||!C(this.max)||C(this.dataMin)&&this.dataMin===this.dataMax)n.setRange(0,1);else if(this.min===this.max){let t=this.pointRange/(this.dataMax+1);e=t*this.min,s=t*(this.max+1),n.setRange(e,s)}else e=(this.toPixels(this.min)-this.toPixels(o))/(this.toPixels(r)-this.toPixels(o)),s=(this.toPixels(this.max)-this.toPixels(o))/(this.toPixels(r)-this.toPixels(o)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?n.setRange(e,s):n.setRange(1-s,1-e)}}t.compose=function(t,i){j(eK,"Axis.Scrollbar")&&(e=i,k(t,"afterGetOffset",s),k(t,"afterInit",o),k(t,"afterRender",r))}}(u||(u={}));let e$=u,eZ={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1},{defaultOptions:eJ}=v(),{composed:eQ}=v();class e0{static compose(t){e$.compose(t,e0),j(eQ,"Scrollbar")&&N(eJ,{scrollbar:eZ})}static swapXY(t,e){return e&&t.forEach(t=>{let e,i=t.length;for(let s=0;s<i;s+=2)"number"==typeof(e=t[s+1])&&(t[s+1]=t[s+2],t[s+2]=e)}),t}constructor(t,e,i){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,e,i)}addEvents(){let t=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,i=this.scrollbarGroup.element,s=this.track.element,o=this.mouseDownHandler.bind(this),r=this.mouseMoveHandler.bind(this),n=this.mouseUpHandler.bind(this),a=[[e[t[0]].element,"click",this.buttonToMinClick.bind(this)],[e[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[s,"click",this.trackClick.bind(this)],[i,"mousedown",o],[i.ownerDocument,"mousemove",r],[i.ownerDocument,"mouseup",n],[i,"touchstart",o],[i.ownerDocument,"touchmove",r],[i.ownerDocument,"touchend",n]];a.forEach(function(t){k.apply(null,t)}),this._events=a}buttonToMaxClick(t){let e=(this.to-this.from)*V(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),I(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}buttonToMinClick(t){let e=E(this.to-this.from)*V(this.options.step,.2);this.updatePosition(E(this.from-e),E(this.to-e)),I(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}cursorToScrollbarPosition(t){let e=this.options,i=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-i),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-i)}}destroy(){let t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())}),e&&t===e.scrollbar&&(e.scrollbar=null,L(e.scrollbarButtons))}drawScrollbarButton(t){let e=this.renderer,i=this.scrollbarButtons,s=this.options,o=this.size,r=e.g().add(this.group);if(i.push(r),s.buttonsEnabled){let n=e.rect().addClass("highcharts-scrollbar-button").add(r);this.chart.styledMode||n.attr({stroke:s.buttonBorderColor,"stroke-width":s.buttonBorderWidth,fill:s.buttonBackgroundColor}),n.attr(n.crisp({x:-.5,y:-.5,width:o,height:o,r:s.buttonBorderRadius},n.strokeWidth()));let a=e.path(e0.swapXY([["M",o/2+(t?-1:1),o/2-3],["L",o/2+(t?-1:1),o/2+3],["L",o/2+(t?2:-2),o/2]],s.vertical)).addClass("highcharts-scrollbar-arrow").add(i[t]);this.chart.styledMode||a.attr({fill:s.buttonArrowColor})}}init(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=G(eZ,eJ.scrollbar,e),this.options.margin=V(this.options.margin,10),this.chart=i,this.size=V(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())}mouseDownHandler(t){let e=this.chart.pointer?.normalize(t)||t,i=this.cursorToScrollbarPosition(e);this.chartX=i.chartX,this.chartY=i.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(t){let e,i=this.chart.pointer?.normalize(t)||t,s=this.options.vertical?"chartY":"chartX",o=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][s])&&(e=this.cursorToScrollbarPosition(i)[s]-this[s],this.hasDragged=!0,this.updatePosition(o[0]+e,o[1]+e),this.hasDragged&&I(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))}mouseUpHandler(t){this.hasDragged&&I(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(t,e,i,s){let{buttonsEnabled:o,margin:r=0,vertical:n}=this.options,a=this.rendered?"animate":"attr",l=s,h=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=s,this.xOffset=l,this.yOffset=h,n?(this.width=this.yOffset=i=h=this.size,this.xOffset=l=0,this.yOffset=h=o?this.size:0,this.barWidth=s-(o?2*i:0),this.x=t+=r):(this.height=s=this.size,this.xOffset=l=o?this.size:0,this.barWidth=i-(o?2*s:0),this.y=this.y+r),this.group[a]({translateX:t,translateY:this.y}),this.track[a]({width:i,height:s}),this.scrollbarButtons[1][a]({translateX:n?0:i-l,translateY:n?s-h:0})}removeEvents(){this._events.forEach(function(t){U.apply(null,t)}),this._events.length=0}render(){let t=this.renderer,e=this.options,i=this.size,s=this.chart.styledMode,o=t.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=o,this.track=t.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:i,width:i}).add(o),s||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});let r=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-S(0,r),y:-S(0,r)}),this.scrollbarGroup=t.g().add(o),this.scrollbar=t.rect().addClass("highcharts-scrollbar-thumb").attr({height:i-r,width:i-r,r:e.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=t.path(e0.swapXY([["M",-3,i/4],["L",-3,2*i/3],["M",0,i/4],["L",0,2*i/3],["M",3,i/4],["L",3,2*i/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),s||(this.scrollbar.attr({fill:e.barBackgroundColor,stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-S(0,this.scrollbarStrokeWidth),-S(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(t,e){let i,s,o=this.options,r=o.vertical,n=o.minWidth,a=this.barWidth,l=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!C(a))return;let h=a*Math.min(e,1);i=Math.ceil(a*(t=Math.max(t,0))),this.calculatedWidth=s=E(h-i),s<n&&(i=(a-n+s)*t,s=n);let d=Math.floor(i+this.xOffset+this.yOffset),c=s/2-.5;this.from=t,this.to=e,r?(this.scrollbarGroup[l]({translateY:d}),this.scrollbar[l]({height:s}),this.scrollbarRifles[l]({translateY:c}),this.scrollbarTop=d,this.scrollbarLeft=0):(this.scrollbarGroup[l]({translateX:d}),this.scrollbar[l]({width:s}),this.scrollbarRifles[l]({translateX:c}),this.scrollbarLeft=d,this.scrollbarTop=0),s<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===o.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(t){return V(this.options.liveRedraw,v().svg&&!v().isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!C(t)}trackClick(t){let e=this.chart.pointer?.normalize(t)||t,i=this.to-this.from,s=this.y+this.scrollbarTop,o=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>s||!this.options.vertical&&e.chartX>o?this.updatePosition(this.from+i,this.to+i):this.updatePosition(this.from-i,this.to-i),I(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}update(t){this.destroy(),this.init(this.chart.renderer,G(!0,this.options,t),this.chart)}updatePosition(t,e){e>1&&(t=E(1-E(e-t)),e=1),t<0&&(e=E(e-t),t=0),this.from=t,this.to=e}}e0.defaultOptions=eZ;let{defaultOptions:e1}=v(),{isTouchDevice:e2}=v();function e5(t,...e){let i=[].filter.call(e,z);if(i.length)return Math[t].apply(0,i)}class e3{static compose(t,e,i){eT(t,e3),eq(t,e,i)}constructor(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}drawHandle(t,e,i,s){let o=this.navigatorOptions.handles.height;this.handles[e][s](i?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-o)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-o/2-1)})}drawOutline(t,e,i,s){let o=this.navigatorOptions.maskInside,r=this.outline.strokeWidth(),n=r/2,a=r%2/2,l=this.scrollButtonSize,h=this.size,d=this.top,c=this.height,p=d-n,u=d+c,g=this.left,f,m;i?(f=d+e+a,e=d+t+a,m=[["M",g+c,d-l-a],["L",g+c,f],["L",g,f],["M",g,e],["L",g+c,e],["L",g+c,d+h+l]],o&&m.push(["M",g+c,f-n],["L",g+c,e+n])):(g-=l,t+=g+l-a,e+=g+l-a,m=[["M",g,p],["L",t,p],["L",t,u],["M",e,u],["L",e,p],["L",g+h+2*l,p]],o&&m.push(["M",t-n,p
vendor: 4,217 bytes, line 1
1],["L",e+n,p])),this.outline[s]({d:m})}drawMasks(t,e,i,s){let o,r,n,a,l=this.left,h=this.top,d=this.height;i?(n=[l,l,l],a=[h,h+t,h+e],r=[d,d,d],o=[t,e-t,this.size-e]):(n=[l,l+t,l+e],a=[h,h,h],r=[t,e-t,this.size-e],o=[d,d,d]),this.shades.forEach((t,e)=>{t[s]({x:n[e],y:a[e],width:r[e],height:o[e]})})}renderElements(){let t=this,e=t.navigatorOptions,i=e.maskInside,s=t.chart,o=s.inverted,r=s.renderer,n={cursor:o?"ns-resize":"ew-resize"},a=t.navigatorGroup??(t.navigatorGroup=r.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!i,i,!i].forEach((i,o)=>{let l=t.shades[o]??(t.shades[o]=r.rect().addClass("highcharts-navigator-mask"+(1===o?"-inside":"-outside")).add(a));s.styledMode||(l.attr({fill:i?e.maskFill:"rgba(0,0,0,0)"}),1===o&&l.css(n))}),t.outline||(t.outline=r.path().addClass("highcharts-navigator-outline").add(a)),s.styledMode||t.outline.attr({"stroke-width":e.outlineWidth,stroke:e.outlineColor}),e.handles?.enabled){let i=!1,o=e.handles,{height:l,width:h}=o;[0,1].forEach(e=>{let d=o.symbols[e];(i=i||t.handles[e]?.symbolName!==d)&&(t.handles[e]?.destroy(),t.handles[e]=r.symbol(d,-h/2-1,0,h,l,o),t.handles[e].attr({zIndex:7-e}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][e]).add(a)),s.inverted&&t.handles[e].attr({rotation:90,rotationOriginX:Math.floor(-h/2),rotationOriginY:(l+h)/2}),s.styledMode||t.handles[e].attr({fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.lineWidth,width:o.width,height:o.height,x:-h/2-1,y:0}).css(n)}),i&&(t.partsEventsToUnbind?.forEach(t=>{t()}),t.partsEventsToUnbind=[...t.getPartsEvents("mousedown"),...t.getPartsEvents("touchstart")])}}update(t,e=!1){let i=this.chart,s=i.options.chart.inverted!==i.scrollbar?.options.vertical;if(G(!0,i.options.navigator,t),this.navigatorOptions=i.options.navigator||{},this.setOpposite(),C(t.enabled)||s)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(i);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{U(t,"updatedData",this.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{t.eventsToUnbind.push(k(t,"updatedData",this.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=t.height??this.height;let e=this.getXAxisOffsets();this.xAxis.update({...t.xAxis,offsets:e,[i.inverted?"width":"height"]:this.height,[i.inverted?"height":"width"]:void 0},!1),this.yAxis.update({...t.yAxis,[i.inverted?"width":"height"]:this.height},!1)}e&&i.redraw()}render(t,e,i,s){let o=this.chart,r=this.xAxis,n=r.pointRange||0,a=r.navigatorAxis.fake?o.xAxis[0]:r,l=this.navigatorEnabled,h=this.rendered,d=o.inverted,c=o.xAxis[0].minRange,p=o.xAxis[0].options.maxRange,u=this.scrollButtonSize,g,f,m,x=this.scrollbarHeight,b,y;if(this.hasDragged&&!C(i))return;if(this.isDirty&&this.renderElements(),t=E(t-n/2),e=E(e+n/2),!z(t)||!z(e))if(!h)return;else i=0,s=V(r.width,a.width);this.left=V(r.left,o.plotLeft+u+(d?o.plotWidth:0));let v=this.size=b=V(r.len,(d?o.plotHeight:o.plotWidth)-2*u);g=d?x:b+2*u,i=V(i,r.toPixels(t,!0)),s=V(s,r.toPixels(e,!0)),z(i)&&Math.abs(i)!==1/0||(i=0,s=g);let w=r.toValue(i,!0),M=r.toValue(s,!0),k=Math.abs(E(M-w));C(c)&&k<c?this.grabbedLeft?i=r.toPixels(M-c-n,!0):this.grabbedRight&&(s=r.toPixels(w+c+n,!0)):C(p)&&E(k-n)>p&&(this.grabbedLeft?i=r.toPixels(M-p-n,!0):this.grabbedRight&&(s=r.toPixels(w+p+n,!0))),this.zoomedMax=P(Math.max(i,s),0,v),this.zoomedMin=P(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,s),0,v),this.range=this.zoomedMax-this.zoomedMin,v=Math.round(this.zoomedMax);let A=Math.round(this.zoomedMin);l&&(this.navigatorGroup.attr({visibility:"inherit"}),y=h&&!this.hasDragged?"animate":"attr",this.drawMasks(A,v,d,y),this.drawOutline(A,v,d,y),this.navigatorOptions.handles?.enabled&&(this.drawHandle(A,0,d,y),this.drawHandle(v,1,d,y))),this.scrollbar&&(d?(m=this.top-u,f=this.left-x+(l||!a.opposite?0:(a.titleOffset||0)+a.axisTitleMargin),x=b+2*u):(m=this.top+(l?this.height:-x),f=this.left-u),this.scrollbar.position(f,m,g,x),this.scrollbar.setRange(this.zoomedMin/(b||1),this.zoomedMax/(b||1))),this.rendered=!0,this.isDirty=!1,I(this,"afterRe
1nder")}addMouseEvents(){let t,e,i=this,s=i.chart,o=s.container,r=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},r.push(k(s.renderTo,"mousemove",t),k(o.ownerDocument,"mouseup",e),k(s.renderTo,"touchmove",t),k(o.ownerDocument,"touchend",e)),i.eventsToUnbind=r,i.series&&i.series[0]&&r.push(k(i.series[0].xAxis,"foundExtremes",function(){s.navigator?.modifyNavigatorAxisExtremes()}))}getPartsEvents(t){let e=this,i=[];return["shades","handles"].forEach(s=>{e[s].forEach(function(o,r){i.push(k(o.element,t,function(t){e[`${s}Mousedown`](t,r)}))})}),i}shadesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let i=this.chart,s=this.xAxis,o=this.zoomedMin,r=this.size,n=this.range,a=this.left,l=t.chartX,h,d,c,p;i.inverted&&(l=t.chartY,a=this.top),1===e?(this.grabbedCenter=l,this.fixedWidth=n,this.dragOffset=l-o):(p=l-a-n/2,0===e?p=Math.max(0,p):2===e&&p+n>=r&&(p=r-n,this.reversedExtremes?(p-=n,d=this.getUnionExtremes()?.dataMin):h=this.getUnionExtremes()?.dataMax),p!==o&&(this.fixedWidth=n,C((c=s.navigatorAxis.toFixedRange(p,p+n,d,h)).min)&&I(this,"setRange",{min:Math.min(c.min,c.max),max:Math.max(c.min,c.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let i=this.chart,s=i.xAxis[0],o=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=o?s.min:s.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=o?s.max:s.min),i.setFixedRange(void 0)}onMouseMove(t){let e=this,i=e.chart,s=e.navigatorSize,o=e.range,r=e.dragOffset,n=i.inverted,a=e.left,l;(!t.touches||0!==t.touches[0].pageX)&&(l=(t=i.pointer?.normalize(t)||t).chartX,n&&(a=e.top,l=t.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,l-a,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,l-a)):e.grabbedCenter&&r&&(e.hasDragged=!0,l<r?l=r:l>s+r-o&&(l=s+r-o),e.render(0,0,l-r,l-r+o)),e.hasDragged&&V(e.scrollbarOptions?.liveRedraw,!e2&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){e.onMouseUp(t)},0)))}onMouseUp(t){let e,i,s,o,r,n,a=this.chart,l=this.xAxis,h=this.scrollbar,d=t.DOMEvent||t,c=a.inverted,p=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!h||!h.hasDragged)||"scrollbar"===t.trigger)&&(s=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?o=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(r=this.fixedExtreme),this.zoomedMax===this.size&&(r=this.reversedExtremes?s.dataMin:s.dataMax),0===this.zoomedMin&&(o=this.reversedExtremes?s.dataMax:s.dataMin),C((n=l.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,o,r)).min)&&I(this,"setRange",{min:Math.min(n.min,n.max),max:Math.max(n.min,n.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:d}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&z(this.zoomedMin)&&z(this.zoomedMax)&&(i=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(i,e,c,p),this.outline&&this.drawOutline(i,e,c,p),this.navigatorOptions.handles?.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(i,0,c,p),this.drawHandle(e,1,c,p)))}removeEvents(){this.eventsToUnbind?.forEach(t=>{t()}),this.eventsToUnbind=void 0,this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){U(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&U(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(t){let e=t.options,i=e.navigator||{},s=i.enabled,o=e.scrollbar||{},r=o.enabled,n=s&&i.height||0,a=r&&o.height||0,l=o.buttonsEnabled&&a||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=n,this.scrollbarHeight=a,this.scrollButtonSize=l,this.scrollbarEnabled=r,this.navigatorEnabled=!!s,this.navigatorOptions=i,this.scrollbarOptions=o,this.setOpposite();let h=this,d=h.baseSeries,c=t.xAxis.length,p=t.yAxis.length,u=d&&d[0]&&d[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,h.navigatorEnabled){let e=this.getXAxisOffsets();h.xAxis=new(eb())(t,G({breaks:u.options.breaks,ordinal:u.options.ordinal,overscroll:u.options.overscroll},i.xAxis,{type:"datetime",yAxis:i.yAxis?.id,index:c,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:u.options.ordinal?0:u.options.minPadding,maxPadding:u.options.ordinal?0:u.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:e,width:n}:{offsets:e,height:n}),"xAxis"),h.yAxis=new(eb())(t,G(i.yAxis,{alignTicks:!1,offset:0,index:p,isInternal:!0,reversed:V(i.yAxis&&i.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:n}:{height:n}),"yAxis"),d||i.series?.data?h.updateNavigatorSeries(!1):0===t.series.length&&(h.unbindRedraw=k(t,"beforeRedraw",function(){t.series.length>0&&!h.series&&(h.setBaseSeries(),h.unbindRedraw?.())})),h.reversedExtremes=t.inverted&&!h.xAxis.reversed||!t.inverted&&h.xAxis.reversed,h.renderElements(),h.addMouseEvents()}else h.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,i){let s=t.xAxis[0],o=s.getExtremes(),r=s.len-2*l,n=e5("min",s.options.min,o.dataMin),a=e5("max",s.options.max,o.dataMax)-n;return i?e*a/r+n:r*(e-n)/a},toPixels:function(t){return this.translate(t)}
1,toValue:function(t){return this.translate(t,!0)}},h.xAxis.navigatorAxis.axis=h.xAxis,h.xAxis.navigatorAxis.toFixedRange=eN.prototype.toFixedRange.bind(h.xAxis.navigatorAxis);if(t.options.scrollbar?.enabled){let e=G(t.options.scrollbar,{vertical:t.inverted});z(e.margin)||(e.margin=t.inverted?-3:3),t.scrollbar=h.scrollbar=new e0(t.renderer,e,t),k(h.scrollbar,"changed",function(t){let e=h.size,i=e*this.to,s=e*this.from;h.hasDragged=h.scrollbar?.hasDragged,h.render(0,0,s,i),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){h.onMouseUp(t)})})}h.addBaseSeriesEvents(),h.addChartEvents()}setOpposite(){let t=this.navigatorOptions,e=this.navigatorEnabled,i=this.chart;this.opposite=V(t.opposite,!!(!e&&i.inverted))}getUnionExtremes(t){let e,i=this.chart.xAxis[0],s=this.chart.time,o=this.xAxis,r=o.options,n=i.options;return t&&null===i.dataMin||(e={dataMin:V(s.parse(r?.min),e5("min",s.parse(n.min),i.dataMin,o.dataMin,o.min)),dataMax:V(s.parse(r?.max),e5("max",s.parse(n.max),i.dataMax,o.dataMax,o.max))}),e}setBaseSeries(t,e){let i=this.chart,s=this.baseSeries=[];t=t||i.options.navigator?.baseSeries||(i.series.length?B(i.series,t=>!t.options.isInternal).index:0),(i.series||[]).forEach((e,i)=>{!e.options.isInternal&&(e.options.showInNavigator||(i===t||e.options.id===t)&&!1!==e.options.showInNavigator)&&s.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)}updateNavigatorSeries(t,e){let i=this,s=i.chart,o=i.baseSeries,r={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:this.navigatorOptions.xAxis?.id,yAxis:this.navigatorOptions.yAxis?.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},n=i.series=(i.series||[]).filter(t=>{let e=t.baseSeries;return!(e&&0>o.indexOf(e))||(e&&(U(e,"updatedData",i.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),!1)}),a,l,h=i.navigatorOptions.series,d;if(o&&o.length&&o.forEach(t=>{var c;let p=t.navigatorSeries,u=N({color:t.color,visible:t.visible},W(h)?e1.navigator.series:h);if(p&&!1===i.navigatorOptions.adaptToUpdatedData)return;r.name="Navigator "+o.length,d=(a=t.options||{}).navigatorOptions||{},u.dataLabels=W(c=u.dataLabels)?c:[c],(l=G(a,r,u,d)).pointRange=V(u.pointRange,d.pointRange,e1.plotOptions[l.type||"line"]?.pointRange);let g=d.data||u.data;i.hasNavigatorData=i.hasNavigatorData||!!g,l.data=g||a.data?.slice(0),p&&p.options?p.update(l,e):(t.navigatorSeries=s.initSeries(l),s.setSortedData(),t.navigatorSeries.baseSeries=t,n.push(t.navigatorSeries))}),h?.data&&!(o&&o.length)||W(h)){var c;i.hasNavigatorData=!1,(h=W(c=h)?c:[c]).forEach((t,e)=>{r.name="Navigator "+(n.length+1),(l=G(e1.navigator?.series,{color:s.series[e]&&!s.series[e].options.isInternal&&s.series[e].color||s.options.colors?.[e]||s.options.colors?.[0]},r,t)).data=t.data,l.data&&(i.hasNavigatorData=!0,n.push(s.initSeries(l)))})}t&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let t=this,e=t.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(k(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(i=>{i.eventsToUnbind.push(k(i,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),i.eventsToUnbind.push(k(i,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&i.xAxis&&i.eventsToUnbind.push(k(i,"updatedData",this.updatedDataHandler)),i.eventsToUnbind.push(k(i,"remove",function(){e&&O(e,i),this.navigatorSeries&&t.series&&(O(t.series,this.navigatorSeries),C(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(t){return this.baseSeries.reduce(function(t,e){return Math.min(t,e.getColumn("x")[0]??t)},t)}modifyNavigatorAxisExtremes(){let t=this.xAxis;if(void 0!==t.getExtremes){let e=this.getUnionExtremes(!0);e&&(e.dataMin!==t.min||e.dataMax!==t.max)&&(t.min=e.dataMin,t.max=e.dataMax)}}modifyBaseAxisExtremes(){let t,e,i=this.chart.navigator,s=this.getExtremes(),o=s.min,r=s.max,n=s.dataMin,a=s.dataMax,l=r-o,h=i?.stickToMin,d=i?.stickToMax,c=V(this.ordinal?.convertOverscroll(this.options.overscroll),0),p=i.series&&i.series[0],u=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(h&&(t=(e=n)+l),d&&(t=a+c,h||(e=Math.max(n,t-l,i.getBaseSeriesMin(p&&p.xData?p.xData[0]:-Number.MAX_VALUE)))),u&&(h||d)&&z(e)&&(this.min=this.userMin=e,this.max=this.userMax=t)),i.stickToMin=i.stickToMax=null}updatedDataHandler(){let t=this.chart.navigator,e=this.navigatorSeries,i=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=V(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,i),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.getColumn("x")[0],e.setData(this.options.data,!1,void 0,!1))}shouldStickToMin(t,e){let i=e.getBaseSeriesMin(t.getColumn("x")[0]),s=t.xAxis,o=s.max,r=s.min,n=s.options.range;return!!(z(o)&&z(r))&&(n&&o-i>0?o-i<n:r<=i)}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(k(this.chart,"redraw",function(){let t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)}),k(this.chart,"getMargins",function(){let t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.he
vendor: 4,853 bytes, line 1
1ight+(this.scrollbar?.options.margin||0)+t.scrollbarHeight:0)+(t.navigatorOptions.margin||0)}),k(this,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))}destroy(){this.removeEvents(),this.xAxis&&(O(this.chart.xAxis,this.xAxis),O(this.chart.axes,this.xAxis)),this.yAxis&&(O(this.chart.yAxis,this.yAxis),O(this.chart.axes,this.yAxis)),(this.series||[]).forEach(t=>{t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(t=>{this[t]&&this[t].destroy&&this[t].destroy(),this[t]=null}),[this.handles].forEach(t=>{L(t)}),this.baseSeries.forEach(t=>{t.navigatorSeries=void 0}),this.navigatorEnabled=!1}}let{animObject:e6}=v(),{format:e4}=te(),{getFakeMouseEvent:e9}=Q,{getAxisRangeDescription:e8,fireEventOnWrappedOrUnwrappedElement:e7}=tc,it=class extends tb{init(){let t=this.chart,e=this;this.announcer=new tO(t,"polite"),this.addEvent(e3,"afterRender",function(){this.chart===e.chart&&this.chart.renderer&&_(()=>{e.proxyProvider.updateGroupProxyElementPositions("navigator"),e.updateHandleValues()},e6(V(this.chart.renderer.globalAnimation,!0)).duration)})}onChartUpdate(){let t=this.chart,e=t.options,i=e.navigator;if(i.enabled&&i.accessibility?.enabled){let i=e.accessibility.landmarkVerbosity,s=e.lang.accessibility?.navigator.groupLabel;this.proxyProvider.removeGroup("navigator"),this.proxyProvider.addGroup("navigator","div",{role:"all"===i?"region":"group","aria-label":e4(s,{chart:t},t)});let o=e.lang.accessibility?.navigator.handleLabel;[0,1].forEach(e=>{let i=this.getHandleByIx(e);if(i){let s=this.proxyProvider.addProxyElement("navigator",{click:i},"input",{type:"range","aria-label":e4(o,{handleIx:e,chart:t},t)});this[e?"maxHandleProxy":"minHandleProxy"]=s.innerElement,s.innerElement.style.pointerEvents="none",s.innerElement.oninput=()=>this.updateNavigator()}}),this.updateHandleValues()}else this.proxyProvider.removeGroup("navigator")}getNavigatorHandleNavigation(t){let e=this,i=this.chart,s=t?this.maxHandleProxy:this.minHandleProxy,o=this.keyCodes;return new ty(i,{keyCodeMap:[[[o.left,o.right,o.up,o.down],function(r){if(s){let n=r===o.left||r===o.up?-1:1;s.value=""+P(parseFloat(s.value)+n,0,100),e.updateNavigator(()=>{let o=e.getHandleByIx(t);o&&i.setFocusToElement(o,s)})}return this.response.success}]],init:()=>{i.setFocusToElement(this.getHandleByIx(t),s)},validate:()=>!!(this.getHandleByIx(t)&&s&&i.options.navigator.accessibility?.enabled)})}getKeyboardNavigation(){return[this.getNavigatorHandleNavigation(0),this.getNavigatorHandleNavigation(1)]}destroy(){this.updateNavigatorThrottleTimer&&R(this.updateNavigatorThrottleTimer),this.proxyProvider.removeGroup("navigator"),this.announcer&&this.announcer.destroy()}updateHandleValues(){let t=this.chart.navigator;if(t&&this.minHandleProxy&&this.maxHandleProxy){let e=t.size;this.minHandleProxy.value=""+Math.round(t.zoomedMin/e*100),this.maxHandleProxy.value=""+Math.round(t.zoomedMax/e*100)}}getHandleByIx(t){let e=this.chart.navigator;return e&&e.handles&&e.handles[t]}updateNavigator(t){let e=t=>{let e=this.chart,{navigator:i,pointer:s}=e,o=this.chart.accessibility?.keyboardNavigation;if(i&&s&&this.minHandleProxy&&this.maxHandleProxy){let r=s.getChartPosition(),n=parseFloat(this.minHandleProxy.value)/100*i.size,a=parseFloat(this.maxHandleProxy.value)/100*i.size;[[0,"mousedown",i.zoomedMin],[0,"mousemove",n],[0,"mouseup",n],[1,"mousedown",i.zoomedMax],[1,"mousemove",a],[1,"mouseup",a]].forEach(([t,e,s])=>{let o=this.getHandleByIx(t)?.element;o&&e7(o,e9(e,{x:r.left+i.left+s,y:r.top+i.top},o))}),o&&(o.keyboardReset=!1),t&&t();let l=e.options.lang.accessibility?.navigator.changeAnnouncement,h=e8(e.xAxis[0]);this.announcer.announce(e4(l,{axisRangeDescription:h,chart:e},e))}};this.updateNavigatorThrottleTimer&&R(this.updateNavigatorThrottleTimer),this.updateNavigatorThrottleTimer=setTimeout(e.bind(this,t),20)}},{getPointAnnotationTexts:ie}=tz,{getAxisDescription:ii,getSeriesFirstPointElement:is,getSeriesA11yElement:io,unhideChartElementFromAT:ir}=tc,{format:ia,numberFormat:il}=te(),{reverseChildNodes:ih,stripHTMLTagsFromString:id}=Q;function ic(t){let e=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(!1!==e&&t.points&&t.points.length>=+e)}function ip(t,e){let i=t.series,s=i.chart,o=s.options.accessibility.point||{},r=i.options.accessibility&&i.options.accessibility.point||{},n=i.tooltipOptions||{},a=s.options.lang;return z(e)?il(e,r.valueDecimals||o.valueDecimals||n.valueDecimals||-1,a.decimalPoint,a.accessibility.thousandsSep||a.thousandsSep):e}function iu(t,e){let i=t[e];return t.chart.langFormat("accessibility.series."+e+"Description",{name:ii(i),series:t})}function ig(t){let e,i,s,o,r,n,a,l,h,d,c,p,u=t.series,g=u.chart.series.length>
11||u.options.name,f=(n=(r=t.series).chart,l=(a=r.options.accessibility)&&a.point&&a.point.valueDescriptionFormat||n.options.accessibility.point.valueDescriptionFormat,d=(h=V(r.xAxis&&r.xAxis.options.accessibility&&r.xAxis.options.accessibility.enabled,!n.angular&&"flowmap"!==r.type))?(e=function(t){let e=t.series,i=e.chart,s=e.options.accessibility&&e.options.accessibility.point||{},o=i.options.accessibility.point||{},r=e.xAxis&&e.xAxis.dateTime;if(r){let e=r.getXDateFormat(t.x||0,i.options.tooltip.dateTimeLabelFormats),n=s.dateFormatter&&s.dateFormatter(t)||o.dateFormatter?.(t)||s.dateFormat||o.dateFormat||e;return i.time.dateFormat(n,t.x||0,void 0)}}(t),i=(t.series.xAxis||{}).categories&&C(t.category)&&(""+t.category).replace("<br/>"," "),s=C(t.id)&&0>(""+t.id).indexOf("highcharts-"),o="x, "+t.x,t.name||e||i||(s?t.id:o)):"",ia(l,{point:t,index:C(t.index)?t.index+1:"",xDescription:d,value:function(t){let e=t.series,i=e.chart.options.accessibility.point||{},s=e.chart.options.accessibility&&e.chart.options.accessibility.point||{},o=e.tooltipOptions||{},r=s.valuePrefix||i.valuePrefix||o.valuePrefix||"",n=s.valueSuffix||i.valueSuffix||o.valueSuffix||"",a=void 0!==t.value?"value":"y",l=ip(t,t[a]);if(t.isNull)return e.chart.langFormat("accessibility.series.nullPointValue",{point:t});if(e.pointArrayMap){let e,i,s;return e=r||"",i=n||"",s=function(s){let o=ip(t,V(t[s],t.options[s]));return void 0!==o?s+": "+e+o+i:o},t.series.pointArrayMap.reduce(function(t,e){let i=s(e);return i?t+(t.length?", ":"")+i:t},"")}return r+l+n}(t),separator:h?", ":""},n)),m=t.options&&t.options.accessibility&&t.options.accessibility.description,x=g?" "+u.name+".":"",b=(c=t.series.chart,(p=ie(t)).length?c.langFormat("accessibility.series.pointAnnotationsDescription",{point:t,annotations:p}):"");return t.accessibility=t.accessibility||{},t.accessibility.valueDescription=f,f+(m?" "+m:"")+x+(b?" "+b:"")}function im(t){let e,i=t.chart,s=i.types||[],o=(e=(t.options.accessibility||{}).description)&&t.chart.langFormat("accessibility.series.description",{description:e,series:t})||"",r=function(e){return i[e]&&i[e].length>1&&t[e]},n=t.index+1,a=iu(t,"xAxis"),l=iu(t,"yAxis"),h={seriesNumber:n,series:t,chart:i},d=s.length>1?"Combination":"",c=i.langFormat("accessibility.series.summary."+t.type+d,h)||i.langFormat("accessibility.series.summary.default"+d,h),p=(r("yAxis")?" "+l+".":"")+(r("xAxis")?" "+a+".":"");return ia(V(t.options.accessibility&&t.options.accessibility.descriptionFormat,i.options.accessibility.series.descriptionFormat,""),{seriesDescription:c,authorDescription:o?" "+o:"",axisDescription:p,series:t,chart:i,seriesNumber:n},void 0)}let ix={defaultPointDescriptionFormatter:ig,defaultSeriesDescriptionFormatter:im,describeSeries:function(t){let e=t.chart,i=is(t),s=io(t),o=e.is3d&&e.is3d();if(s){let r,n,a,l,h,d,c,p,u,g,f;if(s.lastChild!==i||o||ih(s),r=t.options.accessibility||{},a=!ic(t)&&!r.exposeAsGroupOnly,n=t.chart.options.accessibility.keyboardNavigation.seriesNavigation,l=!!(t.points&&(t.points.length<+n.pointNavigationEnabledThreshold||!1===n.pointNavigationEnabledThreshold)),h=t.chart.options.accessibility.point.describeNull,(a||l)&&t.points.forEach(e=>{let i,s,o,r,n,l=e.graphic&&e.graphic.element||(s=(i=e.series)&&i.chart,o=i&&i.is("sunburst"),r=e.isNull,n=s&&s.options.accessibility.point.describeNull,r&&!o&&n&&function(t){let e,i=t.series,s=function(t){let e=t.index;if(!t.series||!t.series.data||!C(e))return null;let i=t.series.options?.nullInteraction;return B(t.series.data,function(t){return!!(t&&void 0!==t.index&&(i||t.index>e)&&t.graphic&&t.graphic.element)})||null}(t),o=s&&s.graphic,r=o?o.parentGroup:i.graph||i.group,n=s?{x:V(t.plotX,s.plotX,0),y:V(t.plotY,s.plotY,0)}:{x:V(t.plotX,0),y:V(t.plotY,0)},a=((e=t.series.chart.renderer.rect(n.x,n.y,1,1)).attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),e);if(r&&r.element)return t.graphic=a,t.hasMockGraphic=!0,a.add(r),r.element.insertBefore(a.element,o?o.element:null),a.element}(e)),d=e.options&&e.options.accessibility&&!1===e.options.accessibility.enabled;if(l){if(e.isNull&&!h)return void l.setAttribute("aria-hidden",!0);if(l.setAttribute("tabindex","-1"),t.chart.styledMode||(l.style.outline="none"),a&&!d){let t,i,s,o;
1t=e.series,i=t.options.accessibility?.point||{},s=t.chart.options.accessibility.point||{},o=id(H(i.descriptionFormat)&&ia(i.descriptionFormat,e,t.chart)||i.descriptionFormatter?.(e)||H(s.descriptionFormat)&&ia(s.descriptionFormat,e,t.chart)||s.descriptionFormatter?.(e)||ig(e),t.chart.renderer.forExport),l.setAttribute("role","img"),l.setAttribute("aria-label",o)}else l.setAttribute("aria-hidden",!0)}}),ir(e,s),p=(c=(d=t.chart).options.chart).options3d&&c.options3d.enabled,u=d.series.length>1,g=d.options.accessibility.series.describeSingleSeries,f=(t.options.accessibility||{}).exposeAsGroupOnly,!(p&&u)&&(u||g||f||ic(t))){let e,i,o;e=t.options.accessibility||{},o=(i=t.chart.options.accessibility).landmarkVerbosity,e.exposeAsGroupOnly?s.setAttribute("role","img"):"all"===o?s.setAttribute("role","region"):s.setAttribute("role","group"),s.setAttribute("tabindex","-1"),t.chart.styledMode||(s.style.outline="none"),s.setAttribute("aria-label",id(i.series.descriptionFormatter&&i.series.descriptionFormatter(t)||im(t),t.chart.renderer.forExport))}else s.removeAttribute("aria-label")}}},{composed:ib}=v(),{getChartTitle:iy}=tc,{defaultPointDescriptionFormatter:iv,defaultSeriesDescriptionFormatter:iw}=ix;function iM(t){return!!t.options.accessibility.announceNewData.enabled}class ik{constructor(t){this.dirty={allSeries:{}},this.lastAnnouncementTime=0,this.chart=t}init(){let t=this.chart,e=t.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new tf,this.announcer=new tO(t,e),this.addEventListeners()}destroy(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()}addEventListeners(){let t=this,e=this.chart,i=this.eventProvider;i.addEvent(e,"afterApplyDrilldown",function(){t.lastAnnouncementTime=0}),i.addEvent(e,"afterAddSeries",function(e){t.onSeriesAdded(e.series)}),i.addEvent(e,"redraw",function(){t.announceDirtyData()})}onSeriesAdded(t){iM(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[t.name+t.index]=t,this.dirty.newSeries=C(this.dirty.newSeries)?void 0:t)}announceDirtyData(){let t=this.chart,e=this;if(t.options.accessibility.announceNewData&&this.dirty.hasDirty){var i;let t,s=this.dirty.newPoint;s&&(s=1===(t=(i=s).series.data.filter(t=>i.x===t.x&&i.y===t.y)).length?t[0]:i),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(t=>e.dirty.allSeries[t]),this.dirty.newSeries,s),this.dirty={allSeries:{}}}}queueAnnouncement(t,e,i){let s=this.chart.options.accessibility.announceNewData;if(s.enabled){let o,r=+new Date,n=r-this.lastAnnouncementTime,a=Math.max(0,s.minAnnounceInterval-n),l=Object.keys(o=(this.queuedAnnouncement&&this.queuedAnnouncement.series||[]).concat(t||[]).reduce((t,e)=>(t[e.name+e.index]=e,t),{})).map(t=>o[t]),h=this.buildAnnouncementMessage(l,e,i);h&&(this.queuedAnnouncement&&R(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:r,message:h,series:l},this.queuedAnnouncementTimer=setTimeout(()=>{this&&this.announcer&&(this.lastAnnouncementTime=+new Date,this.announcer.announce(this.queuedAnnouncement.message),delete this.queuedAnnouncement,delete this.queuedAnnouncementTimer)},a))}}buildAnnouncementMessage(t,e,i){let s=this.chart,o=s.options.accessibility.announceNewData;if(o.announcementFormatter){let s=o.announcementFormatter(t,e,i,this);if(!1!==s)return s.length?s:null}let r=v().charts&&v().charts.length>1?"Multiple":"Single",n=e?"newSeriesAnnounce"+r:i?"newPointAnnounce"+r:"newDataAnnounce",a=iy(s);return s.langFormat("accessibility.announceNewData."+n,{chartTitle:a,seriesDesc:e?iw(e):null,pointDesc:i?iv(i):null,point:i,series:e})}}function iA(t){let e=this.chart,i=e.accessibility?.components.series.newDataAnnouncer;i&&i.chart===e&&iM(e)&&(i.dirty.newPoint=C(i.dirty.newPoint)?void 0:t.point)}function iP(){let t=this.chart,e=t.accessibility?.components.series.newDataAnnouncer;e&&e.chart===t&&iM(t)&&(e.dirty.hasDirty=!0,e.dirty.allSeries[this.name+this.index]=this)}(ik||(ik={})).compose=function(t){j(ib,"A11y.NDA")&&(k(t,"addPoint",iA),k(t,"updatedData",iP))};let iE=ik,{doc:iS,win:iT}=v(),{fireEventOnWrappedOrUnwrappedElement:iC}=tc,{cloneMouseEvent:iL,cloneTouchEvent:iO,getFakeMouseEvent:iN,removeElement:iI}=Q,iD=class{constructor(t,e,i="button",s,o){this.chart=t,this.target=e,this.eventProvider=new tf;const r=this.innerElement=iS.createElement(i),n=this.element=s?iS.createElement(s):r;t.styledMode||this.hideElementVisually(r),s&&("li"!==s||t.styledMode||(n.style.listStyle="none"),n.appendChild(r),this.element=n),this.updateTarget(e,o)}click(){let t=this.getTargetPosition();t.x+=t.width/2,t.y+=t.height/2;let e=iN("click",t);iC(this.target.click,e)}updateTarget(t,e){this.target=t,this.updateCSSClassName();let i=e||{};
1Object.keys(i).forEach(t=>{null===i[t]&&delete i[t]});let s=this.getTargetAttr(t.click,"aria-label");A(this.innerElement,G(s?{"aria-label":s}:{},i)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToElement(this.innerElement,t.click),this.refreshPosition()}refreshPosition(){let t=this.getTargetPosition();T(this.innerElement,{width:(t.width||1)+"px",height:(t.height||1)+"px",left:(Math.round(t.x)||0)+"px",top:(Math.round(t.y)||0)+"px"})}remove(){this.eventProvider.removeAddedEvents(),iI(this.element)}updateCSSClassName(){let t=t=>t.indexOf("highcharts-no-tooltip")>-1,e=t(this.chart.legend?.group?.div?.className||""),i=t(this.getTargetAttr(this.target.click,"class")||"");this.innerElement.className=e||i?"highcharts-a11y-proxy-element highcharts-no-tooltip":"highcharts-a11y-proxy-element"}addProxyEventsToElement(t,e){["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(i=>{let s=0===i.indexOf("touch");this.eventProvider.addEvent(t,i,t=>{let i=s?iO(t):iL(t);e&&iC(e,i),t.stopPropagation(),s||t.preventDefault()},{passive:!1})})}hideElementVisually(t){T(t,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})}getTargetPosition(){let t=this.target.click,e=t.element?t.element:t,i=this.target.visual||e,s=this.chart.renderTo,o=this.chart.pointer;if(s&&i?.getBoundingClientRect&&o){let t=iT.scrollY||iS.documentElement.scrollTop,e=i.getBoundingClientRect(),s=o.getChartPosition();return{x:(e.left-s.left)/s.scaleX,y:(e.top+t-s.top)/s.scaleY,width:e.right/s.scaleX-e.left/s.scaleX,height:e.bottom/s.scaleY-e.top/s.scaleY}}return{x:0,y:0,width:1,height:1}}getTargetAttr(t,e){return t.element?t.element.getAttribute(e):t.getAttribute(e)}},{doc:iB}=v(),{unhideChartElementFromAT:iR}=tc,{removeChildNodes:iF}=Q,iz=class{constructor(t){this.chart=t,this.domElementProvider=new tg,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}addProxyElement(t,e,i="button",s){let o=this.groups[t];if(!o)throw Error("ProxyProvider.addProxyElement: Invalid group key "+t);let r="ul"===o.type||"ol"===o.type?"li":void 0,n=new iD(this.chart,e,i,r,s);return o.proxyContainerElement.appendChild(n.element),o.proxyElements.push(n),n}addGroup(t,e="div",i){let s,o=this.groups[t];if(o)return o.groupElement;let r=this.domElementProvider.createElement(e);return i&&i.role&&"div"!==e?(s=this.domElementProvider.createElement("div")).appendChild(r):s=r,s.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+t.replace(/\W/g,"-"),this.groups[t]={proxyContainerElement:r,groupElement:s,type:e,proxyElements:[]},A(s,i||{}),"ul"===e&&r.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(s),this.updateGroupOrder(this.groupOrder),s}updateGroupAttrs(t,e){let i=this.groups[t];if(!i)throw Error("ProxyProvider.updateGroupAttrs: Invalid group key "+t);A(i.groupElement,e)}updateGroupOrder(t){if(this.groupOrder=t.slice(),this.isDOMOrderGroupOrder())return;let e=t.indexOf("series"),i=e>-1?t.slice(0,e):t,s=e>-1?t.slice(e+1):[],o=iB.activeElement;["before","after"].forEach(t=>{let e=this["before"===t?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"];
1iF(e),("before"===t?i:s).forEach(t=>{let i=this.groups[t];i&&e.appendChild(i.groupElement)})}),(this.beforeChartProxyPosContainer.contains(o)||this.afterChartProxyPosContainer.contains(o))&&o&&o.focus&&o.focus()}clearGroup(t){let e=this.groups[t];if(!e)throw Error("ProxyProvider.clearGroup: Invalid group key "+t);iF(e.proxyContainerElement)}removeGroup(t){let e=this.groups[t];e&&(this.domElementProvider.removeElement(e.groupElement),e.groupElement!==e.proxyContainerElement&&this.domElementProvider.removeElement(e.proxyContainerElement),delete this.groups[t])}update(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()}updateProxyElementPositions(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))}updateGroupProxyElementPositions(t){let e=this.groups[t];e&&e.proxyElements.forEach(t=>t.refreshPosition())}destroy(){this.domElementProvider.destroyCreatedElements()}createProxyPosContainer(t){let e=this.domElementProvider.createElement("div");return e.setAttribute("aria-hidden","false"),e.className="highcharts-a11y-proxy-container"+(t?"-"+t:""),T(e,{top:"0",left:"0"}),this.chart.styledMode||(e.style.whiteSpace="nowrap",e.style.position="absolute"),e}getCurrentGroupOrderInDOM(){let t=t=>{let e=Object.keys(this.groups),i=e.length;for(;i--;){let s=e[i],o=this.groups[s];if(o&&t===o.groupElement)return s}},e=e=>{let i=[],s=e.children;for(let e=0;e<s.length;++e){let o=t(s[e]);o&&i.push(o)}return i},i=e(this.beforeChartProxyPosContainer),s=e(this.afterChartProxyPosContainer);return i.push("series"),i.concat(s)}isDOMOrderGroupOrder(){let t=this.getCurrentGroupOrderInDOM(),e=this.groupOrder.filter(t=>"series"===t||!!this.groups[t]),i=t.length;if(i!==e.length)return!1;for(;i--;)if(t[i]!==e[i])return!1;return!0}updatePosContainerPositions(){let t=this.chart;if(t.renderer.forExport)return;let e=t.renderer.box;t.container.insertBefore(this.afterChartProxyPosContainer,e.nextSibling),t.container.insertBefore(this.beforeChartProxyPosContainer,e),iR(this.chart,this.afterChartProxyPosContainer),iR(this.chart,this.beforeChartProxyPosContainer)}},{unhideChartElementFromAT:iH,getAxisRangeDescription:iW}=tc;class iX extends tb{init(){let t=this.chart;this.announcer=new tO(t,"polite")}onChartUpdate(){let t=this.chart,e=this,i=t.rangeSelector;i&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),i.buttons&&i.buttons.length&&i.buttons.forEach(t=>{e.setRangeButtonAttrs(t)}),i.maxInput&&i.minInput&&["minInput","maxInput"].forEach(function(s,o){let r=i[s];r&&(iH(t,r),e.setRangeInputAttrs(r,"accessibility.rangeSelector."+(o?"max":"min")+"InputLabel"))}))}updateSelectorVisibility(){let t=this.chart,e=t.rangeSelector,i=e&&e.dropdown,s=e&&e.buttons||[];e&&e.hasVisibleDropdown&&i?(iH(t,i),s.forEach(t=>t.element.setAttribute("aria-hidden",!0))):(i&&i.setAttribute("aria-hidden",!0),s.forEac
vendor: 4,781 bytes, line 1
1h(e=>iH(t,e.element)))}setDropdownAttrs(){let t=this.chart,e=t.rangeSelector&&t.rangeSelector.dropdown;if(e){let i=t.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:t.options.lang.rangeSelectorZoom});e.setAttribute("aria-label",i),e.setAttribute("tabindex",-1)}}setRangeButtonAttrs(t){A(t.element,{tabindex:-1,role:"button"})}setRangeInputAttrs(t,e){let i=this.chart;A(t,{tabindex:-1,"aria-label":i.langFormat(e,{chart:i})})}onButtonNavKbdArrowKey(t,e){let i=t.response,s=this.keyCodes,o=this.chart,r=o.options.accessibility.keyboardNavigation.wrapAround,n=e===s.left||e===s.up?-1:1;return o.highlightRangeSelectorButton(o.highlightedRangeSelectorItemIx+n)?i.success:r?(t.init(n),i.success):i[n>0?"next":"prev"]}onButtonNavKbdClick(t){let e=t.response,i=this.chart;return 3!==i.oldRangeSelectorItemState&&this.fakeClickEvent(i.rangeSelector.buttons[i.highlightedRangeSelectorItemIx].element),e.success}onAfterBtnClick(){let t=this.chart,e=iW(t.xAxis[0]),i=t.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:t,axisRangeDescription:e});i&&this.announcer.announce(i)}onInputKbdMove(t){let e=this.chart,i=e.rangeSelector,s=e.highlightedInputRangeIx=(e.highlightedInputRangeIx||0)+t;if(s>1||s<0){if(e.accessibility)return e.accessibility.keyboardNavigation.exiting=!0,e.accessibility.keyboardNavigation.tabindexContainer.focus(),e.accessibility.keyboardNavigation.move(t)}else if(i){let t=i[s?"maxDateBox":"minDateBox"],o=i[s?"maxInput":"minInput"];t&&o&&e.setFocusToElement(t,o)}return!0}onInputNavInit(t){let e=this,i=this.chart,s=t>0?0:1,o=i.rangeSelector,r=o&&o[s?"maxDateBox":"minDateBox"],n=o&&o.minInput,a=o&&o.maxInput;if(i.highlightedInputRangeIx=s,r&&n&&a){i.setFocusToElement(r,s?a:n),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();let t=t=>{(t.which||t.keyCode)===this.keyCodes.tab&&e.onInputKbdMove(t.shiftKey?-1:1)&&(t.preventDefault(),t.stopPropagation())},o=k(n,"keydown",t),l=k(a,"keydown",t);this.removeInputKeydownHandler=()=>{o(),l()}}}onInputNavTerminate(){let t=this.chart.rangeSelector||{};t.maxInput&&t.hideInput("max"),t.minInput&&t.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)}initDropdownNav(){let t=this.chart,e=t.rangeSelector,i=e&&e.dropdown;e&&i&&(t.setFocusToElement(e.buttonGroup,i),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=k(i,"keydown",e=>{let i=(e.which||e.keyCode)===this.keyCodes.tab,s=t.accessibility;i&&(e.preventDefault(),e.stopPropagation(),s&&s.keyboardNavigation.move(e.shiftKey?-1:1))}))}getRangeSelectorButtonNavigation(){let t=this.chart,e=this.keyCodes,i=this;return new ty(t,{keyCodeMap:[[[e.left,e.right,e.up,e.down],function(t){return i.onButtonNavKbdArrowKey(this,t)}],[[e.enter,e.space],function(){return i.onButtonNavKbdClick(this)}]],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.buttons&&t.rangeSelector.buttons.length)},init:function(e){let s=t.rangeSelector;if(s&&s.hasVisibleDropdown)i.initDropdownNav();else if(s){let i=s.buttons.length-1;t.highlightRangeSelectorButton(e>0?0:i)}},terminate:function(){i.removeDropdownKeydownHandler&&(i.removeDropdownKeydownHandler(),delete i.removeDropdownKeydownHandler)}})}getRangeSelectorInputNavigation(){let t=this.chart,e=this;return new ty(t,{keyCodeMap:[],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.inputGroup&&"hidden"!==t.rangeSelector.inputGroup.element.style.visibility&&!1!==t.options.rangeSelector.inputEnabled&&t.rangeSelector.minInput&&t.rangeSelector.maxInput)},init:function(t){e.onInputNavInit(t)},terminate:function(){e.onInputNavTerminate()}})}getKeyboardNavigation(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]}destroy(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()}}function iG(t){let e=this.rangeSelector&&this.rangeSelector.buttons||[],i=this.highlightedRangeSelectorItemIx,s=this.rangeSelector&&this.rangeSelector.selected;return void 0!==i&&e[i]&&i!==s&&e[i].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=t,!!e[t]&&(this.setFocusToElement(e[t].box,e[t].element),t!==s&&(this.oldRangeSelectorItemState=e[t].state,e[t].setState(1)),!0)}function iY(){let t=this.chart.accessibility;if(t&&t.components.rangeSelector)return t.components.rangeSelector.onAfterBtnClick()}(iX||(iX={})).compose=function(t,e){let i=t.prototype;i.highlightRangeSelectorButton||(i.highlightRangeSelectorButton=iG,k(e,"afterBtnClick",iY))};let iV=iX,{composed:ij}=v();!function(t){function e(t){G(!0,t,{marker:{enabled:!0,states:{normal:{opacity:0}
1}}})}function i(t){return t.marker.states&&t.marker.states.normal&&t.marker.states.normal.opacity}function s(t){return!!(t._hasPointMarkers&&t.points&&t.points.length)}function o(){this.chart.styledMode&&(this.markerGroup&&this.markerGroup[this.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),s(this)&&this.points.forEach(t=>{t.graphic&&(t.graphic[t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),t.graphic[!1===t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function r(t){this.resetA11yMarkerOptions=G(t.options.marker||{},this.userOptions.marker||{})}function n(){let t,o,r,n=this.options;(o=this.chart.options.accessibility.enabled,r=!1!==(this.options.accessibility&&this.options.accessibility.enabled),o&&r&&(t=this.chart.options.accessibility,this.points.length<t.series.pointDescriptionEnabledThreshold||!1===t.series.pointDescriptionEnabledThreshold))?(n.marker?.enabled===!1&&(this.a11yMarkersForced=!0,e(this.options)),s(this)&&function(t){let s=t.points.length;for(;s--;){let o=t.points[s],r=o.options,n=o.hasForcedA11yMarker;if(delete o.hasForcedA11yMarker,r.marker){let t=n&&0===i(r);r.marker.enabled&&!t?(G(!0,r.marker,{states:{normal:{opacity:i(r)||1}}}),o.hasForcedA11yMarker=!1):!1===r.marker.enabled&&(e(r),o.hasForcedA11yMarker=!0)}}}(this)):this.a11yMarkersForced?(delete this.a11yMarkersForced,this.isDirty=!0,function(t){let e=t.resetA11yMarkerOptions;if(e){let i=e.states&&e.states.normal&&e.states.normal.opacity;t.chart.styledMode&&!1===e.enabled&&a(t),t.userOptions&&t.userOptions.marker&&(t.userOptions.marker.enabled=!0),t.update({marker:{enabled:e.enabled,states:{normal:{opacity:i}}}})}}(this),n.marker?.enabled===!1&&delete this.resetA11yMarkerOptions):this.chart.styledMode&&n.marker?.enabled===!1&&!s(this)&&a(this)}function a(t){t.points?.forEach(t=>{t.graphic&&(t.graphic=t.graphic.destroy())})}function l(){this.boosted&&this.a11yMarkersForced&&(G(!0,this.options,{marker:{enabled:!1}}),delete this.a11yMarkersForced)}t.compose=function(t){j(ij,"A11y.FM")&&(k(t,"afterSetOptions",r),k(t,"render",n),k(t,"afterRender",o),k(t,"renderCanvas",l))}}(g||(g={}));let iU=g;var i_=x(260),iq=x.n(i_),iK=x(820),i$=x.n(iK);let{seriesTypes:iZ}=eR(),{doc:iJ}=v(),{getPointFromXY:iQ,getSeriesFromName:i0,scrollAxisToPoint:i1}=tc;function i2(t){let e=t.index,i=t.series.points,s=i.length;if(i[e]===t)return e;for(;s--;)if(i[s]===t)return s}function i5(t){let e=t.chart.options.accessibility.keyboardNavigation.seriesNavigation,i=t.options.accessibility||{},s=i.keyboardNavigation;return s&&!1===s.enabled||!1===i.enabled||!1===t.options.enableMouseTracking||!t.visible||e.pointNavigationEnabledThreshold&&+e.pointNavigationEnabledThreshold<=t.points.length}function i3(t){let e=t.series,i=e.options.nullInteraction,s=t.options.accessibility,o=e.chart.options.accessibility,r=s?.enabled===!1;return o.keyboardNavigation.seriesNavigation.skipNullPoints??(!(!t.isNull||i)&&!1===t.visible||!1===t.isInside||r||i5(e))}function i6(t){let e=t.series||[],i=e.length;for(let t=0;t<i;++t)if(!i5(e[t])){let i=function(t){let e=t.points||[],i=e.length;for(let t=0;t<i;++t)if(!i3(e[t]))return e[t];return null}(e[t]);if(i)return i}return null}function i4(t){let e=t.series.length,i=!1;for(;e--&&(t.highlightedPoint=t.series[e].points[t.series[e].points.length-1],!(i=t.series[e].highlightNextValidPoint())););return i}function i9(t){delete t.highlightedPoint;let e=i6(t);return!!e&&e.highlight()}class i8{constructor(t,e){this.keyCodes=e,this.chart=t}init(){let t=this,e=this.chart,i=this.eventProvider=new tf;i.addEvent(i$(),"destroy",function(){return t.onSeriesDestroy(this)}),i.addEvent(e,"afterApplyDrilldown",function(){let t;(t=i6(this))&&t.highlight(!1)}),i.addEvent(e,"drilldown",function(e){let i=e.point,s=i.series;t.lastDrilledDownPoint={x:i.x,y:i.y,seriesName:s?s.name:""}}),i.addEvent(e,"drillupall",function(){setTimeout(function(){t.onDrillupAll()},10)}),i.addEvent(iq(),"afterSetState",function(){let t=this.graphic&&this.graphic.element,i=iJ.activeElement,s=i&&i.getAttribute("class"),o=s&&s.indexOf("highcharts-a11y-proxy-element")>-1;
vendor: 10,560 bytes, line 1
1e.highlightedPoint===this&&i!==t&&!o&&t&&t.focus&&t.focus()})}onDrillupAll(){let t,e=this.lastDrilledDownPoint,i=this.chart,s=e&&i0(i,e.seriesName);e&&s&&C(e.x)&&C(e.y)&&(t=iQ(s,e.x,e.y)),t=t||i6(i),i.container&&i.container.focus(),t&&t.highlight&&t.highlight(!1)}getKeyboardNavigationHandler(){let t=this,e=this.keyCodes,i=this.chart,s=i.inverted;return new ty(i,{keyCodeMap:[[s?[e.up,e.down]:[e.left,e.right],function(e){return t.onKbdSideways(this,e)}],[s?[e.left,e.right]:[e.up,e.down],function(e){return t.onKbdVertical(this,e)}],[[e.enter,e.space],function(t,e){let s=i.highlightedPoint;if(s){let{plotLeft:t,plotTop:i}=this.chart,{plotX:o=0,plotY:r=0}=s;e={...e,chartX:t+o,chartY:i+r,point:s,target:s.graphic?.element||e.target},I(s.series,"click",e),s.firePointEvent("click",e)}return this.response.success}],[[e.home],function(){return i9(i),this.response.success}],[[e.end],function(){return i4(i),this.response.success}],[[e.pageDown,e.pageUp],function(t){return i.highlightAdjacentSeries(t===e.pageDown),this.response.success}]],init:function(){return t.onHandlerInit(this)},validate:function(){return!!i6(i)},terminate:function(){return t.onHandlerTerminate()}})}onKbdSideways(t,e){let i=this.keyCodes,s=e===i.right||e===i.down;return this.attemptHighlightAdjacentPoint(t,s)}onHandlerInit(t){let e=this.chart;return e.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&e.highlightedPoint?e.highlightedPoint.highlight():i9(e),t.response.success}onKbdVertical(t,e){let i=this.chart,s=this.keyCodes,o=e===s.down||e===s.right,r=i.options.accessibility.keyboardNavigation.seriesNavigation;if(r.mode&&"serialize"===r.mode)return this.attemptHighlightAdjacentPoint(t,o);let n=i.highlightedPoint&&i.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries";return i[n](o),t.response.success}onHandlerTerminate(){let t=this.chart,e=t.options.accessibility.keyboardNavigation;t.tooltip&&t.tooltip.hide(0);let i=t.highlightedPoint&&t.highlightedPoint.series;i&&i.onMouseOut&&i.onMouseOut(),t.highlightedPoint&&t.highlightedPoint.onMouseOut&&t.highlightedPoint.onMouseOut(),e.seriesNavigation.rememberPointFocus||delete t.highlightedPoint}attemptHighlightAdjacentPoint(t,e){let i=this.chart,s=i.options.accessibility.keyboardNavigation.wrapAround;return i.highlightAdjacentPoint(e)||s&&(e?i9(i):i4(i))?t.response.success:t.response[e?"next":"prev"]}onSeriesDestroy(t){let e=this.chart;e.highlightedPoint&&e.highlightedPoint.series===t&&(delete e.highlightedPoint,e.focusElement&&e.focusElement.removeFocusBorder())}destroy(){this.eventProvider.removeAddedEvents()}}!function(t){function e(t){let e,i,s=this.series,o=this.highlightedPoint,r=o&&i2(o)||0,n=o&&o.series.points||[],a=this.series&&this.series[this.series.length-1],l=a&&a.points&&a.points[a.points.length-1];if(!s[0]||!s[0].points)return!1;if(o){if(e=s[o.series.index+(t?1:-1)],(i=n[r+(t?1:-1)])||!e||(i=e.points[t?0:e.points.length-1]),!i)return!1}else i=t?s[0].points[0]:l;return i3(i)?(i5(e=i.series)?this.highlightedPoint=t?e.points[e.points.length-1]:e.points[0]:this.highlightedPoint=i,this.highlightAdjacentPoint(t)):i.highlight()}function i(t){let e=this.highlightedPoint,i=1/0,s;return!!C(e.plotX)&&!!C(e.plotY)&&(this.series.forEach(o=>{i5(o)||o.points.forEach(r=>{if(!C(r.plotY)||!C(r.plotX)||r===e)return;let n=r.plotY-e.plotY,a=Math.abs(r.plotX-e.plotX),l=Math.abs(n)*Math.abs(n)+a*a*4;o.yAxis&&o.yAxis.reversed&&(n*=-1),!(n<=0&&t||n>=0&&!t||l<5||i3(r))&&l<i&&(i=l,s=r)})}),!!s&&s.highlight())}function s(t){let e,i,s,o=this.highlightedPoint,r=this.series&&this.series[this.series.length-1],n=r&&r.points&&r.points[r.points.length-1];return this.highlightedPoint?!!(e=this.series[o.series.index+(t?-1:1)])&&!!(i=function(t,e){let i=1/0,s,o,r,n=e.points.length,a=t=>!(C(t.plotX)&&C(t.plotY));if(!a(t)){for(;n--;)!a(s=e.points[n])&&(r=(t.plotX-s.plotX)*(t.plotX-s.plotX)*4+(t.plotY-s.plotY)*(t.plotY-s.plotY)*1)<i&&(i=r,o=n);return C(o)?e.points[o]:void 0}}(o,e))&&(i5(e)?(i.highlight(),s=this.highlightAdjacentSeries(t))?s:(o.highlight(),!1):(i.highlight(),i.series.highlightNextValidPoint())):(e=t?this.series&&this.series[0]:r,!!(i=t?e&&e.points&&e.points[0]:n)&&i.highlight())}function o(t=!0){let e=this.series.chart,i=e.tooltip?.label?.element;(!this.isNull||this.series.options?.nullInteraction)&&t?this.onMouseOver():e.tooltip&&e.tooltip.hide(0),i1(this),this.graphic&&(e.setFocusToElement(this.graphic),!t&&e.focusElement&&e.focusElement.removeFocusBorder()),e.highlightedPoint=this;let s=i?.getBoundingClientRect().top;if(i&&s&&s<0){let t=window.scrollY;window.scrollTo({behavior:"smooth",top:t+s})}return this}function r(){let t=this.chart.highlightedPoint,e=(t&&t.series)===this?i2(t):0,i=this.points,s=i.length;if(i&&s){for(let t=e;t<s;++t)if(!i3(i[t]))return i[t].highlight();for(let t=e;t>=0;--t)if(!i3(i[t]))return i[t].highlight()}return!1}t.compose=function(t,n,a){let l=t.prototype,h=n.prototype,d=a.prototype;l.highlightAdjacentPoint||(l.highlightAdjacentPoint=e,l.highlightAdjacentPointVertical=i,l.highlightAdjacentSeries=s,h.highlight=o,d.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(t=>{iZ[t]&&(iZ[t].prototype.keyboardMoveVertical=!1)}),d.highlightNextValidPoint=r)}}(i8||(i8={}));let i7=i8,{hideSeriesFromAT:st}=tc,{describeSeries:se}=ix,si=class extends tb{static compose(t,e,i){iE.compose(i),iU.compose(i),i7.compose(t,e,i)}init(){this.newDataAnnouncer=new iE(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new i7(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()}hideTooltipFromATWhenShown(){let t=this;this.chart.tooltip&&this.addEvent(this.chart.tooltip.constructor,"refresh",function(){this.chart===t.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})}hideSeriesLabelsFromATWhenShown(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(t){t.labelBySeries&&t.labelBySeries.attr("aria-hidden",!0)})})}onChartRender(){this.chart.series.forEach(function(t){!1!==(t.options.accessibility&&t.options.accessibility.enabled)&&t.visible&&0!==t.getPointsCollection().length?se(t):st(t)})}getKeyboardNavigation(){return this.keyboardNavigation.getKeyboardNavigationHandler()}destroy(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()}},{unhideChartElementFromAT:ss}=tc,{getFakeMouseEvent:so}=Q,sr=class extends tb{constructor(){super(...arguments),this.focusedMapNavButtonIx=-1}init(){let t=this,e=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(i=>{t.addEvent(e,i,function(){t.updateProxyOverlays()})})}onChartUpdate(){let t=this.chart,e=this;t.mapNavigation&&t.mapNavigation.navButtons.forEach((i,s)=>{ss(t,i.element),e.setMapNavButtonAttrs(i.element,"accessibility.zoom.mapZoom"+(s?"Out":"In"))})}setMapNavButtonAttrs(t,e){let i=this.chart;A(t,{tabindex:-1,role:"button","aria-label":i.langFormat(e,{chart:i})})}onChartRender(){this.updateProxyOverlays()}updateProxyOverlays(){let t=this.chart;if(this.proxyProvider.clearGroup("zoom"),t.resetZoomButton&&this.createZoomProxyButton(t.resetZoomButton,"resetZoomProxyButton",t.langFormat("accessibility.zoom.resetZoomButton",{chart:t})),t.drillUpButton&&t.breadcrumbs&&t.breadcrumbs.list){let e=t.breadcrumbs.list[t.breadcrumbs.list.length-1];this.createZoomProxyButton(t.drillUpButton,"drillUpProxyButton",t.langFormat("accessibility.drillUpButton",{chart:t,buttonText:t.breadcrumbs.getButtonText(e)}))}}createZoomProxyButton(t,e,i){this[e]=this.proxyProvider.addProxyElement("zoom",{click:t},"button",{"aria-label":i,tabindex:-1})}getMapZoomNavigation(){let t=this.keyCodes,e=this.chart,i=this;return new ty(e,{keyCodeMap:[[[t.up,t.down,t.left,t.right],function(t){return i.onMapKbdArrow(this,t)}],[[t.tab],function(t,e){return i.onMapKbdTab(this,e)}],[[t.space,t.enter],function(){return i.onMapKbdClick(this)}]],validate:function(){return!!(e.mapView&&e.mapNavigation&&e.mapNavigation.navButtons.length)},init:function(t){return i.onMapNavInit(t)}})}onMapKbdArrow(t,e){let i=this.chart,s=this.keyCodes,o=i.container,r=e===s.up||e===s.down,n=e===s.left||e===s.up?1:-1,a=(r?i.plotHeight:i.plotWidth)/10*n,l=10*Math.random(),h={x:o.offsetLeft+i.plotLeft+i.plotWidth/2+l,y:o.offsetTop+i.plotTop+i.plotHeight/2+l},d=r?{x:h.x,y:h.y+a}:{x:h.x+a,y:h.y};return[so("mousedown",h),so("mousemove",d),so("mouseup",d)].forEach(t=>o.dispatchEvent(t)),t.response.success}onMapKbdTab(t,e){let i=this.chart,s=t.response,o=e.shiftKey,r=o&&!this.focusedMapNavButtonIx||!o&&this.focusedMapNavButtonIx;if(i.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),r)return i.mapView&&i.mapView.zoomBy(),s[o?"prev":"next"];this.focusedMapNavButtonIx+=o?-1:1;let n=i.mapNavigation.navButtons[this.focusedMapNavButtonIx];return i.setFocusToElement(n.box,n.element),n.setState(2),s.success}onMapKbdClick(t){let e=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(e),t.response.success}onMapNavInit(t){let e=this.chart,i=e.mapNavigation.navButtons[0],s=e.mapNavigation.navButtons[1],o=t>0?i:s;e.setFocusToElement(o.box,o.element),o.setState(2),this.focusedMapNavButtonIx=t>0?0:1}simpleButtonNavigation(t,e,i){let s=this.keyCodes,o=this,r=this.chart;return new ty(r,{keyCodeMap:[[[s.tab,s.up,s.down,s.left,s.right],function(t,e){let i=t===s.tab&&e.shiftKey||t===s.left||t===s.up;return this.response[i?"prev":"next"]}],[[s.space,s.enter],function(){return V(i(this,r),this.response.success)}]],validate:function(){return r[t]&&r[t].box&&o[e].innerElement},init:function(){r.setFocusToElement(r[t].box,o[e].innerElement)}})}getKeyboardNavigation(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(t,e){e.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(t,e){return e.drillUp(),t.response.prev}),this.getMapZoomNavigation()]}},{doc:sn,isMS:sa,win:sl}=v(),sh=function(){if(sa&&sl.getComputedStyle){let t=sn.createElement("div");t.style.backgroundImage="url(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)",sn.body.appendChild(t);let e=(t.currentStyle||sl.getComputedStyle(t)).backgroundImage;return sn.body.removeChild(t),"none"===e}return sl.matchMedia&&sl.matchMedia("(forced-colors: active)").matches},sd=function(t){t.highContrastModeActive=!0;let e=t.options.accessibility.highContrastTheme;t.update(e,!1);let i=e.colors?.length>1;
1t.series.forEach(function(t){let s=e.plotOptions[t.type]||{},o=i&&void 0!==t.colorIndex?e.colors[t.colorIndex]:s.color||"window",r={color:s.color||"windowText",colors:i?e.colors:[s.color||"windowText"],borderColor:s.borderColor||"window",fillColor:o};t.update(r,!1),t.points&&t.points.forEach(function(t){t.options&&t.options.color&&t.update({color:s.color||"windowText",borderColor:s.borderColor||"window"},!1)})}),t.redraw()},sc={chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[],dataClasses:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}};function sp(t,e,i){let s=t,o,r=0;for(;r<e.length-1;++r)s=s[o=e[r]]=V(s[o],{});s[e[e.length-1]]=i}function su(t,e,i,s){function o(t,e){return e.reduce(function(t,e){return t[e]},t)}let r=o(t.options,e),n=o(t.options,i);Object.keys(s).forEach(function(o){let a=r[o];void 0!==a&&(sp(n,s[o],a),(0,y.error)(32,!1,t,{[e.join(".")+"."+o]:i.join(".")+"."+s[o].join(".")}))})}let sg=function(t){let e,i,s;e=t.options.chart,i=t.options.accessibility||{},["description","typeDescription"].forEach(function(s){e[s]&&(i[s]=e[s],(0,y.error)(32,!1,t,{[`chart.${s}`]:`use accessibility.${s}`}))}),t.axes.forEach(function(e){let i=e.options;i&&i.description&&(i.accessibility=i.accessibility||{},i.accessibility.description=i.description,(0,y.error)(32,!1,t,{"axis.description":"use axis.accessibility.description"}))}),t.series&&(s={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormat:["accessibility","point","descriptionFormat"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]},t.series.forEach(function(e){Object.keys(s).forEach(function(i){let o=e.options[i];"accessibility.pointDescriptionFormatter"===i&&(o=e.options.accessibility&&e.options.accessibility.pointDescriptionFormatter),void 0!==o&&(sp(e.options,s[i],"skipKeyboardNavigation"===i?!o:o),(0,y.error)(32,!1,t,{[`series.${i}`]:"series."+s[i].join(".")}))})})),su(t,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointV
vendor: 9,585 bytes, line 1
1alueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection","axisRangeDateFormat"]}),su(t,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]}),su(t,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector","buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})},{defaultOptions:sf}=v(),{doc:sm}=v(),{removeElement:sx}=Q;class sb{constructor(t){this.init(t)}init(t){if(this.chart=t,!sm?.addEventListener){this.zombie=!0,this.components={},t.renderTo.setAttribute("aria-hidden",!0);return}sg(t),this.proxyProvider=new iz(this.chart),this.initComponents(),this.keyboardNavigation=new ei(t,this.components)}initComponents(){let t=this.chart,e=this.proxyProvider,i=t.options.accessibility;this.components={container:new tA,infoRegions:new tJ,legend:new em,chartMenu:new t3,rangeSelector:new iV,series:new si,zoom:new sr,navigator:new it},i.customComponents&&N(this.components,i.customComponents);let s=this.components;this.getComponentOrder().forEach(function(i){s[i].initBase(t,e),s[i].init()})}getComponentOrder(){return this.components?this.components.series?["series"].concat(Object.keys(this.components).filter(t=>"series"!==t)):Object.keys(this.components):[]}update(){let t=this.components,e=this.chart,i=e.options.accessibility;I(e,"beforeA11yUpdate"),e.types=this.getChartTypes();let s=i.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(s),this.getComponentOrder().forEach(function(i){t[i].onChartUpdate(),I(e,"afterA11yComponentUpdate",{name:i,component:t[i]})}),this.keyboardNavigation.update(s),!e.highContrastModeActive&&!1!==i.highContrastMode&&(sh()||!0===i.highContrastMode)&&sd(e),I(e,"afterA11yUpdate",{accessibility:this})}destroy(){let t=this.chart||{},e=this.components;Object.keys(e).forEach(function(t){e[t].destroy(),e[t].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),t.announcerContainer&&sx(t.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),t.renderTo&&t.renderTo.setAttribute("aria-hidden",!0),t.focusElement&&t.focusElement.removeFocusBorder()}getChartTypes(){let t={};return this.chart.series.forEach(function(e){t[e.type]=1}),Object.keys(t)}}!function(t){function e(){this.accessibility&&this.accessibility.destroy()}function i(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());let t=this.accessibility;t&&!t.zombie&&(t.proxyProvider.updateProxyElementPositions(),t.getComponentOrder().forEach(function(e){t.components[e].onChartRender()}))}function s(t){let e=t.options.accessibility;e&&(e.customComponents&&(this.options.accessibility.customComponents=e.customComponents,delete e.customComponents),G(!0,this.options.accessibility,e),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function o(){let e=this.accessibility,i=this.options.accessibility,s=this.renderer.boxWrapper.element,o=this.title;if(i&&i.enabled)e&&!e.zombie?e.update():(this.accessibility=e=new t(this),e&&!e.zombie&&e.update(),"img"===s.getAttribute("role")&&s.removeAttribute("role"));else if(e)e.destroy&&e.destroy(),delete this.accessibility;else{this.renderTo.setAttribute("role","img"),this.renderTo.setAttribute("aria-hidden",!1),this.renderTo.setAttribute("aria-label",(o&&o.element.textContent||"").replace(/</g,"&lt;")),s.setAttribute("aria-hidden",!0);let t=document.getElementsByClassName("highcharts-description")[0];t&&(t.setAttribute("aria-hidden",!1),t.classList.remove("highcharts-linked-description"))}}function r(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}t.i18nFormat=tn.i18nFormat,t.compose=function(t,n,a,l,h,d){ei.compose(t),iE.compose(l),em.compose(t,n),t3.compose(t),si.compose(t,a,l),tn.compose(t),tP.compose(t,h),d&&iV.compose(t,d);let c=t.prototype;c.updateA11yEnabled||(c.updateA11yEnabled=o,k(t,"destroy",e),k(t,"render",i),k(t,"update",s),["addSeries","init"].forEach(e=>{k(t,e,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(e=>{k(t,e,function(){let t=this.accessibility;t&&!t.zombie&&t.update()})}),k(a,"update",r),["update","updatedData","remove"].forEach(t=>{k(l,t,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(sb||(sb={})),G(!0,sf,{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}</{headingTagName}><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{playAsSoundButton}</div><div>{viewTableButton}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{annotationsTitle}{annotationsList}</div>",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',highContrastMode:"auto",keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#334eff",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","navigator","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:void 0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}},navigator:{accessibility:{enabled:!0}}},{accessibility:{highContrastTheme:sc},lang:{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{#each additionalAnnotationPoints}, also related to {this}{/each}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},navigator:{handleLabel:"{#eq handleIx 0}Start, percent{else}End, percent{/eq}",groupLabel:"Axis zoom",changeAnnouncement:"{axisRangeDescription}"},stockTools:{groupLabel:"Stock chart tools",arrowLabel:"Toggle submenu"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries}
1 data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#eq numPoints 1}box{else}boxes{/eq}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#eq numPoints 1}bubbles{else}bubble{/eq}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories.",defaultAxisNames:{categories:"categories",time:"Time",values:"values"}},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{#each annotations}Annotation: {this}{/each}"}}}});let sy=sb,sv=v();sv.i18nFormat=sy.i18nFormat,sv.A11yChartUtilities=tc,sv.A11yHTMLUtilities=Q,sv.AccessibilityComponent=tb,sv.KeyboardNavigationHandler=ty,sv.SeriesAccessibilityDescriber=ix,sy.compose(sv.Chart,sv.Legend,sv.Point,
1sv.Series,sv.SVGElement,sv.RangeSelector);let sw=v();return b.default})()},46944:function(t){var e;let i,s,o;i=(e="u"<typeof window?this:window)._Highcharts,s=e._Highcharts.SeriesRegistry,o=e._Highcharts.Color,t.exports=(()=>{"use strict";var t,e,r={512:t=>{t.exports=s},620:t=>{t.exports=o},944:t=>{t.exports=i}},n={};function a(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return r[t](i,i.exports,a),i.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var l={};a.d(l,{default:()=>N});var h=a(944),d=a.n(h);let{doc:c,win:p}=d();function u(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function g(t){return m(t)&&"number"==typeof t.nodeType}function f(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function m(t,e){let i;return!!t&&"object"==typeof t&&(!e||"[object Array]"!==(i=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==i)}function x(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),function(t,e){for(let i in t)Object.hasOwnProperty.call(t,i)&&e.call((0,t[i]),t[i],i,t)}(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!m(i,!0)||(o=i?.constructor,m(i,!0)&&!g(i)&&o?.name&&"Object"!==o.name)||g(i)?t[s]=e[s]:t[s]=r(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let n=s.length;for(i=0;i<n;i++)o=r(o,s[i]);return o}function b(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function y(t,e){return parseInt(t,e||10)}Array.prototype.find;let{defaultOptions:v}=d(),{noop:w}=d(),M={radius:0,scope:"stack",where:void 0};var k=a(512),A=a.n(k),P=a(620);let{parse:E}=a.n(P)();(t=e||(e={})).initDataClasses=function(t){let e=this.chart,i=this.legendItem=this.legendItem||{},s=this.options,o=t.dataClasses||[],r,n,a=e.options.chart.colorCount,l=0,h;this.dataClasses=n=[],i.labels=[];for(let t=0,i=o.length;t<i;++t)r=x(r=o[t]),n.push(r),(e.styledMode||!r.color)&&("category"===s.dataClassColor?(e.styledMode||(a=(h=e.options.colors||[]).length,r.color=h[l]),r.colorIndex=l,++l===a&&(l=0)):r.color=E(s.minColor).tweenTo(E(s.maxColor),i<2?.5:t/(i-1)))},t.initStops=function(){let t=this.options,e=this.stops=t.stops||[[0,t.minColor||""],[1,t.maxColor||""]];for(let t=0,i=e.length;t<i;++t)e[t].color=E(e[t][1])},t.normalizedValue=function(t){let e=this.max||0,i=this.min||0;return this.logarithmic&&(t=this.logarithmic.log2lin(t)),1-(e-t)/(e-i||1)},t.toColor=function(t,e){let i,s,o,r,n,a,l=this.dataClasses,h=this.stops;if(l){for(a=l.length;a--;)if(s=(n=l[a]).from,o=n.to,(void 0===s||t>=s)&&(void 0===o||t<=o)){r=n.color,e&&(e.dataClass=a,e.colorIndex=n.colorIndex);break}}else{for(i=this.normalizedValue(t),a=h.length;a--&&!(i>h[a][0]););s=h[a]||h[a+1],i=1-((o=h[a+1]||s)[0]-i)/(o[0]-s[0]||1),r=s.color.tweenTo(o.color,i)}return r};let S=e,T=function(t){u(t,S)},{gauge:C,pie:L}=A().seriesTypes;class O extends C{translate(){let t=this.yAxis;T(t),!t.dataClasses&&t.options.dataClasses&&t.initDataClasses(t.options),t.initStops(),C.prototype.translate.call(this)}drawPoints(){let t,e=this.yAxis,i=e.center,s=this.options,o=this.chart.renderer,r=s.overshoot,n=s.rounded&&void 0===s.borderRadius,a=f(r)?r/180*Math.PI:0;for(let r of(f(s.threshold)&&(t=e.startAngleRad+e.translate(s.threshold,void 0,void 0,void 0,!0)),this.thresholdAngleRad=b(t,e.startAngleRad),this.points))if(!r.isNull){var l,h,d,c,p;let t=y(b(r.options.radius,s.radius,100))*i[2]/200,g=y(b(r.options.innerRadius,s.innerRadius,60))*i[2]/200,f=Math.min(e.startAngleRad,e.endAngleRad),v=Math.max(e.startAngleRad,e.endAngleRad),w=r.graphic,k=e.startAngleRad+e.translate(r.y,void 0,void 0,void 0,!0),A,P,E=e.toColor(r.y,r),S=r.getClassName();"none"===E&&(E=r.color||this.color||"none"),"none"!==E&&(r.color=E),l=k,h=f-a,d=v+a,k=l>h?l<d?l:d:h,!1===s.wrap&&(k=(c=k)>f?c<v?c:v:f);let T=n?(t-g)/2/t:0,C=Math.min(k,this.thresholdAngleRad)-T,L=Math.max(k,this.thresholdAngleRad)+T;L-C>2*Math.PI&&(L=C+2*Math.PI);let O=n?"50%":0;
1s.borderRadius&&(O=(m(p=s.borderRadius)||(p={radius:p||0}),x(M,void 0,p)).radius),r.shapeArgs=A={x:i[0],y:i[1],r:t,innerR:g,start:C,end:L,borderRadius:O},r.startR=t,w?(P=A.d,w.animate(u({fill:E},A)),P&&(A.d=P)):r.graphic=w=o.arc(A).attr({fill:E,"sweep-flag":0}).add(this.group),this.chart.styledMode?this.yAxis?.stops&&(S=S.replace(/highcharts-color-\d/gm,"").trim()):("square"!==s.linecap&&w.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),w.attr({stroke:s.borderColor||"none","stroke-width":s.borderWidth||0})),w&&w.addClass(S)}}animate(t){t||(this.startAngleRad=this.thresholdAngleRad,L.prototype.animate.call(this,t))}}O.defaultOptions=x(C.defaultOptions,{colorByPoint:!0,dataLabels:{y:0}}),A().registerSeriesType("solidgauge",O);let N=d();return l.default})()},59667:function(t){var e;let i,s,o;i=(e="u"<typeof window?this:window)._Highcharts,s=e._Highcharts.AST,o=e._Highcharts.Chart,t.exports=(()=>{"use strict";var t,e,r={660:t=>{t.exports=s},944:t=>{t.exports=i},960:t=>{t.exports=o}},n={};function a(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return r[t](i,i.exports,a),i.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var l={};a.d(l,{default:()=>ta});var h=a(944),d=a.n(h),c=a(660),p=a.n(c),u=a(960),g=a.n(u),f=t||(t={});f.compose=function(t){return t.navigation||(t.navigation=new m(t)),t};class m{constructor(t){this.updates=[],this.chart=t}addUpdate(t){this.chart.navigation.updates.push(t)}update(t,e){this.updates.forEach(i=>{i.call(this.chart,t,e)})}}f.Additions=m;let x=t,{isSafari:b,win:y,win:{document:v}}=d(),w=y.URL||y.webkitURL||y;function M(t,e){let i=y.navigator,s=v.createElement("a");if("string"!=typeof t&&!(t instanceof String)&&i.msSaveOrOpenBlob)return void i.msSaveOrOpenBlob(t,e);if(t=""+t,i.userAgent.length>1e3)throw Error("Input too long");let o=/Edge\/\d+/.test(i.userAgent);if((b&&"string"==typeof t&&0===t.indexOf("data:application/pdf")||o||t.length>2e6)&&!(t=function(t){let e=t.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(e&&e.length>3&&y.atob&&y.ArrayBuffer&&y.Uint8Array&&y.Blob&&w.createObjectURL){let t=y.atob(e[3]),i=new y.ArrayBuffer(t.length),s=new y.Uint8Array(i);for(let e=0;e<s.length;++e)s[e]=t.charCodeAt(e);return w.createObjectURL(new y.Blob([s],{type:e[1]}))}}(t)||""))throw Error("Failed to convert to blob");if(void 0!==s.download)s.href=t,s.download=e,v.body.appendChild(s),s.click(),v.body.removeChild(s);else try{if(!y.open(t,"chart"))throw Error("Failed to open window")}catch{y.location.href=t}}let{isTouchDevice:k}=d(),A={exporting:{allowTableSorting:!0,libURL:"https://code.highcharts.com/12.6.0/lib/",local:!0,type:"image/png",url:`https://export-svg.highcharts.com?v=${d().version}`,pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen?.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.exporting?.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:async function(){await this.exporting?.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:async function(){await this.exporting?.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:async function(){await this.exporting?.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:async function(){await this.exporting?.exportChart({type:"image/svg+xml"})}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:5,height:28,y:-5,verticalAlign:"top",width:28,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"#ffffff",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"#333333",padding:"0.5em",fontSize:k?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}};!function(t){let e=[];function i(t,e,i,s){return[["M",t,e+2.5],["L",t+i,e+2.5],["M",t,e+s/2+.5],["L",t+i,e+s/2+.5],["M",t,e+s-1.5],["L",t+i,e+s-1.5]]}function s(t,e,i,s){let o=s/3-2;return[].concat(this.circle(i-o,e,o,o),this.circle(i-o,e+o+4,o,o),this.circle(i-o,e+2*(o+4),o,o))}t.compose=function(t){if(-1===e.indexOf(t)){e.push(t);let o=t.prototype.symbols;o.menu=i,o.menuball=s.bind(o)}}}(e||(e={}));let P=e,{doc:E,win:S}=d();function T(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;d().Point&&t instanceof d().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let n=t.addEventListener;n&&n.call(t,e,i,!!d().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let a={fn:i,order:"number"==typeof s.order?s.order:1/0};return r[e].push(a),r[e].sort((t,e)=>t.order-e.order),function(){Y(t,e,i)}}function C(t,e,i,s,o){let r=E.createElement(t);return e&&N(r,e),o&&L(r,{padding:"0",border:"none",margin:"0"}),i&&L(r,i),s&&s.appendChild(r),r}function L(t,e){N(t.style,e)}function O(t){t?.parentElement?.removeChild(t)}function N(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function I(t,e,i,s){if(i=i||{},E?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==d())){let s=E.createEvent("Events");
1s.initEvent(e,!0,!0),i=N(s,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||N(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let s=[],o=t,r=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);r&&s.sort((t,e)=>t.order-e.order),s.forEach(e=>{!1===e.fn.call(t,i,t)&&i.preventDefault()})}s&&!i.defaultPrevented&&s.call(t,i)}let D=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]};function B(t){null!=t&&clearTimeout(t)}function R(t){return z(t)&&"number"==typeof t.nodeType}function F(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function z(t,e){return!!t&&"object"==typeof t&&(!e||!F(t))}function H(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),W(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!z(i,!0)||(o=i?.constructor,z(i,!0)&&!R(i)&&o?.name&&"Object"!==o.name)||R(i)?t[s]=e[s]:t[s]=r(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let n=s.length;for(i=0;i<n;i++)o=r(o,s[i]);return o}function W(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function X(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function G(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function Y(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,W(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}let{composed:V}=d();function j(){this.fullscreen=new U(this)}class U{static compose(t){G(V,"Fullscreen")&&T(t,"beforeRender",j)}constructor(t){this.chart=t,this.isOpen=!1;const e=t.renderTo;!this.browserProps&&("function"==typeof e.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:e.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:e.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:e.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let t=this,e=t.chart,i=e.options.chart;I(e,"fullscreenClose",void 0,function(){t.isOpen&&t.browserProps&&e.container.ownerDocument instanceof Document&&e.container.ownerDocument[t.browserProps.exitFullscreen](),t.unbindFullscreenEvent&&(t.unbindFullscreenEvent=t.unbindFullscreenEvent()),e.setSize(t.origWidth,t.origHeight,!1),t.origWidth=void 0,t.origHeight=void 0,i.width=t.origWidthOption,i.height=t.origHeightOption,t.origWidthOption=void 0,t.origHeightOption=void 0,t.isOpen=!1,t.setButtonText()})}open(){let t=this,e=t.chart,i=e.options.chart;I(e,"fullscreenOpen",void 0,function(){if(i&&(t.origWidthOption=i.width,t.origHeightOption=i.height),t.origWidth=e.chartWidth,t.origHeight=e.chartHeight,t.browserProps){let i=T(e.container.ownerDocument,t.browserProps.fullscreenChange,function(){t.isOpen?(t.isOpen=!1,t.close()):(e.setSize(null,null,!1),t.isOpen=!0,t.setButtonText())}),s=T(e,"destroy",i);t.unbindFullscreenEvent=()=>{i(),s()};let o=e.renderTo[t.browserProps.requestFullscreen]();o&&o.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){let t=this.chart,e=t.exporting?.divElements,i=t.options.exporting,s=i&&i.buttons&&i.buttons.contextButton.menuItems,o=t.options.lang;if(i?.menuItemDefinitions&&o?.exitFullscreen&&o.viewFullscreen&&s&&e){let t=e[s.indexOf("viewFullscreen")];t&&p().setElementHTML(t,this.isOpen?o.exitFullscreen:i.menuItemDefinitions.viewFullscreen?.textKey||o.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}let{win:_}=d(),q={ajax:function(t){let e={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},i=new XMLHttpRequest;function s(e,i){t.error&&t.error(e,i)}if(!t.url)return!1;i.open((t.type||"get").toUpperCase(),t.url,!0),t.headers?.["Content-Type"]||i.setRequestHeader("Content-Type",e[t.dataType||"json"]||e.text),W(t.headers,function(t,e){i.setRequestHeader(e,t)}),t.responseType&&(i.responseType=t.responseType),i.onreadystatechange=function(){let e;if(4===i.readyState){if(200===i.status){if("blob"!==t.responseType&&(e=i.responseText,"json"===t.dataType))try{e=JSON.parse(e)}catch(t){if(t instanceof Error)return s(i,t)}return t.success?.(e,i)}s(i,i.responseText)}},t.data&&"string"!=typeof t.data&&(t.data=JSON.stringify(t.data)),i.send(t.data)},getJSON:function(t,e){q.ajax({url:t,success:e,dataType:"json",headers:{"Content-Type":"text/plain"}})}};
1q.post=async function(t,e,i){let s=new _.FormData;W(e,function(t,e){s.append(e,t)}),s.append("b64","true");let o=await _.fetch(t,{method:"POST",body:s,...i});if(o.ok){let t=await o.text(),i=document.createElement("a");i.href=`data:${e.type};base64,${t}`,i.download=e.filename,i.click(),O(i)}};let{defaultOptions:K,setOptions:$}=d(),{composed:Z,doc:J,isFirefox:Q,isMS:tt,isSafari:te,SVG_NS:ti,win:ts}=d();p().allowedAttributes.push("data-z-index","fill-opacity","filter","preserveAspectRatio","rx","ry","stroke-dasharray","stroke-linejoin","stroke-opacity","text-anchor","transform","transform-origin","version","viewBox","visibility","xmlns","xmlns:xlink"),p().allowedTags.push("desc","clippath","fedropshadow","femorphology","g","image");let to=ts.URL||ts.webkitURL||ts;class tr{constructor(t,e){this.options={},this.chart=t,this.options=e,this.btnCount=0,this.buttonOffset=0,this.divElements=[],this.svgElements=[]}static hyphenate(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})}static async imageToDataURL(t,e,i){let s=await tr.loadImage(t),o=J.createElement("canvas"),r=o?.getContext("2d");if(r)return o.height=s.height*e,o.width=s.width*e,r.drawImage(s,0,0,o.width,o.height),o.toDataURL(i);throw Error("No canvas found!")}static async fetchCSS(t){try{let e=await fetch(t),i=await e.text(),s=new CSSStyleSheet;return s.replaceSync(i),s}catch{(0,h.error)(`Warning: Failed to fetch CSS from ${t}`,!1)}}static async handleStyleSheet(t,e){try{for(let i of Array.from(t.cssRules)){if(i instanceof CSSImportRule){let t=await tr.fetchCSS(i.href);t&&await tr.handleStyleSheet(t,e)}if(i instanceof CSSFontFaceRule){let s=i.cssText;if(t.href){let e=t.href,i=/url\(\s*(['"]?)(?![a-z]+:|\/\/)([^'")]+?)\1\s*\)/gi;s=s.replace(i,(t,i,s)=>{let o=new URL(s,e).href;return`url(${i}${o}${i})`})}e.push(s)}}}catch{if(t.href){let i=await tr.fetchCSS(t.href);i&&await tr.handleStyleSheet(i,e)}}}static async fetchStyleSheets(){let t=[];for(let e of Array.from(J.styleSheets))await tr.handleStyleSheet(e,t);return t}static async inlineFonts(t){let e=await tr.fetchStyleSheets(),i=/url\(([^)]+)\)/g,s=[],o=e.join("\n"),r;for(;r=i.exec(o);){let t=r[1].replace(/['"]/g,"");s.includes(t)||s.push(t)}let n=t=>{let e="",i=new Uint8Array(t);for(let t=0;t<i.byteLength;t++)e+=String.fromCharCode(i[t]);return btoa(e)},a={};for(let t of s)try{let e=await fetch(t),i=e.headers.get("Content-Type")||"",s=n(await e.arrayBuffer());a[t]=`data:${i};base64,${s}`}catch{}o=o.replace(i,(t,e)=>{let i=e.replace(/['"]/g,"");return`url(${a[i]||i})`});let l=document.createElementNS("http://www.w3.org/2000/svg","style");return l.textContent=o,t.append(l),t}static loadImage(t){return new Promise((e,i)=>{let s=new ts.Image;s.crossOrigin="Anonymous",s.onload=()=>{setTimeout(()=>{e(s)},tr.loadEventDeferDelay)},s.onerror=t=>{i(t)},s.src=t})}static prepareImageOptions(t){let e=t?.type||"image/png",i=t?.libURL||K.exporting?.libURL;return{type:e,filename:(t?.filename||"chart")+"."+("image/svg+xml"===e?"svg":e.split("/")[1]),scale:t?.scale||1,libURL:i?.slice(-1)!=="/"?i+"/":i}}static sanitizeSVG(t,e){let i=t.indexOf("</svg>")+6,s=t.indexOf("<foreignObject")>-1,o=t.substr(i);return t=t.substr(0,i),s?t=t.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />").replace(/(<svg(?![^>]*xmlns=)[^>]*)>/g,'$1 xmlns="http://www.w3.org/2000/svg">'):o&&e?.exporting?.allowHTML&&(o='<foreignObject x="0" y="0" width="'+e.chart.width+'" height="'+e.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+o.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />").replace(/(<svg(?![^>]*xmlns=)[^>]*)>/g,'$1 xmlns="http://www.w3.org/2000/svg">')+"</body></foreignObject>",t=t.replace("</svg>",o+"</svg>")),t=t.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery\d+="[^"]+"/g,"").replace(/url\(("|&quot;)(.*?)("|&quot;)\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (NS\d+\:)?href=/g," xlink:href=").replace(/(<image[^>]*) xlink:href=/g,"$1 href=").replace(/\n+/g," ").replace(/&nbsp;/g,"\xa0").replace(/&shy;/g,"\xad")}static svgToDataURL(t){let e=ts.navigator.userAgent,i=e.indexOf("WebKit")>-1&&0>e.indexOf("Chrome");try{if(!i&&-1===t.indexOf("<foreignObject"))return to.createObjectURL(new ts.Blob([t],{type:"image/svg+xml;charset-utf-16"}))}catch{}return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t)}addButton(t){let e,i=this,s=i.chart,o=s.renderer,r=H(s.options.navigation?.buttonOptions,t),n=r.onclick,a=r.menuItems,l=r.symbolSize||12;if(!1===r.enabled||!r.theme)return;let h=s.styledMode?{}:r.theme,d=()=>{};n?d=function(t){t&&t.stopPropagation(),n.call(s,t,s)}:a&&(d=function(t){t&&t.stopPropagation(),i.contextMenu(c.menuClassName,a,c.translateX||0,c.translateY||0,c.width||0,c.height||0,c),c.setState(2)}),r.text&&r.symbol?h.paddingLeft=X(h.paddingLeft,30):r.text||N(h,{width:r.width,height:r.height,padding:0});let c=o.button(r.text||"",0,0,d,h,void 0,void 0,void 0,void 0,r.useHTML).addClass(t.className||"").attr({title:X(s.options.lang[r._titleKey||r.titleKey],"")});c.menuClassName=t.menuClassName||"highcharts-menu-"+i.btnCount++,r.symbol&&(e=o.symbol(r.symbol,Math.round((r.symbolX||0)-l/2),Math.round((r.symbolY||0)-l/2),l,l,{width:l,height:l}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(c),s.styledMode||e.attr({stroke:r.symbolStroke,fill:r.symbolFill,"stroke-width":r.symbolStrokeWidth||1})),c.add(i.group).align(N(r,{width:c.width,x:X(r.x,i.buttonOffset)}),!0,"spacingBox"),i.buttonOffset+=((c.width||0)+(r.buttonSpacing||0))*("right"===r.align?-1:1),i.svgElements.push(c,e)}afterPrint(){let t=this.chart;if(!this.printReverseInfo)return;let{childNodes:e,origDisplay:i,resetParams:s}=this.printReverseInfo;this.moveContainers(t.renderTo),[].forEach.call(e,function(t,e){1===t.nodeType&&(t.style.display=i[e]||"")}),this.isPrinting=!1,s&&t.setSize.apply(t,s),delete this.printReverseInfo,tr.printingChart=void 0,I(t,"afterPrint")}beforePrint(){let t=this.chart,e=J.body,i=this.options.printMaxWidth,s={childNodes:e.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,t.pointer?.reset(void 0,0),I(t,"beforePrint"),i&&t.chartWidth>i&&(s.resetParams=[t.options.chart.width,void 0,!1],t.setSize(i,void 0,!1)),[].forEach.call(s.childNodes,function(t,e){1===t.nodeType&&(s.origDisplay[e]=t.style.display,t.style.display="none")}),this.moveContainers(e),this.printReverseInfo=s}contextMenu(t,e,i,s,o,r,n){let a=this,l=a.chart,h=l.options.navigation,d=l.chartWidth,c=l.chartHeight,u="cache-"+t,g=Math.max(o,r),f,m=l[u];m||(a.contextMenuEl=l[u]=m=C("div",{className:t},{position:"absolute",zIndex:1e3,padding:g+"px",pointerEvents:"auto",...l.renderer.style}
1,l.scrollablePlotArea?.fixedDiv||l.container),f=C("ul",{className:"highcharts-menu"},l.styledMode?{}:{listStyle:"none",margin:0,padding:0},m),l.styledMode||L(f,N({MozBoxShadow:"3px 3px 10px #0008",WebkitBoxShadow:"3px 3px 10px #0008",boxShadow:"3px 3px 10px #0008"},h?.menuStyle||{})),m.hideMenu=function(){L(m,{display:"none"}),n&&n.setState(0),l.exporting&&(l.exporting.openMenu=!1),L(l.renderTo,{overflow:"hidden"}),L(l.container,{overflow:"hidden"}),B(m.hideTimer),I(l,"exportMenuHidden")},a.events?.push(T(m,"mouseleave",function(){m.hideTimer=ts.setTimeout(m.hideMenu,500)}),T(m,"mouseenter",function(){B(m.hideTimer)}),T(J,"mouseup",function(e){l.pointer?.inClass(e.target,t)||m.hideMenu()}),T(m,"click",function(){l.exporting?.openMenu&&m.hideMenu()})),e.forEach(function(t){if("string"==typeof t&&a.options.menuItemDefinitions?.[t]&&(t=a.options.menuItemDefinitions[t]),z(t,!0)){let e;t.separator?e=C("hr",void 0,void 0,f):("viewData"===t.textKey&&a.isDataTableVisible&&(t.textKey="hideData"),e=C("li",{className:"highcharts-menu-item",onclick:function(e){e&&e.stopPropagation(),m.hideMenu(),"string"!=typeof t&&t.onclick&&t.onclick.apply(l,arguments)}},void 0,f),p().setElementHTML(e,t.text||l.options.lang[t.textKey]),l.styledMode||(e.onmouseover=function(){L(this,h?.menuItemHoverStyle||{})},e.onmouseout=function(){L(this,h?.menuItemStyle||{})},L(e,N({cursor:"pointer"},h?.menuItemStyle||{})))),a.divElements.push(e)}}),a.divElements.push(f,m),a.menuHeight=m.offsetHeight,a.menuWidth=m.offsetWidth);let x={display:"block"};i+(a.menuWidth||0)>d?x.right=d-i-o-g+"px":x.left=i-g+"px",s+r+(a.menuHeight||0)>c&&n.alignOptions?.verticalAlign!=="top"?x.bottom=c-s-g+"px":x.top=s+r-g+"px",L(m,x),L(l.renderTo,{overflow:""}),L(l.container,{overflow:""}),l.exporting&&(l.exporting.openMenu=!0),I(l,"exportMenuShown")}destroy(t){let e,i=t?t.target:this.chart,{divElements:s,events:o,svgElements:r}=this;r.forEach((t,s)=>{t&&(t.onclick=t.ontouchstart=null,i[e="cache-"+t.menuClassName]&&delete i[e],r[s]=t.destroy())}),r.length=0,this.group&&(this.group.destroy(),delete this.group),s.forEach(function(t,e){t&&(B(t.hideTimer),Y(t,"mouseleave"),s[e]=t.onmouseout=t.onmouseover=t.ontouchstart=t.onclick=null,O(t))}),s.length=0,o&&(o.forEach(function(t){t()}),o.length=0)}async downloadSVG(t,e){let i,s={svg:t,exportingOptions:e,exporting:this};if(I(tr.prototype,"downloadSVG",s),s.defaultPrevented)return;let{type:o,filename:r,scale:n,libURL:a}=tr.prepareImageOptions(e);if("application/pdf"===o)throw Error("Offline exporting logic for PDF type is not found.");if("image/svg+xml"===o){if(void 0!==ts.MSBlobBuilder){let e=new ts.MSBlobBuilder;e.append(t),i=e.getBlob("image/svg+xml")}else i=tr.svgToDataURL(t);M(i,r)}else{i=tr.svgToDataURL(t);try{tr.objectURLRevoke=!0;let t=await tr.imageToDataURL(i,n,o);M(t,r)}catch(c){if("No canvas found!"===c.message)throw c;if(t.length>1e8)throw Error("Input too long");let e=J.createElement("canvas"),i=e.getContext("2d"),s=t.match(/^<svg[^>]*\s{,1000}width\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),d=t.match(/^<svg[^>]*\s{0,1000}height\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/);if(i&&s&&d){let c=s[1]*n,p=d[1]*n;if(e.width=c,e.height=p,!ts.canvg){var l;tr.objectURLRevoke=!0,await (l=a+"canvg.js",new Promise((t,e)=>{let i=v.getElementsByTagName("head")[0],s=v.createElement("script");s.type="text/javascript",s.src=l,s.onload=()=>{t()},s.onerror=()=>{let t=`Error loading script ${l}`;(0,h.error)(t),e(Error(t))},i.appendChild(s)}))}ts.canvg.Canvg.fromString(i,t).start(),M(ts.navigator.msSaveOrOpenBlob?e.msToBlob():e.toDataURL(o),r)}}finally{if(tr.objectURLRevoke)try{to.revokeObjectURL(i)}catch{}}}}async exportChart(t,e){if((t=H(this.options,t)).local)await this.localExport(t,e||{});
1else{let i=await this.getSVGForExport(t,e);t.url&&await q.post(t.url,{filename:t.filename?t.filename.replace(/\//g,"-"):this.getFilename(),type:t.type,width:t.width,scale:t.scale,svg:i},t.fetchOptions)}}async fallbackToServer(t,e){!1===t.fallbackToExportServer?t.error?t.error(t,e):(0,h.error)(28,!0):"application/pdf"===t.type&&(t.local=!1,await this.exportChart(t))}getChartHTML(t){let e=this.chart;return t&&this.inlineStyles(),this.resolveCSSVariables(),e.container.querySelectorAll("canvas").forEach(function(t){let i=t.toDataURL("image/png"),s=t.parentNode,o=e.renderer.image(i,0,0,t.width,t.height);L(o.element,{width:t.style.width,height:t.style.height}),s.parentNode.insertBefore(o.element,s),s.remove()}),e.container.innerHTML}getFilename(){let t=this.chart.userOptions.title?.text,e=this.options.filename;return e?e.replace(/\//g,"-"):("string"==typeof t&&(e=t.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!e||e.length<5)&&(e="chart"),e)}getSVG(t,e){let i=this.chart,s,o,r=H(i.options,t);r.plotOptions=H(i.userOptions.plotOptions,t?.plotOptions),r.time=H(i.userOptions.time,t?.time);let n=C("div",void 0,{position:"absolute",top:"-9999em",width:i.chartWidth+"px",height:i.chartHeight+"px"},J.body),a=i.renderTo.style.width,l=i.renderTo.style.height,d=r.exporting?.sourceW
1idth||r.chart.width||/px$/.test(a)&&parseInt(a,10)||(r.isGantt?800:600),c=r.exporting?.sourceHeight||r.chart.height||/px$/.test(l)&&parseInt(l,10)||400;N(r.chart,{animation:!1,renderTo:n,forExport:!0,renderer:"SVGRenderer",width:d,height:c}),r.exporting&&(r.exporting.enabled=!1),delete r.data,r.series=[],i.series.forEach(function(t){(o=H(t.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:t.visible})).isInternal||r?.series?.push(o)});let p={};i.axes.forEach(function(t){t.userOptions.internalKey||(t.userOptions.internalKey=(0,h.uniqueKey)()),r&&!t.options.isInternal&&(p[t.coll]||(p[t.coll]=!0,r[t.coll]=[]),r[t.coll].push(H(t.userOptions,{visible:t.visible,type:t.type,uniqueNames:t.uniqueNames})))}),r.colorAxis=i.userOptions.colorAxis;let u=e=>{t&&["xAxis","yAxis","series"].forEach(function(i){t[i]&&e.update({[i]:t[i]})}),i.axes.forEach(function(i){let s=D(e.axes,t=>t.options.internalKey===i.userOptions.internalKey);if(s){var o;let e=i.getExtremes(),r=(F(o=t?.[i.coll]||{})?o:[o])[0],n="min"in r?r.min:e.userMin,a="max"in r?r.max:e.userMax;(void 0!==n&&n!==s.min||void 0!==a&&a!==s.max)&&s.setExtremes(n??void 0,a??void 0,!0,!1)}});let o=e.exporting;return o?.options.applyStyleSheets&&this.applyShadowDOMStyles(e),s=o?.getChartHTML(i.styledMode||r?.exporting?.applyStyleSheets)||"",I(i,"getSVG",{chartCopy:e}),s=tr.sanitizeSVG(s,r),r=void 0,e.destroy(),O(n),s};return e?new Promise(t=>new i.constructor(r||{},function(e){i.callback?.call(this,e),t(u(this))})):u(new i.constructor(r,i.callback))}applyShadowDOMStyles(t){let e=this.chart,i=[],s=e.container,o;for(;s&&(!(o=s.getRootNode())||"object"!=typeof o.host);)s=s.parentNode,o=null;o?.querySelectorAll("style").forEach(e=>{let s=e.cloneNode(!0);t.container.appendChild(s),i.push(s)}),T(e,"getSVG",()=>{i.forEach(t=>{t.remove()})})}async getSVGForExport(t,e){let i=this.options;
1return await this.getSVG(H({chart:{borderRadius:0}},i.chartOptions,e,{exporting:{sourceWidth:t?.sourceWidth||i.sourceWidth,sourceHeight:t?.sourceHeight||i.sourceHeight}}),!0)}inlineStyles(){let t,e=tr.inlineDenylist,i=tr.inlineAllowlist,s={},o=C("iframe",void 0,{width:"1px",height:"1px",visibility:"hidden"},J.body),r=o.contentWindow?.document;r&&r.body.appendChild(r.createElementNS(ti,"svg")),function o(n){let a,l,h,d,c,p,u={};if(r&&1===n.nodeType&&-1===tr.unstyledElements.indexOf(n.nodeName)){if(a=ts.getComputedStyle(n,null),l="svg"===n.nodeName?{}:ts.getComputedStyle(n.parentNode,null),!s[n.nodeName]){t=r.getElementsByTagName("svg")[0],h=r.createElementNS(n.namespaceURI,n.nodeName),t.appendChild(h);let e=ts.getComputedStyle(h,null),i={};for(let t in e)t.length<1e3&&"string"==typeof e[t]&&!/^\d+$/.test(t)&&(i[t]=e[t]);s[n.nodeName]=i,"text"===n.nodeName&&delete s.text.fill,t.removeChild(h)}for(let t in a)(Q||tt||te||Object.hasOwnProperty.call(a,t))&&function(t,o){if(d=c=!1,i.length){for(p=i.length;p--&&!c;)c=i[p].test(o);d=!c}for("transform"===o&&"none"===t&&(d=!0),p=e.length;p--&&!d;){if(o.length>1e3)throw Error("Input too long");d=e[p].test(o)||"function"==typeof t}!d&&(l[o]!==t||"svg"===n.nodeName)&&s[n.nodeName][o]!==t&&(tr.inlineToAttributes&&-1===tr.inlineToAttributes.indexOf(o)?u[o]=t:t&&n.setAttribute(tr.hyphenate(o),t))}(a[t],t);if(L(n,u),"svg"===n.nodeName&&n.setAttribute("stroke-width","1px"),"text"===n.nodeName)return;[].forEach.call(n.children||n.childNodes,o)}}(this.chart.container.querySelector("svg")),t.parentNode.removeChild(t),o.parentNode.removeChild(o)}async localExport(t,e){let i=this.chart,s,o,r=null,n;if(tt&&i.styledMode&&!tr.inlineAllowlist.length&&tr.inlineAllowlist.push(/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/,/^y$/),tt&&("application/pdf"===t.type||i.container.getElementsByTagName("image").length&&"image/svg+xml"!==t.type)||"application/pdf"===t.type&&[].some.call(i.container.getElementsByTagName("image"),function(t){let e=t.getAttribute("href");return""!==e&&"string"==typeof e&&0!==e.indexOf("data:")}))return void await this.fallbackToServer(t,Error("Image type not supported for this chart/browser."));let a=T(i,"getSVG",t=>{o=t.chartCopy.options,n=(s=t.chartCopy.container.cloneNode(!0))&&s.getElementsByTagName("image")||[]});try{let i;
1for(let i of(await this.getSVGForExport(t,e),n?Array.from(n):[]))if(r=i.getAttributeNS("http://www.w3.org/1999/xlink","href")){tr.objectURLRevoke=!1;let e=await tr.imageToDataURL(r,t?.scale||1,t?.type||"image/png");i.setAttributeNS("http://www.w3.org/1999/xlink","href",e)}else i.parentNode.removeChild(i);let a=s?.querySelector("svg");a&&!t.chartOptions?.chart?.style?.fontFamily&&await tr.inlineFonts(a);let l=(i=s?.innerHTML,tr.sanitizeSVG(i||"",o));if(l.indexOf("<foreignObject")>-1&&"image/svg+xml"!==t.type&&(tt||"application/pdf"===t.type))throw Error("Image type not supported for charts with embedded HTML");return await this.downloadSVG(l,N({filename:this.getFilename()},t)),l}catch(e){await this.fallbackToServer(t,e)}finally{a()}}moveContainers(t){let e=this.chart,{scrollablePlotArea:i}=e;(i?[i.fixedDiv,i.scrollingContainer]:[e.container]).forEach(function(e){t.appendChild(e)})}print(){let t=this.chart;this.isPrinting||(tr.printingChart=t,te||this.beforePrint(),setTimeout(()=>{ts.focus(),ts.print(),te||setTimeout(()=>{t.exporting?.afterPrint()},1e3)},1))}render(){let t=this,{chart:e,options:i}=t,s=t?.isDirty||!t?.svgElements.length;t.buttonOffset=0,t.isDirty&&t.destroy(),s&&!1!==i.enabled&&(t.events=[],t.group||(t.group=e.renderer.g("exporting-group").attr({zIndex:3}).add()),W(i?.buttons,function(e){t.addButton(e)}),t.isDirty=!1)}resolveCSSVariables(){Array.from(this.chart.container.querySelectorAll("*")).forEach(t=>{["color","fill","stop-color","stroke"].forEach(e=>{let i=t.getAttribute(e);i?.includes("var(")&&t.setAttribute(e,getComputedStyle(t).getPropertyValue(e));let s=t.style?.[e];s?.includes("var(")&&(t.style[e]=getComputedStyle(t).getPropertyValue(e))})})}update(t,e){this.isDirty=!0,H(!0,this.options,t),X(e,!0)&&this.chart.redraw()}}tr.inlineAllowlist=[],tr.inlineDenylist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],tr.inlineToAttributes=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"],tr.loadEventDeferDelay=150*!!tt,tr.unstyledElements=["clipPath","defs","desc"],function(t){function e(t){let e=t.exporting;e&&(e.render(),T(t,"redraw",function(){this.exporting?.render()}),T(t,"destroy",function(){this.exporting?.destroy()}))}function i(){let e=this;e.options.exporting&&(e.exporting=new t(e,e.options.exporting),x.compose(e).navigation.addUpdate((t,i)=>{e.exporting&&(e.exporting.isDirty=!0,H(!0,e.options.navigation,t),X(i,!0)&&e.redraw())}))}function s({alignTo:t,key:e,textPxLength:i}){let o=this.options.exporting,{align:r,buttonSpacing:n=0,verticalAlign:a,width:l=0}=H(this.options.navigation?.buttonOptions,o?.buttons?.contextButton),h=t.width-i,d=l+n;(o?.enabled??!0)&&"title"===e&&"right"===r&&"top"===a&&h<2*d&&(h<d?t.width-=d:this.title?.alignValue!=="left"&&(t.x-=d-h/2))}t.compose=function(o,r){P.compose(r),U.compose(o),G(Z,"Exporting")&&(N(g().prototype,{exportChart:async function(t,e){await this.exporting?.exportChart(t,e)},getChartHTML:function(t){return this.exporting?.getChartHTML(t)},getFilename:function(){return this.exporting?.getFilename()},getSVG:function(t){return this.exporting?.getSVG(t,!1)},print:function(){return this.exporting?.print()}}),o.prototype.callbacks.push(e),T(o,"afterInit",i),T(o,"layOutTitle",s),te&&ts.matchMedia("print").addListener(function(e){t.printingChart&&(e.matches?t.printingChart.exporting?.beforePrint():t.printingChart.exporting?.afterPrint())}),$(A))}}(tr||(tr={}));let tn=d();tn.Exporting=tr,tn.HttpUtilities=tn.HttpUtilities||q,tn.ajax=tn.HttpUtilities.ajax,tn.getJSON=tn.HttpUtilities.getJSON,tn.post=tn.HttpUtilities.post,tr.compose(tn.Chart,tn.Renderer);let ta=d();return l.default})()},59704:function(t){var e;let i,s,o;i=(e="u"<typeof window?this:window)._Highcharts,s=e._Highcharts.SeriesRegistry,o=e._Highcharts.SVGElement,t.exports=(()=>{"use strict";var t={28:t=>{t.exports=o},512:t=>{t.exports=s},944:t=>{t.exports=i}},e={};function r(i){var s=e[i];if(void 0!==s)return s.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};r.d(n,{default:()=>N});var a=r(944),l=r.n(a),h=r(512),d=r.n(h);let{doc:c,win:p}=l();function u(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;l().Point&&t instanceof l().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let n=t.addEventListener;n&&n.call(t,e,i,!!l().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let a={fn:i,order:"number"==typeof s.order?s.order:1/0};return r[e].push(a),r[e].sort((t,e)=>
1t.order-e.order),function(){!function(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,v(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}(t,e,i)}}function g(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function f(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}let m=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]};function x(t){return b(t)&&"number"==typeof t.nodeType}function b(t,e){let i;return!!t&&"object"==typeof t&&(!e||"[object Array]"!==(i=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==i)}function y(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),v(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!b(i,!0)||(o=i?.constructor,b(i,!0)&&!x(i)&&o?.name&&"Object"!==o.name)||x(i)?t[s]=e[s]:t[s]=r(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let n=s.length;for(i=0;i<n;i++)o=r(o,s[i]);return o}function v(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function w(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}let{sankey:{prototype:{pointClass:M}}}=d().seriesTypes,k=class extends M{constructor(t,e,i){super(t,e,i),this.isNode||(this.dataLabelOnNull=!0,this.formatPrefix="link")}getSum(){return 1}setNodeColumn(){super.setNodeColumn();let t=this,e=t.getFromNode().fromNode;if(null==t.options.column&&0!==t.linksTo.length&&e&&"hanging"===e.options.layout){let i=-1,s;t.options.layout=w(t.options.layout,"hanging"),t.hangsFrom=e,m(e.linksFrom,(e,s)=>{let o=e.toNode===t;return o&&(i=s),o});for(let o=0;o<e.linksFrom.length;++o)(s=e.linksFrom[o]).toNode.id===t.id?o=e.linksFrom.length:i+=function t(e){let i=e.linksFrom.length;return e.linksFrom.forEach(e=>{e.id===e.toNode.linksTo[0].id?i+=t(e.toNode):i--}),i}(s.toNode);t.column=(t.column||0)+i}}};var A=r(28),P=r.n(A);let{deg2rad:E}=l();function S(t,e){e=y(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);let i=this.renderer.url,s=this.text||this,o=s.textPath,{attributes:r,enabled:n}=e;if(t=t||o&&o.path,o&&o.undo(),t&&n){let e=u(s,"afterModifyTree",e=>{if(t&&n){let o=t.attr("id");o||t.attr("id",o=(0,a.uniqueKey)());let n={x:0,y:0};null!=r.dx&&(n.dx=r.dx,delete r.dx),null!=r.dy&&(n.dy=r.dy,delete r.dy),s.attr(n),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let l=e.nodes.slice(0);e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:f(r,{"text-anchor":r.textAnchor,href:`${i}#${o}`}),children:l}}});s.textPath={path:t,undo:e}}else s.attr({dx:0,dy:0}),delete s.textPath;return this.added&&(s.textCache="",this.renderer.buildText(s)),this}function T(t){let e=t.bBox,i=this.element?.querySelector("textPath");if(i){let t=[],{b:s,h:o}=this.renderer.fontMetrics(this.element),r=o-s,n=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),a=i.innerHTML.replace(n,"").split(/<tspan class="highcharts-br"[^>]*>/),l=a.length,h=(t,e)=>{let{x:o,y:n}=e,a=(i.getRotationOfChar(t)-90)*E,l=Math.cos(a),h=Math.sin(a);return[[o-r*l,n-r*h],[o+s*l,n+s*h]]};for(let e=0,s=0;s<l;s++){let o=a[s].length;for(let r=0;r<o;r+=5)try{let o=e+r+s,[n,a]=h(o,i.getStartPositionOfChar(o));0===r?(t.push(a),t.push(n)):(0===s&&t.unshift(a),s===l-1&&t.push(n))}catch{break}e+=o-1;try{let o=e+s,r=i.getEndPositionOfChar(o),[n,a]=h(o,r);t.unshift(a),t.unshift(n)}catch{break}}t.length&&t.push(t[0].slice()),e.polygon=t}return e}function C(t){let e=t.labelOptions,i=t.point,s=e[i.formatPrefix+"TextPath"]||e.textPath;s&&!e.useHTML&&(this.setTextPath(i.getDataLabelPath?.(this)||i.graphic,s),i.dataLabelPath&&!s.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy()))}let{sankey:L}=d().seriesTypes;({compose:function(t){u(t,"afterGetBBox",T),u(t,"beforeAddingDataLabel",C);let e=t.prototype;e.setTextPath||(e.setTextPath=S)}}).compose(P());class O extends L{alignDataLabel(t,e,i){let s=t.shapeArgs,o=e.text;if(i.useHTML&&s){var r,n;let t=this.options.borderWidth+2*this.options.dataLabels.padding,i=s.width||0,a=s.height||0;this.chart.inverted&&(i=a,a=s.width||0),a-=t,i-=t,o.foreignObject?.attr({x:0,y:0,width:i,height:a}),r=o.element.parentNode,n={width:i+"px",height:a+"px"},f(r.style,n),f(o.element.style,{left:0,top:0,width:"100%",height:"100%",overflow:"hidden"}),e.getBBox=()=>({width:i,height:a,x:0,y:0}),e.width=i,e.height=a}super.alignDataLabel.apply(this,arguments)}createNode(t){let e=super.createNode.call(this,t);return e.getSum=()=>1,e}pointAttribs(t,e){let i=L.prototype.pointAttribs.call(this,t,e),s=t.isNode?t.level:t.fromNode.level,o=this.mapOptionsToLevel[s||0]||{},r=t.options,n=o.states&&o.states[e]||{},a=w(n.borderRadius,r.borderRadius,o.borderRadius,this.options.borderRadius),l=w(n.linkColor,r.linkColor,o.linkColor,this.options.linkColor,n.link&&n.link.color,r.link&&r.link.color,o.link&&o.link.color,this.options.link&&this.options.link.color),h=w(n.linkLineWidth,r.linkLineWidth,o.linkLineWidth,this.options.linkLineWidth,n.link&&n.link.lineWidth,r.link&&r.link.lineWidth,o.link&&o.link.lineWidth,this.options.link&&this.options.link.lineWidth),d=w(n.linkOpacity,r.linkOpacity,o.linkOpacity,this.options.linkOpacity,n.link&&n.link.linkOpacity,r.link&&r.link.linkOpacity,o.link&&o.link.linkOpacity,this.options.link&&this.options.link.linkOpacity);return t.isNode?"number"==typeof a&&!isNaN(a)&&a<1/0&&a>-1/0&&(i.r=a):(i.stroke=l,i["stroke-width"]=h,i.opacity=d,delete i.fill),i}translateLink(t){let e=this.chart,i=this.options,s=t.fromNode,o=t.toNode,r=w(i.linkLineWidth,i.link.lineWidth,0),n=w(i.link.offset,.5),a=w(t.o
1ptions.link&&t.options.link.type,i.link.type);if(s.shapeArgs&&o.shapeArgs){let l=i.hangingIndent,h="right"===i.hangingSide,d=o.options.offset,c=/%$/.test(d)&&parseInt(d,10),p=e.inverted,u=g((s.shapeArgs.x||0)+(s.shapeArgs.width||0),r),f=g((s.shapeArgs.y||0)+(s.shapeArgs.height||0)/2,r),m=g(o.shapeArgs.x||0,r),x=g((o.shapeArgs.y||0)+(o.shapeArgs.height||0)/2,r),b;if(p&&(u-=s.shapeArgs.width||0,m+=o.shapeArgs.width||0),b=this.colDistance?g(m+(p?1:-1)*(this.colDistance-this.nodeWidth)/2,r):g((m+u)/2,r),c&&(c>=50||c<=-50)&&(b=m=g(m+(p?-.5:.5)*(o.shapeArgs.width||0),r),x=o.shapeArgs.y||0,c>0&&(x+=o.shapeArgs.height||0)),o.hangsFrom===s&&(e.inverted?(f=h?g((s.shapeArgs.y||0)+l/2,r):g((s.shapeArgs.y||0)+(s.shapeArgs.height||0)-l/2,r),x=h?(o.shapeArgs.y||0)+l/2:(o.shapeArgs.y||0)+(o.shapeArgs.height||0)):f=g((s.shapeArgs.y||0)+l/2,r),b=m=g((o.shapeArgs.x||0)+(o.shapeArgs.width||0)/2,r)),t.plotX=b,t.plotY=(f+x)/2,t.shapeType="path","straight"===a)t.shapeArgs={d:[["M",u,f],["L",m,x]]};else if("curved"===a){let e=Math.abs(m-u)*n*(p?-1:1);t.shapeArgs={d:[["M",u,f],["C",u+e,f,m-e,x,m,x]]}}else t.shapeArgs={d:function(t,e){let i=[];for(let s=0;s<t.length;s++){let o=t[s][1],r=t[s][2];if("number"==typeof o&&"number"==typeof r)if(0===s)i.push(["M",o,r]);else if(s===t.length-1)i.push(["L",o,r]);else if(e){let n=t[s-1],a=t[s+1];if(n&&a){let t=n[1],s=n[2],l=a[1],h=a[2];if("number"==typeof t&&"number"==typeof l&&"number"==typeof s&&"number"==typeof h&&t!==l&&s!==h){let n=t<l?1:-1,a=s<h?1:-1;i.push(["L",o-n*Math.min(Math.abs(o-t),e),r-a*Math.min(Math.abs(r-s),e)],["C",o,r,o,r,o+n*Math.min(Math.abs(o-l),e),r+a*Math.min(Math.abs(r-h),e)])}}}else i.push(["L",o,r])}return i}([["M",u,f],["L",b,f],["L",b,x],["L",m,x]],w(i.linkRadius,i.link.radius))};t.dlBox={x:(u+m)/2,y:(f+x)/2,height:r,width:0}}}translateNode(t,e){super.translateNode(t,e);let i=this.chart,s=this.options,o=Math.max(Math.round(t.getSum()*this.translationFactor),s.minLinkWidth||0),r="right"===s.hangingSide,n=s.hangingIndent||0,a=s.hangingIndentTranslation,l=s.minNodeLength||10,h=Math.round(this.nodeWidth),d=t.shapeArgs,c=i.inverted?-1:1,p=t.hangsFrom;if(p)if("cumulative"===a)for(d.height-=n,i.inverted&&!r&&(d.y-=c*n);p;)d.y+=(r?1:c)*n,p=p.hangsFrom;else if("shrink"===a)for(;p&&d.height>n+l;)d.height-=n,(!i.inverted||r)&&(d.y+=n),p=p.hangsFrom;else d.height-=n,(!i.inverted||r)&&(d.y+=n);t.nodeHeight=i.inverted?d.width:d.height,t.shapeArgs&&!t.hangsFrom&&(t.shapeArgs=y(t.shapeArgs,{x:(t.shapeArgs.x||0)+h/2-(t.shapeArgs.width||0)/2,y:(t.shapeArgs.y||0)+o/2-(t.shapeArgs.height||0)/2}))}drawDataLabels(){let t=this.options.dataLabels;if(t.linkTextPath&&t.linkTextPath.enabled)for(let t of this.points)t.options.dataLabels=y(t.options.dataLabels,{useHTML:!1});super.drawDataLabels()}}O.defaultOptions=y(L.defaultOptions,{borderColor:"#666666",borderRadius:3,link:{color:"#666666",lineWidth:1,radius:10,type:"orthogonal"},borderWidth:1,dataLabels:{nodeFormatter:function(){let t={width:"100%",height:"100%",display:"flex","flex-direction":"row","align-items":"center","justify-content":"center"},e={"max-height":"100%","border-radius":"50%"},i={width:"100%",padding:0,"text-align":"center","white-space":"normal"};function s(t){return Object.keys(t).reduce(function(e,i){return e+i+":"+t[i]+";"},'style="')+'"'}let{description:o,image:r,title:n}=this.point;r&&(e["max-width"]="30%",i.width="70%"),this.series.chart.renderer.forExport&&(t.display="block",i.position="absolute",i.left=r?"30%":0,i.top=0);let a="<div "+s(t)+">";return r&&(a+='<img src="'+r+'" '+s(e)+">"),a+="<div "+s(i)+">",this.point.name&&(a+="<h4 "+s({margin:0})+">"+this.point.name+"</h4>"),n&&(a+="<p "+s({margin:0})+">"+(n||"")+"</p>"),o&&(a+="<p "+s({opacity:.75,margin:"5px"})+">"+o+"</p>"),a+="</div></div>"},style:{fontWeight:"normal",fontSize:"0.9em",textAlign:"left"},useHTML:!0,linkTextPath:{attributes:{startOffset:"95%",textAnchor:"end"}}},hangingIndent:20,hangingIndentTranslation:"inherit",hangingSide:"left",minNodeLength:10,nodeWidth:50,tooltip:{nodeFormat:"{point.name}<br>{point.title}<br>{point.description}"}}),f(O.prototype,{pointClass:k}),d().registerSeriesType("organization",O);let N=l();return n.default})()},78118:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});let s=(0,i(46775).A)("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]])},79093:function(t){var e;let i,s,o,r,n,a;i=(e="u"<typeof window?this:window)._Highcharts,s=e._Highcharts.Axis,o=e._Highcharts.Color,r=e._Highcharts.SeriesRegistry,n=e._Highcharts.SVGElement,a=e._Highcharts.SVGRenderer,t.exports=(()=>{"use strict";var t,e,l,h,d={28:t=>{t.exports=n},512:t=>{t.exports=r},532:t=>{t.exports=s}
1,540:t=>{t.exports=a},620:t=>{t.exports=o},944:t=>{t.exports=i}},c={};function p(t){var e=c[t];if(void 0!==e)return e.exports;var i=c[t]={exports:{}};return d[t](i,i.exports,p),i.exports}p.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return p.d(e,{a:e}),e},p.d=(t,e)=>{for(var i in e)p.o(e,i)&&!p.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},p.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var u={};p.d(u,{default:()=>th});var g=p(944),f=p.n(g),m=p(532),x=p.n(m),b=p(620),y=p.n(b);let{doc:v,win:w}=f();function M(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;f().Point&&t instanceof f().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let n=t.addEventListener;n&&n.call(t,e,i,!!f().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let a={fn:i,order:"number"==typeof s.order?s.order:1/0};return r[e].push(a),r[e].sort((t,e)=>t.order-e.order),function(){!function(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,N(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}(t,e,i)}}function k(t,e,i){return t>e?t<i?t:i:e}function A(t){return null!=t}function P(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function E(t,e,i,s){if(i=i||{},v?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==f())){let s=v.createEvent("Events");s.initEvent(e,!0,!0),i=P(s,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||P(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let s=[],o=t,r=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);r&&s.sort((t,e)=>t.order-e.order),s.forEach(e=>{!1===e.fn.call(t,i,t)&&i.preventDefault()})}s&&!i.defaultPrevented&&s.call(t,i)}function S(t){return L(t)&&"number"==typeof t.nodeType}function T(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function C(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function L(t,e){return!!t&&"object"==typeof t&&(!e||!C(t))}function O(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),N(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!L(i,!0)||(o=i?.constructor,L(i,!0)&&!S(i)&&o?.name&&"Object"!==o.name)||S(i)?t[s]=e[s]:t[s]=r(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let n=s.length;for(i=0;i<n;i++)o=r(o,s[i]);return o}function N(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function I(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function D(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}Array.prototype.find;let{parse:B}=y();(t=e||(e={})).initDataClasses=function(t){let e=this.chart,i=this.legendItem=this.legendItem||{},s=this.options,o=t.dataClasses||[],r,n,a=e.options.chart.colorCount,l=0,h;this.dataClasses=n=[],i.labels=[];for(let t=0,i=o.length;t<i;++t)r=O(r=o[t]),n.push(r),(e.styledMode||!r.color)&&("category"===s.dataClassColor?(e.styledMode||(a=(h=e.options.colors||[]).length,r.color=h[l]),r.colorIndex=l,++l===a&&(l=0)):r.color=B(s.minColor).tweenTo(B(s.maxColor),i<2?.5:t/(i-1)))},t.initStops=function(){let t=this.options,e=this.stops=t.stops||[[0,t.minColor||""],[1,t.maxColor||""]];for(let t=0,i=e.length;t<i;++t)e[t].color=B(e[t][1])},t.normalizedValue=function(t){let e=this.max||0,i=this.min||0;return this.logarithmic&&(t=this.logarithmic.log2lin(t)),1-(e-t)/(e-i||1)},t.toColor=function(t,e){let i,s,o,r,n,a,l=this.dataClasses,h=this.stops;if(l){for(a=l.length;a--;)if(s=(n=l[a]).from,o=n.to,(void 0===s||t>=s)&&(void 0===o||t<=o)){r=n.color,e&&(e.dataClass=a,e.colorIndex=n.colorIndex);break}}else{for(i=this.normalizedValue(t),a=h.length;a--&&!(i>h[a][0]););s=h[a]||h[a+1],i=1-((o=h[a+1]||s)[0]-i)/(o[0]-s[0]||1),r=s.color.tweenTo(o.color,i)}return r};let R=e,{parse:F}=y();!function(t){let e;function i(){let{userOptions:t}=this;if(this.colorAxis=[],t.colorAxis){var i;t.colorAxis=C(i=t.colorAxis)?i:[i],t.colorAxis.map(t=>new e(this,t))}}function s(t){let e=this.chart.colorAxis||[],i=e=>{let i=t.allItems.indexOf(e);-1!==i&&(this.destroyItem(t.allItems[i]),t.allItems.splice(i,1))},s=[],o,r;for(e.forEach(function(t){o=t.options,o?.showInLegend&&(o.dataClasses&&o.visible?s=s.concat(t.getDataClassLegendSymbols()):o.visible&&s.push(t),t.series.forEac
1h(function(t){(!t.options.showInLegend||o.dataClasses)&&("point"===t.options.legendType?t.points.forEach(function(t){i(t)}):i(t))}))}),r=s.length;r--;)t.allItems.unshift(s[r])}function o(t){t.visible&&t.item.legendColor&&t.item.legendItem.symbol.attr({fill:t.item.legendColor})}function r(t){this.chart.colorAxis?.forEach(e=>{e.update({},t.redraw)})}function n(){(this.chart.colorAxis?.length||this.colorAttribs)&&this.translateColors()}function a(){let t=this.axisTypes;t?-1===t.indexOf("colorAxis")&&t.push("colorAxis"):this.axisTypes=["colorAxis"]}function l(t){let e=this,i=t?"show":"hide";e.visible=e.options.visible=!!t,["graphic","dataLabel"].forEach(function(t){e[t]&&e[t][i]()}),this.series.buildKDTree()}function h(){let t=this,e=this.getPointsCollection(),i=this.options.nullColor,s=this.colorAxis,o=this.colorKey;e.forEach(e=>{let r=e.getNestedProperty(o),n=e.options.color||(e.isNull||null===e.value?i:s&&void 0!==r?s.toColor(r,e):e.color||t.color);n&&e.color!==n&&(e.color=n,"point"===t.options.legendType&&e.legendItem&&e.legendItem.label&&t.chart.legend.colorizeItem(e,e.visible))})}function d(){this.elem.attr("fill",F(this.start).tweenTo(F(this.end),this.pos),void 0,!0)}function c(){this.elem.attr("stroke",F(this.start).tweenTo(F(this.end),this.pos),void 0,!0)}t.compose=function(t,p,u,g,f){let m,x=p.prototype,b=u.prototype,y=f.prototype;x.collectionsWithUpdate.includes("colorAxis")||(e=t,x.collectionsWithUpdate.push("colorAxis"),x.collectionsWithInit.colorAxis=[x.addColorAxis],M(p,"afterCreateAxes",i),m=p.prototype.createAxis,p.prototype.createAxis=function(t,i){if("colorAxis"!==t)return m.apply(this,arguments);let s=new e(this,O(i.axis,{index:this[t].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(t=>{t.series=[]}),this.series.forEach(t=>{t.bindAxes(),t.isDirtyData=!0}),I(i.redraw,!0)&&this.redraw(i.animation),s},b.fillSetter=d,b.strokeSetter=c,M(g,"afterGetAllItems",s),M(g,"afterColorizeItem",o),M(g,"afterUpdate",r),P(y,{optionalAxis:"colorAxis",translateColors:h}),P(y.pointClass.prototype,{setVisible:l}),M(f,"afterTranslate",n,{order:1}),M(f,"bindAxes",a))},t.pointSetVisible=l}(l||(l={}));let z=l;var H=p(512),W=p.n(H);let{defaultOptions:X}=f(),{series:G}=W();X.colorAxis=O(X.xAxis,{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,title:{margin:5},showInLegend:!0});class Y extends x(){static compose(t,e,i,s){z.compose(Y,t,e,i,s)}constructor(t,e){super(t,e),this.coll="colorAxis",this.visible=!0,this.init(t,e)}init(t,e){let i=t.options.legend||{},s=e.layout?"vertical"!==e.layout:"vertical"!==i.layout;this.side=e.side||s?2:1,this.reversed=e.reversed,this.opposite=!s,super.init(t,e,"colorAxis"),this.userOptions=e,C(t.userOptions.colorAxis)&&(t.userOptions.colorAxis[this.index]=e),e.dataClasses&&this.initDataClasses(e),this.initStops(),this.horiz=s,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(t){let e=this.chart.options.legend||{},i=X.colorAxis,s=O("vertical"!==(t.layout||e.layout||i.layout)?{title:{rotation:0}}:{title:{rotation:90,margin:10}},i,t,{showEmpty:!1,visible:this.chart.options.legend.enabled&&!1!==t.visible});super.setOptions(s),this.options.crosshair=this.options.marker}setAxisSize(){let t=this.chart,e=this.legendItem?.symbol,{width:i,height:s}=this.getSize();e&&(this.left=+e.attr("x"),this.top=+e.attr("y"),this.width=i=+e.attr("width"),this.height=s=+e.attr("height"),this.right=t.chartWidth-this.left-i,this.bottom=t.chartHeight-this.top-s,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?i:s)||Y.defaultLegendLength}getOffset(){let t=this.legendItem?.group,e=this.chart.axisOffset[this.side];if(t){this.axisParent=t,super.getOffset();let i=this.chart.legend;i.allItems.forEach(function(t){t instanceof Y&&t.drawLegendSymbol(i,t)}),i.render(),this.chart.getMargins(!0),this.added||(this.added=!0),this.labelLeft=0,this.labelRight=this.width,this.chart.axisOffset[this.side]=e}}
1setLegendColor(){let t=this.horiz,e=this.reversed,i=+!!e,s=+!e,o=t?[i,0,s,0]:[0,s,0,i];this.legendColor={linearGradient:{x1:o[0],y1:o[1],x2:o[2],y2:o[3]},stops:this.stops}}drawLegendSymbol(t,e){let i=e.legendItem||{},s=t.padding,o=t.options,r=this.options.labels,n=I(o.itemDistance,10),a=this.horiz,{width:l,height:h}=this.getSize(),d=I(o.labelPadding,a?16:30);this.setLegendColor();let c=0,p=0;if(this.options.title?.text&&!this.axisTitle){this.axisGroup||(this.axisParent=i.group,this.createGroups());let t=this.len,e=this.top,s=this.left,o=this.width;this.len=a?l:h,this.top=0,this.left=0,this.width=l,this.addTitle(!0),this.len=t,this.top=e,this.left=s,this.width=o}if(this.axisTitle){let t=this.axisTitle.getBBox();c=t.height,p=t.width}let u=this.options.title||{},g=this.axisTitle?u.margin??0:0,f=a?c+g:0;i.symbol||(i.symbol=this.chart.renderer.symbol("roundedRect").attr({r:o.symbolRadius??3,zIndex:1}).add(i.group)),i.symbol.attr({x:0,y:(t.baseline||0)-11+f,width:l,height:h}),a?(i.labelWidth=Math.max(l+s+n,p||0),i.labelHeight=h+s+d+c+g):(i.labelWidth=l+s+(r.x??r.distance??0)+(this.maxLabelLength||0)+(p||0)+g,i.labelHeight=Math.max(h+s,c||0))}getTitlePosition(t){let e=super.getTitlePosition(t),i=this.options.title?.margin??0;if(this.horiz&&t)e.y=this.top-i;else if(!this.horiz&&t){let t=this.options.labels||{},s=t.x??t.distance??0;e.x=this.left+this.width+s+(this.maxLabelLength||0)+i}return e}setState(t){this.series.forEach(function(e){e.setState(t)})}setVisible(){}getSeriesExtremes(){let t=this.series,e,i,s,o,r=t.length;for(this.dataMin=1/0,this.dataMax=-1/0;r--;){for(let n of(i=(o=t[r]).colorKey=I(o.options.colorKey,o.colorKey,o.pointValKey,o.zoneAxis,"y"),s=o[i+"Min"]&&o[i+"Max"],[i,"value","y"]))if((e=o.getColumn(n)).length)break;if(s)o.minColorValue=o[i+"Min"],o.maxColorValue=o[i+"Max"];else{let t=G.prototype.getExtremes.call(o,e);o.minColorValue=t.dataMin,o.maxColorValue=t.dataMax}A(o.minColorValue)&&A(o.maxColorValue)&&(this.dataMin=Math.min(this.dataMin,o.minColorValue),this.dataMax=Math.max(this.dataMax,o.maxColorValue)),s||G.prototype.applyExtremes.call(o)}}drawCrosshair(t,e){let i,s=this.legendItem||{}
1,o=e?.plotX,r=e?.plotY,n=this.pos,a=this.len;e&&((i=this.toPixels(e.getNestedProperty(e.series.colorKey)))<n?i=n-2:i>n+a&&(i=n+a+2),e.plotX=i,e.plotY=this.len-i,super.drawCrosshair(t,e),e.plotX=o,e.plotY=r,this.cross&&!this.cross.addedToColorAxis&&s.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(s.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!=typeof this.crosshair||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(t){let e=this.left,i=t.translatedValue,s=this.top;return T(i)?this.horiz?[["M",i-4,s-6],["L",i+4,s-6],["L",i,s],["Z"]]:[["M",e,i],["L",e-6,i+6],["L",e-6,i-6],["Z"]]:super.getPlotLinePath(t)}update(t,e){let i=this.chart.legend;this.series.forEach(t=>{t.isDirtyData=!0}),(t.dataClasses&&i.allItems||this.dataClasses)&&this.destroyItems(),super.update(t,e),this.legendItem?.label&&(this.setLegendColor(),i.colorizeItem(this,!0))}destroyItems(){let t=this.chart,e=this.legendItem||{};if(e.label)t.legend.destroyItem(this);else if(e.labels)for(let i of e.labels)t.legend.destroyItem(i);t.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(t){this.destroyItems(),super.remove(t)}getDataClassLegendSymbols(){let t,e=this,i=e.chart,s=e.legendItem&&e.legendItem.labels||[],o=i.options.legend,r=I(o.valueDecimals,-1),n=I(o.valueSuffix,""),a=t=>e.series.reduce((e,i)=>(e.push(...i.points.filter(e=>e.dataClass===t)),e),[]);return s.length||e.dataClasses.forEach((o,l)=>{let h=o.from,d=o.to,{numberFormatter:c}=i,p=!0;t="",void 0===h?t="< ":void 0===d&&(t="> "),void 0!==h&&(t+=c(h,r)+n),void 0!==h&&void 0!==d&&(t+=" - "),void 0!==d&&(t+=c(d,r)+n),s.push(P({chart:i,name:t,options:{},drawLegendSymbol:G.prototype.drawLegendSymbol,visible:!0,isDataClass:!0,setState:t=>{for(let e of a(l))e.setState(t)},setVisible:function(){this.visible=p=e.visible=!p;let t=[];for(let e of a(l))e.setVisible(p),e.hiddenInDataClass=!p,-1===t.indexOf(e.series)&&t.push(e.series);i.legend.colorizeItem(this,p),t.forEach(t=>{E(t,"afterDataClassLegendClick")})}},o))}),s}getSize(){let{chart:t,horiz:e}=this,{height:i,width:s}=this.options,{legend:o}=t.options;return{width:I(A(s)?D(s,t.chartWidth):void 0,o?.symbolWidth,e?Y.defaultLegendLength:12),height:I(A(i)?D(i,t.chartHeight):void 0,o?.symbolHeight,e?12:Y.defaultLegendLength)}}}Y.defaultLegendLength=200,Y.keepProps=["legendItem"],P(Y.prototype,R),Array.prototype.push.apply(x().keepProps,Y.keepProps);let V=f();V.ColorAxis=V.ColorAxis||Y,V.ColorAxis.compose(V.Chart,V.Fx,V.Legend,V.Series);var j=p(28),U=p.n(j);let{column:{prototype:_}}=W().seriesTypes;var q=h||(h={});function K(t){let e=this.series,i=e.chart.renderer;this.moveToTopOnHover&&this.graphic&&(e.stateMarkerGraphic||(e.stateMarkerGraphic=new(U())(i,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),t?.state==="hover"?(this.graphic.attr({id:this.id}),e.stateMarkerGraphic.attr({href:`${i.url}#${this.id}`,visibility:"visible"})):e.stateMarkerGraphic.attr({href:""}))}q.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},q.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(t){let e={};return A(t.color)&&(!t.state||"normal"===t.state)&&(e[this.colorProp||"fill"]=t.color),e},pointAttribs:_.pointAttribs},q.compose=function(t){return M(t.prototype.pointClass,"afterSetState",K),t};let $=h,{scatter:{prototype:{pointClass:Z}}}=W().seriesTypes;class J extends Z{applyOptions(t,e){return(this.isNull||null===this.value)&&delete this.color,super.applyOptions(t,e),this.formatPrefix=this.isNull||null===this.value?"null":"point",this}getCellAttributes(){let t=this.series,e=t.options,i=(e.colsize||1)/2,s=(e.rowsize||1)/2,o=t.xAxis,r=t.yAxis,n=this.options.marker||t.options.marker,a=t.pointPlacementToXValue(),l=I(this.pointPadding,e.pointPadding,0),h={x1:k(Math.round(o.len-o.translate(this.x-i,!1,!0,!1,!0,-a)),-o.len,2*o.len),x2:k(Math.round(o.len-o.translate(this.x+i,!1,!0,!1,!0,-a)),-o.len,2*o.len),y1:k(Math.round(r.translate(this.y-s,!1,!0,!1,!0)),-r.len,2*r.len),y2:k(Math.round(r.translate(this.y+s,!1,
vendor: 6,358 bytes, line 1
1!0,!1,!0)),-r.len,2*r.len)};for(let t of[["width","x"],["height","y"]]){let e=t[0],i=t[1],s=i+"1",a=i+"2",d=Math.abs(h[s]-h[a]),c=n&&n.lineWidth||0,p=Math.abs(h[s]+h[a])/2,u=n&&n[e];if(A(u)&&u<d){let t=u/2+c/2;h[s]=p-t,h[a]=p+t}l&&(("x"===i&&o.reversed||"y"===i&&!r.reversed)&&(s=a,a=i+"1"),h[s]+=l,h[a]-=l)}return h}haloPath(t){if(!t)return[];let{x:e=0,y:i=0,width:s=0,height:o=0}=this.shapeArgs||{};return[["M",e-t,i-t],["L",e-t,i+o+t],["L",e+s+t,i+o+t],["L",e+s+t,i-t],["Z"]]}isValid(){return this.value!==1/0&&this.value!==-1/0}}P(J.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});var Q=p(540),tt=p.n(Q);let{doc:te}=f(),{series:ti,seriesTypes:{column:ts,scatter:to}}=W(),{prototype:{symbols:tr}}=tt(),{colorFromPoint:tn,getContext:ta}={colorFromPoint:function(t,e){let i=e.series.colorAxis;if(i){let s=i.toColor(t||0,e).split(")")[0].split("(")[1].split(",").map(t=>I(parseFloat(t),parseInt(t,10)));return s[3]=255*I(s[3],1),A(t)&&e.visible||(s[3]=0),s}return[0,0,0,0]},getContext:function(t){let{canvas:e,context:i}=t;return e&&i?.clearRect?(i.clearRect(0,0,e.width,e.height),i):(t.canvas=te.createElement("canvas"),t.context=t.canvas.getContext("2d",{willReadFrequently:!0})||void 0,t.context)}};class tl extends to{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let t=this,e=t.options,i=e.interpolation,s=e.marker||{};if(i){let{image:e,chart:i,xAxis:s,yAxis:o}=t,{reversed:r=!1,len:n}=s,{reversed:a=!1,len:l}=o,h={width:n,height:l};if(!e||t.isDirtyData||t.isDirtyCanvas){let n=ta(t),{canvas:l,options:{colsize:d=1,rowsize:c=1},points:p,points:{length:u}}=t,g=i.colorAxis&&i.colorAxis[0];if(l&&n&&g){let{min:g,max:f}=s.getExtremes(),{min:m,max:x}=o.getExtremes(),b=f-g,y=x-m,v=Math.round(b/d/8*8),w=Math.round(y/c/8*8),[M,k]=[[v,v/b,r,"ceil"],[w,w/y,!a,"floor"]].map(([t,e,i,s])=>i?i=>Math[s](t-e*i):t=>Math[s](e*t)),A=l.width=v+1,P=A*(l.height=w+1),E=(u-1)/P,S=new Uint8ClampedArray(4*P),T=(t,e)=>4*Math.ceil(A*k(e-m)+M(t-g));t.buildKDTree();for(let t=0;t<P;t++){let e=p[Math.ceil(E*t)],{x:i,y:s}=e;S.set(tn(e.value,e),T(i,s))}n.putImageData(new ImageData(S,A),0,0),e?e.attr({...h,href:l.toDataURL("image/png",1)}):(t.directTouch=!1,t.image=i.renderer.image(l.toDataURL("image/png",1)).attr(h).add(t.group))}t.isDirtyCanvas=!1}else(e.width!==n||e.height!==l)&&e.attr(h)}else(s.enabled||t._hasPointMarkers)&&(ti.prototype.drawPoints.call(t),t.points.forEach(e=>{e.graphic&&(e.graphic[t.chart.styledMode?"css":"animate"](t.colorAttribs(e)),null===e.value&&e.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:t,dataMax:e}=ti.prototype.getExtremes.call(this,this.getColumn("value"));return T(t)&&(this.valueMin=t),T(e)&&(this.valueMax=e),ti.prototype.getExtremes.call(this)}getValidPoints(t,e){return ti.prototype.getValidPoints.call(this,t,e,!0)}hasData(){return!!this.dataTable.rowCount}init(){super.init.apply(this,arguments);let t=this.options;t.pointRange=I(t.pointRange,t.colsize||1),this.yAxis.axisPointRange=t.rowsize||1,tr.ellipse=tr.circle,t.marker&&T(t.borderRadius)&&(t.marker.r=t.borderRadius);let e=this.canvas=document.createElement("canvas");e&&(this.context=e?.getContext("webgpu"))}markerAttribs(t,e){let i=t.shapeArgs||{};if(t.hasImage)return{x:t.plotX,y:t.plotY};if(e&&"normal"!==e){let s=t.options.marker||{},o=this.options.marker||{},r=o.states?.[e]||{},n=s.states?.[e]||{},a=(n.width||r.width||i.width||0)+(n.widthPlus||r.widthPlus||0),l=(n.height||r.height||i.height||0)+(n.heightPlus||r.heightPlus||0);return{x:(i.x||0)+((i.width||0)-a)/2,y:(i.y||0)+((i.height||0)-l)/2,width:a,height:l}}return i}pointAttribs(t,e){let i=ti.prototype.pointAttribs.call(this,t,e),s=this.options||{},o=this.chart.options.plotOptions||{},r=o.series||{},n=o.heatmap||{},a=t?.options.borderColor||s.borderColor||n.borderColor||r.borderColor,l=t?.options.borderWidth||s.borderWidth||n.borderWidth||r.borderWidth||i["stroke-width"];if(i.stroke=t?.marker?.lineColor||s.marker?.lineColor||a||this.color,i["stroke-width"]=l,e&&"normal"!==e){let o=O(s.states?.[e],s.marker?.states?.[e],t?.options.marker?.states?.[e]||{});i.fill=o.color||y().parse(i.fill).brighten(o.brightness||0).get(),i.stroke=o.lineColor||i.stroke}return i}translate(){let{borderRadius:t,marker:e}=this.options,i=e?.symbol||"rect",s=tr[i]?i:"rect",o=-1!==["circle","square"].indexOf(s);for(let e of(this.generatePoints(),this.points)){let r=e.getCellAttributes(),n=Math.min(r.x1,r.x2),a=Math.min(r.y1,r.y2),l=Math.max(Math.abs(r.x2-r.x1),0),h=Math.max(Math.abs(r.y2-r.y1),0);if(e.hasImage=0===(e.marker?.symbol||i||"").indexOf("url"),o){let t=Math.abs(l-h);n=Math.min(r.x1,r.x2)+(l<h?0:t/2),a=Math.min(r.y1,r.y2)+(l<h?t/2:0),l=h=Math.min(l,h)}e.hasImage&&(e.marker={width:l,height:h}),e.plotX=e.clientX=(r.x1+r.x2)/2,e.plotY=(r.y1+r.y2)/2,e.shapeType="path",e.shapeArgs=O(!0,{x:n,y:a,width:l,height:h},{d:tr[s](n,a,l,h,{r:T(t)?t:0})})}E(this,"afterTranslate")}}tl.defaultOptions=O(to.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,interpolation:!1,nullColor:"#f7f7f7",dataLabels:{formatter:function(){let{numberFormatter:t}=this.series.chart,{value:e}=this.point;return T(e)?t(e,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:"allow",padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}),M(tl,"afterDataClassLegendClick",function(){this.isDirtyCanvas=!0,this.drawPoints(),this.options.enableMouseTracking&&this.drawTracker()}),P(tl.prototype,{axisTypes:$.seriesMembers.axisTypes,colorKey:$.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:$.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:J,specialGroup:"group",trackerGroups:$.seriesMembers.trackerGroups,alignDataLabel:ts.prototype.alignDataLabel,colorAttribs:$.seriesMembers.colorAttribs,getSymbol:ti.prototype.getSymbol}),$.compose(tl),W().registerSeriesType("heatmap",tl);let th=f();return u.default})()},81321:(t,e,i)=>{"use strict";var s;i.d(e,{eq:()=>o});let o={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invali
1d_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};s||(s={})},90749:function(t){var e;let i,s,o;i=(e="u"<typeof window?this:window)._Highcharts,s=e._Highcharts.AST,o=e._Highcharts.Chart,t.exports=(()=>{"use strict";var t,e={660:t=>{t.exports=s},944:t=>{t.exports=i},960:t=>{t.exports=o}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var s=r[t]={exports:{}};return e[t](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};n.d(a,{default:()=>O});var l=n(944),h=n.n(l);let{isSafari:d,win:c,win:{document:p}}=h(),u=c.URL||c.webkitURL||c;function g(t){let e=t.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(e&&e.length>3&&c.atob&&c.ArrayBuffer&&c.Uint8Array&&c.Blob&&u.createObjectURL){let t=c.atob(e[3]),i=new c.ArrayBuffer(t.length),s=new c.Uint8Array(i);for(let e=0;e<s.length;++e)s[e]=t.charCodeAt(e);return u.createObjectURL(new c.Blob([s],{type:e[1]}))}}function f(t,e){let i=c.navigator,s=p.createElement("a");if("string"!=typeof t&&!(t instanceof String)&&i.msSaveOrOpenBlob)return void i.msSaveOrOpenBlob(t,e);if(t=""+t,i.userAgent.length>1e3)throw Error("Input too long");let o=/Edge\/\d+/.test(i.userAgent);if((d&&"string"==typeof t&&0===t.indexOf("data:application/pdf")||o||t.length>2e6)&&!(t=g(t)||""))throw Error("Failed to convert to blob");if(void 0!==s.download)s.href=t,s.download=e,p.body.appendChild(s),s.click(),p.body.removeChild(s);else try{if(!c.open(t,"chart"))throw Error("Failed to open window")}catch{c.location.href=t}}function m(t){return new Promise((e,i)=>{let s=p.getElementsByTagName("head")[0],o=p.createElement("script");o.type="text/javascript",o.src=t,o.onload=()=>{e()},o.onerror=()=>{let e=`Error loading script ${t}`;(0,l.error)(e),i(Error(e))},s.appendChild(o)})}var x=n(660),b=n.n(x),y=n(960),v=n.n(y);let w={exporting:{}},{doc:M,win:k}=h();Array.prototype.find;let{getOptions:A,setOptions:P}=h(),{composed:E,doc:S,win:T}=h();!function(t){async function e(t,e,o,r){let n,a,l,h,d,c=(l=S.createElement("div"),b().setElementHTML(l,t),h=l.getElementsByTagName("text"),d=function(t,e){let i=t;for(;i&&i!==l;){if(i.style[e]){let s=i.style[e];"fontSize"===e&&/em$/.test(s)&&(s=Math.round(16*parseFloat(s))+"px"),t.style[e]=s;break}i=i.parentNode}},[].forEach.call(h,function(t){for(["fontFamily","fontSize"].forEach(e=>{d(t,e)}),t.style.fontFamily=r?.normal?"HighchartsFont":String(t.style.fontFamily&&t.style.fontFamily.split(" ").splice(-1)),n=t.getElementsByTagName("title"),[].forEach.call(n,function(e){t.removeChild(e)}),a=t.getElementsByClassName("highcharts-text-outline");a.length>0;){let t=a[0];t.parentNode&&t.parentNode.removeChild(t)}}),l.querySelector("svg"));c&&(await i(c,r),f(await s(c,0,e),o))}async function i(t,e){let i,s,o=(t,e)=>{T.jspdf.jsPDF.API.events.push(["initialized",function(){this.addFileToVFS(t,e),this.addFont(t,"HighchartsFont",t),this.getFontList()?.HighchartsFont||this.setFont("HighchartsFont")}])};for(let r of(e&&(s=t.textContent||"",!/[^\u0000-\u007F\u200B]+/.test(s))&&(e=void 0),["normal","italic","bold","bolditalic"])){let t=e?.[r];if(t)try{let e=await T.fetch(t);if(!e.ok)throw Error(`Failed to fetch font: ${t}`);let s=await e.blob(),n=new FileReader,a=await new Promise((t,e)=>{n.onloadend=()=>{"string"==typeof n.result?t(n.result.split(",")[1]):e(Error("Failed to read font as base64"))},n.onerror=e,n.readAsDataURL(s)});o(r,a),"normal"===r&&(i=a)}catch{}else i&&o(r,i)}}async function s(t,e,i){let s=(Number(t.getAttribute("width"))+2*e)*i,o=(Number(t.getAttribute("height"))+2*e)*i,r=new T.jspdf.jsPDF(o>s?"p":"l","pt",[s,o]);[].forEach.call(t.querySelectorAll('*[visibility="hidden"]'),function(t){t.parentNode.removeChild(t)});let n=t.querySelectorAll("linearGradient");for(let t=0;t<n.length;t++){let e=n[t].querySelectorAll("stop"),i=0;for(;i<e.length&&"0"===e[i].getAttribute("offset")&&"0"===e[i+1].getAttribute("offset");)e[i].remove(),i++}return[].forEach.call(t.querySelectorAll("tspan"),t=>{"​"===t.textContent&&(t.textContent=" ",t.setAttribute("dx",-5))}),await r.svg(t,{x:0,y:0,width:s,height:o,removeInvalid:!0}),r.output("datauristring")}t.compose=function(t){var i;
1if(!function(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;h().Point&&t instanceof h().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let n=t.addEventListener;n&&n.call(t,e,i,!!h().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let a={fn:i,order:"number"==typeof s.order?s.order:1/0};r[e].push(a),r[e].sort((t,e)=>t.order-e.order)}(t,"downloadSVG",async function(t){let{svg:i,exportingOptions:s,exporting:o,preventDefault:r}=t;if(s?.type==="application/pdf"){r?.();try{let{type:t,filename:o,scale:r,libURL:n}=h().Exporting.prepareImageOptions(s);"application/pdf"===t&&(T.jspdf?.jsPDF||(await m(`${n}jspdf.js`),await m(`${n}svg2pdf.js`)),await e(i,r,o,s?.pdfFont))}catch(t){await o?.fallbackToServer(s,t)}}}),i="OfflineExporting",!(0>E.indexOf(i)&&E.push(i)))return;!function(t,e){let i;for(i in t||(t={}),e)t[i]=e[i]}(v().prototype,{exportChartLocal:async function(t,e){await this.exporting?.exportChart(t,e)}}),P(w);let s=A().exporting?.buttons?.contextButton?.menuItems;s?.push("downloadPDF")},t.downloadSVGLocal=async function(t,e){await h().Exporting.prototype.downloadSVG.call(void 0,t,e)}}(t||(t={}));let C=t,L=h();L.dataURLtoBlob=L.dataURLtoBlob||g,L.downloadSVGLocal=C.downloadSVGLocal,L.downloadURL=L.downloadURL||f,C.compose(L.Exporting);let O=h();return a.default})()},96846:function(t){var e;let i,s,o,r,n;i=(e="u"<typeof window?this:window)._Highcharts,s=e._Highcharts.SeriesRegistry,o=e._Highcharts.Point,r=e._Highcharts.Color,n=e._Highcharts.SVGElement,t.exports=(()=>{"use strict";var t,e,a={28:t=>{t.exports=n},260:t=>{t.exports=o},512:t=>{t.exports=s},620:t=>{t.exports=r},944:t=>{t.exports=i}},l={};function h(t){var e=l[t];if(void 0!==e)return e.exports;var i=l[t]={exports:{}};return a[t](i,i.exports,h),i.exports}h.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return h.d(e,{a:e}),e},h.d=(t,e)=>{for(var i in e)h.o(e,i)&&!h.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},h.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var d={};h.d(d,{default:()=>tt});var c=h(944),p=h.n(c),u=h(512),g=h.n(u);let{doc:f,win:m}=p();function x(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;p().Point&&t instanceof p().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let n=t.addEventListener;n&&n.call(t,e,i,!!p().supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let a={fn:i,order:"number"==typeof s.order?s.order:1/0};return r[e].push(a),r[e].sort((t,e)=>t.order-e.order),function(){!function(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,S(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}(t,e,i)}}function b(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function y(t){return null!=t}function v(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}let w=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]};function M(t){return P(t)&&"number"==typeof t.nodeType}function k(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function A(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function P(t,e){return!!t&&"object"==typeof t&&(!e||!A(t))}function E(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),S(e,function(i,s){if("__proto__"!==s&&"constructor"!==s){let o;!P(i,!0)||(o=i?.constructor,P(i,!0)&&!M(i)&&o?.name&&"Object"!==o.name)||M(i)?t[s]=e[s]:t[s]=r(t[s]||{},i)}}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let n=s.length;for(i=0;i<n;i++)o=r(o,s[i]);return o}function S(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function T(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function C(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}let{series:{prototype:L,prototype:{pointClass:{prototype:O}}}}=g();!function(t){function e(){return this.data=[].concat(this.points||[],this.nodes),L.destroy.apply(this,arguments)}
1function i(){this.nodes&&(this.nodes.forEach(t=>{t.destroy()}),this.nodes.length=0),L.setData.apply(this,arguments)}function s(t){let e=arguments,i=this.isNode?this.linksTo.concat(this.linksFrom):[this.fromNode,this.toNode];"select"!==t&&i.forEach(t=>{t&&t.series&&(O.setState.apply(t,e),!t.isNode&&(t.fromNode.graphic&&O.setState.apply(t.fromNode,e),t.toNode&&t.toNode.graphic&&O.setState.apply(t.toNode,e)))}),O.setState.apply(this,e)}function o(t,e,i,s){let o=this.series.options.nodes,r=this.series.options.data,n=r?.length||0,a=r?.[this.index];if(O.update.call(this,t,!this.isNode&&e,i,s),this.isNode){let t=(o||[]).reduce((t,e,i)=>this.id===e.id?i:t,-1),s=E(o&&o[t]||{},r?.[this.index]||{});r&&(a?r[this.index]=a:r.length=n),o?t>=0?o[t]=s:o.push(s):this.series.options.nodes=[s],T(e,!0)&&this.series.chart.redraw(i)}}t.compose=function(t,r){let n=t.prototype,a=r.prototype;return n.setNodeState=s,n.setState=s,n.update=o,a.destroy=e,a.setData=i,r},t.createNode=function(t){let e=this.pointClass,i=(t,e)=>w(t,t=>t.id===e),s=i(this.nodes,t),o;if(!s){o=this.options.nodes&&i(this.options.nodes,t);let r=new e(this,v({className:"highcharts-node",isNode:!0,id:t,y:1},o));r.linksTo=[],r.linksFrom=[],r.getSum=function(){let t=0,e=0;return r.linksTo.forEach(e=>{t+=e.weight||0}),r.linksFrom.forEach(t=>{e+=t.weight||0}),Math.max(t,e)},r.offset=function(t,e){let i=0;for(let s=0;s<r[e].length;s++){if(r[e][s]===t)return i;i+=r[e][s].weight}},r.hasShape=function(){let t=0;return r.linksTo.forEach(e=>{e.outgoing&&t++}),!r.linksTo.length||t!==r.linksTo.length},r.index=this.nodes.push(r)-1,s=r}return s.formatPrefix="node",s.name=s.name||s.options.id||"",s.mass=T(s.options.mass,s.options.marker&&s.options.marker.radius,this.options.marker&&this.options.marker.radius,4),s},t.destroy=e,t.generatePoints=function(){let t=this.chart,e={};L.generatePoints.call(this),this.nodes||(this.nodes=[]),this.colorCounter=0,this.nodes.forEach(t=>{t.linksFrom.length=0,t.linksTo.length=0,t.level=t.options.level}),this.points.forEach(i=>{y(i.from)&&(e[i.from]||(e[i.from]=this.createNode(i.from)),e[i.from].linksFrom.push(i),i.fromNode=e[i.from],t.styledMode?i.colorIndex=T(i.options.colorIndex,e[i.from].colorIndex):i.color=i.options.color||e[i.from].color),y(i.to)&&(e[i.to]||(e[i.to]=this.createNode(i.to)),e[i.to].linksTo.push(i),i.toNode=e[i.to]),i.name=i.name||i.id},this),this.nodeLookup=e},t.setNodeState=s,t.updateNode=o}(t||(t={}));let N=t;var I=h(260),D=h.n(I);let{column:B}=g().seriesTypes;class R extends B.prototype.pointClass{applyOptions(t,e){return D().prototype.applyOptions.call(this,t,e),y(this.options.level)&&(this.options.column=this.column=this.options.level),this}getClassName(){return(this.isNode?"highcharts-node ":"highcharts-link ")+D().prototype.getClassName.call(this)}getFromNode(){let t=-1,e;for(let i=0;i<this.linksTo.length;i++){let s=this.linksTo[i];s.fromNode.column>t&&s.fromNode!==this&&(t=(e=s.fromNode).column)}return{fromNode:e,fromColumn:t}}setNodeColumn(){y(this.options.column)||(0===this.linksTo.length?this.column=0:this.column=this.getFromNode().fromColumn+1)}isValid(){return this.isNode||"number"==typeof this.weight}}var F=e||(e={});F.compose=function(t,e){return t.sankeyColumn=new z(t,e),t};class z{constructor(t,e){this.points=t,this.series=e}getTranslationFactor(t){let e=this.points,i=e.slice(),s=t.chart,o=t.options.minLinkWidth||0,r,n=0,a,l=(s.plotSizeY||0)-(t.options.borderWidth||0)-(e.length-1)*t.nodePadding;for(;e.length;){for(n=l/e.sankeyColumn.sum(),r=!1,a=e.length;a--;)e[a].getSum()*n<o&&(e.splice(a,1),l=Math.max(0,l-o),r=!0);if(!r)break}for(let t of(e.length=0,i))e.push(t);return n}top(t){let e=this.series,i=e.nodePadding,s=this.points.reduce((s,o)=>(s>0&&(s+=i),s+=Math.max(o.getSum()*t,e.options.minLinkWidth||0)),0);return((t="")=>({center:.5,right:1,middle:.5,bottom:1})[t]||0)(e.options.nodeAlignment||"center")*((e.chart.plotSizeY||0)-s)}left(t){let e=this.series,i=e.chart,s=e.options.equalNodes,o=i.inverted?i.plotHeight:i.plotWidth,r=e.nodePadding,n=this.points.reduce((i,n)=>(i>
10&&(i+=r),i+=s?o/n.series.nodes.length-r:Math.max(n.getSum()*t,e.options.minLinkWidth||0)),0);return((i.plotSizeX||0)-Math.round(n))/2}sum(){return this.points.reduce((t,e)=>t+e.getSum(),0)}offset(t,e){let i=this.points,s=this.series,o=s.nodePadding,r=0,n;if(s.is("organization")&&t.hangsFrom)return{absoluteTop:t.hangsFrom.nodeY};for(let a=0;a<i.length;a++){let l=i[a].getSum(),h=Math.max(l*e,s.options.minLinkWidth||0),d=t.options[s.chart.inverted?"offsetHorizontal":"offsetVertical"],c=t.options.offset||0;if(n=l?h+o:0,i[a]===t)return{relativeTop:r+(y(d)?C(d,h):C(c,n))};r+=n}}}F.SankeyColumnAdditions=z;let H=e;var W=h(620),X=h.n(W),G=h(28),Y=h.n(G);let{deg2rad:V}=p();function j(t,e){e=E(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);let i=this.renderer.url,s=this.text||this,o=s.textPath,{attributes:r,enabled:n}=e;if(t=t||o&&o.path,o&&o.undo(),t&&n){let e=x(s,"afterModifyTree",e=>{if(t&&n){let o=t.attr("id");o||t.attr("id",o=(0,c.uniqueKey)());let n={x:0,y:0};y(r.dx)&&(n.dx=r.dx,delete r.dx),y(r.dy)&&(n.dy=r.dy,delete r.dy),s.attr(n),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let a=e.nodes.slice(0);e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:v(r,{"text-anchor":r.textAnchor,href:`${i}#${o}`}),children:a}}});s.textPath={path:t,undo:e}}else s.attr({dx:0,dy:0}),delete s.textPath;return this.added&&(s.textCache="",this.renderer.buildText(s)),this}function U(t){let e=t.bBox,i=this.element?.querySelector("textPath");if(i){let t=[],{b:s,h:o}=this.renderer.fontMetrics(this.element),r=o-s,n=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),a=i.innerHTML.replace(n,"").split(/<tspan class="highcharts-br"[^>]*>/),l=a.length,h=(t,e)=>{let{x:o,y:n}=e,a=(i.getRotationOfChar(t)-90)*V,l=Math.cos(a),h=Math.sin(a);return[[o-r*l,n-r*h],[o+s*l,n+s*h]]};for(let e=0,s=0;s<l;s++){let o=a[s].length;for(let r=0;r<o;r+=5)try{let o=e+r+s,[n,a]=h(o,i.getStartPositionOfChar(o));0===r?(t.push(a),t.push(n)):(0===s&&t.unshift(a),s===l-1&&t.push(n))}catch{break}e+=o-1;try{let o=e+s,r=i.getEndPositionOfChar(o),[n,a]=h(o,r);t.unshift(a),t.unshift(n)}catch{break}}t.length&&t.push(t[0].slice()),e.polygon=t}return e}function _(t){let e=t.labelOptions,i=t.point,s=e[i.formatPrefix+"TextPath"]||e.textPath;s&&!e.useHTML&&(this.setTextPath(i.getDataLabelPath?.(this)||i.graphic,s),i.dataLabelPath&&!s.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy()))}let{column:q,line:K}=g().seriesTypes,{parse:$}=X(),{getLevelOptions:Z,getNodeWidth:J}={getColor:function(t,e){let i,s,o,r,n,a,l=e.index,h=e.mapOptionsToLevel,d=e.parentColor,c=e.parentColorIndex,p=e.series,u=e.colors,g=e.siblings,f=p.points,m=p.chart.options.chart;if(t){let x;i=f[t.i],s=h[t.level]||{},i&&s.colorByPoint&&(r=i.index%(u?u.length:m.colorCount),o=u&&u[r]),p.chart.styledMode||(n=T(i&&i.options.color,s&&s.color,o,d&&((x=s&&s.colorVariation)&&"brightness"===x.key&&l&&g?X().parse(d).brighten(x.to*(l/g)).get():d),p.color)),a=T(i&&i.options.colorIndex,s&&s.colorIndex,r,c,e.colorIndex)}return{color:n,colorIndex:a}},getLevelOptions:function(t){let e,i,s,o,r,n,a={};if(P(t))for(o=k(t.from)?t.from:1,n=t.levels,i={},e=P(t.defaults)?t.defaults:{},A(n)&&(i=n.reduce((t,i)=>{let s,r,n;return P(i)&&k(i.level)&&(r=T((n=E({},i)).levelIsConstant,e.levelIsConstant),delete n.levelIsConstant,delete n.level,P(t[s=i.level+(r?0:o-1)])?E(!0,t[s],n):t[s]=n),t},{})),r=k(t.to)?t.to:1,s=0;s<=r;s++)a[s]=E({},e,P(i[s])?i[s]:{});return a},getNodeWidth:function(t,e){let{chart:i,options:s}=t,{nodeDistance:o=0,nodeWidth:r=0}=s,{plotSizeX:n=1}=i;if("auto"===r){if("string"==typeof o&&/%$/.test(o))return n/(e+parseFloat(o)/100*(e-1));let t=Number(o);return(n+t)/(e||1)-t}return C(r,n)},setTreeValues:function t(e,i){let s=i.before,o=i.idRoot,r=i.mapIdToNode[o],n=!1!==i.levelIsConstant,a=i.points[e.i],l=a&&a.options||{},h=[],d=0;e.levelDynamic=e.level-(n?0:r.level),e.name=T(a&&a.name,""),e.visible=o===e.id||!0===i.visible,"function"==typeof s&&(e=s(e,i)),e.children.forEach((s,o)=>{let r=v({},i);v(r,{index:o,siblings:e.children.length,visible:e.visible}),s=t(s,r),h.push(s),s.visible&&(d+=s.val)});let c=T(l.value,d);return e.visible=c>=0&&(d>0||e.visible),e.children=h,e.childrenTotal=d,e.isLeaf=e.visible&&!d,e.val=c,e},updateRootId:function(t){let e,i;return P(t)&&(i=P(t.options)?t.options:{},e=T(t.rootNode,i.rootId,""),P(t.userOptions)&&(t.userOptions.rootId=e),t.rootNode=e),e}};
1({compose:function(t){x(t,"afterGetBBox",U),x(t,"beforeAddingDataLabel",_);let e=t.prototype;e.setTextPath||(e.setTextPath=j)}}).compose(Y());class Q extends q{static getDLOptions(t){let e=P(t.optionsPoint)?t.optionsPoint.dataLabels:{},i=P(t.level)?t.level.dataLabels:{};return E({style:{}},i,e,{zIndex:i?.zIndex})}createNodeColumns(){let t=[];for(let e of this.nodes)e.setNodeColumn(),t[e.column]||(t[e.column]=H.compose([],this)),t[e.column].push(e);for(let e=0;e<t.length;e++)void 0===t[e]&&(t[e]=H.compose([],this));return t}order(t,e){if(void 0===t.level)for(let i of(t.level=e,t.linksFrom))i.toNode&&this.order(i.toNode,e+1)}generatePoints(){if(N.generatePoints.apply(this,arguments),this.orderNodes){for(let t of this.nodes)0===t.linksTo.length&&this.order(t,0);!function(t,e){let i,s,o=t.length;for(s=0;s<o;s++)t[s].safeI=s;for(t.sort(function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i}),s=0;s<o;s++)delete t[s].safeI}(this.nodes,(t,e)=>t.level-e.level)}}getNodePadding(){let t=this.options.nodePadding||0;if(this.nodeColumns){let e=this.nodeColumns.reduce((t,e)=>Math.max(t,e.length),0);e*t>this.chart.plotSizeY&&(t=this.chart.plotSizeY/e)}return t}hasData(){return!!this.dataTable.rowCount}pointAttribs(t,e){if(!t)return{};let i=this,s=t.isNode?t.level:t.fromNode.level,o=i.mapOptionsToLevel[s||0]||{},r=t.options,n=o.states&&o.states[e||""]||{},a=["colorByPoint","borderColor","borderWidth","linkOpacity","opacity"].reduce((t,e)=>(t[e]=T(n[e],r[e],o[e],i.options[e]),t),{}),l=T(n.color,r.color,a.colorByPoint?t.color:o.color);return t.isNode?{fill:l,stroke:a.borderColor,"stroke-width":a.borderWidth,opacity:a.opacity}:{fill:l,"fill-opacity":a.linkOpacity}}drawTracker(){q.prototype.drawTracker.call(this,this.points),q.prototype.drawTracker.call(this,this.nodes)}drawPoints(){q.prototype.drawPoints.call(this,this.points),q.prototype.drawPoints.call(this,this.nodes)}drawDataLabels(){q.prototype.drawDataLabels.call(this,this.points),q.prototype.drawDataLabels.call(this,this.nodes)}translate(){this.generatePoints(),this.nodeColumns=this.createNodeColumns();let t=this,e=this.chart,i=this.options,s=this.nodeColumns,o=s.length;for(let r of(this.nodeWidth=J(this,o),this.nodePadding=this.getNodePadding(),this.translationFactor=s.reduce((e,i)=>Math.min(e,i.sankeyColumn.getTranslationFactor(t)),1/0),this.colDistance=(e.plotSizeX-this.nodeWidth-i.borderWidth)/Math.max(1,s.length-1),t.mapOptionsToLevel=Z({from:1,levels:i.levels,to:s.length-1,defaults:{borderColor:i.borderColor,borderRadius:i.borderRadius,borderWidth:i.borderWidth,color:t.color,colorByPoint:i.colorByPoint,levelIsConstant:!0,linkColor:i.linkColor,linkLineWidth:i.linkLineWidth,linkOpacity:i.linkOpacity,states:i.states}}),s))for(let e of r)t.translateNode(e,r);for(let e of this.nodes)for(let i of e.linksFrom)(i.weight||i.isNull)&&i.to&&(t.translateLink(i),i.allowShadow=!1)}translateLink(t){let e=(e,i)=>{let s=e.offset(t,i)*n;return Math.min(e.nodeY+s,e.nodeY+(e.shapeArgs&&e.shapeArgs.height||0)-u)},i=t.fromNode,s=t.toNode,o=this.chart,{inverted:r}=o,n=this.translationFactor,a=this.options,l=T(t.linkColorMode,a.linkColorMode),h=(o.inverted?-this.colDistance:this.colDistance)*a.curveFactor,d=i.nodeX,c=s.nodeX,p=t.outgoing,u=Math.max(t.weight*n,this.options.minLinkWidth),g=e(i,"linksFrom"),f=e(s,"linksTo"),m=this.nodeWidth,x=c>d+m;if(o.inverted&&(g=o.plotSizeY-g,f=(o.plotSizeY||0)-f,m=-m,u=-u,x=d>c),t.shapeType="path",t.linkBase=[g,g+u,f,f+u],x&&"number"==typeof f)t.shapeArgs={d:[["M",d+m,g],["C",d+m+h,g,c-h,f,c,f],["L",c+(p?m:0),f+u/2],["L",c,f+u],["C",c-h,f+u,d+m+h,g+u,d+m,g+u],["Z"]]};else if("number"==typeof f){let e=o.plotHeight-g-u,i=c-20-u,s=c-20,r=d+m,n=r+20,a=n+u,l=g,h=g+u,p=h+20,x=p+e,b=x+20,y=b+u,v=f,w=v+u,M=w+20,k=h-.7*u,A=b+.7*u,P=w-.7*u,E=c-.7*u,S=r+.7*u;t.shapeArgs={d:[["M",r,l],["C",S,l,a,k,a,p],["L",a,x],["C",a,A,S,y,r,y],["L",c,y],["C",E,y,i,A,i,x],["L",i,M],["C",i,P,E,v,c,v],["L",c,w],["C",s,w,s,w,s,M],["L",s,x],["C",s,b,s,b,c,b],["L",r,b],["C",n,b,n,b,n,x],["L",n,p],["C",n,h,n,h,r,h],["Z"]]}}if(t.dlBox={x:d+(c-d+m)/2,y:g+(f-g)/2,height:u,width:0},t.tooltipPos=o.inverted?[o.plotSizeY-t.dlBox.y-u/2,o.plotSizeX-t.dlBox.x]:[t.dlBox.x,t.dlBox.y+u/2],t.y=t.plotY=1,t.x=t.plotX=1,!t.options.color){if("from"===l)t.color=i.color;else if("to"===l)t.color=s.color;else if("gradient"===l){let e=$(i.color).get(),o=$(s.color).get();t.color={linearGradient:{x1:1,x2:0,y1:0,y2:0},stops:[[0,r?e:o],[1,r?o:e]]}}}}translateNode(t,e){let i=this.translationFactor,s=this.chart,o=this.options,{borderRadius:r,borderWidth:n=0}=o,a=t.getSum(),l=Math.max(Math.round(a*i),this.options.minLinkWidth),h=Math.round(this.nodeWidth),d=e.sankeyColumn.offset(t,i),c=b(T(d.absoluteTop,e.sankeyColumn.top(i)+d.relativeTop),n),p=b(this.colDistance*t.column+n/2,n)+C(t.options[s.inverted?"offsetVertical":"offsetHorizontal"]||0,h),u=s.inverted?s.plotSizeX-p:p;if(t.sum=a,a){var g,f;
1t.shapeType="roundedRect",t.nodeX=u,t.nodeY=c;let e=u,i=c,n=t.options.width||o.width||h,a=t.options.height||o.height||l,d=(g=C("object"==typeof r?r.radius:r||0,n),f=l/2,g>0?g<f?g:f:0);s.inverted&&(e=u-h,i=s.plotSizeY-c-l,n=t.options.height||o.height||h,a=t.options.width||o.width||l),t.dlOptions={...Q.getDLOptions({level:this.mapOptionsToLevel[t.level],optionsPoint:t.options}),zIndex:void 0},t.plotX=1,t.plotY=1,t.tooltipPos=s.inverted?[s.plotSizeY-i-a/2,s.plotSizeX-e-n/2]:[e+n/2,i+a/2],t.shapeArgs={x:e,y:i,width:n,height:a,r:d,display:t.hasShape()?"":"none"}}else t.dlOptions={enabled:!1}}}Q.defaultOptions=E(q.defaultOptions,{borderWidth:0,colorByPoint:!0,curveFactor:.33,dataLabels:{enabled:!0,backgroundColor:"none",crop:!1,nodeFormat:void 0,nodeFormatter:function(){return this.point.name},format:void 0,formatter:function(){},inside:!0},inactiveOtherPoints:!0,linkColorMode:"from",linkOpacity:.5,opacity:1,minLinkWidth:0,nodeAlignment:"center",nodeWidth:20,nodePadding:10,nodeDistance:30,showInLegend:!1,states:{hover:{linkOpacity:1,opacity:1},inactive:{linkOpacity:.1,opacity:.1,animation:{duration:50}}},tooltip:{followPointer:!0,headerFormat:'<span style="font-size: 0.8em">{series.name}</span><br/>',pointFormat:"{point.fromNode.name} → {point.toNode.name}: <b>{point.weight}</b><br/>",nodeFormat:"{point.name}: <b>{point.sum}</b><br/>"}}),N.compose(R,Q),v(Q.prototype,{animate:K.prototype.animate,createNode:N.createNode,forceDL:!0,invertible:!0,isCartesian:!1,orderNodes:!0,noSharedTooltip:!0,pointArrayMap:["from","to","weight"],pointClass:R,searchPoint:p().noop}),g().registerSeriesType("sankey",Q);let tt=p();return d.default})()},99922:(t,e,i)=>{"use strict";i.d(e,{D:()=>d,N:()=>c});var s=i(31615),o=(t,e,i,s,o,r,n,a)=>{let l=document.documentElement,h=["light","dark"];function d(e){var i;(Array.isArray(t)?t:[t]).forEach(t=>{let i="class"===t,s=i&&r?o.map(t=>r[t]||t):o;i?(l.classList.remove(...s),l.classList.add(r&&r[e]?r[e]:e)):l.setAttribute(t,e)}),i=e,a&&h.includes(i)&&(l.style.colorScheme=i)}if(s)d(s);else try{let t=localStorage.getItem(e)||i,s=n&&"system"===t?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t;d(s)}catch(t){}},r=["light","dark"],n="(prefers-color-scheme: dark)",a="u"<typeof window,l=s.createContext(void 0),h={setTheme:t=>{},themes:[]},d=()=>{var t;return null!=(t=s.useContext(l))?t:h},c=t=>s.useContext(l)?s.createElement(s.Fragment,null,t.children):s.createElement(u,{...t}),p=["light","dark"],u=({forcedTheme:t,disableTransitionOnChange:e=!1,enableSystem:i=!0,enableColorScheme:o=!0,storageKey:a="theme",themes:h=p,defaultTheme:d=i?"system":"light",attribute:c="data-theme",value:u,children:b,nonce:y,scriptProps:v})=>{let[w,M]=s.useState(()=>f(a,d)),[k,A]=s.useState(()=>"system"===w?x():w),P=u?Object.values(u):h,E=s.useCallback(t=>{let s=t;if(!s)return;"system"===t&&i&&(s=x());let n=u?u[s]:s,a=e?m(y):null,l=document.documentElement,h=t=>{"class"===t?(l.classList.remove(...P),n&&l.classList.add(n)):t.startsWith("data-")&&(n?l.setAttribute(t,n):l.removeAttribute(t))};if(Array.isArray(c)?c.forEach(h):h(c),o){let t=r.includes(d)?d:null,e=r.includes(s)?s:t;l.style.colorScheme=e}null==a||a()},[y]),S=s.useCallback(t=>{let e="function"==typeof t?t(w):t;M(e);try{localStorage.setItem(a,e)}catch(t){}},[w]),T=s.useCallback(e=>{A(x(e)),"system"===w&&i&&!t&&E("system")},[w,t]);s.useEffect(()=>{let t=window.matchMedia(n);return t.addListener(T),T(t),()=>t.removeListener(T)},[T]),s.useEffect(()=>{let t=t=>{t.key===a&&(t.newValue?M(t.newValue):S(d))};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[S]),s.useEffect(()=>{E(null!=t?t:w)},[t,w]);let C=s.useMemo(()=>({theme:w,setTheme:S,forcedTheme:t,resolvedTheme:"system"===w?k:w,themes:i?[...h,"system"]:h,systemTheme:i?k:void 0}),[w,S,t,k,i,h]);return s.createElement(l.Provider,{value:C},s.createElement(g,{forcedTheme:t,storageKey:a,attribute:c,enableSystem:i,enableColorScheme:o,defaultTheme:d,value:u,themes:h,nonce:y,scriptProps:v}),b)},g=s.memo(({forcedTheme:t,storageKey:e,attribute:i,enableSystem:r,enableColorScheme:n,defaultTheme:a,value:l,themes:h,nonce:
1d,scriptProps:c})=>{let p=JSON.stringify([i,e,a,t,h,l,r,n]).slice(1,-1);return s.createElement("script",{...c,suppressHydrationWarning:!0,nonce:"u"<typeof window?d:"",dangerouslySetInnerHTML:{__html:`(${o.toString()})(${p})`}})}),f=(t,e)=>{let i;if(!a){try{i=localStorage.getItem(t)||void 0}catch(t){}return i||e}},m=t=>{let e=document.createElement("style");return t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},x=t=>(t||(t=window.matchMedia(n)),t.matches?"dark":"light")}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.