/*
 Highcharts Gantt JS v10.2.1 (2022-08-29)

 Gantt series

 (c) 2016-2021 Lars A. V. Cabrera

 License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/gantt",["highcharts"],function(G){a(G);a.Highcharts=G;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function G(a,x,A,r){a.hasOwnProperty(x)||(a[x]=r.apply(null,A),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:x,module:a[x]}})))}a=a?a._modules:{};G(a,"Series/XRange/XRangeSeriesDefaults.js",
[a["Core/Utilities.js"]],function(a){var x=a.correctFloat,E=a.isNumber,r=a.isObject;"";return{colorByPoint:!0,dataLabels:{formatter:function(){var a=this.point.partialFill;r(a)&&(a=a.amount);if(E(a)&&0<a)return x(100*a)+"%"},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:'<span style="font-size: 10px">{point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0}});G(a,"Series/XRange/XRangePoint.js",
[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,x){var E=this&&this.__extends||function(){var a=function(l,p){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var q in f)f.hasOwnProperty(q)&&(p[q]=f[q])};return a(l,p)};return function(l,p){function y(){this.constructor=l}a(l,p);l.prototype=null===p?Object.create(p):(y.prototype=p.prototype,new y)}}(),r=a.series.prototype.pointClass.prototype;x=x.extend;a=function(a){function l(){var p=
null!==a&&a.apply(this,arguments)||this;p.options=void 0;p.series=void 0;return p}E(l,a);l.getColorByCategory=function(p,a){var f=p.options.colors||p.chart.options.colors;p=a.y%(f?f.length:p.chart.options.chart.colorCount);return{colorIndex:p,color:f&&f[p]}};l.prototype.resolveColor=function(){var a=this.series;if(a.options.colorByPoint&&!this.options.color){var y=l.getColorByCategory(a,this);a.chart.styledMode||(this.color=y.color);this.options.colorIndex||(this.colorIndex=y.colorIndex)}else this.color||
(this.color=a.color)};l.prototype.init=function(){r.init.apply(this,arguments);this.y||(this.y=0);return this};l.prototype.setState=function(){r.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())};l.prototype.getLabelConfig=function(){var a=r.getLabelConfig.call(this),l=this.series.yAxis.categories;a.x2=this.x2;a.yCategory=this.yCategory=l&&l[this.y];return a};l.prototype.isValid=function(){return"number"===typeof this.x&&"number"===typeof this.x2};return l}(a.seriesTypes.column.prototype.pointClass);
x(a.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});"";return a});G(a,"Series/XRange/XRangeSeries.js",[a["Core/Globals.js"],a["Core/Color/Color.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"],a["Series/XRange/XRangeSeriesDefaults.js"],a["Series/XRange/XRangePoint.js"]],function(a,x,A,r,Q,l){function p(){if(this.isXAxis){var b=P(this.dataMax,-Number.MAX_VALUE);for(var d=0,v=this.series;d<v.length;d++){var g=v[d];if(g.x2Data){var k=0;for(g=g.x2Data;k<g.length;k++){var c=g[k];if(c&&
c>b){b=c;var H=!0}}}}H&&(this.dataMax=b)}}var y=this&&this.__extends||function(){var b=function(d,v){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var d in v)v.hasOwnProperty(d)&&(b[d]=v[d])};return b(d,v)};return function(d,v){function n(){this.constructor=d}b(d,v);d.prototype=null===v?Object.create(v):(n.prototype=v.prototype,new n)}}();a=a.noop;var f=x.parse,q=A.series.prototype,c=A.seriesTypes.column,D=r.addEvent,B=r.clamp,I=r.defined;
x=r.extend;var k=r.find,b=r.isNumber,d=r.isObject,g=r.merge,P=r.pick,K=[];r=function(t){function n(){var b=null!==t&&t.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}y(n,t);n.compose=function(b){-1===K.indexOf(b)&&(K.push(b),D(b,"afterGetSeriesExtremes",p))};n.prototype.init=function(){t.prototype.init.apply(this,arguments);this.options.stacking=void 0};n.prototype.getColumnMetrics=function(){var b=this,d=function(){for(var d=0,v=b.chart.series;d<v.length;d++){var n=
v[d],m=n.xAxis;n.xAxis=n.yAxis;n.yAxis=m}};d();var n=t.prototype.getColumnMetrics.call(this);d();return n};n.prototype.cropData=function(b,d,n,g){d=q.cropData.call(this,this.x2Data,d,n,g);d.xData=b.slice(d.start,d.end);return d};n.prototype.findPointIndex=function(d){var v=this.cropStart,n=this.points,g=d.id;if(g)var t=(t=k(n,function(b){return b.id===g}))?t.index:void 0;"undefined"===typeof t&&(t=(t=k(n,function(b){return b.x===d.x&&b.x2===d.x2&&!b.touched}))?t.index:void 0);this.cropped&&b(t)&&
b(v)&&t>=v&&(t-=v);return t};n.prototype.translatePoint=function(v){var n=this.xAxis,t=this.yAxis,k=this.columnMetrics,c=this.options,F=c.minPointLength||0,m=(v.shapeArgs&&v.shapeArgs.width||0)/2,z=this.pointXOffset=k.offset,w=P(v.x2,v.x+(v.len||0)),e=v.plotX,h=n.translate(w,0,0,0,1);w=Math.abs(h-e);var u=this.chart.inverted,C=P(c.borderWidth,1)%2/2,L=k.offset,O=Math.round(k.width);F&&(F-=w,0>F&&(F=0),e-=F/2,h+=F/2);e=Math.max(e,-10);h=B(h,-10,n.len+10);I(v.options.pointWidth)&&(L-=(Math.ceil(v.options.pointWidth)-
O)/2,O=Math.ceil(v.options.pointWidth));c.pointPlacement&&b(v.plotY)&&t.categories&&(v.plotY=t.translate(v.y,0,1,0,1,c.pointPlacement));c=Math.floor(Math.min(e,h))+C;c={x:c,y:Math.floor(v.plotY+L)+C,width:Math.floor(Math.max(e,h))+C-c,height:O,r:this.options.borderRadius};v.shapeArgs=c;u?v.tooltipPos[1]+=z+m:v.tooltipPos[0]-=m+z-c.width/2;m=c.x;z=m+c.width;0>m||z>n.len?(m=B(m,0,n.len),z=B(z,0,n.len),h=z-m,v.dlBox=g(c,{x:m,width:z-m,centerX:h?h/2:null})):v.dlBox=null;m=v.tooltipPos;z=u?1:0;h=u?0:1;
k=this.columnMetrics?this.columnMetrics.offset:-k.width/2;m[z]=u?m[z]+c.width/2:m[z]+(n.reversed?-1:0)*c.width;m[h]=B(m[h]+(u?-1:1)*k,0,t.len-1);if(t=v.partialFill)d(t)&&(t=t.amount),b(t)||(t=0),v.partShapeArgs=g(c,{r:this.options.borderRadius}),e=Math.max(Math.round(w*t+v.plotX-e),0),v.clipRectArgs={x:n.reversed?c.x+w-e:c.x,y:c.y,width:e,height:c.height}};n.prototype.translate=function(){t.prototype.translate.apply(this,arguments);for(var b=0,d=this.points;b<d.length;b++)this.translatePoint(d[b])};
n.prototype.drawPoint=function(b,n){var v=this.options,t=this.chart.renderer,k=b.shapeType,c=b.shapeArgs,m=b.partShapeArgs,z=b.clipRectArgs,w=v.stacking&&!v.borderRadius,e=b.state,h=v.states[e||"normal"]||{},u="undefined"===typeof e?"attr":n;e=this.pointAttribs(b,e);h=P(this.chart.options.chart.animation,h.animation);var C=b.graphic,L=b.partialFill;if(b.isNull||!1===b.visible)C&&(b.graphic=C.destroy());else{if(C)C.rect[n](c);else b.graphic=C=t.g("point").addClass(b.getClassName()).add(b.group||this.group),
C.rect=t[k](g(c)).addClass(b.getClassName()).addClass("highcharts-partfill-original").add(C);m&&(C.partRect?(C.partRect[n](g(m)),C.partialClipRect[n](g(z))):(C.partialClipRect=t.clipRect(z.x,z.y,z.width,z.height),C.partRect=t[k](m).addClass("highcharts-partfill-overlay").add(C).clip(C.partialClipRect)));this.chart.styledMode||(C.rect[n](e,h).shadow(v.shadow,null,w),m&&(d(L)||(L={}),d(v.partialFill)&&(L=g(v.partialFill,L)),b=L.fill||f(e.fill).brighten(-.3).get()||f(b.color||this.color).brighten(-.3).get(),
e.fill=b,C.partRect[u](e,h).shadow(v.shadow,null,w)))}};n.prototype.drawPoints=function(){for(var b=this.getAnimationVerb(),d=0,n=this.points;d<n.length;d++)this.drawPoint(n[d],b)};n.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"};n.prototype.isPointInside=function(b){var d=b.shapeArgs,n=b.plotX,v=b.plotY;return d?"undefined"!==typeof n&&"undefined"!==typeof v&&0<=v&&v<=this.yAxis.len&&0<=(d.x||0)+(d.width||0)&&n<=this.xAxis.len:
t.prototype.isPointInside.apply(this,arguments)};n.defaultOptions=g(c.defaultOptions,Q);return n}(c);x(r.prototype,{pointClass:l,cropShoulder:1,getExtremesFromAll:!0,parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:q.animate,autoIncrement:a,buildKDTree:a});A.registerSeriesType("xrange",r);return r});G(a,"Series/Gantt/GanttPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,x){var A=this&&this.__extends||function(){var a=function(l,p){a=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var q in f)f.hasOwnProperty(q)&&(a[q]=f[q])};return a(l,p)};return function(l,p){function y(){this.constructor=l}a(l,p);l.prototype=null===p?Object.create(p):(y.prototype=p.prototype,new y)}}(),r=x.pick;return function(a){function l(){var p=null!==a&&a.apply(this,arguments)||this;p.options=void 0;p.series=void 0;return p}A(l,a);l.setGanttPointAliases=function(a){function l(f,q){"undefined"!==typeof q&&(a[f]=q)}l("x",r(a.start,
a.x));l("x2",r(a.end,a.x2));l("partialFill",r(a.completed,a.partialFill))};l.prototype.applyOptions=function(p,y){p=a.prototype.applyOptions.call(this,p,y);l.setGanttPointAliases(p);return p};l.prototype.isValid=function(){return("number"===typeof this.start||"number"===typeof this.x)&&("number"===typeof this.end||"number"===typeof this.x2||this.milestone)};return l}(a.seriesTypes.xrange.prototype.pointClass)});G(a,"Core/Axis/BrokenAxis.js",[a["Core/Axis/Stacking/StackItem.js"],a["Core/Utilities.js"]],
function(a,x){var A=x.addEvent,r=x.find,E=x.fireEvent,l=x.isArray,p=x.isNumber,y=x.pick,f;(function(f){function c(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function q(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function B(){var b=this.brokenAxis;if(b&&b.hasBreaks){for(var d=this.tickPositions,v=this.tickPositions.info,k=[],g=0;g<d.length;g++)b.isInAnyBreak(d[g])||k.push(d[g]);this.tickPositions=k;this.tickPositions.info=v}}
function I(){this.brokenAxis||(this.brokenAxis=new K(this))}function k(){var b=this.options.connectNulls,d=this.points,v=this.xAxis,k=this.yAxis;if(this.isDirty)for(var g=d.length;g--;){var c=d[g],a=!(null===c.y&&!1===b)&&(v&&v.brokenAxis&&v.brokenAxis.isInAnyBreak(c.x,!0)||k&&k.brokenAxis&&k.brokenAxis.isInAnyBreak(c.y,!0));c.visible=a?!1:!1!==c.options.visible}}function b(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,y(this.pointArrayMap,["y"]))}function d(b,d){var n=this,k=n.points,
g,c,t,F;if(b&&b.brokenAxis&&b.brokenAxis.hasBreaks){var m=b.brokenAxis;d.forEach(function(d){g=m&&m.breakArray||[];c=b.isXAxis?b.min:y(n.options.threshold,b.min);k.forEach(function(m){F=y(m["stack"+d.toUpperCase()],m[d]);g.forEach(function(e){if(p(c)&&p(F)){t=!1;if(c<e.from&&F>e.to||c>e.from&&F<e.from)t="pointBreak";else if(c<e.from&&F>e.from&&F<e.to||c>e.from&&F>e.to&&F<e.from)t="pointInBreak";t&&E(b,t,{point:m,brk:e})}})})})}}function g(){var b=this.currentDataGrouping,d=b&&b.gapSize;b=this.points.slice();
var c=this.yAxis,k=this.options.gapSize,g=b.length-1,f;if(k&&0<g)for("value"!==this.options.gapUnit&&(k*=this.basePointRange),d&&d>k&&d>=this.basePointRange&&(k=d),f=void 0;g--;)f&&!1!==f.visible||(f=b[g+1]),d=b[g],!1!==f.visible&&!1!==d.visible&&(f.x-d.x>k&&(f=(d.x+f.x)/2,b.splice(g+1,0,{isNull:!0,x:f}),c.stacking&&this.options.stacking&&(f=c.stacking.stacks[this.stackKey][f]=new a(c,c.options.stackLabels,!1,f,this.stack),f.total=0)),f=d);return this.getGraphPath(b)}var P=[];f.compose=function(t,
n){-1===P.indexOf(t)&&(P.push(t),t.keepProps.push("brokenAxis"),A(t,"init",I),A(t,"afterInit",c),A(t,"afterSetTickPositions",B),A(t,"afterSetOptions",q));if(-1===P.indexOf(n)){P.push(n);var v=n.prototype;v.drawBreaks=d;v.gappedPath=g;A(n,"afterGeneratePoints",k);A(n,"afterRender",b)}return t};var K=function(){function b(b){this.hasBreaks=!1;this.axis=b}b.isInBreak=function(b,d){var k=b.repeat||Infinity,g=b.from,c=b.to-b.from;d=d>=g?(d-g)%k:k-(g-d)%k;return b.inclusive?d<=c:d<c&&0!==d};b.lin2Val=function(d){var k=
this.brokenAxis;k=k&&k.breakArray;if(!k||!p(d))return d;var g;for(g=0;g<k.length;g++){var c=k[g];if(c.from>=d)break;else c.to<d?d+=c.len:b.isInBreak(c,d)&&(d+=c.len)}return d};b.val2Lin=function(d){var k=this.brokenAxis;k=k&&k.breakArray;if(!k||!p(d))return d;var g=d,c;for(c=0;c<k.length;c++){var n=k[c];if(n.to<=d)g-=n.len;else if(n.from>=d)break;else if(b.isInBreak(n,d)){g-=d-n.from;break}}return g};b.prototype.findBreakAt=function(b,d){return r(d,function(d){return d.from<b&&b<d.to})};b.prototype.isInAnyBreak=
function(d,k){var c=this.axis,g=c.options.breaks||[],n=g.length,f;if(n&&p(d)){for(;n--;)if(b.isInBreak(g[n],d)){var F=!0;f||(f=y(g[n].showPoints,!c.isXAxis))}var m=F&&k?F&&!f:F}return m};b.prototype.setBreaks=function(d,k){var g=this,c=g.axis,n=l(d)&&!!d.length;c.isDirty=g.hasBreaks!==n;g.hasBreaks=n;c.options.breaks=c.userOptions.breaks=d;c.forceRedraw=!0;c.series.forEach(function(b){b.isDirty=!0});n||c.val2lin!==b.val2Lin||(delete c.val2lin,delete c.lin2val);n&&(c.userOptions.ordinal=!1,c.lin2val=
b.lin2Val,c.val2lin=b.val2Lin,c.setExtremes=function(b,d,m,z,w){if(g.hasBreaks){for(var e=this.options.breaks||[],h;h=g.findBreakAt(b,e);)b=h.to;for(;h=g.findBreakAt(d,e);)d=h.from;d<b&&(d=b)}c.constructor.prototype.setExtremes.call(this,b,d,m,z,w)},c.setAxisTranslation=function(){c.constructor.prototype.setAxisTranslation.call(this);g.unitLength=void 0;if(g.hasBreaks){var d=c.options.breaks||[],k=[],m=[],z=y(c.pointRangePadding,0),w=0,e,h=c.userMin||c.min,u=c.userMax||c.max,C;d.forEach(function(d){e=
d.repeat||Infinity;p(h)&&p(u)&&(b.isInBreak(d,h)&&(h+=d.to%e-h%e),b.isInBreak(d,u)&&(u-=u%e-d.from%e))});d.forEach(function(b){O=b.from;e=b.repeat||Infinity;if(p(h)&&p(u)){for(;O-e>h;)O-=e;for(;O<h;)O+=e;for(C=O;C<u;C+=e)k.push({value:C,move:"in"}),k.push({value:C+b.to-b.from,move:"out",size:b.breakSize})}});k.sort(function(e,h){return e.value===h.value?("in"===e.move?0:1)-("in"===h.move?0:1):e.value-h.value});var L=0;var O=h;k.forEach(function(e){L+="in"===e.move?1:-1;1===L&&"in"===e.move&&(O=e.value);
0===L&&p(O)&&(m.push({from:O,to:e.value,len:e.value-O-(e.size||0)}),w+=e.value-O-(e.size||0))});g.breakArray=m;p(h)&&p(u)&&p(c.min)&&(g.unitLength=u-h-w+z,E(c,"afterBreaks"),c.staticScale?c.transA=c.staticScale:g.unitLength&&(c.transA*=(u-c.min+z)/g.unitLength),z&&(c.minPixelPadding=c.transA*(c.minPointOffset||0)),c.min=h,c.max=u)}});y(k,!0)&&c.chart.redraw()};return b}();f.Additions=K})(f||(f={}));return f});G(a,"Core/Axis/GridAxis.js",[a["Core/Axis/Axis.js"],a["Core/Axis/AxisDefaults.js"],a["Core/Globals.js"],
a["Core/Utilities.js"]],function(a,x,A,r){function E(e,h){var b={width:0,height:0};h.forEach(function(h){h=e[h];if(r.isObject(h,!0)){var d=r.isObject(h.label,!0)?h.label:{};h=d.getBBox?d.getBBox().height:0;d.textStr&&!F(d.textPxLength)&&(d.textPxLength=d.getBBox().width);var m=F(d.textPxLength)?Math.round(d.textPxLength):0;d.textStr&&(m=Math.round(d.getBBox().width));b.height=Math.max(h,b.height);b.width=Math.max(m,b.width)}});"treegrid"===this.options.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode&&
(b.width+=this.options.labels.indentation*((this.treeGrid.mapOfPosToGridNode[-1].height||0)-1));return b}function l(){var e=this.grid;(e&&e.columns||[]).forEach(function(e){e.getOffset()})}function p(e){if(!0===(this.options.grid||{}).enabled){var b=this.axisTitle,d=this.height,m=this.horiz,w=this.left,L=this.offset,u=this.opposite,c=this.options,g=this.top,k=this.width,C=this.tickSize(),n=b&&b.getBBox().width,f=c.title.x,F=c.title.y,t=z(c.title.margin,m?5:10);b=this.chart.renderer.fontMetrics(c.title.style.fontSize,
b).f;C=(m?g+d:w)+(m?1:-1)*(u?-1:1)*(C?C[0]/2:0)+(this.side===h.bottom?b:0);e.titlePosition.x=m?w-(n||0)/2-t+f:C+(u?k:0)+L+f;e.titlePosition.y=m?C-(u?d:0)+(u?b:-b)/2+L+F:g-t+F}}function y(){var e=this.chart,h=this.options.grid;h=void 0===h?{}:h;var b=this.userOptions;if(h.enabled){var d=this.options;d.labels.align=z(d.labels.align,"center");this.categories||(d.showLastLabel=!1);this.labelRotation=0;d.labels.rotation=0}if(h.columns){d=this.grid.columns=[];for(var w=this.grid.columnIndex=0;++w<h.columns.length;){var u=
m(b,h.columns[h.columns.length-w-1],{linkedTo:0,type:"category",scrollbar:{enabled:!1}});delete u.grid.columns;u=new a(this.chart,u);u.grid.isColumn=!0;u.grid.columnIndex=w;N(e.axes,u);N(e[this.coll],u);d.push(u)}}}function f(){var e=this.grid,b=this.options;if(!0===(b.grid||{}).enabled){var d=this.min||0,m=this.max||0;this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions);this.rightWall&&this.rightWall.destroy();if(this.grid&&this.grid.isOuterAxis()&&this.axisLine){var w=
b.lineWidth;if(w){w=this.getLinePath(w);var u=w[0],c=w[1],z=((this.tickSize("tick")||[1])[0]-1)*(this.side===h.top||this.side===h.left?-1:1);"M"===u[0]&&"L"===c[0]&&(this.horiz?(u[2]+=z,c[2]+=z):(u[1]+=z,c[1]+=z));!this.horiz&&this.chart.marginRight&&(u=[u,["L",this.left,u[2]||0]],z=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(m+this.tickmarkOffset)],c=[["M",c[1]||0,this.toPixels(m+this.tickmarkOffset)],z],this.grid.upperBorder||0===d%1||(this.grid.upperBorder=this.grid.renderBorder(u)),
this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:b.lineColor,"stroke-width":b.lineWidth}),this.grid.upperBorder.animate({d:u})),this.grid.lowerBorder||0===m%1||(this.grid.lowerBorder=this.grid.renderBorder(c)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:b.lineColor,"stroke-width":b.lineWidth}),this.grid.lowerBorder.animate({d:c})));this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:b.lineColor,"stroke-width":b.lineWidth}),this.grid.axisLineExtra.animate({d:w})):
this.grid.axisLineExtra=this.grid.renderBorder(w);this.axisLine[this.showAxis?"show":"hide"]()}}(e&&e.columns||[]).forEach(function(e){return e.render()});if(!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)){e=this.tickmarkOffset;b=this.tickPositions[this.tickPositions.length-1];w=this.tickPositions[0];for(u=c=void 0;(c=this.hiddenLabels.pop())&&c.element;)c.show();for(;(u=this.hiddenMarks.pop())&&u.element;)u.show();(c=this.ticks[w].label)&&(d-
w>e?this.hiddenLabels.push(c.hide()):c.show());(c=this.ticks[b].label)&&(b-m>e?this.hiddenLabels.push(c.hide()):c.show());(d=this.ticks[b].mark)&&b-m<e&&0<b-m&&this.ticks[b].isLast&&this.hiddenMarks.push(d.hide())}}}function q(){var e=this.tickPositions&&this.tickPositions.info,h=this.options,b=this.userOptions.labels||{};(h.grid||{}).enabled&&(this.horiz?(this.series.forEach(function(e){e.options.pointRange=0}),e&&h.dateTimeLabelFormats&&h.labels&&!J(b.align)&&(!1===h.dateTimeLabelFormats[e.unitName].range||
1<e.count)&&(h.labels.align="left",J(b.x)||(h.labels.x=3))):"treegrid"!==this.options.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function c(e){var h=this.options;e=e.userOptions;var b=h&&r.isObject(h.grid,!0)?h.grid:{};if(!0===b.enabled){var d=m(!0,{className:"highcharts-grid-axis "+(e.className||""),dateTimeLabelFormats:{hour:{list:["%H:%M","%H"]},day:{list:["%A, %e. %B","%a, %e. %b","%E"]},week:{list:["Week %W","W%W"]},month:{list:["%B","%b","%o"]}},grid:{borderWidth:1},
labels:{padding:2,style:{fontSize:"13px"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},e);"xAxis"===this.coll&&(J(e.linkedTo)&&!J(e.tickPixelInterval)&&(d.tickPixelInterval=350),J(e.tickPixelInterval)||!J(e.linkedTo)||J(e.tickPositioner)||J(e.tickInterval)||(d.tickPositioner=function(e,h){var b=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;
if(b){for(var m=d.units||[],u=void 0,c=1,z="year",L=0;L<m.length;L++){var g=m[L];if(g&&g[0]===b.unitName){u=L;break}}(m=F(u)&&m[u+1])?(z=m[0]||"year",c=(c=m[1])&&c[0]||1):"year"===b.unitName&&(c=10*b.count);b=w[z];this.tickInterval=b*c;return this.chart.time.getTimeTicks({unitRange:b,count:c,unitName:z},e,h,this.options.startOfWeek)}}));m(!0,this.options,d);this.horiz&&(h.minPadding=z(e.minPadding,0),h.maxPadding=z(e.maxPadding,0));F(h.grid.borderWidth)&&(h.tickWidth=h.lineWidth=b.borderWidth)}}function D(e){e=
(e=e.userOptions)&&e.grid||{};var h=e.columns;e.enabled&&h&&m(!0,this.options,h[h.length-1])}function B(){(this.grid.columns||[]).forEach(function(e){return e.setScale()})}function I(e){var h=x.defaultLeftAxisOptions,b=this.horiz,d=this.maxLabelDimensions,m=this.options.grid;m=void 0===m?{}:m;m.enabled&&d&&(h=2*Math.abs(h.labels.x),b=b?m.cellHeight||h+d.height:h+d.width,H(e.tickSize)?e.tickSize[0]=b:e.tickSize=[b,0])}function k(){this.axes.forEach(function(e){(e.grid&&e.grid.columns||[]).forEach(function(e){e.setAxisSize();
e.setAxisTranslation()})})}function b(e){var h=this.grid;(h.columns||[]).forEach(function(h){return h.destroy(e.keepEvents)});h.columns=void 0}function d(e){e=e.userOptions||{};var h=e.grid||{};h.enabled&&J(h.borderColor)&&(e.tickColor=e.lineColor=h.borderColor);this.grid||(this.grid=new C(this));this.hiddenLabels=[];this.hiddenMarks=[]}function g(e){var b=this.label,d=this.axis,m=d.reversed,u=d.chart,c=d.options.grid||{},w=d.options.labels,z=w.align,g=h[d.side],k=e.tickmarkOffset,C=d.tickPositions,
L=this.pos-k;C=F(C[e.index+1])?C[e.index+1]-k:(d.max||0)+k;var n=d.tickSize("tick");k=n?n[0]:0;n=n?n[1]/2:0;if(!0===c.enabled){if("top"===g){c=d.top+d.offset;var f=c-k}else"bottom"===g?(f=u.chartHeight-d.bottom+d.offset,c=f+k):(c=d.top+d.len-(d.translate(m?C:L)||0),f=d.top+d.len-(d.translate(m?L:C)||0));"right"===g?(g=u.chartWidth-d.right+d.offset,m=g+k):"left"===g?(m=d.left+d.offset,g=m-k):(g=Math.round(d.left+(d.translate(m?C:L)||0))-n,m=Math.min(Math.round(d.left+(d.translate(m?L:C)||0))-n,d.left+
d.len));this.slotWidth=m-g;e.pos.x="left"===z?g:"right"===z?m:g+(m-g)/2;e.pos.y=f+(c-f)/2;u=u.renderer.fontMetrics(w.style.fontSize,b&&b.element);b=b?b.getBBox().height:0;w.useHTML?e.pos.y+=u.b+-(b/2):(b=Math.round(b/u.h),e.pos.y+=(u.b-(u.h-u.f))/2+-((b-1)*u.h/2));e.pos.x+=d.horiz&&w.x||0}}function P(e){var h=e.axis,b=e.value;if(h.options.grid&&h.options.grid.enabled){var d=h.tickPositions,u=(h.linkedParent||h).series[0],c=b===d[0];d=b===d[d.length-1];var w=u&&M(u.options.data,function(e){return e[h.isXAxis?
"x":"y"]===b}),g=void 0;w&&u.is("gantt")&&(g=m(w),A.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(g));e.isFirst=c;e.isLast=d;e.point=g}}function K(){var e=this.options,h=this.categories,b=this.tickPositions,d=b[0],m=b[b.length-1],u=this.linkedParent&&this.linkedParent.min||this.min,c=this.linkedParent&&this.linkedParent.max||this.max,w=this.tickInterval;!0!==(e.grid||{}).enabled||h||!this.horiz&&!this.isLinked||(d<u&&d+w>u&&!e.startOnTick&&(b[0]=u),m>c&&m-w<c&&!e.endOnTick&&(b[b.length-
1]=c))}function t(e){var h=this.options.grid;return!0===(void 0===h?{}:h).enabled&&this.categories?this.tickInterval:e.apply(this,Array.prototype.slice.call(arguments,1))}var n=A.dateFormats,v=r.addEvent,J=r.defined,N=r.erase,M=r.find,H=r.isArray,F=r.isNumber,m=r.merge,z=r.pick,w=r.timeUnits,e=r.wrap,h;(function(e){e[e.top=0]="top";e[e.right=1]="right";e[e.bottom=2]="bottom";e[e.left=3]="left"})(h||(h={}));var u=[],C=function(){function e(e){this.axis=e}e.prototype.isOuterAxis=function(){var e=this.axis,
h=e.grid.columnIndex,b=e.linkedParent&&e.linkedParent.grid.columns||e.grid.columns,d=h?e.linkedParent:e,m=-1,u=0;(e.chart[e.coll]||[]).forEach(function(h,b){h.side!==e.side||h.options.isInternal||(u=b,h===d&&(m=b))});return u===m&&(F(h)?b.length===h:!0)};e.prototype.renderBorder=function(e){var h=this.axis,b=h.chart.renderer,d=h.options;e=b.path(e).addClass("highcharts-axis-line").add(h.axisBorder);b.styledMode||e.attr({stroke:d.lineColor,"stroke-width":d.lineWidth,zIndex:7});return e};return e}();
n.E=function(e){return this.dateFormat("%a",e,!0).charAt(0)};n.W=function(e){var h=this,b=new this.Date(e);["Hours","Milliseconds","Minutes","Seconds"].forEach(function(e){h.set(e,b,0)});var d=(this.get("Day",b)+6)%7;e=new this.Date(b.valueOf());this.set("Date",e,this.get("Date",b)-d+3);d=new this.Date(this.get("FullYear",e),0,1);4!==this.get("Day",d)&&(this.set("Month",b,0),this.set("Date",b,1+(11-this.get("Day",d))%7));return(1+Math.floor((e.valueOf()-d.valueOf())/6048E5)).toString()};"";return{compose:function(h,
m,w){-1===u.indexOf(h)&&(u.push(h),h.keepProps.push("grid"),h.prototype.getMaxLabelDimensions=E,e(h.prototype,"unsquish",t),v(h,"init",d),v(h,"afterGetOffset",l),v(h,"afterGetTitlePosition",p),v(h,"afterInit",y),v(h,"afterRender",f),v(h,"afterSetAxisTranslation",q),v(h,"afterSetOptions",c),v(h,"afterSetOptions",D),v(h,"afterSetScale",B),v(h,"afterTickSize",I),v(h,"trimTicks",K),v(h,"destroy",b));-1===u.indexOf(m)&&v(m,"afterSetChartSize",k);-1===u.indexOf(w)&&(v(w,"afterGetLabelPosition",g),v(w,"labelFormat",
P));return h}}});G(a,"Gantt/Tree.js",[a["Core/Utilities.js"]],function(a){var x=a.extend,A=a.isNumber,r=a.pick,E=function(a,l){var f=a.reduce(function(f,c){var a=r(c.parent,"");"undefined"===typeof f[a]&&(f[a]=[]);f[a].push(c);return f},{});Object.keys(f).forEach(function(a,c){var q=f[a];""!==a&&-1===l.indexOf(a)&&(q.forEach(function(f){c[""].push(f)}),delete c[a])});return f},l=function(a,y,f,q,c,D){var B=0,I=0,k=D&&D.after,b=D&&D.before;y={data:q,depth:f-1,id:a,level:f,parent:y};var d,g;"function"===
typeof b&&b(y,D);b=(c[a]||[]).map(function(b){var k=l(b.id,a,f+1,b,c,D),t=b.start;b=!0===b.milestone?t:b.end;d=!A(d)||t<d?t:d;g=!A(g)||b>g?b:g;B=B+1+k.descendants;I=Math.max(k.height+1,I);return k});q&&(q.start=r(q.start,d),q.end=r(q.end,g));x(y,{children:b,descendants:B,height:I});"function"===typeof k&&k(y,D);return y};return{getListOfParents:E,getNode:l,getTree:function(a,y){var f=a.map(function(f){return f.id});a=E(a,f);return l("",null,1,null,a,y)}}});G(a,"Core/Axis/TreeGrid/TreeGridTick.js",
[a["Core/Utilities.js"]],function(a){function x(){this.treeGrid||(this.treeGrid=new D(this))}function A(c,a){c=c.treeGrid;var k=!c.labelIcon,b=a.renderer,d=a.xy,g=a.options,I=g.width||0,B=g.height||0,t=d.x-I/2-(g.padding||0);d=d.y-B/2;var n=a.collapsed?90:180,v=a.show&&y(d),q=c.labelIcon;q||(c.labelIcon=q=b.path(b.symbols[g.type](g.x||0,g.y||0,I,B)).addClass("highcharts-label-icon").add(a.group));q[v?"show":"hide"]();b.styledMode||q.attr({cursor:"pointer",fill:f(a.color,"#666666"),"stroke-width":1,
stroke:g.lineColor,strokeWidth:g.lineWidth||0});q[k?"attr":"animate"]({translateX:t,translateY:d,rotation:n})}function r(c,a,k,b,d,g,q,D,t){var n=f(this.options&&this.options.labels,g);g=this.pos;var v=this.axis,I="treegrid"===v.options.type;c=c.apply(this,[a,k,b,d,n,q,D,t]);I&&(a=n&&p(n.symbol,!0)?n.symbol:{},n=n&&y(n.indentation)?n.indentation:0,g=(g=(v=v.treeGrid.mapOfPosToGridNode)&&v[g])&&g.depth||1,c.x+=(a.width||0)+2*(a.padding||0)+(g-1)*n);return c}function E(c){var a=this,k=a.pos,b=a.axis,
d=a.label,g=b.treeGrid.mapOfPosToGridNode,q=b.options,B=f(a.options&&a.options.labels,q&&q.labels),t=B&&p(B.symbol,!0)?B.symbol:{},n=(g=g&&g[k])&&g.depth;q="treegrid"===q.type;var v=-1<b.tickPositions.indexOf(k);k=b.chart.styledMode;q&&g&&d&&d.element&&d.addClass("highcharts-treegrid-node-level-"+n);c.apply(a,Array.prototype.slice.call(arguments,1));q&&d&&d.element&&g&&g.descendants&&0<g.descendants&&(b=b.treeGrid.isCollapsed(g),A(a,{color:!k&&d.styles&&d.styles.color||"",collapsed:b,group:d.parentGroup,
options:t,renderer:d.renderer,show:v,xy:d.xy}),t="highcharts-treegrid-node-"+(b?"expanded":"collapsed"),d.addClass("highcharts-treegrid-node-"+(b?"collapsed":"expanded")).removeClass(t),k||d.css({cursor:"pointer"}),[d,a.treeGrid.labelIcon].forEach(function(b){b&&!b.attachedTreeGridEvents&&(l(b.element,"mouseover",function(){d.addClass("highcharts-treegrid-node-active");d.renderer.styledMode||d.css({textDecoration:"underline"})}),l(b.element,"mouseout",function(){var b=p(B.style)?B.style:{};d.removeClass("highcharts-treegrid-node-active");
d.renderer.styledMode||d.css({textDecoration:b.textDecoration})}),l(b.element,"click",function(){a.treeGrid.toggleCollapse()}),b.attachedTreeGridEvents=!0)}))}var l=a.addEvent,p=a.isObject,y=a.isNumber,f=a.pick,q=a.wrap,c=[],D=function(){function a(c){this.tick=c}a.compose=function(a){-1===c.indexOf(a)&&(c.push(a),l(a,"init",x),q(a.prototype,"getLabelPosition",r),q(a.prototype,"renderLabel",E),a.prototype.collapse=function(c){this.treeGrid.collapse(c)},a.prototype.expand=function(c){this.treeGrid.expand(c)},
a.prototype.toggleCollapse=function(c){this.treeGrid.toggleCollapse(c)})};a.prototype.collapse=function(c){var k=this.tick,b=k.axis,d=b.brokenAxis;d&&b.treeGrid.mapOfPosToGridNode&&(k=b.treeGrid.collapse(b.treeGrid.mapOfPosToGridNode[k.pos]),d.setBreaks(k,f(c,!0)))};a.prototype.destroy=function(){this.labelIcon&&this.labelIcon.destroy()};a.prototype.expand=function(c){var k=this.tick,b=k.axis,d=b.brokenAxis;d&&b.treeGrid.mapOfPosToGridNode&&(k=b.treeGrid.expand(b.treeGrid.mapOfPosToGridNode[k.pos]),
d.setBreaks(k,f(c,!0)))};a.prototype.toggleCollapse=function(c){var k=this.tick,b=k.axis,d=b.brokenAxis;d&&b.treeGrid.mapOfPosToGridNode&&(k=b.treeGrid.toggleCollapse(b.treeGrid.mapOfPosToGridNode[k.pos]),d.setBreaks(k,f(c,!0)))};return a}();return D});G(a,"Series/TreeUtilities.js",[a["Core/Color/Color.js"],a["Core/Utilities.js"]],function(a,x){function A(a,c){var q=c.before,B=c.idRoot,l=c.mapIdToNode[B],k=c.points[a.i],b=k&&k.options||{},d=[],g=0;a.levelDynamic=a.level-(!1!==c.levelIsConstant?0:
l.level);a.name=f(k&&k.name,"");a.visible=B===a.id||!0===c.visible;"function"===typeof q&&(a=q(a,c));a.children.forEach(function(b,k){var f=r({},c);r(f,{index:k,siblings:a.children.length,visible:a.visible});b=A(b,f);d.push(b);b.visible&&(g+=b.val)});q=f(b.value,g);a.visible=0<=q&&(0<g||a.visible);a.children=d;a.childrenTotal=g;a.isLeaf=a.visible&&!g;a.val=q;return a}var r=x.extend,E=x.isArray,l=x.isNumber,p=x.isObject,y=x.merge,f=x.pick;return{getColor:function(q,c){var l=c.index,B=c.mapOptionsToLevel,
I=c.parentColor,k=c.parentColorIndex,b=c.series,d=c.colors,g=c.siblings,p=b.points,y=b.chart.options.chart,t;if(q){p=p[q.i];q=B[q.level]||{};if(B=p&&q.colorByPoint){var n=p.index%(d?d.length:y.colorCount);var v=d&&d[n]}if(!b.chart.styledMode){d=p&&p.options.color;y=q&&q.color;if(t=I)t=(t=q&&q.colorVariation)&&"brightness"===t.key&&l&&g?a.parse(I).brighten(l/g*t.to).get():I;t=f(d,y,v,t,b.color)}var r=f(p&&p.options.colorIndex,q&&q.colorIndex,n,k,c.colorIndex)}return{color:t,colorIndex:r}},getLevelOptions:function(a){var c=
null;if(p(a)){c={};var q=l(a.from)?a.from:1;var B=a.levels;var I={};var k=p(a.defaults)?a.defaults:{};E(B)&&(I=B.reduce(function(b,d){if(p(d)&&l(d.level)){var c=y({},d);var a=f(c.levelIsConstant,k.levelIsConstant);delete c.levelIsConstant;delete c.level;d=d.level+(a?0:q-1);p(b[d])?y(!0,b[d],c):b[d]=c}return b},{}));B=l(a.to)?a.to:1;for(a=0;a<=B;a++)c[a]=y({},k,p(I[a])?I[a]:{})}return c},setTreeValues:A,updateRootId:function(a){if(p(a)){var c=p(a.options)?a.options:{};c=f(a.rootNode,c.rootId,"");p(a.userOptions)&&
(a.userOptions.rootId=c);a.rootNode=c}return c}}});G(a,"Core/Axis/TreeGrid/TreeGridAxis.js",[a["Core/Axis/BrokenAxis.js"],a["Core/Axis/GridAxis.js"],a["Gantt/Tree.js"],a["Core/Axis/TreeGrid/TreeGridTick.js"],a["Series/TreeUtilities.js"],a["Core/Utilities.js"]],function(a,x,A,r,Q,l){function p(b,d){var c=b.collapseEnd||0;b=b.collapseStart||0;c>=d&&(b-=.5);return{from:b,to:c,showPoints:!1}}function y(b,d,c){var m=[],a=[],w={},e="boolean"===typeof d?d:!1,h={},u=-1;b=A.getTree(b,{after:function(e){e=
h[e.pos];var b=0,d=0;e.children.forEach(function(e){d+=(e.descendants||0)+1;b=Math.max((e.height||0)+1,b)});e.descendants=d;e.height=b;e.collapsed&&a.push(e)},before:function(b){var d=g(b.data,!0)?b.data:{},c=P(d.name)?d.name:"",a=w[b.parent];a=g(a,!0)?h[a.pos]:null;var z=function(e){return e.name===c},C;e&&g(a,!0)&&(C=k(a.children,z))?(z=C.pos,C.nodes.push(b)):z=u++;h[z]||(h[z]=C={depth:a?a.depth+1:0,name:c,id:d.id,nodes:[b],children:[],pos:z},-1!==z&&m.push(c),g(a,!0)&&a.children.push(C));P(b.id)&&
(w[b.id]=b);C&&!0===d.collapsed&&(C.collapsed=!0);b.pos=z}});h=function(e,b){var h=function(e,d,c){var m=d+(-1===d?0:b-1),u=(m-d)/2,w=d+u;e.nodes.forEach(function(e){var b=e.data;g(b,!0)&&(b.y=d+(b.seriesIndex||0),delete b.seriesIndex);e.pos=w});c[w]=e;e.pos=w;e.tickmarkOffset=u+.5;e.collapseStart=m+.5;e.children.forEach(function(e){h(e,m+1,c);m=(e.collapseEnd||0)-.5});e.collapseEnd=m+.5;return c};return h(e["-1"],-1,{})}(h,c);return{categories:m,mapOfIdToNode:w,mapOfPosToGridNode:h,collapsedNodes:a,
tree:b}}function f(b){b.target.axes.filter(function(b){return"treegrid"===b.options.type}).forEach(function(c){var a=c.options||{},m=a.labels,z=a.uniqueNames;a=a.max;var w=0;if(!c.treeGrid.mapOfPosToGridNode||c.series.some(function(e){return!e.hasRendered||e.isDirtyData||e.isDirty})){var e=c.series.reduce(function(e,b){b.visible&&((b.options.data||[]).forEach(function(h){b.options.keys&&b.options.keys.length&&(h=b.pointClass.prototype.optionsToObject.call({series:b},h),b.pointClass.setGanttPointAliases(h));
g(h,!0)&&(h.seriesIndex=w,e.push(h))}),!0===z&&w++);return e},[]);if(a&&e.length<a)for(var h=e.length;h<=a;h++)e.push({name:h+"\u200b"});a=y(e,z||!1,!0===z?w:1);c.categories=a.categories;c.treeGrid.mapOfPosToGridNode=a.mapOfPosToGridNode;c.hasNames=!0;c.treeGrid.tree=a.tree;c.series.forEach(function(b){var h=(b.options.data||[]).map(function(h){d(h)&&b.options.keys&&b.options.keys.length&&e.forEach(function(e){0<=h.indexOf(e.x)&&0<=h.indexOf(e.x2)&&(h=e)});return g(h,!0)?K(h):h});b.visible&&b.setData(h,
!1)});c.treeGrid.mapOptionsToLevel=B({defaults:m,from:1,levels:m&&m.levels,to:c.treeGrid.tree&&c.treeGrid.tree.height});"beforeRender"===b.type&&(c.treeGrid.collapsedNodes=a.collapsedNodes)}})}function q(b,d){var c=this.treeGrid.mapOptionsToLevel||{},m=this.ticks,a=m[d],w;if("treegrid"===this.options.type&&this.treeGrid.mapOfPosToGridNode){var e=this.treeGrid.mapOfPosToGridNode[d];(c=c[e.depth])&&(w={labels:c});!a&&J?m[d]=new J(this,d,void 0,void 0,{category:e.name,tickmarkOffset:e.tickmarkOffset,
options:w}):(a.parameters.category=e.name,a.options=w,a.addLabel())}else b.apply(this,Array.prototype.slice.call(arguments,1))}function c(b,d,c){var m=this,a="treegrid"===c.type;m.treeGrid||(m.treeGrid=new E(m));a&&(I(d,"beforeRender",f),I(d,"beforeRedraw",f),I(d,"addSeries",function(b){b.options.data&&(b=y(b.options.data,c.uniqueNames||!1,1),m.treeGrid.collapsedNodes=(m.treeGrid.collapsedNodes||[]).concat(b.collapsedNodes))}),I(m,"foundExtremes",function(){m.treeGrid.collapsedNodes&&m.treeGrid.collapsedNodes.forEach(function(b){var e=
m.treeGrid.collapse(b);m.brokenAxis&&(m.brokenAxis.setBreaks(e,!1),m.treeGrid.collapsedNodes&&(m.treeGrid.collapsedNodes=m.treeGrid.collapsedNodes.filter(function(e){return b.collapseStart!==e.collapseStart||b.collapseEnd!==e.collapseEnd})))})}),I(m,"afterBreaks",function(){"yAxis"===m.coll&&!m.staticScale&&m.chart.options.chart.height&&(m.isDirty=!0)}),c=K({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,
width:10,padding:5}},uniqueNames:!1},c,{reversed:!0,grid:{columns:void 0}}));b.apply(m,[d,c]);a&&(m.hasNames=!0,m.options.showLastLabel=!0)}function D(d){var c=this.options;"treegrid"===c.type?(this.min=t(this.userMin,c.min,this.dataMin),this.max=t(this.userMax,c.max,this.dataMax),b(this,"foundExtremes"),this.setAxisTranslation(),this.tickmarkOffset=.5,this.tickInterval=1,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[]):d.apply(this,Array.prototype.slice.call(arguments,
1))}var B=Q.getLevelOptions,I=l.addEvent,k=l.find,b=l.fireEvent,d=l.isArray,g=l.isObject,P=l.isString,K=l.merge,t=l.pick,n=l.wrap,v=[],J,E=function(){function b(b){this.axis=b}b.compose=function(b,d,m,g){if(-1===v.indexOf(b)){v.push(b);-1===b.keepProps.indexOf("treeGrid")&&b.keepProps.push("treeGrid");var w=b.prototype;n(w,"generateTick",q);n(w,"init",c);n(w,"setTickInterval",D);w.utils={getNode:A.getNode}}-1===v.indexOf(g)&&(v.push(g),J||(J=g));x.compose(b,d,g);a.compose(b,m);r.compose(g);return b};
b.prototype.setCollapsedStatus=function(b){var d=this.axis,c=d.chart;d.series.forEach(function(d){var m=d.options.data;if(b.id&&m){var e=c.get(b.id);d=m[d.data.indexOf(e)];e&&d&&(e.collapsed=b.collapsed,d.collapsed=b.collapsed)}})};b.prototype.collapse=function(b){var d=this.axis,c=d.options.breaks||[],a=p(b,d.max);c.push(a);b.collapsed=!0;d.treeGrid.setCollapsedStatus(b);return c};b.prototype.expand=function(b){var d=this.axis,c=d.options.breaks||[],a=p(b,d.max);b.collapsed=!1;d.treeGrid.setCollapsedStatus(b);
return c.reduce(function(b,e){e.to===a.to&&e.from===a.from||b.push(e);return b},[])};b.prototype.getTickPositions=function(){var b=this.axis,d=Math.floor(b.min/b.tickInterval)*b.tickInterval,c=Math.ceil(b.max/b.tickInterval)*b.tickInterval;return Object.keys(b.treeGrid.mapOfPosToGridNode||{}).reduce(function(m,a){a=+a;!(a>=d&&a<=c)||b.brokenAxis&&b.brokenAxis.isInAnyBreak(a)||m.push(a);return m},[])};b.prototype.isCollapsed=function(b){var d=this.axis,c=d.options.breaks||[],a=p(b,d.max);return c.some(function(b){return b.from===
a.from&&b.to===a.to})};b.prototype.toggleCollapse=function(b){return this.isCollapsed(b)?this.expand(b):this.collapse(b)};return b}();return E});G(a,"Extensions/CurrentDateIndication.js",[a["Core/Axis/Axis.js"],a["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],a["Core/Utilities.js"]],function(a,x,A){var r=A.addEvent,E=A.merge;A=A.wrap;var l={color:"#ccd6eb",width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(a,l){return this.axis.chart.time.dateFormat(l||"",a)},rotation:0,style:{fontSize:"10px"}}};
r(a,"afterSetOptions",function(){var a=this.options,y=a.currentDateIndicator;y&&(y="object"===typeof y?E(l,y):E(l),y.value=Date.now(),y.className="highcharts-current-date-indicator",a.plotLines||(a.plotLines=[]),a.plotLines.push(y))});r(x,"render",function(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})});A(x.prototype,"getLabelText",function(a,l){var f=this.options;return f&&f.className&&-1!==f.className.indexOf("highcharts-current-date-indicator")&&f.label&&"function"===
typeof f.label.formatter?(f.value=Date.now(),f.label.formatter.call(this,f.value,f.label.format)):a.call(this,l)})});G(a,"Extensions/StaticScale.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Utilities.js"]],function(a,x,A){var r=A.addEvent,E=A.defined,l=A.isNumber,p=A.pick;r(a,"afterSetOptions",function(){var a=this.chart.options.chart;!this.horiz&&l(this.options.staticScale)&&(!a.height||a.scrollablePlotArea&&a.scrollablePlotArea.minHeight)&&(this.staticScale=this.options.staticScale)});
x.prototype.adjustHeight=function(){"adjustHeight"!==this.redrawTrigger&&((this.axes||[]).forEach(function(a){var f=a.chart,l=!!f.initiatedScale&&f.options.animation,c=a.options.staticScale;if(a.staticScale&&E(a.min)){var D=p(a.brokenAxis&&a.brokenAxis.unitLength,a.max+a.tickInterval-a.min)*c;D=Math.max(D,c);c=D-f.plotHeight;!f.scrollablePixelsY&&1<=Math.abs(c)&&(f.plotHeight=D,f.redrawTrigger="adjustHeight",f.setSize(void 0,f.chartHeight+c,l));a.series.forEach(function(c){(c=c.sharedClipKey&&f.sharedClips[c.sharedClipKey])&&
c.attr(f.inverted?{width:f.plotHeight}:{height:f.plotHeight})})}}),this.initiatedScale=!0);this.redrawTrigger=null};r(x,"render",x.prototype.adjustHeight)});G(a,"Extensions/ArrowSymbols.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],function(a){function x(a,l,p,r){return[["M",a,l+r/2],["L",a+p,l],["L",a,l+r/2],["L",a+p,l+r]]}function A(a,l,p,r){return[["M",a+p,l],["L",a,l+r/2],["L",a+p,l+r],["Z"]]}function r(a,l,p,r){return A(a,l,p/2,r)}a=a.prototype.symbols;a.arrow=x;a["arrow-filled"]=A;a["arrow-filled-half"]=
r;a["arrow-half"]=function(a,l,p,r){return x(a,l,p/2,r)};a["triangle-left"]=A;a["triangle-left-half"]=r;return a});G(a,"Gantt/Connection.js",[a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,x,A,r){function E(c){var a=c.shapeArgs;return a?{xMin:a.x||0,xMax:(a.x||0)+(a.width||0),yMin:a.y||0,yMax:(a.y||0)+(a.height||0)}:(a=c.graphic&&c.graphic.getBBox())?{xMin:c.plotX-a.width/2,xMax:c.plotX+a.width/2,yMin:c.plotY-a.height/2,yMax:c.plotY+a.height/
2}:null}"";var l=r.defined,p=r.error,y=r.extend,f=r.merge,q=r.objectEach,c=a.deg2rad,D=Math.max,B=Math.min;y(x.defaultOptions,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});x=function(){function a(c,b,d){this.toPoint=this.pathfinder=this.graphics=this.fromPoint=this.chart=void 0;this.init(c,b,d)}a.prototype.init=function(c,b,d){this.fromPoint=c;this.toPoint=
b;this.options=d;this.chart=c.series.chart;this.pathfinder=this.chart.pathfinder};a.prototype.renderPath=function(c,b,d){var a=this.chart,k=a.styledMode,f=a.pathfinder,t=!a.options.chart.forExport&&!1!==d,n=this.graphics&&this.graphics.path;f.group||(f.group=a.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(a.seriesGroup));f.group.translate(a.plotLeft,a.plotTop);n&&n.renderer||(n=a.renderer.path().add(f.group),k||n.attr({opacity:0}));n.attr(b);c={d:c};k||(c.opacity=1);n[t?
"animate":"attr"](c,d);this.graphics=this.graphics||{};this.graphics.path=n};a.prototype.addMarker=function(a,b,d){var g=this.fromPoint.series.chart,k=g.pathfinder;g=g.renderer;var f="start"===a?this.fromPoint:this.toPoint,t=f.getPathfinderAnchorPoint(b);if(b.enabled&&((d="start"===a?d[1]:d[d.length-2])&&"M"===d[0]||"L"===d[0])){d={x:d[1],y:d[2]};d=f.getRadiansToVector(d,t);t=f.getMarkerVector(d,b.radius,t);d=-d/c;if(b.width&&b.height){var n=b.width;var v=b.height}else n=v=2*b.radius;this.graphics=
this.graphics||{};t={x:t.x-n/2,y:t.y-v/2,width:n,height:v,rotation:d,rotationOriginX:t.x,rotationOriginY:t.y};this.graphics[a]?this.graphics[a].animate(t):(this.graphics[a]=g.symbol(b.symbol).addClass("highcharts-point-connecting-path-"+a+"-marker").attr(t).add(k.group),g.styledMode||this.graphics[a].attr({fill:b.color||this.fromPoint.color,stroke:b.lineColor,"stroke-width":b.lineWidth,opacity:0}).animate({opacity:1},f.series.options.animation))}};a.prototype.getPath=function(a){var b=this.pathfinder,
d=this.chart,c=b.algorithms[a.type],k=b.chartObstacles;if("function"!==typeof c)return p('"'+a.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]};c.requiresObstacles&&!k&&(k=b.chartObstacles=b.getChartObstacles(a),d.options.connectors.algorithmMargin=a.algorithmMargin,b.chartObstacleMetrics=b.getObstacleMetrics(k));return c(this.fromPoint.getPathfinderAnchorPoint(a.startMarker),this.toPoint.getPathfinderAnchorPoint(a.endMarker),f({chartObstacles:k,lineObstacles:b.lineObstacles||[],obstacleMetrics:b.chartObstacleMetrics,
hardBounds:{xMin:0,xMax:d.plotWidth,yMin:0,yMax:d.plotHeight},obstacleOptions:{margin:a.algorithmMargin},startDirectionX:b.getAlgorithmStartDirection(a.startMarker)},a))};a.prototype.render=function(){var a=this.fromPoint,b=a.series,d=b.chart,c=d.pathfinder,q=f(d.options.connectors,b.options.connectors,a.options.connectors,this.options),p={};d.styledMode||(p.stroke=q.lineColor||a.color,p["stroke-width"]=q.lineWidth,q.dashStyle&&(p.dashstyle=q.dashStyle));p["class"]="highcharts-point-connecting-path highcharts-color-"+
a.colorIndex;q=f(p,q);l(q.marker.radius)||(q.marker.radius=B(D(Math.ceil((q.algorithmMargin||8)/2)-1,1),5));a=this.getPath(q);d=a.path;a.obstacles&&(c.lineObstacles=c.lineObstacles||[],c.lineObstacles=c.lineObstacles.concat(a.obstacles));this.renderPath(d,p,b.options.animation);this.addMarker("start",f(q.marker,q.startMarker),d);this.addMarker("end",f(q.marker,q.endMarker),d)};a.prototype.destroy=function(){this.graphics&&(q(this.graphics,function(a){a.destroy()}),delete this.graphics)};return a}();
a.Connection=x;y(A.prototype,{getPathfinderAnchorPoint:function(a){var c=E(this);switch(a.align){case "right":var b="xMax";break;case "left":b="xMin"}switch(a.verticalAlign){case "top":var d="yMin";break;case "bottom":d="yMax"}return{x:b?c[b]:(c.xMin+c.xMax)/2,y:d?c[d]:(c.yMin+c.yMax)/2}},getRadiansToVector:function(a,c){var b;l(c)||(b=E(this))&&(c={x:(b.xMin+b.xMax)/2,y:(b.yMin+b.yMax)/2});return Math.atan2(c.y-a.y,a.x-c.x)},getMarkerVector:function(a,c,b){var d=2*Math.PI,g=E(this),f=g.xMax-g.xMin,
k=g.yMax-g.yMin,t=Math.atan2(k,f),n=!1;f/=2;var v=k/2,l=g.xMin+f;g=g.yMin+v;for(var q=l,B=g,D=1,F=1;a<-Math.PI;)a+=d;for(;a>Math.PI;)a-=d;d=Math.tan(a);a>-t&&a<=t?(F=-1,n=!0):a>t&&a<=Math.PI-t?F=-1:a>Math.PI-t||a<=-(Math.PI-t)?(D=-1,n=!0):D=-1;n?(q+=D*f,B+=F*f*d):(q+=k/(2*d)*D,B+=F*v);b.x!==l&&(q=b.x);b.y!==g&&(B=b.y);return{x:q+c*Math.cos(a),y:B-c*Math.sin(a)}}});return x});G(a,"Gantt/PathfinderAlgorithms.js",[a["Core/Utilities.js"]],function(a){function x(a,f,l){l=l||0;var c=a.length-1;f-=1e-7;
for(var k,b;l<=c;)if(k=c+l>>1,b=f-a[k].xMin,0<b)l=k+1;else if(0>b)c=k-1;else return k;return 0<l?l-1:0}function A(a,f){for(var c=x(a,f.x+1)+1;c--;){var l;if(l=a[c].xMax>=f.x)l=a[c],l=f.x<=l.xMax&&f.x>=l.xMin&&f.y<=l.yMax&&f.y>=l.yMin;if(l)return c}return-1}function r(a){var c=[];if(a.length){c.push(["M",a[0].start.x,a[0].start.y]);for(var f=0;f<a.length;++f)c.push(["L",a[f].end.x,a[f].end.y])}return c}function E(a,f){a.yMin=y(a.yMin,f.yMin);a.yMax=p(a.yMax,f.yMax);a.xMin=y(a.xMin,f.xMin);a.xMax=p(a.xMax,
f.xMax)}var l=a.pick,p=Math.min,y=Math.max,f=Math.abs;a=function(a,q,p){function c(b,a,d,c,g){b={x:b.x,y:b.y};b[a]=d[c||a]+(g||0);return b}function k(b,a,d){var g=f(a[d]-b[d+"Min"])>f(a[d]-b[d+"Max"]);return c(a,d,b,d+(g?"Max":"Min"),g?1:-1)}var b=[],d=l(p.startDirectionX,f(q.x-a.x)>f(q.y-a.y))?"x":"y",g=p.chartObstacles,D=A(g,a);p=A(g,q);if(-1<p){var B=g[p];p=k(B,q,d);B={start:p,end:q};var t=p}else t=q;-1<D&&(g=g[D],p=k(g,a,d),b.push({start:a,end:p}),p[d]>=a[d]===p[d]>=t[d]&&(d="y"===d?"x":"y",q=
a[d]<q[d],b.push({start:p,end:c(p,d,g,d+(q?"Max":"Min"),q?1:-1)}),d="y"===d?"x":"y"));a=b.length?b[b.length-1].end:a;p=c(a,d,t);b.push({start:a,end:p});d=c(p,"y"===d?"x":"y",t);b.push({start:p,end:d});b.push(B);return{path:r(b),obstacles:b}};a.requiresObstacles=!0;var q=function(a,q,B){function c(b,a,e){var h,d=b.x<a.x?1:-1;if(b.x<a.x){var c=b;var m=a}else c=a,m=b;if(b.y<a.y){var w=b;var g=a}else w=a,g=b;for(h=0>d?p(x(H,m.x),H.length-1):0;H[h]&&(0<d&&H[h].xMin<=m.x||0>d&&H[h].xMax>=c.x);){if(H[h].xMin<=
m.x&&H[h].xMax>=c.x&&H[h].yMin<=g.y&&H[h].yMax>=w.y)return e?{y:b.y,x:b.x<a.x?H[h].xMin-1:H[h].xMax+1,obstacle:H[h]}:{x:b.x,y:b.y<a.y?H[h].yMin-1:H[h].yMax+1,obstacle:H[h]};h+=d}return a}function k(b,a,e,h,d){var m=d.soft,u=d.hard,w=h?"x":"y",g={x:a.x,y:a.y},z={x:a.x,y:a.y};d=b[w+"Max"]>=m[w+"Max"];m=b[w+"Min"]<=m[w+"Min"];var n=b[w+"Max"]>=u[w+"Max"];u=b[w+"Min"]<=u[w+"Min"];var k=f(b[w+"Min"]-a[w]),t=f(b[w+"Max"]-a[w]);e=10>f(k-t)?a[w]<e[w]:t<k;z[w]=b[w+"Min"];g[w]=b[w+"Max"];b=c(a,z,h)[w]!==z[w];
a=c(a,g,h)[w]!==g[w];e=b?a?e:!0:a?!1:e;e=m?d?e:!0:d?!1:e;return u?n?e:!0:n?!1:e}function b(a,d,e){if(a.x===d.x&&a.y===d.y)return[];var h=e?"x":"y",m=B.obstacleOptions.margin;var w={soft:{xMin:v,xMax:J,yMin:N,yMax:M},hard:B.hardBounds};var g=A(H,a);if(-1<g){g=H[g];w=k(g,a,d,e,w);E(g,B.hardBounds);var f=e?{y:a.y,x:g[w?"xMax":"xMin"]+(w?1:-1)}:{x:a.x,y:g[w?"yMax":"yMin"]+(w?1:-1)};var n=A(H,f);-1<n&&(n=H[n],E(n,B.hardBounds),f[h]=w?y(g[h+"Max"]-m+1,(n[h+"Min"]+g[h+"Max"])/2):p(g[h+"Min"]+m-1,(n[h+"Max"]+
g[h+"Min"])/2),a.x===f.x&&a.y===f.y?(t&&(f[h]=w?y(g[h+"Max"],n[h+"Max"])+1:p(g[h+"Min"],n[h+"Min"])-1),t=!t):t=!1);a=[{start:a,end:f}]}else h=c(a,{x:e?d.x:a.x,y:e?a.y:d.y},e),a=[{start:a,end:{x:h.x,y:h.y}}],h[e?"x":"y"]!==d[e?"x":"y"]&&(w=k(h.obstacle,h,d,!e,w),E(h.obstacle,B.hardBounds),w={x:e?h.x:h.obstacle[w?"xMax":"xMin"]+(w?1:-1),y:e?h.obstacle[w?"yMax":"yMin"]+(w?1:-1):h.y},e=!e,a=a.concat(b({x:h.x,y:h.y},w,e)));return a=a.concat(b(a[a.length-1].end,d,!e))}function d(b,a,e){var h=p(b.xMax-a.x,
a.x-b.xMin)<p(b.yMax-a.y,a.y-b.yMin);e=k(b,a,e,h,{soft:B.hardBounds,hard:B.hardBounds});return h?{y:a.y,x:b[e?"xMax":"xMin"]+(e?1:-1)}:{x:a.x,y:b[e?"yMax":"yMin"]+(e?1:-1)}}var g=l(B.startDirectionX,f(q.x-a.x)>f(q.y-a.y)),D=g?"x":"y",K=[],t=!1,n=B.obstacleMetrics,v=p(a.x,q.x)-n.maxWidth-10,J=y(a.x,q.x)+n.maxWidth+10,N=p(a.y,q.y)-n.maxHeight-10,M=y(a.y,q.y)+n.maxHeight+10,H=B.chartObstacles;var F=x(H,v);n=x(H,J);H=H.slice(F,n+1);if(-1<(n=A(H,q))){var m=d(H[n],q,a);K.push({end:q,start:m});q=m}for(;-1<
(n=A(H,q));)F=0>q[D]-a[D],m={x:q.x,y:q.y},m[D]=H[n][F?D+"Max":D+"Min"]+(F?1:-1),K.push({end:q,start:m}),q=m;a=b(a,q,g);a=a.concat(K.reverse());return{path:r(a),obstacles:a}};q.requiresObstacles=!0;return{fastAvoid:q,straight:function(a,f){return{path:[["M",a.x,a.y],["L",f.x,f.y]],obstacles:[{start:a,end:f}]}},simpleConnect:a}});G(a,"Gantt/Pathfinder.js",[a["Gantt/Connection.js"],a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"],
a["Gantt/PathfinderAlgorithms.js"]],function(a,x,A,r,Q,l,p){function y(b){var a=b.shapeArgs;return a?{xMin:a.x||0,xMax:(a.x||0)+(a.width||0),yMin:a.y||0,yMax:(a.y||0)+(a.height||0)}:(a=b.graphic&&b.graphic.getBBox())?{xMin:b.plotX-a.width/2,xMax:b.plotX+a.width/2,yMin:b.plotY-a.height/2,yMax:b.plotY+a.height/2}:null}function f(a){for(var d=a.length,c=0,f,k,t=[],q=function(a,d,c){c=b(c,10);var m=a.yMax+c>d.yMin-c&&a.yMin-c<d.yMax+c,e=a.xMax+c>d.xMin-c&&a.xMin-c<d.xMax+c,h=m?a.xMin>d.xMax?a.xMin-d.xMax:
d.xMin-a.xMax:Infinity,u=e?a.yMin>d.yMax?a.yMin-d.yMax:d.yMin-a.yMax:Infinity;return e&&m?c?q(a,d,Math.floor(c/2)):Infinity:E(h,u)};c<d;++c)for(f=c+1;f<d;++f)k=q(a[c],a[f]),80>k&&t.push(k);t.push(80);return g(Math.floor(t.sort(function(b,a){return b-a})[Math.floor(t.length/10)]/2-1),1)}function q(b){if(b.options.pathfinder||b.series.reduce(function(b,a){a.options&&k(!0,a.options.connectors=a.options.connectors||{},a.options.pathfinder);return b||a.options&&a.options.pathfinder},!1))k(!0,b.options.connectors=
b.options.connectors||{},b.options.pathfinder),B('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')}"";var c=l.addEvent,D=l.defined,B=l.error,I=l.extend,k=l.merge,b=l.pick,d=l.splat,g=Math.max,E=Math.min;I(r.defaultOptions,{connectors:{type:"straight",lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});var K=function(){function g(b){this.lineObstacles=
this.group=this.connections=this.chartObstacleMetrics=this.chartObstacles=this.chart=void 0;this.init(b)}g.prototype.init=function(b){this.chart=b;this.connections=[];c(b,"redraw",function(){this.pathfinder.update()})};g.prototype.update=function(b){var c=this.chart,g=this,f=g.connections;g.connections=[];c.series.forEach(function(b){b.visible&&!b.options.isInternal&&b.points.forEach(function(e){var b=e.options;b&&b.dependency&&(b.connect=b.dependency);var m;b=e.options&&e.options.connect&&d(e.options.connect);
e.visible&&!1!==e.isInside&&b&&b.forEach(function(b){m=c.get("string"===typeof b?b:b.to);m instanceof Q&&m.series.visible&&m.visible&&!1!==m.isInside&&g.connections.push(new a(e,m,"string"===typeof b?{}:b))})})});for(var k=0,n=void 0,t=void 0,m=f.length,z=g.connections.length;k<m;++k){t=!1;for(n=0;n<z;++n)if(f[k].fromPoint===g.connections[n].fromPoint&&f[k].toPoint===g.connections[n].toPoint){g.connections[n].graphics=f[k].graphics;t=!0;break}t||f[k].destroy()}delete this.chartObstacles;delete this.lineObstacles;
g.renderConnections(b)};g.prototype.renderConnections=function(b){b?this.chart.series.forEach(function(b){var a=function(){var a=b.chart.pathfinder;(a&&a.connections||[]).forEach(function(a){a.fromPoint&&a.fromPoint.series===b&&a.render()});b.pathfinderRemoveRenderEvent&&(b.pathfinderRemoveRenderEvent(),delete b.pathfinderRemoveRenderEvent)};!1===b.options.animation?a():b.pathfinderRemoveRenderEvent=c(b,"afterAnimate",a)}):this.connections.forEach(function(b){b.render()})};g.prototype.getChartObstacles=
function(a){for(var d=[],c=this.chart.series,g=b(a.algorithmMargin,0),k,n=0,t=c.length;n<t;++n)if(c[n].visible&&!c[n].options.isInternal){var m=0,z=c[n].points.length,w=void 0;for(w=void 0;m<z;++m)w=c[n].points[m],w.visible&&(w=y(w))&&d.push({xMin:w.xMin-g,xMax:w.xMax+g,yMin:w.yMin-g,yMax:w.yMax+g})}d=d.sort(function(b,a){return b.xMin-a.xMin});D(a.algorithmMargin)||(k=a.algorithmMargin=f(d),d.forEach(function(b){b.xMin-=k;b.xMax+=k;b.yMin-=k;b.yMax+=k}));return d};g.prototype.getObstacleMetrics=
function(b){for(var a=0,d=0,c,g,f=b.length;f--;)c=b[f].xMax-b[f].xMin,g=b[f].yMax-b[f].yMin,a<c&&(a=c),d<g&&(d=g);return{maxHeight:d,maxWidth:a}};g.prototype.getAlgorithmStartDirection=function(b){var a="top"!==b.verticalAlign&&"bottom"!==b.verticalAlign;return"left"!==b.align&&"right"!==b.align?a?void 0:!1:a?!0:void 0};return g}();K.prototype.algorithms=p;A.Pathfinder=K;I(Q.prototype,{getPathfinderAnchorPoint:function(b){var a=y(this);switch(b.align){case "right":var d="xMax";break;case "left":d=
"xMin"}switch(b.verticalAlign){case "top":var c="yMin";break;case "bottom":c="yMax"}return{x:d?a[d]:(a.xMin+a.xMax)/2,y:c?a[c]:(a.yMin+a.yMax)/2}},getRadiansToVector:function(b,a){var d;D(a)||(d=y(this))&&(a={x:(d.xMin+d.xMax)/2,y:(d.yMin+d.yMax)/2});return Math.atan2(a.y-b.y,b.x-a.x)},getMarkerVector:function(b,a,d){var c=2*Math.PI,g=y(this),f=g.xMax-g.xMin,k=g.yMax-g.yMin,n=Math.atan2(k,f),m=!1;f/=2;var z=k/2,w=g.xMin+f;g=g.yMin+z;for(var e=w,h=g,u=1,C=1;b<-Math.PI;)b+=c;for(;b>Math.PI;)b-=c;c=
Math.tan(b);b>-n&&b<=n?(C=-1,m=!0):b>n&&b<=Math.PI-n?C=-1:b>Math.PI-n||b<=-(Math.PI-n)?(u=-1,m=!0):u=-1;m?(e+=u*f,h+=C*f*c):(e+=k/(2*c)*u,h+=C*z);d.x!==w&&(e=d.x);d.y!==g&&(h=d.y);return{x:e+a*Math.cos(b),y:h-a*Math.sin(b)}}});x.prototype.callbacks.push(function(b){!1!==b.options.connectors.enabled&&(q(b),this.pathfinder=new K(this),this.pathfinder.update(!0))});return K});G(a,"Series/Gantt/GanttSeries.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Series/Gantt/GanttPoint.js"],a["Core/Series/SeriesRegistry.js"],
a["Core/Axis/Tick.js"],a["Core/Utilities.js"],a["Core/Axis/TreeGrid/TreeGridAxis.js"]],function(a,x,A,r,Q,l,p){var y=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),f=r.series,q=r.seriesTypes.xrange,
c=l.extend,D=l.isNumber,B=l.merge;p.compose(a,x,f,Q);a=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}y(c,a);c.prototype.drawPoint=function(b,a){var d=this.options,c=this.chart.renderer,f=b.shapeArgs,k=b.plotY,n=b.graphic,l=b.selected&&"select",p=d.stacking&&!d.borderRadius;if(b.options.milestone)if(D(k)&&null!==b.y&&!1!==b.visible){f=c.symbols.diamond(f.x||0,f.y||0,f.width||0,f.height||0);if(n)n[a]({d:f});else b.graphic=
c.path(f).addClass(b.getClassName(),!0).add(b.group||this.group);this.chart.styledMode||b.graphic.attr(this.pointAttribs(b,l)).shadow(d.shadow,null,p)}else n&&(b.graphic=n.destroy());else q.prototype.drawPoint.call(this,b,a)};c.prototype.translatePoint=function(b){q.prototype.translatePoint.call(this,b);if(b.options.milestone){var a=b.shapeArgs;var c=a.height||0;b.shapeArgs={x:(a.x||0)-c/2,y:a.y,width:c,height:c}}};c.defaultOptions=B(q.defaultOptions,{grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 10px">{series.name}</span><br/>',
pointFormat:null,pointFormatter:function(){var b=this.series,a=b.xAxis,c=b.tooltipOptions.dateTimeLabelFormats,f=a.options.startOfWeek,k=b.tooltipOptions,q=k.xDateFormat,n=this.options.milestone,l="<b>"+(this.name||this.yCategory)+"</b>";if(k.pointFormat)return this.tooltipFormatter(k.pointFormat);!q&&D(this.start)&&(q=b.chart.time.getDateFormat(a.closestPointRange,this.start,f,c||{}));a=b.chart.time.dateFormat(q,this.start);b=b.chart.time.dateFormat(q,this.end);l+="<br/>";return n?l+(a+"<br/>"):
l+("Start: "+a+"<br/>End: ")+(b+"<br/>")}},connectors:{type:"simpleConnect",animation:{reversed:!0},startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:!1,align:"right"}}});return c}(q);c(a.prototype,{pointArrayMap:["start","end","y"],pointClass:A,setData:f.prototype.setData});r.registerSeriesType("gantt",a);"";return a});G(a,"Core/Chart/GanttChart.js",[a["Core/Chart/Chart.js"],a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,x,A){var r=
this&&this.__extends||function(){var a=function(f,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f])};return a(f,c)};return function(f,c){function q(){this.constructor=f}a(f,c);f.prototype=null===c?Object.create(c):(q.prototype=c.prototype,new q)}}(),E=x.getOptions,l=A.isArray,p=A.merge,y=A.splat;a=function(a){function f(){return null!==a&&a.apply(this,arguments)||this}r(f,a);f.prototype.init=function(c,
f){var q=E(),r=c.xAxis,k=c.yAxis,b;c.xAxis=c.yAxis=void 0;var d=p(!0,{chart:{type:"gantt"},title:{text:null},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},c,{isGantt:!0});c.xAxis=r;c.yAxis=k;d.xAxis=(l(c.xAxis)?c.xAxis:[c.xAxis||{},{}]).map(function(a,d){1===d&&(b=0);return p(q.xAxis,{grid:{enabled:!0},opposite:!0,linkedTo:b},a,{type:"datetime"})});d.yAxis=y(c.yAxis||{}).map(function(b){return p(q.yAxis,{grid:{enabled:!0},staticScale:50,reversed:!0,type:b.categories?
b.type:"treegrid"},b)});a.prototype.init.call(this,d,f)};return f}(a);(function(a){a.ganttChart=function(f,c,l){return new a(f,c,l)}})(a||(a={}));return a});G(a,"Core/Axis/ScrollbarAxis.js",[a["Core/Utilities.js"]],function(a){var x=a.addEvent,A=a.defined,r=a.pick;return function(){function a(){}a.compose=function(l,p){if(-1===a.composed.indexOf(l))a.composed.push(l);else return l;var y=function(a){var f=r(a.options&&a.options.min,a.min),c=r(a.options&&a.options.max,a.max);return{axisMin:f,axisMax:c,
scrollMin:A(a.dataMin)?Math.min(f,a.min,a.dataMin,r(a.threshold,Infinity)):f,scrollMax:A(a.dataMax)?Math.max(c,a.max,a.dataMax,r(a.threshold,-Infinity)):c}};x(l,"afterInit",function(){var a=this;a.options&&a.options.scrollbar&&a.options.scrollbar.enabled&&(a.options.scrollbar.vertical=!a.horiz,a.options.startOnTick=a.options.endOnTick=!1,a.scrollbar=new p(a.chart.renderer,a.options.scrollbar,a.chart),x(a.scrollbar,"changed",function(f){var c=y(a),l=c.axisMax,q=c.scrollMin,p=c.scrollMax-q;A(c.axisMin)&&
A(l)&&(a.horiz&&!a.reversed||!a.horiz&&a.reversed?(c=q+p*this.to,q+=p*this.from):(c=q+p*(1-this.from),q+=p*(1-this.to)),this.shouldUpdateExtremes(f.DOMType)?a.setExtremes(q,c,!0,"mousemove"!==f.DOMType&&"touchmove"!==f.DOMType,f):this.setRange(this.from,this.to))}))});x(l,"afterRender",function(){var a=y(this),l=a.scrollMin,c=a.scrollMax;a=this.scrollbar;var p=this.axisTitleMargin+(this.titleOffset||0),r=this.chart.scrollbarsOffsets,x=this.options.margin||0;a&&(this.horiz?(this.opposite||(r[1]+=p),
a.position(this.left,this.top+this.height+2+r[1]-(this.opposite?x:0),this.width,this.height),this.opposite||(r[1]+=x),p=1):(this.opposite&&(r[0]+=p),a.position(a.options.opposite?this.left+this.width+2+r[0]-(this.opposite?0:x):this.opposite?0:x,this.top,this.width,this.height),this.opposite&&(r[0]+=x),p=0),r[p]+=a.size+a.options.margin,isNaN(l)||isNaN(c)||!A(this.min)||!A(this.max)||this.min===this.max?a.setRange(0,1):(r=(this.min-l)/(c-l),l=(this.max-l)/(c-l),this.horiz&&!this.reversed||!this.horiz&&
this.reversed?a.setRange(r,l):a.setRange(1-l,1-r)))});x(l,"afterGetOffset",function(){var a=this.scrollbar&&!this.scrollbar.options.opposite;a=this.horiz?2:a?3:1;var l=this.scrollbar;l&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[a]+=l.size+l.options.margin)});return l};a.composed=[];return a}()});G(a,"Core/ScrollbarDefaults.js",[a["Core/Globals.js"]],function(a){return{height:a.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,
step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}});G(a,"Core/Scrollbar.js",[a["Core/DefaultOptions.js"],a["Core/Globals.js"],a["Core/Axis/ScrollbarAxis.js"],a["Core/ScrollbarDefaults.js"],a["Core/Utilities.js"]],function(a,x,A,r,G){var l=a.defaultOptions,p=
G.addEvent,y=G.correctFloat,f=G.defined,q=G.destroyObjectProperties,c=G.fireEvent,D=G.merge,B=G.pick,I=G.removeEvent;a=function(){function a(a,d,c){this._events=[];this.chart=void 0;this.from=this.chartY=this.chartX=0;this.scrollbar=this.renderer=this.options=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=void 0;this.trackBorderWidth=1;this.userOptions=
void 0;this.y=this.x=0;this.init(a,d,c)}a.compose=function(b){A.compose(b,a)};a.swapXY=function(a,d){d&&a.forEach(function(a){for(var b=a.length,d,c=0;c<b;c+=2)d=a[c+1],"number"===typeof d&&(a[c+1]=a[c+2],a[c+2]=d)});return a};a.prototype.addEvents=function(){var a=this.options.inverted?[1,0]:[0,1],d=this.scrollbarButtons,c=this.scrollbarGroup.element,f=this.track.element,k=this.mouseDownHandler.bind(this),l=this.mouseMoveHandler.bind(this),n=this.mouseUpHandler.bind(this);a=[[d[a[0]].element,"click",
this.buttonToMinClick.bind(this)],[d[a[1]].element,"click",this.buttonToMaxClick.bind(this)],[f,"click",this.trackClick.bind(this)],[c,"mousedown",k],[c.ownerDocument,"mousemove",l],[c.ownerDocument,"mouseup",n]];x.hasTouch&&a.push([c,"touchstart",k],[c.ownerDocument,"touchmove",l],[c.ownerDocument,"touchend",n]);a.forEach(function(a){p.apply(null,a)});this._events=a};a.prototype.buttonToMaxClick=function(a){var b=(this.to-this.from)*B(this.options.step,.2);this.updatePosition(this.from+b,this.to+
b);c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};a.prototype.buttonToMinClick=function(a){var b=y(this.to-this.from)*B(this.options.step,.2);this.updatePosition(y(this.from-b),y(this.to-b));c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};a.prototype.cursorToScrollbarPosition=function(a){var b=this.options;b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-
this.yOffset)/(this.barWidth-b)}};a.prototype.destroy=function(){var a=this,d=a.chart.scroller;a.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(b){a[b]&&a[b].destroy&&(a[b]=a[b].destroy())});d&&a===d.scrollbar&&(d.scrollbar=null,q(d.scrollbarButtons))};a.prototype.drawScrollbarButton=function(b){var d=this.renderer,c=this.scrollbarButtons,f=this.options,k=this.size,l=d.g().add(this.group);c.push(l);l=d.rect().addClass("highcharts-scrollbar-button").add(l);
this.chart.styledMode||l.attr({stroke:f.buttonBorderColor,"stroke-width":f.buttonBorderWidth,fill:f.buttonBackgroundColor});l.attr(l.crisp({x:-.5,y:-.5,width:k+1,height:k+1,r:f.buttonBorderRadius},l.strokeWidth()));l=d.path(a.swapXY([["M",k/2+(b?-1:1),k/2-3],["L",k/2+(b?-1:1),k/2+3],["L",k/2+(b?2:-2),k/2]],f.vertical)).addClass("highcharts-scrollbar-arrow").add(c[b]);this.chart.styledMode||l.attr({fill:f.buttonArrowColor})};a.prototype.init=function(a,d,c){this.scrollbarButtons=[];this.renderer=a;
this.userOptions=d;this.options=D(r,l.scrollbar,d);this.chart=c;this.size=B(this.options.size,this.options.height);d.enabled&&(this.render(),this.addEvents())};a.prototype.mouseDownHandler=function(a){a=this.chart.pointer.normalize(a);a=this.cursorToScrollbarPosition(a);this.chartX=a.chartX;this.chartY=a.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=!0};a.prototype.mouseMoveHandler=function(a){var b=this.chart.pointer.normalize(a),g=this.options.vertical?"chartY":"chartX",f=this.initPositions||
[];!this.grabbedCenter||a.touches&&0===a.touches[0][g]||(b=this.cursorToScrollbarPosition(b)[g],g=this[g],g=b-g,this.hasDragged=!0,this.updatePosition(f[0]+g,f[1]+g),this.hasDragged&&c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a}))};a.prototype.mouseUpHandler=function(a){this.hasDragged&&c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};a.prototype.position=
function(a,d,c,f){var b=this.options.vertical,g=this.rendered?"animate":"attr",k=f,l=0;this.group.show();this.x=a;this.y=d+this.trackBorderWidth;this.width=c;this.height=f;this.xOffset=k;this.yOffset=l;b?(this.width=this.yOffset=c=l=this.size,this.xOffset=k=0,this.barWidth=f-2*c,this.x=a+=this.options.margin):(this.height=this.xOffset=f=k=this.size,this.barWidth=c-2*f,this.y+=this.options.margin);this.group[g]({translateX:a,translateY:this.y});this.track[g]({width:c,height:f});this.scrollbarButtons[1][g]({translateX:b?
0:c-k,translateY:b?f-l:0})};a.prototype.removeEvents=function(){this._events.forEach(function(a){I.apply(null,a)});this._events.length=0};a.prototype.render=function(){var b=this.renderer,d=this.options,c=this.size,f=this.chart.styledMode,k=b.g("scrollbar").attr({zIndex:d.zIndex}).hide().add();this.group=k;this.track=b.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:d.trackBorderRadius||0,height:c,width:c}).add(k);f||this.track.attr({fill:d.trackBackgroundColor,stroke:d.trackBorderColor,
"stroke-width":d.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=b.g().add(k);this.scrollbar=b.rect().addClass("highcharts-scrollbar-thumb").attr({height:c,width:c,r:d.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=b.path(a.swapXY([["M",-3,c/4],["L",-3,2*c/3],["M",0,c/4],["L",0,2*c/3],["M",3,c/4],["L",3,2*c/3]],d.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);f||(this.scrollbar.attr({fill:d.barBackgroundColor,
stroke:d.barBorderColor,"stroke-width":d.barBorderWidth}),this.scrollbarRifles.attr({stroke:d.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};a.prototype.setRange=function(a,c){var b=this.options,d=b.vertical,k=b.minWidth,l=this.barWidth,n=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?
"attr":"animate";if(f(l)){var q=l*Math.min(c,1);a=Math.max(a,0);var p=Math.ceil(l*a);this.calculatedWidth=q=y(q-p);q<k&&(p=(l-k+q)*a,q=k);k=Math.floor(p+this.xOffset+this.yOffset);l=q/2-.5;this.from=a;this.to=c;d?(this.scrollbarGroup[n]({translateY:k}),this.scrollbar[n]({height:q}),this.scrollbarRifles[n]({translateY:l}),this.scrollbarTop=k,this.scrollbarLeft=0):(this.scrollbarGroup[n]({translateX:k}),this.scrollbar[n]({width:q}),this.scrollbarRifles[n]({translateX:l}),this.scrollbarLeft=k,this.scrollbarTop=
0);12>=q?this.scrollbarRifles.hide():this.scrollbarRifles.show();!1===b.showFull&&(0>=a&&1<=c?this.group.hide():this.group.show());this.rendered=!0}};a.prototype.shouldUpdateExtremes=function(a){return B(this.options.liveRedraw,x.svg&&!x.isTouchDevice&&!this.chart.boosted)||"mouseup"===a||"touchend"===a||!f(a)};a.prototype.trackClick=function(a){var b=this.chart.pointer.normalize(a),f=this.to-this.from,k=this.y+this.scrollbarTop,l=this.x+this.scrollbarLeft;this.options.vertical&&b.chartY>k||!this.options.vertical&&
b.chartX>l?this.updatePosition(this.from+f,this.to+f):this.updatePosition(this.from-f,this.to-f);c(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};a.prototype.update=function(a){this.destroy();this.init(this.chart.renderer,D(!0,this.options,a),this.chart)};a.prototype.updatePosition=function(a,c){1<c&&(a=y(1-y(c-a)),c=1);0>a&&(c=y(c-a),a=0);this.from=a;this.to=c};a.defaultOptions=r;return a}();l.scrollbar=D(!0,a.defaultOptions,l.scrollbar);return a});G(a,"Extensions/RangeSelector.js",
[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,x,A,r,G,l){function p(a){if(-1!==a.indexOf("%L"))return"text";var b="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+b)}),c="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return b&&c?"datetime-local":b?"date":c?"time":"text"}var y=r.defaultOptions,f=l.addEvent,q=l.createElement,c=l.css,D=l.defined,
B=l.destroyObjectProperties,I=l.discardElement,k=l.extend,b=l.find,d=l.fireEvent,g=l.isNumber,E=l.merge,K=l.objectEach,t=l.pad,n=l.pick,v=l.pInt,J=l.splat;k(y,{rangeSelector:{allButtonsEnabled:!1,buttons:void 0,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:"%b %e, %Y",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:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}});k(y.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"});var N=function(){function b(a){this.buttons=void 0;this.buttonOptions=b.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=a;this.init(a)}b.prototype.clickButton=function(b,c){var m=
this.chart,e=this.buttonOptions[b],h=m.xAxis[0],u=m.scroller&&m.scroller.getUnionExtremes()||h||{},k=u.dataMin,l=u.dataMax,z=h&&Math.round(Math.min(h.max,n(l,h.max))),q=e.type;u=e._range;var p,r=e.dataGrouping;var t=!0;if(null!==k&&null!==l){m.fixedRange=u;this.setSelected(b);r&&(this.forcedDataGrouping=!0,a.prototype.setDataGrouping.call(h||{chart:this.chart},r,!1),this.frozenStates=e.preserveDataGrouping);if("month"===q||"year"===q)if(h){t={range:e,max:z,chart:m,dataMin:k,dataMax:l};var v=h.minFromRange.call(t);
g(t.newMax)&&(z=t.newMax);t=!1}else u=e;else if(u)v=Math.max(z-u,k),z=Math.min(v+u,l),t=!1;else if("ytd"===q)if(h){if("undefined"===typeof l||"undefined"===typeof k)k=Number.MAX_VALUE,l=Number.MIN_VALUE,m.series.forEach(function(a){if(a=a.xData)k=Math.min(a[0],k),l=Math.max(a[a.length-1],l)}),c=!1;z=this.getYTDExtremes(l,k,m.time.useUTC);v=p=z.min;z=z.max}else{this.deferredYTDClick=b;return}else"all"===q&&h&&(m.navigator&&m.navigator.baseSeries[0]&&(m.navigator.baseSeries[0].xAxis.options.range=void 0),
v=k,z=l);t&&e._offsetMin&&D(v)&&(v+=e._offsetMin);e._offsetMax&&D(z)&&(z+=e._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=b+1);if(h)h.setExtremes(v,z,n(c,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:e});else{var x=J(m.options.xAxis)[0];var F=x.range;x.range=u;var y=x.min;x.min=p;f(m,"load",function(){x.range=F;x.min=y})}d(this,"afterBtnClick")}};b.prototype.setSelected=function(a){this.selected=this.options.selected=a};b.prototype.init=function(a){var b=this,c=a.options.rangeSelector,
e=c.buttons||b.defaultButtons.slice(),h=c.selected,m=function(){var a=b.minInput,e=b.maxInput;a&&a.blur&&d(a,"blur");e&&e.blur&&d(e,"blur")};b.chart=a;b.options=c;b.buttons=[];b.buttonOptions=e;this.eventsToUnbind=[];this.eventsToUnbind.push(f(a.container,"mousedown",m));this.eventsToUnbind.push(f(a,"resize",m));e.forEach(b.computeButtonRange);"undefined"!==typeof h&&e[h]&&this.clickButton(h,!1);this.eventsToUnbind.push(f(a,"load",function(){a.xAxis&&a.xAxis[0]&&f(a.xAxis[0],"setExtremes",function(e){this.max-
this.min!==a.fixedRange&&"rangeSelectorButton"!==e.trigger&&"updatedData"!==e.trigger&&b.forcedDataGrouping&&!b.frozenStates&&this.setDataGrouping(!1,!1)})}))};b.prototype.updateButtonStates=function(){var a=this,b=this.chart,c=this.dropdown,e=b.xAxis[0],d=Math.round(e.max-e.min),u=!e.hasVisibleSeries,f=b.scroller&&b.scroller.getUnionExtremes()||e,k=f.dataMin,l=f.dataMax;b=a.getYTDExtremes(l,k,b.time.useUTC);var n=b.min,q=b.max,p=a.selected,r=g(p),t=a.options.allButtonsEnabled,v=a.buttons;a.buttonOptions.forEach(function(b,
h){var m=b._range,f=b.type,w=b.count||1,g=v[h],C=0,z=b._offsetMax-b._offsetMin;b=h===p;var R=m>l-k,L=m<e.minRange,O=!1,x=!1;m=m===d;("month"===f||"year"===f)&&d+36E5>=864E5*{month:28,year:365}[f]*w-z&&d-36E5<=864E5*{month:31,year:366}[f]*w+z?m=!0:"ytd"===f?(m=q-n+z===d,O=!b):"all"===f&&(m=e.max-e.min>=l-k,x=!b&&r&&m);f=!t&&(R||L||x||u);w=b&&m||m&&!r&&!O||b&&a.frozenStates;f?C=3:w&&(r=!0,C=2);g.state!==C&&(g.setState(C),c&&(c.options[h+1].disabled=f,2===C&&(c.selectedIndex=h+1)),0===C&&p===h&&a.setSelected())})};
b.prototype.computeButtonRange=function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=n(a.offsetMin,0);a._offsetMax=n(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin};b.prototype.getInputValue=function(a){a="min"===a?this.minInput:this.maxInput;var b=this.chart.options.rangeSelector,c=this.chart.time;return a?("text"===a.type&&b.inputDateParser||
this.defaultInputDateParser)(a.value,c.useUTC,c):0};b.prototype.setInputValue=function(a,b){var c=this.options,e=this.chart.time,d="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(d){var m=d.getAttribute("data-hc-time");m=D(m)?Number(m):void 0;D(b)&&(D(m)&&d.setAttribute("data-hc-time-previous",m),d.setAttribute("data-hc-time",b),m=b);d.value=e.dateFormat(this.inputTypeFormats[d.type]||c.inputEditDateFormat,m);a&&a.attr({text:e.dateFormat(c.inputDateFormat,m)})}};
b.prototype.setInputExtremes=function(a,b,c){if(a="min"===a?this.minInput:this.maxInput){var e=this.inputTypeFormats[a.type],d=this.chart.time;e&&(b=d.dateFormat(e,b),a.min!==b&&(a.min=b),c=d.dateFormat(e,c),a.max!==c&&(a.max=c))}};b.prototype.showInput=function(a){var b="min"===a?this.minDateBox:this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&b&&this.inputGroup){var d="text"===a.type,e=this.inputGroup,h=e.translateX;e=e.translateY;var m=this.options.inputBoxWidth;c(a,{width:d?b.width+
(m?-2:20)+"px":"auto",height:d?b.height-2+"px":"auto",border:"2px solid silver"});d&&m?c(a,{left:h+b.x+"px",top:e+"px"}):c(a,{left:Math.min(Math.round(b.x+h-(a.offsetWidth-b.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:e-(a.offsetHeight-b.height)/2+"px"})}};b.prototype.hideInput=function(a){(a="min"===a?this.minInput:this.maxInput)&&c(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};b.prototype.defaultInputDateParser=function(a,b,c){var e=a.split("/").join("-").split(" ").join("T");
-1===e.indexOf("T")&&(e+="T00:00");if(b)e+="Z";else{var d;if(d=A.isSafari)d=e,d=!(6<d.length&&(d.lastIndexOf("-")===d.length-6||d.lastIndexOf("+")===d.length-6));d&&(d=(new Date(e)).getTimezoneOffset()/60,e+=0>=d?"+".concat(t(-d),":00"):"-".concat(t(d),":00"))}e=Date.parse(e);g(e)||(a=a.split("-"),e=Date.UTC(v(a[0]),v(a[1])-1,v(a[2])));c&&b&&g(e)&&(e+=c.getTimezoneOffset(e));return e};b.prototype.drawInput=function(a){function b(){var b=m.getInputValue(a),e=d.xAxis[0],c=d.scroller&&d.scroller.xAxis?
d.scroller.xAxis:e,h=c.dataMin;c=c.dataMax;var f=m.maxInput,u=m.minInput;b!==Number(t.getAttribute("data-hc-time-previous"))&&g(b)&&(t.setAttribute("data-hc-time-previous",b),r&&f&&g(h)?b>Number(f.getAttribute("data-hc-time"))?b=void 0:b<h&&(b=h):u&&g(c)&&(b<Number(u.getAttribute("data-hc-time"))?b=void 0:b>c&&(b=c)),"undefined"!==typeof b&&e.setExtremes(r?b:e.min,r?e.max:b,void 0,void 0,{trigger:"rangeSelectorInput"}))}var d=this.chart,e=this.div,h=this.inputGroup,m=this,f=d.renderer.style||{},l=
d.renderer,n=d.options.rangeSelector,r="min"===a,R=y.lang[r?"rangeSelectorFrom":"rangeSelectorTo"]||"";R=l.label(R,0).addClass("highcharts-range-label").attr({padding:R?2:0,height:R?n.inputBoxHeight:0}).add(h);l=l.label("",0).addClass("highcharts-range-input").attr({padding:2,width:n.inputBoxWidth,height:n.inputBoxHeight,"text-align":"center"}).on("click",function(){m.showInput(a);m[a+"Input"].focus()});d.styledMode||l.attr({stroke:n.inputBoxBorderColor,"stroke-width":1});l.add(h);var t=q("input",
{name:a,className:"highcharts-range-selector"},void 0,e);t.setAttribute("type",p(n.inputDateFormat||"%b %e, %Y"));d.styledMode||(R.css(E(f,n.labelStyle)),l.css(E({color:"#333333"},f,n.inputStyle)),c(t,k({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:f.fontSize,fontFamily:f.fontFamily,top:"-9999em"},n.inputStyle)));t.onfocus=function(){m.showInput(a)};t.onblur=function(){t===A.doc.activeElement&&b();m.hideInput(a);m.setInputValue(a);
t.blur()};var v=!1;t.onchange=function(){v||(b(),m.hideInput(a),t.blur())};t.onkeypress=function(a){13===a.keyCode&&b()};t.onkeydown=function(a){v=!0;38!==a.keyCode&&40!==a.keyCode||b()};t.onkeyup=function(){v=!1};return{dateBox:l,input:t,label:R}};b.prototype.getPosition=function(){var a=this.chart,b=a.options.rangeSelector;a="top"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}};b.prototype.getYTDExtremes=function(a,b,c){var e=
this.chart.time,d=new e.Date(a),m=e.get("FullYear",d);c=c?e.Date.UTC(m,0,1):+new e.Date(m,0,1);b=Math.max(b,c);d=d.getTime();return{max:Math.min(a||d,d),min:b}};b.prototype.render=function(a,b){var c=this.chart,e=c.renderer,d=c.container,m=c.options,f=m.rangeSelector,g=n(m.chart.style&&m.chart.style.zIndex,0)+1;m=f.inputEnabled;if(!1!==f.enabled){this.rendered||(this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=q("div",void 0,{position:"relative",height:0,zIndex:g}),this.buttonOptions.length&&
this.renderButtons(),d.parentNode&&d.parentNode.insertBefore(this.div,d),m&&(this.inputGroup=e.g("input-group").add(this.group),e=this.drawInput("min"),this.minDateBox=e.dateBox,this.minLabel=e.label,this.minInput=e.input,e=this.drawInput("max"),this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input));if(m&&(this.setInputValue("min",a),this.setInputValue("max",b),a=c.scroller&&c.scroller.getUnionExtremes()||c.xAxis[0]||{},D(a.dataMin)&&D(a.dataMax)&&(c=c.xAxis[0].minRange||0,this.setInputExtremes("min",
a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-c),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+c,a.dataMax)),this.inputGroup)){var k=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b=a.getBBox().width;b&&(a.attr({x:k}),k+=b+f.inputSpacing)}})}this.alignElements();this.rendered=!0}};b.prototype.renderButtons=function(){var a=this,b=this.buttons,c=this.options,e=y.lang,h=this.chart.renderer,u=E(c.buttonTheme),g=u&&u.states,
k=u.width||28;delete u.width;delete u.states;this.buttonGroup=h.g("range-selector-buttons").add(this.group);var l=this.dropdown=q("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);f(l,"touchstart",function(){l.style.fontSize="16px"});[[A.isMS?"mouseover":"mouseenter"],[A.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(e){var c=e[0],h=e[1];f(l,c,function(){var e=b[a.currentButtonIndex()];e&&d(e.element,
h||c)})});this.zoomText=h.label(e&&e.rangeSelectorZoom||"",0).attr({padding:c.buttonTheme.padding,height:c.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(c.labelStyle),u["stroke-width"]=n(u["stroke-width"],0));q("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,l);this.buttonOptions.forEach(function(e,c){q("option",{textContent:e.title||e.text},void 0,l);b[c]=h.button(e.text,0,0,function(b){var d=e.events&&e.events.click,
h;d&&(h=d.call(e,b));!1!==h&&a.clickButton(c);a.isActive=!0},u,g&&g.hover,g&&g.select,g&&g.disabled).attr({"text-align":"center",width:k}).add(a.buttonGroup);e.title&&b[c].attr("title",e.title)})};b.prototype.alignElements=function(){var a=this,b=this.buttonGroup,c=this.buttons,e=this.chart,d=this.group,f=this.inputGroup,g=this.options,k=this.zoomText,l=e.options,q=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions;l=g.buttonPosition;var p=g.inputPosition,t=g.verticalAlign,
r=function(b,c){return q&&a.titleCollision(e)&&"top"===t&&"right"===c.align&&c.y-b.getBBox().height-12<(q.y||0)+(q.height||0)+e.spacing[0]?-40:0},v=e.plotLeft;if(d&&l&&p){var x=l.x-e.spacing[3];if(b){this.positionButtons();if(!this.initialButtonGroupWidth){var F=0;k&&(F+=k.getBBox().width+5);c.forEach(function(a,b){F+=a.width;b!==c.length-1&&(F+=g.buttonSpacing)});this.initialButtonGroupWidth=F}v-=e.spacing[3];this.updateButtonStates();k=r(b,l);this.alignButtonGroup(k);d.placed=b.placed=e.hasLoaded}b=
0;f&&(b=r(f,p),"left"===p.align?x=v:"right"===p.align&&(x=-Math.max(e.axisOffset[1],-b)),f.align({y:p.y,width:f.getBBox().width,align:p.align,x:p.x+x-2},!0,e.spacingBox),f.placed=e.hasLoaded);this.handleCollision(b);d.align({verticalAlign:t},!0,e.spacingBox);f=d.alignAttr.translateY;b=d.getBBox().height+20;r=0;"bottom"===t&&(r=(r=e.legend&&e.legend.options)&&"bottom"===r.verticalAlign&&r.enabled&&!r.floating?e.legend.legendHeight+n(r.margin,10):0,b=b+r-20,r=f-b-(g.floating?0:g.y)-(e.titleOffset?e.titleOffset[2]:
0)-10);if("top"===t)g.floating&&(r=0),e.titleOffset&&e.titleOffset[0]&&(r=e.titleOffset[0]),r+=e.margin[0]-e.spacing[0]||0;else if("middle"===t)if(p.y===l.y)r=f;else if(p.y||l.y)r=0>p.y||0>l.y?r-Math.min(p.y,l.y):f-b;d.translate(g.x,g.y+Math.floor(r));l=this.minInput;p=this.maxInput;f=this.dropdown;g.inputEnabled&&l&&p&&(l.style.marginTop=d.translateY+"px",p.style.marginTop=d.translateY+"px");f&&(f.style.marginTop=d.translateY+"px")}};b.prototype.alignButtonGroup=function(a,b){var c=this.chart,e=
this.buttonGroup,d=this.options.buttonPosition,f=c.plotLeft-c.spacing[3],m=d.x-c.spacing[3];"right"===d.align?m+=a-f:"center"===d.align&&(m-=f/2);e&&e.align({y:d.y,width:n(b,this.initialButtonGroupWidth),align:d.align,x:m},!0,c.spacingBox)};b.prototype.positionButtons=function(){var a=this.buttons,b=this.chart,c=this.options,e=this.zoomText,d=b.hasLoaded?"animate":"attr",f=c.buttonPosition,g=b.plotLeft,k=g;e&&"hidden"!==e.visibility&&(e[d]({x:n(g+f.x,g)}),k+=f.x+e.getBBox().width+5);this.buttonOptions.forEach(function(b,
e){if("hidden"!==a[e].visibility)a[e][d]({x:k}),k+=a[e].width+c.buttonSpacing;else a[e][d]({x:g})})};b.prototype.handleCollision=function(a){var b=this,c=this.chart,e=this.buttonGroup,d=this.inputGroup,f=this.options,m=f.buttonPosition,g=f.dropdown,k=f.inputPosition;f=function(){var a=0;b.buttons.forEach(function(b){b=b.getBBox();b.width>a&&(a=b.width)});return a};var l=function(b){if(d&&e){var c=d.alignAttr.translateX+d.alignOptions.x-a+d.getBBox().x+2,h=d.alignOptions.width,f=e.alignAttr.translateX+
e.getBBox().x;return f+b>c&&c+h>f&&m.y<k.y+d.getBBox().height}return!1},n=function(){d&&e&&d.attr({translateX:d.alignAttr.translateX+(c.axisOffset[1]>=-a?0:-a),translateY:d.alignAttr.translateY+e.getBBox().height+10})};if(e){if("always"===g){this.collapseButtons(a);l(f())&&n();return}"never"===g&&this.expandButtons()}d&&e?k.align===m.align||l(this.initialButtonGroupWidth+20)?"responsive"===g?(this.collapseButtons(a),l(f())&&n()):n():"responsive"===g&&this.expandButtons():e&&"responsive"===g&&(this.initialButtonGroupWidth>
c.plotWidth?this.collapseButtons(a):this.expandButtons())};b.prototype.collapseButtons=function(a){var b=this.buttons,c=this.buttonOptions,e=this.chart,d=this.dropdown,f=this.options,m=this.zoomText,g=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},k=function(a){return{text:a?""+a+" \u25be":"\u25be",width:"auto",paddingLeft:n(f.buttonTheme.paddingLeft,g.padding,8),paddingRight:n(f.buttonTheme.paddingRight,g.padding,8)}};m&&m.hide();var l=!1;c.forEach(function(a,e){e=b[e];
2!==e.state?e.hide():(e.show(),e.attr(k(a.text)),l=!0)});l||(d&&(d.selectedIndex=0),b[0].show(),b[0].attr(k(this.zoomText&&this.zoomText.textStr)));c=f.buttonPosition.align;this.positionButtons();"right"!==c&&"center"!==c||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()};b.prototype.expandButtons=function(){var a=this.buttons,b=this.buttonOptions,c=this.options,e=this.zoomText;this.hideDropdown();e&&e.show();b.forEach(function(b,e){e=a[e];e.show();e.attr({text:b.text,
width:c.buttonTheme.width||28,paddingLeft:n(c.buttonTheme.paddingLeft,"unset"),paddingRight:n(c.buttonTheme.paddingRight,"unset")});2>e.state&&e.setState(0)});this.positionButtons()};b.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0<a.selectedIndex?a.selectedIndex-1:0};b.prototype.showDropdown=function(){var a=this.buttonGroup,b=this.buttons,d=this.chart,e=this.dropdown;if(a&&e){var h=a.translateX;a=a.translateY;b=b[this.currentButtonIndex()].getBBox();c(e,{left:d.plotLeft+
h+"px",top:a+.5+"px",width:b.width+"px",height:b.height+"px"});this.hasVisibleDropdown=!0}};b.prototype.hideDropdown=function(){var a=this.dropdown;a&&(c(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};b.prototype.getHeight=function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,d=a.inputPosition.y;if(a.height)return a.height;this.alignElements();a=b?b.getBBox(!0).height+13+c:0;b=Math.min(d,e);if(0>d&&0>e||0<d&&0<e)a+=Math.abs(b);return a};b.prototype.titleCollision=
function(a){return!(a.options.title.text||a.options.subtitle.text)};b.prototype.update=function(a){var b=this.chart;E(!0,b.options.rangeSelector,a);this.destroy();this.init(b);this.render()};b.prototype.destroy=function(){var a=this,c=a.minInput,d=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(a){return a()}),a.eventsToUnbind=void 0);B(a.buttons);c&&(c.onfocus=c.onblur=c.onchange=null);d&&(d.onfocus=d.onblur=d.onchange=null);K(a,function(e,c){e&&"chart"!==c&&(e instanceof G?e.destroy():
e instanceof window.HTMLElement&&I(e));e!==b.prototype[c]&&(a[c]=null)},this)};return b}();N.prototype.defaultButtons=[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}];N.prototype.inputTypeFormats={"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",
time:"%H:%M:%S"};a.prototype.minFromRange=function(){var a=this.range,b=a.type,c=this.max,d=this.chart.time,e=function(a,e){var c="year"===b?"FullYear":"Month",h=new d.Date(a),f=d.get(c,h);d.set(c,h,f+e);f===d.get(c,h)&&d.set("Date",h,0);return h.getTime()-a};if(g(a)){var h=c-a;var f=a}else a&&(h=c+e(c,-(a.count||1)),this.chart&&(this.chart.fixedRange=c-h));var k=n(this.dataMin,Number.MIN_VALUE);g(h)||(h=k);h<=k&&(h=k,"undefined"===typeof f&&(f=e(h,a.count)),this.newMax=Math.min(h+f,n(this.dataMax,
Number.MAX_VALUE)));g(c)?!g(a)&&a&&a._offsetMin&&(h+=a._offsetMin):h=void 0;return h};if(!A.RangeSelector){var M=[],H=function(a){function c(){k&&(d=a.xAxis[0].getExtremes(),e=a.legend,l=k&&k.options.verticalAlign,g(d.min)&&k.render(d.min,d.max),e.display&&"top"===l&&l===e.options.verticalAlign&&(h=E(a.spacingBox),h.y="vertical"===e.options.layout?a.plotTop:h.y+k.getHeight(),e.group.placed=!1,e.align(h)))}var d,k=a.rangeSelector,e,h,l;k&&(b(M,function(b){return b[0]===a})||M.push([a,[f(a.xAxis[0],
"afterSetExtremes",function(a){k&&k.render(a.min,a.max)}),f(a,"redraw",c)]]),c())};f(x,"afterGetContainer",function(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new N(this))});f(x,"beforeRender",function(){var a=this.axes,b=this.rangeSelector;b&&(g(b.deferredYTDClick)&&(b.clickButton(b.deferredYTDClick),delete b.deferredYTDClick),a.forEach(function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),b.render(),a=b.options.verticalAlign,b.options.floating||
("bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0)))});f(x,"update",function(a){var b=a.options.rangeSelector;a=this.rangeSelector;var c=this.extraBottomMargin,d=this.extraTopMargin;b&&b.enabled&&!D(a)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=a=new N(this));this.extraTopMargin=this.extraBottomMargin=!1;a&&(H(this),b=b&&b.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||("bottom"===b?this.extraBottomMargin=
!0:"middle"!==b&&(this.extraTopMargin=!0)),this.extraBottomMargin!==c||this.extraTopMargin!==d)&&(this.isDirtyBox=!0)});f(x,"render",function(){var a=this.rangeSelector;a&&!a.options.floating&&(a.render(),a=a.options.verticalAlign,"bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))});f(x,"getMargins",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});x.prototype.callbacks.push(H);
f(x,"destroy",function(){for(var a=0;a<M.length;a++){var b=M[a];if(b[0]===this){b[1].forEach(function(a){return a()});M.splice(a,1);break}}});A.RangeSelector=N}return N});G(a,"Core/Axis/NavigatorAxis.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,x){var A=a.isTouchDevice,r=x.addEvent,E=x.correctFloat,l=x.defined,p=x.isNumber,y=x.pick,f=function(){function a(a){this.axis=a}a.prototype.destroy=function(){this.axis=void 0};a.prototype.toFixedRange=function(a,f,q,r){var c=this.axis,b=c.chart;
b=b&&b.fixedRange;var d=(c.pointRange||0)/2;a=y(q,c.translate(a,!0,!c.horiz));f=y(r,c.translate(f,!0,!c.horiz));c=b&&(f-a)/b;l(q)||(a=E(a+d));l(r)||(f=E(f-d));.7<c&&1.3>c&&(r?a=f-b:f=a+b);p(a)&&p(f)||(a=f=void 0);return{min:a,max:f}};return a}();return function(){function a(){}a.compose=function(a){a.keepProps.push("navigatorAxis");r(a,"init",function(){this.navigatorAxis||(this.navigatorAxis=new f(this))});r(a,"zoom",function(a){var c=this.chart.options,f=c.navigator,k=this.navigatorAxis,b=c.chart.zooming.pinchType,
d=c.rangeSelector;c=c.chart.zooming.type;this.isXAxis&&(f&&f.enabled||d&&d.enabled)&&("y"===c?a.zoomed=!1:(!A&&"xy"===c||A&&"xy"===b)&&this.options.range&&(f=k.previousZoom,l(a.newMin)?k.previousZoom=[this.min,this.max]:f&&(a.newMin=f[0],a.newMax=f[1],k.previousZoom=void 0)));"undefined"!==typeof a.zoomed&&a.preventDefault()})};a.AdditionsClass=f;return a}()});G(a,"Core/Navigator.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Axis/NavigatorAxis.js"],
a["Core/DefaultOptions.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Scrollbar.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,x,A,r,G,l,p,y,f,q,c){A=A.parse;var D=r.hasTouch,B=r.isTouchDevice,E=l.defaultOptions,k=c.addEvent,b=c.clamp,d=c.correctFloat,g=c.defined,P=c.destroyObjectProperties,K=c.erase,t=c.extend,n=c.find,v=c.isArray,J=c.isNumber,N=c.merge,M=c.pick,H=c.removeEvent,F=c.splat,m=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-
1]=arguments[c];b=[].filter.call(b,J);if(b.length)return Math[a].apply(0,b)};l="undefined"===typeof q.seriesTypes.areaspline?"line":"areaspline";t(E,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:A("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:l,fillOpacity:.05,lineWidth:1,compare:null,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:{overscroll:0,className:"highcharts-navigator-xaxis",
tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});p.getRendererType().prototype.symbols["navigator-handle"]=function(a,b,c,d,f){a=(f&&f.width||0)/2;b=Math.round(a/3)+.5;f=f&&f.height||0;return[["M",
-a-1,.5],["L",a,.5],["L",a,f+.5],["L",-a-1,f+.5],["L",-a-1,.5],["M",-b,4],["L",-b,f-3],["M",b-1,4],["L",b-1,f-3]]};var z=function(){function c(a){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0;this.init(a)}c.prototype.drawHandle=
function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})};c.prototype.drawOutline=function(a,b,c,d){var e=this.navigatorOptions.maskInside,h=this.outline.strokeWidth(),f=h/2,g=h%2/2;h=this.outlineHeight;var k=this.scrollbarHeight||0,l=this.size,m=this.left-k,u=this.top;c?
(m-=f,c=u+b+g,b=u+a+g,g=[["M",m+h,u-k-g],["L",m+h,c],["L",m,c],["L",m,b],["L",m+h,b],["L",m+h,u+l+k]],e&&g.push(["M",m+h,c-f],["L",m+h,b+f])):(a+=m+k-g,b+=m+k-g,u+=f,g=[["M",m,u],["L",a,u],["L",a,u+h],["L",b,u+h],["L",b,u],["L",m+l+2*k,u]],e&&g.push(["M",a-f,u],["L",b+f,u]));this.outline[d]({d:g})};c.prototype.drawMasks=function(a,b,c,d){var e=this.left,h=this.top,f=this.height;if(c){var g=[e,e,e];var k=[h,h+a,h+b];var l=[f,f,f];var m=[a,b-a,this.size-b]}else g=[e,e+a,e+b],k=[h,h,h],l=[a,b-a,this.size-
b],m=[f,f,f];this.shades.forEach(function(a,b){a[d]({x:g[b],y:k[b],width:l[b],height:m[b]})})};c.prototype.renderElements=function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,f=d.renderer,g,k={cursor:d.inverted?"ns-resize":"ew-resize"};a.navigatorGroup=g=f.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!c,c,!c].forEach(function(c,e){var h=f.rect().addClass("highcharts-navigator-mask"+(1===e?"-inside":"-outside")).add(g);d.styledMode||(h.attr({fill:c?b.maskFill:"rgba(0,0,0,0)"}),
1===e&&h.css(k));a.shades[e]=h});a.outline=f.path().addClass("highcharts-navigator-outline").add(g);d.styledMode||a.outline.attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor});b.handles.enabled&&[0,1].forEach(function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][c]).add(g);if(!d.styledMode){var e=
b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,"stroke-width":e.lineWidth}).css(k)}})};c.prototype.update=function(a){(this.series||[]).forEach(function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();N(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)};c.prototype.render=function(a,c,f,k){var e=this.chart,h=this.scrollbarHeight,l,m=this.xAxis,u=m.pointRange||0;var n=m.navigatorAxis.fake?e.xAxis[0]:m;var p=this.navigatorEnabled,q,
r=this.rendered;var t=e.inverted;var w=e.xAxis[0].minRange,v=e.xAxis[0].options.maxRange;if(!this.hasDragged||g(f)){a=d(a-u/2);c=d(c+u/2);if(!J(a)||!J(c))if(r)f=0,k=M(m.width,n.width);else return;this.left=M(m.left,e.plotLeft+h+(t?e.plotWidth:0));this.size=q=l=M(m.len,(t?e.plotHeight:e.plotWidth)-2*h);e=t?h:l+2*h;f=M(f,m.toPixels(a,!0));k=M(k,m.toPixels(c,!0));J(f)&&Infinity!==Math.abs(f)||(f=0,k=e);a=m.toValue(f,!0);c=m.toValue(k,!0);var C=Math.abs(d(c-a));C<w?this.grabbedLeft?f=m.toPixels(c-w-u,
!0):this.grabbedRight&&(k=m.toPixels(a+w+u,!0)):g(v)&&d(C-u)>v&&(this.grabbedLeft?f=m.toPixels(c-v-u,!0):this.grabbedRight&&(k=m.toPixels(a+v+u,!0)));this.zoomedMax=b(Math.max(f,k),0,q);this.zoomedMin=b(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(f,k),0,q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);f=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:"inherit"}),r=r&&!this.hasDragged?"animate":"attr",this.drawMasks(f,q,t,r),this.drawOutline(f,
q,t,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(f,0,t,r),this.drawHandle(q,1,t,r)));this.scrollbar&&(t?(t=this.top-h,n=this.left-h+(p||!n.opposite?0:(n.titleOffset||0)+n.axisTitleMargin),h=l+2*h):(t=this.top+(p?this.height:-h),n=this.left-h),this.scrollbar.position(n,t,e,h),this.scrollbar.setRange(this.zoomedMin/(l||1),this.zoomedMax/(l||1)));this.rendered=!0}};c.prototype.addMouseEvents=function(){var a=this,b=a.chart,c=b.container,d=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};
a.mouseUpHandler=g=function(b){a.onMouseUp(b)};d=a.getPartsEvents("mousedown");d.push(k(b.renderTo,"mousemove",f),k(c.ownerDocument,"mouseup",g));D&&(d.push(k(b.renderTo,"touchmove",f),k(c.ownerDocument,"touchend",g)),d.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=d;a.series&&a.series[0]&&d.push(k(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))};c.prototype.getPartsEvents=function(a){var b=this,c=[];["shades","handles"].forEach(function(e){b[e].forEach(function(d,
h){c.push(k(d.element,a,function(a){b[e+"Mousedown"](a,h)}))})});return c};c.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,e=this.xAxis,d=this.zoomedMin,h=this.left,f=this.size,k=this.range,l=a.chartX;c.inverted&&(l=a.chartY,h=this.top);if(1===b)this.grabbedCenter=l,this.fixedWidth=k,this.dragOffset=l-d;else{a=l-h-k/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+k>=f)if(a=f-k,this.reversedExtremes){a-=k;var m=this.getUnionExtremes().dataMin}else var n=this.getUnionExtremes().dataMax;
a!==d&&(this.fixedWidth=k,b=e.navigatorAxis.toFixedRange(a,a+k,m,n),g(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};c.prototype.handlesMousedown=function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],e=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=e?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=e?c.max:c.min);a.fixedRange=
null};c.prototype.onMouseMove=function(a){var b=this,c=b.chart,e=b.left,d=b.navigatorSize,f=b.range,g=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(e=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-e,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-e)):b.grabbedCenter&&(b.hasDragged=!0,c<g?c=g:c>d+g-f&&(c=d+g-f),b.render(0,0,c-g,c-g+f)),b.hasDragged&&b.scrollbar&&M(b.scrollbar.options.liveRedraw,
r.svg&&!B&&!this.chart.boosted)&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))};c.prototype.onMouseUp=function(a){var b=this.chart,c=this.xAxis,d=this.scrollbar,e=a.DOMEvent||a,f=b.inverted,k=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!d||!d.hasDragged)||"scrollbar"===a.trigger){d=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var l=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var m=this.fixedExtreme;this.zoomedMax===this.size&&
(m=this.reversedExtremes?d.dataMin:d.dataMax);0===this.zoomedMin&&(l=this.reversedExtremes?d.dataMax:d.dataMin);c=c.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,l,m);g(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:e})}"mousemove"!==a.DOMType&&"touchmove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=
this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&J(this.zoomedMin)&&J(this.zoomedMax)&&(b=Math.round(this.zoomedMin),a=Math.round(this.zoomedMax),this.shades&&this.drawMasks(b,a,f,k),this.outline&&this.drawOutline(b,a,f,k),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(b,0,f,k),this.drawHandle(a,1,f,k)))};c.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=
void 0);this.removeBaseSeriesEvents()};c.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){H(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&H(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};c.prototype.init=function(b){var c=b.options,d=c.navigator,e=d.enabled,f=c.scrollbar,g=f.enabled;c=e?d.height:0;var l=g?f.height:0;this.handles=[];this.shades=[];this.chart=
b;this.setBaseSeries();this.height=c;this.scrollbarHeight=l;this.scrollbarEnabled=g;this.navigatorEnabled=e;this.navigatorOptions=d;this.scrollbarOptions=f;this.outlineHeight=c+l;this.opposite=M(d.opposite,!(e||!b.inverted));var n=this;e=n.baseSeries;f=b.xAxis.length;g=b.yAxis.length;var p=e&&e[0]&&e[0].xAxis||b.xAxis[0]||{options:{}};b.isDirtyBox=!0;n.navigatorEnabled?(n.xAxis=new a(b,N({breaks:p.options.breaks,ordinal:p.options.ordinal},d.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,
type:"datetime",index:f,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},b.inverted?{offsets:[l,0,-l,0],width:c}:{offsets:[0,-l,0,l],height:c})),n.yAxis=new a(b,N(d.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:g,isInternal:!0,reversed:M(d.yAxis&&d.yAxis.reversed,b.yAxis[0]&&b.yAxis[0].reversed,!1),zoomEnabled:!1},b.inverted?{width:c}:{height:c})),e||d.series.data?n.updateNavigatorSeries(!1):0===b.series.length&&(n.unbindRedraw=
k(b,"beforeRedraw",function(){0<b.series.length&&!n.series&&(n.setBaseSeries(),n.unbindRedraw())})),n.reversedExtremes=b.inverted&&!n.xAxis.reversed||!b.inverted&&n.xAxis.reversed,n.renderElements(),n.addMouseEvents()):(n.xAxis={chart:b,navigatorAxis:{fake:!0},translate:function(a,c){var d=b.xAxis[0],e=d.getExtremes(),f=d.len-2*l,h=m("min",d.options.min,e.dataMin);d=m("max",d.options.max,e.dataMax)-h;return c?a*d/f+h:f*(a-h)/d},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,
!0)}},n.xAxis.navigatorAxis.axis=n.xAxis,n.xAxis.navigatorAxis.toFixedRange=G.AdditionsClass.prototype.toFixedRange.bind(n.xAxis.navigatorAxis));b.options.scrollbar.enabled&&(b.scrollbar=n.scrollbar=new y(b.renderer,N(b.options.scrollbar,{margin:n.navigatorEnabled?0:10,vertical:b.inverted}),b),k(n.scrollbar,"changed",function(a){var b=n.size,c=b*this.to;b*=this.from;n.hasDragged=n.scrollbar.hasDragged;n.render(0,0,b,c);this.shouldUpdateExtremes(a.DOMType)&&setTimeout(function(){n.onMouseUp(a)})}));
n.addBaseSeriesEvents();n.addChartEvents()};c.prototype.getUnionExtremes=function(a){var b=this.chart.xAxis[0],c=this.xAxis,d=c.options,e=b.options,f;a&&null===b.dataMin||(f={dataMin:M(d&&d.min,m("min",e.min,b.dataMin,c.dataMin,c.min)),dataMax:M(d&&d.max,m("max",e.max,b.dataMax,c.dataMax,c.max))});return f};c.prototype.setBaseSeries=function(a,b){var c=this.chart,d=this.baseSeries=[];a=a||c.options&&c.options.navigator.baseSeries||(c.series.length?n(c.series,function(a){return!a.options.isInternal}).index:
0);(c.series||[]).forEach(function(b,c){b.options.isInternal||!b.options.showInNavigator&&(c!==a&&b.options.id!==a||!1===b.options.showInNavigator)||d.push(b)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,b)};c.prototype.updateNavigatorSeries=function(a,b){var c=this,d=c.chart,e=c.baseSeries,f,h,g=c.navigatorOptions.series,k,l={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,
isInternal:!0,states:{inactive:{opacity:1}}},m=c.series=(c.series||[]).filter(function(a){var b=a.baseSeries;return 0>e.indexOf(b)?(b&&(H(b,"updatedData",c.updatedDataHandler),delete b.navigatorSeries),a.chart&&a.destroy(),!1):!0});e&&e.length&&e.forEach(function(a){var n=a.navigatorSeries,p=t({color:a.color,visible:a.visible},v(g)?E.navigator.series:g);n&&!1===c.navigatorOptions.adaptToUpdatedData||(l.name="Navigator "+e.length,f=a.options||{},k=f.navigatorOptions||{},p.dataLabels=F(p.dataLabels),
h=N(f,l,p,k),h.pointRange=M(p.pointRange,k.pointRange,E.plotOptions[h.type||"line"].pointRange),p=k.data||p.data,c.hasNavigatorData=c.hasNavigatorData||!!p,h.data=p||f.data&&f.data.slice(0),n&&n.options?n.update(h,b):(a.navigatorSeries=d.initSeries(h),a.navigatorSeries.baseSeries=a,m.push(a.navigatorSeries)))});if(g.data&&(!e||!e.length)||v(g))c.hasNavigatorData=!1,g=F(g),g.forEach(function(a,b){l.name="Navigator "+(m.length+1);h=N(E.navigator.series,{color:d.series[b]&&!d.series[b].options.isInternal&&
d.series[b].color||d.options.colors[b]||d.options.colors[0]},l,a);h.data=a.data;h.data&&(c.hasNavigatorData=!0,m.push(d.initSeries(h)))});a&&this.addBaseSeriesEvents()};c.prototype.addBaseSeriesEvents=function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&b[0].eventsToUnbind.push(k(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));b.forEach(function(b){b.eventsToUnbind.push(k(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}));b.eventsToUnbind.push(k(b,"hide",
function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}));!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&b.eventsToUnbind.push(k(b,"updatedData",this.updatedDataHandler));b.eventsToUnbind.push(k(b,"remove",function(){this.navigatorSeries&&(K(a.series,this.navigatorSeries),g(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))},this)};c.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,b){return Math.min(a,
b.xData&&b.xData.length?b.xData[0]:a)},a)};c.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))};c.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,d=b.dataMax;b=b.max-b.min;var f=a.stickToMin,g=a.stickToMax,k=M(this.options.overscroll,0),l=a.series&&a.series[0],m=!!this.setExtremes;if(!this.eventArgs||
"rangeSelectorButton"!==this.eventArgs.trigger){if(f){var n=c;var p=n+b}g&&(p=d+k,f||(n=Math.max(c,p-b,a.getBaseSeriesMin(l&&l.xData?l.xData[0]:-Number.MAX_VALUE))));m&&(f||g)&&J(n)&&(this.min=this.userMin=n,this.max=this.userMax=p)}a.stickToMin=a.stickToMax=null};c.prototype.updatedDataHandler=function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=M(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=
Math.round(a.size));a.stickToMin=a.shouldStickToMin(this,a);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))};c.prototype.shouldStickToMin=function(a,b){b=b.getBaseSeriesMin(a.xData[0]);var c=a.xAxis;a=c.max;var d=c.min;c=c.options.range;return J(a)&&J(d)?c&&0<a-b?a-b<c:d<=b:!1};c.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(k(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&
a.baseSeries[0]&&a.baseSeries[0].xAxis||this.xAxis[0]);b&&a.render(b.min,b.max)}),k(this.chart,"getMargins",function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?"marginRight":"plotLeft");this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};c.prototype.destroy=function(){this.removeEvents();this.xAxis&&(K(this.chart.xAxis,this.xAxis),K(this.chart.axes,this.xAxis));this.yAxis&&(K(this.chart.yAxis,this.yAxis),
K(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&a.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){P(a)},this)};return c}();r.Navigator||(r.Navigator=z,G.compose(a),k(x,"beforeShowResetZoom",function(){var a=this.options,b=a.navigator,c=a.rangeSelector;if((b&&
b.enabled||c&&c.enabled)&&(!B&&"x"===a.chart.zooming.type||B&&"x"===a.chart.zooming.pinchType))return!1}),k(x,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new z(this)}),k(x,"afterSetChartSize",function(){var a=this.legend,b=this.navigator;if(b){var c=a&&a.options;var d=b.xAxis;var f=b.yAxis;var g=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-g-b.height:this.spacing[3]+g,b.top=this.plotTop+g):(b.left=M(d.left,
this.plotLeft+g),b.top=b.navigatorOptions.top||this.chartHeight-b.height-g-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(c&&"bottom"===c.verticalAlign&&"proximate"!==c.layout&&c.enabled&&!c.floating?a.legendHeight+M(c.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));d&&f&&(this.inverted?d.options.left=f.options.left=b.left:d.options.top=f.options.top=b.top,d.setAxisSize(),f.setAxisSize())}}),k(x,"update",function(a){var b=a.options.navigator||
{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(N(!0,this.options.navigator,b),N(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)}),k(x,"afterUpdate",function(a){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new z(this),M(a.redraw,!0)&&this.redraw(a.animation))}),k(x,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),
k(f,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}),x.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))}));r.Navigator=z;return r.Navigator});G(a,"masters/modules/gantt.src.js",[a["Core/Globals.js"],a["Series/XRange/XRangeSeries.js"],a["Core/Chart/GanttChart.js"],a["Core/Scrollbar.js"]],function(a,x,A,r){a.Scrollbar=r;a.GanttChart=A;a.ganttChart=A.ganttChart;
r.compose(a.Axis);x.compose(a.Axis)})});
//# sourceMappingURL=gantt.js.map