PageSourceSearch

https://price.ru/vue3/DDrTOm4s.js

js price.ru collected 2026-10-02 05:01:48 UTC 142,331 bytes, 2 lines download raw bytes

1import{cB as ht}from"./CSpsc2oa.js";(function(){try{var Q=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};Q.SENTRY_RELEASE={id:"df7ca7a972abe0a2a56b13d50d3194f0664055e5"};var $=new Q.Error().stack;$&&(Q._sentryDebugIds=Q._sentryDebugIds||{},Q._sentryDebugIds[$]="e17e5c82-2560-457a-a819-dcfacb06b2f5",Q._sentryDebugIdIdentifier="sentry-dbid-e17e5c82-2560-457a-a819-dcfacb06b2f5")}catch{}})();function ct(Q,$){for(var u=0;u<$.length;u++){const V=$[u];if(typeof V!="string"&&!Array.isArray(V)){for(const F in V)if(F!=="default"&&!(F in Q)){const U=Object.getOwnPropertyDescriptor(V,F);U&&Object.defineProperty(Q,F,U.get?U:{enumerable:!0,get:()=>V[F]})}}}return Object.freeze(Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"}))}var rt={exports:{}},at;function dt(){return at||(at=1,(function(Q){(function($){Q.exports?($.default=$,Q.exports=$):$(typeof Highcharts<"u"?Highcharts:void 0)})(function($){var u=$?$._modules:{};function V(F,U,L,P){F.hasOwnProperty(U)||(F[U]=P.apply(null,L),typeof CustomEvent=="function"&&$.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:U,module:F[U]}})))}V(u,"Accessibility/Utils/HTMLUtilities.js",[u["Core/Globals.js"],u["Core/Utilities.js"]],function(F,U){let{doc:L,win:P}=F,{css:O}=U,D=P.EventTarget&&new P.EventTarget||"none";function N(f){if(typeof P.MouseEvent=="function")return new P.MouseEvent(f.type,f);if(L.createEvent){let g=L.createEvent("MouseEvent");if(g.initMouseEvent)return g.initMouseEvent(f.type,f.bubbles,f.cancelable,f.view||P,f.detail,f.screenX,f.screenY,f.clientX,f.clientY,f.ctrlKey,f.altKey,f.shiftKey,f.metaKey,f.button,f.relatedTarget),g}return S(f.type)}function S(f,g,d){let r=g||{x:0,y:0};if(typeof P.MouseEvent=="function")return new P.MouseEvent(f,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:d||D,view:P,detail:f==="click"?1:0,screenX:r.x,screenY:r.y,clientX:r.x,clientY:r.y});if(L.createEvent){let i=L.createEvent("MouseEvent");if(i.initMouseEvent)return i.initMouseEvent(f,!0,!0,P,f==="click"?1:0,r.x,r.y,r.x,r.y,!1,!1,!1,!1,0,null),i}return{type:f}}return{addClass:function(f,g){f.classList?f.classList.add(g):0>f.className.indexOf(g)&&(f.className+=" "+g)},cloneMouseEvent:N,cloneTouchEvent:function(f){let g=r=>{let i=[];for(let o=0;o<r.length;++o){let e=r.item(o);e&&i.push(e)}return i};if(typeof P.TouchEvent=="function"){let r=new P.TouchEvent(f.type,{touches:g(f.touches),targetTouches:g(f.targetTouches),changedTouches:g(f.changedTouches),ctrlKey:f.ctrlKey,shiftKey:f.shiftKey,altKey:f.altKey,metaKey:f.metaKey,bubbles:f.bubbles,cancelable:f.cancelable,composed:f.composed,detail:f.detail,view:f.view});return f.defaultPrevented&&r.preventDefault(),r}let d=N(f);return d.touches=f.touches,d.changedTouches=f.changedTouches,d.targetTouches=f.targetTouches,d},escapeStringForHTML:function(f){return f.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},getElement:function(f){return L.getElementById(f)},getFakeMouseEvent:S,getHeadingTagNameForElement:function(f){let g=o=>"h"+Math.min(6,parseInt(o.slice(1),10)+1),d=o=>/^H[1-6]$/i.test(o),r=o=>{let e=o;for(;e=e.previousSibling;){let n=e.tagName||"";if(d(n))return n}return""},i=o=>{let e=r(o);if(e)return g(e);let n=o.parentElement;if(!n)return"p";let a=n.tagName;return d(a)?g(a):i(n)};return i(f)},removeChildNodes:function(f){for(;f.lastChild;)f.removeChild(f.lastChild)},removeClass:function(f,g){f.classList?f.classList.remove(g):f.className=f.className.replace(RegExp(g,"g"),"")},removeElement:function(f){f&&f.parentNode&&f.parentNode.removeChild(f)},reverseChildNodes:function(f){let g=f.childNodes.length;for(;g--;)f.appendChild(f.childNodes[g])},simulatedEventTarget:D,stripHTMLTagsFromString:function(f,g=!1){return typeof f=="string"?g?f.replace(/<\/?[^>]+(>|$)/g,""):f.replace(/<\/?(?!\s)[^>]+(>|$)/g,""):f},visuallyHideElement:function(f){O(f,{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})}}}),V(u,"Accessibility/A11yI18n.js",[u["Core/Templating.js"],u["Core/Utilities.js"]],function(F,U){var L;let{format:P}=F,{getNestedProperty:O,pick:D}=U;return(function(N){function S(g,d,r){let i=(t,l)=>{let c=t.slice(l||0),A=c.indexOf("{"),j=c.indexOf("}");if(A>-1&&j>A)return{statement:c.substring(A+1,j),begin:l+A+1,end:l+j}},o=[],e,n,a=0;do e=i(g,a),(n=g.substring(a,e&&e.begin-1)).length&&o.push({value:n,type:"constant"}),e&&o.push({value:e.statement,type:"statement"}),a=e?e.end+1:a+1;while(e);return o.forEach(t=>{t.type==="statement"&&(t.value=(function(l,c){let A,j,k=l.indexOf("#each("),m=l.indexOf("#plural("),p=l.indexOf("["),E=l.indexOf("]");
vendor: 4,567 bytes, line 1
1if(k>-1){let x=l.slice(k).indexOf(")")+k,v=l.substring(0,k),w=l.substring(x+1),s=l.substring(k+6,x).split(","),h=Number(s[1]),b;if(j="",A=O(s[0],c)){b=(h=isNaN(h)?A.length:h)<0?A.length+h:Math.min(h,A.length);for(let C=0;C<b;++C)j+=v+A[C]+w}return j.length?j:""}if(m>-1){var y;let x=l.slice(m).indexOf(")")+m,v=l.substring(m+8,x).split(",");switch(Number(O(v[0],c))){case 0:j=D(v[4],v[1]);break;case 1:j=D(v[2],v[1]);break;case 2:j=D(v[3],v[1]);break;default:j=v[1]}return j?(y=j).trim&&y.trim()||y.replace(/^\s+|\s+$/g,""):""}if(p>-1){let x,v=l.substring(0,p),w=Number(l.substring(p+1,E));return A=O(v,c),!isNaN(w)&&A&&(w<0?(x=A[A.length+w])===void 0&&(x=A[0]):(x=A[w])===void 0&&(x=A[A.length-1])),x!==void 0?x:""}return"{"+l+"}"})(t.value,d))}),P(o.reduce((t,l)=>t+l.value,""),d,r)}function f(g,d){let r=g.split("."),i=this.options.lang,o=0;for(;o<r.length;++o)i=i&&i[r[o]];return typeof i=="string"?S(i,d,this):""}N.compose=function(g){let d=g.prototype;d.langFormat||(d.langFormat=f)},N.i18nFormat=S})(L||(L={})),L}),V(u,"Accessibility/Utils/ChartUtilities.js",[u["Core/Globals.js"],u["Accessibility/Utils/HTMLUtilities.js"],u["Core/Utilities.js"]],function(F,U,L){let{doc:P}=F,{stripHTMLTagsFromString:O}=U,{defined:D,find:N,fireEvent:S}=L;function f(d){if(d.points&&d.points.length){let r=N(d.points,i=>!!i.graphic);return r&&r.graphic&&r.graphic.element}}function g(d){let r=f(d);return r&&r.parentNode||d.graph&&d.graph.element||d.group&&d.group.element}return{fireEventOnWrappedOrUnwrappedElement:function d(r,i){let o=i.type,e=r.hcEvents;P.createEvent&&(r.dispatchEvent||r.fireEvent)?r.dispatchEvent?r.dispatchEvent(i):r.fireEvent(o,i):e&&e[o]?S(r,o,i):r.element&&d(r.element,i)},getChartTitle:function(d){return O(d.options.title.text||d.langFormat("accessibility.defaultChartTitle",{chart:d}),d.renderer.forExport)},getAxisDescription:function(d){return d&&(d.options.accessibility?.description||d.axisTitle?.textStr||d.options.id||d.categories&&"categories"||d.dateTime&&"Time"||"values")},getAxisRangeDescription:function(d){let r=d.options||{};return r.accessibility&&r.accessibility.rangeDescription!==void 0?r.accessibility.rangeDescription:d.categories?(function(i){let o=i.chart;return i.dataMax&&i.dataMin?o.langFormat("accessibility.axis.rangeCategories",{chart:o,axis:i,numCategories:i.dataMax-i.dataMin+1}):""})(d):d.dateTime&&(d.min===0||d.dataMin===0)?(function(i){let o=i.chart,e={},n=i.dataMin||i.min||0,a=i.dataMax||i.max||0,t="Seconds";e.Seconds=(a-n)/1e3,e.Minutes=e.Seconds/60,e.Hours=e.Minutes/60,e.Days=e.Hours/24,["Minutes","Hours","Days"].forEach(function(c){e[c]>2&&(t=c)});let l=e[t].toFixed(t!=="Seconds"&&t!=="Minutes"?1:0);return o.langFormat("accessibility.axis.timeRange"+t,{chart:o,axis:i,range:l.replace(".0","")})})(d):(function(i){let o=i.chart,e=o.options,n=e&&e.accessibility&&e.accessibility.screenReaderSection.axisRangeDateFormat||"",a={min:i.dataMin||i.min||0,max:i.dataMax||i.max||0},t=function(l){return i.dateTime?o.time.dateFormat(n,a[l]):a[l].toString()};return o.langFormat("accessibility.axis.rangeFromTo",{chart:o,axis:i,rangeFrom:t("min"),rangeTo:t("max")})})(d)},getPointFromXY:function(d,r,i){let o=d.length,e;for(;o--;)if(e=N(d[o].points||[],function(n){return n.x===r&&n.y===i}))return e},getSeriesFirstPointElement:f,getSeriesFromName:function(d,r){return r?(d.series||[]).filter(function(i){return i.name===r}):d.series},getSeriesA11yElement:g,unhideChartElementFromAT:function d(r,i){i.setAttribute("aria-hidden",!1),i!==r.renderTo&&i.parentNode&&i.parentNode!==P.body&&(Array.prototype.forEach.call(i.parentNode.childNodes,function(o){o.hasAttribute("aria-hidden")||o.setAttribute("aria-hidden",!0)}),d(r,i.parentNode))},hideSeriesFromAT:function(d){let r=g(d);r&&r.setAttribute("aria-hidden",!0)},scrollAxisToPoint:function(d){let r=d.series.xAxis,i=d.series.yAxis,o=r&&r.scrollbar?r:i,e=o&&o.scrollbar;if(e&&D(e.to)&&D(e.from)){let n=e.to-e.from,a=(function(t,l){if(!D(t.dataMin)||!D(t.dataMax))return 0;let c=t.toPixels(t.dataMin),A=t.toPixels(t.dataMax),j=t.coll==="xAxis"?"x":"y";return(t.toPixels(l[j]||0)-c)/(A-c)})(o,d);e.updatePosition(a-n/2,a+n/2),S(e,"changed",{from:e.from,to:e.to,trigger:"scrollbar",DOMEvent:null})}}}}),V(u,"Accessibility/Utils/DOMElementProvider.js",[u["Core/Globals.js"],u["Accessibility/Utils/HTMLUtilities.js"]],function(F,U){let{doc:L}=F,{removeElement:P}=U;return class{constructor(){this.elements=[]}createElement(){let O=L.createElement.apply(L,arguments);return this.elements.push(O),O}removeElement(O){P(O),this.elements.splice(this.elements.indexOf(O),1)}
1destroyCreatedElements(){this.elements.forEach(function(O){P(O)}),this.elements=[]}}}),V(u,"Accessibility/Utils/EventProvider.js",[u["Core/Globals.js"],u["Core/Utilities.js"]],function(F,U){let{addEvent:L}=U;return class{constructor(){this.eventRemovers=[]}addEvent(){let P=L.apply(F,arguments);return this.eventRemovers.push({element:arguments[0],remover:P}),P}removeEvent(P){let O=this.eventRemovers.map(D=>D.remover).indexOf(P);this.eventRemovers[O].remover(),this.eventRemovers.splice(O,1)}removeAddedEvents(){this.eventRemovers.map(P=>P.remover).forEach(P=>P()),this.eventRemovers=[]}}}),V(u,"Accessibility/AccessibilityComponent.js",[u["Accessibility/Utils/ChartUtilities.js"],u["Accessibility/Utils/DOMElementProvider.js"],u["Accessibility/Utils/EventProvider.js"],u["Accessibility/Utils/HTMLUtilities.js"]],function(F,U,L,P){let{fireEventOnWrappedOrUnwrappedElement:O}=F,{getFakeMouseEvent:D}=P;return class{destroy(){}getKeyboardNavigation(){return[]}init(){}onChartRender(){}onChartUpdate(){}initBase(N,S){this.chart=N,this.eventProvider=new L,this.domElementProvider=new U,this.proxyProvider=S,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(N,S,f,g){return this.eventProvider.addEvent(N,S,f,g)}createElement(N,S){return this.domElementProvider.createElement(N,S)}fakeClickEvent(N){O(N,D("click"))}destroyBase(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()}}}),V(u,"Accessibility/KeyboardNavigationHandler.js",[u["Core/Utilities.js"]],function(F){let{find:U}=F;return class{constructor(L,P){this.chart=L,this.keyCodeMap=P.keyCodeMap||[],this.validate=P.validate,this.init=P.init,this.terminate=P.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}run(L){let P=L.which||L.keyCode,O=this.response.noHandler,D=U(this.keyCodeMap,function(N){return N[0].indexOf(P)>-1});return D?O=D[1].call(this,P,L):P===9&&(O=this.response[L.shiftKey?"prev":"next"]),O}}}),V(u,"Accessibility/Components/ContainerComponent.js",[u["Accessibility/AccessibilityComponent.js"],u["Accessibility/KeyboardNavigationHandler.js"],u["Accessibility/Utils/ChartUtilities.js"],u["Core/Globals.js"],u["Accessibility/Utils/HTMLUtilities.js"]],function(F,U,L,P,O){let{unhideChartElementFromAT:D,getChartTitle:N}=L,{doc:S}=P,{stripHTMLTagsFromString:f}=O;return class extends F{onChartUpdate(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()}handleSVGTitleElement(){let g=this.chart,d="highcharts-title-"+g.index,r=f(g.langFormat("accessibility.svgContainerTitle",{chartTitle:N(g)}));if(r.length){let i=this.svgTitleElement=this.svgTitleElement||S.createElementNS("http://www.w3.org/2000/svg","title");i.textContent=r,i.id=d,g.renderTo.insertBefore(i,g.renderTo.firstChild)}}setSVGContainerLabel(){let g=this.chart,d=g.langFormat("accessibility.svgContainerLabel",{chartTitle:N(g)});g.renderer.box&&d.length&&g.renderer.box.setAttribute("aria-label",d)}setGraphicContainerAttrs(){let g=this.chart,d=g.langFormat("accessibility.graphicContainerLabel",{chartTitle:N(g)});d.length&&g.container.setAttribute("aria-label",d)}setRenderToAttrs(){let g=this.chart,d=g.options.accessibility.landmarkVerbosity!=="disabled",r=g.langFormat("accessibility.chartContainerLabel",{title:N(g),chart:g});r&&(g.renderTo.setAttribute("role",d?"region":"group"),g.renderTo.setAttribute("aria-label",r))}makeCreditsAccessible(){let g=this.chart,d=g.credits;d&&(d.textStr&&d.element.setAttribute("aria-label",g.langFormat("accessibility.credits",{creditsStr:f(d.textStr,g.renderer.forExport)})),D(g,d.element))}getKeyboardNavigation(){let g=this.chart;return new U(g,{keyCodeMap:[],validate:function(){return!0},init:function(){let d=g.accessibility;d&&d.keyboardNavigation.tabindexContainer.focus()}})}destroy(){this.chart.renderTo.setAttribute("aria-hidden",!0)}}}),V(u,"Accessibility/FocusBorder.js",[u["Core/Utilities.js"]],function(F){var U;let{addEvent:L,pick:P}=F;return(function(O){let D=["x","y","transform","width","height","r","d","stroke-width"];function N(){let d=this.focusElement,r=this.options.accessibility.keyboardNavigation.focusBorder;d&&(d.removeFocusBorder(),r.enabled&&d.addFocusBorder(r.margin,{stroke:r.style.color,strokeWidth:r.style.lineWidth,r:r.style.borderRadius}))}function S(d,r){let i=this.options.accessibility.keyboardNavigation.focusBorder,o=r||d.element;o&&o.focus&&(o.hcEvents&&o.hcEvents.focusin||L(o,"focusin",function(){}
1),o.focus(),i.hideBrowserFocusOutline&&(o.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=d,this.renderFocusBorder()}function f(d,r){this.focusBorder&&this.removeFocusBorder();let i=this.getBBox(),o=P(d,3),e=this.parentGroup,n=this.scaleX||e&&e.scaleX,a=this.scaleY||e&&e.scaleY,t=(n?!a:a)?Math.abs(n||a||1):(Math.abs(n||1)+Math.abs(a||1))/2;i.x+=this.translateX?this.translateX:0,i.y+=this.translateY?this.translateY:0;let l=i.x-o,c=i.y-o,A=i.width+2*o,j=i.height+2*o,k=!!this.text;if(this.element.nodeName==="text"||k){let m,p,E=!!this.rotation,y=k?{x:E?1:0,y:0}:(m=0,p=0,this.attr("text-anchor")==="middle"?m=p=.5:this.rotation?m=.25:p=.75,{x:m,y:p}),x=+this.attr("x"),v=+this.attr("y");if(isNaN(x)||(l=x-i.width*y.x-o),isNaN(v)||(c=v-i.height*y.y-o),k&&E){let w=A;A=j,j=w,isNaN(x)||(l=x-i.height*y.x-o),isNaN(v)||(c=v-i.width*y.y-o)}}this.focusBorder=this.renderer.rect(l,c,A,j,parseInt((r&&r.r||0).toString(),10)/t).addClass("highcharts-focus-border").attr({zIndex:99}).add(e),this.renderer.styledMode||this.focusBorder.attr({stroke:r&&r.stroke,"stroke-width":(r&&r.strokeWidth||0)/t}),(function(m,...p){m.focusBorderUpdateHooks||(m.focusBorderUpdateHooks={},D.forEach(E=>{let y=E+"Setter",x=m[y]||m._defaultSetter;m.focusBorderUpdateHooks[y]=x,m[y]=function(){let v=x.apply(m,arguments);return m.addFocusBorder.apply(m,p),v}}))})(this,d,r),(function(m){if(m.focusBorderDestroyHook)return;let p=m.destroy;m.destroy=function(){return m.focusBorder&&m.focusBorder.destroy&&m.focusBorder.destroy(),p.apply(m,arguments)},m.focusBorderDestroyHook=p})(this)}function g(){var d;d=this,d.focusBorderUpdateHooks&&(Object.keys(d.focusBorderUpdateHooks).forEach(r=>{let i=d.focusBorderUpdateHooks[r];i===d._defaultSetter?delete d[r]:d[r]=i}),delete d.focusBorderUpdateHooks),this.focusBorderDestroyHook&&(this.destroy=this.focusBorderDestroyHook,delete this.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}O.compose=function(d,r){let i=d.prototype,o=r.prototype;i.renderFocusBorder||(i.renderFocusBorder=N,i.setFocusToElement=S),o.addFocusBorder||(o.addFocusBorder=f,o.removeFocusBorder=g)}})(U||(U={})),U}),V(u,"Accessibility/Utils/Announcer.js",[u["Core/Renderer/HTML/AST.js"],u["Accessibility/Utils/DOMElementProvider.js"],u["Core/Globals.js"],u["Accessibility/Utils/HTMLUtilities.js"],u["Core/Utilities.js"]],function(F,U,L,P,O){let{doc:D}=L,{addClass:N,visuallyHideElement:S}=P,{attr:f}=O;return class{constructor(g,d){this.chart=g,this.domElementProvider=new U,this.announceRegion=this.addAnnounceRegion(d)}destroy(){this.domElementProvider.destroyCreatedElements()}announce(g){F.setElementHTML(this.announceRegion,g),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(()=>{this.announceRegion.innerHTML=F.emptyHTML,delete this.clearAnnouncementRegionTimer},3e3)}addAnnounceRegion(g){let d=this.chart.announcerContainer||this.createAnnouncerContainer(),r=this.domElementProvider.createElement("div");return f(r,{"aria-hidden":!1,"aria-live":g,"aria-atomic":!0}),this.chart.styledMode?N(r,"highcharts-visually-hidden"):S(r),d.appendChild(r),r}createAnnouncerContainer(){let g=this.chart,d=D.createElement("div");return f(d,{"aria-hidden":!1,class:"highcharts-announcer-container"}),d.style.position="relative",g.renderTo.insertBefore(d,g.renderTo.firstChild),g.announcerContainer=d,d}}}),V(u,"Accessibility/Components/AnnotationsA11y.js",[u["Accessibility/Utils/HTMLUtilities.js"]],function(F){let{escapeStringForHTML:U,stripHTMLTagsFromString:L}=F;function P(S){return(S.annotations||[]).reduce((f,g)=>(g.options&&g.options.visible!==!1&&(f=f.concat(g.labels)),f),[])}function O(S){return S.options&&S.options.accessibility&&S.options.accessibility.description||S.graphic&&S.graphic.text&&S.graphic.text.textStr||""}function D(S){let f=S.options&&S.options.accessibility&&S.options.accessibility.description;if(f)return f;let g=S.chart,d=O(S),r=S.points,i=t=>t.graphic&&t.graphic.element&&t.graphic.element.getAttribute("aria-label")||"",o=r.filter(t=>!!t.graphic).map(t=>{let l=t.accessibility&&t.accessibility.valueDescription||i(t),c=t&&t.series.name||"";return(c?c+", ":"")+"data point "+l}).filter(t=>!!t),e=o.length,n=e>1?"MultiplePoints":e?"SinglePoint":"NoPoints",a={annotationText:d,annotation:S,numPoints:e,annotationPoint:o[0],additionalAnnotationPoints:o.slice(1)};return g.langFormat("accessibility.screenReaderSection.annotations.description"+n,a)}function N(S){return P(S).map(f=>{let g=U(L(D(f),S.renderer.forExport));return g?`<li>${g}</li>`:""})}return{getAnnotationsInfoHTML:function(S){let f=S.annotations;return f&&f.length?`<ul style="list-style-type: none">${N(S).join(" ")}</ul>`:""},getAnnotationLabelDescription:D,getAnnotationListItems:N,getPointAnnotationTexts:function(S){let f=P(S.series.chart).filter(g=>g.points.indexOf(S)>-1);return f.length?f.map(g=>`${O(g)}`):[]}}}),V(u,"Accessibility/Components/InfoRegionsComponent.js",[u["Accessibility/A11yI18n.js"],u["Accessibility/AccessibilityComponent.js"],u["Accessibility/Utils/Announcer.js"],u["Accessibility/Components/AnnotationsA11y.js"],u["Core/Renderer/HTML/AST.js"],u["Accessibility/Utils/ChartUtilities.js"],u["Core/Templating.js"],u["Core/Globals.js"],u["Accessibility/Utils/HTMLUtilities.js"],u["Core/Utilities.js"]],function(F,U,L,P,O,D,N,S,f,g){let{getAnnotationsInfoHTML:d}=P,{getAxisDescription:r,getAxisRangeDescription:i,getChartTitle:o,unhideChartElementFromAT:e}=D,{format:n}=N,{doc:a}=S,{addClass:t,getElement:l,getHeadingTagNameForElement:c,stripHTMLTagsFromString:A,visuallyHideElement:j}=f,{attr:k,pick:m,replaceNested:p}=g;function E(y){return p(y,[/<([\w\-.:!]+)\b[^<>]*>\s*<\/\1>/g,""])}return class extends U{constructor(){super(...arguments),this.screenReaderSections={}}init(){let y=this.chart,x=this;this.initRegionsDefinitions(),this.addEvent(y,"aftergetTableAST",function(v){x.onDataTableCreated(v)}),this.addEvent(y,"afterViewData",function(v){v.wasHidden&&(x.dataTableDiv=v.element,setTimeout(function(){x.focusDataTable()},300))}),this.addEvent(y,"afterHideData",function(){x.viewDataTableButton&&x.viewDataTableButton.setAttribute("aria-expanded","fal
1se")}),y.exporting&&this.addEvent(y,"afterPrint",function(){x.updateAllScreenReaderSections()}),this.announcer=new L(y,"assertive")}initRegionsDefinitions(){let y=this,x=this.chart.options.accessibility;this.screenReaderSections={before:{element:null,buildContent:function(v){let w=x.screenReaderSection.beforeChartFormatter;return w?w(v):y.defaultBeforeChartFormatter(v)},insertIntoDOM:function(v,w){w.renderTo.insertBefore(v,w.renderTo.firstChild)},afterInserted:function(){y.sonifyButtonId!==void 0&&y.initSonifyButton(y.sonifyButtonId),y.dataTableButtonId!==void 0&&y.initDataTableButton(y.dataTableButtonId)}},after:{element:null,buildContent:function(v){let w=x.screenReaderSection.afterChartFormatter;return w?w(v):y.defaultAfterChartFormatter()},insertIntoDOM:function(v,w){w.renderTo.insertBefore(v,w.container.nextSibling)},afterInserted:function(){y.chart.accessibility&&x.keyboardNavigation.enabled&&y.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}}onChartRender(){this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),this.updateAllScreenReaderSections()}updateAllScreenReaderSections(){let y=this;Object.keys(this.screenReaderSections).forEach(function(x){y.updateScreenReaderSection(x)})}getLinkedDescriptionElement(){let y=this.chart.options.accessibility.linkedDescription;if(!y)return;if(typeof y!="string")return y;let x=n(y,this.chart),v=a.querySelectorAll(x);if(v.length===1)return v[0]}setLinkedDescriptionAttrs(){let y=this.linkedDescriptionElement;y&&(y.setAttribute("aria-hidden","true"),t(y,"highcharts-linked-description"))}updateScreenReaderSection(y){let x=this.chart,v=this.screenReaderSections[y],w=v.buildContent(x),s=v.element=v.element||this.createElement("div"),h=s.firstChild||this.createElement("div");w?(this.setScreenReaderSectionAttribs(s,y),O.setElementHTML(h,w),s.appendChild(h),v.insertIntoDOM(s,x),x.styledMode?t(h,"highcharts-visually-hidden"):j(h),e(x,h),v.afterInserted&&v.afterInserted()):(s.parentNode&&s.parentNode.removeChild(s),v.element=null)}setScreenReaderSectionAttribs(y,x){let v=this.chart,w=v.langFormat("accessibility.screenReaderSection."+x+"RegionLabel",{chart:v,chartTitle:o(v)});k(y,{id:`highcharts-screen-reader-region-${x}-${v.index}`,"aria-label":w||void 0}),y.style.position="relative",w&&y.setAttribute("role",v.options.accessibility.landmarkVerbosity==="all"?"region":"group")}defaultBeforeChartFormatter(){let y=this.chart,x=y.options.accessibility.screenReaderSection.beforeChartFormat;if(!x)return"";let v=this.getAxesDescription(),w=y.sonify&&y.options.sonification&&y.options.sonification.enabled,s="highcharts-a11y-sonify-data-btn-"+y.index,h="hc-linkto-highcharts-data-table-"+y.index,b=d(y),C=y.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:y}),M={headingTagName:c(y.renderTo),chartTitle:o(y),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:v.xAxis,yAxisDescription:v.yAxis,playAsSoundButton:w?this.getSonifyButtonText(s):"",viewTableButton:y.getCSV?this.getDataTableButtonText(h):"",annotationsTitle:b?C:"",annotationsList:b},B=F.i18nFormat(x,M,y);return this.dataTableButtonId=h,this.sonifyButtonId=s,E(B)}defaultAfterChartFormatter(){let y=this.chart,x=y.options.accessibility.screenReaderSection.afterChartFormat;if(!x)return"";let v={endOfChartMarker:this.getEndOfChartMarkerText()};return E(F.i18nFormat(x,v,y))}getLinkedDescription(){let y=this.linkedDescriptionElement;return A(y&&y.innerHTML||"",this.chart.renderer.forExport)}getLongdescText(){let y=this.chart.options,x=y.caption,v=x&&x.text,w=this.getLinkedDescription();return y.accessibility.description||w||v||""}getTypeDescriptionText(){let y=this.chart;return y.types?y.options.accessibility.typeDescription||(function(x,v){let w=v[0],s=x.series&&x.series[0]||{},h=x.mapView&&x.mapView.geoMap&&x.mapView.geoMap.title,b={numSeries:x.series.length,numPoints:s.points&&s.points.length,chart:x,mapTitle:h};return w?w==="map"||w==="tiledwebmap"?b.mapTitle?x.langFormat("accessibility.chartTypes.mapTypeDescription",b):x.langFormat("accessibility.chartTypes.unknownMap",b):x.types.length>1?x.langFormat("accessibility.chartTypes.combinationChart",b):(function(C,M,B){let T=M[0],K=C.langFormat("accessibility.seriesTypeDescriptions."+T,B),I=C.series&&C.series.length<2?"Single":"Multiple";return(C.langFormat("accessibility.chartTypes."+T+I,B)||C.langFormat("accessibility.chartTypes.default"+I,B))+(K?" "+K:"")})(x,v,b):x.langFormat("accessibility.chartTypes.emptyChart",b)})(y,y.types):""}getDataTableButtonText(y){let x=this.chart;return'<button id="'+y+'">'+x.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:x,chartTitle:o(x)})+"</button>"}getSonifyButtonText(y){let x=this.chart;return x.options.sonification&&x.options.sonification.enabled===!1?"":'<button id="'+y+'">'+x.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:x,chartTitle:o(x)})+"</button>"}getSubtitleText(){let y=this.chart.options.subtitle;return A(y&&y.text||"",this.chart.renderer.forExport)}getEndOfChartMarkerText(){let y=l(`highcharts-end-of-chart-marker-${this.chart.index}`);
vendor: 4,130 bytes, line 1
1if(y)return y.outerHTML;let x=this.chart,v=x.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:x});return'<div id="highcharts-end-of-chart-marker-'+x.index+'">'+v+"</div>"}onDataTableCreated(y){let x=this.chart;if(x.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");let v=y.tree.attributes||{};v.tabindex=-1,v.summary=x.langFormat("accessibility.table.tableSummary",{chart:x}),y.tree.attributes=v}}focusDataTable(){let y=this.dataTableDiv,x=y&&y.getElementsByTagName("table")[0];x&&x.focus&&x.focus()}initSonifyButton(y){let x=this.sonifyButton=l(y),v=this.chart,w=s=>{x&&(x.setAttribute("aria-hidden","true"),x.setAttribute("aria-label","")),s.preventDefault(),s.stopPropagation();let h=v.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:v});this.announcer.announce(h),setTimeout(()=>{x&&(x.removeAttribute("aria-hidden"),x.removeAttribute("aria-label")),v.sonify&&v.sonify()},1e3)};x&&v&&(x.setAttribute("tabindex",-1),x.onclick=function(s){(v.options.accessibility&&v.options.accessibility.screenReaderSection.onPlayAsSoundClick||w).call(this,s,v)})}initDataTableButton(y){let x=this.viewDataTableButton=l(y),v=this.chart,w=y.replace("hc-linkto-","");x&&(k(x,{tabindex:-1,"aria-expanded":!!l(w)}),x.onclick=v.options.accessibility.screenReaderSection.onViewDataTableClick||function(){v.viewData()})}getAxesDescription(){let y=this.chart,x=function(C,M){let B=y[C];return B.length>1||B[0]&&m(B[0].options.accessibility&&B[0].options.accessibility.enabled,M)},v=!!y.types&&0>y.types.indexOf("map")&&0>y.types.indexOf("treemap")&&0>y.types.indexOf("tilemap"),w=!!y.hasCartesianSeries,s=x("xAxis",!y.angular&&w&&v),h=x("yAxis",w&&v),b={};return s&&(b.xAxis=this.getAxisDescriptionText("xAxis")),h&&(b.yAxis=this.getAxisDescriptionText("yAxis")),b}getAxisDescriptionText(y){let x=this.chart,v=x[y];return x.langFormat("accessibility.axis."+y+"Description"+(v.length>1?"Plural":"Singular"),{chart:x,names:v.map(function(w){return r(w)}),ranges:v.map(function(w){return i(w)}),numAxes:v.length})}destroy(){this.announcer&&this.announcer.destroy()}}}),V(u,"Accessibility/Components/MenuComponent.js",[u["Core/Utilities.js"],u["Accessibility/AccessibilityComponent.js"],u["Accessibility/KeyboardNavigationHandler.js"],u["Accessibility/Utils/ChartUtilities.js"],u["Accessibility/Utils/HTMLUtilities.js"]],function(F,U,L,P,O){let{attr:D}=F,{getChartTitle:N,unhideChartElementFromAT:S}=P,{getFakeMouseEvent:f}=O;function g(r){return r.exportSVGElements&&r.exportSVGElements[0]}class d extends U{init(){let i=this.chart,o=this;this.addEvent(i,"exportMenuShown",function(){o.onMenuShown()}),this.addEvent(i,"exportMenuHidden",function(){o.onMenuHidden()}),this.createProxyGroup()}onMenuHidden(){let i=this.chart.exportContextMenu;i&&i.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")}onMenuShown(){let i=this.chart,o=i.exportContextMenu;o&&(this.addAccessibleContextMenuAttribs(),S(i,o)),this.setExportButtonExpandedState("true")}setExportButtonExpandedState(i){this.exportButtonProxy&&this.exportButtonProxy.innerElement.setAttribute("aria-expanded",i)}onChartRender(){let i=this.chart,o=i.focusElement,e=i.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&o&&o===i.exportingGroup&&(o.focusBorder?i.setFocusToElement(o,this.exportButtonProxy.innerElement):e&&e.keyboardNavigation.tabindexContainer.focus())}proxyMenuButton(){let i=this.chart,o=this.proxyProvider,e=g(i);(function(n){let a=n.options.exporting,t=g(n);return!!(a&&a.enabled!==!1&&a.accessibility&&a.accessibility.enabled&&t&&t.element)})(i)&&e&&(this.exportButtonProxy=o.addProxyElement("chartMenu",{click:e},"button",{"aria-label":i.langFormat("accessibility.exporting.menuButtonLabel",{chart:i,chartTitle:N(i)}),"aria-expanded":!1,title:i.options.lang.contextButtonTitle||null}))}createProxyGroup(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu")}addAccessibleContextMenuAttribs(){let i=this.chart,o=i.exportDivElements;if(o&&o.length){o.forEach(n=>
1{n&&(n.tagName!=="LI"||n.children&&n.children.length?n.setAttribute("aria-hidden","true"):n.setAttribute("tabindex",-1))});let e=o[0]&&o[0].parentNode;e&&D(e,{"aria-hidden":void 0,"aria-label":i.langFormat("accessibility.exporting.chartMenuLabel",{chart:i}),role:"list"})}}getKeyboardNavigation(){let i=this.keyCodes,o=this.chart,e=this;return new L(o,{keyCodeMap:[[[i.left,i.up],function(){return e.onKbdPrevious(this)}],[[i.right,i.down],function(){return e.onKbdNext(this)}],[[i.enter,i.space],function(){return e.onKbdClick(this)}]],validate:function(){return!!o.exporting&&o.options.exporting.enabled!==!1&&o.options.exporting.accessibility.enabled!==!1},init:function(){let n=e.exportButtonProxy,a=e.chart.exportingGroup;n&&a&&o.setFocusToElement(a,n.innerElement)},terminate:function(){o.hideExportMenu()}})}onKbdPrevious(i){let o=this.chart,e=o.options.accessibility,n=i.response,a=o.highlightedExportItemIx||0;for(;a--;)if(o.highlightExportItem(a))return n.success;return e.keyboardNavigation.wrapAround?(o.highlightLastExportItem(),n.success):n.prev}onKbdNext(i){let o=this.chart,e=o.options.accessibility,n=i.response;for(let a=(o.highlightedExportItemIx||0)+1;a<o.exportDivElements.length;++a)if(o.highlightExportItem(a))return n.success;return e.keyboardNavigation.wrapAround?(o.highlightExportItem(0),n.success):n.next}onKbdClick(i){let o=this.chart,e=o.exportDivElements[o.highlightedExportItemIx],n=g(o).element;return o.openMenu?this.fakeClickEvent(e):(this.fakeClickEvent(n),o.highlightExportItem(0)),i.response.success}}return(function(r){function i(){let a=g(this);if(a){let t=a.element;t.onclick&&t.onclick(f("click"))}}function o(){let a=this.exportDivElements;a&&this.exportContextMenu&&this.openMenu&&(a.forEach(t=>{t&&t.className==="highcharts-menu-item"&&t.onmouseout&&t.onmouseout(f("mouseout"))}),this.highlightedExportItemIx=0,this.exportContextMenu.hideMenu(),this.container.focus())}function e(a){let t=this.exportDivElements&&this.exportDivElements[a],l=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(t&&t.tagName==="LI"&&!(t.children&&t.children.length)){let c=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return t.focus&&c&&t.focus(),l&&l.onmouseout&&l.onmouseout(f("mouseout")),t.onmouseover&&t.onmouseover(f("mouseover")),this.highlightedExportItemIx=a,!0}return!1}function n(){if(this.exportDivElements){let a=this.exportDivElements.length;for(;a--;)if(this.highlightExportItem(a))return!0}return!1}r.compose=function(a){let t=a.prototype;t.hideExportMenu||(t.hideExportMenu=o,t.highlightExportItem=e,t.highlightLastExportItem=n,t.showExportMenu=i)}})(d||(d={})),d}),V(u,"Accessibility/KeyboardNavigation.js",[u["Core/Globals.js"],u["Accessibility/Components/MenuComponent.js"],u["Core/Utilities.js"],u["Accessibility/Utils/EventProvider.js"],u["Accessibility/Utils/HTMLUtilities.js"]],function(F,U,L,P,O){let{doc:D,win:N}=F,{addEvent:S,defined:f,fireEvent:g}=L,{getElement:d,simulatedEventTarget:r}=O;class i{constructor(e,n){this.currentModuleIx=NaN,this.modules=[],this.init(e,n)}init(e,n){let a=this.eventProvider=new P;this.chart=e,this.components=n,this.modules=[],this.currentModuleIx=0,this.update(),a.addEvent(this.tabindexContainer,"keydown",t=>this.onKeydown(t)),a.addEvent(this.tabindexContainer,"focus",t=>this.onFocus(t)),["mouseup","touchend"].forEach(t=>a.addEvent(D,t,l=>this.onMouseUp(l))),["mousedown","touchstart"].forEach(t=>a.addEvent(e.renderTo,t,()=>{this.isClickingChart=!0}))}update(e){let n=this.chart.options.accessibility,a=n&&n.keyboardNavigation,t=this.components;this.updateContainerTabindex(),a&&a.enabled&&e&&e.length?(this.modules=e.reduce(function(l,c){let A=t[c].getKeyboardNavigation();return l.concat(A)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())}updateExitAnchor(){let e=d(`highcharts-end-of-chart-marker-${this.chart.index}`);this.removeExitAnchor(),e?(this.makeElementAnExitAnchor(e),this.exitAnchor=e):this.createExitAnchor()}move(e){let n=this.modules&&this.modules[this.currentModuleIx];n&&n.terminate&&n.terminate(e),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=e;let a=this.modules&&this.modules[this.currentModuleIx];if(a){if(a.validate&&!a.validate())return this.move(e);
vendor: 10,040 bytes, line 1
1if(a.init)return a.init(e),!0}return this.currentModuleIx=0,this.exiting=!0,e>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1}onFocus(e){let n=this.chart,a=e.relatedTarget&&n.container.contains(e.relatedTarget),t=n.options.accessibility,l=t&&t.keyboardNavigation;if(l&&l.enabled&&!this.exiting&&!this.tabbingInBackwards&&!this.isClickingChart&&!a){let c=this.getFirstValidModuleIx();c!==null&&(this.currentModuleIx=c,this.modules[c].init(1))}this.keyboardReset=!1,this.exiting=!1}onMouseUp(e){if(delete this.isClickingChart,!this.keyboardReset&&e.relatedTarget!==r){let n=this.chart;if(!e.target||!n.container.contains(e.target)){let a=this.modules&&this.modules[this.currentModuleIx||0];a&&a.terminate&&a.terminate(),this.currentModuleIx=0}n.focusElement&&(n.focusElement.removeFocusBorder(),delete n.focusElement),this.keyboardReset=!0}}onKeydown(e){let n,a=e||N.event,t=this.modules&&this.modules.length&&this.modules[this.currentModuleIx],l=a.target;if((!l||l.nodeName!=="INPUT"||l.classList.contains("highcharts-a11y-proxy-element"))&&(this.keyboardReset=!1,this.exiting=!1,t)){let c=t.run(a);c===t.response.success?n=!0:c===t.response.prev?n=this.move(-1):c===t.response.next&&(n=this.move(1)),n&&(a.preventDefault(),a.stopPropagation())}}updateContainerTabindex(){let e,n=this.chart.options.accessibility,a=n&&n.keyboardNavigation,t=!(a&&a.enabled===!1),l=this.chart,c=l.container;l.renderTo.hasAttribute("tabindex")?(c.removeAttribute("tabindex"),e=l.renderTo):e=c,this.tabindexContainer=e;let A=e.getAttribute("tabindex");t&&!A?e.setAttribute("tabindex","0"):t||l.container.removeAttribute("tabindex")}createExitAnchor(){let e=this.chart,n=this.exitAnchor=D.createElement("div");e.renderTo.appendChild(n),this.makeElementAnExitAnchor(n)}makeElementAnExitAnchor(e){let n=this.tabindexContainer.getAttribute("tabindex")||0;e.setAttribute("class","highcharts-exit-anchor"),e.setAttribute("tabindex",n),e.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(e)}removeExitAnchor(){if(this.exitAnchor){let e=this.eventProvider.eventRemovers.find(n=>n.element===this.exitAnchor);e&&f(e.remover)&&this.eventProvider.removeEvent(e.remover),this.exitAnchor.parentNode&&this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor}}addExitAnchorEventsToEl(e){let n=this.chart,a=this;this.eventProvider.addEvent(e,"focus",function(t){let l=t||N.event,c=!(l.relatedTarget&&n.container.contains(l.relatedTarget)||a.exiting);if(n.focusElement&&delete n.focusElement,c){if(a.tabbingInBackwards=!0,a.tabindexContainer.focus(),delete a.tabbingInBackwards,l.preventDefault(),a.modules&&a.modules.length){a.currentModuleIx=a.modules.length-1;let A=a.modules[a.currentModuleIx];A&&A.validate&&!A.validate()?a.move(-1):A&&A.init(-1)}}else a.exiting=!1})}getFirstValidModuleIx(){let e=this.modules.length;for(let n=0;n<e;++n){let a=this.modules[n];if(!a.validate||a.validate())return n}return null}destroy(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")}}return(function(o){function e(){let a=this;g(this,"dismissPopupContent",{},function(){a.tooltip&&a.tooltip.hide(0),a.hideExportMenu()})}function n(a){(a.which||a.keyCode)===27&&F.charts&&F.charts.forEach(t=>{t&&t.dismissPopupContent&&t.dismissPopupContent()})}o.compose=function(a){U.compose(a);let t=a.prototype;return t.dismissPopupContent||(t.dismissPopupContent=e,S(D,"keydown",n)),a}})(i||(i={})),i}),V(u,"Accessibility/Components/LegendComponent.js",[u["Core/Animation/AnimationUtilities.js"],u["Core/Globals.js"],u["Core/Legend/Legend.js"],u["Core/Utilities.js"],u["Accessibility/AccessibilityComponent.js"],u["Accessibility/KeyboardNavigationHandler.js"],u["Accessibility/Utils/ChartUtilities.js"],u["Accessibility/Utils/HTMLUtilities.js"]],function(F,U,L,P,O,D,N,S){let{animObject:f}=F,{doc:g}=U,{addEvent:d,fireEvent:r,isNumber:i,pick:o,syncTimeout:e}=P,{getChartTitle:n}=N,{stripHTMLTagsFromString:a,addClass:t,removeClass:l}=S;function c(k){let m=k.legend&&k.legend.allItems,p=k.options.legend.accessibility||{},E=k.colorAxis&&k.colorAxis.some(y=>!y.dataClasses||!y.dataClasses.length);return!!(m&&m.length&&!E&&p.enabled!==!1)}function A(k,m){let p=m.legendItem||{};for(let E of(m.setState(k?"hover":"",!0),["group","label","symbol"])){let y=p[E],x=y&&y.element||y;x&&r(x,k?"mouseover":"mouseout")}}class j extends O{constructor(){super(...arguments),this.highlightedLegendItemIx=NaN,this.proxyGroup=null}init(){let m=this;this.recreateProxies(),this.addEvent(L,"afterScroll",function(){this.chart===m.chart&&(m.proxyProvider.updateGroupProxyElementPositions("legend"),m.updateLegendItemProxyVisibility(),m.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(m.highlightedLegendItemIx))}),this.addEvent(L,"afterPositionItem",function(p){this.chart===m.chart&&this.chart.renderer&&m.updateProxyPositionForItem(p.item)}),this.addEvent(L,"afterRender",function(){this.chart===m.chart&&this.chart.renderer&&m.recreateProxies()&&e(()=>m.proxyProvider.updateGroupProxyElementPositions("legend"),f(o(this.chart.renderer.globalAnimation,!0)).duration)})}updateLegendItemProxyVisibility(){let m,p=this.chart,E=p.legend,y=E.allItems||[],x=E.currentPage||1,v=E.clipHeight||0;y.forEach(w=>{if(w.a11yProxyElement){let s=E.pages&&E.pages.length,h=w.a11yProxyElement.element,b=!1;if(m=w.legendItem||{},s){let C=m.pageIx||0;b=(m.y||0)+(m.label?Math.round(m.label.getBBox().height):0)-E.pages[C]>v||C!==x-1}b?p.styledMode?t(h,"highcharts-a11y-invisible"):h.style.visibility="hidden":(l(h,"highcharts-a11y-invisible"),h.style.visibility="")}})}onChartRender(){c(this.chart)||this.removeProxies()}highlightAdjacentLegendPage(m){let p=this.chart,E=p.legend,y=(E.currentPage||1)+m,x=E.pages||[];if(y>0&&y<=x.length){let v=0;for(let w of E.allItems)((w.legendItem||{}).pageIx||0)+1===y&&p.highlightLegendItem(v)&&(this.highlightedLegendItemIx=v),++v}}updateProxyPositionForItem(m){m.a11yProxyElement&&m.a11yProxyElement.refreshPosition()}recreateProxies(){let m=g.activeElement,p=this.proxyGroup,E=m&&p&&p.contains(m);return this.removeProxies(),!!c(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),E&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)}removeProxies(){this.proxyProvider.removeGroup("legend")}updateLegendTitle(){let m=this.chart,p=a((m.legend&&m.legend.options.title&&m.legend.options.title.text||"").replace(/<br ?\/?>/g," "),m.renderer.forExport),E=m.langFormat("accessibility.legend.legendLabel"+(p?"":"NoTitle"),{chart:m,legendTitle:p,chartTitle:n(m)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":E})}addLegendProxyGroup(){let m=this.chart.options.accessibility.landmarkVerbosity==="all"?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:m})}proxyLegendItems(){let m,p=this;((this.chart.legend||{}).allItems||[]).forEach(E=>{(m=E.legendItem||{}).label&&m.label.element&&p.proxyLegendItem(E)})}proxyLegendItem(m){let p=m.legendItem||{};if(!p.label||!p.group)return;let E=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:a(m.name,this.chart.renderer.forExport),item:m}),y={tabindex:-1,"aria-pressed":m.visible,"aria-label":E},x=p.group.div?p.label:p.group;m.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:p.label,visual:x.element},"button",y)}getKeyboardNavigation(){let m=this.keyCodes,p=this,E=this.chart;return new D(E,{keyCodeMap:[[[m.left,m.right,m.up,m.down],function(y){return p.onKbdArrowKey(this,y)}],[[m.enter,m.space],function(){return p.onKbdClick(this)}],[[m.pageDown,m.pageUp],function(y){let x=y===m.pageDown?1:-1;return p.highlightAdjacentLegendPage(x),this.response.success}]],validate:function(){return p.shouldHaveLegendNavigation()},init:function(){E.highlightLegendItem(0),p.highlightedLegendItemIx=0},terminate:function(){p.highlightedLegendItemIx=-1,E.legend.allItems.forEach(y=>A(!1,y))}})}onKbdArrowKey(m,p){let{keyCodes:{left:E,up:y},highlightedLegendItemIx:x,chart:v}=this,w=v.legend.allItems.length,s=v.options.accessibility.keyboardNavigation.wrapAround,h=p===E||p===y?-1:1;return v.highlightLegendItem(x+h)?this.highlightedLegendItemIx+=h:s&&w>1&&(this.highlightedLegendItemIx=h>0?0:w-1,v.highlightLegendItem(this.highlightedLegendItemIx)),m.response.success}onKbdClick(m){let p=this.chart.legend.allItems[this.highlightedLegendItemIx];return p&&p.a11yProxyElement&&p.a11yProxyElement.click(),m.response.success}shouldHaveLegendNavigation(){if(!c(this.chart))return!1;let m=this.chart,p=(m.options.legend||{}).accessibility||{};return!!(m.legend.display&&p.keyboardNavigation&&p.keyboardNavigation.enabled)}destroy(){this.removeProxies()}}return(function(k){function m(E){let y=this.legend.allItems,x=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,v=y[E],w=v?.legendItem||{};if(v){i(x)&&y[x]&&A(!1,y[x]),(function(b,C){let M=(b.allItems[C].legendItem||{}).pageIx,B=b.currentPage;M!==void 0&&M+1!==B&&b.scroll(1+M-B)})(this.legend,E);let s=w.label,h=v.a11yProxyElement&&v.a11yProxyElement.innerElement;return s&&s.element&&h&&this.setFocusToElement(s,h),A(!0,v),!0}return!1}function p(E){let y=this.chart.options.accessibility,x=E.item;y.enabled&&x&&x.a11yProxyElement&&x.a11yProxyElement.innerElement.setAttribute("aria-pressed",E.visible?"true":"false")}k.compose=function(E,y){let x=E.prototype;x.highlightLegendItem||(x.highlightLegendItem=m,d(y,"afterColorizeItem",p))}})(j||(j={})),j}),V(u,"Stock/Navigator/ChartNavigatorComposition.js",[u["Core/Globals.js"],u["Core/Utilities.js"]],function(F,U){let L,{isTouchDevice:P}=F,{addEvent:O,merge:D,pick:N}=U,S=[];function f(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function g(){let n,a,t,l=this.legend,c=this.navigator;if(c){n=l&&l.options,a=c.xAxis,t=c.yAxis;let{scrollbarHeight:A,scrollButtonSize:j}=c;this.inverted?(c.left=c.opposite?this.chartWidth-A-c.height:this.spacing[3]+A,c.top=this.plotTop+j):(c.left
1=N(a.left,this.plotLeft+j),c.top=c.navigatorOptions.top||this.chartHeight-c.height-A-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(n&&n.verticalAlign==="bottom"&&n.layout!=="proximate"&&n.enabled&&!n.floating?l.legendHeight+N(n.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),a&&t&&(this.inverted?a.options.left=t.options.left=c.left:a.options.top=t.options.top=c.top,a.setAxisSize(),t.setAxisSize())}}function d(n){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new L(this),N(n.redraw,!0)&&this.redraw(n.animation))}function r(){let n=this.options;(n.navigator.enabled||n.scrollbar.enabled)&&(this.scroller=this.navigator=new L(this))}function i(){let n=this.options,a=n.navigator,t=n.rangeSelector;if((a&&a.enabled||t&&t.enabled)&&(!P&&this.zooming.type==="x"||P&&this.zooming.pinchType==="x"))return!1}function o(n){let a=n.navigator;if(a&&n.xAxis[0]){let t=n.xAxis[0].getExtremes();a.render(t.min,t.max)}}function e(n){let a=n.options.navigator||{},t=n.options.scrollbar||{};!this.navigator&&!this.scroller&&(a.enabled||t.enabled)&&(D(!0,this.options.navigator,a),D(!0,this.options.scrollbar,t),delete n.options.navigator,delete n.options.scrollbar)}return{compose:function(n,a){if(U.pushUnique(S,n)){let t=n.prototype;L=a,t.callbacks.push(o),O(n,"afterAddSeries",f),O(n,"afterSetChartSize",g),O(n,"afterUpdate",d),O(n,"beforeRender",r),O(n,"beforeShowResetZoom",i),O(n,"update",e)}}}}),V(u,"Core/Axis/NavigatorAxisComposition.js",[u["Core/Globals.js"],u["Core/Utilities.js"]],function(F,U){let{isTouchDevice:L}=F,{addEvent:P,correctFloat:O,defined:D,isNumber:N,pick:S}=U;function f(){this.navigatorAxis||(this.navigatorAxis=new d(this))}function g(r){let i,o=this.chart,e=o.options,n=e.navigator,a=this.navigatorAxis,t=o.zooming.pinchType,l=e.rangeSelector,c=o.zooming.type;if(this.isXAxis&&(n?.enabled||l?.enabled)){if(c==="y"&&r.trigger==="zoom")i=!1;else if((r.trigger==="zoom"&&c==="xy"||L&&t==="xy")&&this.options.range){let A=a.previousZoom;D(r.min)?a.previousZoom=[this.min,this.max]:A&&(r.min=A[0],r.max=A[1],a.previousZoom=void 0)}}i!==void 0&&r.preventDefault()}class d{static compose(i){i.keepProps.includes("navigatorAxis")||(i.keepProps.push("navigatorAxis"),P(i,"init",f),P(i,"setExtremes",g))}constructor(i){this.axis=i}destroy(){this.axis=void 0}toFixedRange(i,o,e,n){let a=this.axis,t=(a.pointRange||0)/2,l=S(e,a.translate(i,!0,!a.horiz)),c=S(n,a.translate(o,!0,!a.horiz));return D(e)||(l=O(l+t)),D(n)||(c=O(c-t)),N(l)&&N(c)||(l=c=void 0),{min:l,max:c}}}return d}),V(u,"Stock/Navigator/NavigatorDefaults.js",[u["Core/Color/Color.js"],u["Core/Series/SeriesRegistry.js"]],function(F,U){let{parse:L}=F,{seriesTypes:P}=U;return{height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:L("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:P.areaspline===void 0?"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:null},tickLength:0,tickWidth:0}}}),V(u,"Stock/Navigator/NavigatorSymbols.js",[u["Core/Renderer/SVG/Symbols.js"],u["Core/Utilities.js"]],function(F,U){let{relativeLength:L}=U;return{"navigator-handle":function(P,O,D,N,S={}){let f=S.width?S.width/2:D,g=L(S.borderRadius||0,Math.min(2*f,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],...F.rect(-f-1,.5,2*f+1,N,{r:g})]}}}),V(u,"Stock/Utilities/StockUtilities.js",[u["Core/Utilities.js"]],function(F){let{defined:U}=F;return{setFixedRange:function(L){let P=this.xAxis[0];U(P.dataMax)&&U(P.dataMin)&&L?this.fixedRange=Math.min(L,P.dataMax-P.dataMin):this.fixedRange=L}}}),V(u,"Stock/Navigator/NavigatorComposition.js",[u["Core/Defaults.js"],u["Core/Globals.js"],u["Core/Axis/NavigatorAxisComposition.js"],u["Stock/Navigator/NavigatorDefaults.js"],u["Stock/Navigator/NavigatorSymbols.js"],u["Core/Renderer/RendererRegistry.js"],u["Stock/Utilities/StockUtilities.js"],u["Core/Utilities.js"]],function(F,U,L,P,O,D,N,S){let{setOptions:f}
1=F,{composed:g}=U,{getRendererType:d}=D,{setFixedRange:r}=N,{addEvent:i,extend:o,pushUnique:e}=S;function n(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(a,t,l){L.compose(t),e(g,"Navigator")&&(a.prototype.setFixedRange=r,o(d().prototype.symbols,O),i(l,"afterUpdate",n),f({navigator:P}))}}}),V(u,"Core/Axis/ScrollbarAxis.js",[u["Core/Globals.js"],u["Core/Utilities.js"]],function(F,U){var L;let{composed:P}=F,{addEvent:O,defined:D,pick:N,pushUnique:S}=U;return(function(f){let g;function d(e){let n=N(e.options&&e.options.min,e.min),a=N(e.options&&e.options.max,e.max);return{axisMin:n,axisMax:a,scrollMin:D(e.dataMin)?Math.min(n,e.min,e.dataMin,N(e.threshold,1/0)):n,scrollMax:D(e.dataMax)?Math.max(a,e.max,e.dataMax,N(e.threshold,-1/0)):a}}function r(){let e=this.scrollbar,n=e&&!e.options.opposite,a=this.horiz?2:n?3:1;e&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[a]+=e.size+(e.options.margin||0))}function i(){let e=this;e.options&&e.options.scrollbar&&e.options.scrollbar.enabled&&(e.options.scrollbar.vertical=!e.horiz,e.options.startOnTick=e.options.endOnTick=!1,e.scrollbar=new g(e.chart.renderer,e.options.scrollbar,e.chart),O(e.scrollbar,"changed",function(n){let a,t,{axisMin:l,axisMax:c,scrollMin:A,scrollMax:j}=d(e),k=j-A;if(D(l)&&D(c))if(e.horiz&&!e.reversed||!e.horiz&&e.reversed?(a=A+k*this.to,t=A+k*this.from):(a=A+k*(1-this.from),t=A+k*(1-this.to)),this.shouldUpdateExtremes(n.DOMType)){let m=n.DOMType!=="mousemove"&&n.DOMType!=="touchmove"&&void 0;e.setExtremes(t,a,!0,m,n)}else this.setRange(this.from,this.to)}))}function o(){let e,n,a,{scrollMin:t,scrollMax:l}=d(this),c=this.scrollbar,A=this.axisTitleMargin+(this.titleOffset||0),j=this.chart.scrollbarsOffsets,k=this.options.margin||0;if(c&&j){if(this.horiz)this.opposite||(j[1]+=A),c.position(this.left,this.top+this.height+2+j[1]-(this.opposite?k:0),this.width,this.height),this.opposite||(j[1]+=k),e=1;else{let m;this.opposite&&(j[0]+=A),m=c.options.opposite?this.left+this.width+2+j[0]-(this.opposite?0:k):this.opposite?0:k,c.position(m,this.top,this.width,this.height),this.opposite&&(j[0]+=k),e=0}if(j[e]+=c.size+(c.options.margin||0),isNaN(t)||isNaN(l)||!D(this.min)||!D(this.max)||this.dataMin===this.dataMax)c.setRange(0,1);else if(this.min===this.max){let m=this.pointRange/(this.dataMax+1);n=m*this.min,a=m*(this.max+1),c.setRange(n,a)}else n=(this.min-t)/(l-t),a=(this.max-t)/(l-t),this.horiz&&!this.reversed||!this.horiz&&this.reversed?c.setRange(n,a):c.setRange(1-a,1-n)}}f.compose=function(e,n){S(P,"Axis.Scrollbar")&&(g=n,O(e,"afterGetOffset",r),O(e,"afterInit",i),O(e,"afterRender",o))}})(L||(L={})),L}),V(u,"Stock/Scrollbar/ScrollbarDefaults.js",[],function(){return{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}}),V(u,"Stock/Scrollbar/Scrollbar.js",[u["Core/Defaults.js"],u["Core/Globals.js"],u["Core/Axis/ScrollbarAxis.js"],u["Stock/Scrollbar/ScrollbarDefaults.js"],u["Core/Utilities.js"]],function(F,U,L,P,O){let{defaultOptions:D}=F,{addEvent:N,correctFloat:S,crisp:f,defined:g,destroyObjectProperties:d,fireEvent:r,merge:i,pick:o,removeEvent:e}=O;class n{static compose(t){L.compose(t,n)}static swapXY(t,l){return l&&t.forEach(c=>{let A,j=c.length;for(let k=0;k<j;k+=2)typeof(A=c[k+1])=="number"&&(c[k+1]=c[k+2],c[k+2]=A)}),t}constructor(t,l,c){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(t,l,c)}addEvents(){let t=this.options.inverted?[1,0]:[0,1],l=this.scrollbarButtons,c=this.scrollbarGroup.element,A=this.track.element,j=this.mouseDownHandler.bind(this),k=this.mouseMoveHandler.bind(this),m=this.mouseUpHandler.bind(this),p=[[l[t[0]].element,"click",this.buttonToMinClick.bind(this)],[l[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[A,"click",this.trackClick.bind(this)],[c,"mousedown",j],[c.ownerDocument,"mousemove",k],[c.ownerDocument,"mouseup",m],[c,"touchstart",j],[c.ownerDocument,"touchmove",k],[c.ownerDocument,"touchend",m]];p.forEach(function(E){N.apply(null,E)}),this._events=p}buttonToMaxClick(t){let l=(this.to-this.from)*o(this.options.step,.2);this.updatePosition(this.from+l,this.to+l),r(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}buttonToMinClick(t){let l=S(this.to-this.from)*o(this.options.step,.2);this.updatePosition(S(this.from-l),S(this.to-l)),r(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}cursorToScrollbarPosition(t){let l=this.options,c=l.minWidth>this.calculatedWidth?l.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-c),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-c)}}destroy(){let t=this,l=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(c){t[c]&&t[c].destroy&&(t[c]=t[c].destroy())}),l&&t===l.scrollbar&&(l.scrollbar=null,d(l.scrollbarButtons))}drawScrollbarButton(t){let l=this.renderer,c=this.scrollbarButtons,A=this.options,j=this.size,k=l.g().add(this.group);if(c.push(k),A.buttonsEnabled){let m=l.rect().addClass("highcharts-scrollbar-button").add(k);this.chart.styledMode||m.attr({stroke:A.buttonBorderColor,"stroke-width":A.buttonBorderWidth,fill:A.buttonBackgroun
vendor: 5,136 bytes, line 1
1dColor}),m.attr(m.crisp({x:-.5,y:-.5,width:j,height:j,r:A.buttonBorderRadius},m.strokeWidth()));let p=l.path(n.swapXY([["M",j/2+(t?-1:1),j/2-3],["L",j/2+(t?-1:1),j/2+3],["L",j/2+(t?2:-2),j/2]],A.vertical)).addClass("highcharts-scrollbar-arrow").add(c[t]);this.chart.styledMode||p.attr({fill:A.buttonArrowColor})}}init(t,l,c){this.scrollbarButtons=[],this.renderer=t,this.userOptions=l,this.options=i(P,D.scrollbar,l),this.options.margin=o(this.options.margin,10),this.chart=c,this.size=o(this.options.size,this.options.height),l.enabled&&(this.render(),this.addEvents())}mouseDownHandler(t){let l=this.chart.pointer?.normalize(t)||t,c=this.cursorToScrollbarPosition(l);this.chartX=c.chartX,this.chartY=c.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(t){let l,c=this.chart.pointer?.normalize(t)||t,A=this.options.vertical?"chartY":"chartX",j=this.initPositions||[];this.grabbedCenter&&(!t.touches||t.touches[0][A]!==0)&&(l=this.cursorToScrollbarPosition(c)[A]-this[A],this.hasDragged=!0,this.updatePosition(j[0]+l,j[1]+l),this.hasDragged&&r(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))}mouseUpHandler(t){this.hasDragged&&r(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(t,l,c,A){let{buttonsEnabled:j,margin:k=0,vertical:m}=this.options,p=this.rendered?"animate":"attr",E=A,y=0;this.group.show(),this.x=t,this.y=l+this.trackBorderWidth,this.width=c,this.height=A,this.xOffset=E,this.yOffset=y,m?(this.width=this.yOffset=c=y=this.size,this.xOffset=E=0,this.yOffset=y=j?this.size:0,this.barWidth=A-(j?2*c:0),this.x=t+=k):(this.height=A=this.size,this.xOffset=E=j?this.size:0,this.barWidth=c-(j?2*A:0),this.y=this.y+k),this.group[p]({translateX:t,translateY:this.y}),this.track[p]({width:c,height:A}),this.scrollbarButtons[1][p]({translateX:m?0:c-E,translateY:m?A-y:0})}removeEvents(){this._events.forEach(function(t){e.apply(null,t)}),this._events.length=0}render(){let t=this.renderer,l=this.options,c=this.size,A=this.chart.styledMode,j=t.g("scrollbar").attr({zIndex:l.zIndex}).hide().add();this.group=j,this.track=t.rect().addClass("highcharts-scrollbar-track").attr({r:l.trackBorderRadius||0,height:c,width:c}).add(j),A||this.track.attr({fill:l.trackBackgroundColor,stroke:l.trackBorderColor,"stroke-width":l.trackBorderWidth});let k=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-f(0,k),y:-f(0,k)}),this.scrollbarGroup=t.g().add(j),this.scrollbar=t.rect().addClass("highcharts-scrollbar-thumb").attr({height:c-k,width:c-k,r:l.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=t.path(n.swapXY([["M",-3,c/4],["L",-3,2*c/3],["M",0,c/4],["L",0,2*c/3],["M",3,c/4],["L",3,2*c/3]],l.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),A||(this.scrollbar.attr({fill:l.barBackgroundColor,stroke:l.barBorderColor,"stroke-width":l.barBorderWidth}),this.scrollbarRifles.attr({stroke:l.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-f(0,this.scrollbarStrokeWidth),-f(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(t,l){let c,A,j=this.options,k=j.vertical,m=j.minWidth,p=this.barWidth,E=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!g(p))return;let y=p*Math.min(l,1);c=Math.ceil(p*(t=Math.max(t,0))),this.calculatedWidth=A=S(y-c),A<m&&(c=(p-m+A)*t,A=m);let x=Math.floor(c+this.xOffset+this.yOffset),v=A/2-.5;this.from=t,this.to=l,k?(this.scrollbarGroup[E]({translateY:x}),this.scrollbar[E]({height:A}),this.scrollbarRifles[E]({translateY:v}),this.scrollbarTop=x,this.scrollbarLeft=0):(this.scrollbarGroup[E]({translateX:x}),this.scrollbar[E]({width:A}),this.scrollbarRifles[E]({translateX:v}),this.scrollbarLeft=x,this.scrollbarTop=0),A<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),j.showFull===!1&&(t<=0&&l>=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(t){return o(this.options.liveRedraw,U.svg&&!U.isTouchDevice&&!this.chart.boosted)||t==="mouseup"||t==="touchend"||!g(t)}trackClick(t){let l=this.chart.pointer?.normalize(t)||t,c=this.to-this.from,A=this.y+this.scrollbarTop,j=this.x+this.scrollbarLeft;this.options.vertical&&l.chartY>A||!this.options.vertical&&l.chartX>j?this.updatePosition(this.from+c,this.to+c):this.updatePosition(this.from-c,this.to-c),r(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}update(t){this.destroy(),this.init(this.chart.renderer,i(!0,this.options,t),this.chart)}updatePosition(t,l){l>1&&(t=S(1-S(l-t)),l=1),t<0&&(l=S(l-t),t=0),this.from=t,this.to=l}}return n.defaultOptions=P,D.scrollbar=i(!0,n.defaultOptions,D.scrollbar),n}),V(u,"Stock/Navigator/Navigator.js",[u["Core/Axis/Axis.js"],u["Stock/Navigator/ChartNavigatorComposition.js"],u["Core/Defaults.js"],u["Core/Globals.js"],u["Core/Axis/NavigatorAxisComposition.js"],u["Stock/Navigator/NavigatorComposition.js"],u["Stock/Scrollbar/Scrollbar.
1js"],u["Core/Renderer/SVG/SVGRenderer.js"],u["Core/Utilities.js"]],function(F,U,L,P,O,D,N,S,f){let{defaultOptions:g}=L,{isTouchDevice:d}=P,{prototype:{symbols:r}}=S,{addEvent:i,clamp:o,correctFloat:e,defined:n,destroyObjectProperties:a,erase:t,extend:l,find:c,fireEvent:A,isArray:j,isNumber:k,merge:m,pick:p,removeEvent:E,splat:y}=f;function x(w,...s){let h=[].filter.call(s,k);if(h.length)return Math[w].apply(0,h)}class v{static compose(s,h,b){U.compose(s,v),D.compose(s,h,b)}constructor(s){this.isDirty=!1,this.scrollbarHeight=0,this.init(s)}drawHandle(s,h,b,C){let M=this.navigatorOptions.handles.height;this.handles[h][C](b?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(s,10)+.5-M)}:{translateX:Math.round(this.left+parseInt(s,10)),translateY:Math.round(this.top+this.height/2-M/2-1)})}drawOutline(s,h,b,C){let M=this.navigatorOptions.maskInside,B=this.outline.strokeWidth(),T=B/2,K=B%2/2,I=this.scrollButtonSize,R=this.size,H=this.top,z=this.height,G=H-T,W=H+z,q=this.left,X,Y;b?(X=H+h+K,h=H+s+K,Y=[["M",q+z,H-I-K],["L",q+z,X],["L",q,X],["M",q,h],["L",q+z,h],["L",q+z,H+R+I]],M&&Y.push(["M",q+z,X-T],["L",q+z,h+T])):(q-=I,s+=q+I-K,h+=q+I-K,Y=[["M",q,G],["L",s,G],["L",s,W],["M",h,W],["L",h,G],["L",q+R+2*I,G]],M&&Y.push(["M",s-T,G],["L",h+T,G])),this.outline[C]({d:Y})}drawMasks(s,h,b,C){let M,B,T,K,I=this.left,R=this.top,H=this.height;b?(T=[I,I,I],K=[R,R+s,R+h],B=[H,H,H],M=[s,h-s,this.size-h]):(T=[I,I+s,I+h],K=[R,R,R],B=[s,h-s,this.size-h],M=[H,H,H]),this.shades.forEach((z,G)=>{z[C]({x:T[G],y:K[G],width:B[G],height:M[G]})})}renderElements(){let s=this,h=s.navigatorOptions,b=h.maskInside,C=s.chart,M=C.inverted,B=C.renderer,T={cursor:M?"ns-resize":"ew-resize"},K=s.navigatorGroup??(s.navigatorGroup=B.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!b,b,!b].forEach((I,R)=>{let H=s.shades[R]??(s.shades[R]=B.rect().addClass("highcharts-navigator-mask"+(R===1?"-inside":"-outside")).add(K));C.styledMode||(H.attr({fill:I?h.maskFill:"rgba(0,0,0,0)"}),R===1&&H.css(T))}),s.outline||(s.outline=B.path().addClass("highcharts-navigator-outline").add(K)),C.styledMode||s.outline.attr({"stroke-width":h.outlineWidth,stroke:h.outlineColor}),h.handles?.enabled){let I=h.handles,{height:R,width:H}=I;[0,1].forEach(z=>{let G=I.symbols[z];if(s.handles[z]&&s.handles[z].symbolUrl===G){if(!s.handles[z].isImg&&s.handles[z].symbolName!==G){let W=r[G].call(r,-H/2-1,0,H,R);s.handles[z].attr({d:W}),s.handles[z].symbolName=G}}else s.handles[z]?.destroy(),s.handles[z]=B.symbol(G,-H/2-1,0,H,R,I),s.handles[z].attr({zIndex:7-z}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][z]).add(K),s.addMouseEvents();C.inverted&&s.handles[z].attr({rotation:90,rotationOriginX:Math.floor(-H/2),rotationOriginY:(R+H)/2}),C.styledMode||s.handles[z].attr({fill:I.backgroundColor,stroke:I.borderColor,"stroke-width":I.lineWidth,width:I.width,height:I.height,x:-H/2-1,y:0}).css(T)})}}update(s,h=!1){let b=this.chart,C=b.options.chart.inverted!==b.scrollbar?.options.vertical;if(m(!0,b.options.navigator,s),this.navigatorOptions=b.options.navigator||{},this.setOpposite(),n(s.enabled)||C)return this.destroy(),this.navigatorEnabled=s.enabled||this.navigatorEnabled,this.init(b);if(this.navigatorEnabled&&(this.isDirty=!0,s.adaptToUpdatedData===!1&&this.baseSeries.forEach(M=>{E(M,"updatedData",this.updatedDataHandler)},this),s.adaptToUpdatedData&&this.baseSeries.forEach(M=>{M.eventsToUnbind.push(i(M,"updatedData",this.updatedDataHandler))},this),(s.series||s.baseSeries)&&this.setBaseSeries(void 0,!1),s.height||s.xAxis||s.yAxis)){this.height=s.height??this.height;let M=this.getXAxisOffsets();this.xAxis.update({...s.xAxis,offsets:M,[b.inverted?"width":"height"]:this.height,[b.inverted?"height":"width"]:void 0},!1),this.yAxis.update({...s.yAxis,[b.inverted?"width":"height"]:this.height},!1)}h&&b.redraw()}render(s,h,b,C){let M=this.chart,B=this.xAxis,T=B.pointRange||0,K=B.navigatorAxis.fake?M.xAxis[0]:B,I=this.navigatorEnabled,R=this.rendered,H=M.inverted,z=M.xAxis[0].minRange,G=M.xAxis[0].options.maxRange,W=this.scrollButtonSize,q,X,Y,Z=this.scrollbarHeight,_,J;if(this.hasDragged&&!n(b))return;if(this.isDirty&&this.renderElements(),s=e(s-T/2),h=e(h+T/2),!k(s)||
vendor: 9,650 bytes, line 1
1!k(h)){if(!R)return;b=0,C=p(B.width,K.width)}this.left=p(B.left,M.plotLeft+W+(H?M.plotWidth:0));let tt=this.size=_=p(B.len,(H?M.plotHeight:M.plotWidth)-2*W);q=H?Z:_+2*W,b=p(b,B.toPixels(s,!0)),C=p(C,B.toPixels(h,!0)),k(b)&&Math.abs(b)!==1/0||(b=0,C=q);let st=B.toValue(b,!0),nt=B.toValue(C,!0),et=Math.abs(e(nt-st));et<z?this.grabbedLeft?b=B.toPixels(nt-z-T,!0):this.grabbedRight&&(C=B.toPixels(st+z+T,!0)):n(G)&&e(et-T)>G&&(this.grabbedLeft?b=B.toPixels(nt-G-T,!0):this.grabbedRight&&(C=B.toPixels(st+G+T,!0))),this.zoomedMax=o(Math.max(b,C),0,tt),this.zoomedMin=o(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(b,C),0,tt),this.range=this.zoomedMax-this.zoomedMin,tt=Math.round(this.zoomedMax);let it=Math.round(this.zoomedMin);I&&(this.navigatorGroup.attr({visibility:"inherit"}),J=R&&!this.hasDragged?"animate":"attr",this.drawMasks(it,tt,H,J),this.drawOutline(it,tt,H,J),this.navigatorOptions.handles.enabled&&(this.drawHandle(it,0,H,J),this.drawHandle(tt,1,H,J))),this.scrollbar&&(H?(Y=this.top-W,X=this.left-Z+(I||!K.opposite?0:(K.titleOffset||0)+K.axisTitleMargin),Z=_+2*W):(Y=this.top+(I?this.height:-Z),X=this.left-W),this.scrollbar.position(X,Y,q,Z),this.scrollbar.setRange(this.zoomedMin/(_||1),this.zoomedMax/(_||1))),this.rendered=!0,this.isDirty=!1,A(this,"afterRender")}addMouseEvents(){let s=this,h=s.chart,b=h.container,C=[],M,B;s.mouseMoveHandler=M=function(T){s.onMouseMove(T)},s.mouseUpHandler=B=function(T){s.onMouseUp(T)},(C=s.getPartsEvents("mousedown")).push(i(h.renderTo,"mousemove",M),i(b.ownerDocument,"mouseup",B),i(h.renderTo,"touchmove",M),i(b.ownerDocument,"touchend",B)),C.concat(s.getPartsEvents("touchstart")),s.eventsToUnbind=C,s.series&&s.series[0]&&C.push(i(s.series[0].xAxis,"foundExtremes",function(){h.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(s){let h=this,b=[];return["shades","handles"].forEach(function(C){h[C].forEach(function(M,B){b.push(i(M.element,s,function(T){h[C+"Mousedown"](T,B)}))})}),b}shadesMousedown(s,h){s=this.chart.pointer?.normalize(s)||s;let b=this.chart,C=this.xAxis,M=this.zoomedMin,B=this.size,T=this.range,K=this.left,I=s.chartX,R,H,z,G;b.inverted&&(I=s.chartY,K=this.top),h===1?(this.grabbedCenter=I,this.fixedWidth=T,this.dragOffset=I-M):(G=I-K-T/2,h===0?G=Math.max(0,G):h===2&&G+T>=B&&(G=B-T,this.reversedExtremes?(G-=T,H=this.getUnionExtremes().dataMin):R=this.getUnionExtremes().dataMax),G!==M&&(this.fixedWidth=T,n((z=C.navigatorAxis.toFixedRange(G,G+T,H,R)).min)&&A(this,"setRange",{min:Math.min(z.min,z.max),max:Math.max(z.min,z.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(s,h){s=this.chart.pointer?.normalize(s)||s;let b=this.chart,C=b.xAxis[0],M=this.reversedExtremes;h===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=M?C.min:C.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=M?C.max:C.min),b.setFixedRange(void 0)}onMouseMove(s){let h=this,b=h.chart,C=h.navigatorSize,M=h.range,B=h.dragOffset,T=b.inverted,K=h.left,I;(!s.touches||s.touches[0].pageX!==0)&&(I=(s=b.pointer?.normalize(s)||s).chartX,T&&(K=h.top,I=s.chartY),h.grabbedLeft?(h.hasDragged=!0,h.render(0,0,I-K,h.otherHandlePos)):h.grabbedRight?(h.hasDragged=!0,h.render(0,0,h.otherHandlePos,I-K)):h.grabbedCenter&&(h.hasDragged=!0,I<B?I=B:I>C+B-M&&(I=C+B-M),h.render(0,0,I-B,I-B+M)),h.hasDragged&&h.scrollbar&&p(h.scrollbar.options.liveRedraw,!d&&!this.chart.boosted)&&(s.DOMType=s.type,setTimeout(function(){h.onMouseUp(s)},0)))}onMouseUp(s){let h,b,C,M,B,T,K=this.chart,I=this.xAxis,R=this.scrollbar,H=s.DOMEvent||s,z=K.inverted,G=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!R||!R.hasDragged)||s.trigger==="scrollbar")&&(C=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?M=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(B=this.fixedExtreme),this.zoomedMax===this.size&&(B=this.reversedExtremes?C.dataMin:C.dataMax),this.zoomedMin===0&&(M=this.reversedExtremes?C.dataMax:C.dataMin),n((T=I.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,M,B)).min)&&A(this,"setRange",{min:Math.min(T.min,T.max),max:Math.max(T.min,T.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:H}})),s.DOMType!=="mousemove"&&s.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&k(this.zoomedMin)&&k(this.zoomedMax)&&(b=Math.round(this.zoomedMin),h=Math.round(this.zoomedMax),this.shades&&this.drawMasks(b,h,z,G),this.outline&&this.drawOutline(b,h,z,G),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(b,0,z,G),this.drawHandle(h,1,z,G)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(s){s()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let s=this.baseSeries||[];this.navigatorEnabled&&s[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&s.forEach(function(h){E(h,"updatedData",this.updatedDataHandler)},this),s[0].xAxis&&E(s[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(s){let h=s.options,b=h.navigator||{},C=b.enabled,M=h.scrollbar||{},B=M.enabled,T=C&&b.height||0,K=B&&M.height||0,I=M.buttonsEnabled&&K||0;this.handles=[],this.shades=[],this.chart=s,this.setBaseSeries(),this.height=T,this.scrollbarHeight=K,this.scrollButtonSize=I,this.scrollbarEnabled=B,this.navigatorEnabled=C,this.navigatorOptions=b,this.scrollbarOptions=M,this.setOpposite();let R=this,H=R.baseSeries,z=s.xAxis.length,G=s.yAxis.length,W=H&&H[0]&&H[0].xAxis||s.xAxis[0]||{options:{}};if(s.isDirtyBox=!0,R.navigatorEnabled){let q=this.getXAxisOffsets();R.xAxis=new F(s,m({breaks:W.options.breaks,ordinal:W.options.ordinal,overscroll:W.options.overscroll},b.xAxis,{type:"datetime",yAxis:b.yAxis?.id,index:z,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:W.options.ordinal?0:W.options.minPadding,maxPadding:W.options.ordinal?0:W.options.maxPadding,zoomEnabled:!1},s.inverted?{offsets:q,width:T}:{offsets:q,height:T}),"xAxis"),R.yAxis=new F(s,m(b.yAxis,{alignTicks:!1,offset:0,index:G,isInternal:!0,reversed:p(b.yAxis&&b.yAxis.reversed,s.yAxis[0]&&s.yAxis[0].reversed,!1),zoomEnabled:!1},s.inverted?{width:T}:{height:T}),"yAxis"),H||b.series.data?R.updateNavigatorSeries(!1):s.series.length===0&&(R.unbindRedraw=i(s,"beforeRedraw",function(){s.series.length>0&&!R.series&&(R.setBaseSeries(),R.unbindRedraw())})),R.reversedExtremes=s.inverted&&!R.xAxis.reversed||!s.inverted&&R.xAxis.reversed,R.renderElements(),R.addMouseEvents()}else R.xAxis={chart:s,navigatorAxis:{fake:!0},translate:function(q,X){let Y=s.xAxis[0],Z=Y.getExtremes(),_=Y.len-2*I,J=x("min",Y.options.min,Z.dataMin),tt=x("max",Y.options.max,Z.dataMax)-J;return X?q*tt/_+J:_*(q-J)/tt},toPixels:function(q){return this.translate(q)},toValue:function(q){return this.translate(q,!0)}},R.xAxis.navigatorAxis.axis=R.xAxis,R.xAxis.navigatorAxis.toFixedRange=O.prototype.toFixedRange.bind(R.xAxis.navigatorAxis);if(s.options.scrollbar.enabled){let q=m(s.options.scrollbar,{vertical:s.inverted});!k(q.margin)&&R.navigatorEnabled&&(q.margin=s.inverted?-3:3),s.scrollbar=R.scrollbar=new N(s.renderer,q,s),i(R.scrollbar,"changed",function(X){let Y=R.size,Z=Y*this.to,_=Y*this.from;R.hasDragged=R.scrollbar.hasDragged,R.render(0,0,_,Z),this.shouldUpdateExtremes(X.DOMType)&&setTimeout(function(){R.onMouseUp(X)})})}R.addBaseSeriesEvents(),R.addChartEvents()}setOpposite(){let s=this.navigatorOptions,h=this.navigatorEnabled,b=this.chart;this.opposite=p(s.opposite,!!(!h&&b.inverted))}getUnionExtremes(s){let h,b=this.chart.xAxis[0],C=this.xAxis,M=C.options,B=b.options;return s&&b.dataMin===null||(h={dataMin:p(M&&M.min,x("min",B.min,b.dataMin,C.dataMin,C.min)),dataMax:p(M&&M.max,x("max",B.max,b.dataMax,C.dataMax,C.max))}),h}setBaseSeries(s,h){let b=this.chart,C=this.baseSeries=[];s=s||b.options&&b.options.navigator.baseSeries||(b.series.length?c(b.series,M=>!M.options.isInternal).index:0),(b.series||[]).forEach((M,B)=>{!M.options.isInternal&&(M.options.showInNavigator||(B===s||M.options.id===s)&&M.options.showInNavigator!==!1)&&C.push(M)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,h)}updateNavigatorSeries(s,h){let b=this,C=b.chart,M=b.baseSeries,B={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:this.navigatorOptions.xAxis?.id,yAxis:this.navigatorOptions.yAxis?.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},T=b.series=(b.series||[]).filter(z=>{let G=z.baseSeries;return!(0>M.indexOf(G))||(G&&(E(G,"updatedData",b.updatedDataHandler),delete G.navigatorSeries),z.chart&&z.destroy(),!1)}),K,I,R=b.navigatorOptions.series,H;M&&M.length&&M.forEach(z=>{let G=z.navigatorSeries,W=l({color:z.color,visible:z.visible},j(R)?g.navigator.series:R);if(G&&b.navigatorOptions.adaptToUpdatedData===!1)return;B.name="Navigator "+M.length,H=(K=z.options||{}).navigatorOptions||{},W.dataLabels=y(W.dataLabels),(I=m(K,B,W,H)).pointRange=p(W.pointRange,H.pointRange,g.plotOptions[I.type||"line"].pointRange);let q=H.data||W.data;b.hasNavigatorData=b.hasNavigatorData||!!q,I.data=q||K.data&&K.data.slice(0),G&&G.options?G.update(I,h):(z.navigatorSeries=C.initSeries(I),C.setSortedData(),z.navigatorSeries.baseSeries=z,T.push(z.navigatorSeries))}),(R.data&&!(M&&M.length)||j(R))&&(b.hasNavigatorData=!1,(R=y(R)).forEac
1h((z,G)=>{B.name="Navigator "+(T.length+1),(I=m(g.navigator.series,{color:C.series[G]&&!C.series[G].options.isInternal&&C.series[G].color||C.options.colors[G]||C.options.colors[0]},B,z)).data=z.data,I.data&&(b.hasNavigatorData=!0,T.push(C.initSeries(I)))})),s&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let s=this,h=s.baseSeries||[];h[0]&&h[0].xAxis&&h[0].eventsToUnbind.push(i(h[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),h.forEach(b=>{b.eventsToUnbind.push(i(b,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),b.eventsToUnbind.push(i(b,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&b.xAxis&&b.eventsToUnbind.push(i(b,"updatedData",this.updatedDataHandler)),b.eventsToUnbind.push(i(b,"remove",function(){h&&t(h,b),this.navigatorSeries&&(t(s.series,this.navigatorSeries),n(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(s){return this.baseSeries.reduce(function(h,b){return Math.min(h,b.xData&&b.xData.length?b.xData[0]:h)},s)}modifyNavigatorAxisExtremes(){let s=this.xAxis;if(s.getExtremes!==void 0){let h=this.getUnionExtremes(!0);h&&(h.dataMin!==s.min||h.dataMax!==s.max)&&(s.min=h.dataMin,s.max=h.dataMax)}}modifyBaseAxisExtremes(){let s,h,b=this.chart.navigator,C=this.getExtremes(),M=C.min,B=C.max,T=C.dataMin,K=C.dataMax,I=B-M,R=b.stickToMin,H=b.stickToMax,z=p(this.ordinal?.convertOverscroll(this.options.overscroll),0),G=b.series&&b.series[0],W=!!this.setExtremes;!(this.eventArgs&&this.eventArgs.trigger==="rangeSelectorButton")&&(R&&(s=(h=T)+I),H&&(s=K+z,R||(h=Math.max(T,s-I,b.getBaseSeriesMin(G&&G.xData?G.xData[0]:-Number.MAX_VALUE)))),W&&(R||H)&&k(h)&&(this.min=this.userMin=h,this.max=this.userMax=s)),b.stickToMin=b.stickToMax=null}updatedDataHandler(){let s=this.chart.navigator,h=this.navigatorSeries,b=s.reversedExtremes?Math.round(s.zoomedMin)===0:Math.round(s.zoomedMax)>=Math.round(s.size);s.stickToMax=p(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,b),s.stickToMin=s.shouldStickToMin(this,s),h&&!s.hasNavigatorData&&(h.options.pointStart=this.xData[0],h.setData(this.options.data,!1,null,!1))}shouldStickToMin(s,h){let b=h.getBaseSeriesMin(s.xData[0]),C=s.xAxis,M=C.max,B=C.min,T=C.options.range;return!!(k(M)&&k(B))&&(T&&M-b>0?M-b<T:B<=b)}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(i(this.chart,"redraw",function(){let s=this.navigator,h=s&&(s.baseSeries&&s.baseSeries[0]&&s.baseSeries[0].xAxis||this.xAxis[0]);h&&s.render(h.min,h.max)}),i(this.chart,"getMargins",function(){let s=this.navigator,h=s.opposite?"plotTop":"marginBottom";this.inverted&&(h=s.opposite?"marginRight":"plotLeft"),this[h]=(this[h]||0)+(s.navigatorEnabled||!this.inverted?s.height+s.scrollbarHeight:0)+s.navigatorOptions.margin}),i(v,"setRange",function(s){this.chart.xAxis[0].setExtremes(s.min,s.max,s.redraw,s.animation,s.eventArguments)}))}destroy(){this.removeEvents(),this.xAxis&&(t(this.chart.xAxis,this.xAxis),t(this.chart.axes,this.xAxis)),this.yAxis&&(t(this.chart.yAxis,this.yAxis),t(this.chart.axes,this.yAxis)),(this.series||[]).forEach(s=>{s.destroy&&s.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(s=>{this[s]&&this[s].destroy&&this[s].destroy(),this[s]=null}),[this.handles].forEach(s=>{a(s)}),this.navigatorEnabled=!1}}return v}),V(u,"Accessibility/Components/NavigatorComponent.js",[u["Accessibility/AccessibilityComponent.js"],u["Accessibility/Utils/Announcer.js"],u["Accessibility/KeyboardNavigationHandler.js"],u["Stock/Navigator/Navigator.js"],u["Core/Animation/AnimationUtilities.js"],u["Core/Templating.js"],u["Core/Utilities.js"],u["Accessibility/Utils/HTMLUtilities.js"],u["Accessibility/Utils/ChartUtilities.js"]],function(F,U,L,P,O,D,N,S,f){let{animObject:g}=O,{format:d}=D,{clamp:r,pick:i,syncTimeout:o}=N,{getFakeMouseEvent:e}=S,{getAxisRangeDescription:n,fireEventOnWrappedOrUnwrappedElement:a}=f;return class extends F{init(){let t=this.chart,l=this;
vendor: 2,775 bytes, line 1
1this.announcer=new U(t,"polite"),this.addEvent(P,"afterRender",function(){this.chart===l.chart&&this.chart.renderer&&o(()=>{l.proxyProvider.updateGroupProxyElementPositions("navigator"),l.updateHandleValues()},g(i(this.chart.renderer.globalAnimation,!0)).duration)})}onChartUpdate(){let t=this.chart,l=t.options,c=l.navigator;if(c.enabled&&c.accessibility?.enabled){let A=l.accessibility.landmarkVerbosity,j=l.lang.accessibility?.navigator.groupLabel;this.proxyProvider.removeGroup("navigator"),this.proxyProvider.addGroup("navigator","div",{role:A==="all"?"region":"group","aria-label":d(j,{chart:t},t)});let k=l.lang.accessibility?.navigator.handleLabel;[0,1].forEach(m=>{let p=this.getHandleByIx(m);if(p){let E=this.proxyProvider.addProxyElement("navigator",{click:p},"input",{type:"range","aria-label":d(k,{handleIx:m,chart:t},t)});this[m?"maxHandleProxy":"minHandleProxy"]=E.innerElement,E.innerElement.style.pointerEvents="none",E.innerElement.oninput=()=>this.updateNavigator()}}),this.updateHandleValues()}else this.proxyProvider.removeGroup("navigator")}getNavigatorHandleNavigation(t){let l=this,c=this.chart,A=t?this.maxHandleProxy:this.minHandleProxy,j=this.keyCodes;return new L(c,{keyCodeMap:[[[j.left,j.right,j.up,j.down],function(k){if(A){let m=k===j.left||k===j.up?-1:1;A.value=""+r(parseFloat(A.value)+m,0,100),l.updateNavigator(()=>{let p=l.getHandleByIx(t);p&&c.setFocusToElement(p,A)})}return this.response.success}]],init:()=>{c.setFocusToElement(this.getHandleByIx(t),A)},validate:()=>!!(this.getHandleByIx(t)&&A&&c.options.navigator.accessibility?.enabled)})}getKeyboardNavigation(){return[this.getNavigatorHandleNavigation(0),this.getNavigatorHandleNavigation(1)]}destroy(){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.proxyProvider.removeGroup("navigator"),this.announcer&&this.announcer.destroy()}updateHandleValues(){let t=this.chart.navigator;if(t&&this.minHandleProxy&&this.maxHandleProxy){let l=t.size;this.minHandleProxy.value=""+Math.round(t.zoomedMin/l*100),this.maxHandleProxy.value=""+Math.round(t.zoomedMax/l*100)}}getHandleByIx(t){let l=this.chart.navigator;return l&&l.handles&&l.handles[t]}updateNavigator(t){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.updateNavigatorThrottleTimer=setTimeout((l=>{let c=this.chart,{navigator:A,pointer:j}=c;if(A&&j&&this.minHandleProxy&&this.maxHandleProxy){let k=j.getChartPosition(),m=parseFloat(this.minHandleProxy.value)/100*A.size,p=parseFloat(this.maxHandleProxy.value)/100*A.size;[[0,"mousedown",A.zoomedMin],[0,"mousemove",m],[0,"mouseup",m],[1,"mousedown",A.zoomedMax],[1,"mousemove",p],[1,"mouseup",p]].forEach(([x,v,w])=>{let s=this.getHandleByIx(x)?.element;s&&a(s,e(v,{x:k.left+A.left+w,y:k.top+A.top}
1,s))}),l&&l();let E=c.options.lang.accessibility?.navigator.changeAnnouncement,y=n(c.xAxis[0]);this.announcer.announce(d(E,{axisRangeDescription:y,chart:c},c))}}).bind(this,t),20)}}}),V(u,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[u["Accessibility/Components/AnnotationsA11y.js"],u["Accessibility/Utils/ChartUtilities.js"],u["Core/Templating.js"],u["Accessibility/Utils/HTMLUtilities.js"],u["Core/Utilities.js"]],function(F,U,L,P,O){let{getPointAnnotationTexts:D}=F,{getAxisDescription:N,getSeriesFirstPointElement:S,getSeriesA11yElement:f,unhideChartElementFromAT:g}=U,{format:d,numberFormat:r}=L,{reverseChildNodes:i,stripHTMLTagsFromString:o}=P,{find:e,isNumber:n,isString:a,pick:t,defined:l}=O;function c(p){let E=p.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(E!==!1&&p.points&&p.points.length>=+E)}function A(p,E){let y=p.series,x=y.chart,v=x.options.accessibility.point||{},w=y.options.accessibility&&y.options.accessibility.point||{},s=y.tooltipOptions||{},h=x.options.lang;return n(E)?r(E,w.valueDecimals||v.valueDecimals||s.valueDecimals||-1,h.decimalPoint,h.accessibility.thousandsSep||h.thousandsSep):E}function j(p,E){let y=p[E];return p.chart.langFormat("accessibility.series."+E+"Description",{name:N(y),series:p})}function k(p){let E=p.series,y=E.chart.series.length>1||E.options.name,x=(function(h){let b=h.series,C=b.chart,M=b.options.accessibility,B=M&&M.point&&M.point.valueDescriptionFormat||C.options.accessibility.point.valueDescriptionFormat,T=t(b.xAxis&&b.xAxis.options.accessibility&&b.xAxis.options.accessibility.enabled,!C.angular&&b.type!=="flowmap"),K=T?(function(I){let R=(function(W){let q=W.series,X=q.chart,Y=q.options.accessibility&&q.options.accessibility.point||{},Z=X.options.accessibility.point||{},_=q.xAxis&&q.xAxis.dateTime;if(_){let J=_.getXDateFormat(W.x||0,X.options.tooltip.dateTimeLabelFormats),tt=Y.dateFormatter&&Y.dateFormatter(W)||Z.dateFormatter&&Z.dateFormatter(W)||Y.dateFormat||Z.dateFormat||J;return X.time.dateFormat(tt,W.x||0,void 0)}})(I),H=(I.series.xAxis||{}).categories&&l(I.category)&&(""+I.category).replace("<br/>"," "),z=l(I.id)&&0>(""+I.id).indexOf("highcharts-"),G="x, "+I.x;return I.name||R||H||(z?I.id:G)})(h):"";return d(B,{point:h,index:l(h.index)?h.index+1:"",xDescription:K,value:(function(I){let R=I.series,H=R.chart.options.accessibility.point||{},z=R.chart.options.accessibility&&R.chart.options.accessibility.point||{},G=R.tooltipOptions||{},W=z.valuePrefix||H.valuePrefix||G.valuePrefix||"",q=z.valueSuffix||H.valueSuffix||G.valueSuffix||"",X=I.value!==void 0?"value":"y",Y=A(I,I[X]);return I.isNull?R.chart.langFormat("accessibility.series.nullPointValue",{point:I}):R.pointArrayMap?(function(Z,_,J){let tt=_||"",st=J||"",nt=function(et){let it=A(Z,t(Z[et],Z.options[et]));return it!==void 0?et+": "+tt+it+st:it};return Z.series.pointArrayMap.reduce(function(et,it){let ot=nt(it);return ot?et+(et.length?", ":"")+ot:et},"")})(I,W,q):W+Y+q})(h),separator:T?", ":""},C)})(p),v=p.options&&p.options.accessibility&&p.options.accessibility.description,w=y?" "+E.name+".":"",s=(function(h){let b=h.series.chart,C=D(h);return C.length?b.langFormat("accessibility.series.pointAnnotationsDescription",{point:h,annotations:C}):""})(p);return p.accessibility=p.accessibility||{},p.accessibility.valueDescription=x,x+(v?" "+v:"")+w+(s?" "+s:"")}function m(p){let E=p.chart,y=E.types||[],x=(function(T){let K=(T.options.accessibility||{}).description;return K&&T.chart.langFormat("accessibility.series.description",{description:K,series:T})||""})(p),v=function(T){return E[T]&&E[T].length>1&&p[T]},w=p.index+1,s=j(p,"xAxis"),h=j(p,"yAxis"),b={seriesNumber:w,series:p,chart:E},C=y.length>1?"Combination":"",M=E.langFormat("accessibility.series.summary."+p.type+C,b)||E.langFormat("accessibility.series.summary.default"+C,b),B=(v("yAxis")?" "+h+".":"")+(v("xAxis")?" "+s+".":"");return d(t(p.options.accessibility&&p.options.accessibility.descriptionFormat,E.options.accessibility.series.descriptionFormat,""),{seriesDescription:M,authorDescription:x?" "+x:"",axisDescription:B,series:p,chart:E,seriesNumber:w},void 0)}return{defaultPointDescriptionFormatter:k,defaultSeriesDescriptionFormatter:m,describeSeries:function(p){let E=p.chart,y=S(p),x=f(p),v=E.is3d&&E.is3d();x&&(x.lastChild!==y||v||i(x),(function(w){let s=(function(C){let M=C.options.accessibility||{};return!c(C)&&!M.exposeAsGroupOnly})(w),h=(function(C){let M=C.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!!(C.points&&(C.points.length<+M.pointNavigationEnabledThreshold||M.pointNavigationEnabledThreshold===!1))})(w),b=w.chart.options.accessibility.point.describeNull;
1(s||h)&&w.points.forEach(C=>{let M=C.graphic&&C.graphic.element||(function(T){let K=T.series,I=K&&K.chart,R=K&&K.is("sunburst"),H=T.isNull,z=I&&I.options.accessibility.point.describeNull;return H&&!R&&z})(C)&&(function(T){let K=T.series,I=(function(W){let q=W.index;return W.series&&W.series.data&&l(q)&&e(W.series.data,function(X){return!!(X&&X.index!==void 0&&X.index>q&&X.graphic&&X.graphic.element)})||null})(T),R=I&&I.graphic,H=R?R.parentGroup:K.graph||K.group,z=I?{x:t(T.plotX,I.plotX,0),y:t(T.plotY,I.plotY,0)}:{x:t(T.plotX,0),y:t(T.plotY,0)},G=(function(W,q){let X=W.series.chart.renderer.rect(q.x,q.y,1,1);return X.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),X})(T,z);if(H&&H.element)return T.graphic=G,T.hasMockGraphic=!0,G.add(H),H.element.insertBefore(G.element,R?R.element:null),G.element})(C),B=C.options&&C.options.accessibility&&C.options.accessibility.enabled===!1;if(M){if(C.isNull&&!b){M.setAttribute("aria-hidden",!0);return}M.setAttribute("tabindex","-1"),w.chart.styledMode||(M.style.outline="none"),s&&!B?(function(T,K){let I=T.series,R=I.options.accessibility?.point||{},H=I.chart.options.accessibility.point||{},z=o(a(R.descriptionFormat)&&d(R.descriptionFormat,T,I.chart)||R.descriptionFormatter?.(T)||a(H.descriptionFormat)&&d(H.descriptionFormat,T,I.chart)||H.descriptionFormatter?.(T)||k(T),I.chart.renderer.forExport);K.setAttribute("role","img"),K.setAttribute("aria-label",z)})(C,M):M.setAttribute("aria-hidden",!0)}})})(p),g(E,x),(function(w){let s=w.chart,h=s.options.chart,b=h.options3d&&h.options3d.enabled,C=s.series.length>1,M=s.options.accessibility.series.describeSingleSeries,B=(w.options.accessibility||{}).exposeAsGroupOnly;return!(b&&C)&&(C||M||B||c(w))})(p)?(function(w,s){let h=w.options.accessibility||{},b=w.chart.options.accessibility,C=b.landmarkVerbosity;h.exposeAsGroupOnly?s.setAttribute("role","img"):C==="all"?s.setAttribute("role","region"):s.setAttribute("role","group"),s.setAttribute("tabindex","-1"),w.chart.styledMode||(s.style.outline="none"),s.setAttribute("aria-label",o(b.series.descriptionFormatter&&b.series.descriptionFormatter(w)||m(w),w.chart.renderer.forExport))})(p,x):x.removeAttribute("aria-label"))}}}),V(u,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[u["Core/Globals.js"],u["Core/Utilities.js"],u["Accessibility/Utils/Announcer.js"],u["Accessibility/Utils/ChartUtilities.js"],u["Accessibility/Utils/EventProvider.js"],u["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(F,U,L,P,O,D){let{composed:N}=F,{addEvent:S,defined:f,pushUnique:g}=U,{getChartTitle:d}=P,{defaultPointDescriptionFormatter:r,defaultSeriesDescriptionFormatter:i}=D;function o(n){return!!n.options.accessibility.announceNewData.enabled}class e{constructor(a){this.dirty={allSeries:{}},this.lastAnnouncementTime=0,this.chart=a}init(){let a=this.chart,t=a.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new O,this.announcer=new L(a,t),this.addEventListeners()}destroy(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()}addEventListeners(){let a=this,t=this.chart,l=this.eventProvider;l.addEvent(t,"afterApplyDrilldown",function(){a.lastAnnouncementTime=0}),l.addEvent(t,"afterAddSeries",function(c){a.onSeriesAdded(c.series)}),l.addEvent(t,"redraw",function(){a.announceDirtyData()})}onSeriesAdded(a){o(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[a.name+a.index]=a,this.dirty.newSeries=f(this.dirty.newSeries)?void 0:a)}announceDirtyData(){let a=this.chart,t=this;if(a.options.accessibility.announceNewData&&this.dirty.hasDirty){let l=this.dirty.newPoint;l&&(l=(function(c){let A=c.series.data.filter(j=>c.x===j.x&&c.y===j.y);return A.length===1?A[0]:c})(l)),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(c=>t.dirty.allSeries[c]),this.dirty.newSeries,l),this.dirty={allSeries:{}}}}queueAnnouncement(a,t,l){let c=this.chart.options.accessibility.announceNewData;if(c.enabled){let A=+new Date,j=A-this.lastAnnouncementTime,k=Math.max(0,c.minAnnounceInterval-j),m=(function(E,y){let x=(E||[]).concat(y||[]).reduce((v,w)=>(v[w.name+w.index]=w,v),{});return Object.keys(x).map(v=>x[v])})(this.queuedAnnouncement&&this.queuedAnnouncement.series,a),p=this.buildAnnouncementMessage(m,t,l);p&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:A,message:p,series:m},this.queuedAnnouncementTimer=setTimeout(()=>{this&&this.announcer&&(this.lastAnnouncementTime=+new Date,this.announcer.announce(this.queuedAnnouncement.message),delete this.queuedAnnouncement,delete this.queuedAnnouncementTimer)},k))}}
vendor: 10,793 bytes, line 1
1buildAnnouncementMessage(a,t,l){let c=this.chart,A=c.options.accessibility.announceNewData;if(A.announcementFormatter){let p=A.announcementFormatter(a,t,l);if(p!==!1)return p.length?p:null}let j=F.charts&&F.charts.length>1?"Multiple":"Single",k=t?"newSeriesAnnounce"+j:l?"newPointAnnounce"+j:"newDataAnnounce",m=d(c);return c.langFormat("accessibility.announceNewData."+k,{chartTitle:m,seriesDesc:t?i(t):null,pointDesc:l?r(l):null,point:l,series:t})}}return(function(n){function a(l){let c=this.chart,A=c.accessibility?.components.series.newDataAnnouncer;A&&A.chart===c&&o(c)&&(A.dirty.newPoint=f(A.dirty.newPoint)?void 0:l.point)}function t(){let l=this.chart,c=l.accessibility?.components.series.newDataAnnouncer;c&&c.chart===l&&o(l)&&(c.dirty.hasDirty=!0,c.dirty.allSeries[this.name+this.index]=this)}n.compose=function(l){g(N,"A11y.NDA")&&(S(l,"addPoint",a),S(l,"updatedData",t))}})(e||(e={})),e}),V(u,"Accessibility/ProxyElement.js",[u["Core/Globals.js"],u["Core/Utilities.js"],u["Accessibility/Utils/EventProvider.js"],u["Accessibility/Utils/ChartUtilities.js"],u["Accessibility/Utils/HTMLUtilities.js"]],function(F,U,L,P,O){let{doc:D}=F,{attr:N,css:S,merge:f}=U,{fireEventOnWrappedOrUnwrappedElement:g}=P,{cloneMouseEvent:d,cloneTouchEvent:r,getFakeMouseEvent:i,removeElement:o}=O;return class{constructor(e,n,a="button",t,l){this.chart=e,this.target=n,this.eventProvider=new L;let c=this.innerElement=D.createElement(a),A=this.element=t?D.createElement(t):c;e.styledMode||this.hideElementVisually(c),t&&(t!=="li"||e.styledMode||(A.style.listStyle="none"),A.appendChild(c),this.element=A),this.updateTarget(n,l)}click(){let e=this.getTargetPosition();e.x+=e.width/2,e.y+=e.height/2;let n=i("click",e);g(this.target.click,n)}updateTarget(e,n){this.target=e,this.updateCSSClassName();let a=n||{};Object.keys(a).forEach(l=>{a[l]===null&&delete a[l]});let t=this.getTargetAttr(e.click,"aria-label");N(this.innerElement,f(t?{"aria-label":t}:{},a)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToElement(this.innerElement,e.click),this.refreshPosition()}refreshPosition(){let e=this.getTargetPosition();S(this.innerElement,{width:(e.width||1)+"px",height:(e.height||1)+"px",left:(Math.round(e.x)||0)+"px",top:(Math.round(e.y)||0)+"px"})}remove(){this.eventProvider.removeAddedEvents(),o(this.element)}updateCSSClassName(){let e=c=>c.indexOf("highcharts-no-tooltip")>-1,n=this.chart.legend,a=n.group&&n.group.div,t=e(a&&a.className||""),l=e(this.getTargetAttr(this.target.click,"class")||"");this.innerElement.className=t||l?"highcharts-a11y-proxy-element highcharts-no-tooltip":"highcharts-a11y-proxy-element"}addProxyEventsToElement(e,n){["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(a=>{let t=a.indexOf("touch")===0;this.eventProvider.addEvent(e,a,l=>{let c=t?r(l):d(l);n&&g(n,c),l.stopPropagation(),t||l.preventDefault()},{passive:!1})})}hideElementVisually(e){S(e,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})}getTargetPosition(){let e=this.target.click,n=e.element?e.element:e,a=this.target.visual||n,t=this.chart.renderTo,l=this.chart.pointer;if(t&&a?.getBoundingClientRect&&l){let c=a.getBoundingClientRect(),A=l.getChartPosition();return{x:(c.left-A.left)/A.scaleX,y:(c.top-A.top)/A.scaleY,width:c.right/A.scaleX-c.left/A.scaleX,height:c.bottom/A.scaleY-c.top/A.scaleY}}return{x:0,y:0,width:1,height:1}}getTargetAttr(e,n){return e.element?e.element.getAttribute(n):e.getAttribute(n)}}}),V(u,"Accessibility/ProxyProvider.js",[u["Core/Globals.js"],u["Core/Utilities.js"],u["Accessibility/Utils/ChartUtilities.js"],u["Accessibility/Utils/DOMElementProvider.js"],u["Accessibility/Utils/HTMLUtilities.js"],u["Accessibility/ProxyElement.js"]],function(F,U,L,P,O,D){let{doc:N}=F,{attr:S,css:f}=U,{unhideChartElementFromAT:g}=L,{removeChildNodes:d}=O;return class{constructor(r){this.chart=r,this.domElementProvider=new P,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}addProxyElement(r,i,o="button",e){let n=this.groups[r];if(!n)throw Error("ProxyProvider.addProxyElement: Invalid group key "+r);let a=n.type==="ul"||n.type==="ol"?"li":void 0,t=new D(this.chart,i,o,a,e);return n.proxyContainerElement.appendChild(t.element),n.proxyElements.push(t),t}addGroup(r,i="div",o){let e,n=this.groups[r];if(n)return n.groupElement;let a=this.domElementProvider.createElement(i);return o&&o.role&&i!=="div"?(e=this.domElementProvider.createElement("div")).appendChild(a):e=a,e.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+r.replace(/\W/g,"-"),this.groups[r]={proxyContainerElement:a,groupElement:e,type:i,proxyElements:[]},S(e,o||{}),i==="ul"&&a.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(e),this.updateGroupOrder(this.groupOrder),e}updateGroupAttrs(r,i){let o=this.groups[r];if(!o)throw Error("ProxyProvider.updateGroupAttrs: Invalid group key "+r);S(o.groupElement,i)}updateGroupOrder(r){if(this.groupOrder=r.slice(),this.isDOMOrderGroupOrder())return;let i=r.indexOf("series"),o=i>-1?r.slice(0,i):r,e=i>-1?r.slice(i+1):[],n=N.activeElement;["before","after"].forEach(a=>{let t=this[a==="before"?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"];d(t),(a==="before"?o:e).forEach(l=>{let c=this.groups[l];c&&t.appendChild(c.groupElement)})}),(this.beforeChartProxyPosContainer.contains(n)||this.afterChartProxyPosContainer.contains(n))&&n&&n.focus&&n.focus()}clearGroup(r){let i=this.groups[r];if(!i)throw Error("ProxyProvider.clearGroup: Invalid group key "+r);d(i.proxyContainerElement)}removeGroup(r){let i=this.groups[r];i&&(this.domElementProvider.removeElement(i.groupElement),i.groupElement!==i.proxyContainerElement&&this.domElementProvider.removeElement(i.proxyContainerElement),delete this.groups[r])}update(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()}updateProxyElementPositions(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))}updateGroupProxyElementPositions(r){let i=this.groups[r];i&&i.proxyElements.forEach(o=>o.refreshPosition())}destroy(){this.domElementProvider.destroyCreatedElements()}createProxyPosContainer(r){let i=this.domElementProvider.createElement("div");return i.setAttribute("aria-hidden","false"),i.className="highcharts-a11y-proxy-container"+(r?"-"+r:""),f(i,{top:"0",left:"0"}),this.chart.styledMode||(i.style.whiteSpace="nowrap",i.style.position="absolute"),i}getCurrentGroupOrderInDOM(){let r=n=>{let a=Object.keys(this.groups),t=a.length;for(;t--;){let l=a[t],c=this.groups[l];if(c&&n===c.groupElement)return l}},i=n=>{let a=[],t=n.children;for(let l=0;l<t.length;++l){let c=r(t[l]);c&&a.push(c)}return a},o=i(this.beforeChartProxyPosContainer),e=i(this.afterChartProxyPosContainer);return o.push("series"),o.concat(e)}isDOMOrderGroupOrder(){let r=this.getCurrentGroupOrderInDOM(),i=this.groupOrder.filter(e=>e==="series"||!!this.groups[e]),o=r.length;if(o!==i.length)return!1;for(;o--;)if(r[o]!==i[o])return!1;return!0}updatePosContainerPositions(){let r=this.chart;if(r.renderer.forExport)return;let i=r.renderer.box;r.container.insertBefore(this.afterChartProxyPosContainer,i.nextSibling),r.container.insertBefore(this.beforeChartProxyPosContainer,i),g(this.chart,this.afterChartProxyPosContainer),g(this.chart,this.beforeChartProxyPosContainer)}}}),V(u,"Accessibility/Components/RangeSelectorComponent.js",[u["Accessibility/AccessibilityComponent.js"],u["Accessibility/Utils/Announcer.js"],u["Accessibility/Utils/ChartUtilities.js"],u["Accessibility/KeyboardNavigationHandler.js"],u["Core/Utilities.js"]],function(F,U,L,P,O){let{unhideChartElementFromAT:D,getAxisRangeDescription:N}=L,{addEvent:S,attr:f}=O;class g extends F{init(){let r=this.chart;this.announcer=new U(r,"polite")}onChartUpdate(){let r=this.chart,i=this,o=r.rangeSelector;o&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),o.buttons&&o.buttons.length&&o.buttons.forEach(e=>{i.setRangeButtonAttrs(e)}),o.maxInput&&o.minInput&&["minInput","maxInput"].forEach(function(e,n){let a=o[e];a&&(D(r,a),i.setRangeInputAttrs(a,"accessibility.rangeSelector."+(n?"max":"min")+"InputLabel"))}))}updateSelectorVisibility(){let r=this.chart,i=r.rangeSelector,o=i&&i.dropdown,e=i&&i.buttons||[],n=a=>a.setAttribute("aria-hidden",!0);i&&i.hasVisibleDropdown&&o?(D(r,o),e.forEach(a=>n(a.element))):(o&&n(o),e.forEach(a=>D(r,a.element)))}setDropdownAttrs(){let r=this.chart,i=r.rangeSelector&&r.rangeSelector.dropdown;if(i){let o=r.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:r.options.lang.rangeSelectorZoom});i.setAttribute("aria-label",o),i.setAttribute("tabindex",-1)}}setRangeButtonAttrs(r){f(r.element,{tabindex:-1,role:"button"})}setRangeInputAttrs(r,i){let o=this.chart;f(r,{tabindex:-1,"aria-label":o.langFormat(i,{chart:o})})}onButtonNavKbdArrowKey(r,i){let o=r.response,e=this.keyCodes,n=this.chart,a=n.options.accessibility.keyboardNavigation.wrapAround,t=i===e.left||i===e.up?-1:1;return n.highlightRangeSelectorButton(n.highlightedRangeSelectorItemIx+t)?o.success:a?(r.init(t),o.success):o[t>0?"next":"prev"]}onButtonNavKbdClick(r){let i=r.response,o=this.chart;return o.oldRangeSelectorItemState!==3&&this.fakeClickEvent(o.rangeSelector.buttons[o.highlightedRangeSelectorItemIx].element),i.success}onAfterBtnClick(){let r=this.chart,i=N(r.xAxis[0]),o=r.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:r,axisRangeDescription:i});o&&this.announcer.announce(o)}onInputKbdMove(r){let i=this.chart,o=i.rangeSelector,e=i.highlightedInputRangeIx=(i.highlightedInputRangeIx||0)+r;if(e>1||e<0){if(i.accessibility)return i.accessibility.keyboardNavigation.exiting=!0,i.accessibility.keyboardNavigation.tabindexContainer.focus(),i.accessibility.keyboardNavigation.move(r)}else if(o){let n=o[e?"maxDateBox":"minDateBox"],a=o[e?"maxInput":"minInput"];n&&a&&i.setFocusToElement(n,a)}return!0}onInputNavInit(r){let i=this,o=this.chart,e=r>0?0:1,n=o.rangeSelector,a=n&&n[e?"maxDateBox":"minDateBox"],t=n&&n.minInput,l=n&&n.maxInput;if(o.highlightedInputRangeIx=e,a&&t&&l){o.setFocusToElement(a,e?l:t),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();let c=k=>{(k.which||k.keyCode)===this.keyCodes.tab&&i.onInputKbdMove(k.shiftKey?-1:1)&&(k.preventDefault(),k.stopPropagation())},A=S(t,"keydown",c),j=S(l,"keydown",c);this.removeInputKeydownHandler=()=>{A(),j()}}}onInputNavTerminate(){let r=this.chart.rangeSelector||{};
1r.maxInput&&r.hideInput("max"),r.minInput&&r.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)}initDropdownNav(){let r=this.chart,i=r.rangeSelector,o=i&&i.dropdown;i&&o&&(r.setFocusToElement(i.buttonGroup,o),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=S(o,"keydown",e=>{let n=(e.which||e.keyCode)===this.keyCodes.tab,a=r.accessibility;n&&(e.preventDefault(),e.stopPropagation(),a&&(a.keyboardNavigation.tabindexContainer.focus(),a.keyboardNavigation.move(e.shiftKey?-1:1)))}))}getRangeSelectorButtonNavigation(){let r=this.chart,i=this.keyCodes,o=this;return new P(r,{keyCodeMap:[[[i.left,i.right,i.up,i.down],function(e){return o.onButtonNavKbdArrowKey(this,e)}],[[i.enter,i.space],function(){return o.onButtonNavKbdClick(this)}]],validate:function(){return!!(r.rangeSelector&&r.rangeSelector.buttons&&r.rangeSelector.buttons.length)},init:function(e){let n=r.rangeSelector;if(n&&n.hasVisibleDropdown)o.initDropdownNav();else if(n){let a=n.buttons.length-1;r.highlightRangeSelectorButton(e>0?0:a)}},terminate:function(){o.removeDropdownKeydownHandler&&(o.removeDropdownKeydownHandler(),delete o.removeDropdownKeydownHandler)}})}getRangeSelectorInputNavigation(){let r=this.chart,i=this;return new P(r,{keyCodeMap:[],validate:function(){return!!(r.rangeSelector&&r.rangeSelector.inputGroup&&r.rangeSelector.inputGroup.element.style.visibility!=="hidden"&&r.options.rangeSelector.inputEnabled!==!1&&r.rangeSelector.minInput&&r.rangeSelector.maxInput)},init:function(o){i.onInputNavInit(o)},terminate:function(){i.onInputNavTerminate()}})}getKeyboardNavigation(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]}destroy(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()}}return(function(d){function r(o){let e=this.rangeSelector&&this.rangeSelector.buttons||[],n=this.highlightedRangeSelectorItemIx,a=this.rangeSelector&&this.rangeSelector.selected;return n!==void 0&&e[n]&&n!==a&&e[n].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=o,!!e[o]&&(this.setFocusToElement(e[o].box,e[o].element),o!==a&&(this.oldRangeSelectorItemState=e[o].state,e[o].setState(1)),!0)}function i(){let o=this.chart.accessibility;if(o&&o.components.rangeSelector)return o.components.rangeSelector.onAfterBtnClick()}d.compose=function(o,e){let n=o.prototype;n.highlightRangeSelectorButton||(n.highlightRangeSelectorButton=r,S(e,"afterBtnClick",i))}})(g||(g={})),g}),V(u,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[u["Core/Globals.js"],u["Core/Utilities.js"]],function(F,U){var L;let{composed:P}=F,{addEvent:O,merge:D,pushUnique:N}=U;return(function(S){function f(n){D(!0,n,{marker:{enabled:!0,states:{normal:{opacity:0}
1}}})}function g(n){return n.marker.states&&n.marker.states.normal&&n.marker.states.normal.opacity}function d(n){return!!(n._hasPointMarkers&&n.points&&n.points.length)}function r(){this.chart.styledMode&&(this.markerGroup&&this.markerGroup[this.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),d(this)&&this.points.forEach(n=>{n.graphic&&(n.graphic[n.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),n.graphic[n.hasForcedA11yMarker===!1?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function i(n){this.resetA11yMarkerOptions=D(n.options.marker||{},this.userOptions.marker||{})}function o(){let n=this.options;(function(a){let t=a.chart.options.accessibility.enabled,l=(a.options.accessibility&&a.options.accessibility.enabled)!==!1;return t&&l&&(function(c){let A=c.chart.options.accessibility;return c.points.length<A.series.pointDescriptionEnabledThreshold||A.series.pointDescriptionEnabledThreshold===!1})(a)})(this)?(n.marker&&n.marker.enabled===!1&&(this.a11yMarkersForced=!0,f(this.options)),d(this)&&(function(a){let t=a.points.length;for(;t--;){let l=a.points[t],c=l.options,A=l.hasForcedA11yMarker;if(delete l.hasForcedA11yMarker,c.marker){let j=A&&g(c)===0;c.marker.enabled&&!j?(D(!0,c.marker,{states:{normal:{opacity:g(c)||1}}}),l.hasForcedA11yMarker=!1):c.marker.enabled===!1&&(f(c),l.hasForcedA11yMarker=!0)}}})(this)):this.a11yMarkersForced&&(delete this.a11yMarkersForced,(function(a){let t=a.resetA11yMarkerOptions;if(t){let l=t.states&&t.states.normal&&t.states.normal.opacity;a.userOptions&&a.userOptions.marker&&(a.userOptions.marker.enabled=!0),a.update({marker:{enabled:t.enabled,states:{normal:{opacity:l}}}})}})(this),delete this.resetA11yMarkerOptions)}function e(){this.boosted&&this.a11yMarkersForced&&(D(!0,this.options,{marker:{enabled:!1}}),delete this.a11yMarkersForced)}S.compose=function(n){N(P,"A11y.FM")&&(O(n,"afterSetOptions",i),O(n,"render",o),O(n,"afterRender",r),O(n,"renderCanvas",e))}})(L||(L={})),L}),V(u,"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",[u["Core/Series/Point.js"],u["Core/Series/Series.js"],u["Core/Series/SeriesRegistry.js"],u["Core/Globals.js"],u["Core/Utilities.js"],u["Accessibility/KeyboardNavigationHandler.js"],u["Accessibility/Utils/EventProvider.js"],u["Accessibility/Utils/ChartUtilities.js"]],function(F,U,L,P,O,D,N,S){let{seriesTypes:f}=L,{doc:g}=P,{defined:d,fireEvent:r}=O,{getPointFromXY:i,getSeriesFromName:o,scrollAxisToPoint:e}=S;function n(k){let m=k.index,p=k.series.points,E=p.length;if(p[m]===k)return m;for(;E--;)if(p[E]===k)return E}function a(k){let m=k.chart.options.accessibility.keyboardNavigation.seriesNavigation,p=k.options.accessibility||{},E=p.keyboardNavigation;return E&&E.enabled===!1||p.enabled===!1||k.options.enableMouseTracking===!1||!k.visible||m.pointNavigationEnabledThreshold&&+m.pointNavigationEnabledThreshold<=k.points.length}function t(k){let m=k.series.chart.options.accessibility,p=k.options.accessibility&&k.options.accessibility.enabled===!1;return k.isNull&&m.keyboardNavigation.seriesNavigation.skipNullPoints||k.visible===!1||k.isInside===!1||p||a(k.series)}function l(k){let m=k.series||[],p=m.length;for(let E=0;E<p;++E)if(!a(m[E])){let y=(function(x){let v=x.points||[],w=v.length;for(let s=0;s<w;++s)if(!t(v[s]))return v[s];return null})(m[E]);if(y)return y}return null}function c(k){let m=k.series.length,p=!1;for(;m--&&(k.highlightedPoint=k.series[m].points[k.series[m].points.length-1],!(p=k.series[m].highlightNextValidPoint())););return p}function A(k){delete k.highlightedPoint;let m=l(k);return!!m&&m.highlight()}class j{constructor(m,p){this.keyCodes=p,this.chart=m}init(){let m=this,p=this.chart,E=this.eventProvider=new N;E.addEvent(U,"destroy",function(){return m.onSeriesDestroy(this)}),E.addEvent(p,"afterApplyDrilldown",function(){(function(y){let x=l(y);x&&x.highlight(!1)})(this)}),E.addEvent(p,"drilldown",function(y){let x=y.point,v=x.series;m.lastDrilledDownPoint={x:x.x,y:x.y,seriesName:v?v.name:""}}),E.addEvent(p,"drillupall",function(){setTimeout(function(){m.onDrillupAll()},10)}),E.addEvent(F,"afterSetState",function(){let y=this.graphic&&this.graphic.element,x=g.activeElement,v=x&&x.getAttribute("class"),w=v&&v.indexOf("highcharts-a11y-proxy-element")>-1;p.highlightedPoint===this&&x!==y&&!w&&y&&y.focus&&y.focus()})}onDrillupAll(){let m,p=this.lastDrilledDownPoint,E=this.chart,y=p&&o(E,p.seriesName);p&&y&&d(p.x)&&d(p.y)&&(m=i(y,p.x,p.y)),m=m||l(E),E.container&&E.container.focus(),m&&m.highlight&&m.highlight(!1)}getKeyboardNavigationHandler(){let m=this,p=this.keyCodes,E=this.chart,y=E.inverted;
vendor: 6,034 bytes, line 1
1return new D(E,{keyCodeMap:[[y?[p.up,p.down]:[p.left,p.right],function(x){return m.onKbdSideways(this,x)}],[y?[p.left,p.right]:[p.up,p.down],function(x){return m.onKbdVertical(this,x)}],[[p.enter,p.space],function(x,v){let w=E.highlightedPoint;if(w){let{plotLeft:s,plotTop:h}=this.chart,{plotX:b=0,plotY:C=0}=w;v={...v,chartX:s+b,chartY:h+C,point:w,target:w.graphic?.element||v.target},r(w.series,"click",v),w.firePointEvent("click",v)}return this.response.success}],[[p.home],function(){return A(E),this.response.success}],[[p.end],function(){return c(E),this.response.success}],[[p.pageDown,p.pageUp],function(x){return E.highlightAdjacentSeries(x===p.pageDown),this.response.success}]],init:function(){return m.onHandlerInit(this)},validate:function(){return!!l(E)},terminate:function(){return m.onHandlerTerminate()}})}onKbdSideways(m,p){let E=this.keyCodes,y=p===E.right||p===E.down;return this.attemptHighlightAdjacentPoint(m,y)}onHandlerInit(m){let p=this.chart;return p.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&p.highlightedPoint?p.highlightedPoint.highlight():A(p),m.response.success}onKbdVertical(m,p){let E=this.chart,y=this.keyCodes,x=p===y.down||p===y.right,v=E.options.accessibility.keyboardNavigation.seriesNavigation;if(v.mode&&v.mode==="serialize")return this.attemptHighlightAdjacentPoint(m,x);let w=E.highlightedPoint&&E.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries";return E[w](x),m.response.success}onHandlerTerminate(){let m=this.chart,p=m.options.accessibility.keyboardNavigation;m.tooltip&&m.tooltip.hide(0);let E=m.highlightedPoint&&m.highlightedPoint.series;E&&E.onMouseOut&&E.onMouseOut(),m.highlightedPoint&&m.highlightedPoint.onMouseOut&&m.highlightedPoint.onMouseOut(),p.seriesNavigation.rememberPointFocus||delete m.highlightedPoint}attemptHighlightAdjacentPoint(m,p){let E=this.chart,y=E.options.accessibility.keyboardNavigation.wrapAround;return E.highlightAdjacentPoint(p)||y&&(p?A(E):c(E))?m.response.success:m.response[p?"next":"prev"]}onSeriesDestroy(m){let p=this.chart;p.highlightedPoint&&p.highlightedPoint.series===m&&(delete p.highlightedPoint,p.focusElement&&p.focusElement.removeFocusBorder())}destroy(){this.eventProvider.removeAddedEvents()}}return(function(k){function m(v){let w,s,h=this.series,b=this.highlightedPoint,C=b&&n(b)||0,M=b&&b.series.points||[],B=this.series&&this.series[this.series.length-1],T=B&&B.points&&B.points[B.points.length-1];if(!h[0]||!h[0].points)return!1;if(b){if(w=h[b.series.index+(v?1:-1)],(s=M[C+(v?1:-1)])||!w||(s=w.points[v?0:w.points.length-1]),!s)return!1}else s=v?h[0].points[0]:T;return t(s)?(a(w=s.series)?this.highlightedPoint=v?w.points[w.points.length-1]:w.points[0]:this.highlightedPoint=s,this.highlightAdjacentPoint(v)):s.highlight()}function p(v){let w=this.highlightedPoint,s=1/0,h;return!!(d(w.plotX)&&d(w.plotY))&&(this.series.forEach(b=>{a(b)||b.points.forEach(C=>{if(!d(C.plotY)||!d(C.plotX)||C===w)return;let M=C.plotY-w.plotY,B=Math.abs(C.plotX-w.plotX),T=Math.abs(M)*Math.abs(M)+B*B*4;b.yAxis&&b.yAxis.reversed&&(M*=-1),!(M<=0&&v||M>=0&&!v||T<5||t(C))&&T<s&&(s=T,h=C)})}),!!h&&h.highlight())}function E(v){let w,s,h,b=this.highlightedPoint,C=this.series&&this.series[this.series.length-1],M=C&&C.points&&C.points[C.points.length-1];return this.highlightedPoint?!!((w=this.series[b.series.index+(v?-1:1)])&&(s=(function(B,T,K,I){let R=1/0,H,z,G,W=T.points.length,q=X=>!(d(X.plotX)&&d(X.plotY));if(!q(B)){for(;W--;)!q(H=T.points[W])&&(G=(B.plotX-H.plotX)*(B.plotX-H.plotX)*4+(B.plotY-H.plotY)*(B.plotY-H.plotY)*1)<R&&(R=G,z=W);return d(z)?T.points[z]:void 0}})(b,w)))&&(a(w)?(s.highlight(),(h=this.highlightAdjacentSeries(v))?h:(b.highlight(),!1)):(s.highlight(),s.series.highlightNextValidPoint())):(w=v?this.series&&this.series[0]:C,!!(s=v?w&&w.points&&w.points[0]:M)&&s.highlight())}function y(v=!0){let w=this.series.chart,s=w.tooltip?.label?.element;!this.isNull&&v?this.onMouseOver():w.tooltip&&w.tooltip.hide(0),e(this),this.graphic&&(w.setFocusToElement(this.graphic),!v&&w.focusElement&&w.focusElement.removeFocusBorder()),w.highlightedPoint=this;let h=s?.getBoundingClientRect().top;if(s&&h&&h<0){let b=window.scrollY;window.scrollTo({behavior:"smooth",top:b+h})}return this}function x(){let v=this.chart.highlightedPoint,w=(v&&v.series)===this?n(v):0,s=this.points,h=s.length;if(s&&h){for(let b=w;b<h;++b)if(!t(s[b]))return s[b].highlight();for(let b=w;b>=0;--b)if(!t(s[b]))return s[b].highlight()}return!1}k.compose=function(v,w,s){let h=v.prototype,b=w.prototype,C=s.prototype;h.highlightAdjacentPoint||(h.highlightAdjacentPoint=m,h.highlightAdjacentPointVertical=p,h.highlightAdjacentSeries=E,b.highlight=y,C.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(M=>{f[M]&&(f[M].prototype.keyboardMoveVertical=!1)}),C.highlightNextValidPoint=x)}})(j||(j={})),j}),V(u,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[u["Accessibility/AccessibilityComponent.js"],u["Accessibility/Utils/ChartUtilities.js"],u["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],u["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],u["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],u["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"]],function(F,U,L,P,O,D){let{hideSeriesFromAT:N}=U,{describeSeries:S}=O;return class extends F{static compose(f,g,d){P.compose(d),L.compose(d),D.compose(f,g,d)}init(){this.newDataAnnouncer=new P(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new D(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()}hideTooltipFromATWhenShown(){let f=this;this.chart.tooltip&&this.addEvent(this.chart.tooltip.constructor,"refresh",function(){this.chart===f.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})}hideSeriesLabelsFromATWhenShown(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEac
1h(function(f){f.labelBySeries&&f.labelBySeries.attr("aria-hidden",!0)})})}onChartRender(){this.chart.series.forEach(function(f){(f.options.accessibility&&f.options.accessibility.enabled)!==!1&&f.visible&&f.getPointsCollection().length!==0?S(f):N(f)})}getKeyboardNavigation(){return this.keyboardNavigation.getKeyboardNavigationHandler()}destroy(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()}}}),V(u,"Accessibility/Components/ZoomComponent.js",[u["Accessibility/AccessibilityComponent.js"],u["Accessibility/Utils/ChartUtilities.js"],u["Accessibility/Utils/HTMLUtilities.js"],u["Accessibility/KeyboardNavigationHandler.js"],u["Core/Utilities.js"]],function(F,U,L,P,O){let{unhideChartElementFromAT:D}=U,{getFakeMouseEvent:N}=L,{attr:S,pick:f}=O;return class extends F{constructor(){super(...arguments),this.focusedMapNavButtonIx=-1}init(){let g=this,d=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(r=>{g.addEvent(d,r,function(){g.updateProxyOverlays()})})}onChartUpdate(){let g=this.chart,d=this;g.mapNavigation&&g.mapNavigation.navButtons.forEach((r,i)=>{D(g,r.element),d.setMapNavButtonAttrs(r.element,"accessibility.zoom.mapZoom"+(i?"Out":"In"))})}setMapNavButtonAttrs(g,d){let r=this.chart;S(g,{tabindex:-1,role:"button","aria-label":r.langFormat(d,{chart:r})})}onChartRender(){this.updateProxyOverlays()}updateProxyOverlays(){let g=this.chart;if(this.proxyProvider.clearGroup("zoom"),g.resetZoomButton&&this.createZoomProxyButton(g.resetZoomButton,"resetZoomProxyButton",g.langFormat("accessibility.zoom.resetZoomButton",{chart:g})),g.drillUpButton&&g.breadcrumbs&&g.breadcrumbs.list){let d=g.breadcrumbs.list[g.breadcrumbs.list.length-1];this.createZoomProxyButton(g.drillUpButton,"drillUpProxyButton",g.langFormat("accessibility.drillUpButton",{chart:g,buttonText:g.breadcrumbs.getButtonText(d)}))}}createZoomProxyButton(g,d,r){this[d]=this.proxyProvider.addProxyElement("zoom",{click:g},"button",{"aria-label":r,tabindex:-1})}getMapZoomNavigation(){let g=this.keyCodes,d=this.chart,r=this;return new P(d,{keyCodeMap:[[[g.up,g.down,g.left,g.right],function(i){return r.onMapKbdArrow(this,i)}],[[g.tab],function(i,o){return r.onMapKbdTab(this,o)}],[[g.space,g.enter],function(){return r.onMapKbdClick(this)}]],validate:function(){return!!(d.mapView&&d.mapNavigation&&d.mapNavigation.navButtons.length)},init:function(i){return r.onMapNavInit(i)}})}onMapKbdArrow(g,d){let r=this.chart,i=this.keyCodes,o=r.container,e=d===i.up||d===i.down,n=d===i.left||d===i.up?1:-1,a=(e?r.plotHeight:r.plotWidth)/10*n,t=10*Math.random(),l={x:o.offsetLeft+r.plotLeft+r.plotWidth/2+t,y:o.offsetTop+r.plotTop+r.plotHeight/2+t},c=e?{x:l.x,y:l.y+a}:{x:l.x+a,y:l.y};return[N("mousedown",l),N("mousemove",c),N("mouseup",c)].forEach(A=>o.dispatchEvent(A)),g.response.success}onMapKbdTab(g,d){let r=this.chart,i=g.response,o=d.shiftKey,e=o&&!this.focusedMapNavButtonIx||!o&&this.focusedMapNavButtonIx;if(r.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),e)return r.mapView&&r.mapView.zoomBy(),i[o?"prev":"next"];this.focusedMapNavButtonIx+=o?-1:1;let n=r.mapNavigation.navButtons[this.focusedMapNavButtonIx];return r.setFocusToElement(n.box,n.element),n.setState(2),i.success}onMapKbdClick(g){let d=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(d),g.response.success}onMapNavInit(g){let d=this.chart,r=d.mapNavigation.navButtons[0],i=d.mapNavigation.navButtons[1],o=g>0?r:i;d.setFocusToElement(o.box,o.element),o.setState(2),this.focusedMapNavButtonIx=g>0?0:1}simpleButtonNavigation(g,d,r){let i=this.keyCodes,o=this,e=this.chart;return new P(e,{keyCodeMap:[[[i.tab,i.up,i.down,i.left,i.right],function(n,a){let t=n===i.tab&&a.shiftKey||n===i.left||n===i.up;return this.response[t?"prev":"next"]}],[[i.space,i.enter],function(){return f(r(this,e),this.response.success)}]],validate:function(){return e[g]&&e[g].box&&o[d].innerElement},init:function(){e.setFocusToElement(e[g].box,o[d].innerElement)}})}getKeyboardNavigation(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(g,d){d.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(g,d){return d.drillUp(),g.response.prev}),this.getMapZoomNavigation()]}}}),V(u,"Accessibility/HighContrastMode.js",[u["Core/Globals.js"]],function(F){let{doc:U,isMS:L,win:P}=F;return{isHighContrastModeActive:function(){let O=/(Edg)/.test(P.navigator.userAgent);if(P.matchMedia&&O)return P.matchMedia("(-ms-high-contrast: active)").matches;if(L&&P.getComputedStyle){let D=U.createElement("div");D.style.backgroundImage="url(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)",U.body.appendChild(D);let N=(D.currentStyle||P.getComputedStyle(D)).backgroundImage;return U.body.removeChild(D),N==="none"}return P.matchMedia&&P.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function(O){O.highContrastModeActive=!0;let D=O.options.accessibility.highContrastTheme;O.update(D,!1);let N=D.colors?.length>1;
1O.series.forEach(function(S){let f=D.plotOptions[S.type]||{},g=N&&S.colorIndex!==void 0?D.colors[S.colorIndex]:f.color||"window",d={color:f.color||"windowText",colors:N?D.colors:[f.color||"windowText"],borderColor:f.borderColor||"window",fillColor:g};S.update(d,!1),S.points&&S.points.forEach(function(r){r.options&&r.options.color&&r.update({color:f.color||"windowText",borderColor:f.borderColor||"window"},!1)})}),O.redraw()}}}),V(u,"Accessibility/HighContrastTheme.js",[],function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[],dataClasses:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}}),V(u,"Accessibility/Options/A11yDefaults.js",[],function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}</{headingTagName}><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{playAsSoundButton}</div><div>{viewTableButton}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{annotationsTitle}{annotationsList}</div>",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',highContrastMode:"auto",keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#334eff",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","navigator","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}},navigator:{accessibility:{enabled:!0}}}}),V(u,"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}"}
1,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}"},navigator:{handleLabel:"{#eq handleIx 0}Start, percent{else}End, percent{/eq}",groupLabel:"Axis zoom",changeAnnouncement:"{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}
1.",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}"}}}}),V(u,"Accessibility/Options/DeprecatedOptions.js",[u["Core/Utilities.js"]],function(F){let{error:U,pick:L}=F;function P(D,N,S){let f=D,g,d=0;for(;d<N.length-1;++d)f=f[g=N[d]]=L(f[g],{});f[N[N.length-1]]=S}function O(D,N,S,f){function g(i,o){return o.reduce(function(e,n){return e[n]},i)}let d=g(D.options,N),r=g(D.options,S);Object.keys(f).forEach(function(i){let o=d[i];o!==void 0&&(P(r,f[i],o),U(32,!1,D,{[N.join(".")+"."+i]:S.join(".")+"."+f[i].join(".")}))})}return function(D){(function(N){let S=N.options.chart,f=N.options.accessibility||{};["description","typeDescription"].forEach(function(g){S[g]&&(f[g]=S[g],U(32,!1,N,{[`chart.${g}`]:`use accessibility.${g}`}))})}
1)(D),(function(N){N.axes.forEach(function(S){let f=S.options;f&&f.description&&(f.accessibility=f.accessibility||{},f.accessibility.description=f.description,U(32,!1,N,{"axis.description":"use axis.accessibility.description"}))})})(D),D.series&&(function(N){let S={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};N.series.forEach(function(f){Object.keys(S).forEach(function(g){let d=f.options[g];g==="accessibility.pointDescriptionFormatter"&&(d=f.options.accessibility&&f.options.accessibility.pointDescriptionFormatter),d!==void 0&&(P(f.options,S[g],g==="skipKeyboardNavigation"?!d:d),U(32,!1,N,{[`series.${g}`]:"series."+S[g].join(".")}))})})})(D),O(D,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointValueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection","axisRangeDateFormat"]}),O(D,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]}),O(D,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector","buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})}}),V(u,"Accessibility/Accessibility.js",[u["Core/Defaults.js"],u["Core/Globals.js"],u["Core/Utilities.js"],u["Accessibility/Utils/HTMLUtilities.js"],u["Accessibility/A11yI18n.js"],u["Accessibility/Components/ContainerComponent.js"],u["Accessibility/FocusBorder.js"],u["Accessibility/Components/InfoRegionsComponent.js"],u["Accessibility/KeyboardNavigation.js"],u["Accessibility/Components/LegendComponent.js"],u["Accessibility/Components/MenuComponent.js"],u["Accessibility/Components/NavigatorComponent.js"],u["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],u["Accessibility/ProxyProvider.js"],u["Accessibility/Components/RangeSelectorComponent.js"],u["Accessibility/Components/SeriesComponent/SeriesComponent.js"],u["Accessibility/Components/ZoomComponent.js"],u["Accessibility/HighContrastMode.js"],u["Accessibility/HighContrastTheme.js"],u["Accessibility/Options/A11yDefaults.js"],u["Accessibility/Options/LangDefaults.js"],u["Accessibility/Options/DeprecatedOptions.js"]],function(F,U,L,P,O,D,N,S,f,g,d,r,i,o,e,n,a,t,l,c,A,j){let{defaultOptions:k}=F,{doc:m}=U,{addEvent:p,extend:E,fireEvent:y,merge:x}=L,{removeElement:v}=P;class w{constructor(h){this.init(h)}init(h){if(this.chart=h,!m.addEventListener){this.zombie=!0,this.components={},h.renderTo.setAttribute("aria-hidden",!0);return}j(h),this.proxyProvider=new o(this.chart),this.initComponents(),this.keyboardNavigation=new f(h,this.components)}initComponents(){let h=this.chart,b=this.proxyProvider,C=h.options.accessibility;this.components={container:new D,infoRegions:new S,legend:new g,chartMenu:new d,rangeSelector:new e,series:new n,zoom:new a,navigator:new r},C.customComponents&&E(this.components,C.customComponents);let M=this.components;
1this.getComponentOrder().forEach(function(B){M[B].initBase(h,b),M[B].init()})}getComponentOrder(){return this.components?this.components.series?["series"].concat(Object.keys(this.components).filter(h=>h!=="series")):Object.keys(this.components):[]}update(){let h=this.components,b=this.chart,C=b.options.accessibility;y(b,"beforeA11yUpdate"),b.types=this.getChartTypes();let M=C.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(M),this.getComponentOrder().forEach(function(B){h[B].onChartUpdate(),y(b,"afterA11yComponentUpdate",{name:B,component:h[B]})}),this.keyboardNavigation.update(M),!b.highContrastModeActive&&C.highContrastMode!==!1&&(t.isHighContrastModeActive()||C.highContrastMode===!0)&&t.setHighContrastTheme(b),y(b,"afterA11yUpdate",{accessibility:this})}destroy(){let h=this.chart||{},b=this.components;Object.keys(b).forEach(function(C){b[C].destroy(),b[C].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),h.announcerContainer&&v(h.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),h.renderTo&&h.renderTo.setAttribute("aria-hidden",!0),h.focusElement&&h.focusElement.removeFocusBorder()}getChartTypes(){let h={};return this.chart.series.forEach(function(b){h[b.type]=1}),Object.keys(h)}}return(function(s){function h(){this.accessibility&&this.accessibility.destroy()}function b(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());let T=this.accessibility;T&&!T.zombie&&(T.proxyProvider.updateProxyElementPositions(),T.getComponentOrder().forEach(function(K){T.components[K].onChartRender()}))}function C(T){let K=T.options.accessibility;K&&(K.customComponents&&(this.options.accessibility.customComponents=K.customComponents,delete K.customComponents),x(!0,this.options.accessibility,K),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function M(){let T=this.accessibility,K=this.options.accessibility,I=this.renderer.boxWrapper.element,R=this.title;if(K&&K.enabled)T&&!T.zombie?T.update():(this.accessibility=T=new s(this),T&&!T.zombie&&T.update(),I.getAttribute("role")==="img"&&I.removeAttribute("role"));else if(T)T.destroy&&T.destroy(),delete this.accessibility;else{this.renderTo.setAttribute("role","img"),this.renderTo.setAttribute("aria-hidden",!1),this.renderTo.setAttribute("aria-label",(R&&R.element.textContent||"").replace(/</g,"&lt;")),I.setAttribute("aria-hidden",!0);let H=document.getElementsByClassName("highcharts-description")[0];H&&(H.setAttribute("aria-hidden",!1),H.classList.remove("highcharts-linked-description"))}}function B(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}s.i18nFormat=O.i18nFormat,s.compose=function(T,K,I,R,H,z){f.compose(T),i.compose(R),g.compose(T,K),d.compose(T),n.compose(T,I,R),O.compose(T),N.compose(T,H),z&&e.compose(T,z);let G=T.prototype;G.updateA11yEnabled||(G.updateA11yEnabled=M,p(T,"destroy",h),p(T,"render",b),p(T,"update",C),["addSeries","init"].forEach(W=>{p(T,W,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(W=>{p(T,W,function(){let q=this.accessibility;q&&!q.zombie&&q.update()})}),p(I,"update",B),["update","updatedData","remove"].forEach(W=>{p(R,W,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}})(w||(w={})),x(!0,k,c,{accessibility:{highContrastTheme:l},lang:A}),w}),V(u,"masters/modules/accessibility.src.js",[u["Core/Globals.js"],u["Accessibility/Accessibility.js"],u["Accessibility/AccessibilityComponent.js"],u["Accessibility/Utils/ChartUtilities.js"],u["Accessibility/Utils/HTMLUtilities.js"],u["Accessibility/KeyboardNavigationHandler.js"],u["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(F,U,L,P,O,D,N){return F.i18nFormat=U.i18nFormat,F.A11yChartUtilities=P,F.A11yHTMLUtilities=O,F.AccessibilityComponent=L,F.KeyboardNavigationHandler=D,F.SeriesAccessibilityDescriber=N,U.compose(F.Chart,F.Legend,F.Point,F.Series,F.SVGElement,F.RangeSelector),F})})})(rt)),rt.exports}var lt=dt();const ut=ht(lt),gt=ct({__proto__:null,default:ut},[lt]);export{gt as a};
2//# sourceMappingURL=DDrTOm4s.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.