=k?`+${H(-k)}:00`:\n`-${H(k)}:00`)}d=Date.parse(d);B(d)||(a=a.split(\"-\"),d=Date.UTC(F(a[0]),F(a[1])-1,F(a[2])));c&&b&&B(d)&&(d+=c.getTimezoneOffset(d));return d}drawInput(a){function b(){const {maxInput:b,minInput:d}=f,k=c.xAxis[0];var e=c.scroller&&c.scroller.xAxis?c.scroller.xAxis:k;const p=e.dataMin;e=e.dataMax;let h=f.getInputValue(a);h!==Number(C.getAttribute(\"data-hc-time-previous\"))&&B(h)&&(C.setAttribute(\"data-hc-time-previous\",h),z&&b&&B(p)?h>Number(b.getAttribute(\"data-hc-time\"))?h=void 0:he&&(h=e)),\"undefined\"!==typeof h&&k.setExtremes(z?h:k.min,z?k.max:h,void 0,void 0,{trigger:\"rangeSelectorInput\"}))}const {chart:c,div:d,inputGroup:k}=this,f=this,l=c.renderer.style||{};var u=c.renderer;const m=c.options.rangeSelector,z=\"min\"===a;var q=y.lang[z?\"rangeSelectorFrom\":\"rangeSelectorTo\"]||\"\";q=u.label(q,0).addClass(\"highcharts-range-label\").attr({padding:q?2:0,height:q?m.inputBoxHeight:0}).add(k);u=u.label(\"\",0).addClass(\"highcharts-range-input\").attr({padding:2,\nwidth:m.inputBoxWidth,height:m.inputBoxHeight,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()});c.styledMode||u.attr({stroke:m.inputBoxBorderColor,\"stroke-width\":1});u.add(k);const C=g(\"input\",{name:a,className:\"highcharts-range-selector\"},void 0,d);C.setAttribute(\"type\",v(m.inputDateFormat||\"%e %b %Y\"));c.styledMode||(q.css(A(l,m.labelStyle)),u.css(A({color:\"#333333\"},l,m.inputStyle)),h(C,e({position:\"absolute\",border:0,boxShadow:\"0 0 15px rgba(0,0,0,0.3)\",width:\"1px\",\nheight:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},m.inputStyle)));C.onfocus=()=>{f.showInput(a)};C.onblur=()=>{C===n.doc.activeElement&&b();f.hideInput(a);f.setInputValue(a);C.blur()};let r=!1;C.onchange=()=>{r||(b(),f.hideInput(a),C.blur())};C.onkeypress=a=>{13===a.keyCode&&b()};C.onkeydown=a=>{r=!0;38!==a.keyCode&&40!==a.keyCode||b()};C.onkeyup=()=>{r=!1};return{dateBox:u,input:C,label:q}}getPosition(){var a=this.chart;const b=a.options.rangeSelector;\na=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}}getYTDExtremes(a,b,c){const d=this.chart.time;var k=new d.Date(a);const e=d.get(\"FullYear\",k);c=c?d.Date.UTC(e,0,1):+new d.Date(e,0,1);b=Math.max(b,c);k=k.getTime();return{max:Math.min(a||k,k),min:b}}render(b,c){var d=this.chart,e=d.renderer;const k=d.container;var f=d.options;const h=f.rangeSelector,t=D(f.chart.style&&f.chart.style.zIndex,0)+1;f=h.inputEnabled;if(!1!==h.enabled){this.rendered||\n(this.group=e.g(\"range-selector-group\").attr({zIndex:7}).add(),this.div=g(\"div\",void 0,{position:\"relative\",height:0,zIndex:t}),this.buttonOptions.length&&this.renderButtons(),k.parentNode&&k.parentNode.insertBefore(this.div,k),f&&(this.inputGroup=e.g(\"input-group\").add(this.group),e=this.drawInput(\"min\"),this.minDateBox=e.dateBox,this.minLabel=e.label,this.minInput=e.input,e=this.drawInput(\"max\"),this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input));if(f&&(this.setInputValue(\"min\",\nb),this.setInputValue(\"max\",c),b=d.scroller&&d.scroller.getUnionExtremes()||d.xAxis[0]||{},a(b.dataMin)&&a(b.dataMax)&&(d=d.xAxis[0].minRange||0,this.setInputExtremes(\"min\",b.dataMin,Math.min(b.dataMax,this.getInputValue(\"max\"))-d),this.setInputExtremes(\"max\",Math.max(b.dataMin,this.getInputValue(\"min\"))+d,b.dataMax)),this.inputGroup)){let a=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(b=>{if(b){const {width:c}=b.getBBox();c&&(b.attr({x:a}),a+=c+h.inputSpacing)}})}this.alignElements();\nthis.rendered=!0}}renderButtons(){const {buttons:a,chart:b,options:c}=this,d=y.lang,e=b.renderer,h=A(c.buttonTheme),u=h&&h.states,m=h.width||28;delete h.width;delete h.states;this.buttonGroup=e.g(\"range-selector-buttons\").add(this.group);const z=this.dropdown=g(\"select\",void 0,{position:\"absolute\",width:\"1px\",height:\"1px\",padding:0,border:0,top:\"-9999em\",cursor:\"pointer\",opacity:.0001},this.div);l(z,\"touchstart\",()=>{z.style.fontSize=\"16px\"});[[n.isMS?\"mouseover\":\"mouseenter\"],[n.isMS?\"mouseout\":\n\"mouseleave\"],[\"change\",\"click\"]].forEach(([b,c])=>{l(z,b,()=>{const d=a[this.currentButtonIndex()];d&&f(d.element,c||b)})});this.zoomText=e.label(d&&d.rangeSelectorZoom||\"\",0).attr({padding:c.buttonTheme.padding,height:c.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(c.labelStyle),h[\"stroke-width\"]=D(h[\"stroke-width\"],0));g(\"option\",{textContent:this.zoomText.textStr,disabled:!0},void 0,z);this.buttonOptions.forEach((b,c)=>{g(\"option\",\n{textContent:b.title||b.text},void 0,z);a[c]=e.button(b.text,0,0,a=>{const d=b.events&&b.events.click;let e;d&&(e=d.call(b,a));!1!==e&&this.clickButton(c);this.isActive=!0},h,u&&u.hover,u&&u.select,u&&u.disabled).attr({\"text-align\":\"center\",width:m}).add(this.buttonGroup);b.title&&a[c].attr(\"title\",b.title)})}alignElements(){const {buttonGroup:a,buttons:b,chart:c,group:d,inputGroup:e,options:f,zoomText:h}=this;var g=c.options;const l=g.exporting&&!1!==g.exporting.enabled&&g.navigation&&g.navigation.buttonOptions,\n{buttonPosition:u,inputPosition:m,verticalAlign:z}=f;g=(a,b)=>l&&this.titleCollision(c)&&\"top\"===z&&\"right\"===b.align&&b.y-a.getBBox().height-12<(l.y||0)+(l.height||0)+c.spacing[0]?-40:0;var q=c.plotLeft;if(d&&u&&m){var n=u.x-c.spacing[3];if(a){this.positionButtons();if(!this.initialButtonGroupWidth){let a=0;h&&(a+=h.getBBox().width+5);b.forEach((c,d)=>{a+=c.width;d!==b.length-1&&(a+=f.buttonSpacing)});this.initialButtonGroupWidth=a}q-=c.spacing[3];this.updateButtonStates();var r=g(a,u);this.alignButtonGroup(r);\nd.placed=a.placed=c.hasLoaded}r=0;e&&(r=g(e,m),\"left\"===m.align?n=q:\"right\"===m.align&&(n=-Math.max(c.axisOffset[1],-r)),e.align({y:m.y,width:e.getBBox().width,align:m.align,x:m.x+n-2},!0,c.spacingBox),e.placed=c.hasLoaded);this.handleCollision(r);d.align({verticalAlign:z},!0,c.spacingBox);g=d.alignAttr.translateY;q=d.getBBox().height+20;n=0;\"bottom\"===z&&(n=(n=c.legend&&c.legend.options)&&\"bottom\"===n.verticalAlign&&n.enabled&&!n.floating?c.legend.legendHeight+D(n.margin,10):0,q=q+n-20,n=g-q-(f.floating?\n0:f.y)-(c.titleOffset?c.titleOffset[2]:0)-10);if(\"top\"===z)f.floating&&(n=0),c.titleOffset&&c.titleOffset[0]&&(n=c.titleOffset[0]),n+=c.margin[0]-c.spacing[0]||0;else if(\"middle\"===z)if(m.y===u.y)n=g;else if(m.y||u.y)n=0>m.y||0>u.y?n-Math.min(m.y,u.y):g-q;d.translate(f.x,f.y+Math.floor(n));const {minInput:k,maxInput:p,dropdown:t}=this;f.inputEnabled&&k&&p&&(k.style.marginTop=d.translateY+\"px\",p.style.marginTop=d.translateY+\"px\");t&&(t.style.marginTop=d.translateY+\"px\")}}alignButtonGroup(a,b){const {chart:c,\noptions:d,buttonGroup:e}=this,{buttonPosition:f}=d,k=c.plotLeft-c.spacing[3];let h=f.x-c.spacing[3];\"right\"===f.align?h+=a-k:\"center\"===f.align&&(h-=k/2);e&&e.align({y:f.y,width:D(b,this.initialButtonGroupWidth),align:f.align,x:h},!0,c.spacingBox)}positionButtons(){const {buttons:a,chart:b,options:c,zoomText:d}=this,e=b.hasLoaded?\"animate\":\"attr\",{buttonPosition:f}=c,h=b.plotLeft;let g=h;d&&\"hidden\"!==d.visibility&&(d[e]({x:D(h+f.x,h)}),g+=f.x+d.getBBox().width+5);for(let b=0,d=this.buttonOptions.length;b<\nd;++b)if(\"hidden\"!==a[b].visibility)a[b][e]({x:g}),g+=a[b].width+c.buttonSpacing;else a[b][e]({x:h})}handleCollision(a){const {chart:b,buttonGroup:c,inputGroup:d}=this,{buttonPosition:e,dropdown:f,inputPosition:k}=this.options,h=()=>{let a=0;this.buttons.forEach(b=>{b=b.getBBox();b.width>a&&(a=b.width)});return a},g=b=>{if(d&&c){const f=d.alignAttr.translateX+d.alignOptions.x-a+d.getBBox().x+2,h=d.alignOptions.width,g=c.alignAttr.translateX+c.getBBox().x;return g+b>f&&f+h>g&&e.y{d&&c&&d.attr({translateX:d.alignAttr.translateX+(b.axisOffset[1]>=-a?0:-a),translateY:d.alignAttr.translateY+c.getBBox().height+10})};if(c){if(\"always\"===f){this.collapseButtons(a);g(h())&&l();return}\"never\"===f&&this.expandButtons()}d&&c?k.align===e.align||g(this.initialButtonGroupWidth+20)?\"responsive\"===f?(this.collapseButtons(a),g(h())&&l()):l():\"responsive\"===f&&this.expandButtons():c&&\"responsive\"===f&&(this.initialButtonGroupWidth>b.plotWidth?this.collapseButtons(a):this.expandButtons())}collapseButtons(a){const {buttons:b,\nbuttonOptions:c,chart:d,dropdown:e,options:f,zoomText:k}=this,h=d.userOptions.rangeSelector&&d.userOptions.rangeSelector.buttonTheme||{},g=a=>({text:a?`${a} \\u25be`:\"\\u25be\",width:\"auto\",paddingLeft:D(f.buttonTheme.paddingLeft,h.padding,8),paddingRight:D(f.buttonTheme.paddingRight,h.padding,8)});k&&k.hide();let l=!1;c.forEach((a,c)=>{c=b[c];2!==c.state?c.hide():(c.show(),c.attr(g(a.text)),l=!0)});l||(e&&(e.selectedIndex=0),b[0].show(),b[0].attr(g(this.zoomText&&this.zoomText.textStr)));const {align:u}=\nf.buttonPosition;this.positionButtons();\"right\"!==u&&\"center\"!==u||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()}expandButtons(){const {buttons:a,buttonOptions:b,options:c,zoomText:d}=this;this.hideDropdown();d&&d.show();b.forEach((b,d)=>{d=a[d];d.show();d.attr({text:b.text,width:c.buttonTheme.width||28,paddingLeft:D(c.buttonTheme.paddingLeft,\"unset\"),paddingRight:D(c.buttonTheme.paddingRight,\"unset\")});2>d.state&&d.setState(0)});this.positionButtons()}currentButtonIndex(){const {dropdown:a}=\nthis;return a&&0e&&0>d||0a()),a.eventsToUnbind=void 0);c(a.buttons);b&&(b.onfocus=b.onblur=\nb.onchange=null);e&&(e.onfocus=e.onblur=e.onchange=null);x(a,function(b,c){b&&\"chart\"!==c&&(b instanceof m?b.destroy():b instanceof window.HTMLElement&&d(b));b!==u.prototype[c]&&(a[c]=null)},this)}}e(u.prototype,{defaultButtons:[{type:\"month\",count:1,text:\"1m\",title:\"View 1 month\"},{type:\"month\",count:3,text:\"3m\",title:\"View 3 months\"},{type:\"month\",count:6,text:\"6m\",title:\"View 6 months\"},{type:\"ytd\",text:\"YTD\",title:\"View year to date\"},{type:\"year\",count:1,text:\"1y\",title:\"View 1 year\"},{type:\"all\",\ntext:\"All\",title:\"View all\"}],inputTypeFormats:{\"datetime-local\":\"%Y-%m-%dT%H:%M:%S\",date:\"%Y-%m-%d\",time:\"%H:%M:%S\"}});\"\";return u});x(b,\"Accessibility/Components/RangeSelectorComponent.js\",[b[\"Stock/RangeSelector/RangeSelector.js\"],b[\"Accessibility/AccessibilityComponent.js\"],b[\"Accessibility/Utils/ChartUtilities.js\"],b[\"Accessibility/Utils/Announcer.js\"],b[\"Accessibility/KeyboardNavigationHandler.js\"],b[\"Core/Utilities.js\"]],function(b,r,n,q,m,w){const {unhideChartElementFromAT:v,getAxisRangeDescription:y}=\nn,{addEvent:l,attr:g}=w;class h extends r{constructor(){super(...arguments);this.announcer=void 0}init(){this.announcer=new q(this.chart,\"polite\")}onChartUpdate(){const a=this.chart,b=this,d=a.rangeSelector;d&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),d.buttons&&d.buttons.length&&d.buttons.forEach(a=>{b.setRangeButtonAttrs(a)}),d.maxInput&&d.minInput&&[\"minInput\",\"maxInput\"].forEach(function(c,f){if(c=d[c])v(a,c),b.setRangeInputAttrs(c,\"accessibility.rangeSelector.\"+(f?\"max\":\"min\")+\n\"InputLabel\")}))}updateSelectorVisibility(){const a=this.chart,b=a.rangeSelector,d=b&&b.dropdown,e=b&&b.buttons||[];b&&b.hasVisibleDropdown&&d?(v(a,d),e.forEach(a=>a.element.setAttribute(\"aria-hidden\",!0))):(d&&d.setAttribute(\"aria-hidden\",!0),e.forEach(b=>v(a,b.element)))}setDropdownAttrs(){var a=this.chart;const b=a.rangeSelector&&a.rangeSelector.dropdown;b&&(a=a.langFormat(\"accessibility.rangeSelector.dropdownLabel\",{rangeTitle:a.options.lang.rangeSelectorZoom}),b.setAttribute(\"aria-label\",a),\nb.setAttribute(\"tabindex\",-1))}setRangeButtonAttrs(a){g(a.element,{tabindex:-1,role:\"button\"})}setRangeInputAttrs(a,b){const c=this.chart;g(a,{tabindex:-1,\"aria-label\":c.langFormat(b,{chart:c})})}onButtonNavKbdArrowKey(a,b){const c=a.response,e=this.keyCodes,f=this.chart,h=f.options.accessibility.keyboardNavigation.wrapAround;b=b===e.left||b===e.up?-1:1;return f.highlightRangeSelectorButton(f.highlightedRangeSelectorItemIx+b)?c.success:h?(a.init(b),c.success):c[0e){if(b.accessibility)return b.accessibility.keyboardNavigation.exiting=\n!0,b.accessibility.keyboardNavigation.tabindexContainer.focus(),b.accessibility.keyboardNavigation.move(a)}else d&&(a=d[e?\"maxDateBox\":\"minDateBox\"],d=d[e?\"maxInput\":\"minInput\"],a&&d&&b.setFocusToElement(a,d));return!0}onInputNavInit(a){const b=this;var d=this.chart;const e=0{(a.which||a.keyCode)===this.keyCodes.tab&&b.onInputKbdMove(a.shiftKey?-1:1)&&(a.preventDefault(),a.stopPropagation())};const c=l(a,\"keydown\",d),g=l(f,\"keydown\",d);this.removeInputKeydownHandler=()=>{c();g()}}}onInputNavTerminate(){const a=this.chart.rangeSelector||{};a.maxInput&&a.hideInput(\"max\");a.minInput&&a.hideInput(\"min\");this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)}initDropdownNav(){const a=this.chart,b=a.rangeSelector,d=b&&\nb.dropdown;b&&d&&(a.setFocusToElement(b.buttonGroup,d),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=l(d,\"keydown\",b=>{const c=a.accessibility;(b.which||b.keyCode)===this.keyCodes.tab&&(b.preventDefault(),b.stopPropagation(),c&&(c.keyboardNavigation.tabindexContainer.focus(),c.keyboardNavigation.move(b.shiftKey?-1:1)))}))}getRangeSelectorButtonNavigation(){const a=this.chart,b=this.keyCodes,d=this;return new m(a,{keyCodeMap:[[[b.left,b.right,\nb.up,b.down],function(a){return d.onButtonNavKbdArrowKey(this,a)}],[[b.enter,b.space],function(){return d.onButtonNavKbdClick(this)}]],validate:function(){return!!(a.rangeSelector&&a.rangeSelector.buttons&&a.rangeSelector.buttons.length)},init:function(b){var c=a.rangeSelector;c&&c.hasVisibleDropdown?d.initDropdownNav():c&&(c=c.buttons.length-1,a.highlightRangeSelectorButton(0{a.graphic&&(a.graphic[a.hasForcedA11yMarker?\"addClass\":\"removeClass\"](\"highcharts-a11y-marker-hidden\"),\na.graphic[!1===a.hasForcedA11yMarker?\"addClass\":\"removeClass\"](\"highcharts-a11y-marker-visible\"))})}}function l(a){this.resetA11yMarkerOptions=n(a.options.marker||{},this.userOptions.marker||{})}function g(){var a=this.options,b=!1!==(this.options.accessibility&&this.options.accessibility.enabled);if(b=this.chart.options.accessibility.enabled&&b)b=this.chart.options.accessibility,b=this.points.length{g(e)||e.points.forEach(f=>{if(v(f.plotY)&&v(f.plotX)&&f!==b){var g=f.plotY-b.plotY,k=Math.abs(f.plotX-b.plotX);k=Math.abs(g)*Math.abs(g)+k*k*4;e.yAxis&&e.yAxis.reversed&&(g*=-1);!(0>=g&&a||0<=g&&!a||5>k||h(f))&&k!(v(a.plotX)&&v(a.plotY));if(!g(a)){for(;h--;){var k=b.points[h];g(k)||(k=(a.plotX-k.plotX)*(a.plotX-k.plotX)*(c||1)+(a.plotY-k.plotY)*\n(a.plotY-k.plotY)*(d||1),k{e[a]&&(e[a].prototype.keyboardMoveVertical=!1)}),f.highlightNextValidPoint=q)}})(F||(F={}));return F});x(b,\"Accessibility/Components/SeriesComponent/SeriesComponent.js\",\n[b[\"Accessibility/AccessibilityComponent.js\"],b[\"Accessibility/Utils/ChartUtilities.js\"],b[\"Accessibility/Components/SeriesComponent/ForcedMarkers.js\"],b[\"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js\"],b[\"Accessibility/Components/SeriesComponent/SeriesDescriber.js\"],b[\"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js\"]],function(b,r,n,q,m,w){const {hideSeriesFromAT:v}=r,{describeSeries:y}=m;class l extends b{static compose(b,h,a){q.compose(a);n.compose(a);w.compose(b,\nh,a)}init(){this.newDataAnnouncer=new q(this.chart);this.newDataAnnouncer.init();this.keyboardNavigation=new w(this.chart,this.keyCodes);this.keyboardNavigation.init();this.hideTooltipFromATWhenShown();this.hideSeriesLabelsFromATWhenShown()}hideTooltipFromATWhenShown(){const b=this;this.chart.tooltip&&this.addEvent(this.chart.tooltip.constructor,\"refresh\",function(){this.chart===b.chart&&this.label&&this.label.element&&this.label.element.setAttribute(\"aria-hidden\",!0)})}hideSeriesLabelsFromATWhenShown(){this.addEvent(this.chart,\n\"afterDrawSeriesLabels\",function(){this.series.forEach(function(b){b.labelBySeries&&b.labelBySeries.attr(\"aria-hidden\",!0)})})}onChartRender(){this.chart.series.forEach(function(b){!1!==(b.options.accessibility&&b.options.accessibility.enabled)&&b.visible?y(b):v(b)})}getKeyboardNavigation(){return this.keyboardNavigation.getKeyboardNavigationHandler()}destroy(){this.newDataAnnouncer.destroy();this.keyboardNavigation.destroy()}}return l});x(b,\"Accessibility/Components/ZoomComponent.js\",[b[\"Accessibility/AccessibilityComponent.js\"],\nb[\"Accessibility/Utils/ChartUtilities.js\"],b[\"Accessibility/Utils/HTMLUtilities.js\"],b[\"Accessibility/KeyboardNavigationHandler.js\"],b[\"Core/Utilities.js\"]],function(b,r,n,q,m){const {unhideChartElementFromAT:v}=r,{getFakeMouseEvent:x}=n,{attr:y,pick:l}=m;class g extends b{constructor(){super(...arguments);this.focusedMapNavButtonIx=-1}init(){const b=this,a=this.chart;this.proxyProvider.addGroup(\"zoom\",\"div\");[\"afterShowResetZoom\",\"afterApplyDrilldown\",\"drillupall\"].forEach(c=>{b.addEvent(a,c,function(){b.updateProxyOverlays()})})}onChartUpdate(){const b=\nthis.chart,a=this;b.mapNavigation&&b.mapNavigation.navButtons.forEach((c,d)=>{v(b,c.element);a.setMapNavButtonAttrs(c.element,\"accessibility.zoom.mapZoom\"+(d?\"Out\":\"In\"))})}setMapNavButtonAttrs(b,a){const c=this.chart;a=c.langFormat(a,{chart:c});y(b,{tabindex:-1,role:\"button\",\"aria-label\":a})}onChartRender(){this.updateProxyOverlays()}updateProxyOverlays(){const b=this.chart;this.proxyProvider.clearGroup(\"zoom\");b.resetZoomButton&&this.createZoomProxyButton(b.resetZoomButton,\"resetZoomProxyButton\",\nb.langFormat(\"accessibility.zoom.resetZoomButton\",{chart:b}));b.drillUpButton&&b.breadcrumbs&&b.breadcrumbs.list&&this.createZoomProxyButton(b.drillUpButton,\"drillUpProxyButton\",b.langFormat(\"accessibility.drillUpButton\",{chart:b,buttonText:b.breadcrumbs.getButtonText(b.breadcrumbs.list[b.breadcrumbs.list.length-1])}))}createZoomProxyButton(b,a,c){this[a]=this.proxyProvider.addProxyElement(\"zoom\",{click:b},{\"aria-label\":c,tabindex:-1})}getMapZoomNavigation(){const b=this.keyCodes,a=this.chart,c=this;\nreturn new q(a,{keyCodeMap:[[[b.up,b.down,b.left,b.right],function(a){return c.onMapKbdArrow(this,a)}],[[b.tab],function(a,b){return c.onMapKbdTab(this,b)}],[[b.space,b.enter],function(){return c.onMapKbdClick(this)}]],validate:function(){return!!(a.mapView&&a.mapNavigation&&a.mapNavigation.navButtons.length)},init:function(a){return c.onMapNavInit(a)}})}onMapKbdArrow(b,a){var c=this.chart,d=this.keyCodes;const e=c.container;var f=a===d.up||a===d.down;a=(f?c.plotHeight:c.plotWidth)/10*(a===d.left||\na===d.up?1:-1);d=10*Math.random();c={x:e.offsetLeft+c.plotLeft+c.plotWidth/2+d,y:e.offsetTop+c.plotTop+c.plotHeight/2+d};f=f?{x:c.x,y:c.y+a}:{x:c.x+a,y:c.y};[x(\"mousedown\",c),x(\"mousemove\",f),x(\"mouseup\",f)].forEach(a=>e.dispatchEvent(a));return b.response.success}onMapKbdTab(b,a){const c=this.chart;b=b.response;const d=(a=a.shiftKey)&&!this.focusedMapNavButtonIx||!a&&this.focusedMapNavButtonIx;c.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0);if(d)return c.mapView&&c.mapView.zoomBy(),\nb[a?\"prev\":\"next\"];this.focusedMapNavButtonIx+=a?-1:1;a=c.mapNavigation.navButtons[this.focusedMapNavButtonIx];c.setFocusToElement(a.box,a.element);a.setState(2);return b.success}onMapKbdClick(b){this.fakeClickEvent(this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element);return b.response.success}onMapNavInit(b){const a=this.chart;var c=a.mapNavigation.navButtons[0];const d=a.mapNavigation.navButtons[1];c=0{chartTitle}{headingTagName}>{typeDescription}
{chartSubtitle}
{chartLongdesc}
{playAsSoundButton}
{viewTableButton}
{xAxisDescription}
{yAxisDescription}
{annotationsTitle}{annotationsList}
\",afterChartFormat:\"{endOfChartMarker}\",\naxisRangeDateFormat:\"%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',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:\"#334eff\",lineWidth:2,borderRadius:3},\nmargin:2},order:[\"series\",\"zoom\",\"rangeSelector\",\"legend\",\"chartMenu\"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5E3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}}}});x(b,\"Accessibility/Options/LangDefaults.js\",[],function(){return{accessibility:{defaultChartTitle:\"Chart\",chartContainerLabel:\"{title}. Highcharts interactive chart.\",\nsvgContainerLabel:\"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}{ Also related to, #each(additionalAnnotationPoints)}\",descriptionNoPoints:\"{annotationText}\"},\nendOfChartMarker:\"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}\"},\ntable:{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.\",\narearange:\"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.\",\nfunnel:\"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} data series.\",combinationChart:\"Combination chart with {numSeries} data series.\",\ndefaultSingle:\"Chart with {numPoints} data {#plural(numPoints, points, point)}.\",defaultMultiple:\"Chart with {numSeries} data series.\",splineSingle:\"Line chart with {numPoints} data {#plural(numPoints, points, point)}.\",splineMultiple:\"Line chart with {numSeries} lines.\",lineSingle:\"Line chart with {numPoints} data {#plural(numPoints, points, point)}.\",lineMultiple:\"Line chart with {numSeries} lines.\",columnSingle:\"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.\",columnMultiple:\"Bar chart with {numSeries} data series.\",\nbarSingle:\"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.\",barMultiple:\"Bar chart with {numSeries} data series.\",pieSingle:\"Pie chart with {numPoints} {#plural(numPoints, slices, slice)}.\",pieMultiple:\"Pie chart with {numSeries} pies.\",scatterSingle:\"Scatter chart with {numPoints} {#plural(numPoints, points, point)}.\",scatterMultiple:\"Scatter chart with {numSeries} data series.\",boxplotSingle:\"Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.\",boxplotMultiple:\"Boxplot with {numSeries} data series.\",\nbubbleSingle:\"Bubble chart with {numPoints} {#plural(numPoints, bubbles, bubble)}.\",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, -1) }and {names[-1]}.\",yAxisDescriptionSingular:\"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}\",yAxisDescriptionPlural:\"The chart has {numAxes} Y axes displaying {#each(names, -1) }and {names[-1]}.\",\ntimeRangeDays:\"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.\"},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 {#plural(series.points.length, points, point)}.\",\ndefaultCombination:\"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.\",line:\"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.\",lineCombination:\"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.\",spline:\"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.\",\nsplineCombination:\"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.\",column:\"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.\",columnCombination:\"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.\",bar:\"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.\",\nbarCombination:\"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.\",pie:\"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, slices, slice)}.\",pieCombination:\"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#plural(series.points.length, slices, slice)}.\",scatter:\"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, points, point)}.\",\nscatterCombination:\"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#plural(series.points.length, points, point)}.\",boxplot:\"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, boxes, box)}.\",boxplotCombination:\"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#plural(series.points.length, boxes, box)}.\",bubble:\"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.\",\nbubbleCombination:\"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.\",map:\"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, areas, area)}.\",mapCombination:\"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#plural(series.points.length, areas, area)}.\",mapline:\"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.\",\nmaplineCombination:\"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.\",mapbubble:\"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.\",mapbubbleCombination:\"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.\"},\ndescription:\"{description}\",xAxisDescription:\"X axis, {name}\",yAxisDescription:\"Y axis, {name}\",nullPointValue:\"No value\",pointAnnotationsDescription:\"{Annotation: #each(annotations). }\"}}}});x(b,\"Accessibility/Options/DeprecatedOptions.js\",[b[\"Core/Utilities.js\"]],function(b){function r(b,g,h){let a,c=0;for(;c\"series\"!==a);return[\"series\"].concat(a)}update(){const a=this.components,b=this.chart;var c=b.options.accessibility;k(b,\"beforeA11yUpdate\");b.types=this.getChartTypes();c=c.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(c);this.getComponentOrder().forEach(function(c){a[c].onChartUpdate();k(b,\"afterA11yComponentUpdate\",\n{name:c,component:a[c]})});this.keyboardNavigation.update(c);!b.highContrastModeActive&&B.isHighContrastModeActive()&&B.setHighContrastTheme(b);k(b,\"afterA11yUpdate\",{accessibility:this})}destroy(){const a=this.chart||{},b=this.components;Object.keys(b).forEach(function(a){b[a].destroy();b[a].destroyBase()});this.proxyProvider&&this.proxyProvider.destroy();a.announcerContainer&&p(a.announcerContainer);this.keyboardNavigation&&this.keyboardNavigation.destroy();a.renderTo&&a.renderTo.setAttribute(\"aria-hidden\",\n!0);a.focusElement&&a.focusElement.removeFocusBorder()}getChartTypes(){const a={};this.chart.series.forEach(function(b){a[b.type]=1});return Object.keys(a)}}(function(b){function c(){this.accessibility&&this.accessibility.destroy()}function f(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());const a=this.accessibility;a&&!a.zombie&&(a.proxyProvider.updateProxyElementPositions(),a.getComponentOrder().forEach(function(b){a.components[b].onChartRender()}))}function k(a){if(a=\na.options.accessibility)a.customComponents&&(this.options.accessibility.customComponents=a.customComponents,delete a.customComponents),t(!0,this.options.accessibility,a),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility);this.a11yDirty=!0}function p(){let a=this.accessibility;const c=this.options.accessibility;c&&c.enabled?a&&!a.zombie?a.update():(this.accessibility=a=new b(this),!a.zombie)&&a.update():a?(a.destroy&&a.destroy(),delete this.accessibility):\nthis.renderTo.setAttribute(\"aria-hidden\",!0)}function q(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}const r=[];b.i18nFormat=m.i18nFormat;b.compose=function(b,t,v,u,w,y){l.compose(b);a.compose(u);g.compose(b,t);h.compose(b);e.compose(b,v,u);m.compose(b);x.compose(b,w);y&&d.compose(b,y);n.pushUnique(r,b)&&(b.prototype.updateA11yEnabled=p,z(b,\"destroy\",c),z(b,\"render\",f),z(b,\"update\",k),[\"addSeries\",\"init\"].forEach(a=>{z(b,a,function(){this.a11yDirty=!0})}),[\"afterApplyDrilldown\",\n\"drillupall\"].forEach(a=>{z(b,a,function(){const a=this.accessibility;a&&!a.zombie&&a.update()})}));n.pushUnique(r,v)&&z(v,\"update\",q);n.pushUnique(r,u)&&[\"update\",\"updatedData\",\"remove\"].forEach(a=>{z(u,a,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})})}})(E||(E={}));t(!0,b,K,{accessibility:{highContrastTheme:A},lang:H});return E});x(b,\"masters/modules/accessibility.src.js\",[b[\"Core/Globals.js\"],b[\"Accessibility/Accessibility.js\"],b[\"Accessibility/AccessibilityComponent.js\"],b[\"Accessibility/Utils/ChartUtilities.js\"],\nb[\"Accessibility/Utils/HTMLUtilities.js\"],b[\"Accessibility/KeyboardNavigationHandler.js\"],b[\"Accessibility/Components/SeriesComponent/SeriesDescriber.js\"]],function(b,r,n,q,m,w,x){b.i18nFormat=r.i18nFormat;b.A11yChartUtilities=q;b.A11yHTMLUtilities=m;b.AccessibilityComponent=n;b.KeyboardNavigationHandler=w;b.SeriesAccessibilityDescriber=x;r.compose(b.Chart,b.Legend,b.Point,b.Series,b.SVGElement,b.RangeSelector)})});\n//# sourceMappingURL=accessibility.js.map","/*\n Highcharts JS v11.0.0 (2023-04-26)\n\n Highcharts Drilldown module\n\n Author: Torstein Honsi\n License: www.highcharts.com/license\n\n*/\n'use strict';(function(b){\"object\"===typeof module&&module.exports?(b[\"default\"]=b,module.exports=b):\"function\"===typeof define&&define.amd?define(\"highcharts/modules/drilldown\",[\"highcharts\"],function(q){b(q);b.Highcharts=q;return b}):b(\"undefined\"!==typeof Highcharts?Highcharts:void 0)})(function(b){function q(b,g,l,q){b.hasOwnProperty(g)||(b[g]=q.apply(null,l),\"function\"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent(\"HighchartsModuleLoaded\",{detail:{path:g,module:b[g]}})))}b=b?b._modules:\n{};q(b,\"Extensions/Breadcrumbs/BreadcrumbsDefaults.js\",[],function(){return{lang:{mainBreadcrumb:\"Main\"},options:{buttonTheme:{fill:\"none\",height:18,padding:2,\"stroke-width\":0,zIndex:7,states:{select:{fill:\"none\"}},style:{color:\"#334eff\"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:\"plotBox\",rtl:!1,position:{align:\"left\",verticalAlign:\"top\",x:0,y:void 0},separator:{text:\"/\",style:{color:\"#666666\",fontSize:\"0.8em\"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7}}});q(b,\"Extensions/Breadcrumbs/Breadcrumbs.js\",\n[b[\"Extensions/Breadcrumbs/BreadcrumbsDefaults.js\"],b[\"Core/Chart/Chart.js\"],b[\"Core/FormatUtilities.js\"],b[\"Core/Utilities.js\"]],function(b,g,l,q){function H(){if(this.breadcrumbs){const f=this.resetZoomButton&&this.resetZoomButton.getBBox(),d=this.breadcrumbs.options;f&&\"right\"===d.position.align&&\"plotBox\"===d.relativeTo&&this.breadcrumbs.alignBreadcrumbsGroup(-f.width-d.buttonSpacing)}}function I(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function J(){const f=this.breadcrumbs;\nif(f&&!f.options.floating&&f.level){var d=f.options,h=d.buttonTheme;h=(h.height||0)+2*(h.padding||0)+d.buttonSpacing;d=d.position.verticalAlign;\"bottom\"===d?(this.marginBottom=(this.marginBottom||0)+h,f.yOffset=h):\"middle\"!==d?(this.plotTop+=h,f.yOffset=-h):f.yOffset=void 0}}function z(){this.breadcrumbs&&this.breadcrumbs.redraw()}function D(f){!0===f.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}const {format:x}=l,{addEvent:A,defined:E,extend:B,fireEvent:F,isString:O,\nmerge:y,objectEach:G,pick:k}=q,v=[];class p{static compose(f,d){q.pushUnique(v,f)&&(A(g,\"destroy\",I),A(g,\"afterShowResetZoom\",H),A(g,\"getMargins\",J),A(g,\"redraw\",z),A(g,\"selection\",D));q.pushUnique(v,d)&&B(d.lang,b.lang)}constructor(f,d){this.elementList={};this.isDirty=!0;this.level=0;this.list=[];d=y(f.options.drilldown&&f.options.drilldown.drillUpButton,p.defaultOptions,f.options.navigation&&f.options.navigation.breadcrumbs,d);this.chart=f;this.options=d||{}}updateProperties(f){this.setList(f);\nthis.setLevel();this.isDirty=!0}setList(f){this.list=f}setLevel(){this.level=this.list.length&&this.list.length-1}getLevel(){return this.level}getButtonText(f){const d=this.chart,h=this.options;var b=d.options.lang;const g=k(h.format,h.showFullPath?\"{level.name}\":\"\\u2190 {level.name}\");b=b&&k(b.drillUpText,b.mainBreadcrumb);f=h.formatter&&h.formatter(f)||x(g,{level:f.levelOptions},d)||\"\";(O(f)&&!f.length||\"\\u2190 \"===f)&&E(b)&&(f=h.showFullPath?b:\"\\u2190 \"+b);return f}redraw(){this.isDirty&&this.render();\nthis.group&&this.group.align();this.isDirty=!1}render(){const f=this.chart,d=this.options;!this.group&&d&&(this.group=f.renderer.g(\"breadcrumbs-group\").addClass(\"highcharts-no-tooltip highcharts-breadcrumbs\").attr({zIndex:d.zIndex}).add());d.showFullPath?this.renderFullPathButtons():this.renderSingleButton();this.alignBreadcrumbsGroup()}renderFullPathButtons(){this.destroySingleButton();this.resetElementListState();this.updateListElements();this.destroyListElements()}renderSingleButton(){const f=\nthis.chart;var d=this.list;const b=this.options.buttonSpacing;this.destroyListElements();const K=this.group?this.group.getBBox().width:b;d=d[d.length-2];!f.drillUpButton&&0{if(b||!f[g].updated)d=f[g],d.button&&d.button.destroy(),d.separator&&d.separator.destroy(),delete d.button,delete d.separator,delete f[g]});b&&(this.elementList={})}destroySingleButton(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)}resetElementListState(){G(this.elementList,b=>{b.updated=!1})}updateListElements(){const b=this.elementList,\nd=this.options.buttonSpacing,g=this.list,k=this.options.rtl,l=k?-1:1,p=function(a,c){return l*a.getBBox().width+l*c},q=function(a,c,m){a.translate(c-a.getBBox().width,m)};let t=this.group?p(this.group,d):d,u,c;for(let a=0,e=g.length;a{a.isDirtyData=!0}),c.mapView.setView(void 0,1));c.series.forEach(a=>\n{a.isDrilling=!1});p(c,\"afterApplyDrilldown\")})):a.options&&a.options._levelNumber===e&&a.remove(!1)})}));c.mapView||(this.resetZoomButton&&(this.resetZoomButton.hide(),delete this.resetZoomButton),this.pointer.reset(),p(this,\"afterDrilldown\"),this.redraw(),p(this,\"afterApplyDrilldown\"))};const N=function(c){const a=[];(c=c.drilldownLevels)&&c.length&&(a[0]||a.push({level:0,levelOptions:c[0].seriesOptions}),c.forEach(function(c,b){c.levelNumber+1>a[a.length-1].level&&a.push({level:c.levelNumber+1,\nlevelOptions:f({name:c.lowerSeries.name},c.pointOptions)})}));return a};l.prototype.drillUp=function(c){if(this.drilldownLevels&&0!==this.drilldownLevels.length){p(this,\"beforeDrillUp\");for(var a=this,b=a.drilldownLevels,d=b[b.length-1].levelNumber,f=a.series,g=a.drilldownLevels.length,k=function(c,b){let e;f.forEach(function(a){a.options._ddSeriesId===c._ddSeriesId&&(e=a)});e=e||a.addSeries(c,!1);e.type===b.type&&e.animateDrillupTo&&(e.animate=e.animateDrillupTo);if(c===h.seriesPurgedOptions)return e},\nl=c=>{c.remove(!1);a.series.forEach(a=>{a.colorAxis&&(a.isDirtyData=!0);a.options.inactiveOtherPoints=!1});a.redraw()},w=b.length,n,h;w--;){let e,m;h=b[w];if(h.levelNumber===d){b.pop();e=h.lowerSeries;if(!e.chart)for(n=f.length;n--;)if(f[n].options.id===h.lowerSeriesOptions.id&&f[n].options._levelNumber===d+1){e=f[n];break}e.xData=[];e.xAxis&&e.xAxis.names&&(0===g||w===g)&&(e.xAxis.names.length=0);h.levelSeriesOptions.forEach(a=>{m=k(a,e)});p(a,\"drillup\",{seriesOptions:h.seriesPurgedOptions||h.seriesOptions});\nm&&(m.type===e.type&&(m.drilldownLevel=h,m.options.animation=a.options.drilldown.animation,e.animateDrillupFrom&&e.chart&&e.animateDrillupFrom(h)),m.options._levelNumber=d);n=e;a.mapView||n.remove(!1);m&&m.xAxis&&(n=h.oldExtremes,m.xAxis.setExtremes(n.xMin,n.xMax,!1),m.yAxis.setExtremes(n.yMin,n.yMax,!1));h.resetZoomButton&&(a.resetZoomButton=h.resetZoomButton);this.mapView?(n=a.options.drilldown&&a.options.drilldown.animation&&a.options.drilldown.mapZooming,h.levelNumber===d&&c?e.remove(!1):(e.dataLabelsGroup&&\n(e.dataLabelsGroup.destroy(),delete e.dataLabelsGroup),a.mapView&&m&&(n&&(e.isDrilling=!0,m.isDrilling=!0,a.redraw(!1),a.mapView.fitToBounds(e.bounds,void 0,!0,!1)),a.mapView.allowTransformAnimation=!0,p(a,\"afterDrillUp\",{seriesOptions:m?m.userOptions:void 0}),n?a.mapView.setView(void 0,1,!0,{complete:function(){Object.prototype.hasOwnProperty.call(this,\"complete\")&&l(e)}}):(a.mapView.allowTransformAnimation=!1,e.group?e.group.animate({opacity:0},a.options.drilldown.animation,function(){l(e);a.mapView&&\n(a.mapView.allowTransformAnimation=!0)}):(l(e),a.mapView.allowTransformAnimation=!0)),m.isDrilling=!1,a.ddDupes&&(a.ddDupes.length=0),p(a,\"drillupall\")))):(p(a,\"afterDrillUp\"),this.redraw(),this.ddDupes&&(this.ddDupes.length=0),p(a,\"drillupall\"))}}}};k(l,\"afterInit\",function(){const c=this;c.drilldown={chart:c,fadeInGroup:H,update:function(a,e){f(!0,c.options.drilldown,a);h(e,!0)&&c.redraw()}}});k(l,\"render\",function(){(this.xAxis||[]).forEach(function(c){c.ddPoints={};c.series.forEach(function(a){let e,\nb=a.xData||[],f=a.points;for(e=0;e