!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/drilldown
 * @requires highcharts
 *
 * Highcharts Drilldown module
 *
 * (c) 2009-2026 Highsoft AS
 *
 * Author: Torstein Hønsi
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 *
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.Templating):"function"==typeof define&&define.amd?define("highcharts/modules/drilldown",["highcharts/highcharts"],function(t){return e(t,t.Templating)}):"object"==typeof exports?exports["highcharts/modules/drilldown"]=e(t._Highcharts,t._Highcharts.Templating):t.Highcharts=e(t.Highcharts,t.Highcharts.Templating)}("u"<typeof window?this:window,(t,e)=>(()=>{"use strict";var i,o={603:t=>{t.exports=e},944:e=>{e.exports=t}},r={};function l(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={exports:{}};return o[t](i,i.exports,l),i.exports}l.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return l.d(e,{a:e}),e},l.d=(t,e)=>{for(var i in e)l.o(e,i)&&!l.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},l.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};l.d(n,{default:()=>ta});var s=l(944),a=l.n(s);let d={mainBreadcrumb:"Main"};var p=l(603),h=l.n(p);let{doc:c,win:u}=a();function m(t,e,i,o={}){let r="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});let l=r.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===o.passive?-1!==e.indexOf("touch"):o.passive,capture:!1}),l[e]||(l[e]=[]);let s={fn:i,order:"number"==typeof o.order?o.order:1/0};return l[e].push(s),l[e].sort((t,e)=>t.order-e.order),function(){B(t,e,i)}}function f(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function g(t,e,i,o){if(i=i||{},c?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==a())){let o=c.createEvent("Events");o.initEvent(e,!0,!0),i=f(o,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||f(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let o=[],r=t,l=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[e]&&(o.length&&(l=!0),o.unshift.apply(o,r.hcEvents[e])),r=Object.getPrototypeOf(r);l&&o.sort((t,e)=>t.order-e.order),o.forEach(e=>{!1===e.fn.call(t,i,t)&&i.preventDefault()})}o&&!i.defaultPrevented&&o.call(t,i)}function w(t){return y(t)&&"number"==typeof t.nodeType}function b(t){return"string"==typeof t}function v(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function y(t,e){return!!t&&"object"==typeof t&&(!e||!v(t))}function x(t,...e){let i,o=[t,...e],r={},l=function(t,e){return"object"!=typeof t&&(t={}),D(e,function(i,o){if("__proto__"!==o&&"constructor"!==o){let r;!y(i,!0)||(r=i?.constructor,y(i,!0)&&!w(i)&&r?.name&&"Object"!==r.name)||w(i)?t[o]=e[o]:t[o]=l(t[o]||{},i)}}),t};!0===t&&(r=o[1],o=Array.prototype.slice.call(o,2));let n=o.length;for(i=0;i<n;i++)r=l(r,o[i]);return r}function D(t,e,i){for(let o in t)Object.hasOwnProperty.call(t,o)&&e.call(i||t[o],t[o],o,t)}function S(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function B(t,e,i){function o(e,i){let o=t.removeEventListener;o&&o.call(t,e,i,!1)}function r(i){let r,l;t.nodeName&&(e?(r={})[e]=!0:r=i,D(r,function(t,e){if(i[e])for(l=i[e].length;l--;)o(e,i[e][l].fn)}))}let l="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(l,"hcEvents")){let t=l.hcEvents;if(e){let l=t[e]||[];i?(t[e]=l.filter(function(t){return i!==t.fn}),o(e,i)):(r(t),t[e]=[])}else r(t),delete l.hcEvents}}Array.prototype.find;function O(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)}let{format:L}=h(),{composed:E}=a();function A(){if(this.breadcrumbs){let t=this.resetZoomButton&&this.resetZoomButton.getBBox(),e=this.breadcrumbs.options;t&&"right"===e.position.align&&"plotBox"===e.relativeTo&&this.breadcrumbs.alignBreadcrumbsGroup(-t.width-e.buttonSpacing)}}function T(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function P(){let t=this.breadcrumbs;if(t&&!t.options.floating&&t.level){let e=t.options,i=e.buttonTheme,o=(i.height||0)+2*(i.padding||0)+e.buttonSpacing,r=e.position.verticalAlign;"bottom"===r?(this.marginBottom=(this.marginBottom||0)+o,t.yOffset=o):"middle"!==r?(this.plotTop+=o,t.yOffset=-o):t.yOffset=void 0}}function C(){this.breadcrumbs&&this.breadcrumbs.redraw()}function M(t){!0===t.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}class _{static compose(t,e){var i;i="Breadcrumbs",0>E.indexOf(i)&&E.push(i)&&(m(t,"destroy",T),m(t,"afterShowResetZoom",A),m(t,"getMargins",P),m(t,"redraw",C),m(t,"selection",M),f(e.lang,d))}constructor(t,e){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];const i=x(t.options.drilldown&&t.options.drilldown.drillUpButton,_.defaultOptions,t.options.navigation&&t.options.navigation.breadcrumbs,e);this.chart=t,this.options=i||{}}updateProperties(t){this.setList(t),this.setLevel(),this.isDirty=!0}setList(t){this.list=t}setLevel(){this.level=this.list.length&&this.list.length-1}getLevel(){return this.level}getButtonText(t){let e=this.chart,i=this.options,o=e.options.lang,r=S(i.format,i.showFullPath?"{level.name}":"← {level.name}"),l=o&&S(o.drillUpText,o.mainBreadcrumb),n=i.formatter&&i.formatter(t)||L(r,{level:t.levelOptions},e)||"";return(b(n)&&!n.length||"← "===n)&&null!=l&&(n=i.showFullPath?l:"← "+l),n}redraw(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1}render(){let t=this.chart,e=this.options;!this.group&&e&&(this.group=t.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:e.zIndex}).add()),e.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()}renderFullPathButtons(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()}renderSingleButton(){let t=this.chart,e=this.list,i=this.options.buttonSpacing;this.destroyListElements();let o=this.group?this.group.getBBox().width:i,r=e[e.length-2];!t.drillUpButton&&this.level>0?t.drillUpButton=this.renderButton(r,o,i):t.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())}alignBreadcrumbsGroup(t){if(this.group){let e=this.options,i=e.buttonTheme,o=e.position,r="chart"===e.relativeTo||"spacingBox"===e.relativeTo?void 0:"plotBox",l=this.group.getBBox(),n=2*(i.padding||0)+e.buttonSpacing;o.width=l.width+n,o.height=l.height+n;let s=x(o);t&&(s.x+=t),this.options.rtl&&(s.x+=o.width),s.y=S(s.y,this.yOffset,0),this.group.align(s,!0,r)}}renderButton(t,e,i){let o=this,r=this.chart,l=o.options,n=x(l.buttonTheme),s=r.renderer.button(o.getButtonText(t),e,i,function(e){let i,r=l.events&&l.events.click;r&&(i=r.call(o,e,t,o)),!1!==i&&(l.showFullPath?e.newLevel=t.level:e.newLevel=o.level-1,g(o,"up",e))},n).addClass("highcharts-breadcrumbs-button").add(o.group);return r.styledMode||s.attr(l.style),s}renderSeparator(t,e){let i=this.chart,o=this.options.separator,r=i.renderer.label(o.text,t,e,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return i.styledMode||r.css(o.style),r}update(t){x(!0,this.options,t),this.destroy(),this.isDirty=!0}updateSingleButton(){let t=this.chart,e=this.list[this.level-1];t.drillUpButton&&t.drillUpButton.attr({text:this.getButtonText(e)})}destroy(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0}destroyListElements(t){let e=this.elementList;D(e,(i,o)=>{(t||!e[o].updated)&&((i=e[o]).button&&i.button.destroy(),i.separator&&i.separator.destroy(),delete i.button,delete i.separator,delete e[o])}),t&&(this.elementList={})}destroySingleButton(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)}resetElementListState(){D(this.elementList,t=>{t.updated=!1})}updateListElements(){let t=this.elementList,e=this.options.buttonSpacing,i=this.list,o=this.options.rtl,r=o?-1:1,l=function(t,e){return r*t.getBBox().width+r*e},n=function(t,e,i){t.translate(e-t.getBBox().width,i)},s=this.group?l(this.group,e):e,a,d;for(let p=0,h=i.length;p<h;++p){let c,u,m=p===h-1;t[(d=i[p]).level]?(c=(a=t[d.level]).button,a.separator||m?a.separator&&m&&(a.separator.destroy(),delete a.separator):(s+=r*e,a.separator=this.renderSeparator(s,e),o&&n(a.separator,s,e),s+=l(a.separator,e)),t[d.level].updated=!0):(c=this.renderButton(d,s,e),o&&n(c,s,e),s+=l(c,e),m||(u=this.renderSeparator(s,e),o&&n(u,s,e),s+=l(u,e)),t[d.level]={button:c,separator:u,updated:!0}),c&&c.setState(2*!!m)}}}_.defaultOptions={buttonSpacing:5,buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#334eff"}},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};let I={activeAxisLabelStyle:{cursor:"pointer",color:"#0022ff",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",color:"#0022ff",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}},mapZooming:!0},{animObject:k}=a();function V(t,e,i,o){t[i?"addClass":"removeClass"]("highcharts-drilldown-point"),o||t.css({cursor:e})}function Z(t){let e=this,i=e.chart,{drilldownLevels:o,styledMode:r}=i,l=k(i.options.drilldown?.animation),{xAxis:n,yAxis:s}=this;if(!t){let t;o?.forEach(i=>{e.options._ddSeriesId===i.lowerSeriesOptions._ddSeriesId&&(t=i.shapeArgs)&&(t.x=(t.x||0)+(i.plotLeft??n.pos)-n.pos,t.y=(t.y||0)+(i.plotTop??s.pos)-s.pos,r||(t.fill=i.color))}),e.points.forEach(i=>{i.graphic?.attr(t).animate(f(i.shapeArgs,{fill:i.color||e.color}),l)}),this.dataLabelsGroups?.forEach(t=>i.drilldown?.fadeInGroup(t)),delete this.animate}}function j(t){let e=this,i=k((e.chart.options.drilldown||{}).animation);e.trackerGroups?.forEach(t=>{"dataLabelsGroup"===t?e.dataLabelsGroups?.forEach(t=>{t?.on("mouseover",()=>{})}):e[t]?.on("mouseover")});let o=e.group,r=o!==e.chart.columnGroup;r&&delete e.group,(this.points||this.data).forEach(l=>{let n=l.graphic,s=t.shapeArgs;if(n&&s){let a=()=>{n.destroy(),o&&r&&(o=o.destroy())};delete l.graphic,e.chart.styledMode||(s.fill=t.color),i.duration?n.animate(s,x(i,{complete:a})):(n.attr(s),a())}})}function G(t){let e=this,i=e.drilldownLevel,o=k(e.chart.options.drilldown?.animation);t||(e.points.forEach(t=>{let e=t.dataLabel;t.graphic&&t.graphic.hide(),e&&(e.hidden="hidden"===e.attr("visibility"),e.hidden||(e.hide(),e.connector?.hide()))}),O(()=>{if(e.points){let t=[];e.data.forEach(e=>{t.push(e)}),e.nodes&&(t=t.concat(e.nodes)),t.forEach((t,e)=>{let o=e===(i&&i.pointIndex)?"show":"fadeIn",r=t.dataLabel;t.graphic&&t.visible&&t.graphic[o]("show"===o||void 0),r&&!r.hidden&&(r.fadeIn(),r.connector?.fadeIn())})}},Math.max(o.duration-50,0)),delete this.animate)}function N(t){let e=this,i=e.chart,o=e.group;i&&o&&e.options&&i.options.drilldown?.animation&&(t&&i.mapView?(o.attr({opacity:.01}),i.mapView.allowTransformAnimation=!1,e.options.inactiveOtherPoints=!0,e.options.enableMouseTracking=!1):(o.animate({opacity:1},i.options.drilldown.animation,()=>{e.options&&(e.options.inactiveOtherPoints=!1,e.options.enableMouseTracking=e.userOptions?.enableMouseTracking??!0)}),e.dataLabelsGroups?.forEach(t=>i.drilldown?.fadeInGroup(t))))}function U(){let t=this.chart;t?.mapView&&(t.mapView.allowTransformAnimation=!1),this.options&&(this.options.inactiveOtherPoints=!0)}function F(t){let e=this.chart,i=this.group;e&&i&&(t?(i.attr({opacity:.01}),this.options&&(this.options.inactiveOtherPoints=!0)):(i.animate({opacity:1},(e.options.drilldown||{}).animation),this.dataLabelsGroups?.forEach(t=>e.drilldown?.fadeInGroup(t))))}function H(){return this.drilldown&&!this.unbindDrilldownClick&&(this.unbindDrilldownClick=m(this,"click",R)),this}function z(){let t=this.series,e=t.chart.styledMode;this.drilldown&&t.halo&&"hover"===this.state?V(t.halo,"pointer",!0,e):t.halo&&V(t.halo,"auto",!1,e)}function R(t){let e=this.series;e.xAxis&&!1===(e.chart.options.drilldown||{}).allowPointDrilldown?e.xAxis.drilldownCategory(this.x,t):this.runDrilldown(void 0,void 0,t)}function W(t){let e=t.options||{};e.drilldown&&!this.unbindDrilldownClick?this.unbindDrilldownClick=m(this,"click",R):!e.drilldown&&void 0!==e.drilldown&&this.unbindDrilldownClick&&(this.unbindDrilldownClick=this.unbindDrilldownClick())}function q(){let t=this.chart,e=t.options.drilldown?.activeDataLabelStyle||{},i=t.renderer,o=t.styledMode;for(let t of this.points){var r;let l=(v(r=t.options.dataLabels)?r:[r])[0]||{},n=t.dlOptions||l.style||{};if(t.drilldown&&t.dataLabel){if("contrast"===e.color&&!o){let e=b(t.color)&&t.color||b(this.color)&&this.color;b(e)&&(n.color=i.getContrast(e))}l&&l.color&&(n.color=l.color),t.dataLabel.addClass("highcharts-drilldown-data-label"),o||t.dataLabel.css(e).css(n)}}}function J(){let t=this.chart.styledMode;for(let e of this.points)e.drilldown&&e.graphic&&V(e.graphic,"pointer",!0,t)}function K(t){let e=this.chart,i=this.points,o=e.drilldownLevels||[],r=o[o.length-1],l=k(e.options.drilldown?.animation);if(this.is("item")&&(l.duration=0),this.center){let o=r.shapeArgs||{},n=o.start||0,s=((o.end||0)-n)/this.points.length,a=e.styledMode;if(o.y=(o.y||0)+((r.plotTop??e.plotTop)-e.plotTop)/2,!t){let t,d;for(let e=0,p=i.length;e<p;++e){t=(d=i[e]).shapeArgs||{},a||(o.fill=r.color,t.fill=d.color);let p=x(o,{start:n+e*s,end:n+(e+1)*s});d.graphic?.attr(p).animate(t,l)}this.dataLabelsGroups?.forEach(t=>e.drilldown?.fadeInGroup(t)),delete this.animate}}}function Q(){this.runDrilldown()}function X(t,e,i){let o=this.series,r=o.chart,l=r.options.drilldown||{},n=(l.series||[]).length,s;for(r.ddDupes||(r.ddDupes=[]),r.colorCounter=r.symbolCounter=0;n--&&!s;)l.series&&l.series[n].id===this.drilldown&&this.drilldown&&-1===r.ddDupes.indexOf(this.drilldown)&&(s=l.series[n],r.ddDupes.push(this.drilldown));g(r,"drilldown",{point:this,seriesOptions:s,category:e,originalEvent:i,points:void 0!==e&&o.xAxis.getDDPoints(e).slice(0)},e=>{let i=e.point.series?.chart,o=e.seriesOptions;i&&o&&(t?i.addSingleSeriesAsDrilldown(e.point,o):i.addSeriesAsDrilldown(e.point,o))})}let Y=function(t,e){let i=t.prototype.pointClass,o=i.prototype;if(!o.doDrilldown){let{column:r,map:l,pie:n}=e;if(m(i,"afterInit",H),m(i,"afterSetState",z),m(i,"update",W),o.doDrilldown=Q,o.runDrilldown=X,m(t,"afterDrawDataLabels",q),m(t,"afterDrawTracker",J),r){let t=r.prototype;t.animateDrilldown=Z,t.animateDrillupFrom=j,t.animateDrillupTo=G}if(l){let t=l.prototype;t.animateDrilldown=N,t.animateDrillupFrom=U,t.animateDrillupTo=F}if(n){let t=n.prototype;t.animateDrilldown=K,t.animateDrillupFrom=j,t.animateDrillupTo=G}}},{animObject:$}=a(),{noop:tt}=a(),te=1;function ti(t,e){this.getDDPoints(t).forEach(function(i){y(i)&&i.series&&i.series.visible&&i.runDrilldown&&i.runDrilldown(!0,t,e)}),this.chart.applyDrilldown()}function to(t){return this.ddPoints&&this.ddPoints[t]||[]}function tr(t){let e=[],i=t.drilldownLevels;return i&&i.length&&(e[0]||e.push({level:0,levelOptions:i[0].seriesOptions}),i.forEach(function(t){let i=e[e.length-1];t.levelNumber+1>i.level&&e.push({level:t.levelNumber+1,levelOptions:x({name:t.lowerSeries.name},t.pointOptions)})})),e}class tl{constructor(t){this.chart=t}addSeriesAsDrilldown(t,e){let i=this.chart||this;if(g(this,"addSeriesAsDrilldown",{seriesOptions:e}),i.mapView){if(t.series.isDrilling=!0,i.series.forEach(t=>{t.options.inactiveOtherPoints=!0,t.dataLabelsGroups?.forEach(t=>t?.destroy()),t.dataLabelsGroups=[],t.points?.forEach(t=>{t.dataLabels&&(t.dataLabels=[])})}),i.options.drilldown&&!i.mapView.projection.hasGeoProjection&&I){var o;let t;null==(o=i.options.drilldown,!function t(e,i,o,r){D(e,function(l,n){y(l,!0)&&!l.nodeType?(o[n]=v(l)?[]:{},t(l,i[n]||{},o[n],r+1),0===Object.keys(o[n]).length&&("colorAxis"!==n||0!==r)&&delete o[n]):(e[n]!==i[n]||n in e&&!(n in i))&&"__proto__"!==n&&"constructor"!==n&&(o[n]=e[n])})}(o,I,t={},0),t).mapZooming&&(i.options.drilldown.mapZooming=!1)}if(i.options.drilldown&&i.options.drilldown.animation&&i.options.drilldown.mapZooming){i.mapView.allowTransformAnimation=!0;let o=$(i.options.drilldown.animation);if("boolean"!=typeof o){let r=o.complete,l=function(o){o&&o.applyDrilldown&&i.mapView&&(i.addSingleSeriesAsDrilldown(t,e),i.applyDrilldown(),i.mapView.allowTransformAnimation=!1)};o.complete=function(){r&&r.apply(this,arguments),l.apply(this,arguments)}}t.zoomTo(o)}else i.addSingleSeriesAsDrilldown(t,e),i.applyDrilldown()}else i.addSingleSeriesAsDrilldown(t,e),i.applyDrilldown()}addSingleSeriesAsDrilldown(t,e){let i=this.chart||this,o=t.series,r=o.xAxis,l=o.yAxis,n=r&&i.inverted?l:r,s=r&&i.inverted?r:l,a=i.styledMode?{colorIndex:t.colorIndex??o.colorIndex}:{color:t.color||o.color},d=o.options._levelNumber||0;i.drilldownLevels||(i.drilldownLevels=[]),e=f(f({_ddSeriesId:te++},a),e);let p=[],h=[],c;(c=i.drilldownLevels[i.drilldownLevels.length-1])&&c.levelNumber!==d&&(c=void 0),o.chart.series.forEach(t=>{t.xAxis===r&&(t.options._ddSeriesId=t.options._ddSeriesId||te++,t.options.colorIndex=t.colorIndex,t.options._levelNumber=t.options._levelNumber||d,c?(p=c.levelSeries,h=c.levelSeriesOptions):(p.push(t),t.purgedOptions=x({_ddSeriesId:t.options._ddSeriesId,_levelNumber:t.options._levelNumber,selected:t.options.selected},t.userOptions),h.push(t.purgedOptions)))}),r?.names&&(r.names.length=0);let u=i.addSeries(e,!1);u.options._levelNumber=d+1,r&&(r.userMin=r.userMax=void 0,l.userMin=l.userMax=void 0),u.isDrilling=!0;let m=f({levelNumber:d,seriesOptions:o.options,seriesPurgedOptions:o.purgedOptions,levelSeriesOptions:h,levelSeries:p,shapeArgs:t.shapeArgs,bBox:t.graphic?t.graphic.getBBox():{},color:t.isNull?"rgba(0,0,0,0)":a.color,lowerSeries:u,lowerSeriesOptions:e,plotTop:s?.pos??i.plotTop,plotLeft:n?.pos??i.plotLeft,pointOptions:t.options,pointIndex:t.index,oldExtremes:{xMin:r?.userMin,xMax:r?.userMax,yMin:l?.userMin,yMax:l?.userMax},resetZoomButton:c&&c.levelNumber===d?void 0:i.resetZoomButton},a);i.drilldownLevels.push(m),o.type===u.type&&(u.animate=u.animateDrilldown||tt,u.options.animation=!0)}applyDrilldown(){let t,e=this.chart||this,i=e.options.drilldown,o=e.drilldownLevels;o&&o.length>0&&(t=o[o.length-1].levelNumber,e.hasCartesianSeries=o.some(t=>t.lowerSeries?.isCartesian),(e.drilldownLevels||[]).forEach(o=>{e.mapView&&i?.mapZooming&&(e.redraw(),o.lowerSeries.isDrilling=!1,e.mapView.fitToBounds(o.lowerSeries.bounds),o.lowerSeries.isDrilling=!0),o.levelNumber===t&&o.levelSeries.forEach(r=>{if(e.mapView){if(r.options&&r.options._levelNumber===t&&r.group){let t={};i&&(t=i.animation),r.group.animate({opacity:0},t,()=>{r.remove(!1),o.levelSeries.filter(t=>Object.keys(t).length).length||(e.resetZoomButton&&(e.resetZoomButton.hide(),delete e.resetZoomButton),e.pointer?.reset(),g(e,"afterDrilldown"),e.mapView&&(e.series.forEach(t=>{t.isDirtyData=!0,t.isDrilling=!1}),e.mapView.fitToBounds(void 0,void 0),e.mapView.allowTransformAnimation=!0),g(e,"afterApplyDrilldown"))})}}else r.options&&r.options._levelNumber===t&&r.remove(!1)})})),e.mapView||(e.resetZoomButton&&(e.resetZoomButton.hide(),delete e.resetZoomButton),e.pointer?.reset(),g(e,"afterDrilldown"),e.hasCartesianSeries||e.axes.forEach(t=>{t.destroy(!0),t.init(e,x(t.userOptions,t.options))}),e.redraw(i?.animation),g(e,"afterApplyDrilldown"))}drillUp(t){let e=this.chart||this;if(!e.drilldownLevels||0===e.drilldownLevels.length)return;g(e,"beforeDrillUp");let i=e.drilldownLevels,o=i[i.length-1].levelNumber,r=e.series,l=e.drilldownLevels.length,n=e.options.drilldown||{},s=(t,i)=>{let o;if(r.forEach(e=>{e.options._ddSeriesId===t._ddSeriesId&&(o=e)}),(o=o||e.addSeries(t,!1)).type===i.type&&o.animateDrillupTo&&(o.animate=o.animateDrillupTo),t===h.seriesPurgedOptions)return o},a=t=>{t.remove(!1),e.series.forEach(t=>{t.colorAxis&&(t.isDirtyData=!0),t.options.inactiveOtherPoints=!1,t.group&&t.visible&&t.group.attr({opacity:1})}),e.redraw()},d=i.length,p,h,c;for(e.symbolCounter=e.colorCounter=0;d--;){let u,m;if((h=i[d]).levelNumber===o){if(i.pop(),!(u=h.lowerSeries).chart){for(p=r.length;p--;)if(r[p].options.id===h.lowerSeriesOptions.id&&r[p].options._levelNumber===o+1){u=r[p];break}}u.dataTable.setColumn("x",[]),u.xAxis&&u.xAxis.names&&(0===l||d===l-1)&&(u.xAxis.names.length=0),h.levelSeriesOptions.forEach(t=>{let e=s(t,u);e&&(m=e)}),g(e,"drillup",{seriesOptions:h.seriesPurgedOptions||h.seriesOptions}),m&&(m.type===u.type&&(m.drilldownLevel=h,m.options.animation=n.animation,u.chart&&u.animateDrillupFrom?.(h)),m.options._levelNumber=o);let f=u;if(e.mapView||f.remove(!1),m?.xAxis&&(c=h.oldExtremes,m.xAxis.setExtremes(c.xMin,c.xMax,!1),m.yAxis.setExtremes(c.yMin,c.yMax,!1)),h.resetZoomButton&&(e.resetZoomButton=h.resetZoomButton),e.mapView){let i=h.levelNumber===o&&t,r=n.animation&&n.mapZooming;i?u.remove(!1):(u.dataLabelsGroups?.forEach(t=>{t?.destroy()}),u.dataLabelsGroups=[],e.mapView&&m&&(r&&(u.isDrilling=!0,m.isDrilling=!0,e.redraw(!1),e.mapView.fitToBounds(u.bounds,void 0,!0,!1)),e.mapView.allowTransformAnimation=!0,g(e,"afterDrillUp",{seriesOptions:m?m.userOptions:void 0}),r?(e.mapView.setView(void 0,e.mapView.minZoom??1,!0,{complete:function(){Object.prototype.hasOwnProperty.call(this,"complete")&&a(u)}}),m._hasTracking=!1):(e.mapView.allowTransformAnimation=!1,u.group?u.group.animate({opacity:0},n.animation,()=>{a(u),e.mapView&&(e.mapView.allowTransformAnimation=!0)}):(a(u),e.mapView.allowTransformAnimation=!0)),m.isDrilling=!1))}else g(e,"afterDrillUp")}}e.mapView||t||e.redraw(n.animation),e.ddDupes&&(e.ddDupes.length=0),g(e,"drillupall")}fadeInGroup(t){let e=$(this.chart.options.drilldown?.animation);t&&(t.hide(),O(()=>{t?.added&&t.fadeIn()},Math.max(e.duration-50,0)))}update(t,e=!0){let i=this.chart;x(!0,i.options.drilldown,t),e&&i.redraw()}}!function(t){function e(t){let e=this.chart,i=this.getLevel()-t.newLevel,o=i>1;for(let t=0;t<i;t++)t===i-1&&(o=!1),e.drillUp(o)}function i(){let t=this.options.drilldown,e=t&&t.breadcrumbs;this.breadcrumbs||(this.breadcrumbs=new _(this,e)),this.breadcrumbs.updateProperties(tr(this))}function o(){this.breadcrumbs&&this.breadcrumbs.updateProperties(tr(this))}function r(){this.drilldown=new tl(this)}function l(){this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy())}function n(){this.resetZoomButton&&this.showResetZoom()}function s(){(this.xAxis||[]).forEach(t=>{let e={};t.ddPoints=e,t.series.forEach(t=>{let i=t.getColumn("x"),o=t.points,r=t.options.data||[];for(let l=0,n=i.length,s;l<n;l++)if("number"!=typeof(s=r[l])&&(s=t.pointClass.prototype.optionsToObject.call({series:t},s)).drilldown){e[i[l]]||(e[i[l]]=[]);let r=l-(t.cropStart||0);e[i[l]].push(!o||!(r>=0)||!(r<o.length)||o[r])}}),D(t.ticks,t=>t.drillable())})}function a(t){let e=this.breadcrumbs,i=t.options.drilldown&&t.options.drilldown.breadcrumbs;e&&i&&e.update(i)}function d(t){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:this.newOpacity??1},t||{duration:250})}function p(){let t=this.pos,e=this.label,i=this.axis,o="xAxis"===i.coll&&i.getDDPoints,r=o&&i.getDDPoints(t),l=i.chart.styledMode;o&&(e&&r&&r.length?(e.drillable=!0,e.basicStyles||l||(e.basicStyles=x(e.styles)),e.addClass("highcharts-drilldown-axis-label"),e.removeOnDrillableClick&&B(e.element,"click"),e.removeOnDrillableClick=m(e.element,"click",function(e){e.preventDefault(),i.drilldownCategory(t,e)}),!l&&i.chart.options.drilldown&&e.css(i.chart.options.drilldown.activeAxisLabelStyle||{})):e&&e.drillable&&e.removeOnDrillableClick&&(l||(e.styles={},e.element.removeAttribute("style"),e.css(e.basicStyles)),e.removeOnDrillableClick(),e.removeClass("highcharts-drilldown-axis-label")))}t.compose=function(t,h,c,u,f,g,w){Y(u,f);let b=h.prototype;if(!b.drillUp){let u=g.prototype.Element,f=tl.prototype,v=t.prototype,y=u.prototype,x=w.prototype;v.drilldownCategory=ti,v.getDDPoints=to,_.compose(h,c),m(_,"up",e),b.addSeriesAsDrilldown=f.addSeriesAsDrilldown,b.addSingleSeriesAsDrilldown=f.addSingleSeriesAsDrilldown,b.applyDrilldown=f.applyDrilldown,b.drillUp=f.drillUp,m(h,"afterDrilldown",i),m(h,"afterDrillUp",o),m(h,"afterInit",r),m(h,"drillup",l),m(h,"drillupall",n),m(h,"render",s),m(h,"update",a),c.drilldown=I,y.fadeIn=d,x.drillable=p}}}(i||(i={}));let tn=i,ts=a();ts.Breadcrumbs=ts.Breadcrumbs||_,tn.compose(ts.Axis,ts.Chart,ts.defaultOptions,ts.Series,ts.seriesTypes,ts.SVGRenderer,ts.Tick);let ta=a();return n.default})());