=h?`+${I(-h)}:00`:`-${I(h)}:00`)}d=Date.parse(d);E(d)||(a=a.split("-"),d=Date.UTC(G(a[0]),G(a[1])-1,G(a[2])));c&&b&&E(d)&&(d+=c.getTimezoneOffset(d));return d}drawInput(a){function b(){const {maxInput:b,minInput:d}=f,h=c.xAxis[0];var e=c.scroller&&c.scroller.xAxis?c.scroller.xAxis:h;const p=e.dataMin;e=e.dataMax;let g=f.getInputValue(a);g!==Number(D.getAttribute("data-hc-time-previous"))&&
E(g)&&(D.setAttribute("data-hc-time-previous",g),m&&b&&E(p)?g>Number(b.getAttribute("data-hc-time"))?g=void 0:ge&&(g=e)),"undefined"!==typeof g&&h.setExtremes(m?g:h.min,m?h.max:g,void 0,void 0,{trigger:"rangeSelectorInput"}))}const {chart:c,div:d,inputGroup:h}=this,f=this,w=c.renderer.style||{};var n=c.renderer;const y=c.options.rangeSelector,m="min"===a;var A=z.lang[m?"rangeSelectorFrom":"rangeSelectorTo"]||"";A=n.label(A,0).addClass("highcharts-range-label").attr({padding:A?
2:0,height:A?y.inputBoxHeight:0}).add(h);n=n.label("",0).addClass("highcharts-range-input").attr({padding:2,width:y.inputBoxWidth,height:y.inputBoxHeight,"text-align":"center"}).on("click",function(){f.showInput(a);f[a+"Input"].focus()});c.styledMode||n.attr({stroke:y.inputBoxBorderColor,"stroke-width":1});n.add(h);const D=k("input",{name:a,className:"highcharts-range-selector"},void 0,d);D.setAttribute("type",v(y.inputDateFormat||"%e %b %Y"));c.styledMode||(A.css(B(w,y.labelStyle)),n.css(B({color:"#333333"},
w,y.inputStyle)),g(D,e({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:w.fontSize,fontFamily:w.fontFamily,top:"-9999em"},y.inputStyle)));D.onfocus=()=>{f.showInput(a)};D.onblur=()=>{D===q.doc.activeElement&&b();f.hideInput(a);f.setInputValue(a);D.blur()};let l=!1;D.onchange=()=>{l||(b(),f.hideInput(a),D.blur())};D.onkeypress=a=>{13===a.keyCode&&b()};D.onkeydown=a=>{l=!0;38!==a.keyCode&&40!==a.keyCode||b()};D.onkeyup=
()=>{l=!1};return{dateBox:n,input:D,label:A}}getPosition(){var a=this.chart;const b=a.options.rangeSelector;a="top"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}}getYTDExtremes(a,b,c){const d=this.chart.time;var e=new d.Date(a);const h=d.get("FullYear",e);c=c?d.Date.UTC(h,0,1):+new d.Date(h,0,1);b=Math.max(b,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}}render(b,c){var d=this.chart,e=d.renderer;const h=d.container;var f=
d.options;const g=f.rangeSelector,t=F(f.chart.style&&f.chart.style.zIndex,0)+1;f=g.inputEnabled;if(!1!==g.enabled){this.rendered||(this.group=e.g("range-selector-group").attr({zIndex:7}).add(),this.div=k("div",void 0,{position:"relative",height:0,zIndex:t}),this.buttonOptions.length&&this.renderButtons(),h.parentNode&&h.parentNode.insertBefore(this.div,h),f&&(this.inputGroup=e.g("input-group").add(this.group),e=this.drawInput("min"),this.minDateBox=e.dateBox,this.minLabel=e.label,this.minInput=e.input,
e=this.drawInput("max"),this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input));if(f&&(this.setInputValue("min",b),this.setInputValue("max",c),b=d.scroller&&d.scroller.getUnionExtremes()||d.xAxis[0]||{},a(b.dataMin)&&a(b.dataMax)&&(d=d.xAxis[0].minRange||0,this.setInputExtremes("min",b.dataMin,Math.min(b.dataMax,this.getInputValue("max"))-d),this.setInputExtremes("max",Math.max(b.dataMin,this.getInputValue("min"))+d,b.dataMax)),this.inputGroup)){let a=0;[this.minLabel,this.minDateBox,
this.maxLabel,this.maxDateBox].forEach(b=>{if(b){const {width:c}=b.getBBox();c&&(b.attr({x:a}),a+=c+g.inputSpacing)}})}this.alignElements();this.rendered=!0}}renderButtons(){const {buttons:a,chart:b,options:c}=this,d=z.lang,e=b.renderer,g=B(c.buttonTheme),w=g&&g.states,y=g.width||28;delete g.width;delete g.states;this.buttonGroup=e.g("range-selector-buttons").add(this.group);const m=this.dropdown=k("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",
opacity:.0001},this.div);n(m,"touchstart",()=>{m.style.fontSize="16px"});[[q.isMS?"mouseover":"mouseenter"],[q.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(([b,c])=>{n(m,b,()=>{const d=a[this.currentButtonIndex()];d&&f(d.element,c||b)})});this.zoomText=e.label(d&&d.rangeSelectorZoom||"",0).attr({padding:c.buttonTheme.padding,height:c.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(c.labelStyle),g["stroke-width"]=F(g["stroke-width"],
0));k("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,m);this.buttonOptions.forEach((b,c)=>{k("option",{textContent:b.title||b.text},void 0,m);a[c]=e.button(b.text,0,0,a=>{const d=b.events&&b.events.click;let e;d&&(e=d.call(b,a));!1!==e&&this.clickButton(c);this.isActive=!0},g,w&&w.hover,w&&w.select,w&&w.disabled).attr({"text-align":"center",width:y}).add(this.buttonGroup);b.title&&a[c].attr("title",b.title)})}alignElements(){const {buttonGroup:a,buttons:b,chart:c,group:d,inputGroup:e,
options:f,zoomText:g}=this;var k=c.options;const n=k.exporting&&!1!==k.exporting.enabled&&k.navigation&&k.navigation.buttonOptions,{buttonPosition:y,inputPosition:m,verticalAlign:A}=f;k=(a,b)=>n&&this.titleCollision(c)&&"top"===A&&"right"===b.align&&b.y-a.getBBox().height-12<(n.y||0)+(n.height||0)+c.spacing[0]?-40:0;var q=c.plotLeft;if(d&&y&&m){var l=y.x-c.spacing[3];if(a){this.positionButtons();if(!this.initialButtonGroupWidth){let a=0;g&&(a+=g.getBBox().width+5);b.forEach((c,d)=>{a+=c.width;d!==
b.length-1&&(a+=f.buttonSpacing)});this.initialButtonGroupWidth=a}q-=c.spacing[3];this.updateButtonStates();var r=k(a,y);this.alignButtonGroup(r);d.placed=a.placed=c.hasLoaded}r=0;e&&(r=k(e,m),"left"===m.align?l=q:"right"===m.align&&(l=-Math.max(c.axisOffset[1],-r)),e.align({y:m.y,width:e.getBBox().width,align:m.align,x:m.x+l-2},!0,c.spacingBox),e.placed=c.hasLoaded);this.handleCollision(r);d.align({verticalAlign:A},!0,c.spacingBox);k=d.alignAttr.translateY;q=d.getBBox().height+20;l=0;"bottom"===
A&&(l=(l=c.legend&&c.legend.options)&&"bottom"===l.verticalAlign&&l.enabled&&!l.floating?c.legend.legendHeight+F(l.margin,10):0,q=q+l-20,l=k-q-(f.floating?0:f.y)-(c.titleOffset?c.titleOffset[2]:0)-10);if("top"===A)f.floating&&(l=0),c.titleOffset&&c.titleOffset[0]&&(l=c.titleOffset[0]),l+=c.margin[0]-c.spacing[0]||0;else if("middle"===A)if(m.y===y.y)l=k;else if(m.y||y.y)l=0>m.y||0>y.y?l-Math.min(m.y,y.y):k-q;d.translate(f.x,f.y+Math.floor(l));const {minInput:h,maxInput:p,dropdown:t}=this;f.inputEnabled&&
h&&p&&(h.style.marginTop=d.translateY+"px",p.style.marginTop=d.translateY+"px");t&&(t.style.marginTop=d.translateY+"px")}}alignButtonGroup(a,b){const {chart:c,options:d,buttonGroup:e}=this,{buttonPosition:f}=d,h=c.plotLeft-c.spacing[3];let g=f.x-c.spacing[3];"right"===f.align?g+=a-h:"center"===f.align&&(g-=h/2);e&&e.align({y:f.y,width:F(b,this.initialButtonGroupWidth),align:f.align,x:g},!0,c.spacingBox)}positionButtons(){const {buttons:a,chart:b,options:c,zoomText:d}=this,e=b.hasLoaded?"animate":
"attr",{buttonPosition:f}=c,g=b.plotLeft;let k=g;d&&"hidden"!==d.visibility&&(d[e]({x:F(g+f.x,g)}),k+=f.x+d.getBBox().width+5);for(let b=0,d=this.buttonOptions.length;b{let a=0;this.buttons.forEach(b=>{b=b.getBBox();b.width>a&&(a=b.width)});return a},k=b=>{if(d&&c){const f=
d.alignAttr.translateX+d.alignOptions.x-a+d.getBBox().x+2,g=d.alignOptions.width,k=c.alignAttr.translateX+c.getBBox().x;return k+b>f&&f+g>k&&e.y{d&&c&&d.attr({translateX:d.alignAttr.translateX+(b.axisOffset[1]>=-a?0:-a),translateY:d.alignAttr.translateY+c.getBBox().height+10})};if(c){if("always"===f){this.collapseButtons(a);k(g())&&n();return}"never"===f&&this.expandButtons()}d&&c?h.align===e.align||k(this.initialButtonGroupWidth+20)?"responsive"===f?(this.collapseButtons(a),
k(g())&&n()):n():"responsive"===f&&this.expandButtons():c&&"responsive"===f&&(this.initialButtonGroupWidth>b.plotWidth?this.collapseButtons(a):this.expandButtons())}collapseButtons(a){const {buttons:b,buttonOptions:c,chart:d,dropdown:e,options:f,zoomText:h}=this,g=d.userOptions.rangeSelector&&d.userOptions.rangeSelector.buttonTheme||{},k=a=>({text:a?`${a} \u25be`:"\u25be",width:"auto",paddingLeft:F(f.buttonTheme.paddingLeft,g.padding,8),paddingRight:F(f.buttonTheme.paddingRight,g.padding,8)});h&&
h.hide();let n=!1;c.forEach((a,c)=>{c=b[c];2!==c.state?c.hide():(c.show(),c.attr(k(a.text)),n=!0)});n||(e&&(e.selectedIndex=0),b[0].show(),b[0].attr(k(this.zoomText&&this.zoomText.textStr)));const {align:m}=f.buttonPosition;this.positionButtons();"right"!==m&&"center"!==m||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()}expandButtons(){const {buttons:a,buttonOptions:b,options:c,zoomText:d}=this;this.hideDropdown();d&&d.show();b.forEach((b,d)=>{d=a[d];d.show();
d.attr({text:b.text,width:c.buttonTheme.width||28,paddingLeft:F(c.buttonTheme.paddingLeft,"unset"),paddingRight:F(c.buttonTheme.paddingRight,"unset")});2>d.state&&d.setState(0)});this.positionButtons()}currentButtonIndex(){const {dropdown:a}=this;return a&&0e&&0>d||0a()),a.eventsToUnbind=void 0);c(a.buttons);b&&(b.onfocus=b.onblur=b.onchange=null);e&&(e.onfocus=e.onblur=e.onchange=null);x(a,function(b,c){b&&"chart"!==c&&(b instanceof m?b.destroy():b instanceof window.HTMLElement&&d(b));b!==y.prototype[c]&&(a[c]=null)},this)}}e(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});x(b,"Accessibility/Components/RangeSelectorComponent.js",[b["Stock/RangeSelector/RangeSelector.js"],b["Accessibility/AccessibilityComponent.js"],
b["Accessibility/Utils/ChartUtilities.js"],b["Accessibility/Utils/Announcer.js"],b["Accessibility/KeyboardNavigationHandler.js"],b["Core/Utilities.js"]],function(b,r,q,l,m,u){const {unhideChartElementFromAT:v,getAxisRangeDescription:z}=q,{addEvent:n,attr:k}=u;class g extends r{constructor(){super(...arguments);this.announcer=void 0}init(){this.announcer=new l(this.chart,"polite")}onChartUpdate(){const a=this.chart,b=this,d=a.rangeSelector;d&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),
d.buttons&&d.buttons.length&&d.buttons.forEach(a=>{b.setRangeButtonAttrs(a)}),d.maxInput&&d.minInput&&["minInput","maxInput"].forEach(function(c,f){if(c=d[c])v(a,c),b.setRangeInputAttrs(c,"accessibility.rangeSelector."+(f?"max":"min")+"InputLabel")}))}updateSelectorVisibility(){const a=this.chart,b=a.rangeSelector,d=b&&b.dropdown,e=b&&b.buttons||[];b&&b.hasVisibleDropdown&&d?(v(a,d),e.forEach(a=>a.element.setAttribute("aria-hidden",!0))):(d&&d.setAttribute("aria-hidden",!0),e.forEach(b=>v(a,b.element)))}setDropdownAttrs(){var a=
this.chart;const b=a.rangeSelector&&a.rangeSelector.dropdown;b&&(a=a.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:a.options.lang.rangeSelectorZoom}),b.setAttribute("aria-label",a),b.setAttribute("tabindex",-1))}setRangeButtonAttrs(a){k(a.element,{tabindex:-1,role:"button"})}setRangeInputAttrs(a,b){const c=this.chart;k(a,{tabindex:-1,"aria-label":c.langFormat(b,{chart:c})})}onButtonNavKbdArrowKey(a,b){const c=a.response,e=this.keyCodes,f=this.chart,g=f.options.accessibility.keyboardNavigation.wrapAround;
b=b===e.left||b===e.up?-1:1;return f.highlightRangeSelectorButton(f.highlightedRangeSelectorItemIx+b)?c.success:g?(a.init(b),c.success):c[0e){if(b.accessibility)return b.accessibility.keyboardNavigation.exiting=!0,b.accessibility.keyboardNavigation.tabindexContainer.focus(),b.accessibility.keyboardNavigation.move(a)}else d&&(a=d[e?"maxDateBox":"minDateBox"],d=d[e?"maxInput":"minInput"],a&&d&&b.setFocusToElement(a,d));return!0}onInputNavInit(a){const b=this;var d=this.chart;
const e=0{(a.which||a.keyCode)===this.keyCodes.tab&&b.onInputKbdMove(a.shiftKey?-1:1)&&(a.preventDefault(),a.stopPropagation())};const c=n(a,"keydown",d),k=n(f,"keydown",d);this.removeInputKeydownHandler=()=>{c();k()}}}onInputNavTerminate(){const a=this.chart.rangeSelector||
{};a.maxInput&&a.hideInput("max");a.minInput&&a.hideInput("min");this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)}initDropdownNav(){const a=this.chart,b=a.rangeSelector,d=b&&b.dropdown;b&&d&&(a.setFocusToElement(b.buttonGroup,d),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=n(d,"keydown",b=>{const c=a.accessibility;(b.which||b.keyCode)===this.keyCodes.tab&&(b.preventDefault(),b.stopPropagation(),
c&&(c.keyboardNavigation.tabindexContainer.focus(),c.keyboardNavigation.move(b.shiftKey?-1:1)))}))}getRangeSelectorButtonNavigation(){const a=this.chart,b=this.keyCodes,d=this;return new m(a,{keyCodeMap:[[[b.left,b.right,b.up,b.down],function(a){return d.onButtonNavKbdArrowKey(this,a)}],[[b.enter,b.space],function(){return d.onButtonNavKbdClick(this)}]],validate:function(){return!!(a.rangeSelector&&a.rangeSelector.buttons&&a.rangeSelector.buttons.length)},init:function(b){var c=a.rangeSelector;c&&
c.hasVisibleDropdown?d.initDropdownNav():c&&(c=c.buttons.length-1,a.highlightRangeSelectorButton(0{a.graphic&&(a.graphic[a.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),a.graphic[!1===a.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))})}}function n(a){this.resetA11yMarkerOptions=q(a.options.marker||{},this.userOptions.marker||{})}function k(){var a=this.options,b=!1!==(this.options.accessibility&&
this.options.accessibility.enabled);if(b=this.chart.options.accessibility.enabled&&b)b=this.chart.options.accessibility,b=this.points.length{k(e)||e.points.forEach(f=>{if(v(f.plotY)&&v(f.plotX)&&f!==b){var k=f.plotY-b.plotY,h=Math.abs(f.plotX-b.plotX);h=Math.abs(k)*Math.abs(k)+h*h*4;
e.yAxis&&e.yAxis.reversed&&(k*=-1);!(0>=k&&a||0<=k&&!a||5>h||g(f))&&h!(v(a.plotX)&&v(a.plotY));if(!k(a)){for(;g--;){var h=b.points[g];k(h)||(h=(a.plotX-h.plotX)*(a.plotX-h.plotX)*(c||1)+(a.plotY-h.plotY)*(a.plotY-h.plotY)*(d||1),h{e[a]&&(e[a].prototype.keyboardMoveVertical=!1)}),f.highlightNextValidPoint=q)}})(G||(G={}));return G});x(b,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[b["Accessibility/AccessibilityComponent.js"],b["Accessibility/Utils/ChartUtilities.js"],b["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],b["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],
b["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],b["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"]],function(b,r,q,l,m,u){const {hideSeriesFromAT:v}=r,{describeSeries:z}=m;class n extends b{static compose(b,g,a){l.compose(a);q.compose(a);u.compose(b,g,a)}init(){this.newDataAnnouncer=new l(this.chart);this.newDataAnnouncer.init();this.keyboardNavigation=new u(this.chart,this.keyCodes);this.keyboardNavigation.init();this.hideTooltipFromATWhenShown();this.hideSeriesLabelsFromATWhenShown()}hideTooltipFromATWhenShown(){const b=
this;this.chart.tooltip&&this.addEvent(this.chart.tooltip.constructor,"refresh",function(){this.chart===b.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})}hideSeriesLabelsFromATWhenShown(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(b){b.labelBySeries&&b.labelBySeries.attr("aria-hidden",!0)})})}onChartRender(){this.chart.series.forEach(function(b){!1!==(b.options.accessibility&&b.options.accessibility.enabled)&&
b.visible?z(b):v(b)})}getKeyboardNavigation(){return this.keyboardNavigation.getKeyboardNavigationHandler()}destroy(){this.newDataAnnouncer.destroy();this.keyboardNavigation.destroy()}}return n});x(b,"Accessibility/Components/ZoomComponent.js",[b["Accessibility/AccessibilityComponent.js"],b["Accessibility/Utils/ChartUtilities.js"],b["Accessibility/Utils/HTMLUtilities.js"],b["Accessibility/KeyboardNavigationHandler.js"],b["Core/Utilities.js"]],function(b,r,q,l,m){const {unhideChartElementFromAT:v}=
r,{getFakeMouseEvent:x}=q,{attr:z,pick:n}=m;class k extends b{constructor(){super(...arguments);this.focusedMapNavButtonIx=-1}init(){const b=this,a=this.chart;this.proxyProvider.addGroup("zoom","div");["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(c=>{b.addEvent(a,c,function(){b.updateProxyOverlays()})})}onChartUpdate(){const b=this.chart,a=this;b.mapNavigation&&b.mapNavigation.navButtons.forEach((c,d)=>{v(b,c.element);a.setMapNavButtonAttrs(c.element,"accessibility.zoom.mapZoom"+
(d?"Out":"In"))})}setMapNavButtonAttrs(b,a){const c=this.chart;a=c.langFormat(a,{chart:c});z(b,{tabindex:-1,role:"button","aria-label":a})}onChartRender(){this.updateProxyOverlays()}updateProxyOverlays(){const b=this.chart;this.proxyProvider.clearGroup("zoom");b.resetZoomButton&&this.createZoomProxyButton(b.resetZoomButton,"resetZoomProxyButton",b.langFormat("accessibility.zoom.resetZoomButton",{chart:b}));b.drillUpButton&&b.breadcrumbs&&b.breadcrumbs.list&&this.createZoomProxyButton(b.drillUpButton,
"drillUpProxyButton",b.langFormat("accessibility.drillUpButton",{chart:b,buttonText:b.breadcrumbs.getButtonText(b.breadcrumbs.list[b.breadcrumbs.list.length-1])}))}createZoomProxyButton(b,a,c){this[a]=this.proxyProvider.addProxyElement("zoom",{click:b},{"aria-label":c,tabindex:-1})}getMapZoomNavigation(){const b=this.keyCodes,a=this.chart,c=this;return new l(a,{keyCodeMap:[[[b.up,b.down,b.left,b.right],function(a){return c.onMapKbdArrow(this,a)}],[[b.tab],function(a,b){return c.onMapKbdTab(this,b)}],
[[b.space,b.enter],function(){return c.onMapKbdClick(this)}]],validate:function(){return!!(a.mapView&&a.mapNavigation&&a.mapNavigation.navButtons.length)},init:function(a){return c.onMapNavInit(a)}})}onMapKbdArrow(b,a){var c=this.chart,d=this.keyCodes;const e=c.container;var f=a===d.up||a===d.down;a=(f?c.plotHeight:c.plotWidth)/10*(a===d.left||a===d.up?1:-1);d=10*Math.random();c={x:e.offsetLeft+c.plotLeft+c.plotWidth/2+d,y:e.offsetTop+c.plotTop+c.plotHeight/2+d};f=f?{x:c.x,y:c.y+a}:{x:c.x+a,y:c.y};
[x("mousedown",c),x("mousemove",f),x("mouseup",f)].forEach(a=>e.dispatchEvent(a));return b.response.success}onMapKbdTab(b,a){const c=this.chart;b=b.response;const d=(a=a.shiftKey)&&!this.focusedMapNavButtonIx||!a&&this.focusedMapNavButtonIx;c.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0);if(d)return c.mapView&&c.mapView.zoomBy(),b[a?"prev":"next"];this.focusedMapNavButtonIx+=a?-1:1;a=c.mapNavigation.navButtons[this.focusedMapNavButtonIx];c.setFocusToElement(a.box,a.element);a.setState(2);
return b.success}onMapKbdClick(b){this.fakeClickEvent(this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element);return b.response.success}onMapNavInit(b){const a=this.chart;var c=a.mapNavigation.navButtons[0];const d=a.mapNavigation.navButtons[1];c=0{chartTitle}{headingTagName}>{typeDescription}
{chartSubtitle}
{chartLongdesc}
{playAsSoundButton}
{viewTableButton}
{xAxisDescription}
{yAxisDescription}
{annotationsTitle}{annotationsList}
",
afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#334eff",
lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5E3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}}}});x(b,"Accessibility/Options/LangDefaults.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",
svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{#each additionalAnnotationPoints}, also related to {this}{/each}",descriptionNoPoints:"{annotationText}"},
endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},
table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",
arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",
funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",
defaultSingle:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",columnMultiple:"Bar chart with {numSeries} data series.",
barSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#eq numPoints 1}box{else}boxes{/eq}.",boxplotMultiple:"Boxplot with {numSeries} data series.",
bubbleSingle:"Bubble chart with {numPoints} {#eq numPoints 1}bubbles{else}bubble{/eq}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",
timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{"default":"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",
defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",
splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",
barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",
scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",
bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",
maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}."},
description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{#each annotations}Annotation: {this}{/each}"}}}});x(b,"Accessibility/Options/DeprecatedOptions.js",[b["Core/Utilities.js"]],function(b){function r(b,k,g){let a,c=0;for(;c"series"!==a);return["series"].concat(a)}update(){const a=this.components,b=this.chart;var c=b.options.accessibility;h(b,"beforeA11yUpdate");b.types=this.getChartTypes();c=c.keyboardNavigation.order;
this.proxyProvider.updateGroupOrder(c);this.getComponentOrder().forEach(function(c){a[c].onChartUpdate();h(b,"afterA11yComponentUpdate",{name:c,component:a[c]})});this.keyboardNavigation.update(c);!b.highContrastModeActive&&E.isHighContrastModeActive()&&E.setHighContrastTheme(b);h(b,"afterA11yUpdate",{accessibility:this})}destroy(){const a=this.chart||{},b=this.components;Object.keys(b).forEach(function(a){b[a].destroy();b[a].destroyBase()});this.proxyProvider&&this.proxyProvider.destroy();a.announcerContainer&&
p(a.announcerContainer);this.keyboardNavigation&&this.keyboardNavigation.destroy();a.renderTo&&a.renderTo.setAttribute("aria-hidden",!0);a.focusElement&&a.focusElement.removeFocusBorder()}getChartTypes(){const a={};this.chart.series.forEach(function(b){a[b.type]=1});return Object.keys(a)}}(function(b){function c(){this.accessibility&&this.accessibility.destroy()}function f(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());const a=this.accessibility;a&&!a.zombie&&(a.proxyProvider.updateProxyElementPositions(),
a.getComponentOrder().forEach(function(b){a.components[b].onChartRender()}))}function h(a){if(a=a.options.accessibility)a.customComponents&&(this.options.accessibility.customComponents=a.customComponents,delete a.customComponents),t(!0,this.options.accessibility,a),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility);this.a11yDirty=!0}function l(){let a=this.accessibility;const c=this.options.accessibility;c&&c.enabled?a&&!a.zombie?a.update():(this.accessibility=
a=new b(this),!a.zombie)&&a.update():a?(a.destroy&&a.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function p(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}const r=[];b.i18nFormat=m.i18nFormat;b.compose=function(b,v,t,u,w,y){n.compose(b);a.compose(u);k.compose(b,v);g.compose(b);e.compose(b,t,u);m.compose(b);x.compose(b,w);y&&d.compose(b,y);q.pushUnique(r,b)&&(b.prototype.updateA11yEnabled=l,A(b,"destroy",c),A(b,"render",f),A(b,"update",h),
["addSeries","init"].forEach(a=>{A(b,a,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(a=>{A(b,a,function(){const a=this.accessibility;a&&!a.zombie&&a.update()})}));q.pushUnique(r,t)&&A(t,"update",p);q.pushUnique(r,u)&&["update","updatedData","remove"].forEach(a=>{A(u,a,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})})}})(C||(C={}));t(!0,b,J,{accessibility:{highContrastTheme:B},lang:I});return C});x(b,"masters/modules/accessibility.src.js",[b["Core/Globals.js"],
b["Accessibility/Accessibility.js"],b["Accessibility/AccessibilityComponent.js"],b["Accessibility/Utils/ChartUtilities.js"],b["Accessibility/Utils/HTMLUtilities.js"],b["Accessibility/KeyboardNavigationHandler.js"],b["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(b,r,q,l,m,u,x){b.i18nFormat=r.i18nFormat;b.A11yChartUtilities=l;b.A11yHTMLUtilities=m;b.AccessibilityComponent=q;b.KeyboardNavigationHandler=u;b.SeriesAccessibilityDescriber=x;r.compose(b.Chart,b.Legend,b.Point,b.Series,
b.SVGElement,b.RangeSelector)})});
//# sourceMappingURL=accessibility.js.map