UNPKG

highcharts

Version:
1 lines 134 kB
let e;import*as t from"../highcharts.js";var i,n,s,r,o={};o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);let a=t.default;var l=o.n(a);let{doc:h,win:c}=l(),{css:d}=l(),u=c.EventTarget&&new c.EventTarget||"none";function p(e){if("function"==typeof c.MouseEvent)return new c.MouseEvent(e.type,e);if(h?.createEvent){let t=h.createEvent("MouseEvent");if(t.initMouseEvent)return t.initMouseEvent(e.type,e.bubbles,e.cancelable,e.view||c,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),t}return g(e.type)}function g(e,t,i){let n=t||{x:0,y:0};if("function"==typeof c.MouseEvent)return new c.MouseEvent(e,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:i||u,view:c,detail:+("click"===e),screenX:n.x,screenY:n.y,clientX:n.x,clientY:n.y});if(h?.createEvent){let t=h.createEvent("MouseEvent");if(t.initMouseEvent)return t.initMouseEvent(e,!0,!0,c,+("click"===e),n.x,n.y,n.x,n.y,!1,!1,!1,!1,0,null),t}return{type:e}}let m={addClass:function(e,t){e.classList?e.classList.add(t):0>e.className.indexOf(t)&&(e.className+=" "+t)},cloneMouseEvent:p,cloneTouchEvent:function(e){let t=e=>{let t=[];for(let i=0;i<e.length;++i){let n=e.item(i);n&&t.push(n)}return t};if("function"==typeof c.TouchEvent){let i=new c.TouchEvent(e.type,{touches:t(e.touches),targetTouches:t(e.targetTouches),changedTouches:t(e.changedTouches),ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,bubbles:e.bubbles,cancelable:e.cancelable,composed:e.composed,detail:e.detail,view:e.view});return e.defaultPrevented&&i.preventDefault(),i}let i=p(e);return i.touches=e.touches,i.changedTouches=e.changedTouches,i.targetTouches=e.targetTouches,i},escapeStringForHTML:function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},getElement:function(e){return h.getElementById(e)},getFakeMouseEvent:g,getHeadingTagNameForElement:function(e){let t=e=>"h"+Math.min(6,parseInt(e.slice(1),10)+1),i=e=>/^H[1-6]$/i.test(e),n=e=>{let t=e;for(;t=t.previousSibling;){let e=t.tagName||"";if(i(e))return e}return""},s=e=>{let r=n(e);if(r)return t(r);let o=e.parentElement;if(!o)return"h6";let a=o.tagName;return i(a)?t(a):s(o)};return s(e)},removeChildNodes:function(e){for(;e.lastChild;)e.removeChild(e.lastChild)},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(t,"g"),"")},removeElement:function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},reverseChildNodes:function(e){let t=e.childNodes.length;for(;t--;)e.appendChild(e.childNodes[t])},simulatedEventTarget:u,stripHTMLTagsFromString:function(e,t=!1){return"string"==typeof e?t?e.replace(/<\/?[^>]+(>|$)/g,""):e.replace(/<\/?(?!\s)[^>]+(>|$)/g,""):e},visuallyHideElement:function(e){d(e,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}},b=t.default.Templating;var f=o.n(b);let{format:x}=f(),{getNestedProperty:y,pick:v}=l();!function(e){function t(e,t,i){let n=(e,t)=>{let i=e.slice(t||0),n=i.indexOf("{"),s=i.indexOf("}");if(n>-1&&s>n)return{statement:i.substring(n+1,s),begin:t+n+1,end:t+s}},s=[],r,o,a=0;do r=n(e,a),(o=e.substring(a,r&&r.begin-1)).length&&s.push({value:o,type:"constant"}),r&&s.push({value:r.statement,type:"statement"}),a=r?r.end+1:a+1;while(r);return s.forEach(e=>{"statement"===e.type&&(e.value=function(e,t){let i,n,s=e.indexOf("#each("),r=e.indexOf("#plural("),o=e.indexOf("["),a=e.indexOf("]");if(s>-1){let r=e.slice(s).indexOf(")")+s,o=e.substring(0,s),a=e.substring(r+1),l=e.substring(s+6,r).split(","),h=Number(l[1]),c;if(n="",i=y(l[0],t)){c=(h=isNaN(h)?i.length:h)<0?i.length+h:Math.min(h,i.length);for(let e=0;e<c;++e)n+=o+i[e]+a}return n.length?n:""}if(r>-1){var l;let i=e.slice(r).indexOf(")")+r,s=e.substring(r+8,i).split(",");switch(Number(y(s[0],t))){case 0:n=v(s[4],s[1]);break;case 1:n=v(s[2],s[1]);break;case 2:n=v(s[3],s[1]);break;default:n=s[1]}return n?(l=n).trim&&l.trim()||l.replace(/^\s+|\s+$/g,""):""}if(o>-1){let n,s=e.substring(0,o),r=Number(e.substring(o+1,a));return i=y(s,t),!isNaN(r)&&i&&(r<0?void 0===(n=i[i.length+r])&&(n=i[0]):void 0===(n=i[r])&&(n=i[i.length-1])),void 0!==n?n:""}return"{"+e+"}"}(e.value,t))}),x(s.reduce((e,t)=>e+t.value,""),t,i)}function i(e,i){let n=e.split("."),s=this.options.lang,r=0;for(;r<n.length;++r)s=s&&s[n[r]];return"string"==typeof s?t(s,i,this):""}e.compose=function(e){let t=e.prototype;t.langFormat||(t.langFormat=i)},e.i18nFormat=t}(i||(i={}));let w=i,{doc:E}=l(),{stripHTMLTagsFromString:A}=m,{defined:T,find:M,fireEvent:C}=l();function k(e){if(e.points&&e.points.length){let t=M(e.points,e=>!!e.graphic);return t&&t.graphic&&t.graphic.element}}function S(e){let t=k(e);return t&&t.parentNode||e.graph&&e.graph.element||e.group&&e.group.element}let P={fireEventOnWrappedOrUnwrappedElement:function e(t,i){let n=i.type,s=t.hcEvents;E?.createEvent&&(t.dispatchEvent||t.fireEvent)?t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(n,i):s&&s[n]?C(t,n,i):t.element&&e(t.element,i)},getChartTitle:function(e){return A(e.options.title.text||e.langFormat("accessibility.defaultChartTitle",{chart:e}),e.renderer.forExport)},getAxisDescription:function(e){return e&&(e.options.accessibility?.description||e.axisTitle?.textStr||e.options.id||e.categories&&"categories"||e.dateTime&&"Time"||"values")},getAxisRangeDescription:function(e){let t=e.options||{};return t.accessibility&&void 0!==t.accessibility.rangeDescription?t.accessibility.rangeDescription:e.categories?function(e){let t=e.chart;return e.dataMax&&e.dataMin?t.langFormat("accessibility.axis.rangeCategories",{chart:t,axis:e,numCategories:e.dataMax-e.dataMin+1}):""}(e):e.dateTime&&(0===e.min||0===e.dataMin)?function(e){let t=e.chart,i={},n=e.dataMin||e.min||0,s=e.dataMax||e.max||0,r="Seconds";i.Seconds=(s-n)/1e3,i.Minutes=i.Seconds/60,i.Hours=i.Minutes/60,i.Days=i.Hours/24,["Minutes","Hours","Days"].forEach(function(e){i[e]>2&&(r=e)});let o=i[r].toFixed(+("Seconds"!==r&&"Minutes"!==r));return t.langFormat("accessibility.axis.timeRange"+r,{chart:t,axis:e,range:o.replace(".0","")})}(e):function(e){let t=e.chart,i=t.options,n=i&&i.accessibility&&i.accessibility.screenReaderSection.axisRangeDateFormat||"",s={min:e.dataMin||e.min||0,max:e.dataMax||e.max||0},r=function(i){return e.dateTime?t.time.dateFormat(n,s[i]):s[i].toString()};return t.langFormat("accessibility.axis.rangeFromTo",{chart:t,axis:e,rangeFrom:r("min"),rangeTo:r("max")})}(e)},getPointFromXY:function(e,t,i){let n=e.length,s;for(;n--;)if(s=M(e[n].points||[],function(e){return e.x===t&&e.y===i}))return s},getSeriesFirstPointElement:k,getSeriesFromName:function(e,t){return t?(e.series||[]).filter(function(e){return e.name===t}):e.series},getSeriesA11yElement:S,unhideChartElementFromAT:function e(t,i){i.setAttribute("aria-hidden",!1),i!==t.renderTo&&i.parentNode&&i.parentNode!==E.body&&(Array.prototype.forEach.call(i.parentNode.childNodes,function(e){e.hasAttribute("aria-hidden")||e.setAttribute("aria-hidden",!0)}),e(t,i.parentNode))},hideSeriesFromAT:function(e){let t=S(e);t&&t.setAttribute("aria-hidden",!0)},scrollAxisToPoint:function(e){let t=e.series.xAxis,i=e.series.yAxis,n=t&&t.scrollbar?t:i,s=n&&n.scrollbar;if(s&&T(s.to)&&T(s.from)){let t=s.to-s.from,i=function(e,t){if(!T(e.dataMin)||!T(e.dataMax))return 0;let i=e.toPixels(e.dataMin),n=e.toPixels(e.dataMax),s="xAxis"===e.coll?"x":"y";return(e.toPixels(t[s]||0)-i)/(n-i)}(n,e);s.updatePosition(i-t/2,i+t/2),C(s,"changed",{from:s.from,to:s.to,trigger:"scrollbar",DOMEvent:null})}}},{doc:D}=l(),{removeElement:N}=m,B=class{constructor(){this.elements=[]}createElement(){let e=D.createElement.apply(D,arguments);return this.elements.push(e),e}removeElement(e){N(e),this.elements.splice(this.elements.indexOf(e),1)}destroyCreatedElements(){this.elements.forEach(function(e){N(e)}),this.elements=[]}},{addEvent:I}=l(),F=class{constructor(){this.eventRemovers=[]}addEvent(){let e=I.apply(l(),arguments);return this.eventRemovers.push({element:arguments[0],remover:e}),e}removeEvent(e){let t=this.eventRemovers.map(e=>e.remover).indexOf(e);this.eventRemovers[t].remover(),this.eventRemovers.splice(t,1)}removeAddedEvents(){this.eventRemovers.map(e=>e.remover).forEach(e=>e()),this.eventRemovers=[]}},{fireEventOnWrappedOrUnwrappedElement:O}=P,{getFakeMouseEvent:R}=m,L=class{destroy(){}getKeyboardNavigation(){return[]}init(){}onChartRender(){}onChartUpdate(){}initBase(e,t){this.chart=e,this.eventProvider=new F,this.domElementProvider=new B,this.proxyProvider=t,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}}addEvent(e,t,i,n){return this.eventProvider.addEvent(e,t,i,n)}createElement(e,t){return this.domElementProvider.createElement(e,t)}fakeClickEvent(e){O(e,R("click"))}destroyBase(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()}},{find:H}=l(),z=class{constructor(e,t){this.chart=e,this.keyCodeMap=t.keyCodeMap||[],this.validate=t.validate,this.init=t.init,this.terminate=t.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}run(e){let t=e.which||e.keyCode,i=this.response.noHandler,n=H(this.keyCodeMap,function(e){return e[0].indexOf(t)>-1});return n?i=n[1].call(this,t,e):9===t&&(i=this.response[e.shiftKey?"prev":"next"]),i}},{unhideChartElementFromAT:q,getChartTitle:K}=P,{doc:U}=l(),{stripHTMLTagsFromString:G}=m,W=class extends L{onChartUpdate(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()}handleSVGTitleElement(){let e=this.chart,t="highcharts-title-"+e.index,i=G(e.langFormat("accessibility.svgContainerTitle",{chartTitle:K(e)}));if(i.length){let n=this.svgTitleElement=this.svgTitleElement||U.createElementNS("http://www.w3.org/2000/svg","title");n.textContent=i,n.id=t,e.renderTo.insertBefore(n,e.renderTo.firstChild)}}setSVGContainerLabel(){let e=this.chart,t=e.langFormat("accessibility.svgContainerLabel",{chartTitle:K(e)});e.renderer.box&&t.length&&e.renderer.box.setAttribute("aria-label",t)}setGraphicContainerAttrs(){let e=this.chart,t=e.langFormat("accessibility.graphicContainerLabel",{chartTitle:K(e)});t.length&&e.container.setAttribute("aria-label",t)}setRenderToAttrs(){let e=this.chart,t="disabled"!==e.options.accessibility.landmarkVerbosity,i=e.langFormat("accessibility.chartContainerLabel",{title:K(e),chart:e});i&&(e.renderTo.setAttribute("role",t?"region":"group"),e.renderTo.setAttribute("aria-label",i))}makeCreditsAccessible(){let e=this.chart,t=e.credits;t&&(t.textStr&&t.element.setAttribute("aria-label",e.langFormat("accessibility.credits",{creditsStr:G(t.textStr,e.renderer.forExport)})),q(e,t.element))}getKeyboardNavigation(){let e=this.chart;return new z(e,{keyCodeMap:[],validate:function(){return!0},init:function(){let t=e.accessibility;t&&t.keyboardNavigation.tabindexContainer.focus()}})}destroy(){this.chart.renderTo.setAttribute("aria-hidden",!0)}},{addEvent:V,pick:X}=l();!function(e){let t=["x","y","transform","width","height","r","d","stroke-width"];function i(){let e=this.focusElement,t=this.options.accessibility.keyboardNavigation.focusBorder;e&&(e.removeFocusBorder(),t.enabled&&e.addFocusBorder(t.margin,{stroke:t.style.color,strokeWidth:t.style.lineWidth,r:t.style.borderRadius}))}function n(e,t){let i=this.options.accessibility.keyboardNavigation.focusBorder,n=t||e.element;n&&n.focus&&(n.hcEvents&&n.hcEvents.focusin||V(n,"focusin",function(){}),n.focus(),i.hideBrowserFocusOutline&&(n.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=e,this.renderFocusBorder()}function s(e,i){this.focusBorder&&this.removeFocusBorder();let n=this.getBBox(),s=X(e,3),r=this.parentGroup,o=this.scaleX||r&&r.scaleX,a=this.scaleY||r&&r.scaleY,l=(o?!a:a)?Math.abs(o||a||1):(Math.abs(o||1)+Math.abs(a||1))/2,h=this.renderer.fontMetrics(this).h;n.x+=this.translateX?this.translateX:0,n.y+=this.translateY?this.translateY:0;let c=n.x-s,d=n.y-s,u=n.width+2*s,p=n.height+2*s,g=!!this.text;if("text"===this.element.nodeName||g){let e,t,i=!!this.rotation,r=g?{x:+!!i,y:0}:(e=0,t=0,"middle"===this.attr("text-anchor")?e=t=.5:this.rotation?e=.25:t=.75,{x:e,y:t}),o=+this.attr("x"),a=+this.attr("y");if(isNaN(o)||(c=o-n.width*r.x-s),isNaN(a)||(d=a-("start"===this.attr("text-anchor")?h:n.height)*r.y-s),g&&i){let e=u;u=p,p=e,isNaN(o)||(c=o-n.height*r.x-s),isNaN(a)||(d=a-n.width*r.y-s)}}this.focusBorder=this.renderer.rect(c,d,u,p,parseInt((i&&i.r||0).toString(),10)/l).addClass("highcharts-focus-border").attr({zIndex:99}).add(r),this.renderer.styledMode||this.focusBorder.attr({stroke:i&&i.stroke,"stroke-width":(i&&i.strokeWidth||0)/l}),function(e,...i){!e.focusBorderUpdateHooks&&(e.focusBorderUpdateHooks={},t.forEach(t=>{let n=t+"Setter",s=e[n]||e._defaultSetter;e.focusBorderUpdateHooks[n]=s,e[n]=function(){let t=s.apply(e,arguments);return e.addFocusBorder.apply(e,i),t}}))}(this,e,i),function(e){if(e.focusBorderDestroyHook)return;let t=e.destroy;e.destroy=function(){return e.focusBorder&&e.focusBorder.destroy&&e.focusBorder.destroy(),t.apply(e,arguments)},e.focusBorderDestroyHook=t}(this)}function r(){var e,t;e=this,e.focusBorderUpdateHooks&&(Object.keys(e.focusBorderUpdateHooks).forEach(t=>{let i=e.focusBorderUpdateHooks[t];i===e._defaultSetter?delete e[t]:e[t]=i}),delete e.focusBorderUpdateHooks),t=this,t.focusBorderDestroyHook&&(t.destroy=t.focusBorderDestroyHook,delete t.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}e.compose=function(e,t){let o=e.prototype,a=t.prototype;o.renderFocusBorder||(o.renderFocusBorder=i,o.setFocusToElement=n),a.addFocusBorder||(a.addFocusBorder=s,a.removeFocusBorder=r)}}(n||(n={}));let Y=n,j=t.default.AST;var Z=o.n(j);let{doc:$}=l(),{addClass:_,visuallyHideElement:Q}=m,{attr:J}=l(),ee=class{constructor(e,t){this.chart=e,this.domElementProvider=new B,this.announceRegion=this.addAnnounceRegion(t)}destroy(){this.domElementProvider.destroyCreatedElements()}announce(e){Z().setElementHTML(this.announceRegion,e),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(()=>{this.announceRegion.innerHTML=Z().emptyHTML,delete this.clearAnnouncementRegionTimer},3e3)}addAnnounceRegion(e){let t=this.chart.announcerContainer||this.createAnnouncerContainer(),i=this.domElementProvider.createElement("div");return J(i,{"aria-hidden":!1,"aria-live":e,"aria-atomic":!0}),this.chart.styledMode?_(i,"highcharts-visually-hidden"):Q(i),t.appendChild(i),i}createAnnouncerContainer(){let e=this.chart,t=$.createElement("div");return J(t,{"aria-hidden":!1,class:"highcharts-announcer-container"}),t.style.position="relative",e.renderTo.insertBefore(t,e.renderTo.firstChild),e.announcerContainer=t,t}},{escapeStringForHTML:et,stripHTMLTagsFromString:ei}=m;function en(e){return(e.annotations||[]).reduce((e,t)=>(t.options&&!1!==t.options.visible&&(e=e.concat(t.labels)),e),[])}function es(e){return e.options&&e.options.accessibility&&e.options.accessibility.description||e.graphic&&e.graphic.text&&e.graphic.text.textStr||""}function er(e){let t=e.options&&e.options.accessibility&&e.options.accessibility.description;if(t)return t;let i=e.chart,n=es(e),s=e.points,r=e=>e.graphic&&e.graphic.element&&e.graphic.element.getAttribute("aria-label")||"",o=s.filter(e=>!!e.graphic).map(e=>{let t=e.accessibility&&e.accessibility.valueDescription||r(e),i=e&&e.series.name||"";return(i?i+", ":"")+"data point "+t}).filter(e=>!!e),a=o.length,l=a>1?"MultiplePoints":a?"SinglePoint":"NoPoints",h={annotationText:n,annotation:e,numPoints:a,annotationPoint:o[0],additionalAnnotationPoints:o.slice(1)};return i.langFormat("accessibility.screenReaderSection.annotations.description"+l,h)}function eo(e){return en(e).map(t=>{let i=et(ei(er(t),e.renderer.forExport));return i?`<li>${i}</li>`:""})}let ea={getAnnotationsInfoHTML:function(e){let t=e.annotations;if(!(t&&t.length))return"";let i=eo(e);return`<ul style="list-style-type: none">${i.join(" ")}</ul>`},getAnnotationLabelDescription:er,getAnnotationListItems:eo,getPointAnnotationTexts:function(e){let t=en(e.series.chart).filter(t=>t.points.indexOf(e)>-1);return t.length?t.map(e=>`${es(e)}`):[]}},{getAnnotationsInfoHTML:el}=ea,{getAxisDescription:eh,getAxisRangeDescription:ec,getChartTitle:ed,unhideChartElementFromAT:eu}=P,{format:ep}=f(),{doc:eg}=l(),{addClass:em,getElement:eb,getHeadingTagNameForElement:ef,stripHTMLTagsFromString:ex,visuallyHideElement:ey}=m,{attr:ev,pick:ew,replaceNested:eE}=l();function eA(e){return eE(e,[/<([\w\-.:!]+)\b[^<>]*>\s*<\/\1>/g,""])}let eT=class extends L{constructor(){super(...arguments),this.screenReaderSections={}}init(){let e=this.chart,t=this;this.initRegionsDefinitions(),this.addEvent(e,"aftergetTableAST",function(e){t.onDataTableCreated(e)}),this.addEvent(e,"afterViewData",function(e){e.wasHidden&&(t.dataTableDiv=e.element,setTimeout(function(){t.focusDataTable()},300))}),this.addEvent(e,"afterHideData",function(){t.viewDataTableButton&&t.viewDataTableButton.setAttribute("aria-expanded","false")}),e.exporting&&this.addEvent(e,"afterPrint",function(){t.updateAllScreenReaderSections()}),this.announcer=new ee(e,"assertive")}initRegionsDefinitions(){let e=this,t=this.chart.options.accessibility;this.screenReaderSections={before:{element:null,buildContent:function(i){let n=t.screenReaderSection.beforeChartFormatter;return n?n(i):e.defaultBeforeChartFormatter(i)},insertIntoDOM:function(e,t){t.renderTo.insertBefore(e,t.renderTo.firstChild)},afterInserted:function(){void 0!==e.sonifyButtonId&&e.initSonifyButton(e.sonifyButtonId),void 0!==e.dataTableButtonId&&e.initDataTableButton(e.dataTableButtonId)}},after:{element:null,buildContent:function(i){let n=t.screenReaderSection.afterChartFormatter;return n?n(i):e.defaultAfterChartFormatter()},insertIntoDOM:function(e,t){t.renderTo.insertBefore(e,t.container.nextSibling)},afterInserted:function(){e.chart.accessibility&&t.keyboardNavigation.enabled&&e.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}}onChartRender(){this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),this.updateAllScreenReaderSections()}updateAllScreenReaderSections(){let e=this;Object.keys(this.screenReaderSections).forEach(function(t){e.updateScreenReaderSection(t)})}getLinkedDescriptionElement(){let e=this.chart.options.accessibility.linkedDescription;if(!e)return;if("string"!=typeof e)return e;let t=ep(e,this.chart),i=eg.querySelectorAll(t);if(1===i.length)return i[0]}setLinkedDescriptionAttrs(){let e=this.linkedDescriptionElement;e&&(e.setAttribute("aria-hidden","true"),em(e,"highcharts-linked-description"))}updateScreenReaderSection(e){let t=this.chart,i=this.screenReaderSections[e],n=i.buildContent(t),s=i.element=i.element||this.createElement("div"),r=s.firstChild||this.createElement("div");n?(this.setScreenReaderSectionAttribs(s,e),Z().setElementHTML(r,n),s.appendChild(r),i.insertIntoDOM(s,t),t.styledMode?em(r,"highcharts-visually-hidden"):ey(r),eu(t,r),i.afterInserted&&i.afterInserted()):(s.parentNode&&s.parentNode.removeChild(s),i.element=null)}setScreenReaderSectionAttribs(e,t){let i=this.chart,n=i.langFormat("accessibility.screenReaderSection."+t+"RegionLabel",{chart:i,chartTitle:ed(i)});ev(e,{id:`highcharts-screen-reader-region-${t}-${i.index}`,"aria-label":n||void 0}),e.style.position="relative",n&&e.setAttribute("role","all"===i.options.accessibility.landmarkVerbosity?"region":"group")}defaultBeforeChartFormatter(){let e=this.chart,t=e.options.accessibility.screenReaderSection.beforeChartFormat;if(!t)return"";let i=this.getAxesDescription(),n=e.sonify&&e.options.sonification&&e.options.sonification.enabled,s="highcharts-a11y-sonify-data-btn-"+e.index,r="hc-linkto-highcharts-data-table-"+e.index,o=el(e),a=e.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:e}),l={headingTagName:ef(e.renderTo),chartTitle:ed(e),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:i.xAxis,yAxisDescription:i.yAxis,playAsSoundButton:n?this.getSonifyButtonText(s):"",viewTableButton:e.getCSV?this.getDataTableButtonText(r):"",annotationsTitle:o?a:"",annotationsList:o},h=w.i18nFormat(t,l,e);return this.dataTableButtonId=r,this.sonifyButtonId=s,eA(h)}defaultAfterChartFormatter(){let e=this.chart,t=e.options.accessibility.screenReaderSection.afterChartFormat;if(!t)return"";let i={endOfChartMarker:this.getEndOfChartMarkerText()};return eA(w.i18nFormat(t,i,e))}getLinkedDescription(){let e=this.linkedDescriptionElement;return ex(e&&e.innerHTML||"",this.chart.renderer.forExport)}getLongdescText(){let e=this.chart.options,t=e.caption,i=t&&t.text,n=this.getLinkedDescription();return e.accessibility.description||n||i||""}getTypeDescriptionText(){let e=this.chart;return e.types?e.options.accessibility.typeDescription||function(e,t){let i=t[0],n=e.series&&e.series[0]||{},s=e.mapView&&e.mapView.geoMap&&e.mapView.geoMap.title,r={numSeries:e.series.length,numPoints:n.points&&n.points.length,chart:e,mapTitle:s};return i?"map"===i||"tiledwebmap"===i?r.mapTitle?e.langFormat("accessibility.chartTypes.mapTypeDescription",r):e.langFormat("accessibility.chartTypes.unknownMap",r):e.types.length>1?e.langFormat("accessibility.chartTypes.combinationChart",r):function(e,t,i){let n=t[0],s=e.langFormat("accessibility.seriesTypeDescriptions."+n,i),r=e.series&&e.series.length<2?"Single":"Multiple";return(e.langFormat("accessibility.chartTypes."+n+r,i)||e.langFormat("accessibility.chartTypes.default"+r,i))+(s?" "+s:"")}(e,t,r):e.langFormat("accessibility.chartTypes.emptyChart",r)}(e,e.types):""}getDataTableButtonText(e){let t=this.chart;return'<button id="'+e+'">'+t.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:t,chartTitle:ed(t)})+"</button>"}getSonifyButtonText(e){let t=this.chart;return t.options.sonification&&!1===t.options.sonification.enabled?"":'<button id="'+e+'">'+t.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:t,chartTitle:ed(t)})+"</button>"}getSubtitleText(){let e=this.chart.options.subtitle;return ex(e&&e.text||"",this.chart.renderer.forExport)}getEndOfChartMarkerText(){let e=eb(`highcharts-end-of-chart-marker-${this.chart.index}`);if(e)return e.outerHTML;let t=this.chart,i=t.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:t});return'<div id="highcharts-end-of-chart-marker-'+t.index+'">'+i+"</div>"}onDataTableCreated(e){let t=this.chart;if(t.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");let i=e.tree.attributes||{};i.tabindex=-1,i.summary=t.langFormat("accessibility.table.tableSummary",{chart:t}),e.tree.attributes=i}}focusDataTable(){let e=this.dataTableDiv,t=e&&e.getElementsByTagName("table")[0];t&&t.focus&&t.focus()}initSonifyButton(e){let t=this.sonifyButton=eb(e),i=this.chart,n=e=>{t&&(t.setAttribute("aria-hidden","true"),t.setAttribute("aria-label","")),e.preventDefault(),e.stopPropagation();let n=i.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:i});this.announcer.announce(n),setTimeout(()=>{t&&(t.removeAttribute("aria-hidden"),t.removeAttribute("aria-label")),i.sonify&&i.sonify()},1e3)};t&&i&&(t.setAttribute("tabindex",-1),t.onclick=function(e){(i.options.accessibility&&i.options.accessibility.screenReaderSection.onPlayAsSoundClick||n).call(this,e,i)})}initDataTableButton(e){let t=this.viewDataTableButton=eb(e),i=this.chart,n=e.replace("hc-linkto-","");t&&(ev(t,{tabindex:-1,"aria-expanded":!!eb(n)}),t.onclick=i.options.accessibility.screenReaderSection.onViewDataTableClick||function(){i.viewData()})}getAxesDescription(){let e=this.chart,t=function(t,i){let n=e[t];return n.length>1||n[0]&&ew(n[0].options.accessibility&&n[0].options.accessibility.enabled,i)},i=!!e.types&&0>e.types.indexOf("map")&&0>e.types.indexOf("treemap")&&0>e.types.indexOf("tilemap"),n=!!e.hasCartesianSeries,s=t("xAxis",!e.angular&&n&&i),r=t("yAxis",n&&i),o={};return s&&(o.xAxis=this.getAxisDescriptionText("xAxis")),r&&(o.yAxis=this.getAxisDescriptionText("yAxis")),o}getAxisDescriptionText(e){let t=this.chart,i=t[e];return t.langFormat("accessibility.axis."+e+"Description"+(i.length>1?"Plural":"Singular"),{chart:t,names:i.map(function(e){return eh(e)}),ranges:i.map(function(e){return ec(e)}),numAxes:i.length})}destroy(){this.announcer&&this.announcer.destroy()}},{attr:eM}=l(),{getChartTitle:eC,unhideChartElementFromAT:ek}=P,{getFakeMouseEvent:eS}=m;function eP(e){return e.exportSVGElements&&e.exportSVGElements[0]}class eD extends L{init(){let e=this.chart,t=this;this.addEvent(e,"exportMenuShown",function(){t.onMenuShown()}),this.addEvent(e,"exportMenuHidden",function(){t.onMenuHidden()}),this.createProxyGroup()}onMenuHidden(){let e=this.chart.exportContextMenu;e&&e.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")}onMenuShown(){let e=this.chart,t=e.exportContextMenu;t&&(this.addAccessibleContextMenuAttribs(),ek(e,t)),this.setExportButtonExpandedState("true")}setExportButtonExpandedState(e){this.exportButtonProxy&&this.exportButtonProxy.innerElement.setAttribute("aria-expanded",e)}onChartRender(){let e=this.chart,t=e.focusElement,i=e.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&t&&t===e.exportingGroup&&(t.focusBorder?e.setFocusToElement(t,this.exportButtonProxy.innerElement):i&&i.keyboardNavigation.tabindexContainer.focus())}proxyMenuButton(){let e=this.chart,t=this.proxyProvider,i=eP(e);(function(e){let t=e.options.exporting,i=eP(e);return!!(t&&!1!==t.enabled&&t.accessibility&&t.accessibility.enabled&&i&&i.element)})(e)&&i&&(this.exportButtonProxy=t.addProxyElement("chartMenu",{click:i},"button",{"aria-label":e.langFormat("accessibility.exporting.menuButtonLabel",{chart:e,chartTitle:eC(e)}),"aria-expanded":!1,title:e.options.lang.contextButtonTitle||null}))}createProxyGroup(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu")}addAccessibleContextMenuAttribs(){let e=this.chart,t=e.exportDivElements;if(t&&t.length){t.forEach(e=>{e&&("LI"!==e.tagName||e.children&&e.children.length?e.setAttribute("aria-hidden","true"):e.setAttribute("tabindex",-1))});let i=t[0]&&t[0].parentNode;i&&eM(i,{"aria-hidden":void 0,"aria-label":e.langFormat("accessibility.exporting.chartMenuLabel",{chart:e}),role:"list"})}}getKeyboardNavigation(){let e=this.keyCodes,t=this.chart,i=this;return new z(t,{keyCodeMap:[[[e.left,e.up],function(){return i.onKbdPrevious(this)}],[[e.right,e.down],function(){return i.onKbdNext(this)}],[[e.enter,e.space],function(){return i.onKbdClick(this)}]],validate:function(){return!!t.exporting&&t.options.exporting?.buttons?.contextButton.enabled!==!1&&!1!==t.options.exporting.enabled&&!1!==t.options.exporting.accessibility.enabled},init:function(){let e=i.exportButtonProxy,n=i.chart.exportingGroup;e&&n&&t.setFocusToElement(n,e.innerElement)},terminate:function(){t.hideExportMenu()}})}onKbdPrevious(e){let t=this.chart,i=t.options.accessibility,n=e.response,s=t.highlightedExportItemIx||0;for(;s--;)if(t.highlightExportItem(s))return n.success;return i.keyboardNavigation.wrapAround?(t.highlightLastExportItem(),n.success):n.prev}onKbdNext(e){let t=this.chart,i=t.options.accessibility,n=e.response;for(let e=(t.highlightedExportItemIx||0)+1;e<t.exportDivElements.length;++e)if(t.highlightExportItem(e))return n.success;return i.keyboardNavigation.wrapAround?(t.highlightExportItem(0),n.success):n.next}onKbdClick(e){let t=this.chart,i=t.exportDivElements[t.highlightedExportItemIx],n=eP(t).element;return t.openMenu?this.fakeClickEvent(i):(this.fakeClickEvent(n),t.highlightExportItem(0)),e.response.success}}!function(e){function t(){let e=eP(this);if(e){let t=e.element;t.onclick&&t.onclick(eS("click"))}}function i(){let e=this.exportDivElements;e&&this.exportContextMenu&&this.openMenu&&(e.forEach(e=>{e&&"highcharts-menu-item"===e.className&&e.onmouseout&&e.onmouseout(eS("mouseout"))}),this.highlightedExportItemIx=0,this.exportContextMenu.hideMenu(),this.container.focus())}function n(e){let t=this.exportDivElements&&this.exportDivElements[e],i=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(t&&"LI"===t.tagName&&!(t.children&&t.children.length)){let n=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return t.focus&&n&&t.focus(),i&&i.onmouseout&&i.onmouseout(eS("mouseout")),t.onmouseover&&t.onmouseover(eS("mouseover")),this.highlightedExportItemIx=e,!0}return!1}function s(){if(this.exportDivElements){let e=this.exportDivElements.length;for(;e--;)if(this.highlightExportItem(e))return!0}return!1}e.compose=function(e){let r=e.prototype;r.hideExportMenu||(r.hideExportMenu=i,r.highlightExportItem=n,r.highlightLastExportItem=s,r.showExportMenu=t)}}(eD||(eD={}));let eN=eD,{doc:eB,win:eI}=l(),{addEvent:eF,defined:eO,fireEvent:eR}=l(),{getElement:eL,simulatedEventTarget:eH}=m;class ez{constructor(e,t){this.currentModuleIx=NaN,this.modules=[],this.init(e,t)}init(e,t){let i=this.eventProvider=new F;this.chart=e,this.components=t,this.modules=[],this.currentModuleIx=0,this.update(),i.addEvent(this.tabindexContainer,"keydown",e=>this.onKeydown(e)),i.addEvent(this.tabindexContainer,"focus",e=>this.onFocus(e)),["mouseup","touchend"].forEach(e=>i.addEvent(eB,e,e=>this.onMouseUp(e))),["mousedown","touchstart"].forEach(t=>i.addEvent(e.renderTo,t,()=>{this.isClickingChart=!0}))}update(e){let t=this.chart.options.accessibility,i=t&&t.keyboardNavigation,n=this.components;this.updateContainerTabindex(),i&&i.enabled&&e&&e.length?(this.modules=e.reduce(function(e,t){let i=n[t].getKeyboardNavigation();return e.concat(i)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())}updateExitAnchor(){let e=eL(`highcharts-end-of-chart-marker-${this.chart.index}`);this.removeExitAnchor(),e?(this.makeElementAnExitAnchor(e),this.exitAnchor=e):this.createExitAnchor()}move(e){let t=this.modules&&this.modules[this.currentModuleIx];t&&t.terminate&&t.terminate(e),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=e;let i=this.modules&&this.modules[this.currentModuleIx];if(i){if(i.validate&&!i.validate())return this.move(e);if(i.init)return i.init(e),!0}return this.currentModuleIx=0,this.exiting=!0,e>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1}onFocus(e){let t=this.chart,i=e.relatedTarget&&t.container.contains(e.relatedTarget),n=t.options.accessibility,s=n&&n.keyboardNavigation;if(s&&s.enabled&&!this.exiting&&!this.tabbingInBackwards&&!this.isClickingChart&&!i){let e=this.getFirstValidModuleIx();null!==e&&(this.currentModuleIx=e,this.modules[e].init(1))}this.keyboardReset=!1,this.exiting=!1}onMouseUp(e){if(delete this.isClickingChart,!this.keyboardReset&&e.relatedTarget!==eH){let t=this.chart;if(!e.target||!t.container.contains(e.target)){let e=this.modules&&this.modules[this.currentModuleIx||0];e&&e.terminate&&e.terminate(),this.currentModuleIx=0}t.focusElement&&(t.focusElement.removeFocusBorder(),delete t.focusElement),this.keyboardReset=!0}}onKeydown(e){let t,i=e||eI.event,n=this.modules&&this.modules.length&&this.modules[this.currentModuleIx],s=i.target;if((!s||"INPUT"!==s.nodeName||s.classList.contains("highcharts-a11y-proxy-element"))&&(this.keyboardReset=!1,this.exiting=!1,n)){let e=n.run(i);e===n.response.success?t=!0:e===n.response.prev?t=this.move(-1):e===n.response.next&&(t=this.move(1)),t&&(i.preventDefault(),i.stopPropagation())}}updateContainerTabindex(){let e,t=this.chart.options.accessibility,i=t&&t.keyboardNavigation,n=!(i&&!1===i.enabled),s=this.chart,r=s.container;s.renderTo.hasAttribute("tabindex")?(r.removeAttribute("tabindex"),e=s.renderTo):e=r,this.tabindexContainer=e;let o=e.getAttribute("tabindex");n&&!o?e.setAttribute("tabindex","0"):n||s.container.removeAttribute("tabindex")}createExitAnchor(){let e=this.chart,t=this.exitAnchor=eB.createElement("div");e.renderTo.appendChild(t),this.makeElementAnExitAnchor(t)}makeElementAnExitAnchor(e){let t=this.tabindexContainer.getAttribute("tabindex")||0;e.setAttribute("class","highcharts-exit-anchor"),e.setAttribute("tabindex",t),e.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(e)}removeExitAnchor(){if(this.exitAnchor){let e=this.eventProvider.eventRemovers.find(e=>e.element===this.exitAnchor);e&&eO(e.remover)&&this.eventProvider.removeEvent(e.remover),this.exitAnchor.parentNode&&this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor}}addExitAnchorEventsToEl(e){let t=this.chart,i=this;this.eventProvider.addEvent(e,"focus",function(e){let n=e||eI.event,s=!(n.relatedTarget&&t.container.contains(n.relatedTarget)||i.exiting);if(t.focusElement&&delete t.focusElement,s){if(i.tabbingInBackwards=!0,i.tabindexContainer.focus(),delete i.tabbingInBackwards,n.preventDefault(),i.modules&&i.modules.length){i.currentModuleIx=i.modules.length-1;let e=i.modules[i.currentModuleIx];e&&e.validate&&!e.validate()?i.move(-1):e&&e.init(-1)}}else i.exiting=!1})}getFirstValidModuleIx(){let e=this.modules.length;for(let t=0;t<e;++t){let e=this.modules[t];if(!e.validate||e.validate())return t}return null}destroy(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")}}!function(e){function t(){let e=this;eR(this,"dismissPopupContent",{},function(){e.tooltip&&e.tooltip.hide(0),e.hideExportMenu()})}function i(e){27===(e.which||e.keyCode)&&l().charts&&l().charts.forEach(e=>{e&&e.dismissPopupContent&&e.dismissPopupContent()})}e.compose=function(e){eN.compose(e);let n=e.prototype;return!n.dismissPopupContent&&(n.dismissPopupContent=t,eB&&eF(eB,"keydown",i)),e}}(ez||(ez={}));let eq=ez,eK=t.default.Legend;var eU=o.n(eK);let{animObject:eG}=l(),{doc:eW}=l(),{addEvent:eV,fireEvent:eX,isNumber:eY,pick:ej,syncTimeout:eZ}=l(),{getChartTitle:e$}=P,{stripHTMLTagsFromString:e_,addClass:eQ,removeClass:eJ}=m;function e0(e){let t=e.legend&&e.legend.allItems,i=e.options.legend.accessibility||{},n=e.colorAxis&&e.colorAxis.some(e=>!e.dataClasses||!e.dataClasses.length);return!!(t&&t.length&&!n&&!1!==i.enabled)}function e1(e,t){let i=t.legendItem||{};for(let n of(t.setState(e?"hover":"",!0),["group","label","symbol"])){let t=i[n],s=t&&t.element||t;s&&eX(s,e?"mouseover":"mouseout")}}class e2 extends L{constructor(){super(...arguments),this.highlightedLegendItemIx=NaN,this.proxyGroup=null}init(){let e=this;this.recreateProxies(),this.addEvent(eU(),"afterScroll",function(){this.chart===e.chart&&(e.proxyProvider.updateGroupProxyElementPositions("legend"),e.updateLegendItemProxyVisibility(),e.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(e.highlightedLegendItemIx))}),this.addEvent(eU(),"afterPositionItem",function(t){this.chart===e.chart&&this.chart.renderer&&e.updateProxyPositionForItem(t.item)}),this.addEvent(eU(),"afterRender",function(){this.chart===e.chart&&this.chart.renderer&&e.recreateProxies()&&eZ(()=>e.proxyProvider.updateGroupProxyElementPositions("legend"),eG(ej(this.chart.renderer.globalAnimation,!0)).duration)})}updateLegendItemProxyVisibility(){let e,t=this.chart,i=t.legend,n=i.allItems||[],s=i.currentPage||1,r=i.clipHeight||0;n.forEach(n=>{if(n.a11yProxyElement){let o=i.pages&&i.pages.length,a=n.a11yProxyElement.element,l=!1;if(e=n.legendItem||{},o){let t=e.pageIx||0;l=(e.y||0)+(e.label?Math.round(e.label.getBBox().height):0)-i.pages[t]>r||t!==s-1}l?t.styledMode?eQ(a,"highcharts-a11y-invisible"):a.style.visibility="hidden":(eJ(a,"highcharts-a11y-invisible"),a.style.visibility="")}})}onChartRender(){e0(this.chart)||this.removeProxies()}highlightAdjacentLegendPage(e){let t=this.chart,i=t.legend,n=(i.currentPage||1)+e,s=i.pages||[];if(n>0&&n<=s.length){let e=0;for(let s of i.allItems)((s.legendItem||{}).pageIx||0)+1===n&&t.highlightLegendItem(e)&&(this.highlightedLegendItemIx=e),++e}}updateProxyPositionForItem(e){e.a11yProxyElement&&e.a11yProxyElement.refreshPosition()}recreateProxies(){let e=eW.activeElement,t=this.proxyGroup,i=e&&t&&t.contains(e);return this.removeProxies(),!!e0(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),i&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)}removeProxies(){this.proxyProvider.removeGroup("legend")}updateLegendTitle(){let e=this.chart,t=e_((e.legend&&e.legend.options.title&&e.legend.options.title.text||"").replace(/<br ?\/?>/g," "),e.renderer.forExport),i=e.langFormat("accessibility.legend.legendLabel"+(t?"":"NoTitle"),{chart:e,legendTitle:t,chartTitle:e$(e)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":i})}addLegendProxyGroup(){let e="all"===this.chart.options.accessibility.landmarkVerbosity?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:e})}proxyLegendItems(){let e,t=this;((this.chart.legend||{}).allItems||[]).forEach(i=>{(e=i.legendItem||{}).label&&e.label.element&&t.proxyLegendItem(i)})}proxyLegendItem(e){let t=e.legendItem||{};if(!t.label||!t.group)return;let i=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:e_(e.name,this.chart.renderer.forExport),item:e}),n={tabindex:-1,"aria-pressed":e.visible,"aria-label":i},s=t.group.div?t.label:t.group;e.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:t.label,visual:s.element},"button",n)}getKeyboardNavigation(){let e=this.keyCodes,t=this,i=this.chart;return new z(i,{keyCodeMap:[[[e.left,e.right,e.up,e.down],function(e){return t.onKbdArrowKey(this,e)}],[[e.enter,e.space],function(){return t.onKbdClick(this)}],[[e.pageDown,e.pageUp],function(i){let n=i===e.pageDown?1:-1;return t.highlightAdjacentLegendPage(n),this.response.success}]],validate:function(){return t.shouldHaveLegendNavigation()},init:function(){i.highlightLegendItem(0),t.highlightedLegendItemIx=0},terminate:function(){t.highlightedLegendItemIx=-1,i.legend.allItems.forEach(e=>e1(!1,e))}})}onKbdArrowKey(e,t){let{keyCodes:{left:i,up:n},highlightedLegendItemIx:s,chart:r}=this,o=r.legend.allItems.length,a=r.options.accessibility.keyboardNavigation.wrapAround,l=t===i||t===n?-1:1;return r.highlightLegendItem(s+l)?this.highlightedLegendItemIx+=l:a&&o>1&&(this.highlightedLegendItemIx=l>0?0:o-1,r.highlightLegendItem(this.highlightedLegendItemIx)),e.response.success}onKbdClick(e){let t=this.chart.legend.allItems[this.highlightedLegendItemIx];return t&&t.a11yProxyElement&&t.a11yProxyElement.click(),e.response.success}shouldHaveLegendNavigation(){if(!e0(this.chart))return!1;let e=this.chart,t=(e.options.legend||{}).accessibility||{};return!!(e.legend.display&&t.keyboardNavigation&&t.keyboardNavigation.enabled)}destroy(){this.removeProxies()}}!function(e){function t(e){let t=this.legend.allItems,i=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,n=t[e],s=n?.legendItem||{};if(n){eY(i)&&t[i]&&e1(!1,t[i]),function(e,t){let i=(e.allItems[t].legendItem||{}).pageIx,n=e.currentPage;void 0!==i&&i+1!==n&&e.scroll(1+i-n)}(this.legend,e);let r=s.label,o=n.a11yProxyElement&&n.a11yProxyElement.innerElement;return r&&r.element&&o&&this.setFocusToElement(r,o),e1(!0,n),!0}return!1}function i(e){let t=this.chart.options.accessibility,i=e.item;t.enabled&&i&&i.a11yProxyElement&&i.a11yProxyElement.innerElement.setAttribute("aria-pressed",e.visible?"true":"false")}e.compose=function(e,n){let s=e.prototype;s.highlightLegendItem||(s.highlightLegendItem=t,eV(n,"afterColorizeItem",i))}}(e2||(e2={}));let e3=e2,e5=t.default.Axis;var e4=o.n(e5);let{isTouchDevice:e9}=l(),{addEvent:e6,merge:e8,pick:e7}=l(),te=[];function tt(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function ti(){let e,t,i,n=this.legend,s=this.navigator;if(s){e=n&&n.options,t=s.xAxis,i=s.yAxis;let{scrollbarHeight:r,scrollButtonSize:o}=s;this.inverted?(s.left=s.opposite?this.chartWidth-r-s.height:this.spacing[3]+r,s.top=this.plotTop+o):(s.left=e7(t.left,this.plotLeft+o),s.top=s.navigatorOptions.top||this.chartHeight-s.height-r-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&"bottom"===e.verticalAlign&&"proximate"!==e.layout&&e.enabled&&!e.floating?n.legendHeight+e7(e.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),t&&i&&(this.inverted?t.options.left=i.options.left=s.left:t.options.top=i.options.top=s.top,t.setAxisSize(),i.setAxisSize())}}function tn(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new e(this),e7(t.redraw,!0)&&this.redraw(t.animation))}function ts(){let t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new e(this))}function tr(){let e=this.options,t=e.navigator,i=e.rangeSelector;if((t&&t.enabled||i&&i.enabled)&&(!e9&&"x"===this.zooming.type||e9&&"x"===this.zooming.pinchType))return!1}function to(e){let t=e.navigator;if(t&&e.xAxis[0]){let i=e.xAxis[0].getExtremes();t.render(i.min,i.max)}}function ta(e){let t=e.options.navigator||{},i=e.options.scrollbar||{};!this.navigator&&!this.scroller&&(t.enabled||i.enabled)&&(e8(!0,this.options.navigator,t),e8(!0,this.options.scrollbar,i),delete e.options.navigator,delete e.options.scrollbar)}let tl=function(t,i){if(l().pushUnique(te,t)){let n=t.prototype;e=i,n.callbacks.push(to),e6(t,"afterAddSeries",tt),e6(t,"afterSetChartSize",ti),e6(t,"afterUpdate",tn),e6(t,"beforeRender",ts),e6(t,"beforeShowResetZoom",tr),e6(t,"update",ta)}},{isTouchDevice:th}=l(),{addEvent:tc,correctFloat:td,defined:tu,isNumber:tp,pick:tg}=l();function tm(){this.navigatorAxis||(this.navigatorAxis=new tf(this))}function tb(e){let t,i=this.chart,n=i.options,s=n.navigator,r=this.navigatorAxis,o=i.zooming.pinchType,a=n.rangeSelector,l=i.zooming.type;if(this.isXAxis&&(s?.enabled||a?.enabled)){if("y"===l&&"zoom"===e.trigger)t=!1;else if(("zoom"===e.trigger&&"xy"===l||th&&"xy"===o)&&this.options.range){let t=r.previousZoom;tu(e.min)?r.previousZoom=[this.min,this.max]:t&&(e.min=t[0],e.max=t[1],r.previousZoom=void 0)}}void 0!==t&&e.preventDefault()}class tf{static compose(e){e.keepProps.includes("navigatorAxis")||(e.keepProps.push("navigatorAxis"),tc(e,"init",tm),tc(e,"setExtremes",tb))}constructor(e){this.axis=e}destroy(){this.axis=void 0}toFixedRange(e,t,i,n){let s=this.axis,r=(s.pointRange||0)/2,o=tg(i,s.translate(e,!0,!s.horiz)),a=tg(n,s.translate(t,!0,!s.horiz));return tu(i)||(o=td(o+r)),tu(n)||(a=td(a-r)),tp(o)&&tp(a)||(o=a=void 0),{min:o,max:a}}}let tx=t.default.Color;var ty=o.n(tx);let tv=t.default.SeriesRegistry;var tw=o.n(tv);let{parse:tE}=ty(),{seriesTypes:tA}=tw(),tT={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:tE("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===tA.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:void 0},tickLength:0,tickWidth:0}},{defined:tM,isNumber:tC,pick:tk}=l(),{relativeLength:tS}=l(),tP={"navigator-handle":function(e,t,i,n,s={}){var r,o,a,l,h;let c=s.width?s.width/2:i,d=tS(s.borderRadius||0,Math.min(2*c,n));return[["M",-1.5,(n=s.height||n)/2-3.5],["L",-1.5,n/2+4.5],["M",.5,n/2-3.5],["L",.5,n/2+4.5],...(r=-c-1,o=.5,a=2*c+1,l=n,h={r:d},h?.r?function(e,t,i,n,s){let r=s?.r||0;return[["M",e+r,t],["L",e+i-r,t],["A",r,r,0,0,1,e+i,t+r],["L",e+i,t+n-r],["A",r,r,0,0,1,e+i-r,t+n],["L",e+r,t+n],["A",r,r,0,0,1,e,t+n-r],["L",e,t+r],["A",r,r,0,0,1,e+r,t],["Z"]]}(r,.5,a,l,h):[["M",r,o],["L",r+a,o],["L",r+a,o+l],["L",r,o+l],["Z"]])]}},tD=t.default.RendererRegistry;var tN=o.n(tD);let{defined:tB}=l(),{setOptions:tI}=l(),{composed:tF}=l(),{getRendererType:tO}=tN(),{setFixedRange:tR}={setFixedRange:function(e){let t=this.xAxis[0];tB(t.dataMax)&&tB(t.dataMin)&&e?this.fixedRange=Math.min(e,t.dataMax-t.dataMin):this.fixedRange=e}},{addEvent:tL,extend:tH,pushUnique:tz}=l();function tq(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}let tK=function(e,t,i){tf.compose(t),tz(tF,"Navigator")&&(e.prototype.setFixedRange=tR,tH(tO().prototype.symbols,tP),tL(i,"afterUpdate",tq),tI({navigator:tT}))},{composed:tU}=l(),{addEvent:tG,defined:tW,pick:tV,pushUnique:tX}=l();!function(e){let t;function i(e){let t=tV(e.options?.min,e.min),i=tV(e.options?.max,e.max);return{axisMin:t,axisMax:i,scrollMin:tW(e.dataMin)?Math.min(t,e.min,e.dataMin,tV(e.threshold,1/0)):t,scrollMax:tW(e.dataMax)?Math.max(i,e.max,e.dataMax,tV(e.threshold,-1/0)):i}}function n(){let e=this.scrollbar,t=e&&!e.options.opposite,i=this.horiz?2:t?3:1;e&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[i]+=e.size+(e.options.margin||0))}function s(){let e=this;e.options?.scrollbar?.enabled&&(e.options.scrollbar.vertical=!e.horiz,e.options.startOnTick=e.options.endOnTick=!1,e.scrollbar=new t(e.chart.renderer,e.options.scrollbar,e.chart),tG(e.scrollbar,"changed",function(t){let n,s,{axisMin:r,axisMax:o,scrollMin:a,scrollMax:l}=i(e),h=l-a;if(tW(r)&&tW(o)){if(e.horiz&&!e.reversed||!e.horiz&&e.reversed?(n=a+h*this.to,s=a+h*this.from):(n=a+h*(1-this.from),s=a+h*(1-this.to)),this.shouldUpdateExtremes(t.DOMType)){let i="mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&void 0;e.setExtremes(s,n,!0,i,t)}else this.setRange(this.from,this.to)}}))}function r(){let e,t,n,{scrollMin:s,scrollMax:r}=i(this),o=this.scrollbar,a=this.axisTitleMargin+(this.titleOffset||0),l=this.chart.scrollbarsOffsets,h=this.options.margin||0;if(o&&l){if(this.horiz)this.opposite||(l[1]+=a),o.position(this.left,this.top+this.height+2+l[1]-(this.opposite?h:0),this.width,this.height),this.opposite||(l[1]+=h),e=1;else{let t;this.opposite&&(l[0]+=a),t=o.options.opposite?this.left+this.width+2+l[0]-(this.opposite?0:h):this.opposite?0:h,o.position(t,this.top,this.width,this.height),this.opposite&&(l[0]+=h),e=0}if(l[e]+=o.size+(o.options.margin||0),isNaN(s)||isNaN(r)||!tW(this.min)||!tW(this.max)||this.dataMin===this.dataMax)o.setRange(0,1);else if(this.min===this.max){let e=this.pointRange/(this.dataMax+1);t=e*this.min,n=e*(this.max+1),o.setRange(t,n)}else t=(this.min-s)/(r-s),n=(this.max-s)/(r-s),this.horiz&&!this.reversed||!this.horiz&&this.reversed?o.setRange(t,n):o.setRange(1-n,1-t)}}e.compose=function(e,i){tX(tU,"Axis.Scrollbar")&&(t=i,tG(e,"afterGetOffset",n),tG(e,"afterInit",s),tG(e,"afterRender",r))}}(s||(s={}));let tY=s,tj={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1},{defaultOptions:tZ}=l(),{addEvent:t$,correctFloat:t_,crisp:tQ,defined:tJ,destroyObjectProperties:t0,fireEvent:t1,merge:t2,pick:t3,removeEvent:t5}=l();class t4{static compose(e){tY.compose(e,t4)}static swapXY(e,t){return t&&e.forEach(e=>{let t,i=e.length;for(let n=0;n<i;n+=2)"number"==typeof(t=e[n+1])&&(e[n+1]=e[n+2],e[n+2]=t)}),e}constructor(e,t,i){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(e,t,i)}addEvents(){let e=this.options.inverted?[1,0]:[0,1],t=this.scrollbarButtons,i=this.scrollbarGroup.element,n=this.track.element,s=this.mouseDownHandler.bind(this),r=this.mouseMoveHandler.bind(this),o=this.mouseUpHandler.bind(this),a=[[t[e[0]].element,"click",this.buttonToMinClick.bind(this)],[t[e[1]].element,"click",this.buttonToMaxClick.bind(this)],[n,"click",this.trackClick.bind(this)],[i,"mousedown",s],[i.ownerDocument,"mousemove",r],[i.ownerDocument,"mouseup",o],[i,"touchstart",s],[i.ownerDocument,"touchmove",r],[i.ownerDocument,"touchend",o]];a.forEach(function(e){t$.apply(null,e)}),this._events=a}buttonToMaxClick(e){let t=(this.to-this.from)*t3(this.options.step,.2);this.updatePosition(this.from+t,this.to+t),t1(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:e})}buttonToMinClick(e){let t=t_(this.to-this.from)*t3(this.options.step,.2);this.updatePosition(t_(this.from-t),t_(this.to-t)),t1(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:e})}cursorToScrollbarPosition(e){let t=this.