/*
 Highcharts Gantt JS v10.3.1 (2022-10-31)

 Gantt series

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

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