!/**
 * Highcharts Gantt JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/gantt
 * @requires highcharts
 *
 * Gantt series
 *
 * (c) 2016-2026 Highsoft AS
 * Author: Lars A. V. Cabrera
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(t,i){"object"==typeof exports&&"object"==typeof module?module.exports=i(t._Highcharts,t._Highcharts.Chart,t._Highcharts.Axis,t._Highcharts.SeriesRegistry,t._Highcharts.SVGRenderer,t._Highcharts.SVGElement,t._Highcharts.Templating,t._Highcharts.Point,t._Highcharts.Color,t._Highcharts.StackItem):"function"==typeof define&&define.amd?define("highcharts/modules/gantt",["highcharts/highcharts"],function(t){return i(t,t.Chart,t.Axis,t.SeriesRegistry,t.SVGRenderer,t.SVGElement,t.Templating,t.Point,t.Color,t.StackItem)}):"object"==typeof exports?exports["highcharts/modules/gantt"]=i(t._Highcharts,t._Highcharts.Chart,t._Highcharts.Axis,t._Highcharts.SeriesRegistry,t._Highcharts.SVGRenderer,t._Highcharts.SVGElement,t._Highcharts.Templating,t._Highcharts.Point,t._Highcharts.Color,t._Highcharts.StackItem):t.Highcharts=i(t.Highcharts,t.Highcharts.Chart,t.Highcharts.Axis,t.Highcharts.SeriesRegistry,t.Highcharts.SVGRenderer,t.Highcharts.SVGElement,t.Highcharts.Templating,t.Highcharts.Point,t.Highcharts.Color,t.Highcharts.StackItem)}("u"<typeof window?this:window,function(t,i,e,o,r,n,s,a,h,l){return function(){"use strict";var d,c,p,u,f,g,v,x,m,b,y,M,k,E,w,A,O={28:function(t){t.exports=n},184:function(t){t.exports=l},260:function(t){t.exports=a},512:function(t){t.exports=o},532:function(t){t.exports=e},540:function(t){t.exports=r},620:function(t){t.exports=h},944:function(i){i.exports=t},960:function(t){t.exports=i},984:function(t){t.exports=s}},S={};function P(t){var i=S[t];if(void 0!==i)return i.exports;var e=S[t]={exports:{}};return O[t](e,e.exports,P),e.exports}P.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return P.d(i,{a:i}),i},P.d=function(t,i){for(var e in i)P.o(i,e)&&!P.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:i[e]})},P.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};var B={};P.d(B,{default:function(){return ex}});var T=P(944),C=P.n(T);function N(t,i,e,o){return[["M",t,i+o/2],["L",t+e,i],["L",t,i+o/2],["L",t+e,i+o]]}function D(t,i,e,o){return N(t,i,e/2,o)}function I(t){var i=t.prototype.symbols;i.arrow=N,i["arrow-filled"]=L,i["arrow-filled-half"]=z,i["arrow-half"]=D,i["triangle-left"]=L,i["triangle-left-half"]=z}function L(t,i,e,o){return[["M",t+e,i],["L",t,i+o/2],["L",t+e,i+o],["Z"]]}function z(t,i,e,o){return L(t,i,e/2,o)}var G=C().deg2rad,R=Math.max,W=Math.min,H=function(){function t(t,i,e){this.init(t,i,e)}return t.prototype.init=function(t,i,e){this.fromPoint=t,this.toPoint=i,this.options=e,this.chart=t.series.chart,this.pathfinder=this.chart.pathfinder},t.prototype.renderPath=function(t,i){var e=this.chart,o=e.styledMode,r=this.pathfinder,n={},s=this.graphics&&this.graphics.path;r.group||(r.group=e.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(e.seriesGroup)),r.group.translate(e.plotLeft,e.plotTop),!(s&&s.renderer)&&(s=e.renderer.path().add(r.group),o||s.attr({opacity:0})),s.attr(i),n.d=t,o||(n.opacity=1),s.animate(n),this.graphics=this.graphics||{},this.graphics.path=s},t.prototype.addMarker=function(t,i,e){var o,r,n,s,a,h,l,d=this.fromPoint.series.chart,c=d.pathfinder,p=d.renderer,u="start"===t?this.fromPoint:this.toPoint,f=u.getPathfinderAnchorPoint(i);i.enabled&&((l="start"===t?e[1]:e[e.length-2])&&"M"===l[0]||"L"===l[0])&&(h={x:l[1],y:l[2]},r=u.getRadiansToVector(h,f),o=u.getMarkerVector(r,i.radius,f),i.width&&i.height?(s=i.width,a=i.height):s=a=2*i.radius,this.graphics=this.graphics||{},n={x:o.x-s/2,y:o.y-a/2,width:s,height:a,rotation:-r/G,rotationOriginX:o.x,rotationOriginY:o.y},this.graphics[t]?this.graphics[t].animate(n):(this.graphics[t]=p.symbol(i.symbol).addClass("highcharts-point-connecting-path-"+t+"-marker highcharts-color-"+this.fromPoint.colorIndex).attr(n).add(c.group),p.styledMode||this.graphics[t].attr({fill:i.color||this.fromPoint.color,stroke:i.lineColor,"stroke-width":i.lineWidth,opacity:0}).animate({opacity:1},u.series.options.animation)))},t.prototype.getPath=function(t){var i=this.pathfinder,e=this.chart,o=i.algorithms[t.type],r=i.chartObstacles;return"function"!=typeof o?((0,T.error)('"'+t.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]}):(o.requiresObstacles&&!r&&(r=i.chartObstacles=i.getChartObstacles(t),e.options.connectors.algorithmMargin=t.algorithmMargin,i.chartObstacleMetrics=i.getObstacleMetrics(r)),o(this.fromPoint.getPathfinderAnchorPoint(t.startMarker),this.toPoint.getPathfinderAnchorPoint(t.endMarker),(0,T.merge)({chartObstacles:r,lineObstacles:i.lineObstacles||[],obstacleMetrics:i.chartObstacleMetrics,hardBounds:{xMin:0,xMax:e.plotWidth,yMin:0,yMax:e.plotHeight},obstacleOptions:{margin:t.algorithmMargin},startDirectionX:i.getAlgorithmStartDirection(t.startMarker)},t)))},t.prototype.render=function(){var t=this.fromPoint,i=t.series,e=i.chart,o=e.pathfinder,r={},n=(0,T.merge)(e.options.connectors,i.options.connectors,t.options.connectors,this.options);!e.styledMode&&(r.stroke=n.lineColor||t.color,r["stroke-width"]=n.lineWidth,n.dashStyle&&(r.dashstyle=n.dashStyle)),r.class="highcharts-point-connecting-path highcharts-color-"+t.colorIndex,n=(0,T.merge)(r,n),(0,T.defined)(n.marker.radius)||(n.marker.radius=W(R(Math.ceil((n.algorithmMargin||8)/2)-1,1),5));var s=this.getPath(n),a=s.path;s.obstacles&&(o.lineObstacles=o.lineObstacles||[],o.lineObstacles=o.lineObstacles.concat(s.obstacles)),this.renderPath(a,r),this.addMarker("start",(0,T.merge)(n.marker,n.startMarker),a),this.addMarker("end",(0,T.merge)(n.marker,n.endMarker),a)},t.prototype.destroy=function(){this.graphics&&((0,T.objectEach)(this.graphics,function(t){t.destroy()}),delete this.graphics)},t}(),_=C().composed,F={color:"var(--highcharts-highlight-color-20)",width:2,label:{format:"%[abdYHM]",formatter:function(t,i){return this.axis.chart.time.dateFormat(i||"",t,!0)},rotation:0,style:{fontSize:"0.7em"}}},j=P(960),U=P.n(j),X=(d=function(t,i){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)i.hasOwnProperty(e)&&(t[e]=i[e])})(t,i)},function(t,i){function e(){this.constructor=t}d(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),Y=C().defaultOptions,V=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return X(i,t),i.prototype.init=function(i,e){var o,r=i.xAxis,n=i.yAxis;i.xAxis=i.yAxis=void 0;var s=(0,T.merge)(!0,{chart:{type:"gantt"},title:{text:""},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},i,{isGantt:!0});i.xAxis=r,i.yAxis=n,s.xAxis=(!(0,T.isArray)(i.xAxis)?[i.xAxis||{},{}]:i.xAxis).map(function(t,i){var e,r,n;return 1===i&&(o=0),(0,T.merge)({grid:{enabled:!0},opposite:null==(n=null!=(r=null==(e=Y.xAxis)?void 0:e.opposite)?r:t.opposite)||n,linkedTo:o},t,{type:"datetime"})}),s.yAxis=(0,T.splat)(i.yAxis||{}).map(function(t){return(0,T.merge)({grid:{enabled:!0},staticScale:50,reversed:!0,type:t.categories?t.type:"treegrid"},t)}),t.prototype.init.call(this,s,e)},i}(U());(c=V||(V={})).ganttChart=function(t,i,e){var o=new c(t,i,e);return o.promise||o};var q=V,Z=P(532),K=P.n(Z),J=C().isTouchDevice,Q=[];function $(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function tt(){var t,i,e,o,r=this.legend,n=this.navigator;if(n){i=r&&r.options,e=n.xAxis,o=n.yAxis;var s=n.scrollbarHeight,a=n.scrollButtonSize;this.inverted?(n.left=n.opposite?this.chartWidth-s-n.height:this.spacing[3]+s,n.top=this.plotTop+a):(n.left=(0,T.pick)(e.left,this.plotLeft+a),n.top=n.navigatorOptions.top||this.chartHeight-n.height-s-((null==(t=this.scrollbar)?void 0:t.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&"bottom"===i.verticalAlign&&"proximate"!==i.layout&&i.enabled&&!i.floating?r.legendHeight+(0,T.pick)(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),e&&o&&(this.inverted?e.options.left=o.options.left=n.left:e.options.top=o.options.top=n.top,e.setAxisSize(),o.setAxisSize())}}function ti(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new b(this),(0,T.pick)(t.redraw,!0)&&this.redraw(t.animation))}function te(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new b(this))}function to(){var t=this.options,i=t.navigator,e=t.rangeSelector;if((i&&i.enabled||e&&e.enabled)&&(!J&&"x"===this.zooming.type||J&&"x"===this.zooming.pinchType))return!1}function tr(t){var i=t.navigator;if(i&&t.xAxis[0]){var e=t.xAxis[0].getExtremes();i.render(e.min,e.max)}}function tn(t){var i=t.options.navigator||{},e=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(i.enabled||e.enabled)&&((0,T.merge)(!0,this.options.navigator,i),(0,T.merge)(!0,this.options.scrollbar,e),delete t.options.navigator,delete t.options.scrollbar)}var ts=function(t,i){if((0,T.pushUnique)(Q,t)){var e=t.prototype;b=i,e.callbacks.push(tr),(0,T.addEvent)(t,"afterAddSeries",$),(0,T.addEvent)(t,"afterSetChartSize",tt),(0,T.addEvent)(t,"afterUpdate",ti),(0,T.addEvent)(t,"beforeRender",te),(0,T.addEvent)(t,"beforeShowResetZoom",to),(0,T.addEvent)(t,"update",tn)}},ta=C().isTouchDevice;function th(){this.navigatorAxis||(this.navigatorAxis=new td(this))}function tl(t){var i,e=this.chart,o=e.options,r=o.navigator,n=this.navigatorAxis,s=e.zooming.pinchType,a=o.rangeSelector,h=e.zooming.type;if(this.isXAxis&&((null==r?void 0:r.enabled)||(null==a?void 0:a.enabled))){if("y"===h&&"zoom"===t.trigger)i=!1;else if(("zoom"===t.trigger&&"xy"===h||ta&&"xy"===s)&&this.options.range){var l=n.previousZoom;(0,T.defined)(t.min)?n.previousZoom=[this.min,this.max]:l&&(t.min=l[0],t.max=l[1],n.previousZoom=void 0)}}void 0!==i&&t.preventDefault()}var td=function(){function t(t){this.axis=t}return t.compose=function(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),(0,T.addEvent)(t,"init",th),(0,T.addEvent)(t,"setExtremes",tl))},t.prototype.destroy=function(){this.axis=void 0},t.prototype.toFixedRange=function(t,i,e,o){var r=this.axis,n=(r.pointRange||0)/2,s=(0,T.pick)(e,r.translate(t,!0,!r.horiz)),a=(0,T.pick)(o,r.translate(i,!0,!r.horiz));return(0,T.defined)(e)||(s=(0,T.correctFloat)(s+n)),(0,T.defined)(o)||(a=(0,T.correctFloat)(a-n)),(0,T.isNumber)(s)&&(0,T.isNumber)(a)||(s=a=void 0),{min:s,max:a}},t}(),tc=P(512),tp=P.n(tc),tu={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"var(--highcharts-neutral-color-5)",borderColor:"var(--highcharts-neutral-color-40)"},maskFill:"color-mix(var(--highcharts-highlight-color-60) 30%, transparent)",outlineColor:"var(--highcharts-neutral-color-40)",outlineWidth:1,series:{type:void 0===tp().seriesTypes.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"var(--highcharts-neutral-color-10)",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"var(--highcharts-neutral-color-100)",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:void 0},tickLength:0,tickWidth:0}},tf=function(t,i,e){if(e||2==arguments.length)for(var o,r=0,n=i.length;r<n;r++)!o&&r in i||(o||(o=Array.prototype.slice.call(i,0,r)),o[r]=i[r]);return t.concat(o||Array.prototype.slice.call(i))},tg={"navigator-handle":function(t,i,e,o,r){void 0===r&&(r={});var n,s,a,h,l,d=r.width?r.width/2:e,c=(0,T.relativeLength)(r.borderRadius||0,Math.min(2*d,o));return tf([["M",-1.5,(o=r.height||o)/2-3.5],["L",-1.5,o/2+4.5],["M",.5,o/2-3.5],["L",.5,o/2+4.5]],(n=-d-1,s=.5,a=2*d+1,h=o,(l={r:c},l.r)?function(t,i,e,o,r){var n=(null==r?void 0:r.r)||0;return[["M",t+n,i],["L",t+e-n,i],["A",n,n,0,0,1,t+e,i+n],["L",t+e,i+o-n],["A",n,n,0,0,1,t+e-n,i+o],["L",t+n,i+o],["A",n,n,0,0,1,t,i+o-n],["L",t,i+n],["A",n,n,0,0,1,t+n,i],["Z"]]}(n,.5,a,h,l):[["M",n,.5],["L",n+a,.5],["L",n+a,.5+h],["L",n,.5+h],["Z"]]),!0)}},tv=P(540),tx=P.n(tv),tm=C().defaultOptions,tb=C().composed,ty={setFixedRange:function(t){var i=this.xAxis[0];(0,T.defined)(i.dataMax)&&(0,T.defined)(i.dataMin)&&t?this.fixedRange=Math.min(t,i.dataMax-i.dataMin):this.fixedRange=t}}.setFixedRange;function tM(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var tk=function(t,i,e){td.compose(i),(0,T.pushUnique)(tb,"Navigator")&&(t.prototype.setFixedRange=ty,(0,T.extend)(tx().prototype.symbols,tg),(0,T.extend)(tm,{navigator:tu}),(0,T.addEvent)(e,"afterUpdate",tM))},tE=C().composed;!function(t){var i;function e(t){var i,e,o,r,n,s,a,h,l=(0,T.pick)(null==(i=t.options)?void 0:i.min,t.min),d=(0,T.pick)(null==(e=t.options)?void 0:e.max,t.max);return{axisMin:l,axisMax:d,scrollMin:(0,T.defined)(t.dataMin)?Math.min(l,null!=(o=t.min)?o:1/0,t.dataMin,null!=(r=t.threshold)?r:1/0):l,scrollMax:null!=(s=null==(n=t.treeGrid)?void 0:n.adjustedMax)?s:(0,T.defined)(t.dataMax)?Math.max(d,null!=(a=t.max)?a:-1/0,t.dataMax,null!=(h=t.threshold)?h:-1/0):d}}function o(){var t=this.scrollbar,i=t&&!t.options.opposite,e=this.horiz?2:i?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[e]+=t.size+(t.options.margin||0))}function r(){var t,o,r=this;(null==(o=null==(t=r.options)?void 0:t.scrollbar)?void 0:o.enabled)&&(r.options.scrollbar.vertical=!r.horiz,r.options.startOnTick=r.options.endOnTick=!1,r.scrollbar=new i(r.chart.renderer,r.options.scrollbar,r.chart),(0,T.addEvent)(r.scrollbar,"changed",function(t){var i,o,n=e(r),s=n.axisMin,a=n.axisMax,h=n.scrollMin,l=n.scrollMax,d=r.toPixels(h),c=r.toPixels(l)-d;if((0,T.defined)(s)&&(0,T.defined)(a))if(r.horiz&&!r.reversed||!r.horiz&&r.reversed?(i=Math.min(l,r.toValue(d+c*this.to)),o=Math.max(h,r.toValue(d+c*this.from))):(i=Math.min(l,r.toValue(d+c*(1-this.from))),o=Math.max(h,r.toValue(d+c*(1-this.to)))),this.shouldUpdateExtremes(t.DOMType)){var p="mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&void 0;r.setExtremes((0,T.correctFloat)(o),(0,T.correctFloat)(i),!0,p,t)}else this.setRange(this.from,this.to)}))}function n(){var t,i,o,r=e(this),n=r.scrollMin,s=r.scrollMax,a=this.scrollbar,h=(this.axisTitleMargin||0)+(this.titleOffset||0),l=this.chart.scrollbarsOffsets,d=this.options.margin||0;if(a&&l){if(this.horiz)this.opposite||(l[1]+=h),a.position(this.left,this.top+this.height+2+l[1]-(this.opposite?d:0),this.width,this.height),this.opposite||(l[1]+=d),t=1;else{this.opposite&&(l[0]+=h);var c=void 0;c=a.options.opposite?this.left+this.width+2+l[0]-(this.opposite?0:d):this.opposite?0:d,a.position(c,this.top,this.width,this.height),this.opposite&&(l[0]+=d),t=0}if(l[t]+=a.size+(a.options.margin||0),isNaN(n)||isNaN(s)||!(0,T.defined)(this.min)||!(0,T.defined)(this.max)||(0,T.defined)(this.dataMin)&&this.dataMin===this.dataMax)a.setRange(0,1);else if(this.min===this.max){var p=this.pointRange/(this.dataMax+1);i=p*this.min,o=p*(this.max+1),a.setRange(i,o)}else i=(this.toPixels(this.min)-this.toPixels(n))/(this.toPixels(s)-this.toPixels(n)),o=(this.toPixels(this.max)-this.toPixels(n))/(this.toPixels(s)-this.toPixels(n)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(i,o):a.setRange(1-o,1-i)}}t.compose=function(t,e){(0,T.pushUnique)(tE,"Axis.Scrollbar")&&(i=e,(0,T.addEvent)(t,"afterGetOffset",o),(0,T.addEvent)(t,"afterInit",r),(0,T.addEvent)(t,"afterRender",n))}}(y||(y={}));var tw=y,tA={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"var(--highcharts-neutral-color-20)",barBorderWidth:0,barBorderColor:"var(--highcharts-neutral-color-20)",buttonArrowColor:"var(--highcharts-neutral-color-80)",buttonBackgroundColor:"var(--highcharts-neutral-color-10)",buttonBorderColor:"var(--highcharts-neutral-color-20)",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"var(--highcharts-neutral-color-20)",trackBorderRadius:5,trackBorderWidth:1},tO=C().defaultOptions,tS=C().composed,tP=function(){function t(t,i,e){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,i,e)}return t.compose=function(i){tw.compose(i,t),(0,T.pushUnique)(tS,"Scrollbar")&&(0,T.extend)(tO,{scrollbar:tA})},t.swapXY=function(t,i){return i&&t.forEach(function(t){for(var i,e=t.length,o=0;o<e;o+=2)"number"==typeof(i=t[o+1])&&(t[o+1]=t[o+2],t[o+2]=i)}),t},t.prototype.addEvents=function(){var t=this.options.inverted?[1,0]:[0,1],i=this.scrollbarButtons,e=this.scrollbarGroup.element,o=this.track.element,r=this.mouseDownHandler.bind(this),n=this.mouseMoveHandler.bind(this),s=this.mouseUpHandler.bind(this),a=[[i[t[0]].element,"click",this.buttonToMinClick.bind(this)],[i[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[o,"click",this.trackClick.bind(this)],[e,"mousedown",r],[e.ownerDocument,"mousemove",n],[e.ownerDocument,"mouseup",s],[e,"touchstart",r],[e.ownerDocument,"touchmove",n],[e.ownerDocument,"touchend",s]];a.forEach(function(t){T.addEvent.apply(null,t)}),this._events=a},t.prototype.buttonToMaxClick=function(t){var i=(this.to-this.from)*(0,T.pick)(this.options.step,.2);this.updatePosition(this.from+i,this.to+i),(0,T.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.buttonToMinClick=function(t){var i=(0,T.correctFloat)(this.to-this.from)*(0,T.pick)(this.options.step,.2);this.updatePosition((0,T.correctFloat)(this.from-i),(0,T.correctFloat)(this.to-i)),(0,T.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.cursorToScrollbarPosition=function(t){var i=this.options,e=i.minWidth>this.calculatedWidth?i.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-e),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-e)}},t.prototype.destroy=function(){var t=this,i=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(i){t[i]&&t[i].destroy&&(t[i]=t[i].destroy())}),i&&t===i.scrollbar&&(i.scrollbar=null,(0,T.destroyObjectProperties)(i.scrollbarButtons))},t.prototype.drawScrollbarButton=function(i){var e=this.renderer,o=this.scrollbarButtons,r=this.options,n=this.size,s=e.g().add(this.group);if(o.push(s),r.buttonsEnabled){var a=e.rect().addClass("highcharts-scrollbar-button").add(s);this.chart.styledMode||a.attr({stroke:r.buttonBorderColor,"stroke-width":r.buttonBorderWidth,fill:r.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:n,height:n,r:r.buttonBorderRadius},a.strokeWidth()));var h=e.path(t.swapXY([["M",n/2+(i?-1:1),n/2-3],["L",n/2+(i?-1:1),n/2+3],["L",n/2+(i?2:-2),n/2]],r.vertical)).addClass("highcharts-scrollbar-arrow").add(o[i]);this.chart.styledMode||h.attr({fill:r.buttonArrowColor})}},t.prototype.init=function(t,i,e){this.scrollbarButtons=[],this.renderer=t,this.userOptions=i,this.options=(0,T.merge)(tA,tO.scrollbar,i),this.options.margin=(0,T.pick)(this.options.margin,10),this.chart=e,this.size=(0,T.pick)(this.options.size,this.options.height),i.enabled&&(this.render(),this.addEvents())},t.prototype.mouseDownHandler=function(t){var i,e=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t,o=this.cursorToScrollbarPosition(e);this.chartX=o.chartX,this.chartY=o.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},t.prototype.mouseMoveHandler=function(t){var i,e,o=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t,r=this.options.vertical?"chartY":"chartX",n=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][r])&&(e=this.cursorToScrollbarPosition(o)[r]-this[r],this.hasDragged=!0,this.updatePosition(n[0]+e,n[1]+e),this.hasDragged&&(0,T.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&(0,T.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},t.prototype.position=function(t,i,e,o){var r=this.options,n=r.buttonsEnabled,s=r.margin,a=void 0===s?0:s,h=r.vertical,l=this.rendered?"animate":"attr",d=o,c=0;this.group.show(),this.x=t,this.y=i+this.trackBorderWidth,this.width=e,this.height=o,this.xOffset=d,this.yOffset=c,h?(this.width=this.yOffset=e=c=this.size,this.xOffset=d=0,this.yOffset=c=n?this.size:0,this.barWidth=o-(n?2*e:0),this.x=t+=a):(this.height=o=this.size,this.xOffset=d=n?this.size:0,this.barWidth=e-(n?2*o:0),this.y=this.y+a),this.group[l]({translateX:t,translateY:this.y}),this.track[l]({width:e,height:o}),this.scrollbarButtons[1][l]({translateX:h?0:e-d,translateY:h?o-c:0})},t.prototype.removeEvents=function(){this._events.forEach(function(t){T.removeEvent.apply(null,t)}),this._events.length=0},t.prototype.render=function(){var i=this.renderer,e=this.options,o=this.size,r=this.chart.styledMode,n=i.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=n,this.track=i.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:o,width:o}).add(n),r||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});var s=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-(0,T.crisp)(0,s),y:-(0,T.crisp)(0,s)}),this.scrollbarGroup=i.g().add(n),this.scrollbar=i.rect().addClass("highcharts-scrollbar-thumb").attr({height:o-s,width:o-s,r:e.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=i.path(t.swapXY([["M",-3,o/4],["L",-3,2*o/3],["M",0,o/4],["L",0,2*o/3],["M",3,o/4],["L",3,2*o/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),r||(this.scrollbar.attr({fill:e.barBackgroundColor,stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-(0,T.crisp)(0,this.scrollbarStrokeWidth),-(0,T.crisp)(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,i){var e,o,r=this.options,n=r.vertical,s=r.minWidth,a=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if((0,T.defined)(a)){var l=a*Math.min(i,1);e=Math.ceil(a*(t=Math.max(t,0))),this.calculatedWidth=o=(0,T.correctFloat)(l-e),o<s&&(e=(a-s+o)*t,o=s);var d=Math.floor(e+this.xOffset+this.yOffset),c=o/2-.5;this.from=t,this.to=i,n?(this.scrollbarGroup[h]({translateY:d}),this.scrollbar[h]({height:o}),this.scrollbarRifles[h]({translateY:c}),this.scrollbarTop=d,this.scrollbarLeft=0):(this.scrollbarGroup[h]({translateX:d}),this.scrollbar[h]({width:o}),this.scrollbarRifles[h]({translateX:c}),this.scrollbarLeft=d,this.scrollbarTop=0),o<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===r.showFull&&(t<=0&&i>=1?this.group.hide():this.group.show()),this.rendered=!0}},t.prototype.shouldUpdateExtremes=function(t){return(0,T.pick)(this.options.liveRedraw,C().svg&&!C().isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!(0,T.defined)(t)},t.prototype.trackClick=function(t){var i,e=(null==(i=this.chart.pointer)?void 0:i.normalize(t))||t,o=this.to-this.from,r=this.y+this.scrollbarTop,n=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>r||!this.options.vertical&&e.chartX>n?this.updatePosition(this.from+o,this.to+o):this.updatePosition(this.from-o,this.to-o),(0,T.fireEvent)(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,(0,T.merge)(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,i){i>1&&(t=(0,T.correctFloat)(1-(0,T.correctFloat)(i-t)),i=1),t<0&&(i=(0,T.correctFloat)(i-t),t=0),this.from=t,this.to=i},t.defaultOptions=tA,t}(),tB=function(){return(tB=Object.assign||function(t){for(var i,e=1,o=arguments.length;e<o;e++)for(var r in i=arguments[e])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t}).apply(this,arguments)},tT=function(t,i,e){if(e||2==arguments.length)for(var o,r=0,n=i.length;r<n;r++)!o&&r in i||(o||(o=Array.prototype.slice.call(i,0,r)),o[r]=i[r]);return t.concat(o||Array.prototype.slice.call(i))},tC=C().defaultOptions,tN=C().isTouchDevice;function tD(t){for(var i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var o=[].filter.call(i,T.isNumber);if(o.length)return Math[t].apply(0,o)}var tI=function(){function t(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}return t.compose=function(i,e,o){ts(i,t),tk(i,e,o)},t.prototype.drawHandle=function(t,i,e,o){var r=this.navigatorOptions.handles.height;this.handles[i][o](e?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-r)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-r/2-1)})},t.prototype.drawOutline=function(t,i,e,o){var r,n,s=this.navigatorOptions.maskInside,a=this.outline.strokeWidth(),h=a/2,l=a%2/2,d=this.scrollButtonSize,c=this.size,p=this.top,u=this.height,f=p-h,g=p+u,v=this.left;e?(r=p+i+l,i=p+t+l,n=[["M",v+u,p-d-l],["L",v+u,r],["L",v,r],["M",v,i],["L",v+u,i],["L",v+u,p+c+d]],s&&n.push(["M",v+u,r-h],["L",v+u,i+h])):(v-=d,t+=v+d-l,i+=v+d-l,n=[["M",v,f],["L",t,f],["L",t,g],["M",i,g],["L",i,f],["L",v+c+2*d,f]],s&&n.push(["M",t-h,f],["L",i+h,f])),this.outline[o]({d:n})},t.prototype.drawMasks=function(t,i,e,o){var r,n,s,a,h=this.left,l=this.top,d=this.height;e?(s=[h,h,h],a=[l,l+t,l+i],n=[d,d,d],r=[t,i-t,this.size-i]):(s=[h,h+t,h+i],a=[l,l,l],n=[t,i-t,this.size-i],r=[d,d,d]),this.shades.forEach(function(t,i){t[o]({x:s[i],y:a[i],width:n[i],height:r[i]})})},t.prototype.renderElements=function(){var t,i,e,o=this,r=o.navigatorOptions,n=r.maskInside,s=o.chart,a=s.inverted,h=s.renderer,l={cursor:a?"ns-resize":"ew-resize"},d=null!=(t=o.navigatorGroup)?t:o.navigatorGroup=h.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!n,n,!n].forEach(function(t,i){var e,n=null!=(e=o.shades[i])?e:o.shades[i]=h.rect().addClass("highcharts-navigator-mask"+(1===i?"-inside":"-outside")).add(d);s.styledMode||(n.attr({fill:t?r.maskFill:"rgba(0,0,0,0)"}),1===i&&n.css(l))}),o.outline||(o.outline=h.path().addClass("highcharts-navigator-outline").add(d)),s.styledMode||o.outline.attr({"stroke-width":r.outlineWidth,stroke:r.outlineColor}),null==(i=r.handles)?void 0:i.enabled){var c=!1,p=r.handles,u=p.height,f=p.width;[0,1].forEach(function(t){var i,e,r=p.symbols[t];(c=c||(null==(i=o.handles[t])?void 0:i.symbolName)!==r)&&(null==(e=o.handles[t])||e.destroy(),o.handles[t]=h.symbol(r,-f/2-1,0,f,u,p),o.handles[t].attr({zIndex:7-t}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][t]).add(d)),s.inverted&&o.handles[t].attr({rotation:90,rotationOriginX:Math.floor(-f/2),rotationOriginY:(u+f)/2}),s.styledMode||o.handles[t].attr({fill:p.backgroundColor,stroke:p.borderColor,"stroke-width":p.lineWidth,width:p.width,height:p.height,x:-f/2-1,y:0}).css(l)}),c&&(null==(e=o.partsEventsToUnbind)||e.forEach(function(t){t()}),o.partsEventsToUnbind=tT(tT([],o.getPartsEvents("mousedown"),!0),o.getPartsEvents("touchstart"),!0))}},t.prototype.update=function(t,i){var e,o,r,n,s=this;void 0===i&&(i=!1);var a=this.chart,h=a.options.chart.inverted!==(null==(r=a.scrollbar)?void 0:r.options.vertical);if((0,T.merge)(!0,a.options.navigator,t),this.navigatorOptions=a.options.navigator||{},this.setOpposite(),(0,T.defined)(t.enabled)||h)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(a);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){(0,T.removeEvent)(t,"updatedData",s.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t.eventsToUnbind.push((0,T.addEvent)(t,"updatedData",s.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=null!=(n=t.height)?n:this.height;var l=this.getXAxisOffsets();this.xAxis.update(tB(tB({},t.xAxis),((e={offsets:l})[a.inverted?"width":"height"]=this.height,e[a.inverted?"height":"width"]=void 0,e)),!1),this.yAxis.update(tB(tB({},t.yAxis),((o={})[a.inverted?"width":"height"]=this.height,o)),!1)}i&&a.redraw()},t.prototype.render=function(t,i,e,o){var r,n,s,a,h,l,d=this.chart,c=this.xAxis,p=c.pointRange||0,u=c.navigatorAxis.fake?d.xAxis[0]:c,f=this.navigatorEnabled,g=this.rendered,v=d.inverted,x=d.xAxis[0].minRange,m=d.xAxis[0].options.maxRange,b=this.scrollButtonSize,y=this.scrollbarHeight;if(!this.hasDragged||(0,T.defined)(e)){if(this.isDirty&&this.renderElements(),t=(0,T.correctFloat)(t-p/2),i=(0,T.correctFloat)(i+p/2),!(0,T.isNumber)(t)||!(0,T.isNumber)(i))if(!g)return;else e=0,o=(0,T.pick)(c.width,u.width);this.left=(0,T.pick)(c.left,d.plotLeft+b+(v?d.plotWidth:0));var M=this.size=h=(0,T.pick)(c.len,(v?d.plotHeight:d.plotWidth)-2*b);n=v?y:h+2*b,e=(0,T.pick)(e,c.toPixels(t,!0)),o=(0,T.pick)(o,c.toPixels(i,!0)),(0,T.isNumber)(e)&&Math.abs(e)!==1/0||(e=0,o=n);var k=c.toValue(e,!0),E=c.toValue(o,!0),w=Math.abs((0,T.correctFloat)(E-k));(0,T.defined)(x)&&w<x?this.grabbedLeft?e=c.toPixels(E-x-p,!0):this.grabbedRight&&(o=c.toPixels(k+x+p,!0)):(0,T.defined)(m)&&(0,T.correctFloat)(w-p)>m&&(this.grabbedLeft?e=c.toPixels(E-m-p,!0):this.grabbedRight&&(o=c.toPixels(k+m+p,!0))),this.zoomedMax=(0,T.clamp)(Math.max(e,o),0,M),this.zoomedMin=(0,T.clamp)(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,o),0,M),this.range=this.zoomedMax-this.zoomedMin,M=Math.round(this.zoomedMax);var A=Math.round(this.zoomedMin);f&&(this.navigatorGroup.attr({visibility:"inherit"}),l=g&&!this.hasDragged?"animate":"attr",this.drawMasks(A,M,v,l),this.drawOutline(A,M,v,l),(null==(r=this.navigatorOptions.handles)?void 0:r.enabled)&&(this.drawHandle(A,0,v,l),this.drawHandle(M,1,v,l))),this.scrollbar&&(v?(a=this.top-b,s=this.left-y+(f||!u.opposite?0:(u.titleOffset||0)+u.axisTitleMargin),y=h+2*b):(a=this.top+(f?this.height:-y),s=this.left-b),this.scrollbar.position(s,a,n,y),this.scrollbar.setRange(this.zoomedMin/(h||1),this.zoomedMax/(h||1))),this.rendered=!0,this.isDirty=!1,(0,T.fireEvent)(this,"afterRender")}},t.prototype.addMouseEvents=function(){var t,i,e=this,o=e.chart,r=o.container,n=[];e.mouseMoveHandler=t=function(t){e.onMouseMove(t)},e.mouseUpHandler=i=function(t){e.onMouseUp(t)},n.push((0,T.addEvent)(o.renderTo,"mousemove",t),(0,T.addEvent)(r.ownerDocument,"mouseup",i),(0,T.addEvent)(o.renderTo,"touchmove",t),(0,T.addEvent)(r.ownerDocument,"touchend",i)),e.eventsToUnbind=n,e.series&&e.series[0]&&n.push((0,T.addEvent)(e.series[0].xAxis,"foundExtremes",function(){var t;null==(t=o.navigator)||t.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(t){var i=this,e=[];return["shades","handles"].forEach(function(o){i[o].forEach(function(r,n){e.push((0,T.addEvent)(r.element,t,function(t){i[""+o+"Mousedown"](t,n)}))})}),e},t.prototype.shadesMousedown=function(t,i){t=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t;var e,o,r,n,s,a,h,l=this.chart,d=this.xAxis,c=this.zoomedMin,p=this.size,u=this.range,f=this.left,g=t.chartX;l.inverted&&(g=t.chartY,f=this.top),1===i?(this.grabbedCenter=g,this.fixedWidth=u,this.dragOffset=g-c):(h=g-f-u/2,0===i?h=Math.max(0,h):2===i&&h+u>=p&&(h=p-u,this.reversedExtremes?(h-=u,s=null==(o=this.getUnionExtremes())?void 0:o.dataMin):n=null==(r=this.getUnionExtremes())?void 0:r.dataMax),h!==c&&(this.fixedWidth=u,a=d.navigatorAxis.toFixedRange(h,h+u,s,n),(0,T.defined)(a.min)&&(0,T.fireEvent)(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.max),redraw:!0,eventArguments:{trigger:"navigator"}})))},t.prototype.handlesMousedown=function(t,i){t=(null==(e=this.chart.pointer)?void 0:e.normalize(t))||t;var e,o=this.chart,r=o.xAxis[0],n=this.reversedExtremes;0===i?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=n?r.min:r.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=n?r.max:r.min),o.setFixedRange(void 0)},t.prototype.onMouseMove=function(t){var i,e,o,r=this,n=r.chart,s=r.navigatorSize,a=r.range,h=r.dragOffset,l=n.inverted,d=r.left;(!t.touches||0!==t.touches[0].pageX)&&(o=(t=(null==(i=n.pointer)?void 0:i.normalize(t))||t).chartX,l&&(d=r.top,o=t.chartY),r.grabbedLeft?(r.hasDragged=!0,r.render(0,0,o-d,r.otherHandlePos)):r.grabbedRight?(r.hasDragged=!0,r.render(0,0,r.otherHandlePos,o-d)):r.grabbedCenter&&h&&(r.hasDragged=!0,o<h?o=h:o>s+h-a&&(o=s+h-a),r.render(0,0,o-h,o-h+a)),r.hasDragged&&(0,T.pick)(null==(e=r.scrollbarOptions)?void 0:e.liveRedraw,!tN&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){r.onMouseUp(t)},0)))},t.prototype.onMouseUp=function(t){var i,e,o,r,n,s,a,h=this.chart,l=this.xAxis,d=this.scrollbar,c=t.DOMEvent||t,p=h.inverted,u=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===t.trigger)&&(r=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?n=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(s=this.fixedExtreme),this.zoomedMax===this.size&&(s=this.reversedExtremes?r.dataMin:r.dataMax),0===this.zoomedMin&&(n=this.reversedExtremes?r.dataMax:r.dataMin),a=l.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,n,s),(0,T.defined)(a.min)&&(0,T.fireEvent)(this,"setRange",{min:Math.min(a.min,a.max),max:Math.max(a.min,a.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:c}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&(0,T.isNumber)(this.zoomedMin)&&(0,T.isNumber)(this.zoomedMax)&&(o=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(o,e,p,u),this.outline&&this.drawOutline(o,e,p,u),(null==(i=this.navigatorOptions.handles)?void 0:i.enabled)&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(o,0,p,u),this.drawHandle(e,1,p,u)))},t.prototype.removeEvents=function(){var t;null==(t=this.eventsToUnbind)||t.forEach(function(t){t()}),this.eventsToUnbind=void 0,this.removeBaseSeriesEvents()},t.prototype.removeBaseSeriesEvents=function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){(0,T.removeEvent)(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&(0,T.removeEvent)(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},t.prototype.getXAxisOffsets=function(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]},t.prototype.init=function(t){var i,e,o,r,n=t.options,s=n.navigator||{},a=s.enabled,h=n.scrollbar||{},l=h.enabled,d=a&&s.height||0,c=l&&h.height||0,p=h.buttonsEnabled&&c||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=d,this.scrollbarHeight=c,this.scrollButtonSize=p,this.scrollbarEnabled=l,this.navigatorEnabled=!!a,this.navigatorOptions=s,this.scrollbarOptions=h,this.setOpposite();var u=this,f=u.baseSeries,g=t.xAxis.length,v=t.yAxis.length,x=f&&f[0]&&f[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,u.navigatorEnabled){var m=this.getXAxisOffsets();u.xAxis=new(K())(t,(0,T.merge)({breaks:x.options.breaks,ordinal:x.options.ordinal,overscroll:x.options.overscroll},s.xAxis,{type:"datetime",yAxis:null==(i=s.yAxis)?void 0:i.id,index:g,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:x.options.ordinal?0:x.options.minPadding,maxPadding:x.options.ordinal?0:x.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:m,width:d}:{offsets:m,height:d}),"xAxis"),u.yAxis=new(K())(t,(0,T.merge)(s.yAxis,{alignTicks:!1,offset:0,index:v,isInternal:!0,reversed:(0,T.pick)(s.yAxis&&s.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:d}:{height:d}),"yAxis"),u.xAxis.clippable=!1,u.yAxis.clippable=!1,f||(null==(e=s.series)?void 0:e.data)||(null==(o=s.series)?void 0:o.dataTable)?u.updateNavigatorSeries(!1):0===t.series.length&&(u.unbindRedraw=(0,T.addEvent)(t,"beforeRedraw",function(){var i;t.series.length>0&&!u.series&&(u.setBaseSeries(),null==(i=u.unbindRedraw)||i.call(u))})),u.reversedExtremes=t.inverted&&!u.xAxis.reversed||!t.inverted&&u.xAxis.reversed,u.renderElements(),u.addMouseEvents()}else u.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(i,e){var o=t.xAxis[0],r=o.getExtremes(),n=o.len-2*p,s=tD("min",o.options.min,r.dataMin),a=tD("max",o.options.max,r.dataMax)-s;return e?i*a/n+s:n*(i-s)/a},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},u.xAxis.navigatorAxis.axis=u.xAxis,u.xAxis.navigatorAxis.toFixedRange=td.prototype.toFixedRange.bind(u.xAxis.navigatorAxis);if(null==(r=t.options.scrollbar)?void 0:r.enabled){var b=(0,T.merge)(t.options.scrollbar,{vertical:t.inverted});(0,T.isNumber)(b.margin)||(b.margin=t.inverted?-3:3),t.scrollbar=u.scrollbar=new tP(t.renderer,b,t),(0,T.addEvent)(u.scrollbar,"changed",function(t){var i,e=u.size,o=e*this.to,r=e*this.from;u.hasDragged=null==(i=u.scrollbar)?void 0:i.hasDragged,u.render(0,0,r,o),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){u.onMouseUp(t)})})}u.addBaseSeriesEvents(),u.addChartEvents()},t.prototype.setOpposite=function(){var t=this.navigatorOptions,i=this.navigatorEnabled,e=this.chart;this.opposite=(0,T.pick)(t.opposite,!!(!i&&e.inverted))},t.prototype.getUnionExtremes=function(t){var i,e=this.chart.xAxis[0],o=this.chart.time,r=this.xAxis,n=r.options,s=e.options;return t&&null===e.dataMin||(i={dataMin:(0,T.pick)(o.parse(null==n?void 0:n.min),tD("min",o.parse(s.min),e.dataMin,r.dataMin,r.min)),dataMax:(0,T.pick)(o.parse(null==n?void 0:n.max),tD("max",o.parse(s.max),e.dataMax,r.dataMax,r.max))}),i},t.prototype.setBaseSeries=function(t,i){var e,o=this.chart,r=this.baseSeries=[];t=t||(null==(e=o.options.navigator)?void 0:e.baseSeries)||(o.series.length?(0,T.find)(o.series,function(t){return!t.options.isInternal}).index:0),(o.series||[]).forEach(function(i,e){!i.options.isInternal&&(i.options.showInNavigator||(e===t||i.options.id===t)&&!1!==i.options.showInNavigator)&&r.push(i)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,i)},t.prototype.updateNavigatorSeries=function(t,i){var e,o,r,n,s,a=this,h=a.chart,l=a.baseSeries,d={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:null==(e=this.navigatorOptions.xAxis)?void 0:e.id,yAxis:null==(o=this.navigatorOptions.yAxis)?void 0:o.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},c=a.series=(a.series||[]).filter(function(t){var i=t.baseSeries;return!(i&&0>l.indexOf(i))||(i&&((0,T.removeEvent)(i,"updatedData",a.updatedDataHandler),delete i.navigatorSeries),t.chart&&t.destroy(),!1)}),p=a.navigatorOptions.series;if(l&&l.length&&l.forEach(function(t){var e,o,u=t.navigatorSeries,f=(0,T.extend)({color:t.color,visible:t.visible},(0,T.isArray)(p)?tC.navigator.series:p);if(!u||!1!==a.navigatorOptions.adaptToUpdatedData){d.name="Navigator "+l.length,s=(r=t.options||{}).navigatorOptions||{},f.dataLabels=(0,T.splat)(f.dataLabels),(n=(0,T.merge)(r,d,f,s)).pointRange=(0,T.pick)(f.pointRange,s.pointRange,null==(e=tC.plotOptions[n.type||"line"])?void 0:e.pointRange);var g=s.data||f.data,v=s.dataTable||f.dataTable;a.hasNavigatorData=a.hasNavigatorData||!!g||!!v,n.data=g||(null==(o=r.data)?void 0:o.slice(0)),n.dataTable=v||r.dataTable,u&&u.options?u.update(n,i):(t.navigatorSeries=h.initSeries(n),(0,T.fireEvent)(t.navigatorSeries,"afterUpdate"),t.navigatorSeries.baseSeries=t,c.push(t.navigatorSeries))}}),((null==p?void 0:p.data)||(null==p?void 0:p.dataTable))&&!(l&&l.length)||(0,T.isArray)(p)){var u=h.options.colors||[];a.hasNavigatorData=!1,(p=(0,T.splat)(p)).forEach(function(t,i){var e;d.name="Navigator "+(c.length+1),(n=(0,T.merge)(null==(e=tC.navigator)?void 0:e.series,{color:h.series[i]&&!h.series[i].options.isInternal&&h.series[i].color||u[i]||u[0]},d,t)).data=t.data,n.dataTable=t.dataTable,(n.data||n.dataTable)&&(a.hasNavigatorData=!0,c.push(h.initSeries(n)))})}t&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var t=this,i=this,e=i.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push((0,T.addEvent)(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(function(o){o.eventsToUnbind.push((0,T.addEvent)(o,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),o.eventsToUnbind.push((0,T.addEvent)(o,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==t.navigatorOptions.adaptToUpdatedData&&o.xAxis&&o.eventsToUnbind.push((0,T.addEvent)(o,"updatedData",t.updatedDataHandler)),o.eventsToUnbind.push((0,T.addEvent)(o,"remove",function(){e&&(0,T.erase)(e,o),this.navigatorSeries&&i.series&&((0,T.erase)(i.series,this.navigatorSeries),(0,T.defined)(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},t.prototype.getBaseSeriesMin=function(t){return this.baseSeries.reduce(function(t,i){var e;return Math.min(t,null!=(e=i.getColumn("x")[0])?e:t)},t)},t.prototype.modifyNavigatorAxisExtremes=function(){var t=this.xAxis;if(void 0!==t.getExtremes){var i=this.getUnionExtremes(!0);i&&(i.dataMin!==t.min||i.dataMax!==t.max)&&(t.min=i.dataMin,t.max=i.dataMax)}},t.prototype.modifyBaseAxisExtremes=function(){var t,i,e,o=this.chart.navigator,r=this.getExtremes(),n=r.min,s=r.max,a=r.dataMin,h=r.dataMax,l=s-n,d=null==o?void 0:o.stickToMin,c=null==o?void 0:o.stickToMax,p=(0,T.pick)(null==(t=this.ordinal)?void 0:t.convertOverscroll(this.options.overscroll),0),u=o.series&&o.series[0],f=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(d&&(i=(e=a)+l),c&&(i=h+p,d||(e=Math.max(a,i-l,o.getBaseSeriesMin(u&&u.xData?u.xData[0]:-Number.MAX_VALUE)))),f&&(d||c)&&(0,T.isNumber)(e)&&(this.min=this.userMin=e,this.max=this.userMax=i)),o.stickToMin=o.stickToMax=null},t.prototype.updatedDataHandler=function(){var t=this.chart.navigator,i=this.navigatorSeries,e=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=(0,T.pick)(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,e),t.stickToMin=t.shouldStickToMin(this,t),i&&!t.hasNavigatorData&&(i.options.pointStart=this.getColumn("x")[0],i.setData(this.options.data||this.options.dataTable,!1,void 0,!1))},t.prototype.shouldStickToMin=function(t,i){var e=i.getBaseSeriesMin(t.getColumn("x")[0]),o=t.xAxis,r=o.max,n=o.min,s=o.options.range;return!!((0,T.isNumber)(r)&&(0,T.isNumber)(n))&&(s&&r-e>0?r-e<s:n<=e)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push((0,T.addEvent)(this.chart,"redraw",function(){var t=this.navigator,i=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);i&&t.render(i.min,i.max)}),(0,T.addEvent)(this.chart,"getMargins",function(){var t,i=this.navigator,e=i.opposite?"plotTop":"marginBottom";this.inverted&&(e=i.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(i.navigatorEnabled||!this.inverted?i.height+((null==(t=this.scrollbar)?void 0:t.options.margin)||0)+i.scrollbarHeight:0)+(i.navigatorOptions.margin||0)}),(0,T.addEvent)(this,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))},t.prototype.destroy=function(){var t=this;this.removeEvents(),this.xAxis&&((0,T.erase)(this.chart.xAxis,this.xAxis),(0,T.erase)(this.chart.axes,this.xAxis)),this.yAxis&&((0,T.erase)(this.chart.yAxis,this.yAxis),(0,T.erase)(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(t){t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(function(i){t[i]&&t[i].destroy&&t[i].destroy(),t[i]=null}),[this.handles].forEach(function(t){(0,T.destroyObjectProperties)(t)}),this.baseSeries.forEach(function(t){t.navigatorSeries=void 0}),this.navigatorEnabled=!1},t}(),tL={rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→",rangeSelector:{allText:"All",allTitle:"View all",monthText:"{count}m",monthTitle:"View {count} {#eq count 1}month{else}months{/eq}",yearText:"{count}y",yearTitle:"View {count} {#eq count 1}year{else}years{/eq}",ytdText:"YTD",ytdTitle:"View year to date"}},tz={allButtonsEnabled:!1,buttons:[{type:"month",count:1},{type:"month",count:3},{type:"month",count:6},{type:"ytd"},{type:"year",count:1},{type:"all"}],buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%[ebY]",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"var(--highcharts-highlight-color-80)",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"}},tG=C().defaultOptions,tR=C().composed,tW=[];function tH(){var t,i,e=this.range,o=e.type,r=this.max,n=this.chart.time,s=function(t,i){var e=n.toParts(t),r=e.slice();"year"===o?r[0]+=i:r[1]+=i;var s=n.makeTime.apply(n,r),a=n.toParts(s);return"month"===o&&e[1]===a[1]&&1===Math.abs(i)&&(r[0]=e[0],r[1]=e[1],r[2]=0),(s=n.makeTime.apply(n,r))-t};(0,T.isNumber)(e)?(t=r-e,i=e):e&&(t=r+s(r,-(e.count||1)),this.chart&&this.chart.setFixedRange(r-t));var a=(0,T.pick)(this.dataMin,5e-324);return(0,T.isNumber)(t)||(t=a),t<=a&&(t=a,void 0===i&&(i=s(t,e.count)),this.newMax=Math.min(t+i,(0,T.pick)(this.dataMax,Number.MAX_VALUE))),(0,T.isNumber)(r)?!(0,T.isNumber)(e)&&e&&e._offsetMin&&(t+=e._offsetMin):t=void 0,t}function t_(){var t;null==(t=this.rangeSelector)||t.redrawElements()}function tF(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new M(this))}function tj(){var t=this.rangeSelector;if(t){(0,T.isNumber)(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick);var i=t.options.verticalAlign;t.options.floating||("bottom"===i?this.extraBottomMargin=!0:"top"===i&&(this.extraTopMargin=!0))}}function tU(){var t,i=this.rangeSelector;if(i){var e=this.xAxis[0].getExtremes(),o=this.legend,r=i&&i.options.verticalAlign;(0,T.isNumber)(e.min)&&i.render(e.min,e.max),(null==o?void 0:o.display)&&"top"===r&&r===o.options.verticalAlign&&(t=(0,T.merge)(this.spacingBox),"vertical"===o.options.layout?t.y=this.plotTop:t.y+=i.getHeight(),o.group.placed=!1,o.align(t))}}function tX(){for(var t=0,i=tW.length;t<i;++t){var e=tW[t];if(e[0]===this){e[1].forEach(function(t){return t()}),tW.splice(t,1);return}}}function tY(){var t,i=this.rangeSelector;if(null==(t=null==i?void 0:i.options)?void 0:t.enabled){var e=this.xAxis[0].getExtremes(),o=e.min,r=e.max;(0,T.isNumber)(o)&&i.inputGroup&&i.inputGroup.getBBox().width<20&&i.render(o,r);var n=i.getHeight(),s=i.options.verticalAlign;i.options.floating||("bottom"===s?this.marginBottom+=n:"middle"!==s&&(this.plotTop+=n))}}function tV(t){var i=t.options.rangeSelector,e=this.extraBottomMargin,o=this.extraTopMargin,r=this.rangeSelector;if(i&&i.enabled&&!(0,T.defined)(r)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=r=new M(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,r){var n=i&&i.verticalAlign||r.options&&r.options.verticalAlign;r.options.floating||("bottom"===n?this.extraBottomMargin=!0:"middle"!==n&&(this.extraTopMargin=!0)),(this.extraBottomMargin!==e||this.extraTopMargin!==o)&&(this.isDirtyBox=!0)}}var tq=function(t,i,e){if(M=e,(0,T.pushUnique)(tR,"RangeSelector")){var o=i.prototype;t.prototype.minFromRange=tH,(0,T.addEvent)(i,"afterGetContainer",tF),(0,T.addEvent)(i,"beforeRender",tj),(0,T.addEvent)(i,"destroy",tX),(0,T.addEvent)(i,"getMargins",tY),(0,T.addEvent)(i,"redraw",tU),(0,T.addEvent)(i,"update",tV),(0,T.addEvent)(i,"beforeRedraw",t_),o.callbacks.push(tU),(0,T.extend)(tG,{rangeSelector:tz}),(0,T.extend)(tG.lang,tL)}},tZ=P(28),tK=P.n(tZ),tJ=P(984),tQ=P.n(tJ),t$=C().defaultOptions,t0=tQ().format;function t1(t){var i=function(i){return new RegExp("%[[a-zA-Z]*".concat(i)).test(t)};if((0,T.isString)(t)?-1!==t.indexOf("%L"):t.fractionalSecondDigits)return"text";var e=(0,T.isString)(t)?["a","A","d","e","w","b","B","m","o","y","Y"].some(i):t.dateStyle||t.day||t.month||t.year,o=(0,T.isString)(t)?["H","k","I","l","M","S"].some(i):t.timeStyle||t.hour||t.minute||t.second;return e&&o?"datetime-local":e?"date":o?"time":"text"}var t2=function(){function t(t){var i=this;this.isDirty=!1,this.buttonOptions=[],this.initialButtonGroupWidth=0,this.maxButtonWidth=function(){var t=0;return i.buttons.forEach(function(i){var e=i.getBBox();e.width>t&&(t=e.width)}),t},this.init(t)}return t.compose=function(i,e){tq(i,e,t)},t.prototype.clickButton=function(t,i){var e,o,r,n,s,a=this.chart,h=this.buttonOptions[t],l=a.xAxis[0],d=a.scroller&&a.scroller.getUnionExtremes()||l||{},c=h.type,p=h.dataGrouping,u=d.dataMin,f=d.dataMax,g=(0,T.isNumber)(null==l?void 0:l.max)?Math.round(Math.min(l.max,null!=f?f:l.max)):void 0,v=h._range,x=!0;if(null!==u&&null!==f){if(this.setSelected(t),p&&(this.forcedDataGrouping=!0,K().prototype.setDataGrouping.call(l||{chart:this.chart},p,!1),this.frozenStates=h.preserveDataGrouping),"month"===c||"year"===c)l?(n={range:h,max:g,chart:a,dataMin:u,dataMax:f},e=l.minFromRange.call(n),(0,T.isNumber)(n.newMax)&&(g=n.newMax),x=!1):v=h;else if(v)(0,T.isNumber)(g)&&(g=Math.min((e=Math.max(g-v,u))+v,f),x=!1);else if("ytd"===c)if(l)!l.hasData()||(0,T.isNumber)(f)&&(0,T.isNumber)(u)||(u=Number.MAX_VALUE,f=-Number.MAX_VALUE,a.series.forEach(function(t){var i=t.getColumn("x");i.length&&(u=Math.min(i[0],u),f=Math.max(i[i.length-1],f))}),i=!1),(0,T.isNumber)(f)&&(0,T.isNumber)(u)&&(e=r=(s=this.getYTDExtremes(f,u)).min,g=s.max);else{this.deferredYTDClick=t;return}else"all"===c&&l&&(a.navigator&&a.navigator.baseSeries[0]&&(a.navigator.baseSeries[0].xAxis.options.range=void 0),e=u,g=f);if(x&&h._offsetMin&&(0,T.defined)(e)&&(e+=h._offsetMin),h._offsetMax&&(0,T.defined)(g)&&(g+=h._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),l)((0,T.isNumber)(e)||(0,T.isNumber)(g))&&(l.setExtremes(e,g,(0,T.pick)(i,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:h}),a.setFixedRange(h._range));else{o=(0,T.splat)(a.options.xAxis||{})[0];var m=(0,T.addEvent)(a,"afterCreateAxes",function(){var t=a.xAxis[0];t.range=t.options.range=v,t.min=t.options.min=r});(0,T.addEvent)(a,"load",function(){var t=a.xAxis[0];a.setFixedRange(h._range),t.options.range=o.range,t.options.min=o.min,m()})}(0,T.fireEvent)(this,"afterBtnClick")}},t.prototype.setSelected=function(t){this.selected=this.options.selected=t},t.prototype.init=function(t){var i=this,e=t.options.rangeSelector,o=t.options.lang,r=e.buttons,n=e.selected,s=function(){var t=i.minInput,e=i.maxInput;t&&t.blur&&(0,T.fireEvent)(t,"blur"),e&&e.blur&&(0,T.fireEvent)(e,"blur")};i.chart=t,i.options=e,i.buttons=[],i.buttonOptions=r.map(function(t){return t.type&&o.rangeSelector&&(null!=t.text||(t.text=o.rangeSelector[""+t.type+"Text"]),null!=t.title||(t.title=o.rangeSelector[""+t.type+"Title"])),t.text=t0(t.text,{count:t.count||1}),t.title=t0(t.title,{count:t.count||1}),t}),this.eventsToUnbind=[],this.eventsToUnbind.push((0,T.addEvent)(t.container,"mousedown",s)),this.eventsToUnbind.push((0,T.addEvent)(t,"resize",s)),r.forEach(i.computeButtonRange),void 0!==n&&r[n]&&this.clickButton(n,!1),this.eventsToUnbind.push((0,T.addEvent)(t,"load",function(){t.xAxis&&t.xAxis[0]&&(0,T.addEvent)(t.xAxis[0],"setExtremes",function(e){(0,T.isNumber)(this.max)&&(0,T.isNumber)(this.min)&&this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==e.trigger&&"updatedData"!==e.trigger&&i.forcedDataGrouping&&!i.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()},t.prototype.updateButtonStates=function(){var t=this,i=this.chart,e=this.dropdown,o=this.dropdownLabel,r=i.xAxis[0],n=Math.round(r.max-r.min),s=!r.hasVisibleSeries,a=24*36e5,h=i.scroller&&i.scroller.getUnionExtremes()||r,l=h.dataMin,d=h.dataMax,c=t.getYTDExtremes(d,l),p=c.min,u=c.max,f=t.selected,g=t.options.allButtonsEnabled,v=Array(t.buttonOptions.length).fill(0),x=(0,T.isNumber)(f),m=t.buttons,b=!1,y=null;t.buttonOptions.forEach(function(i,e){var o,h=i._range,c=i.type,m=i.count||1,M=i._offsetMax-i._offsetMin,k=e===f,E=h>d-l,w=h<r.minRange,A=!1,O=h===n;if(k&&E&&(b=!0),r.isOrdinal&&(null==(o=r.ordinal)?void 0:o.positions)&&h&&n<h){var S=r.ordinal.positions;S[S.length-1]-S[0]>h&&(O=!0)}else("month"===c||"year"===c)&&n+36e5>=({month:28,year:365})[c]*a*m-M&&n-36e5<=({month:31,year:366})[c]*a*m+M?O=!0:"ytd"===c?(O=u-p+M===n,A=!k):"all"===c&&(O=r.max-r.min>=d-l);var P=!g&&!(b&&"all"===c)&&(E||w||s),B=b&&"all"===c||!A&&O||k&&t.frozenStates;P?v[e]=3:B&&(!x||e===f)&&(y=e)}),null!==y?(v[y]=2,t.setSelected(y),this.dropdown&&(this.dropdown.selectedIndex=y+1)):(t.setSelected(),this.dropdown&&(this.dropdown.selectedIndex=-1),o&&(o.setState(0),o.attr({text:(t$.lang.rangeSelectorZoom||"")+" ▾"})));for(var M=0;M<v.length;M++){var k=v[M],E=m[M];if(E.state!==k&&(E.setState(k),e)){e.options[M+1].disabled=3===k,2===k&&(o&&(o.setState(2),o.attr({text:t.buttonOptions[M].text+" ▾"})),e.selectedIndex=M+1);var w=o.getBBox();(0,T.css)(e,{width:""+w.width+"px",height:""+w.height+"px"})}}},t.prototype.computeButtonRange=function(t){var i=t.type,e=t.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[i]?t._range=o[i]*e:("month"===i||"year"===i)&&(t._range=24*({month:30,year:365})[i]*36e5*e),t._offsetMin=(0,T.pick)(t.offsetMin,0),t._offsetMax=(0,T.pick)(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},t.prototype.getInputValue=function(t){var i="min"===t?this.minInput:this.maxInput,e=this.chart.options.rangeSelector,o=this.chart.time;return i?("text"===i.type&&e.inputDateParser||this.defaultInputDateParser)(i.value,"UTC"===o.timezone,o):0},t.prototype.setInputValue=function(t,i){var e=this.options,o=this.chart.time,r="min"===t?this.minInput:this.maxInput,n="min"===t?this.minDateBox:this.maxDateBox;if(r){r.setAttribute("type",t1(e.inputDateFormat||"%e %b %Y"));var s=r.getAttribute("data-hc-time"),a=(0,T.defined)(s)?Number(s):void 0;if((0,T.defined)(i)){var h=a;(0,T.defined)(h)&&r.setAttribute("data-hc-time-previous",h),r.setAttribute("data-hc-time",i),a=i}r.value=o.dateFormat(this.inputTypeFormats[r.type]||e.inputEditDateFormat,a),n&&n.attr({text:o.dateFormat(e.inputDateFormat,a)})}},t.prototype.setInputExtremes=function(t,i,e){var o="min"===t?this.minInput:this.maxInput;if(o){var r=this.inputTypeFormats[o.type],n=this.chart.time;if(r){var s=n.dateFormat(r,i);o.min!==s&&(o.min=s);var a=n.dateFormat(r,e);o.max!==a&&(o.max=a)}}},t.prototype.showInput=function(t){var i="min"===t?this.minDateBox:this.maxDateBox,e="min"===t?this.minInput:this.maxInput;if(e&&i&&this.inputGroup){var o="text"===e.type,r=this.inputGroup,n=r.translateX,s=void 0===n?0:n,a=r.translateY,h=void 0===a?0:a,l=i.x,d=void 0===l?0:l,c=i.width,p=void 0===c?0:c,u=i.height,f=void 0===u?0:u,g=this.options.inputBoxWidth;(0,T.css)(e,{width:o?p+(g?-2:20)+"px":"auto",height:f-2+"px",border:"2px solid silver"}),o&&g?(0,T.css)(e,{left:s+d+"px",top:h+"px"}):(0,T.css)(e,{left:Math.min(Math.round(d+s-(e.offsetWidth-p)/2),this.chart.chartWidth-e.offsetWidth)+"px",top:h-(e.offsetHeight-f)/2+"px"})}},t.prototype.hideInput=function(t){var i="min"===t?this.minInput:this.maxInput;i&&(0,T.css)(i,{top:"-9999em",border:0,width:"1px",height:"1px"})},t.prototype.defaultInputDateParser=function(t,i,e){return(null==e?void 0:e.parse(t))||0},t.prototype.drawInput=function(t){var i=this.chart,e=this.div,o=this.inputGroup,r=this,n=i.renderer.style||{},s=i.renderer,a=i.options.rangeSelector,h=t$.lang,l="min"===t;function d(t){var e,o=r.maxInput,n=r.minInput,s=i.xAxis[0],a=(null==(e=i.scroller)?void 0:e.getUnionExtremes())||s,h=a.dataMin,d=a.dataMax,c=i.xAxis[0].getExtremes()[t],p=r.getInputValue(t);(0,T.isNumber)(p)&&p!==c&&(l&&o&&(0,T.isNumber)(h)?p>Number(o.getAttribute("data-hc-time"))?p=void 0:p<h&&(p=h):n&&(0,T.isNumber)(d)&&(p<Number(n.getAttribute("data-hc-time"))?p=void 0:p>d&&(p=d)),void 0!==p&&s.setExtremes(l?p:s.min,l?s.max:p,void 0,void 0,{trigger:"rangeSelectorInput"}))}var c=h[l?"rangeSelectorFrom":"rangeSelectorTo"]||"",p=s.label(c,0).addClass("highcharts-range-label").attr({padding:2*!!c,height:c?a.inputBoxHeight:0}).add(o),u=s.label("",0).addClass("highcharts-range-input").attr({padding:2,width:a.inputBoxWidth,height:a.inputBoxHeight,"text-align":"center"}).on("click",function(){r.showInput(t),r[t+"Input"].focus()});i.styledMode||u.attr({stroke:a.inputBoxBorderColor,"stroke-width":1}),u.add(o);var f=(0,T.createElement)("input",{name:t,className:"highcharts-range-selector"},void 0,e);f.setAttribute("type",t1(a.inputDateFormat||"%e %b %Y")),i.styledMode||(p.css((0,T.merge)(n,a.labelStyle)),u.css((0,T.merge)({color:"var(--highcharts-neutral-color-80)"},n,a.inputStyle)),(0,T.css)(f,(0,T.extend)({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},a.inputStyle))),f.onfocus=function(){r.showInput(t)},f.onblur=function(){f===C().doc.activeElement&&d(t),r.hideInput(t),r.setInputValue(t),f.blur()};var g=!1;return f.onchange=function(){g||(d(t),r.hideInput(t),f.blur())},f.onkeypress=function(i){13===i.keyCode&&d(t)},f.onkeydown=function(i){g=!0,("ArrowUp"===i.key||"ArrowDown"===i.key||"Tab"===i.key)&&d(t)},f.onkeyup=function(){g=!1},{dateBox:u,input:f,label:p}},t.prototype.getPosition=function(){var t=this.chart,i=t.options.rangeSelector,e="top"===i.verticalAlign?t.plotTop-t.axisOffset[0]:0;return{buttonTop:e+i.buttonPosition.y,inputTop:e+i.inputPosition.y-10}},t.prototype.getYTDExtremes=function(t,i){var e=this.chart.time,o=e.toParts(t)[0];return{max:t,min:Math.max(i,e.makeTime(o,0))}},t.prototype.createElements=function(){var t,i=this.chart,e=i.renderer,o=i.container,r=i.options,n=r.rangeSelector,s=n.inputEnabled,a=(0,T.pick)(null==(t=r.chart.style)?void 0:t.zIndex,0)+1;!1!==n.enabled&&(this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=(0,T.createElement)("div",void 0,{position:"relative",height:0,zIndex:a}),this.buttonOptions.length&&this.renderButtons(),o.parentNode&&o.parentNode.insertBefore(this.div,o),s&&this.createInputs())},t.prototype.createInputs=function(){this.inputGroup=this.chart.renderer.g("input-group").add(this.group);var t=this.drawInput("min");this.minDateBox=t.dateBox,this.minLabel=t.label,this.minInput=t.input;var i=this.drawInput("max");this.maxDateBox=i.dateBox,this.maxLabel=i.label,this.maxInput=i.input},t.prototype.render=function(t,i){if(!1!==this.options.enabled){var e,o,r=this.chart,n=r.options.rangeSelector;if(n.inputEnabled){this.inputGroup||this.createInputs(),this.setInputValue("min",t),this.setInputValue("max",i),this.chart.styledMode||(null==(e=this.maxLabel)||e.css(n.labelStyle),null==(o=this.minLabel)||o.css(n.labelStyle));var s=r.scroller&&r.scroller.getUnionExtremes()||r.xAxis[0]||{};if((0,T.defined)(s.dataMin)&&(0,T.defined)(s.dataMax)){var a=r.xAxis[0].minRange||0;this.setInputExtremes("min",s.dataMin,Math.min(s.dataMax,this.getInputValue("max"))-a),this.setInputExtremes("max",Math.max(s.dataMin,this.getInputValue("min"))+a,s.dataMax)}if(this.inputGroup){var h=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(t){if(t){var i=t.getBBox().width;i&&(t.attr({x:h}),h+=i+n.inputSpacing)}})}}else this.inputGroup&&(this.inputGroup.destroy(),delete this.inputGroup);!this.chart.styledMode&&this.zoomText&&this.zoomText.css(n.labelStyle),this.alignElements(),this.updateButtonStates()}},t.prototype.renderButtons=function(){var t,i,e=this,o=this.chart,r=this.options,n=t$.lang,s=o.renderer,a=(0,T.merge)(r.buttonTheme),h=a&&a.states;delete a.width,delete a.states,this.buttonGroup=s.g("range-selector-buttons").add(this.group);var l=this.dropdown=(0,T.createElement)("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),d=null==(t=o.userOptions.rangeSelector)?void 0:t.buttonTheme;this.dropdownLabel=s.button("",0,0,function(){},(0,T.merge)(a,{"stroke-width":(0,T.pick)(a["stroke-width"],0),width:"auto",paddingLeft:(0,T.pick)(r.buttonTheme.paddingLeft,null==d?void 0:d.padding,8),paddingRight:(0,T.pick)(r.buttonTheme.paddingRight,null==d?void 0:d.padding,8)}),h&&h.hover,h&&h.select,h&&h.disabled).hide().add(this.group),(0,T.addEvent)(l,"touchstart",function(){l.style.fontSize="16px"});var c=C().isMS?"mouseover":"mouseenter",p=C().isMS?"mouseout":"mouseleave";(0,T.addEvent)(l,c,function(){(0,T.fireEvent)(e.dropdownLabel.element,c)}),(0,T.addEvent)(l,p,function(){(0,T.fireEvent)(e.dropdownLabel.element,p)}),(0,T.addEvent)(l,"change",function(){var t=e.buttons[l.selectedIndex-1];(0,T.fireEvent)(t.element,"click")}),this.zoomText=s.label(n.rangeSelectorZoom||"",0).attr({padding:r.buttonTheme.padding,height:r.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(r.labelStyle),null!=(i=r.buttonTheme)["stroke-width"]||(i["stroke-width"]=0)),(0,T.createElement)("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,l),this.createButtons()},t.prototype.createButtons=function(){var t=this,i=this.options,e=(0,T.merge)(i.buttonTheme),o=e&&e.states,r=e.width||28;delete e.width,delete e.states,this.buttonOptions.forEach(function(i,e){t.createButton(i,e,r,o)})},t.prototype.createButton=function(t,i,e,o){var r,n=this,s=this.dropdown,a=this.buttons,h=this.chart,l=this.options,d=h.renderer,c=(0,T.merge)(l.buttonTheme);null==s||s.add((0,T.createElement)("option",{textContent:t.title||t.text}),i+2),a[i]=d.button(null!=(r=t.text)?r:"",0,0,function(e){var o,r=t.events&&t.events.click;r&&(o=r.call(t,e)),!1!==o&&n.clickButton(i),n.isActive=!0},c,o&&o.hover,o&&o.select,o&&o.disabled).attr({"text-align":"center",width:e}).add(this.buttonGroup),t.title&&a[i].attr("title",t.title)},t.prototype.alignElements=function(){var t,i=this,e=this.buttonGroup,o=this.buttons,r=this.chart,n=this.group,s=this.inputGroup,a=this.options,h=this.zoomText,l=r.options,d=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions,c=a.buttonPosition,p=a.inputPosition,u=a.verticalAlign,f=function(t,e,o){return d&&i.titleCollision(r)&&"top"===u&&o&&e.y-t.getBBox().height-12<(d.y||0)+(d.height||0)+r.spacing[0]?-40:0},g=r.plotLeft;if(n&&c&&p){var v=c.x-r.spacing[3];if(e){if(this.positionButtons(),!this.initialButtonGroupWidth){var x=0;h&&(x+=h.getBBox().width+5),o.forEach(function(t,i){x+=t.width||0,i!==o.length-1&&(x+=a.buttonSpacing)}),this.initialButtonGroupWidth=x}g-=r.spacing[3];var m=f(e,c,"right"===c.align||"right"===p.align);this.alignButtonGroup(m),(null==(t=this.buttonGroup)?void 0:t.translateY)&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),n.placed=e.placed=r.hasLoaded}var b=0;a.inputEnabled&&s&&(b=f(s,p,"right"===c.align||"right"===p.align),"left"===p.align?v=g:"right"===p.align&&(v=-Math.max(r.axisOffset[1],-b)),s.align({y:p.y,width:s.getBBox().width,align:p.align,x:p.x+v-2},!0,r.spacingBox),s.placed=r.hasLoaded),this.handleCollision(b),n.align({verticalAlign:u},!0,r.spacingBox);var y=n.alignAttr.translateY,M=n.getBBox().height+20,k=0;if("bottom"===u){var E=r.legend&&r.legend.options;k=y-(M=M+(E&&"bottom"===E.verticalAlign&&E.enabled&&!E.floating?r.legend.legendHeight+(0,T.pick)(E.margin,10):0)-20)-(a.floating?0:a.y)-(r.titleOffset?r.titleOffset[2]:0)-10}"top"===u?(a.floating&&(k=0),r.titleOffset&&r.titleOffset[0]&&(k=r.titleOffset[0]),k+=r.margin[0]-r.spacing[0]||0):"middle"===u&&(p.y===c.y?k=y:(p.y||c.y)&&(p.y<0||c.y<0?k-=Math.min(p.y,c.y):k=y-M)),n.translate(a.x,a.y+Math.floor(k));var w=this.minInput,A=this.maxInput,O=this.dropdown;a.inputEnabled&&w&&A&&(w.style.marginTop=n.translateY+"px",A.style.marginTop=n.translateY+"px"),O&&(O.style.marginTop=n.translateY+"px")}},t.prototype.redrawElements=function(){var t,i,e,o,r,n,s,a=this.chart,h=this.options,l=h.inputBoxHeight,d=h.inputBoxBorderColor;if(null==(t=this.maxDateBox)||t.attr({height:l}),null==(i=this.minDateBox)||i.attr({height:l}),a.styledMode||(null==(e=this.maxDateBox)||e.attr({stroke:d}),null==(o=this.minDateBox)||o.attr({stroke:d})),this.isDirty){this.isDirty=!1,this.isCollapsed=void 0;var c=null!=(r=this.options.buttons)?r:[],p=Math.min(c.length,this.buttonOptions.length),u=this.dropdown,f=this.options,g=(0,T.merge)(f.buttonTheme),v=g&&g.states,x=g.width||28;if(c.length<this.buttonOptions.length)for(var m=this.buttonOptions.length-1;m>=c.length;m--){var b=this.buttons.pop();null==b||b.destroy(),null==(n=this.dropdown)||n.options.remove(m+1)}for(var m=p-1;m>=0;m--){var y=c[m];this.buttons[m].destroy(),null==u||u.options.remove(m+1),this.createButton(y,m,x,v),this.computeButtonRange(y)}if(c.length>this.buttonOptions.length)for(var m=this.buttonOptions.length;m<c.length;m++)this.createButton(c[m],m,x,v),this.computeButtonRange(c[m]);this.buttonOptions=null!=(s=this.options.buttons)?s:[],(0,T.defined)(this.options.selected)&&this.buttons.length&&this.clickButton(this.options.selected,!1)}},t.prototype.alignButtonGroup=function(t,i){var e=this.chart,o=this.options,r=this.buttonGroup,n=this.dropdown,s=this.dropdownLabel,a=o.buttonPosition,h=e.plotLeft-e.spacing[3],l=a.x-e.spacing[3],d=e.plotLeft;"right"===a.align?(l+=t-h,this.hasVisibleDropdown&&(d=e.chartWidth+t-this.maxButtonWidth()-20)):"center"===a.align&&(l-=h/2,this.hasVisibleDropdown&&(d=e.chartWidth/2-this.maxButtonWidth())),n&&(0,T.css)(n,{left:d+"px",top:(null==r?void 0:r.translateY)+"px"}),null==s||s.attr({x:d}),r&&r.align({y:a.y,width:(0,T.pick)(i,this.initialButtonGroupWidth),align:a.align,x:l},!0,e.spacingBox)},t.prototype.positionButtons=function(){var t=this.buttons,i=this.chart,e=this.options,o=this.zoomText,r=i.hasLoaded?"animate":"attr",n=e.buttonPosition,s=i.plotLeft,a=s;o&&"hidden"!==o.visibility&&(o[r]({x:(0,T.pick)(s+n.x,s)}),a+=n.x+o.getBBox().width+5);for(var h=0,l=this.buttonOptions.length;h<l;++h)"hidden"!==t[h].visibility?(t[h][r]({x:a}),a+=(t[h].width||0)+e.buttonSpacing):t[h][r]({x:s})},t.prototype.handleCollision=function(t){var i=this.chart,e=this.buttonGroup,o=this.inputGroup,r=this.initialButtonGroupWidth,n=this.options,s=n.buttonPosition,a=n.dropdown,h=n.inputPosition,l=function(){o&&e&&o.attr({translateX:o.alignAttr.translateX+(i.axisOffset[1]>=-t?0:-t),translateY:o.alignAttr.translateY+e.getBBox().height+10})};o&&e?h.align===s.align?(l(),r>i.plotWidth+t-20?this.collapseButtons():this.expandButtons()):r-t+o.getBBox().width>i.plotWidth?"responsive"===a||"always"===a?this.collapseButtons():l():this.expandButtons():e&&"responsive"===a&&(r>i.plotWidth?this.collapseButtons():this.expandButtons()),e&&("always"===a&&this.collapseButtons(),"never"===a&&this.expandButtons()),this.alignButtonGroup(t)},t.prototype.collapseButtons=function(){var t=this.buttons,i=this.zoomText;!0!==this.isCollapsed&&(this.isCollapsed=!0,i.hide(),t.forEach(function(t){t.hide()}),this.showDropdown())},t.prototype.expandButtons=function(){var t=this.buttons,i=this.zoomText;!1!==this.isCollapsed&&(this.isCollapsed=!1,this.hideDropdown(),i.show(),t.forEach(function(t){t.show()}),this.positionButtons())},t.prototype.showDropdown=function(){var t=this.buttonGroup,i=this.dropdownLabel,e=this.dropdown;t&&e&&(i.show(),(0,T.css)(e,{visibility:"inherit"}),this.hasVisibleDropdown=!0)},t.prototype.hideDropdown=function(){var t=this.dropdown;t&&(this.dropdownLabel.hide(),(0,T.css)(t,{visibility:"hidden"}),this.hasVisibleDropdown=!1)},t.prototype.getHeight=function(){var t=this.options,i=this.group,e=t.inputPosition,o=t.buttonPosition,r=t.y,n=o.y,s=e.y,a=0;if(t.height)return t.height;this.alignElements(),a=i?i.getBBox(!0).height+13+r:0;var h=Math.min(s,n);return(s<0&&n<0||s>0&&n>0)&&(a+=Math.abs(h)),a},t.prototype.titleCollision=function(t){return!(t.options.title.text||t.options.subtitle.text)},t.prototype.update=function(t,i){void 0===i&&(i=!0);var e=this.chart;if((0,T.merge)(!0,this.options,t),this.options.selected&&this.options.selected>=this.options.buttons.length&&(this.options.selected=void 0,e.options.rangeSelector.selected=void 0),(0,T.defined)(t.enabled))return this.destroy(),this.init(e);this.isDirty=!!t.buttons||!!t.buttonTheme,i&&this.render()},t.prototype.destroy=function(){var i=this,e=i.minInput,o=i.maxInput;i.eventsToUnbind&&(i.eventsToUnbind.forEach(function(t){return t()}),i.eventsToUnbind=void 0),(0,T.destroyObjectProperties)(i.buttons),e&&(e.onfocus=e.onblur=e.onchange=null),o&&(o.onfocus=o.onblur=o.onchange=null),(0,T.objectEach)(i,function(e,o){e&&"chart"!==o&&(e instanceof tK()?e.destroy():e instanceof window.HTMLElement&&(0,T.discardElement)(e),delete i[o]),e!==t.prototype[o]&&(i[o]=null)},this),this.buttons=[]},t}();(0,T.extend)(t2.prototype,{inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});function t5(t,i){for(var e=[],o=0;o<t.length;o++){var r=t[o][1],n=t[o][2];if("number"==typeof r&&"number"==typeof n)if(0===o)e.push(["M",r,n]);else if(o===t.length-1)e.push(["L",r,n]);else if(i){var s=t[o-1],a=t[o+1];if(s&&a){var h=s[1],l=s[2],d=a[1],c=a[2];if("number"==typeof h&&"number"==typeof d&&"number"==typeof l&&"number"==typeof c&&h!==d&&l!==c){var p=h<d?1:-1,u=l<c?1:-1;e.push(["L",r-p*Math.min(Math.abs(r-h),i),n-u*Math.min(Math.abs(n-l),i)],["C",r,n,r,n,r+p*Math.min(Math.abs(r-d),i),n+u*Math.min(Math.abs(n-c),i)])}}}else e.push(["L",r,n])}return e}var t3=Math.min,t4=Math.max,t6=Math.abs;function t8(t,i,e){for(var o,r,n=i-1e-7,s=e||0,a=t.length-1;s<=a;)if((r=n-t[o=a+s>>1].xMin)>0)s=o+1;else{if(!(r<0))return o;a=o-1}return s>0?s-1:0}function t9(t,i){for(var e,o=t8(t,i.x+1)+1;o--;)if(t[o].xMax>=i.x&&(e=t[o],i.x<=e.xMax&&i.x>=e.xMin&&i.y<=e.yMax&&i.y>=e.yMin))return o;return -1}function t7(t){var i=[];if(t.length){i.push(["M",t[0].start.x,t[0].start.y]);for(var e=0;e<t.length;++e)i.push(["L",t[e].end.x,t[e].end.y])}return i}function it(t,i){t.yMin=t4(t.yMin,i.yMin),t.yMax=t3(t.yMax,i.yMax),t.xMin=t4(t.xMin,i.xMin),t.xMax=t3(t.xMax,i.xMax)}var ii=function(t,i,e){var o,r,n,s,a,h=[],l=e.chartObstacles,d=t9(l,t),c=t9(l,i),p=(0,T.pick)(e.startDirectionX,t6(i.x-t.x)>t6(i.y-t.y))?"x":"y";function u(t,i,e,o,r){var n={x:t.x,y:t.y};return n[i]=e[o||i]+(r||0),n}function f(t,i,e){var o=t6(i[e]-t[e+"Min"])>t6(i[e]-t[e+"Max"]);return u(i,e,t,e+(o?"Max":"Min"),o?1:-1)}c>-1?(o={start:n=f(l[c],i,p),end:i},a=n):a=i,d>-1&&(n=f(r=l[d],t,p),h.push({start:t,end:n}),n[p]>=t[p]==n[p]>=a[p]&&(s=t[p="y"===p?"x":"y"]<i[p],h.push({start:n,end:u(n,p,r,p+(s?"Max":"Min"),s?1:-1)}),p="y"===p?"x":"y"));var g=h.length?h[h.length-1].end:t;n=u(g,p,a),h.push({start:g,end:n});var v=u(n,p="y"===p?"x":"y",a);return h.push({start:n,end:v}),o&&h.push(o),{path:t5(t7(h),e.radius),obstacles:h}};function ie(t,i,e){var o,r,n,s,a,h,l,d=(0,T.pick)(e.startDirectionX,t6(i.x-t.x)>t6(i.y-t.y)),c=d?"x":"y",p=[],u=e.obstacleMetrics,f=t3(t.x,i.x)-u.maxWidth-10,g=t4(t.x,i.x)+u.maxWidth+10,v=t3(t.y,i.y)-u.maxHeight-10,x=t4(t.y,i.y)+u.maxHeight+10,m=!1,b=e.chartObstacles,y=t8(b,g),M=t8(b,f);function k(t,i,e){var o,r,n,s,a=t.x<i.x?1:-1;t.x<i.x?(o=t,r=i):(o=i,r=t),t.y<i.y?(s=t,n=i):(s=i,n=t);for(var h=a<0?t3(t8(b,r.x),b.length-1):0;b[h]&&(a>0&&b[h].xMin<=r.x||a<0&&b[h].xMax>=o.x);){if(b[h].xMin<=r.x&&b[h].xMax>=o.x&&b[h].yMin<=n.y&&b[h].yMax>=s.y){if(e)return{y:t.y,x:t.x<i.x?b[h].xMin-1:b[h].xMax+1,obstacle:b[h]};return{x:t.x,y:t.y<i.y?b[h].yMin-1:b[h].yMax+1,obstacle:b[h]}}h+=a}return i}function E(t,i,e,o,r){var n=r.soft,s=r.hard,a=o?"x":"y",h={x:i.x,y:i.y},l={x:i.x,y:i.y},d=t[a+"Max"]>=n[a+"Max"],c=t[a+"Min"]<=n[a+"Min"],p=t[a+"Max"]>=s[a+"Max"],u=t[a+"Min"]<=s[a+"Min"],f=t6(t[a+"Min"]-i[a]),g=t6(t[a+"Max"]-i[a]),v=10>t6(f-g)?i[a]<e[a]:g<f;l[a]=t[a+"Min"],h[a]=t[a+"Max"];var x=k(i,l,o)[a]!==l[a],m=k(i,h,o)[a]!==h[a];return v=x?!m||v:!m&&v,v=c?!d||v:!d&&v,v=u?!p||v:!p&&v}for((y=t9(b=b.slice(M,y+1),i))>-1&&(o=b[y],r=i,n=t3(o.xMax-r.x,r.x-o.xMin)<t3(o.yMax-r.y,r.y-o.yMin),s=E(o,r,t,n,{soft:e.hardBounds,hard:e.hardBounds}),l=n?{y:r.y,x:o[s?"xMax":"xMin"]+(s?1:-1)}:{x:r.x,y:o[s?"yMax":"yMin"]+(s?1:-1)},p.push({end:i,start:l}),i=l);(y=t9(b,i))>-1;)h=i[c]-t[c]<0,(l={x:i.x,y:i.y})[c]=b[y][h?c+"Max":c+"Min"]+(h?1:-1),p.push({end:i,start:l}),i=l;return{path:t7(a=(a=function t(i,o,r){if(i.x===o.x&&i.y===o.y)return[];var n,s,a,h,l,d,c,p=r?"x":"y",u=e.obstacleOptions.margin,y={soft:{xMin:f,xMax:g,yMin:v,yMax:x},hard:e.hardBounds};return(l=t9(b,i))>-1?(h=E(l=b[l],i,o,r,y),it(l,e.hardBounds),c=r?{y:i.y,x:l[h?"xMax":"xMin"]+(h?1:-1)}:{x:i.x,y:l[h?"yMax":"yMin"]+(h?1:-1)},(d=t9(b,c))>-1&&(it(d=b[d],e.hardBounds),c[p]=h?t4(l[p+"Max"]-u+1,(d[p+"Min"]+l[p+"Max"])/2):t3(l[p+"Min"]+u-1,(d[p+"Max"]+l[p+"Min"])/2),i.x===c.x&&i.y===c.y?(m&&(c[p]=h?t4(l[p+"Max"],d[p+"Max"])+1:t3(l[p+"Min"],d[p+"Min"])-1),m=!m):m=!1),s=[{start:i,end:c}]):(n=k(i,{x:r?o.x:i.x,y:r?i.y:o.y},r),s=[{start:i,end:{x:n.x,y:n.y}}],n[r?"x":"y"]!==o[r?"x":"y"]&&(h=E(n.obstacle,n,o,!r,y),it(n.obstacle,e.hardBounds),a={x:r?n.x:n.obstacle[h?"xMax":"xMin"]+(h?1:-1),y:r?n.obstacle[h?"yMax":"yMin"]+(h?1:-1):n.y},r=!r,s=s.concat(t({x:n.x,y:n.y},a,r)))),s=s.concat(t(s[s.length-1].end,o,!r))}(t,i,d)).concat(p.reverse())),obstacles:a}}ii.requiresObstacles=!0,ie.requiresObstacles=!0;var io={connectors:{type:"straight",radius:0,lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}},ir=C().setOptions;function is(t){var i=t.shapeArgs;if(i)return{xMin:i.x||0,xMax:(i.x||0)+(i.width||0),yMin:i.y||0,yMax:(i.y||0)+(i.height||0)};var e=t.graphic&&t.graphic.getBBox();return e?{xMin:t.plotX-e.width/2,xMax:t.plotX+e.width/2,yMin:t.plotY-e.height/2,yMax:t.plotY+e.height/2}:null}!function(t){function i(t){var i,e,o=is(this);switch(t.align){case"right":i="xMax";break;case"left":i="xMin"}switch(t.verticalAlign){case"top":e="yMin";break;case"bottom":e="yMax"}return i=i?o[i]:(o.xMin+o.xMax)/2,e=e?o[e]:(o.yMin+o.yMax)/2,{x:i+(t.xOffset||0),y:e+(t.yOffset||0)}}function e(t,i){var e;return!(0,T.defined)(i)&&(e=is(this))&&(i={x:(e.xMin+e.xMax)/2,y:(e.yMin+e.yMax)/2}),Math.atan2(i.y-t.y,t.x-i.x)}function o(t,i,e){for(var o=2*Math.PI,r=is(this),n=r.xMax-r.xMin,s=r.yMax-r.yMin,a=Math.atan2(s,n),h=n/2,l=s/2,d=r.xMin+h,c=r.yMin+l,p={x:d,y:c},u=t,f=1,g=!1,v=1,x=1;u<-Math.PI;)u+=o;for(;u>Math.PI;)u-=o;return f=Math.tan(u),u>-a&&u<=a?(x=-1,g=!0):u>a&&u<=Math.PI-a?x=-1:u>Math.PI-a||u<=-(Math.PI-a)?(v=-1,g=!0):v=-1,g?(p.x+=v*h,p.y+=x*h*f):(p.x+=s/(2*f)*v,p.y+=x*l),e.x!==d&&(p.x=e.x),e.y!==c&&(p.y=e.y),{x:p.x+i*Math.cos(u),y:p.y-i*Math.sin(u)}}t.compose=function(t,r,n){var s=n.prototype;s.getPathfinderAnchorPoint||(t.prototype.callbacks.push(function(t){!1!==t.options.connectors.enabled&&((t.options.pathfinder||t.series.reduce(function(t,i){return i.options&&(0,T.merge)(!0,i.options.connectors=i.options.connectors||{},i.options.pathfinder),t||i.options&&i.options.pathfinder},!1))&&((0,T.merge)(!0,t.options.connectors=t.options.connectors||{},t.options.pathfinder),(0,T.error)('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')),this.pathfinder=new r(this),this.pathfinder.update(!0))}),s.getMarkerVector=o,s.getPathfinderAnchorPoint=i,s.getRadiansToVector=e,ir(io))}}(k||(k={}));var ia=k,ih=P(260),il=P.n(ih),id=Math.max,ic=Math.min,ip=function(){function t(t){this.init(t)}return t.compose=function(i,e){ia.compose(i,t,e)},t.prototype.init=function(t){this.chart=t,this.connections=[],(0,T.addEvent)(t,"redraw",function(){this.pathfinder.update()})},t.prototype.update=function(t){var i=this.chart,e=this,o=e.connections;e.connections=[],i.series.forEach(function(t){t.visible&&!t.options.isInternal&&t.points.forEach(function(t){var o,r,n=t.options;n&&n.dependency&&(n.connect=n.dependency);var s=(null==(o=t.options)?void 0:o.connect)?(0,T.splat)(t.options.connect):[];t.visible&&!1!==t.isInside&&s.forEach(function(o){var n="string"==typeof o?o:o.to;n&&(r=i.get(n)),r instanceof il()&&r.series.visible&&r.visible&&!1!==r.isInside&&e.connections.push(new H(t,r,"string"==typeof o?{}:o))})})});for(var r=0,n=void 0,s=void 0,a=o.length,h=e.connections.length;r<a;++r){s=!1;var l=o[r];for(n=0;n<h;++n){var d=e.connections[n];if((l.options&&l.options.type)===(d.options&&d.options.type)&&l.fromPoint===d.fromPoint&&l.toPoint===d.toPoint){d.graphics=l.graphics,s=!0;break}}s||l.destroy()}delete this.chartObstacles,delete this.lineObstacles,e.renderConnections(t)},t.prototype.renderConnections=function(t){t?this.chart.series.forEach(function(t){var i=function(){var i=t.chart.pathfinder;(i&&i.connections||[]).forEach(function(i){i.fromPoint&&i.fromPoint.series===t&&i.render()}),t.pathfinderRemoveRenderEvent&&(t.pathfinderRemoveRenderEvent(),delete t.pathfinderRemoveRenderEvent)};!1===t.options.animation?i():t.pathfinderRemoveRenderEvent=(0,T.addEvent)(t,"afterAnimate",i)}):this.connections.forEach(function(t){t.render()})},t.prototype.getChartObstacles=function(t){for(var i,e=this.chart.series,o=(0,T.pick)(t.algorithmMargin,0),r=[],n=0,s=e.length;n<s;++n)if(e[n].visible&&!e[n].options.isInternal)for(var a=0,h=e[n].points.length,l=void 0,d=void 0;a<h;++a)(d=e[n].points[a]).visible&&(l=function(t){var i=t.shapeArgs;if(i)return{xMin:i.x||0,xMax:(i.x||0)+(i.width||0),yMin:i.y||0,yMax:(i.y||0)+(i.height||0)};var e=t.graphic&&t.graphic.getBBox();return e?{xMin:t.plotX-e.width/2,xMax:t.plotX+e.width/2,yMin:t.plotY-e.height/2,yMax:t.plotY+e.height/2}:null}(d))&&r.push({xMin:l.xMin-o,xMax:l.xMax+o,yMin:l.yMin-o,yMax:l.yMax+o});return r=r.sort(function(t,i){return t.xMin-i.xMin}),(0,T.defined)(t.algorithmMargin)||(i=t.algorithmMargin=function(t){for(var i,e=t.length,o=[],r=0;r<e;++r)for(var n=r+1;n<e;++n)(i=function t(i,e,o){var r=(0,T.pick)(o,10),n=i.yMax+r>e.yMin-r&&i.yMin-r<e.yMax+r,s=i.xMax+r>e.xMin-r&&i.xMin-r<e.xMax+r,a=n?i.xMin>e.xMax?i.xMin-e.xMax:e.xMin-i.xMax:1/0,h=s?i.yMin>e.yMax?i.yMin-e.yMax:e.yMin-i.yMax:1/0;return s&&n?r?t(i,e,Math.floor(r/2)):1/0:ic(a,h)}(t[r],t[n]))<80&&o.push(i);return o.push(80),id(Math.floor(o.sort(function(t,i){return t-i})[Math.floor(o.length/10)]/2-1),1)}(r),r.forEach(function(t){t.xMin-=i,t.xMax+=i,t.yMin-=i,t.yMax+=i})),r},t.prototype.getObstacleMetrics=function(t){for(var i,e,o=0,r=0,n=t.length;n--;)i=t[n].xMax-t[n].xMin,e=t[n].yMax-t[n].yMin,o<i&&(o=i),r<e&&(r=e);return{maxHeight:r,maxWidth:o}},t.prototype.getAlgorithmStartDirection=function(t){var i="left"!==t.align&&"right"!==t.align,e="top"!==t.verticalAlign&&"bottom"!==t.verticalAlign;return i?!!e&&void 0:!!e||void 0},t}();ip.prototype.algorithms={fastAvoid:ie,straight:function(t,i){return{path:[["M",t.x,t.y],["L",i.x,i.y]],obstacles:[{start:t,end:i}]}},simpleConnect:ii};/**
 * @license Highcharts Gantt JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/pathfinder
 * @requires highcharts
 *
 * Pathfinder
 *
 * (c) 2016-2026 Highsoft AS
 * Author: Øystein Moseng
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */var iu=C();iu.Pathfinder=iu.Pathfinder||ip,I(iu.SVGRenderer),iu.Pathfinder.compose(iu.Chart,iu.Point);var ig=C().composed;function iv(t,i){if((0,T.pushUnique)(ig,"StaticScale")){var e=i.prototype;(0,T.addEvent)(t,"afterSetOptions",ix),e.adjustHeight=im,(0,T.addEvent)(i,"render",e.adjustHeight)}}function ix(){var t,i=this.chart.userOptions.chart;!this.horiz&&(0,T.isNumber)(this.options.staticScale)&&(!(null==i?void 0:i.height)||(null==(t=i.scrollablePlotArea)?void 0:t.minHeight))&&(this.staticScale=this.options.staticScale)}function im(){var t,i;if("adjustHeight"!==this.redrawTrigger){for(var e=0,o=this.axes||[];e<o.length;e++)!function(e){var o=e.chart,r=e.options.staticScale;if(e.staticScale&&r&&(0,T.defined)(e.min)&&(0,T.defined)(e.max)){var n=(null!=(i=null==(t=e.brokenAxis)?void 0:t.unitLength)?i:e.max+e.tickInterval-e.min)*r,s=(n=Math.max(n,r))-o.plotHeight;!o.scrollablePixelsY&&Math.abs(s)>=1&&(o.plotHeight=n,o.redrawTrigger="adjustHeight",o.setSize(void 0,o.chartHeight+s,!!o.initiatedScale&&void 0)),e.series.forEach(function(t){var i=t.sharedClipKey&&o.sharedClips[t.sharedClipKey];i&&i.attr(o.inverted?{width:o.plotHeight}:{height:o.plotHeight})})}}(o[e]);this.initiatedScale=!0}this.redrawTrigger=void 0}/**
 * @license Highcharts Gantt JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/static-scale
 * @requires highcharts
 *
 * StaticScale
 *
 * (c) 2016-2026 Highsoft AS
 * Author: Torstein Hønsi, Lars A. V. Cabrera
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */var ib=C();iv(ib.Axis,ib.Chart);var iy=P(620),iM=P.n(iy),ik={colorByPoint:!0,dataLabels:{formatter:function(){var t=this.partialFill;if((0,T.isObject)(t)&&(t=t.amount),(0,T.isNumber)(t)&&t>0)return(0,T.correctFloat)(100*t)+"%"},inside:!0,verticalAlign:"middle",style:{whiteSpace:"nowrap"}},tooltip:{headerFormat:'<span style="font-size: 0.8em">{ucfirst point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0},iE=(p=function(t,i){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}p(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),iw=function(t){function i(i,e,o){var r=t.call(this,i,e,o)||this;return r.y||(r.y=0),r}return iE(i,t),i.getColorByCategory=function(t,i){var e=t.chart,o=t.options.colors||e.options.colors,r=o?o.length:e.options.chart.colorCount||1,n=(i.y||0)%r,s=null==o?void 0:o[n];return{colorIndex:n,color:s}},i.prototype.resolveColor=function(){var t=this.series;if(t.options.colorByPoint&&!this.options.color){var e=i.getColorByCategory(t,this);t.chart.styledMode||(this.color=e.color),(void 0===this.options.colorIndex||null===this.options.colorIndex)&&(this.colorIndex=e.colorIndex)}else this.color=this.options.color||t.color},i.prototype.applyOptions=function(i,e){var o;return t.prototype.applyOptions.call(this,i,e),this.x2=this.series.chart.time.parse(this.x2),this.isNull=!(null==(o=this.isValid)?void 0:o.call(this)),this.formatPrefix=this.isNull?"null":"point",this},i.prototype.setState=function(){t.prototype.setState.apply(this,arguments),this.series.drawPoint(this,this.series.getAnimationVerb())},i.prototype.isValid=function(){return"number"==typeof this.x&&"number"==typeof this.x2},i}(tp().seriesTypes.column.prototype.pointClass);(0,T.extend)(iw.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});var iA=(u=function(t,i){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}u(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),iO=C().composed,iS=C().noop,iP=iM().parse,iB=tp().seriesTypes.column;function iT(){var t,i,e=this.chart.time;if(this.isXAxis){t=(0,T.pick)(this.dataMax,-Number.MAX_VALUE);for(var o=0,r=this.series;o<r.length;o++)for(var n=r[o],s=n.dataTable.getColumn("x2",!0)||n.dataTable.getColumn("end",!0)||[],a=0;a<s.length;a++){var h=s[a];"string"==typeof h&&(h=e.parse(h)),(0,T.isNumber)(h)&&h>t&&(t=h,i=!0)}i&&(this.dataMax=t)}}var iC=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return iA(i,t),i.compose=function(t){(0,T.pushUnique)(iO,"Series.XRange")&&(0,T.addEvent)(t,"afterGetSeriesExtremes",iT)},i.prototype.init=function(){t.prototype.init.apply(this,arguments),this.options.stacking=void 0},i.prototype.getColumnMetrics=function(){var i=this,e=function(){for(var t=0,e=i.chart.series;t<e.length;t++){var o=e[t],r=o.xAxis;o.xAxis=o.yAxis,o.yAxis=r}};e();var o=t.prototype.getColumnMetrics.call(this);return e(),o},i.prototype.cropData=function(i,e,o){var r=i.getColumn("x")||[],n=i.getColumn("x2");i.setColumn("x",n,void 0,{silent:!0});var s=t.prototype.cropData.call(this,i,e,o);return i.setColumn("x",r.slice(s.start,s.end),void 0,{silent:!0}),s},i.prototype.findPointIndex=function(t){var i,e=this.cropStart,o=this.points,r=t.id;if(r){var n=(0,T.find)(o,function(t){return t.id===r});i=n?n.index:void 0}if(void 0===i){var n=(0,T.find)(o,function(i){return i.x===t.x&&i.x2===t.x2&&!i.touched});i=n?n.index:void 0}return this.cropped&&(0,T.isNumber)(i)&&(0,T.isNumber)(e)&&i>=e&&(i-=e),i},i.prototype.alignDataLabel=function(i){var e,o,r=i.plotX;i.plotX=(0,T.pick)(null==(e=i.dlBox)?void 0:e.centerX,i.plotX),i.dataLabel&&(null==(o=i.shapeArgs)?void 0:o.width)&&i.dataLabel.css({width:""+i.shapeArgs.width+"px"}),t.prototype.alignDataLabel.apply(this,arguments),i.plotX=r},i.prototype.translatePoint=function(t){var i,e,o,r,n,s,a,h,l,d,c=this.xAxis,p=this.yAxis,u=this.columnMetrics,f=this.options,g=f.minPointLength||0,v=((null==(i=t.shapeArgs)?void 0:i.width)||0)/2,x=this.pointXOffset=u.offset,m=(0,T.pick)(t.x2,t.x+(t.len||0)),b=f.borderRadius,y=this.chart.plotTop,M=this.chart.plotLeft,k=t.plotX,E=c.translate(m,0,0,0,1),w=Math.abs(E-k),A=this.chart.inverted,O=(0,T.pick)(f.borderWidth,1),S=u.offset,P=Math.round(u.width);g&&((n=g-w)<0&&(n=0),k-=n/2,E+=n/2),k=Math.max(k,-10),E=(0,T.clamp)(E,-10,c.len+10),(0,T.defined)(t.options.pointWidth)&&(S-=(Math.ceil(t.options.pointWidth)-P)/2,P=Math.ceil(t.options.pointWidth)),f.pointPlacement&&(0,T.isNumber)(t.plotY)&&p.categories&&(t.plotY=p.translate(t.y,0,1,0,1,f.pointPlacement));var B=(0,T.crisp)(Math.min(k,E),O),C=(0,T.crisp)(Math.max(k,E),O)-B,N=Math.min((0,T.relativeLength)("object"==typeof b?b.radius:b||0,P),Math.min(C,P)/2),D={x:B,y:(0,T.crisp)((t.plotY||0)+S,O),width:C,height:P,r:N};t.shapeArgs=D,A?t.tooltipPos[1]+=x+v:t.tooltipPos[0]-=v+x-D.width/2,h=(a=D.x)+D.width,a<0||h>c.len?(a=(0,T.clamp)(a,0,c.len),l=(h=(0,T.clamp)(h,0,c.len))-a,t.dlBox=(0,T.merge)(D,{x:a,width:h-a,centerX:l?l/2:null})):t.dlBox=null;var I=t.tooltipPos,L=+!!A,z=+!A,G=this.columnMetrics?this.columnMetrics.offset:-u.width/2;A?I[L]+=D.width/2:I[L]=(0,T.clamp)(I[L]+(c.reversed?-1:0)*D.width,c.left-M,c.left+c.len-M-1),I[z]=(0,T.clamp)(I[z]+(A?-1:1)*G,p.top-y,p.top+p.len-y-1),(s=null!=(e=t.partialFill)?e:0)&&((0,T.isObject)(s)&&(s=s.amount||0),(0,T.isNumber)(s)||(s=0),t.partShapeArgs=(0,T.merge)(D),d=Math.max(Math.round(w*s+t.plotX-k),0),t.clipRectArgs={x:c.reversed?D.x+w-d:D.x,y:D.y,width:d,height:D.height}),t.key=t.category||t.name,t.yCategory=null==(o=p.categories)?void 0:o[null!=(r=t.y)?r:-1]},i.prototype.translate=function(){t.prototype.translate.apply(this,arguments);for(var i=0,e=this.points;i<e.length;i++){var o=e[i];this.translatePoint(o)}},i.prototype.drawPoint=function(t,i){var e=this.options,o=this.chart.renderer,r=t.shapeType,n=t.shapeArgs,s=t.partShapeArgs,a=t.clipRectArgs,h=t.state,l=e.states[h||"normal"]||{},d=void 0===h?"attr":i,c=this.pointAttribs(t,h),p=(0,T.pick)(this.chart.options.chart.animation,l.animation),u=t.graphic,f=t.partialFill;if(t.isNull||!1===t.visible)u&&(t.graphic=u.destroy());else{var g=t.getClassName();if(u?u.rect[i](n):(t.graphic=u=o.g("point").add(t.group||this.group),u.rect=o[r]((0,T.merge)(n)).add(u)),u.addClass(g+(h&&"select"!==h?" highcharts-point-"+h:""),!0),u.rect.addClass(g+" highcharts-partfill-original",!0),s&&(u.partRect?(u.partRect[i]((0,T.merge)(s)),u.partialClipRect[i]((0,T.merge)(a))):(u.partialClipRect=o.clipRect(a.x,a.y,a.width,a.height),u.partRect=o[r](s).addClass("highcharts-partfill-overlay").add(u).clip(u.partialClipRect))),!this.chart.styledMode&&(u.rect[i](c,p).shadow(e.shadow),s)){(0,T.isObject)(f)||(f={}),(0,T.isObject)(e.partialFill)&&(f=(0,T.merge)(e.partialFill,f));var v=f.fill||iP(c.fill).brighten(-.3).get()||iP(t.color||this.color).brighten(-.3).get();c.fill=v,u.partRect[d](c,p).shadow(e.shadow)}}},i.prototype.drawPoints=function(){for(var t=this.getAnimationVerb(),i=0,e=this.points;i<e.length;i++){var o=e[i];this.drawPoint(o,t)}},i.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"},i.prototype.isPointInside=function(i){var e=i.shapeArgs,o=i.plotX,r=i.plotY;return e?void 0!==o&&void 0!==r&&r>=0&&r<=this.yAxis.len&&(e.x||0)+(e.width||0)>=0&&o<=this.xAxis.len:t.prototype.isPointInside.apply(this,arguments)},i.defaultOptions=(0,T.merge)(iB.defaultOptions,ik),i}(iB);(0,T.extend)(iC.prototype,{pointClass:iw,pointArrayMap:["x2","y"],getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:tp().series.prototype.animate,autoIncrement:iS,buildKDTree:iS}),tp().registerSeriesType("xrange",iC);/**
 * @license Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/xrange
 * @requires highcharts
 *
 * X-range series
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Hønsi, Lars A. V. Cabrera
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */var iN=C();iC.compose(iN.Axis);var iD=(f=function(t,i){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}f(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),iI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return iD(i,t),i.setGanttPointAliases=function(t,i){var e,o,r;t.x=t.start=i.time.parse(null!=(e=t.start)?e:t.x),t.x2=t.end=i.time.parse(null!=(o=t.end)?o:t.x2),t.partialFill=t.completed=null!=(r=t.completed)?r:t.partialFill},i.prototype.applyOptions=function(e,o){var r,n=t.prototype.applyOptions.call(this,e,o);return i.setGanttPointAliases(n,n.series.chart),this.isNull=!(null==(r=this.isValid)?void 0:r.call(this)),this.formatPrefix=this.isNull?"null":"point",n},i.prototype.isValid=function(){return("number"==typeof this.start||"number"==typeof this.x)&&("number"==typeof this.end||"number"==typeof this.x2||this.milestone)},i}(tp().seriesTypes.xrange.prototype.pointClass),iL={grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 0.8em">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){var t=this.series,i=t.xAxis,e=t.tooltipOptions.dateTimeLabelFormats,o=i.options.startOfWeek,r=t.tooltipOptions,n=this.options.milestone,s=r.xDateFormat,a="<b>"+(this.name||this.yCategory)+"</b>";if(r.pointFormat)return this.tooltipFormatter(r.pointFormat);!s&&(0,T.isNumber)(this.start)&&(s=t.chart.time.getDateFormat(i.closestPointRange,this.start,o,e||{}));var h=t.chart.time.dateFormat(s,this.start),l=t.chart.time.dateFormat(s,this.end);return a+="<br/>",n?a+=h+"<br/>":a+="Start: "+h+"<br/>"+("End: "+l)+"<br/>",a}},connectors:{type:"simpleConnect",animation:{reversed:!0},radius:0,startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,align:"left"},endMarker:{enabled:!1,align:"right"}}},iz=P(184),iG=P.n(iz);!function(t){function i(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function e(){var t;Object.keys((null==(t=this.options.breaks)?void 0:t[0])||{}).length&&(this.options.ordinal=!1)}function o(){var t=this.brokenAxis;if(null==t?void 0:t.hasBreaks){for(var i=this.tickPositions,e=this.tickPositions.info,o=[],r=0;r<i.length;r++)t.isInAnyBreak(i[r])||o.push(i[r]);this.tickPositions=o,this.tickPositions.info=e}}function r(){this.brokenAxis||(this.brokenAxis=new l(this))}function n(){var t,i,e=this.isDirty,o=this.options.connectNulls,r=this.points,n=this.xAxis,s=this.yAxis;if(e)for(var a=r.length;a--;){var h=r[a],l=(null!==h.y||!1!==o)&&((null==(t=null==n?void 0:n.brokenAxis)?void 0:t.isInAnyBreak(h.x,!0))||(null==(i=null==s?void 0:s.brokenAxis)?void 0:i.isInAnyBreak(h.y,!0)));h.visible=!l&&!1!==h.options.visible}}function s(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,(0,T.pick)(this.pointArrayMap,["y"]))}function a(t,i){var e,o,r,n,s=this,a=s.points;if(null==(e=null==t?void 0:t.brokenAxis)?void 0:e.hasBreaks){var h=t.brokenAxis;i.forEach(function(i){o=(null==h?void 0:h.breakArray)||[],r=t.isXAxis?t.min:(0,T.pick)(s.options.threshold,t.min),a.forEach(function(e){var s;n=null!=(s=e["stack"+i.toUpperCase()])?s:e[i],o.forEach(function(i){if((0,T.isNumber)(r)&&(0,T.isNumber)(n)){var o="";r<i.from&&n>i.to||r>i.from&&n<i.from?o="pointBreak":(r<i.from&&n>i.from&&n<i.to||r>i.from&&n>i.to&&n<i.from)&&(o="pointInBreak"),o&&(0,T.fireEvent)(t,o,{point:e,brk:i})}})})})}}function h(){var t,i=this.currentDataGrouping,e=null==i?void 0:i.gapSize,o=this.points.slice(),r=this.yAxis,n=this.options.gapSize,s=o.length-1;if(n&&s>0){"value"!==this.options.gapUnit&&(n*=this.basePointRange),e&&e>n&&e>=this.basePointRange&&(n=e);for(var a=void 0,h=void 0;s--;)if(h&&!1!==h.visible||(h=o[s+1]),a=o[s],!1!==h.visible&&!1!==a.visible){if(h.x-a.x>n){var l=(a.x+h.x)/2;o.splice(s+1,0,{isNull:!0,x:l}),r.stacking&&this.options.stacking&&((r.stacking.stacks[this.stackKey][l]=new(iG())(r,r.options.stackLabels,!1,l,null!=(t=this.stack)?t:"")).total=0)}h=a}}return this.getGraphPath(o)}t.compose=function(t,l){if(!t.keepProps.includes("brokenAxis")){t.keepProps.push("brokenAxis"),(0,T.addEvent)(t,"init",r),(0,T.addEvent)(t,"afterInit",i),(0,T.addEvent)(t,"afterSetTickPositions",o),(0,T.addEvent)(t,"afterSetOptions",e);var d=l.prototype;d.drawBreaks=a,d.gappedPath=h,(0,T.addEvent)(l,"afterGeneratePoints",n),(0,T.addEvent)(l,"afterRender",s)}return t};var l=function(){function t(t){this.axis=t}return t.isInBreak=function(t,i){var e=t.repeat||1/0,o=t.from,r=t.to-t.from,n=i>=o?(i-o)%e:e-(o-i)%e;return t.inclusive?n<=r:n<r&&0!==n},t.lin2Val=function(i){var e=this.min||0,o=this.brokenAxis,r=null==o?void 0:o.breakArray;if(!(null==r?void 0:r.length)||!(0,T.isNumber)(i))return i;var n=i;if(i>e)for(var s=0;s<r.length;s++){var a=r[s];if(a.from>n)break;a.to<=n&&a.to>e?n+=a.len:t.isInBreak(a,n)&&(n+=a.len)}else if(i<e)for(var h=0;h<r.length;h++){var a=r[h];if(a.from>e)break;a.from>=n&&a.from<e?n-=a.len:t.isInBreak(a,n)&&(n-=a.len)}return n},t.val2Lin=function(i){var e=this.min||0,o=this.brokenAxis,r=null==o?void 0:o.breakArray;if(!(null==r?void 0:r.length)||!(0,T.isNumber)(i))return i;var n=i;if(i>e)for(var s=0;s<r.length;s++){var a=r[s];if(a.to<=i&&a.to>e)n-=a.len;else if(a.from>i)break;else if(t.isInBreak(a,i)){n-=i-a.from;break}}else if(i<e)for(var h=0;h<r.length;h++){var a=r[h];if(a.from>=i&&a.from<e)n+=a.len;else if(a.from>e)break;else if(t.isInBreak(a,i)){n+=a.to-i;break}}return n},t.prototype.findBreakAt=function(t,i){return(0,T.find)(i,function(i){return i.from<t&&t<i.to})},t.prototype.isInAnyBreak=function(i,e){var o,r,n,s=this.axis,a=s.options.breaks||[],h=a.length;if(h&&(0,T.isNumber)(i)){for(;h--;)t.isInBreak(a[h],i)&&(o=!0,r||(r=(0,T.pick)(a[h].showPoints,!s.isXAxis)));n=o&&e?o&&!r:o}return n},t.prototype.setBreaks=function(i,e){var o,r=this,n=r.axis,s=n.chart.time,a=(0,T.isArray)(i)&&!!Object.keys((null==i?void 0:i[0])||{}).length;n.isDirty=(null!=(o=r.hasBreaks)&&o)!==a,r.hasBreaks=a,null==i||i.forEach(function(t){t.from=s.parse(t.from)||0,t.to=s.parse(t.to)||0}),i!==n.options.breaks&&(n.options.breaks=n.userOptions.breaks=i),n.forceRedraw=!0,n.series.forEach(function(t){t.isDirty=!0}),a||n.val2lin!==t.val2Lin||(delete n.val2lin,delete n.lin2val),a&&(n.userOptions.ordinal=!1,n.lin2val=t.lin2Val,n.val2lin=t.val2Lin,n.setExtremes=function(t,i,e,o,s){var a;if(r.hasBreaks&&!(null==(a=n.treeGrid)?void 0:a.tree)){for(var h=this.brokenAxis.breakArray||[],l=void 0;l=r.findBreakAt(t,h);)t=l.to;for(;l=r.findBreakAt(i,h);)i=l.from;i<t&&(i=t)}n.constructor.prototype.setExtremes.call(this,t,i,e,o,s)},n.setAxisTranslation=function(){if(n.constructor.prototype.setAxisTranslation.call(this),r.unitLength=void 0,r.hasBreaks){var i,e,o,s,a,h,l,d,c,p,u,f,g=n.options.breaks||[],v=[],x=[],m=null!=(i=n.pointRangePadding)?i:0,b=0,y=null!=(e=n.userMin)?e:n.min,M=null!=(o=n.userMax)?o:n.max,k=(0,T.isNumber)(y)?Math.min(null!=(s=n.dataMin)?s:y,y):null!=(a=n.dataMin)?a:y,E=(0,T.isNumber)(M)?Math.max(null!=(h=n.dataMax)?h:M,M):null!=(l=n.dataMax)?l:M;(null==(d=n.treeGrid)?void 0:d.tree)||g.forEach(function(i){p=i.repeat||1/0,(0,T.isNumber)(y)&&(0,T.isNumber)(M)&&(t.isInBreak(i,y)&&(y+=i.to%p-y%p),t.isInBreak(i,M)&&(M-=M%p-i.from%p))}),(0,T.isNumber)(k)&&(0,T.isNumber)(E)&&g.forEach(function(t){for(u=t.from,p=t.repeat||1/0;u-p>k;)u-=p;for(;u<k;)u+=p;for(f=u;f<E;f+=p)v.push({value:f,move:"in"}),v.push({value:f+t.to-t.from,move:"out",size:t.breakSize})}),v.sort(function(t,i){return t.value===i.value?("in"!==t.move)-("in"!==i.move):t.value-i.value}),c=0,u=k,v.forEach(function(t){1===(c+="in"===t.move?1:-1)&&"in"===t.move&&(u=t.value),0===c&&(0,T.isNumber)(u)&&(x.push({from:u,to:t.value,len:t.value-u-(t.size||0)}),(0,T.isNumber)(y)&&(0,T.isNumber)(M)&&u<M&&t.value>y&&(b+=t.value-u-(t.size||0)))}),r.breakArray=x,(0,T.isNumber)(y)&&(0,T.isNumber)(M)&&(0,T.isNumber)(n.min)&&(r.unitLength=M-y-b+m,(0,T.fireEvent)(n,"afterBreaks"),n.staticScale?n.transA=n.staticScale:r.unitLength&&(n.transA*=(M-n.min+m)/r.unitLength),m&&(n.minPixelPadding=n.transA*(n.minPointOffset||0)),n.min=y,n.max=M)}}),(0,T.pick)(e,!0)&&n.chart.redraw()},t}();t.Additions=l}(E||(E={}));var iR=E,iW=C().dateFormats;function iH(t){return(0,T.isObject)(t,!0)}function i_(t,i){var e={width:0,height:0};if(i.forEach(function(i){var o,r=t[i],n=0,s=0;iH(r)&&(n=(o=iH(r.label)?r.label:{}).getBBox?o.getBBox().height:0,o.textStr&&!(0,T.isNumber)(o.textPxLength)&&(o.textPxLength=o.getBBox().width),s=(0,T.isNumber)(o.textPxLength)?Math.round(o.textPxLength):0,o.textStr&&(s=Math.round(o.getBBox().width)),e.height=Math.max(n,e.height),e.width=Math.max(s,e.width))}),"treegrid"===this.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode){var o=this.treeGrid.mapOfPosToGridNode[-1].height||0;e.width+=this.options.labels.indentation*(o-1)}return e}function iF(t){var i=this.grid,e=3===this.side;if(e||t.apply(this),!(null==i?void 0:i.isColumn)){var o=(null==i?void 0:i.columns)||[];e&&(o=o.slice().reverse()),o.forEach(function(t){t.getOffset()})}e&&t.apply(this)}function ij(t){var i;if(!0===(this.options.grid||{}).enabled){var e=this.axisTitle,o=this.height,r=this.horiz,n=this.left,s=this.offset,a=this.opposite,h=this.options,l=this.top,d=this.width,c=this.tickSize(),p=null==e?void 0:e.getBBox().width,u=h.title,f=u.x,g=u.y,v=null!=(i=u.margin)?i:r?5:10,x=e?this.chart.renderer.fontMetrics(e).f:0,m=(r?l+o:n)+(r?1:-1)*(a?-1:1)*(c?c[0]/2:0)+(this.side===w.bottom?x:0);if(t.titlePosition.x=r?n-(p||0)/2-v+f:m+(a?d:0)+s+f,t.titlePosition.y=r?m-(a?o:0)+(a?x:-x)/2+s+g:l-v+g,!r){var b=(c||[])[0],y=void 0===b?0:b;"left"===u.textAlign?t.titlePosition.x-=y/2:"right"===u.textAlign&&(t.titlePosition.x+=y/2)}}}function iU(){var t,i=this.chart,e=this.options.grid,o=void 0===e?{}:e,r=this.userOptions;if(o.enabled&&((t=this.options).labels.align=(0,T.pick)(t.labels.align,"center"),this.categories||(t.showLastLabel=!1),this.labelRotation=0,t.labels.rotation=0,t.minTickInterval=1),o.columns)for(var n=this.grid.columns=[],s=this.grid.columnIndex=0;++s<o.columns.length;){var a=(0,T.merge)(r,o.columns[s],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),h=new(K())(this.chart,a,this.coll);h.grid.isColumn=!0,h.grid.columnIndex=s,(0,T.erase)(i.axes,h),(0,T.erase)(i[this.coll]||[],h),n.push(h)}}function iX(){var t,i,e=this.axisTitle,o=this.grid,r=this.options;if(!0===(r.grid||{}).enabled){var n=this.min||0,s=this.max||0,a=this.ticks[this.tickPositions[0]];if(e&&!this.chart.styledMode&&(null==a?void 0:a.slotWidth)&&!this.options.title.style.width&&e.css({width:""+a.slotWidth+"px"}),this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions),this.rightWall&&this.rightWall.destroy(),(null==(t=this.grid)?void 0:t.isOuterAxis())&&this.axisLine){var h=r.lineWidth;if(h){var l=this.getLinePath(h),d=l[0],c=l[1],p=(this.tickSize("tick")||[1])[0]*(this.side===w.top||this.side===w.left?-1:1);if("M"===d[0]&&"L"===c[0]&&(this.horiz?(d[2]+=p,c[2]+=p):(d[1]+=p,c[1]+=p)),!this.horiz&&this.chart.marginRight){var u=["L",this.left,d[2]||0],f=[d,u],g=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(s+this.tickmarkOffset)],v=[["M",c[1]||0,this.toPixels(s+this.tickmarkOffset)],g];this.grid.upperBorder||n%1==0||(this.grid.upperBorder=this.grid.renderBorder(f)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:r.lineColor,"stroke-width":r.lineWidth}),this.grid.upperBorder.animate({d:f})),this.grid.lowerBorder||s%1==0||(this.grid.lowerBorder=this.grid.renderBorder(v)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:r.lineColor,"stroke-width":r.lineWidth}),this.grid.lowerBorder.animate({d:v}))}this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:r.lineColor,"stroke-width":r.lineWidth}),this.grid.axisLineExtra.animate({d:l})):this.grid.axisLineExtra=this.grid.renderBorder(l),this.axisLine[this.showAxis?"show":"hide"]()}}if(((null==o?void 0:o.columns)||[]).forEach(function(t){return t.render()}),!this.horiz&&this.chart.hasRendered&&(this.scrollbar||(null==(i=this.linkedParent)?void 0:i.scrollbar))&&this.tickPositions.length){for(var x=this.tickmarkOffset,m=this.tickPositions[this.tickPositions.length-1],b=this.tickPositions[0],y=void 0,M=void 0;(y=this.hiddenLabels.pop())&&y.element;)y.show();for(;(M=this.hiddenMarks.pop())&&M.element;)M.show();(y=this.ticks[b].label)&&(n-b>x?this.hiddenLabels.push(y.hide()):y.show()),(y=this.ticks[m].label)&&(m-s>x?this.hiddenLabels.push(y.hide()):y.show());var k=this.ticks[m].mark;k&&m-s<x&&m-s>0&&this.ticks[m].isLast&&this.hiddenMarks.push(k.hide())}}}function iY(){var t,i=null==(t=this.tickPositions)?void 0:t.info,e=this.options,o=e.grid||{},r=this.userOptions.labels||{};o.enabled&&(this.horiz?(this.series.forEach(function(t){t.options.pointRange=0}),i&&e.dateTimeLabelFormats&&e.labels&&!(0,T.defined)(r.align)&&(!1===e.dateTimeLabelFormats[i.unitName].range||i.count>1)&&(e.labels.align="left",(0,T.defined)(r.x)||(e.labels.x=3))):"treegrid"!==this.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function iV(t){var i,e=this.options,o=t.userOptions,r=e&&iH(e.grid)?e.grid:{};!0===r.enabled&&(i=(0,T.merge)(!0,{className:"highcharts-grid-axis "+(o.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]]},o),"xAxis"===this.coll&&((0,T.defined)(o.linkedTo)&&!(0,T.defined)(o.tickPixelInterval)&&(i.tickPixelInterval=350),!(!(0,T.defined)(o.tickPixelInterval)&&(0,T.defined)(o.linkedTo))||(0,T.defined)(o.tickPositioner)||(0,T.defined)(o.tickInterval)||(0,T.defined)(o.units)||(i.tickPositioner=function(t,e){var o,r,n=null==(r=null==(o=this.linkedParent)?void 0:o.tickPositions)?void 0:r.info;if(n){for(var s=i.units||[],a=void 0,h=1,l="year",d=0;d<s.length;d++){var c=s[d];if(c&&c[0]===n.unitName){a=d;break}}var p=(0,T.isNumber)(a)&&s[a+1];if(p){l=p[0]||"year";var u=p[1];h=(null==u?void 0:u[0])||1}else"year"===n.unitName&&(h=10*n.count);var f=T.timeUnits[l];return this.tickInterval=f*h,this.chart.time.getTimeTicks({unitRange:f,count:h,unitName:l},t,e,this.options.startOfWeek)}})),(0,T.merge)(!0,this.options,i),this.horiz&&(e.minPadding=(0,T.pick)(o.minPadding,0),e.maxPadding=(0,T.pick)(o.maxPadding,0)),(0,T.isNumber)(e.grid.borderWidth)&&(e.tickWidth=e.lineWidth=r.borderWidth))}function iq(t){var i=t.userOptions,e=(null==i?void 0:i.grid)||{},o=e.columns;e.enabled&&o&&(0,T.merge)(!0,this.options,o[0])}function iZ(){(this.grid.columns||[]).forEach(function(t){return t.setScale()})}function iK(t){var i=this.horiz,e=this.maxLabelDimensions,o=this.options.grid,r=void 0===o?{}:o;if(r.enabled&&e){var n=2*this.options.labels.distance,s=i?r.cellHeight||n+e.height:n+e.width;(0,T.isArray)(t.tickSize)?t.tickSize[0]=s:t.tickSize=[s,0]}}function iJ(){this.axes.forEach(function(t){var i;((null==(i=t.grid)?void 0:i.columns)||[]).forEach(function(t){t.setAxisSize(),t.setAxisTranslation()})})}function iQ(t){var i=this.grid;(i.columns||[]).forEach(function(i){return i.destroy(t.keepEvents)}),i.columns=void 0}function i$(t){var i=t.userOptions||{},e=(0,T.merge)({borderColor:"var(--highcharts-neutral-color-20)"},i.grid||{});e.enabled&&(0,T.defined)(e.borderColor)&&(i.tickColor=i.lineColor=e.borderColor),this.grid||(this.grid=new i3(this)),this.hiddenLabels=[],this.hiddenMarks=[],this.clippable=!1}function i0(t){var i=this.label,e=this.axis,o=e.reversed,r=e.chart,n=e.options.grid||{},s=e.options.labels,a=s.align,h=w[e.side],l=t.tickmarkOffset,d=e.tickPositions,c=this.pos-l,p=(0,T.isNumber)(d[t.index+1])?d[t.index+1]-l:(e.max||0)+l,u=e.tickSize("tick"),f=u?u[0]:0,g=u?u[1]/2:0;if(!0===n.enabled){var v,x=void 0,m=void 0,b=void 0;if("top"===h?v=(x=e.top+e.offset)-f:"bottom"===h?x=(v=r.chartHeight-e.bottom+e.offset)+f:(x=e.top+e.len-(e.translate(o?p:c)||0),v=e.top+e.len-(e.translate(o?c:p)||0)),"right"===h?b=(m=r.chartWidth-e.right+e.offset)+f:"left"===h?m=(b=e.left+e.offset)-f:(m=Math.round(e.left+(e.translate(o?p:c)||0))-g,b=Math.min(Math.round(e.left+(e.translate(o?c:p)||0))-g,e.left+e.len)),this.slotWidth=b-m,t.pos.x="left"===a?m:"right"===a?b:m+(b-m)/2,t.pos.y=v+(x-v)/2,i){var y=r.renderer.fontMetrics(i),M=i.getBBox().height;if(s.useHTML)t.pos.y+=y.b+-(M/2);else{var k=Math.round(M/y.h);t.pos.y+=(y.b-(y.h-y.f))/2+-((k-1)*y.h/2)}}t.pos.x+=e.horiz&&s.x||0}}function i1(t){var i,e,o=t.axis,r=t.value;if(null==(i=o.options.grid)?void 0:i.enabled){var n=o.tickPositions,s=(o.linkedParent||o).series,a=null!=(e=s.reduce(function(t,i){var e,o;return i.is("gantt")?null==t?void 0:t.concat(null!=(o=null==(e=i.options)?void 0:e.data)?o:[]):t},[]))?e:[],h=r===n[0],l=r===n[n.length-1],d=s[0]&&(0,T.find)(a,function(t){return t[o.isXAxis?"x":"y"]===r}),c=void 0;d&&(c=(0,T.merge)(d),C().seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(c,o.chart)),t.isFirst=h,t.isLast=l,t.point=c}}function i2(){var t,i,e=this.options,o=e.grid||{},r=this.categories,n=this.tickPositions,s=n[0],a=n[1],h=n[n.length-1],l=n[n.length-2],d=null==(t=this.linkedParent)?void 0:t.min,c=null==(i=this.linkedParent)?void 0:i.max,p=d||this.min,u=c||this.max,f=this.tickInterval,g=(0,T.isNumber)(p)&&p>=s+f&&p<a,v=(0,T.isNumber)(p)&&s<p&&s+f>p,x=(0,T.isNumber)(u)&&h>u&&h-f<u,m=(0,T.isNumber)(u)&&u<=h-f&&u>l;!0===o.enabled&&!r&&(this.isXAxis||this.isLinked)&&((v||g)&&!e.startOnTick&&(n[0]=p),(x||m)&&!e.endOnTick&&(n[n.length-1]=u))}function i5(t){var i,e=this.options.grid;return!0===(void 0===e?{}:e).enabled&&this.categories?this.tickInterval:t.apply(this,(i=arguments,Array.prototype.slice.call(i,1)))}(g=w||(w={}))[g.top=0]="top",g[g.right=1]="right",g[g.bottom=2]="bottom",g[g.left=3]="left";var i3=function(){function t(t){this.axis=t}return t.prototype.isOuterAxis=function(){var t,i=this.axis,e=i.chart,o=i.grid.columnIndex,r=(null==(t=i.linkedParent)?void 0:t.grid.columns)||i.grid.columns||[],n=o?i.linkedParent:i,s=-1,a=0;return 3===i.side&&!e.inverted&&r.length?!i.linkedParent:((e[i.coll]||[]).forEach(function(t,e){t.side!==i.side||t.options.isInternal||(a=e,t===n&&(s=e))}),a===s&&(!(0,T.isNumber)(o)||r.length===o))},t.prototype.renderBorder=function(t){var i=this.axis,e=i.chart.renderer,o=i.options,r=e.path(t).addClass("highcharts-axis-line").add(i.axisGroup);return e.styledMode||r.attr({stroke:o.lineColor,"stroke-width":o.lineWidth,zIndex:7}),r},t}();iW.E=function(t){return this.dateFormat("%a",t,!0).charAt(0)},iW.W=function(t){var i=this.toParts(t),e=(i[7]+6)%7,o=i.slice(0);o[2]=i[2]-e+3;var r=this.toParts(this.makeTime(o[0],0,1));return 4!==r[7]&&(i[1]=0,i[2]=1+(11-r[7])%7),(1+Math.floor((this.makeTime(o[0],o[1],o[2])-this.makeTime(r[0],r[1],r[2]))/6048e5)).toString()};var i4=function(t,i){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>i.indexOf(o)&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)0>i.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(e[o[r]]=t[o[r]]);return e};function i6(t,i,e,o,r,n){var s,a,h=n&&n.after,l=n&&n.before,d={data:o,depth:e-1,id:t,level:e,parent:i||""},c=0,p=0;"function"==typeof l&&l(d,n);var u=(r[t]||[]).map(function(i){var o=i6(i.id,t,e+1,i,r,n),h=i.start||NaN,l=!0===i.milestone?h:i.end||NaN;return s=!(0,T.isNumber)(s)||h<s?h:s,a=!(0,T.isNumber)(a)||l>a?l:a,c=c+1+o.descendants,p=Math.max(o.height+1,p),o});return o&&(null!=o.start||(o.start=s),null!=o.end||(o.end=a)),(0,T.extend)(d,{children:u,descendants:c,height:p}),"function"==typeof h&&h(d,n),d}var i8=function(t,i){var e,o;return i6("",null,1,null,(e=[],Object.keys(o=t.reduce(function(t,i){var o=i.parent,r=void 0===o?"":o,n=i.id;return void 0===t[r]&&(t[r]=[]),t[r].push(i),n&&e.push(n),t},{})).forEach(function(t){var i;if(""!==t&&-1===e.indexOf(t)){var r=o[t].map(function(t){return i4(t,[])});(i=o[""]).push.apply(i,r),delete o[t]}}),o),i)};function i9(){this.treeGrid||(this.treeGrid=new ei(this))}function i7(t,i,e,o,r,n,s,a,h){var l,d,c,p,u=(0,T.pick)(null==(l=this.options)?void 0:l.labels,n),f=this.pos,g=this.axis,v="treegrid"===g.type,x=t.apply(this,[i,e,o,r,u,s,a,h]);if(v){var m=u&&(0,T.isObject)(u.symbol,!0)?u.symbol:{},b=m.width,y=m.padding,M=void 0===y?5*!g.linkedParent:y,k=u&&(0,T.isNumber)(u.indentation)?u.indentation:0;p=(null==(c=null==(d=g.treeGrid.mapOfPosToGridNode)?void 0:d[f])?void 0:c.depth)||1,x.x+=(void 0===b?0:b)+2*M+(p-1)*k}return x}function et(t){var i,e,o,r,n,s,a,h,l,d,c,p,u,f,g,v=this.pos,x=this.axis,m=this.label,b=this.treeGrid,y=this.options,M=null==b?void 0:b.labelIcon,k=null==m?void 0:m.element,E=x.treeGrid,w=x.options,A=x.chart,O=x.tickPositions,S=E.mapOfPosToGridNode,P=(0,T.pick)(null==y?void 0:y.labels,null==w?void 0:w.labels),B=P&&(0,T.isObject)(P.symbol,!0)?P.symbol:{},C=null==S?void 0:S[v],N=C||{},D=N.descendants,I=N.depth,L=C&&D&&D>0,z="treegrid"===x.type&&k,G=O.indexOf(v)>-1,R="highcharts-treegrid-node-",W=R+"level-",H=A.styledMode;(z&&C&&m.removeClass(RegExp(W+".*")).addClass(W+I),t.apply(this,Array.prototype.slice.call(arguments,1)),z&&L)?(g=E.isCollapsed(C),i={color:!H&&m.styles.color||"",collapsed:g,group:m.parentGroup,options:B,renderer:m.renderer,show:G,xy:m.xy},r=!(o=this.treeGrid).labelIcon,n=i.renderer,s=i.xy,h=(a=i.options).width||0,l=a.height||0,d=5*(null!=(e=a.padding)?!e:!this.axis.linkedParent),c={x:s.x-h/2-d,y:s.y-l/2},p=i.collapsed?90:180,u=i.show&&(0,T.isNumber)(c.y),(f=o.labelIcon)||(o.labelIcon=f=n.path(n.symbols[a.type](a.x||0,a.y||0,h,l)).addClass("highcharts-label-icon").add(i.group)),f[u?"show":"hide"](),n.styledMode||f.attr({cursor:"pointer",fill:i.color||"var(--highcharts-neutral-color-60)","stroke-width":1,stroke:a.lineColor,strokeWidth:a.lineWidth||0}),f[r?"attr":"animate"]({translateX:c.x,translateY:c.y,rotation:p}),m.addClass(R+(g?"collapsed":"expanded")).removeClass(R+(g?"expanded":"collapsed")),H||m.css({cursor:"pointer"}),[m,M].forEach(function(t){t&&!t.attachedTreeGridEvents&&((0,T.addEvent)(t.element,"mouseover",function(){m.addClass("highcharts-treegrid-node-active"),m.renderer.styledMode||m.css({textDecoration:"underline"})}),(0,T.addEvent)(t.element,"mouseout",function(){var t;t=(0,T.isObject)(P.style)?P.style:{},m.removeClass("highcharts-treegrid-node-active"),m.renderer.styledMode||m.css({textDecoration:t.textDecoration||"none"})}),(0,T.addEvent)(t.element,"click",function(){b.toggleCollapse()}),t.attachedTreeGridEvents=!0)})):M&&((0,T.removeEvent)(k),null==m||m.css({cursor:"default"}),M.destroy(),b.labelIcon=void 0)}var ei=function(){function t(t){this.tick=t}return t.compose=function(t){var i=t.prototype;i.toggleCollapse||((0,T.addEvent)(t,"init",i9),(0,T.wrap)(i,"getLabelPosition",i7),(0,T.wrap)(i,"renderLabel",et),i.collapse=function(t){this.treeGrid.collapse(t)},i.expand=function(t){this.treeGrid.expand(t)},i.toggleCollapse=function(t){this.treeGrid.toggleCollapse(t)})},t.prototype.collapse=function(t){var i=this.tick,e=i.pos,o=i.axis,r=o.treeGrid,n=o.brokenAxis,s=r.mapOfPosToGridNode;n&&s&&n.setBreaks(r.collapse(s[e]),null==t||t)},t.prototype.destroy=function(){var t;null==(t=this.labelIcon)||t.destroy()},t.prototype.expand=function(t){var i=this.tick,e=i.pos,o=i.axis,r=o.treeGrid,n=o.brokenAxis,s=r.mapOfPosToGridNode;n&&s&&n.setBreaks(r.expand(s[e]),null==t||t)},t.prototype.toggleCollapse=function(t){void 0===t&&(t=!0);var i,e,o=this.tick,r=o.axis,n=o.pos,s=r.brokenAxis,a=r.treeGrid;if(s&&a.mapOfPosToGridNode){var h=!!(r.scrollbar&&r.staticScale),l=r.pos+r.len+(a.pendingSizeAdjustment||0);if(a.pendingSizeAdjustment=0,s.setBreaks(a.toggleCollapse(a.mapOfPosToGridNode[n]),h&&t),h){var d=r.toValue(r.toPixels(r.dataMax)),c=r.toValue(l)-r.tickmarkOffset,p=null!=(i=r.userMin)?i:r.min;if(a.adjustedMax=d!==r.dataMax?d-r.tickmarkOffset:void 0,c>r.dataMax){var u=l-r.toPixels(r.dataMax+r.tickmarkOffset);c=null!=(e=a.adjustedMax)?e:r.dataMax,(p=r.toValue(r.toPixels(p-r.tickmarkOffset)-u)+r.tickmarkOffset)<r.dataMin&&(u=r.toPixels(r.dataMin)-r.toPixels(p),p=r.dataMin,a.pendingSizeAdjustment=u)}r.setExtremes((0,T.correctFloat)(p),(0,T.correctFloat)(c),!1,!1,{trigger:"toggleCollapse"})}t&&r.chart.redraw()}},t}(),ee=function(t){var i,e,o,r,n,s,a={};if((0,T.isObject)(t))for(r=(0,T.isNumber)(t.from)?t.from:1,s=t.levels,e={},i=(0,T.isObject)(t.defaults)?t.defaults:{},(0,T.isArray)(s)&&(e=s.reduce(function(t,e){var o,n,s;return(0,T.isObject)(e)&&(0,T.isNumber)(e.level)&&(s=(0,T.merge)({},e),n=(0,T.pick)(s.levelIsConstant,i.levelIsConstant),delete s.levelIsConstant,delete s.level,o=e.level+(n?0:r-1),(0,T.isObject)(t[o])?(0,T.merge)(!0,t[o],s):t[o]=s),t},{})),n=(0,T.isNumber)(t.to)?t.to:1,o=0;o<=n;o++)a[o]=(0,T.merge)({},i,(0,T.isObject)(e[o])?e[o]:{});return a};function eo(t){return Array(t.dataTable.rowCount).fill(void 0).map(function(i,e){return t.dataTable.getRowObject(e)})}function er(t){return{from:t.collapseStart||0,to:t.collapseEnd||0,showPoints:!1}}function en(t,i,e){var o,r,n=[],s=[],a={},h=i||!1,l={},d=-1,c=i8(t,{after:function(t){var i=l[t.pos],e=0,o=0;i.children.forEach(function(t){o+=(t.descendants||0)+1,e=Math.max((t.height||0)+1,e)}),i.descendants=o,i.height=e,i.collapsed&&s.push(i)},before:function(t){var i,e,o=(0,T.isObject)(t.data,!0)?t.data:{},r=(0,T.isString)(o.name)?o.name:"",s=a[t.parent],c=(0,T.isObject)(s,!0)?l[s.pos]:null;h&&(0,T.isObject)(c,!0)&&(i=(0,T.find)(c.children,function(t){return t.name===r}))?(e=i.pos,i.nodes.push(t)):e=d++,!l[e]&&(l[e]=i={depth:c?c.depth+1:0,name:r,id:o.id,nodes:[t],children:[],pos:e},-1!==e&&n.push(r),(0,T.isObject)(c,!0)&&c.children.push(i)),(0,T.isString)(t.id)&&(a[t.id]=t),i&&!0===o.collapsed&&(i.collapsed=!0),t.pos=e}});return o=l,{categories:n,mapOfIdToNode:a,mapOfPosToGridNode:l=(r=function(t,i,o){var n=t.nodes,s=i+(-1===i?0:e-1),a=(s-i)/2,h=i+a;return n.forEach(function(t){var e=t.data;(0,T.isObject)(e,!0)&&(e.y=i+(e.yIndex||0)),t.pos=h}),o[h]=t,t.pos=h,t.tickmarkOffset=a+.5,t.collapseStart=s+.5,t.children.forEach(function(t){r(t,s+1,o),s=(t.collapseEnd||0)-.5}),t.collapseEnd=s+.5,o})(o["-1"],-1,{}),collapsedNodes:s,tree:c}}function es(t){var i=t.target;i.axes.filter(function(t){return"treegrid"===t.type}).forEach(function(e){var o,r,n,s=e.options,a=s.labels,h=e.uniqueNames,l=i.time.parse(s.max),d=!e.treeGrid.mapOfPosToGridNode||e.series.some(function(t){return!t.hasRendered||t.isDirtyData||t.isDirty}),c=0;if(d){var p=[];if(r=e.series.reduce(function(t,e){var o=eo(e),r=o[0],n=Array.isArray(r)&&!r.find(function(t){return"object"==typeof t});return p.push(n),e.visible&&(o.forEach(function(o){var r;(n||(null==(r=e.options.keys)?void 0:r.length))&&(o=e.pointClass.prototype.optionsToObject.call({series:e},o),e.pointClass.setGanttPointAliases(o,i)),(0,T.isObject)(o,!0)&&(o.yIndex=c,o.seriesIndex=e.index,t.push(o))}),!0===h&&c++),t},[]),l&&r.length<l)for(var u=r.length;u<=l;u++)r.push({name:u+"​"});e.categories=(n=en(r,h||!1,!0===h?c:1)).categories,e.treeGrid.mapOfPosToGridNode=n.mapOfPosToGridNode,e.hasNames=!0,e.treeGrid.tree=n.tree,e.series.forEach(function(t){var i=r.filter(function(i){return i.seriesIndex===t.index});i.forEach(function(t){delete t.seriesIndex,delete t.yIndex}),t.visible&&t.setData(i,!1)}),e.treeGrid.mapOptionsToLevel=ee({defaults:a,from:1,levels:null==a?void 0:a.levels,to:null==(o=e.treeGrid.tree)?void 0:o.height}),"beforeRender"===t.type&&(e.treeGrid.collapsedNodes=n.collapsedNodes)}})}function ea(t,i){var e,o,r,n=this.treeGrid.mapOptionsToLevel||{},s="treegrid"===this.type,a=this.ticks,h=a[i];s&&this.treeGrid.mapOfPosToGridNode?((e=n[(r=this.treeGrid.mapOfPosToGridNode[i]).depth])&&(o={labels:e}),!h&&A?a[i]=h=new A(this,i,void 0,void 0,{category:r.name,tickmarkOffset:r.tickmarkOffset,options:o}):(h.parameters.category=r.name,h.options=o,h.addLabel(),this.isDirty=!0)):t.apply(this,Array.prototype.slice.call(arguments,1))}function eh(t,i,e,o){var r=this,n="treegrid"===e.type;r.treeGrid||(r.treeGrid=new ec(r)),n&&((0,T.addEvent)(i,"beforeRender",es),(0,T.addEvent)(i,"beforeRedraw",es),(0,T.addEvent)(i,"addSeries",function(t){if(t.options.data){var i=en(t.options.data,e.uniqueNames||!1,1);r.treeGrid.collapsedNodes=(r.treeGrid.collapsedNodes||[]).concat(i.collapsedNodes)}}),(0,T.addEvent)(r,"foundExtremes",function(){var t;null==(t=r.treeGrid.collapsedNodes)||t.forEach(function(t){var i=r.treeGrid.collapse(t);r.brokenAxis&&(r.brokenAxis.setBreaks(i,!1),r.treeGrid.collapsedNodes&&(r.treeGrid.collapsedNodes=r.treeGrid.collapsedNodes.filter(function(i){return t.collapseStart!==i.collapseStart||t.collapseEnd!==i.collapseEnd})))})}),(0,T.addEvent)(r,"afterBreaks",function(){"yAxis"===r.coll&&!r.staticScale&&r.chart.options.chart.height&&(r.isDirty=!0)}),e=(0,T.merge)({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-3,height:6,width:8}},uniqueNames:!1},e,{reversed:!0})),t.apply(r,[i,e,o]),n&&(r.hasNames=!0,r.options.showLastLabel=!0)}function el(t){var i,e,o,r,n,s,a,h=this.options,l=this.chart.time,d="number"==typeof h.linkedTo?null==(i=this.chart[this.coll])?void 0:i[h.linkedTo]:void 0;if("treegrid"===this.type){if(this.min=null!=(o=null!=(e=this.userMin)?e:l.parse(h.min))?o:this.dataMin,this.max=null!=(n=null!=(r=this.userMax)?r:l.parse(h.max))?n:this.dataMax,(0,T.fireEvent)(this,"foundExtremes"),this.setAxisTranslation(),this.tickInterval=1,this.tickmarkOffset=.5,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[],d){var c=d.getExtremes();this.min=null!=(s=c.min)?s:c.dataMin,this.max=null!=(a=c.max)?a:c.dataMax,this.tickPositions=d.tickPositions}this.linkedParent=d}else t.apply(this,Array.prototype.slice.call(arguments,1))}function ed(t){var i=this;"treegrid"===this.type&&i.visible&&i.tickPositions.forEach(function(t){var e,o=i.ticks[t];(null==(e=o.label)?void 0:e.attachedTreeGridEvents)&&((0,T.removeEvent)(o.label.element),o.label.attachedTreeGridEvents=!1)}),t.apply(i,Array.prototype.slice.call(arguments,1))}var ec=function(){function t(t){this.pendingSizeAdjustment=0,this.axis=t}return t.compose=function(t,i,e,o){if(!t.keepProps.includes("treeGrid")){var r,n,s,a=t.prototype;t.keepProps.push("treeGrid"),(0,T.wrap)(a,"generateTick",ea),(0,T.wrap)(a,"init",eh),(0,T.wrap)(a,"setTickInterval",el),(0,T.wrap)(a,"redraw",ed),a.utils={getNode:i6},A||(A=o)}return r=t,n=i,s=o,r.keepProps.includes("grid")||(r.keepProps.push("grid"),r.prototype.getMaxLabelDimensions=i_,(0,T.wrap)(r.prototype,"unsquish",i5),(0,T.wrap)(r.prototype,"getOffset",iF),(0,T.addEvent)(r,"init",i$),(0,T.addEvent)(r,"afterGetTitlePosition",ij),(0,T.addEvent)(r,"afterInit",iU),(0,T.addEvent)(r,"afterRender",iX),(0,T.addEvent)(r,"afterSetAxisTranslation",iY),(0,T.addEvent)(r,"afterSetOptions",iV),(0,T.addEvent)(r,"afterSetOptions",iq),(0,T.addEvent)(r,"afterSetScale",iZ),(0,T.addEvent)(r,"afterTickSize",iK),(0,T.addEvent)(r,"trimTicks",i2),(0,T.addEvent)(r,"destroy",iQ),(0,T.addEvent)(n,"afterSetChartSize",iJ),(0,T.addEvent)(s,"afterGetLabelPosition",i0),(0,T.addEvent)(s,"labelFormat",i1)),iR.compose(t,e),ei.compose(o),t},t.prototype.setCollapsedStatus=function(t){var i=this.axis,e=i.chart;i.series.forEach(function(i){var o=eo(i);if(t.id&&o){var r=e.get(t.id),n=o[i.data.indexOf(r)];i.dataTable.setRow({collapsed:t.collapsed},i.data.indexOf(r)),r&&(0,T.isObject)(n,!0)&&(r.collapsed=t.collapsed,n.collapsed=t.collapsed)}})},t.prototype.collapse=function(t){var i=this.axis,e=i.options.breaks||[],o=er(t);return e.push(o),t.collapsed=!0,i.treeGrid.setCollapsedStatus(t),e},t.prototype.expand=function(t){var i,e=this.axis,o=er(t);return t.collapsed=!1,e.treeGrid.setCollapsedStatus(t),(null==(i=e.options.breaks)?void 0:i.reduce(function(t,i){return(i.to!==o.to||i.from!==o.from)&&t.push(i),t},[]))||[]},t.prototype.getTickPositions=function(){var t=this.axis,i=Math.floor(t.min/t.tickInterval)*t.tickInterval,e=Math.ceil(t.max/t.tickInterval)*t.tickInterval;return Object.keys(t.treeGrid.mapOfPosToGridNode||{}).reduce(function(o,r){var n,s=+r;return s>=i&&s<=e&&!(null==(n=t.brokenAxis)?void 0:n.isInAnyBreak(s))&&o.push(s),o},[])},t.prototype.isCollapsed=function(t){var i=this.axis.options.breaks||[],e=er(t);return i.some(function(t){return t.from===e.from&&t.to===e.to})},t.prototype.toggleCollapse=function(t){return this.isCollapsed(t)?this.expand(t):this.collapse(t)},t}(),ep=(v=function(t,i){return(v=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}v(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),eu=tp().series,ef=tp().seriesTypes.xrange,eg=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ep(i,t),i.compose=function(t,i,e,o){ef.compose(t),i&&(iv(t,i),!e||(ip.compose(i,e.prototype.pointClass),o&&ec.compose(t,i,e,o)))},i.prototype.getColumn=function(i){var e=this.chart.time;if("x"===i){var o=t.prototype.getColumn.call(this,"start");if(o.length)return o.map(function(t){return e.parse(t)||0})}return t.prototype.getColumn.apply(this,arguments)},i.prototype.drawPoint=function(i,e){var o,r=this.options,n=this.chart.renderer,s=i.shapeArgs,a=i.plotY,h=i.selected&&"select",l=r.stacking&&!r.borderRadius,d=i.graphic;i.options.milestone?(0,T.isNumber)(a)&&null!==i.y&&!1!==i.visible?(o=n.symbols.diamond(s.x||0,s.y||0,s.width||0,s.height||0),d?d[e]({d:o}):i.graphic=d=n.path(o).addClass(i.getClassName(),!0).add(i.group||this.group),this.chart.styledMode||i.graphic.attr(this.pointAttribs(i,h)).shadow(r.shadow,null,l)):d&&(i.graphic=d.destroy()):t.prototype.drawPoint.call(this,i,e)},i.prototype.translatePoint=function(i){var e,o;t.prototype.translatePoint.call(this,i),i.options.milestone&&(o=(e=i.shapeArgs).height||0,i.shapeArgs={x:(e.x||0)-o/2,y:e.y,width:o,height:o})},i.defaultOptions=(0,T.merge)(ef.defaultOptions,iL),i}(ef);(0,T.extend)(eg.prototype,{pointArrayMap:["start","end","y"],pointClass:iI,setData:eu.prototype.setData}),tp().registerSeriesType("gantt",eg);var ev=C();ev.Connection=ev.Connection||H,ev.GanttChart=ev.GanttChart||q,ev.Navigator=ev.Navigator||tI,ev.RangeSelector=ev.RangeSelector||t2,ev.Scrollbar=ev.Scrollbar||tP,ev.ganttChart=ev.GanttChart.ganttChart,I(ev.SVGRenderer),x=ev.Axis,m=ev.PlotLineOrBand,(0,T.pushUnique)(_,"CurrentDateIndication")&&((0,T.addEvent)(x,"afterSetOptions",function(){var t=this.options,i=t.currentDateIndicator;if(i){var e="object"==typeof i?(0,T.merge)(F,i):(0,T.merge)(F);e.value=Date.now(),e.className="highcharts-current-date-indicator",null!=t.plotLines||(t.plotLines=[]),t.plotLines.push(e)}}),(0,T.addEvent)(m,"render",function(){var t;null==(t=this.label)||t.attr({text:this.getLabelText(this.options.label||{})})}),(0,T.wrap)(m.prototype,"getLabelText",function(t,i){var e,o,r;if(this.options.className&&-1!==this.options.className.indexOf("highcharts-current-date-indicator")&&"function"==typeof(null==(e=this.options.label)?void 0:e.formatter)){var n=this.options;return n.value=Date.now(),(null==(r=null==(o=n.label)?void 0:o.formatter)?void 0:r.call(this,n.value,n.label.format,this))||""}return t.call(this,i)})),eg.compose(ev.Axis,ev.Chart,ev.Series,ev.Tick),ev.Navigator.compose(ev.Chart,ev.Axis,ev.Series),ev.RangeSelector.compose(ev.Axis,ev.Chart),ev.Scrollbar.compose(ev.Axis);var ex=C();return B.default}()});