!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/timeline
 * @requires highcharts
 *
 * Timeline series
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Daniel Studencki
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Point):"function"==typeof define&&define.amd?define("highcharts/modules/timeline",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry,t.Point)}):"object"==typeof exports?exports["highcharts/modules/timeline"]=e(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Point):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry,t.Highcharts.Point)}("u"<typeof window?this:window,function(t,e,n){return function(){"use strict";var i,o,r={260:function(t){t.exports=n},512:function(t){t.exports=e},944:function(e){e.exports=t}},s={};function a(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={exports:{}};return r[t](n,n.exports,a),n.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var l={};a.d(l,{default:function(){return H}});var c=a(944),p=a.n(c),h=a(512),u=a.n(h),d=a(260),f=a.n(d),y=function(t,e,n){if(n||2==arguments.length)for(var i,o=0,r=e.length;o<r;o++)!i&&o in e||(i||(i=Array.prototype.slice.call(e,0,o)),i[o]=e[o]);return t.concat(i||Array.prototype.slice.call(e))};function v(t,e,n,i){void 0===i&&(i={});var o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});var r=o.hcEvents;p().Point&&t instanceof p().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener;s&&s.call(t,e,n,!!p().supportsPassiveEvents&&{passive:void 0===i.passive?-1!==e.indexOf("touch"):i.passive,capture:!1}),r[e]||(r[e]=[]);var a={fn:n,order:"number"==typeof i.order?i.order:1/0};return r[e].push(a),r[e].sort(function(t,e){return t.order-e.order}),function(){!function(t,e,n){function i(e,n){var i=t.removeEventListener;i&&i.call(t,e,n,!1)}function o(n){var o,r;t.nodeName&&(e?(o={})[e]=!0:o=n,w(o,function(t,e){if(n[e])for(r=n[e].length;r--;)i(e,n[e][r].fn)}))}var r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){var s=r.hcEvents;if(e){var a=s[e]||[];n?(s[e]=a.filter(function(t){return n!==t.fn}),i(e,n)):(o(s),s[e]=[])}else o(s),delete r.hcEvents}}(t,e,n)}}p().doc,p().win;function g(t){return x(t)&&"number"==typeof t.nodeType}function b(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function x(t,e){var n;return!!t&&"object"==typeof t&&(!e||"[object Array]"!==(n=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==n)}function m(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i,o=y([t],e,!0),r={},s=function(t,e){return"object"!=typeof t&&(t={}),w(e,function(n,i){if("__proto__"!==i&&"constructor"!==i){var o;!x(n,!0)||(o=null==n?void 0:n.constructor,x(n,!0)&&!g(n)&&(null==o?void 0:o.name)&&"Object"!==o.name)||g(n)?t[i]=e[i]:t[i]=s(t[i]||{},n)}}),t};!0===t&&(r=o[1],o=Array.prototype.slice.call(o,2));var a=o.length;for(i=0;i<a;i++)r=s(r,o[i]);return r}function w(t,e,n){for(var i in t)Object.hasOwnProperty.call(t,i)&&e.call(n||t[i],t[i],i,t)}function O(){for(var t=arguments,e=t.length,n=0;n<e;n++){var i=t[n];if(null!=i)return i}}Array.prototype.find;var P=(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),L=u().seriesTypes,_=L.line.prototype.pointClass,A=L.pie.prototype.pointClass,C=function(t){function e(e,n){var i=t.call(this,e,n)||this;return null!=i.name||(i.name=(n&&null!==n.y||!e.options.nullInteraction)&&"Event"||"Null"),i.y=1,i}return P(e,t),e.prototype.alignConnector=function(){var t=this.series,e=this.dataLabel,n=e.connector,i=e.options||{},o=i.connectorWidth||0,r=this.series.chart,s=n.getBBox(),a={x:s.x+(e.translateX||0),y:s.y+(e.translateY||0)};r.inverted?a.y-=o/2:a.x+=o/2,n[r.isInsidePlot(a.x,a.y)?"animate":"attr"]({d:this.getConnectorPath()}),n.addClass("highcharts-color-"+this.colorIndex),t.chart.styledMode||n.attr({stroke:i.connectorColor||this.color,"stroke-width":i.connectorWidth,opacity:e[null!=e.newOpacity?"newOpacity":"opacity"]})},e.prototype.drawConnector=function(){var t=this.dataLabel,e=this.series;t&&(t.connector||(t.connector=e.chart.renderer.path(this.getConnectorPath()).attr({zIndex:-1}).add(t)),this.series.chart.isInsidePlot(t.x||0,t.y||0)&&this.alignConnector())},e.prototype.getConnectorPath=function(){var t,e=this.plotX,n=void 0===e?0:e,i=this.plotY,o=void 0===i?0:i,r=this.series,s=this.dataLabel,a=r.chart,l=r.xAxis.len,c=a.inverted,p=c?"x2":"y2";if(s){var h=s.targetPosition,u=(s.alignAttr||s)[p[0]]<r.yAxis.len/2,d={x1:n,y1:o,x2:n,y2:b(h.y)?h.y:s.y};return c&&(d={x1:o,y1:l-n,x2:h.x||s.x,y2:l-n}),u&&(d[p]+=s[c?"width":"height"]||0),w(d,function(t,e){d[e]-=(s.alignAttr||s)[e[0]]}),a.renderer.crispLine([["M",d.x1,d.y1],["L",d.x2,d.y2]],(null==(t=s.options)?void 0:t.connectorWidth)||0)}return[]},e.prototype.isValid=function(){return null!==this.options.y||this.series.options.nullInteraction||!0},e.prototype.setState=function(){var e=t.prototype.setState;(!this.isNull||this.series.options.nullInteraction)&&e.apply(this,arguments)},e.prototype.setVisible=function(t,e){var n=this.series;e=O(e,n.options.ignoreHiddenPoint),A.prototype.setVisible.call(this,t,!1),n.processData(),e&&n.chart.redraw()},e.prototype.applyOptions=function(e,n){var i=this.isNull||null===e||null===e.y,o=this.series;n||(null==e?void 0:e.x)||(b(this.x)?n=this.x:b(null==o?void 0:o.xIncrement)&&(n=o.xIncrement||0,o.autoIncrement())),e=f().prototype.optionsToObject.call(this,null!=e?e:o.options.nullInteraction&&{y:0}||null);var r=t.prototype.applyOptions.call(this,e,n);return this.userDLOptions=m(this.userDLOptions,e.dataLabels),r.isNull=i,r},e}(_),j={colorByPoint:!0,stickyTracking:!1,ignoreHiddenPoint:!0,legendType:"point",lineWidth:4,tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {point.key}</span><br/>',pointFormat:"{point.description}"},states:{hover:{lineWidthPlus:0}},dataLabels:{enabled:!0,allowOverlap:!0,alternate:!0,backgroundColor:"#ffffff",borderWidth:1,borderColor:"#999999",borderRadius:3,color:"#333333",connectorWidth:1,distance:void 0,formatter:function(){return(this.series.chart.styledMode?'<span class="highcharts-color-'+this.point.colorIndex+'">● </span>':'<span style="color:'+this.point.color+'">● </span>')+('<span class="highcharts-strong">'+(this.key||"")+"</span><br/>")+(this.label||"")},style:{textOutline:"none",fontWeight:"normal",fontSize:"0.8em",textAlign:"left"},shadow:!1,verticalAlign:"middle"},marker:{enabledThreshold:0,symbol:"square",radius:6,lineWidth:2,height:15},showInLegend:!1,colorKey:"x",legendSymbol:"rectangle"},I=(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),T=u().seriesTypes,k=T.column,M=T.line,E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I(e,t),e.prototype.alignDataLabel=function(e,n,i,o){var r,s,a,l,c=this.chart.inverted,p=this.visibilityMap.filter(function(t){return!!t}),h=this.visiblePointsCount||0,u=p.indexOf(e),d=this.options.dataLabels,f=e.userDLOptions||{},y=d.alternate?u&&u!==h-1?2:1.5:1,v=Math.floor(this.xAxis.len/h),g=n.padding;e.visible&&(s=Math.abs(f.x||e.options.dataLabels.x),c?(a=(s-g)*2-(e.itemHeight||0)/2,l={width:O(null==(r=d.style)?void 0:r.width,""+.4*this.yAxis.len+"px"),textOverflow:(n.width||0)/a*(n.height||0)/2>v*y?"ellipsis":"none"}):l={width:(f.width||d.width||v*y-2*g)+"px"},n.css(l),this.chart.styledMode||n.shadow(d.shadow)),t.prototype.alignDataLabel.apply(this,arguments)},e.prototype.bindAxes=function(){t.prototype.bindAxes.call(this),this.xAxis.userOptions.type||(this.xAxis.categories=this.xAxis.hasNames=!0)},e.prototype.distributeDL=function(){var t,e=this.options.dataLabels,n=this.chart.inverted,i=1;if(e)for(var o=O(e.distance,n?20:100),r=0,s=this.points;r<s.length;r++){var a=s[r],l=((t={})[n?"x":"y"]=e.alternate&&i%2?-o:o,t);n&&(l.align=e.alternate&&i%2?"right":"left"),a.options.dataLabels=m(l,a.userDLOptions,{zIndex:void 0}),i++}},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this);for(var e=this.points,n=e.length,i=this.getColumn("x"),o=0;o<n;++o){var r=i[o];e[o].applyOptions({x:r},r)}},e.prototype.getVisibilityMap=function(){var t=this.options.nullInteraction;return((this.data.length?this.data:this.options.data)||[]).map(function(e){return!!e&&!1!==e.visible&&(!e.isNull||!!t)&&e})},e.prototype.getXExtremes=function(t){var e=this,n=t.filter(function(t,n){return e.points[n].isValid()&&e.points[n].visible});return{min:function(t){for(var e=t.length,n=t[0];e--;)t[e]<n&&(n=t[e]);return n}(n),max:function(t){for(var e=t.length,n=t[0];e--;)t[e]>n&&(n=t[e]);return n}(n)}},e.prototype.init=function(){var e=this;t.prototype.init.apply(e,arguments),e.eventsToUnbind.push(v(e,"afterTranslate",function(){for(var t,n=Number.MAX_VALUE,i=0,o=e.points;i<o.length;i++){var r=o[i];r.isInside=r.isInside&&r.visible,r.visible&&(!r.isNull||e.options.nullInteraction)&&(null!=t&&(n=Math.min(n,Math.abs(r.plotX-t))),t=r.plotX)}e.closestPointRangePx=n})),e.eventsToUnbind.push(v(e,"drawDataLabels",function(){e.distributeDL()})),e.eventsToUnbind.push(v(e,"afterDrawDataLabels",function(){for(var t,n=0,i=e.points;n<i.length;n++){var o=i[n];(t=o.dataLabel)&&(t.animate=function(t){return this.targetPosition&&(this.targetPosition=t),this.renderer.Element.prototype.animate.apply(this,arguments)},t.targetPosition||(t.targetPosition={}),o.drawConnector())}})),e.eventsToUnbind.push(v(e.chart,"afterHideOverlappingLabel",function(){for(var t=0,n=e.points;t<n.length;t++){var i=n[t];i.dataLabel&&i.dataLabel.connector&&i.dataLabel.oldOpacity!==i.dataLabel.newOpacity&&i.alignConnector()}}))},e.prototype.markerAttribs=function(e,n){var i,o,r,s,a=this.options.marker,l=e.marker||{},c=l.symbol||(null==a?void 0:a.symbol),p=O(l.width,null==a?void 0:a.width,this.closestPointRangePx),h=O(l.height,null==a?void 0:a.height),u=0;if(this.xAxis.dateTime)return t.prototype.markerAttribs.call(this,e,n);n&&(r=null==(i=null==a?void 0:a.states)?void 0:i[n],u=O(null==(s=null==(o=l.states)?void 0:o[n])?void 0:s.radius,null==r?void 0:r.radius,u+((null==r?void 0:r.radiusPlus)||0))),e.hasImage=!!(c&&0===c.indexOf("url"));var d={x:Math.floor(e.plotX)-p/2-u/2,y:e.plotY-h/2-u/2,width:p+u,height:h+u};return this.chart.inverted?{y:d.x&&d.width&&this.xAxis.len-d.x-d.width,x:d.y&&d.y,width:d.height,height:d.width}:d},e.defaultOptions=m(M.defaultOptions,j),e}(M);v(E,"afterProcessData",function(){var t=this.getColumn("x"),e=0;this.visibilityMap=this.getVisibilityMap();for(var n=0,i=this.visibilityMap;n<i.length;n++)i[n]&&e++;this.visiblePointsCount=e,this.dataTable.setColumn("y",Array(t.length).fill(1))}),function(t,e){var n;for(n in t||(t={}),e)t[n]=e[n]}(E.prototype,{drawTracker:k.prototype.drawTracker,pointClass:C,trackerGroups:["markerGroup","dataLabelsGroup"]}),u().registerSeriesType("timeline",E);var H=p();return l.default}()});