!/**
 * Highcharts Gantt JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/treegrid
 * @requires highcharts
 *
 * Tree Grid
 *
 * (c) 2016-2026 Highsoft AS
 * Author: Jon Arild Nygard
 *
 * 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.StackItem,t._Highcharts.Axis,t._Highcharts.Color):"function"==typeof define&&define.amd?define("highcharts/modules/treegrid",["highcharts/highcharts"],function(t){return e(t,t.StackItem,t.Axis,t.Color)}):"object"==typeof exports?exports["highcharts/modules/treegrid"]=e(t._Highcharts,t._Highcharts.StackItem,t._Highcharts.Axis,t._Highcharts.Color):t.Highcharts=e(t.Highcharts,t.Highcharts.StackItem,t.Highcharts.Axis,t.Highcharts.Color)}("u"<typeof window?this:window,(t,e,i,s)=>(()=>{"use strict";let o;var r,n,a,l={184:t=>{t.exports=e},532:t=>{t.exports=i},620:t=>{t.exports=s},944:e=>{e.exports=t}},d={};function h(t){var e=d[t];if(void 0!==e)return e.exports;var i=d[t]={exports:{}};return l[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 c={};h.d(c,{default:()=>tq});var p=h(944),f=h.n(p),u=h(184),m=h.n(u);let{addEvent:g,find:k,fireEvent:x,isArray:b,isNumber:y,pick:v}=f();!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 d(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,v(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:v(r.options.threshold,t.min),n.forEach(function(r){o=r["stack"+e.toUpperCase()]??r[e],i.forEach(function(e){if(y(s)&&y(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&&x(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(m())(s,s.options.stackLabels,!1,e,this.stack??"")).total=0)}n=t}}return this.getGraphPath(i)}t.compose=function(t,d){if(!t.keepProps.includes("brokenAxis")){t.keepProps.push("brokenAxis"),g(t,"init",o),g(t,"afterInit",e),g(t,"afterSetTickPositions",s),g(t,"afterSetOptions",i);let h=d.prototype;h.drawBreaks=a,h.gappedPath=l,g(d,"afterGeneratePoints",r),g(d,"afterRender",n)}return t};class d{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||!y(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:d.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:d.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||!y(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(d.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(d.isInBreak(i,t)){o+=i.to-t;break}}return o}constructor(t){this.axis=t}findBreakAt(t,e){return k(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&&y(t)){for(;o--;)d.isInBreak(s[o],t)&&(r=!0,n||(n=v(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=b(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!==d.val2Lin||(delete s.val2lin,delete s.lin2val),r&&(s.userOptions.ordinal=!1,s.lin2val=d.lin2Val,s.val2lin=d.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,h=s.userMin??s.min,c=s.userMax??s.max,p=s.dataMin??h,f=s.dataMax??c,u,m;y(s.threshold)&&(p=Math.min(p??s.threshold,s.threshold),f=Math.max(f??s.threshold,s.threshold)),s.treeGrid?.tree||t.forEach(function(t){l=t.repeat||1/0,y(h)&&y(c)&&(d.isInBreak(t,h)&&(h+=t.to%l-h%l),d.isInBreak(t,c)&&(c-=c%l-t.from%l))}),y(p)&&y(f)&&t.forEach(function(t){for(u=t.from,l=t.repeat||1/0;u-l>p;)u-=l;for(;u<p;)u+=l;for(m=u;m<f;m+=l)e.push({value:m,move:"in"}),e.push({value:m+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,u=p,e.forEach(t=>{1===(a+="in"===t.move?1:-1)&&"in"===t.move&&(u=t.value),0===a&&y(u)&&(o.push({from:u,to:t.value,len:t.value-u-(t.size||0)}),y(h)&&y(c)&&u<c&&t.value>h&&(n+=t.value-u-(t.size||0)))}),i.breakArray=o,y(h)&&y(c)&&y(s.min)&&(i.unitLength=c-h-n+r,x(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=h,s.max=c)}}),v(e,!0)&&s.chart.redraw()}}t.Additions=d}(n||(n={}));let P=n;var A=h(532),O=h.n(A);let{dateFormats:G}=f(),{addEvent:B,defined:I,erase:w,find:T,isArray:E,isNumber:M,merge:N,pick:C,timeUnits:L,wrap:S}=f();function z(t){return f().isObject(t,!0)}function W(t,e){let i={width:0,height:0};if(e.forEach(function(e){let s=t[e],o=0,r=0,n;z(s)&&(o=(n=z(s.label)?s.label:{}).getBBox?n.getBBox().height:0,n.textStr&&!M(n.textPxLength)&&(n.textPxLength=n.getBBox().width),r=M(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 j(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 H(t){if(!0===(this.options.grid||{}).enabled){let{axisTitle:e,height:i,horiz:s,left:o,offset:r,opposite:n,options:l,top:d,width:h}=this,c=this.tickSize(),p=e?.getBBox().width,f=l.title.x,u=l.title.y,m=C(l.title.margin,s?5:10),g=e?this.chart.renderer.fontMetrics(e).f:0,k=(s?d+i:o)+(s?1:-1)*(n?-1:1)*(c?c[0]/2:0)+(this.side===a.bottom?g:0);t.titlePosition.x=s?o-(p||0)/2-m+f:k+(n?h:0)+r+f,t.titlePosition.y=s?k-(n?i:0)+(n?g:-g)/2+r+u:d-m+u}}function R(){let t,{chart:e,options:{grid:i={}},userOptions:s}=this;if(i.enabled&&((t=this.options).labels.align=C(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=N(s,i.columns[o],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),n=new(O())(this.chart,r,"yAxis");n.grid.isColumn=!0,n.grid.columnIndex=o,w(e.axes,n),w(e[this.coll]||[],n),t.push(n)}}}function D(){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],l=(this.tickSize("tick")||[1])[0]*(this.side===a.top||this.side===a.left?-1:1);if("M"===r[0]&&"L"===n[0]&&(this.horiz?(r[2]+=l,n[2]+=l):(r[1]+=l,n[1]+=l)),!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 _(){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&&!I(s.align)&&(!1===e.dateTimeLabelFormats[t.unitName].range||t.count>1)&&(e.labels.align="left",I(s.x)||(e.labels.x=3))):"treegrid"!==this.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function F(t){let e,i=this.options,s=t.userOptions,o=i&&z(i.grid)?i.grid:{};!0===o.enabled&&(e=N(!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&&(I(s.linkedTo)&&!I(s.tickPixelInterval)&&(e.tickPixelInterval=350),!(!I(s.tickPixelInterval)&&I(s.linkedTo))||I(s.tickPositioner)||I(s.tickInterval)||I(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];if(e&&e[0]===s.unitName){r=t;break}}let l=M(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 d=L[a];return this.tickInterval=d*n,this.chart.time.getTimeTicks({unitRange:d,count:n,unitName:a},t,i,this.options.startOfWeek)}})),N(!0,this.options,e),this.horiz&&(i.minPadding=C(s.minPadding,0),i.maxPadding=C(s.maxPadding,0)),M(i.grid.borderWidth)&&(i.tickWidth=i.lineWidth=o.borderWidth))}function V(t){let e=t.userOptions,i=e?.grid||{},s=i.columns;i.enabled&&s&&N(!0,this.options,s[0])}function X(){(this.grid.columns||[]).forEach(t=>t.setScale())}function q(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;E(t.tickSize)?t.tickSize[0]=r:t.tickSize=[r,0]}}function U(){this.axes.forEach(t=>{(t.grid?.columns||[]).forEach(t=>{t.setAxisSize(),t.setAxisTranslation()})})}function $(t){let{grid:e}=this;(e.columns||[]).forEach(e=>e.destroy(t.keepEvents)),e.columns=void 0}function K(t){let e=t.userOptions||{},i=e.grid||{};i.enabled&&I(i.borderColor)&&(e.tickColor=e.lineColor=i.borderColor),this.grid||(this.grid=new tt(this)),this.hiddenLabels=[],this.hiddenMarks=[]}function Y(t){let e=this.label,i=this.axis,s=i.reversed,o=i.chart,r=i.options.grid||{},n=i.options.labels,l=n.align,d=a[i.side],h=t.tickmarkOffset,c=i.tickPositions,p=this.pos-h,f=M(c[t.index+1])?c[t.index+1]-h:(i.max||0)+h,u=i.tickSize("tick"),m=u?u[0]:0,g=u?u[1]/2:0;if(!0===r.enabled){let r,a,h,c;if("top"===d?a=(r=i.top+i.offset)-m:"bottom"===d?r=(a=o.chartHeight-i.bottom+i.offset)+m:(r=i.top+i.len-(i.translate(s?f:p)||0),a=i.top+i.len-(i.translate(s?p:f)||0)),"right"===d?c=(h=o.chartWidth-i.right+i.offset)+m:"left"===d?h=(c=i.left+i.offset)-m:(h=Math.round(i.left+(i.translate(s?f:p)||0))-g,c=Math.min(Math.round(i.left+(i.translate(s?p:f)||0))-g,i.left+i.len)),this.slotWidth=c-h,t.pos.x="left"===l?h:"right"===l?c:h+(c-h)/2,t.pos.y=a+(r-a)/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 J(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&&T(r.options.data,function(t){return t[e.isXAxis?"x":"y"]===i});l&&r.is("gantt")&&(s=N(l),f().seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(s,e.chart)),t.isFirst=n,t.isLast=a,t.point=s}}function Q(){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,d=this.linkedParent?.max,h=l||this.min,c=d||this.max,p=this.tickInterval,f=M(h)&&h>=o+p&&h<r,u=M(h)&&o<h&&o+p>h,m=M(c)&&n>c&&n-p<c,g=M(c)&&c<=n-p&&c>a;!0===e.enabled&&!i&&(this.isXAxis||this.isLinked)&&((u||f)&&!t.startOnTick&&(s[0]=h),(m||g)&&!t.endOnTick&&(s[s.length-1]=c))}function Z(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)))}(r=a||(a={}))[r.top=0]="top",r[r.right=1]="right",r[r.bottom=2]="bottom",r[r.left=3]="left";class tt{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&&(!M(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}}G.E=function(t){return this.dateFormat("%a",t,!0).charAt(0)},G.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{extend:te,isNumber:ti,pick:ts}=f();function to(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||""},d=0,h=0,c,p;"function"==typeof a&&a(l,r);let f=(o[t]||[]).map(e=>{let s=to(e.id,t,i+1,e,o,r),n=e.start||NaN,a=!0===e.milestone?n:e.end||NaN;return c=!ti(c)||n<c?n:c,p=!ti(p)||a>p?a:p,d=d+1+s.descendants,h=Math.max(s.height+1,h),s});return s&&(s.start=ts(s.start,c),s.end=ts(s.end,p)),te(l,{children:f,descendants:d,height:h}),"function"==typeof n&&n(l,r),l}let tr=function(t,e){let i,s;return to("",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)},{addEvent:tn,correctFloat:ta,removeEvent:tl,isObject:td,isNumber:th,pick:tc,wrap:tp}=f();function tf(){this.treeGrid||(this.treeGrid=new tg(this))}function tu(t,e,i,s,o,r,n,a,l){let d,h,c,p=tc(this.options?.labels,r),f=this.pos,u=this.axis,m="treegrid"===u.type,g=t.apply(this,[e,i,s,o,p,n,a,l]);if(m){let{width:t=0,padding:e=5*!u.linkedParent}=p&&td(p.symbol,!0)?p.symbol:{},i=p&&th(p.indentation)?p.indentation:0;d=u.treeGrid.mapOfPosToGridNode,h=d?.[f],c=h?.depth||1,g.x+=t+2*e+(c-1)*i}return g}function tm(t){let e,{pos:i,axis:s,label:o,treeGrid:r,options:n}=this,a=r?.labelIcon,l=o?.element,{treeGrid:d,options:h,chart:c,tickPositions:p}=s,f=d.mapOfPosToGridNode,u=tc(n?.labels,h?.labels),m=u&&td(u.symbol,!0)?u.symbol:{},g=f?.[i],{descendants:k,depth:x}=g||{},b=g&&k&&k>0,y="treegrid"===s.type&&l,v=p.indexOf(i)>-1,P="highcharts-treegrid-node-",A=P+"level-",O=c.styledMode;if(y&&g&&o.removeClass(RegExp(A+".*")).addClass(A+x),t.apply(this,Array.prototype.slice.call(arguments,1)),y&&b){var G;let t,i,s,n,l,h,c,p,f,k,x,b;e=d.isCollapsed(g),G={color:!O&&o.styles.color||"",collapsed:e,group:o.parentGroup,options:m,renderer:o.renderer,show:v,xy:o.xy},i=!(t=this.treeGrid).labelIcon,s=G.renderer,n=G.xy,h=(l=G.options).width||0,c=l.height||0,p=l.padding??this.axis.linkedParent?0:5,f={x:n.x-h/2-p,y:n.y-c/2},k=G.collapsed?90:180,x=G.show&&th(f.y),(b=t.labelIcon)||(t.labelIcon=b=s.path(s.symbols[l.type](l.x||0,l.y||0,h,c)).addClass("highcharts-label-icon").add(G.group)),b[x?"show":"hide"](),s.styledMode||b.attr({cursor:"pointer",fill:tc(G.color,"#666666"),"stroke-width":1,stroke:l.lineColor,strokeWidth:l.lineWidth||0}),b[i?"attr":"animate"]({translateX:f.x,translateY:f.y,rotation:k}),o.addClass(P+(e?"collapsed":"expanded")).removeClass(P+(e?"expanded":"collapsed")),O||o.css({cursor:"pointer"}),[o,a].forEach(t=>{t&&!t.attachedTreeGridEvents&&(tn(t.element,"mouseover",function(){o.addClass("highcharts-treegrid-node-active"),o.renderer.styledMode||o.css({textDecoration:"underline"})}),tn(t.element,"mouseout",function(){let t;t=td(u.style)?u.style:{},o.removeClass("highcharts-treegrid-node-active"),o.renderer.styledMode||o.css({textDecoration:t.textDecoration||"none"})}),tn(t.element,"click",function(){r.toggleCollapse()}),t.attachedTreeGridEvents=!0)})}else a&&(tl(l),o?.css({cursor:"default"}),a.destroy(),r.labelIcon=void 0)}class tg{static compose(t){let e=t.prototype;e.toggleCollapse||(tn(t,"init",tf),tp(e,"getLabelPosition",tu),tp(e,"renderLabel",tm),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(ta(s),ta(i),!1,!1,{trigger:"toggleCollapse"})}t&&e.chart.redraw()}}}var tk=h(620),tx=h.n(tk);let{extend:tb,isArray:ty,isNumber:tv,isObject:tP,merge:tA,pick:tO,relativeLength:tG}=f(),{getLevelOptions:tB}={getColor:function(t,e){let i,s,o,r,n,a,l=e.index,d=e.mapOptionsToLevel,h=e.parentColor,c=e.parentColorIndex,p=e.series,f=e.colors,u=e.siblings,m=p.points,g=p.chart.options.chart;if(t){let k;i=m[t.i],s=d[t.level]||{},i&&s.colorByPoint&&(r=i.index%(f?f.length:g.colorCount),o=f&&f[r]),p.chart.styledMode||(n=tO(i&&i.options.color,s&&s.color,o,h&&((k=s&&s.colorVariation)&&"brightness"===k.key&&l&&u?tx().parse(h).brighten(k.to*(l/u)).get():h),p.color)),a=tO(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(tP(t))for(o=tv(t.from)?t.from:1,n=t.levels,i={},e=tP(t.defaults)?t.defaults:{},ty(n)&&(i=n.reduce((t,i)=>{let s,r,n;return tP(i)&&tv(i.level)&&(r=tO((n=tA({},i)).levelIsConstant,e.levelIsConstant),delete n.levelIsConstant,delete n.level,tP(t[s=i.level+(r?0:o-1)])?tA(!0,t[s],n):t[s]=n),t},{})),r=tv(t.to)?t.to:1,s=0;s<=r;s++)a[s]=tA({},e,tP(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 tG(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||{},d=[],h=0;e.levelDynamic=e.level-(n?0:r.level),e.name=tO(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=tb({},i);tb(r,{index:o,siblings:e.children.length,visible:e.visible}),s=t(s,r),d.push(s),s.visible&&(h+=s.val)});let c=tO(l.value,h);return e.visible=c>=0&&(h>0||e.visible),e.children=d,e.childrenTotal=h,e.isLeaf=e.visible&&!h,e.val=c,e},updateRootId:function(t){let e,i;return tP(t)&&(i=tP(t.options)?t.options:{},e=tO(t.rootNode,i.rootId,""),tP(t.userOptions)&&(t.userOptions.rootId=e),t.rootNode=e),e}},{addEvent:tI,isArray:tw,splat:tT,find:tE,fireEvent:tM,isObject:tN,isString:tC,merge:tL,removeEvent:tS,wrap:tz}=f();function tW(t){return{from:t.collapseStart||0,to:t.collapseEnd||0,showPoints:!1}}function tj(t,e,i){var s;let o,r=[],n=[],a={},l=e||!1,d={},h=-1,c=tr(t,{after:function(t){let e=d[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=tN(t.data,!0)?t.data:{},o=tC(s.name)?s.name:"",n=a[t.parent],c=tN(n,!0)?d[n.pos]:null;l&&tN(c,!0)&&(e=tE(c.children,function(t){return t.name===o}))?(i=e.pos,e.nodes.push(t)):i=h++,!d[i]&&(d[i]=e={depth:c?c.depth+1:0,name:o,id:s.id,nodes:[t],children:[],pos:i},-1!==i&&r.push(o),tN(c,!0)&&c.children.push(e)),tC(t.id)&&(a[t.id]=t),e&&!0===s.collapsed&&(e.collapsed=!0),t.pos=i}});return s=d,{categories:r,mapOfIdToNode:a,mapOfPosToGridNode:d=(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;tN(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 tH(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,d,h;if(a){let s=[];if(d=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)),tN(s,!0)&&(s.seriesIndex=l,t.push(s))}),!0===r&&l++),t},[]),n&&d.length<n)for(let t=d.length;t<=n;t++)d.push({name:t+"​"});i.categories=(h=tj(d,r||!1,!0===r?l:1)).categories,i.treeGrid.mapOfPosToGridNode=h.mapOfPosToGridNode,i.hasNames=!0,i.treeGrid.tree=h.tree,i.series.forEach(function(t,e){let i=(t.options.data||[]).map(function(i){return(s[e]||tw(i)&&t.options.keys?.length)&&d.forEach(function(t){let e=tT(i);e.indexOf(t.x||0)>=0&&e.indexOf(t.x2||0)>=0&&(i=t)}),tN(i,!0)?tL(i):i});t.visible&&t.setData(i,!1)}),i.treeGrid.mapOptionsToLevel=tB({defaults:o,from:1,levels:o?.levels,to:i.treeGrid.tree?.height}),"beforeRender"===t.type&&(i.treeGrid.collapsedNodes=h.collapsedNodes)}})}function tR(t,e){let i=this.treeGrid.mapOptionsToLevel||{},s="treegrid"===this.type,r=this.ticks,n=r[e],a,l,d;s&&this.treeGrid.mapOfPosToGridNode?((a=i[(d=this.treeGrid.mapOfPosToGridNode[e]).depth])&&(l={labels:a}),!n&&o?r[e]=n=new o(this,e,void 0,void 0,{category:d.name,tickmarkOffset:d.tickmarkOffset,options:l}):(n.parameters.category=d.name,n.options=l,n.addLabel())):t.apply(this,Array.prototype.slice.call(arguments,1))}function tD(t,e,i,s){let o=this,r="treegrid"===i.type;o.treeGrid||(o.treeGrid=new tV(o)),r&&(tI(e,"beforeRender",tH),tI(e,"beforeRedraw",tH),tI(e,"addSeries",function(t){if(t.options.data){let e=tj(t.options.data,i.uniqueNames||!1,1);o.treeGrid.collapsedNodes=(o.treeGrid.collapsedNodes||[]).concat(e.collapsedNodes)}}),tI(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)))})}),tI(o,"afterBreaks",function(){"yAxis"===o.coll&&!o.staticScale&&o.chart.options.chart.height&&(o.isDirty=!0)}),i=tL({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 t_(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,tM(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}else t.apply(this,Array.prototype.slice.call(arguments,1))}function tF(t){let e=this;"treegrid"===this.type&&e.visible&&e.tickPositions.forEach(function(t){let i=e.ticks[t];i.label?.attachedTreeGridEvents&&(tS(i.label.element),i.label.attachedTreeGridEvents=!1)}),t.apply(e,Array.prototype.slice.call(arguments,1))}class tV{static compose(t,e,i,s){var r,n,a;if(!t.keepProps.includes("treeGrid")){let e=t.prototype;t.keepProps.push("treeGrid"),tz(e,"generateTick",tR),tz(e,"init",tD),tz(e,"setTickInterval",t_),tz(e,"redraw",tF),e.utils={getNode:to},o||(o=s)}return r=t,n=e,a=s,r.keepProps.includes("grid")||(r.keepProps.push("grid"),r.prototype.getMaxLabelDimensions=W,S(r.prototype,"unsquish",Z),S(r.prototype,"getOffset",j),B(r,"init",K),B(r,"afterGetTitlePosition",H),B(r,"afterInit",R),B(r,"afterRender",D),B(r,"afterSetAxisTranslation",_),B(r,"afterSetOptions",F),B(r,"afterSetOptions",V),B(r,"afterSetScale",X),B(r,"afterTickSize",q),B(r,"trimTicks",Q),B(r,"destroy",$),B(n,"afterSetChartSize",U),B(a,"afterGetLabelPosition",Y),B(a,"labelFormat",J)),P.compose(t,i),tg.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=tW(t);return i.push(s),t.collapsed=!0,e.treeGrid.setCollapsedStatus(t),i}expand(t){let e=this.axis,i=tW(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=tW(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 tX=f();tV.compose(tX.Axis,tX.Chart,tX.Series,tX.Tick);let tq=f();return c.default})());