@xcpcio/board-app 0.31.1 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/Board-5181d383.css +1 -0
- package/dist/assets/Board-a9988a0d.js +3 -0
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-b87eba77.js → DataSourceInput.vue_vue_type_script_setup_true_lang-7ca3c000.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-079f8c80.js → TheInput.vue_vue_type_script_setup_true_lang-2682b2e3.js} +1 -1
- package/dist/assets/{_...all_-019b03b8.js → _...all_-c4727646.js} +1 -1
- package/dist/assets/{_name_-6a3b59a1.js → _name_-8853f4a2.js} +1 -1
- package/dist/assets/{about-f9061b17.js → about-b984181a.js} +1 -1
- package/dist/assets/{board-6d208112.js → board-ce33013d.js} +1 -1
- package/dist/assets/{board-layout-5590c53f.js → board-layout-ccb8d7e4.js} +1 -1
- package/dist/assets/{headless-94485ccd.js → headless-be8dd44c.js} +1 -1
- package/dist/assets/{home-e847177d.js → home-bc4084e9.js} +1 -1
- package/dist/assets/index-181beaa6.js +1 -0
- package/dist/assets/{index-7a9bcf50.js → index-6c4a0937.js} +5 -5
- package/dist/assets/{index-d429549a.css → index-bbe8c4f8.css} +1 -1
- package/dist/assets/{index-3735f4c2.js → index-d882800e.js} +1 -1
- package/dist/assets/{index-layout-3f26f613.js → index-layout-95eb074e.js} +1 -1
- package/dist/assets/{test-24dab276.js → test-fa217a0f.js} +1 -1
- package/dist/assets/{useQueryBoardData-b6644ecd.js → useQueryBoardData-95ed94f9.js} +1 -1
- package/dist/assets/{user-7a10fa8c.js → user-c1e9292b.js} +1 -1
- package/dist/assets/{virtual_pwa-register-41acaeb8.js → virtual_pwa-register-f8259b1b.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/sw.js +1 -1
- package/package.json +3 -3
- package/src/components/board/Board.vue +17 -8
- package/src/components/board/BottomStatistics.vue +2 -2
- package/src/components/board/DynamicSubmissionsModal.vue +131 -0
- package/src/components/board/OptionsModal.vue +30 -0
- package/src/components.d.ts +1 -0
- package/src/styles/submission-status-background.css +123 -0
- package/dist/assets/Board-3c31679a.css +0 -1
- package/dist/assets/Board-ce0a2c6c.js +0 -3
- package/dist/assets/index-4b46c3f4.js +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var He=Object.defineProperty;var $e=(lt,ot,st)=>ot in lt?He(lt,ot,{enumerable:!0,configurable:!0,writable:!0,value:st}):lt[ot]=st;var ie=(lt,ot,st)=>($e(lt,typeof ot!="symbol"?ot+"":ot,st),st);import{g as Dt,s as kt,U as We,w as re,o as ut,c as ft,d as it,x as Ut,V as ue,t as yt,n as Pt,W as Xt,I as $t,F as Et,D as It,m as St,T as Yt,M as Te,N as Fe,K as Jt,X as Ae,u as Vt,i as Tt,E as Nt,S as Wt,l as Q,b as At,H as Bt,Y as Ge,Z as Pe,$ as Xe,a as Ft,G as Ye,a0 as Kt,a1 as Ue,a2 as _e,a3 as Oe,a4 as Ve,a5 as fe,a6 as qe,a7 as Le,a8 as Ke,a9 as ge,aa as ce,ab as Qt,ac as te,ad as qt,ae as Ze,v as Je,J as Ee,af as De,Q as Qe,ag as ti,h as ei,ah as me,ai as ii,j as si,z as oi,A as ni,aj as xe,ak as ri,p as ai,k as li,R as hi,al as ci,am as di}from"./index-6c4a0937.js";import{u as pi}from"./useQueryBoardData-95ed94f9.js";const ui={class:"md:inset-0 w-[100%] h-[100%]",fixed:"","z-9997":"","of-x-hidden":"",flex:"","justify-center":"","items-start":"","md:mt-32":"","sm:mt-16":""},fi={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},gi={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},mi={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},xi=it("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[it("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),yi=it("span",{"sr-only":""}," Close modal ",-1),vi=[xi,yi],ae=Dt({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null},emits:["update:isHidden"],setup(lt,{emit:ot}){const st=lt,P=kt({get(){return st.isHidden},set(F){ot("update:isHidden",F)}});function B(){P.value=!0}const{Escape:A}=We();return re(A,F=>{F&&B()}),(F,q)=>(ut(),ft("div",ui,[it("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-9998":"",style:Ut({backgroundColor:"rgba(0, 0, 0, 0.5)"}),onClick:B},null,4),it("div",{class:Pt(["relative p-4",[st.width??"w-[78%]"]]),"z-9999":""},[it("div",fi,[it("div",gi,[ue(F.$slots,"header",{},()=>[it("h3",mi,yt(st.title),1)]),it("button",{type:"button",class:"hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","bg-transparent":"","ml-auto":"","p-1.5":"","text-sm":"","text-gray-400":"","items-center":"","inline-flex":"","rounded-lg":"",onClick:B},vi)]),ue(F.$slots,"default")])],2)]))}}),jt={openOptions(lt){lt.$refs.input.focus(),lt.showMenu=!0,lt.mousedownState=!1},blurInput(lt){lt.mousedownState||(lt.searchText="",lt.closeOptions()),lt.$emit("blur")},closeOptions(lt){lt.$refs.input.blur(),lt.showMenu=!1},prevItem(lt){const ot=lt.pointer-1,st=lt.$el.offsetHeight*ot;ot>=0&&(lt.pointer=ot),lt.$refs.menu.scrollTop=st},nextItem(lt){const ot=lt.pointer+1,st=lt.$el.offsetHeight*ot;ot<=lt.filteredOptions.length-1&&(lt.pointer=ot);const P=lt.$refs.menu.offsetHeight,B=Math.ceil((lt.$refs.menu.scrollTop+lt.$el.offsetHeight)/P),A=Math.ceil(st/P);B!==A&&(lt.$refs.menu.scrollTop=(A-1)*lt.$refs.menu.offsetHeight)},enterItem(lt){const ot=lt.filteredOptions[lt.pointer],st=ot.disabled;ot&&!st&<.selectItem(ot)},pointerSet(lt,ot){lt.pointer=ot},pointerAdjust(lt){lt.pointer>=lt.filteredOptions.length-1&&(lt.pointer=lt.filteredOptions.length?lt.filteredOptions.length-1:0)},mousedownItem(lt){lt.mousedownState=!0}};function ki(lt){return new RegExp(lt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const Ie={props:{id:{default:null},name:{type:String,default:""},isError:{type:Boolean,default:!1},customAttr:{type:Function,default:()=>""},isDisabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},filterPredicate:{type:Function,default:(lt,ot)=>lt.match(ki(ot))}}},je=(lt,ot)=>{const st=lt.__vccOpts||lt;for(const[P,B]of ot)st[P]=B;return st},bi={name:"ModelSelect",mixins:[Ie],emits:["blur","searchchange","update:modelValue"],props:{modelValue:{type:[String,Number,Object,Boolean]},customAttr:{type:Function,default:()=>""},options:{type:Array}},data(){return{showMenu:!1,searchText:"",mousedownState:!1,pointer:-1}},watch:{value(lt){this.pointer=this.filteredOptions.findIndex(ot=>ot.value===this.optionValue(lt))},filteredOptions(){this.pointerAdjust()},searchText(){this.$emit("searchchange",this.searchText)}},computed:{searchTextCustomAttr(){return this.selectedOption&&this.selectedOption.value?this.customAttr(this.selectedOption):""},inputText(){if(this.searchText)return"";{let lt=this.placeholder;return this.selectedOption&&(lt=this.selectedOption.text),lt}},customAttrs(){try{if(Array.isArray(this.options))return this.options.map(lt=>this.customAttr(lt))}catch{}return[]},textClass(){return!this.selectedOption&&this.placeholder?"default":""},menuClass(){return{visible:this.showMenu,hidden:!this.showMenu}},menuStyle(){return{display:this.showMenu?"block":"none"}},filteredOptions(){return this.searchText?this.options.filter(lt=>{try{return this.filterPredicate(lt.text,this.searchText)}catch{return!0}}):this.options},selectedOption(){return this.options.find(lt=>lt.value===this.optionValue(this.modelValue))}},methods:{deleteTextOrItem(){!this.searchText&&this.modelValue&&(this.selectItem({}),this.openOptions())},openOptions(){jt.openOptions(this)},blurInput(){jt.blurInput(this)},closeOptions(){jt.closeOptions(this)},prevItem(){jt.prevItem(this)},nextItem(){jt.nextItem(this)},enterItem(){jt.enterItem(this)},pointerSet(lt){jt.pointerSet(this,lt)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(lt){this.searchText="",this.closeOptions(),typeof this.modelValue=="object"&&this.modelValue?this.$emit("update:modelValue",lt):(this.$emit("update:modelValue",lt.value),lt.value!==void 0&<.value===lt.text&&(this.searchText=lt.value))},optionValue(lt){return typeof lt=="object"&<!==null?lt.value:lt}}},wi=it("i",{class:"dropdown icon"},null,-1),Si=["disabled","tabindex","id","name","value"],Ci=["data-vss-custom-attr"],Mi=["data-vss-custom-attr","onClick","onMouseenter"];function Ti(lt,ot,st,P,B,A){return ut(),ft("div",{class:Pt(["ui fluid search selection dropdown",{"active visible":B.showMenu,error:lt.isError,disabled:lt.isDisabled}]),onClick:ot[11]||(ot[11]=(...F)=>A.openOptions&&A.openOptions(...F)),onFocus:ot[12]||(ot[12]=(...F)=>A.openOptions&&A.openOptions(...F))},[wi,it("input",{class:"search",autocomplete:"off",disabled:lt.isDisabled,tabindex:lt.isDisabled?-1:0,id:lt.id,name:lt.name,value:B.searchText,onInput:ot[0]||(ot[0]=F=>B.searchText=F.target.value),ref:"input",onFocus:ot[1]||(ot[1]=Xt((...F)=>A.openOptions&&A.openOptions(...F),["prevent"])),onKeyup:[ot[2]||(ot[2]=$t((...F)=>A.closeOptions&&A.closeOptions(...F),["esc"])),ot[7]||(ot[7]=$t(Xt((...F)=>A.enterItem&&A.enterItem(...F),["prevent"]),["enter"]))],onBlur:ot[3]||(ot[3]=(...F)=>A.blurInput&&A.blurInput(...F)),onKeydown:[ot[4]||(ot[4]=$t((...F)=>A.prevItem&&A.prevItem(...F),["up"])),ot[5]||(ot[5]=$t((...F)=>A.nextItem&&A.nextItem(...F),["down"])),ot[6]||(ot[6]=$t(Xt(()=>{},["prevent"]),["enter"])),ot[8]||(ot[8]=$t((...F)=>A.deleteTextOrItem&&A.deleteTextOrItem(...F),["delete"]))]},null,40,Si),it("div",{class:Pt(["text",A.textClass]),"data-vss-custom-attr":A.searchTextCustomAttr},yt(A.inputText),11,Ci),it("div",{class:Pt(["menu",A.menuClass]),ref:"menu",onMousedown:ot[10]||(ot[10]=Xt(()=>{},["prevent"])),style:Ut(A.menuStyle),tabindex:"-1"},[(ut(!0),ft(Et,null,It(A.filteredOptions,(F,q)=>(ut(),ft("div",{key:q,class:Pt(["item",{selected:F.selected||B.pointer===q,disabled:F.disabled}]),"data-vss-custom-attr":A.customAttrs[q]?A.customAttrs[q]:"",onClick:Xt(K=>A.selectItem(F),["stop"]),onMousedown:ot[9]||(ot[9]=(...K)=>A.mousedownItem&&A.mousedownItem(...K)),onMouseenter:K=>A.pointerSet(q)},yt(F.text),43,Mi))),128))],38)],34)}const Ai=je(bi,[["render",Ti]]),Pi={name:"MultiSelect",mixins:[Ie],emits:["blur","searchchange","select"],props:{customAttr:{type:Function,default:()=>""},options:{type:Array},selectedOptions:{type:Array},cleanSearch:{type:Boolean,default:!0},hideSelectedOptions:{type:Boolean,default:!1}},data(){return{showMenu:!1,searchText:"",mousedownState:!1,pointer:-1}},watch:{selectedOptions(){this.pointer=-1},filteredOptions(){this.pointerAdjust()},searchText(){this.$emit("searchchange",this.searchText)}},computed:{inputText(){return this.searchText?"":this.placeholder},textClass(){return this.placeholder?"default":""},inputWidth(){return{width:(this.searchText.length+1)*8+20+"px"}},menuClass(){return{visible:this.showMenu,hidden:!this.showMenu}},menuStyle(){return{display:this.showMenu?"block":"none"}},nonSelectOptions(){return this.options.filter(lt=>this.selectedOptions.findIndex(ot=>ot.value===lt.value)===-1)},filteredOptions(){return this.searchText?this.nonSelectOptions.filter(lt=>{try{return this.cleanSearch?this.filterPredicate(this.accentsTidy(lt.text),this.searchText):this.filterPredicate(lt.text,this.searchText)}catch{return!0}}):this.nonSelectOptions}},methods:{deleteTextOrLastItem(){!this.searchText&&this.selectedOptions.length>0&&this.deleteItem(this.selectedOptions[this.selectedOptions.length-1])},openOptions(){jt.openOptions(this)},blurInput(){jt.blurInput(this)},closeOptions(){jt.closeOptions(this)},prevItem(){jt.prevItem(this),this.openOptions()},nextItem(){jt.nextItem(this),this.openOptions()},enterItem(){jt.enterItem(this)},pointerSet(lt){jt.pointerSet(this,lt)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(lt){const ot=this.selectedOptions.concat(lt),st=ot.filter((P,B)=>ot.indexOf(P)===B);this.closeOptions(),this.searchText="",this.$emit("select",st,lt,"insert")},deleteItem(lt){const ot=this.selectedOptions.filter(st=>st.value!==lt.value);this.$emit("select",ot,lt,"delete")},accentsTidy(lt){let ot=lt.toString().toLowerCase();return ot=ot.replace(new RegExp("[àáâãäå]","g"),"a"),ot=ot.replace(new RegExp("æ","g"),"ae"),ot=ot.replace(new RegExp("ç","g"),"c"),ot=ot.replace(new RegExp("[èéêë]","g"),"e"),ot=ot.replace(new RegExp("[ìíîï]","g"),"i"),ot=ot.replace(new RegExp("ñ","g"),"n"),ot=ot.replace(new RegExp("[òóôõö]","g"),"o"),ot=ot.replace(new RegExp("œ","g"),"oe"),ot=ot.replace(new RegExp("[ùúûü]","g"),"u"),ot=ot.replace(new RegExp("[ýÿ]","g"),"y"),ot}}},_i=it("i",{class:"dropdown icon"},null,-1),Oi=["data-vss-custom-attr"],Li=["onClick"],Ei=["disabled","tabindex","id","name"],Di=["data-vss-custom-attr","onClick","onMouseenter"];function Ii(lt,ot,st,P,B,A){return ut(),ft("div",{class:Pt(["ui fluid search dropdown selection multiple",{"active visible":B.showMenu,error:lt.isError,disabled:lt.isDisabled}]),onClick:ot[11]||(ot[11]=(...F)=>A.openOptions&&A.openOptions(...F)),onFocus:ot[12]||(ot[12]=(...F)=>A.openOptions&&A.openOptions(...F))},[_i,st.hideSelectedOptions?St("",!0):(ut(!0),ft(Et,{key:0},It(st.selectedOptions,(F,q)=>(ut(),ft("a",{key:q,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":st.customAttr(F)},[Yt(yt(F.text),1),it("i",{class:"delete icon",onClick:K=>A.deleteItem(F)},null,8,Li)],8,Oi))),128)),Te(it("input",{class:"search",autocomplete:"off",disabled:lt.isDisabled,tabindex:lt.isDisabled?-1:0,id:lt.id,name:lt.name,"onUpdate:modelValue":ot[0]||(ot[0]=F=>B.searchText=F),ref:"input",style:Ut(A.inputWidth),onFocus:ot[1]||(ot[1]=Xt((...F)=>A.openOptions&&A.openOptions(...F),["prevent"])),onKeyup:[ot[2]||(ot[2]=$t((...F)=>A.closeOptions&&A.closeOptions(...F),["esc"])),ot[7]||(ot[7]=$t(Xt((...F)=>A.enterItem&&A.enterItem(...F),["prevent"]),["enter"]))],onBlur:ot[3]||(ot[3]=(...F)=>A.blurInput&&A.blurInput(...F)),onKeydown:[ot[4]||(ot[4]=$t((...F)=>A.prevItem&&A.prevItem(...F),["up"])),ot[5]||(ot[5]=$t((...F)=>A.nextItem&&A.nextItem(...F),["down"])),ot[6]||(ot[6]=$t(Xt(()=>{},["prevent"]),["enter"])),ot[8]||(ot[8]=$t((...F)=>A.deleteTextOrLastItem&&A.deleteTextOrLastItem(...F),["delete"]))]},null,44,Ei),[[Fe,B.searchText]]),it("div",{class:Pt(["text",A.textClass])},yt(A.inputText),3),it("div",{class:Pt(["menu",A.menuClass]),ref:"menu",onMousedown:ot[10]||(ot[10]=Xt(()=>{},["prevent"])),style:Ut(A.menuStyle),tabindex:"-1"},[(ut(!0),ft(Et,null,It(A.filteredOptions,(F,q)=>(ut(),ft("div",{key:q,class:Pt(["item",{selected:F.selected||B.pointer===q,disabled:F.disabled}]),"data-vss-custom-attr":st.customAttr(F),onClick:Xt(K=>A.selectItem(F),["stop"]),onMousedown:ot[9]||(ot[9]=(...K)=>A.mousedownItem&&A.mousedownItem(...K)),onMouseenter:K=>A.pointerSet(q)},yt(F.text),43,Di))),128))],38)],34)}const Zt=je(Pi,[["render",Ii]]);function ji(){return`filter-organizations-${Jt().path}`}function Bi(){return`filter-teams-${Jt().path}`}function zi(){const ot=`filter-organizations-${Jt().path}`;return Ae(ot,[])}function Ri(){const ot=`filter-teams-${Jt().path}`;return Ae(ot,[])}const Ni={"w-full":"","font-bold":"","font-mono":"",flex:"","flex-col":"","gap-4":"","items-center":"","justify-center":""},Hi={key:0,flex:"","flex-col":"","w-full":""},$i={"w-full":"","mt-2":""},Wi={flex:"","flex-col":"","w-full":""},Fi=it("div",null," Filter Team ",-1),Gi={"w-full":"","mt-2":""},Xi={flex:"","flex-col":"","w-full":""},Yi=it("div",{flex:"","mb-2":""}," Feature ",-1),Ui={flex:"","flex-row":""},Vi={class:"relative inline-flex items-center cursor-pointer"},qi=it("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"},null,-1),Ki=it("span",{class:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},"Dynamic Submissions",-1),Zi={"mt-2":"","w-full":"",flex:"","items-center":"","space-x-4":""},Ji=Dt({__name:"OptionsModal",props:{isHidden:{type:Boolean},rank:null,rankOptions:null},emits:["update:isHidden","update:rankOptions"],setup(lt,{emit:ot}){const st=lt,{t:P}=Vt(),B=kt({get(){return st.isHidden},set(f){ot("update:isHidden",f)}}),A=kt({get(){return st.rankOptions},set(f){ot("update:rankOptions",f)}}),F=kt(()=>st.rank),q=kt(()=>P("type_menu.options")),K=Tt(A.value.enableDynamicSubmissions),Y=kt(()=>F.value.organizations.map(C=>({value:C,text:C}))),U=Tt(A.value.filterOrganizations),O=Tt({});function N(f,C){U.value=f,O.value=C}const R=kt(()=>F.value.originTeams.map(C=>({value:C.id,text:C.organization?`${C.name} - ${C.organization}`:C.name}))),x=Tt(A.value.filterTeams),w=Tt({});function L(f,C){x.value=f,w.value=C}function D(){B.value=!0}const d=ji(),y=Bi();function k(){A.value.setFilterOrganizations(U.value),A.value.setFilterTeams(x.value),localStorage.setItem(d,JSON.stringify(U.value)),localStorage.setItem(y,JSON.stringify(x.value)),A.value.enableDynamicSubmissions=K.value,D()}return(f,C)=>{const v=ae;return ut(),Nt(v,{isHidden:Q(B),"onUpdate:isHidden":C[1]||(C[1]=b=>Bt(B)?B.value=b:null),title:Q(q),width:"w-180"},{default:Wt(()=>[it("div",Ni,[Q(F).contest.organization?(ut(),ft("div",Hi,[it("div",null," Filter "+yt(Q(F).contest.organization),1),it("div",$i,[At(Q(Zt),{options:Q(Y),"selected-options":Q(U),onSelect:N},null,8,["options","selected-options"])])])):St("",!0),it("div",Wi,[Fi,it("div",Gi,[At(Q(Zt),{options:Q(R),"selected-options":Q(x),onSelect:L},null,8,["options","selected-options"])])]),it("div",Xi,[Yi,it("div",Ui,[it("label",Vi,[Te(it("input",{"onUpdate:modelValue":C[0]||(C[0]=b=>Bt(K)?K.value=b:null),type:"checkbox",class:"sr-only peer"},null,512),[[Ge,Q(K)]]),qi,Ki])])]),it("div",Zi,[it("button",{type:"submit",class:"text-white bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800","font-medium":"","text-sm":"","rounded-md":"",onClick:k},yt(Q(P)("button.confirm")),1),it("button",{type:"reset",class:"py-2.5 px-5 text-gray-900 focus:outline-none bg-white border border-gray-200 hover:bg-gray-100 hover:text-primary-700 focus:z-10 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700","font-medium":"","text-sm":"","rounded-md":"",onClick:D},yt(Q(P)("button.cancel")),1)])])]),_:1},8,["isHidden","title"])}}}),Qi={absolute:"",fixed:"","z-99":"","bottom-4":"","left-4":"","opacity-90":""},ts={flex:"","flex-col":""},es={"w-8":""},is={"pl-2":"","w-80":"",truncate:""},ss={"w-5":""},os=Dt({__name:"DynamicSubmissionsModal",props:{rank:{}},setup(lt){const ot=lt,st=kt(()=>ot.rank),P=kt(()=>{const B=st.value.getSubmissions().sort(Pe.compare).reverse(),A=[];let F=0;const q=16;for(let K=0;K<B.length&&F<q;K++){const Y=B[K],U=Y.teamId,O=Y.problemId,N=st.value.teamsMap.get(U);if(!N)continue;const R=st.value.contest.problemsMap.get(O);if(!R)continue;let x=N.name;N.organization&&(x=`${N.organization} - ${x}`),A.push({submission:Y,team:N,problem:R,displayName:x}),++F}return A.reverse()});return(B,A)=>(ut(),ft("div",Qi,[it("div",ts,[it("div",null,[(ut(!0),ft(Et,null,It(Q(P),F=>{var q;return ut(),ft("div",{key:F.id,"w-104":"","h-6":"","bg-slate-800":"","text-gray-200":"","font-mono":"",flex:"","flex-row":"","pl-2":""},[it("div",es,yt(F.team.rank),1),it("div",is,yt(F.displayName),1),it("div",ss,yt(F.team.solvedProblemNum),1),it("div",{"w-8":"","border-b-4":"",flex:"","justify-center":"",style:Ut({"border-color":((q=F.problem.balloonColor)==null?void 0:q.background_color.toString())??"#fff"})},yt(F.problem.label),5),it("div",{"w-10":"",flex:"","justify-center":"",class:Pt([F.submission.status]),"opacity-100":""},yt(Q(Xe)[F.submission.status]),3)])}),128))])])]))}});const ns=Ft(os,[["__scopeId","data-v-ef800170"]]),rs={"w-full":"",flex:"","mt-4":"","gap-4":""},as=["href"],ls={"w-full":"",flex:"","mt-4":"","gap-4":""},hs={btn:"",title:"Submissions",disabled:"true"},cs=Dt({__name:"Utility",setup(lt){const{t:ot}=Vt(),st=Jt(),P=Ye(),B=kt(()=>`https://resolver.xcpcio.com/resolver?xcpcio-data-source=${st.path}`);function A(){P.push(`/balloon/?data-source=${st.path}`)}function F(){P.push(`/countdown/?data-source=${st.path}`)}return(q,K)=>(ut(),ft(Et,null,[it("div",rs,[it("a",{btn:"",href:Q(B),target:"_blank",title:"Resolver"},yt(Q(ot)("type_menu.resolver")),9,as),it("button",{btn:"",title:"Balloon",onClick:A},yt(Q(ot)("type_menu.balloon")),1),it("button",{btn:"",title:"Countdown",onClick:F},yt(Q(ot)("type_menu.countdown")),1)]),it("div",ls,[it("button",hs,yt(Q(ot)("type_menu.submissions")),1)])],64))}});var Be={exports:{}};(function(lt,ot){(function(st,P){P()})(Kt,function(){function st(Y,U){return typeof U>"u"?U={autoBom:!1}:typeof U!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Y.type)?new Blob(["\uFEFF",Y],{type:Y.type}):Y}function P(Y,U,O){var N=new XMLHttpRequest;N.open("GET",Y),N.responseType="blob",N.onload=function(){K(N.response,U,O)},N.onerror=function(){console.error("could not download file")},N.send()}function B(Y){var U=new XMLHttpRequest;U.open("HEAD",Y,!1);try{U.send()}catch{}return 200<=U.status&&299>=U.status}function A(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent(U)}}var F=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Kt=="object"&&Kt.global===Kt?Kt:void 0,q=F.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),K=F.saveAs||(typeof window!="object"||window!==F?function(){}:"download"in HTMLAnchorElement.prototype&&!q?function(Y,U,O){var N=F.URL||F.webkitURL,R=document.createElement("a");U=U||Y.name||"download",R.download=U,R.rel="noopener",typeof Y=="string"?(R.href=Y,R.origin===location.origin?A(R):B(R.href)?P(Y,U,O):A(R,R.target="_blank")):(R.href=N.createObjectURL(Y),setTimeout(function(){N.revokeObjectURL(R.href)},4e4),setTimeout(function(){A(R)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,U,O){if(U=U||Y.name||"download",typeof Y!="string")navigator.msSaveOrOpenBlob(st(Y,O),U);else if(B(Y))P(Y,U,O);else{var N=document.createElement("a");N.href=Y,N.target="_blank",setTimeout(function(){A(N)})}}:function(Y,U,O,N){if(N=N||open("","_blank"),N&&(N.document.title=N.document.body.innerText="downloading..."),typeof Y=="string")return P(Y,U,O);var R=Y.type==="application/octet-stream",x=/constructor/i.test(F.HTMLElement)||F.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||R&&x||q)&&typeof FileReader<"u"){var L=new FileReader;L.onloadend=function(){var y=L.result;y=w?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),N?N.location.href=y:location=y,N=null},L.readAsDataURL(Y)}else{var D=F.URL||F.webkitURL,d=D.createObjectURL(Y);N?N.location=d:location.href=d,N=null,setTimeout(function(){D.revokeObjectURL(d)},4e4)}});F.saveAs=K.saveAs=K,lt.exports=K})})(Be);var ds=Be.exports;const ps=Ue(ds);var us=setTimeout;function fs(lt,ot){var st=ot.useCachedSetTimeout?us:setTimeout;return new Promise(function(P){st(P,lt)})}function gs(lt){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=ot.useCachedSetTimeout,P=fs(lt,{useCachedSetTimeout:st});function B(A){return P.then(function(){return A})}return B.then=function(){return P.then.apply(P,arguments)},B.catch=Promise.resolve().catch,B}const ms={flex:"","flex-col":""},xs={"w-160":"","font-bold":""},ys={"mt-8":""},vs={key:0,flex:"","flex-row":"","justify-center":"","gap-4":""},ks=["disabled"],bs=["disabled"],ws={key:1,flex:"","justify-center":""},Ss=["disabled"],Cs=Dt({__name:"Export",props:{rank:null},setup(lt){const ot=lt,st=_e.useToast(),{copy:P,isSupported:B}=Oe(),A=kt(()=>ot.rank),F=Tt({value:"cf-dat",text:"Codeforces Gym Ghost(dat)"}),q=Tt([{value:"cf-dat",text:"Codeforces Gym Ghost(dat)"},{value:"general-xlsx",text:"Excel Table(xlsx)"}]),K=Tt({CfDatDownload:!1,CfDatCopy:!1,GeneralXLSXDownload:!1});async function Y(){await Ve(),await gs(16)}async function U(){K.value.CfDatDownload=!0,await Y();const x=new fe().convert(A.value),w=new Blob([x],{type:"text/plain;charset=utf-8"});ps.saveAs(w,"contest.dat"),K.value.CfDatDownload=!1}async function O(){if(!B.value){st.warning("clipboard is not supported");return}K.value.CfDatCopy=!0,await Y();const x=new fe().convert(A.value);P(x),K.value.CfDatCopy=!1,st.success("Copy Success")}async function N(){K.value.GeneralXLSXDownload=!0,await Y(),new qe().convertAndWrite(A.value,`${A.value.contest.name}.xlsx`),K.value.GeneralXLSXDownload=!1}return(R,x)=>(ut(),ft("div",ms,[it("div",xs,[At(Q(Ai),{modelValue:Q(F),"onUpdate:modelValue":x[0]||(x[0]=w=>Bt(F)?F.value=w:null),options:Q(q),placeholder:"Export Type"},null,8,["modelValue","options"])]),it("div",ys,[Q(F).value==="cf-dat"?(ut(),ft("div",vs,[it("button",{disabled:Q(K).CfDatDownload,btn:"",onClick:U}," Download ",8,ks),it("button",{disabled:Q(K).CfDatCopy,btn:"",onClick:O}," Copy to Clipboard ",8,bs)])):St("",!0),Q(F).value==="general-xlsx"?(ut(),ft("div",ws,[it("button",{disabled:Q(K).GeneralXLSXDownload,btn:"",onClick:N}," Download ",8,Ss)])):St("",!0)])]))}});function de(lt,ot,st,P,B,A){return{colors:A,chart:window.innerWidth<992?{type:"bar",backgroundColor:"transparent"}:{type:"column",backgroundColor:"transparent",height:"420px"},title:{text:lt},xAxis:{categories:P,labels:{style:{fontSize:"16px"}},title:{text:ot,style:{fontSize:"16px"}}},yAxis:{min:0,title:{text:st,style:{fontSize:"16px",height:"320px"}},stackLabels:{enabled:!0,style:{fontSize:"16px"}}},tooltip:{enabled:!0,headerFormat:"",pointFormat:"{series.name}:{point.y}"},plotOptions:{bar:{stacking:"normal"},column:{stacking:"normal"}},credits:{enabled:!1},series:B}}function Ms(lt){const ot=[];lt.contest.problems.forEach((A,F)=>{ot.push({problem_id:A.label,index:F,solved:A.statistics.acceptedNum})}),ot.sort((A,F)=>A.solved>F.solved?-1:A.solved<F.solved?1:A.index<F.index?-1:A.index>F.index?1:0);const{cat:st,series:P,colors:B}=(()=>{const A=[],F=[];return ot.forEach(Y=>{A.push(Y.problem_id),F.push(Y.solved)}),{cat:A,series:[{name:"队伍数",showInLegend:!1,data:F}],colors:["rgb(124, 181, 236)"]}})();return de("题目通过数","题目编号","通过数",st,P,B)}function Ts(lt){const ot=lt.rankStatistics.teamSolvedNum.map((A,F)=>({index:F,cnt:A})),{cat:st,series:P,colors:B}=(()=>{const A=[],F=[];return ot.forEach(Y=>{A.push(Y.index),F.push(Y.cnt)}),{cat:A,series:[{name:"队伍数",showInLegend:!1,data:F}],colors:["rgb(124, 181, 236)"]}})();return de("队伍过题数","过题数","队伍数",st,P,B)}function As(lt){const{cat:ot,series:st,colors:P}=(()=>{const B=[],A=[],F=[],q=[];return lt.contest.problems.forEach(U=>{A.push(U.statistics.acceptedNum),F.push(U.statistics.rejectedNum),q.push(U.statistics.pendingNum),B.push(U.label)}),{cat:B,series:[{name:"Accepted",showInLegend:!1,data:A},{name:"Rejected",showInLegend:!1,data:F},{name:"Pending",showInLegend:!1,data:q}],colors:["#E1FFB5","#FFD0D0","#C8D6FA"]}})();return de("提交分类","题目编号","提交数",ot,st,P)}function Ps(lt,ot){const st=ot.placeChartPoints.map(B=>{var A,F;return{x:B.timePoint,y:B.rank,showX:Le(B.timePoint),lastSolved:(A=B.lastSolvedProblem)!=null&&A.label?`Last Solved Problem ${(F=B.lastSolvedProblem)==null?void 0:F.label}`:""}});return{chart:{type:"spline"},title:{text:"排名变化趋势图"},series:[{showInLegend:!1,allowPointSelect:!1,name:"rank",type:"spline",data:st,marker:{symbol:"circle",radius:4,lineWidth:2,fillColor:"yellow",lineColor:"yellow"}}],xAxis:[{allowDecimals:!1,title:{text:"Time(min)"},crosshair:!0}],yAxis:[{allowDecimals:!1,title:{text:"Place"},reversed:!0,gridLineWidth:1}],plotOptions:{line:{color:"#efbc47",dataLabels:{enabled:!1},enableMouseTracking:!0,marker:{enabled:!0,fillColor:"#fff566"}}},tooltip:{enabled:!0,headerFormat:"",pointFormat:"Time: {point.showX} <br/> Place: {point.y} <br/> {point.lastSolved}"},credits:{enabled:!1},exporting:{enabled:!0},navigation:{menuItemStyle:{fontSize:"10px"}}}}var ze={exports:{}},he={exports:{}},ye;function _s(){return ye||(ye=1,function(lt){(function(ot,st){lt.exports?(st.default=st,lt.exports=ot.document?st(ot):st):(ot.Highcharts&&ot.Highcharts.error(16,!0),ot.Highcharts=st(ot))})(typeof window<"u"?window:Kt,function(ot){function st(B,A,F,q){B.hasOwnProperty(A)||(B[A]=q.apply(null,F),typeof CustomEvent=="function"&&ot.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:A,module:B[A]}})))}var P={};return st(P,"Core/Globals.js",[],function(){var B;return function(A){A.SVG_NS="http://www.w3.org/2000/svg",A.product="Highcharts",A.version="11.1.0",A.win=typeof ot<"u"?ot:{},A.doc=A.win.document,A.svg=A.doc&&A.doc.createElementNS&&!!A.doc.createElementNS(A.SVG_NS,"svg").createSVGRect,A.userAgent=A.win.navigator&&A.win.navigator.userAgent||"",A.isChrome=A.userAgent.indexOf("Chrome")!==-1,A.isFirefox=A.userAgent.indexOf("Firefox")!==-1,A.isMS=/(edge|msie|trident)/i.test(A.userAgent)&&!A.win.opera,A.isSafari=!A.isChrome&&A.userAgent.indexOf("Safari")!==-1,A.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(A.userAgent),A.isWebKit=A.userAgent.indexOf("AppleWebKit")!==-1,A.deg2rad=2*Math.PI/360,A.hasBidiBug=A.isFirefox&&4>parseInt(A.userAgent.split("Firefox/")[1],10),A.hasTouch=!!A.win.TouchEvent,A.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],A.noop=function(){},A.supportsPassiveEvents=function(){let F=!1;if(!A.isMS){const q=Object.defineProperty({},"passive",{get:function(){F=!0}});A.win.addEventListener&&A.win.removeEventListener&&(A.win.addEventListener("testPassive",A.noop,q),A.win.removeEventListener("testPassive",A.noop,q))}return F}(),A.charts=[],A.dateFormats={},A.seriesTypes={},A.symbolSizes={},A.chartCount=0}(B||(B={})),B}),st(P,"Core/Utilities.js",[P["Core/Globals.js"]],function(B){function A(t,i,a,u){const _=i?"Highcharts error":"Highcharts warning";t===32&&(t=`${_}: Deprecated member`);const r=N(t);let S=r?`${_} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(typeof u<"u"){let G="";r&&(S+="?"),C(u,function(Z,rt){G+=`
|
|
2
|
+
- ${rt}: ${Z}`,r&&(S+=encodeURI(rt)+"="+encodeURI(Z))}),S+=G}b(B,"displayError",{chart:a,code:t,message:S,params:u},function(){if(i)throw Error(S);p.console&&A.messages.indexOf(S)===-1&&console.warn(S)}),A.messages.push(S)}function F(t,i){return parseInt(t,i||10)}function q(t){return typeof t=="string"}function K(t){return t=Object.prototype.toString.call(t),t==="[object Array]"||t==="[object Array Iterator]"}function Y(t,i){return!!t&&typeof t=="object"&&(!i||!K(t))}function U(t){return Y(t)&&typeof t.nodeType=="number"}function O(t){const i=t&&t.constructor;return!(!Y(t,!0)||U(t)||!i||!i.name||i.name==="Object")}function N(t){return typeof t=="number"&&!isNaN(t)&&1/0>t&&-1/0<t}function R(t){return typeof t<"u"&&t!==null}function x(t,i,a){const u=q(i)&&!R(a);let _;const r=(S,G)=>{R(S)?t.setAttribute(G,S):u?(_=t.getAttribute(G))||G!=="class"||(_=t.getAttribute(G+"Name")):t.removeAttribute(G)};return q(i)?r(a,i):C(i,r),_}function w(t){return K(t)?t:[t]}function L(t,i){let a;t||(t={});for(a in i)t[a]=i[a];return t}function D(){const t=arguments,i=t.length;for(let a=0;a<i;a++){const u=t[a];if(typeof u<"u"&&u!==null)return u}}function d(t,i){B.isMS&&!B.svg&&i&&R(i.opacity)&&(i.filter=`alpha(opacity=${100*i.opacity})`),L(t.style,i)}function y(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function k(t,i){return 1e14<t?t:parseFloat(t.toPrecision(i||14))}function f(t,i,a){let u;return i==="width"?(i=Math.min(t.offsetWidth,t.scrollWidth),a=t.getBoundingClientRect&&t.getBoundingClientRect().width,a<i&&a>=i-1&&(i=Math.floor(a)),Math.max(0,i-(f(t,"padding-left",!0)||0)-(f(t,"padding-right",!0)||0))):i==="height"?Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(f(t,"padding-top",!0)||0)-(f(t,"padding-bottom",!0)||0)):((t=p.getComputedStyle(t,void 0))&&(u=t.getPropertyValue(i),D(a,i!=="opacity")&&(u=F(u))),u)}function C(t,i,a){for(const u in t)Object.hasOwnProperty.call(t,u)&&i.call(a||t[u],t[u],u,t)}function v(t,i,a){function u(S,G){const Z=t.removeEventListener;Z&&Z.call(t,S,G,!1)}function _(S){let G,Z;t.nodeName&&(i?(G={},G[i]=!0):G=S,C(G,function(rt,j){if(S[j])for(Z=S[j].length;Z--;)u(j,S[j][Z].fn)}))}var r=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){const S=r.hcEvents;i?(r=S[i]||[],a?(S[i]=r.filter(function(G){return a!==G.fn}),u(i,a)):(_(S),S[i]=[])):(_(S),delete r.hcEvents)}}function b(t,i,a,u){if(a=a||{},l.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==B)){var _=l.createEvent("Events");_.initEvent(i,!0,!0),a=L(_,a),t.dispatchEvent?t.dispatchEvent(a):t.fireEvent(i,a)}else if(t.hcEvents){a.target||L(a,{preventDefault:function(){a.defaultPrevented=!0},target:t,type:i}),_=[];let r=t,S=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[i]&&(_.length&&(S=!0),_.unshift.apply(_,r.hcEvents[i])),r=Object.getPrototypeOf(r);S&&_.sort((G,Z)=>G.order-Z.order),_.forEach(G=>{G.fn.call(t,a)===!1&&a.preventDefault()})}u&&!a.defaultPrevented&&u.call(t,a)}const{charts:o,doc:l,win:p}=B;(A||(A={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var h=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){let a;const u=t.length;for(a=0;a<u;a++)if(i(t[a],a))return t[a]};C({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){B[i]=function(a){return A(32,!1,void 0,{[`Highcharts.${i}`]:`use Array.${t}`}),Array.prototype[t].apply(a,[].slice.call(arguments,1))}});let c;const e=function(){const t=Math.random().toString(36).substring(2,9)+"-";let i=0;return function(){return"highcharts-"+(c?"":t)+i++}}();return p.jQuery&&(p.jQuery.fn.highcharts=function(){const t=[].slice.call(arguments);if(this[0])return t[0]?(new B[q(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):o[x(this[0],"data-highcharts-chart")]}),h={addEvent:function(t,i,a,u={}){var _=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(_,"hcEvents")||(_.hcEvents={}),_=_.hcEvents,B.Point&&t instanceof B.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);const r=t.addEventListener;return r&&r.call(t,i,a,B.supportsPassiveEvents?{passive:u.passive===void 0?i.indexOf("touch")!==-1:u.passive,capture:!1}:!1),_[i]||(_[i]=[]),_[i].push({fn:a,order:typeof u.order=="number"?u.order:1/0}),_[i].sort((S,G)=>S.order-G.order),function(){v(t,i,a)}},arrayMax:function(t){let i=t.length,a=t[0];for(;i--;)t[i]>a&&(a=t[i]);return a},arrayMin:function(t){let i=t.length,a=t[0];for(;i--;)t[i]<a&&(a=t[i]);return a},attr:x,clamp:function(t,i,a){return t>i?t<a?t:a:i},clearTimeout:function(t){R(t)&&clearTimeout(t)},correctFloat:k,createElement:function(t,i,a,u,_){return t=l.createElement(t),i&&L(t,i),_&&d(t,{padding:"0",border:"none",margin:"0"}),a&&d(t,a),u&&u.appendChild(t),t},css:d,defined:R,destroyObjectProperties:function(t,i){C(t,function(a,u){a&&a!==i&&a.destroy&&a.destroy(),delete t[u]})},diffObjects:function(t,i,a,u){function _(S,G,Z,rt){const j=a?G:S;C(S,function(s,T){if(!rt&&u&&-1<u.indexOf(T)&&G[T]){s=w(s),Z[T]=[];for(let z=0;z<Math.max(s.length,G[T].length);z++)G[T][z]&&(s[z]===void 0?Z[T][z]=G[T][z]:(Z[T][z]={},_(s[z],G[T][z],Z[T][z],rt+1)))}else Y(s,!0)&&!s.nodeType?(Z[T]=K(s)?[]:{},_(s,G[T]||{},Z[T],rt+1),Object.keys(Z[T]).length!==0||T==="colorAxis"&&rt===0||delete Z[T]):(S[T]!==G[T]||T in S&&!(T in G))&&(Z[T]=j[T])})}const r={};return _(t,i,r,0),r},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,i){let a=t.length;for(;a--;)if(t[a]===i){t.splice(a,1);break}},error:A,extend:L,extendClass:function(t,i){const a=function(){};return a.prototype=new t,L(a.prototype,i),a},find:h,fireEvent:b,getClosestDistance:function(t,i){const a=!i;let u,_,r;return t.forEach(S=>{if(1<S.length)for(r=S.length-1;0<r;r--)_=S[r]-S[r-1],0>_&&!a?(i==null||i(),i=void 0):_&&(typeof u>"u"||_<u)&&(u=_)}),u},getMagnitude:y,getNestedProperty:function(t,i){for(t=t.split(".");t.length&&R(i);){const a=t.shift();if(typeof a>"u"||a==="__proto__")return;if(a==="this"){let u;return Y(i)&&(u=i["@this"]),u??i}if(i=i[a],!R(i)||typeof i=="function"||typeof i.nodeType=="number"||i===p)return}return i},getStyle:f,inArray:function(t,i,a){return A(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,a)},insertItem:function(t,i){const a=t.options.index,u=i.length;let _;for(_=t.options.isInternal?u:0;_<u+1;_++)if(!i[_]||N(a)&&a<D(i[_].options.index,i[_]._i)||i[_].options.isInternal){i.splice(_,0,t);break}return _},isArray:K,isClass:O,isDOMElement:U,isFunction:function(t){return typeof t=="function"},isNumber:N,isObject:Y,isString:q,keys:function(t){return A(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){let t,i=arguments,a={};const u=function(r,S){return typeof r!="object"&&(r={}),C(S,function(G,Z){Z!=="__proto__"&&Z!=="constructor"&&(!Y(G,!0)||O(G)||U(G)?r[Z]=S[Z]:r[Z]=u(r[Z]||{},G))}),r};i[0]===!0&&(a=i[1],i=Array.prototype.slice.call(i,2));const _=i.length;for(t=0;t<_;t++)a=u(a,i[t]);return a},normalizeTickInterval:function(t,i,a,u,_){let r=t;a=D(a,y(t));const S=t/a;for(i||(i=_?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],u===!1&&(a===1?i=i.filter(function(G){return G%1===0}):.1>=a&&(i=[1/a]))),u=0;u<i.length&&(r=i[u],!(_&&r*a>=t||!_&&S<=(i[u]+(i[u+1]||i[u]))/2));u++);return r=k(r*a,-Math.round(Math.log(.001)/Math.LN10))},objectEach:C,offset:function(t){const i=l.documentElement;return t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0},{top:t.top+(p.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(p.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:t.width,height:t.height}},pad:function(t,i,a){return Array((i||2)+1-String(t).replace("-","").length).join(a||"0")+t},pick:D,pInt:F,pushUnique:function(t,i){return 0>t.indexOf(i)&&!!t.push(i)},relativeLength:function(t,i,a){return/%$/.test(t)?i*parseFloat(t)/100+(a||0):parseFloat(t)},removeEvent:v,splat:w,stableSort:function(t,i){const a=t.length;let u,_;for(_=0;_<a;_++)t[_].safeI=_;for(t.sort(function(r,S){return u=i(r,S),u===0?r.safeI-S.safeI:u}),_=0;_<a;_++)delete t[_].safeI},syncTimeout:function(t,i,a){return 0<i?setTimeout(t,i,a):(t.call(0,a),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:e,useSerialIds:function(t){return c=D(t,c)},wrap:function(t,i,a){const u=t[i];t[i]=function(){const _=arguments,r=this;return a.apply(this,[function(){return u.apply(r,arguments.length?arguments:_)}].concat([].slice.call(arguments)))}}},h}),st(P,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),st(P,"Core/Color/Color.js",[P["Core/Globals.js"],P["Core/Utilities.js"]],function(B,A){const{isNumber:F,merge:q,pInt:K}=A;class Y{static parse(O){return O?new Y(O):Y.None}constructor(O){this.rgba=[NaN,NaN,NaN,NaN],this.input=O;const N=B.Color;if(N&&N!==Y)return new N(O);this.init(O)}init(O){let N,R;if(typeof O=="object"&&typeof O.stops<"u")this.stops=O.stops.map(L=>new Y(L[1]));else if(typeof O=="string"){if(this.input=O=Y.names[O.toLowerCase()]||O,O.charAt(0)==="#"){var x=O.length,w=parseInt(O.substr(1),16);x===7?N=[(w&16711680)>>16,(w&65280)>>8,w&255,1]:x===4&&(N=[(w&3840)>>4|(w&3840)>>8,(w&240)>>4|w&240,(w&15)<<4|w&15,1])}if(!N)for(w=Y.parsers.length;w--&&!N;)R=Y.parsers[w],(x=R.regex.exec(O))&&(N=R.parse(x))}N&&(this.rgba=N)}get(O){const N=this.input,R=this.rgba;if(typeof N=="object"&&typeof this.stops<"u"){const x=q(N);return x.stops=[].slice.call(x.stops),this.stops.forEach((w,L)=>{x.stops[L]=[x.stops[L][0],w.get(O)]}),x}return R&&F(R[0])?O==="rgb"||!O&&R[3]===1?"rgb("+R[0]+","+R[1]+","+R[2]+")":O==="a"?`${R[3]}`:"rgba("+R.join(",")+")":N}brighten(O){const N=this.rgba;if(this.stops)this.stops.forEach(function(R){R.brighten(O)});else if(F(O)&&O!==0)for(let R=0;3>R;R++)N[R]+=K(255*O),0>N[R]&&(N[R]=0),255<N[R]&&(N[R]=255);return this}setOpacity(O){return this.rgba[3]=O,this}tweenTo(O,N){const R=this.rgba,x=O.rgba;return!F(R[0])||!F(x[0])?O.input||"none":(O=x[3]!==1||R[3]!==1,(O?"rgba(":"rgb(")+Math.round(x[0]+(R[0]-x[0])*(1-N))+","+Math.round(x[1]+(R[1]-x[1])*(1-N))+","+Math.round(x[2]+(R[2]-x[2])*(1-N))+(O?","+(x[3]+(R[3]-x[3])*(1-N)):"")+")")}}return Y.names={white:"#ffffff",black:"#000000"},Y.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(U){return[K(U[1]),K(U[2]),K(U[3]),parseFloat(U[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(U){return[K(U[1]),K(U[2]),K(U[3]),1]}}],Y.None=new Y(""),Y}),st(P,"Core/Color/Palettes.js",[],function(){return{colors:"#2caffe #544fc5 #00e272 #fe6a35 #6b8abc #d568fb #2ee0ca #fa4b42 #feb56a #91e8e1".split(" ")}}),st(P,"Core/Time.js",[P["Core/Globals.js"],P["Core/Utilities.js"]],function(B,A){const{win:F}=B,{defined:q,error:K,extend:Y,isObject:U,merge:O,objectEach:N,pad:R,pick:x,splat:w,timeUnits:L}=A,D=B.isSafari&&F.Intl&&F.Intl.DateTimeFormat.prototype.formatRange,d=B.isSafari&&F.Intl&&!F.Intl.DateTimeFormat.prototype.formatRange;class y{constructor(f){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=F.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(f)}get(f,C){if(this.variableTimezone||this.timezoneOffset){const v=C.getTime(),b=v-this.getTimezoneOffset(C);return C.setTime(b),f=C["getUTC"+f](),C.setTime(v),f}return this.useUTC?C["getUTC"+f]():C["get"+f]()}set(f,C,v){if(this.variableTimezone||this.timezoneOffset){if(f==="Milliseconds"||f==="Seconds"||f==="Minutes"&&this.getTimezoneOffset(C)%36e5===0)return C["setUTC"+f](v);var b=this.getTimezoneOffset(C);return b=C.getTime()-b,C.setTime(b),C["setUTC"+f](v),f=this.getTimezoneOffset(C),b=C.getTime()+f,C.setTime(b)}return this.useUTC||D&&f==="FullYear"?C["setUTC"+f](v):C["set"+f](v)}update(f={}){const C=x(f.useUTC,!0);this.options=f=O(!0,this.options,f),this.Date=f.Date||F.Date||Date,this.timezoneOffset=(this.useUTC=C)&&f.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=C&&!(!f.getTimezoneOffset&&!f.timezone)}makeTime(f,C,v,b,o,l){let p,h,c;return this.useUTC?(p=this.Date.UTC.apply(0,arguments),h=this.getTimezoneOffset(p),p+=h,c=this.getTimezoneOffset(p),h!==c?p+=c-h:h-36e5!==this.getTimezoneOffset(p-36e5)||d||(p-=36e5)):p=new this.Date(f,C,x(v,1),x(b,0),x(o,0),x(l,0)).getTime(),p}timezoneOffsetFunction(){const f=this,C=this.options,v=C.getTimezoneOffset,b=C.moment||F.moment;if(!this.useUTC)return function(o){return 6e4*new Date(o.toString()).getTimezoneOffset()};if(C.timezone){if(b)return function(o){return 6e4*-b.tz(o,C.timezone).utcOffset()};K(25)}return this.useUTC&&v?function(o){return 6e4*v(o.valueOf())}:function(){return 6e4*(f.timezoneOffset||0)}}dateFormat(f,C,v){if(!q(C)||isNaN(C))return B.defaultOptions.lang&&B.defaultOptions.lang.invalidDate||"";f=x(f,"%Y-%m-%d %H:%M:%S");const b=this;var o=new this.Date(C);const l=this.get("Hours",o),p=this.get("Day",o),h=this.get("Date",o),c=this.get("Month",o),e=this.get("FullYear",o),t=B.defaultOptions.lang,i=t&&t.weekdays,a=t&&t.shortWeekdays;return o=Y({a:a?a[p]:i[p].substr(0,3),A:i[p],d:R(h),e:R(h,2," "),w:p,b:t.shortMonths[c],B:t.months[c],m:R(c+1),o:c+1,y:e.toString().substr(2,2),Y:e,H:R(l),k:l,I:R(l%12||12),l:l%12||12,M:R(this.get("Minutes",o)),p:12>l?"AM":"PM",P:12>l?"am":"pm",S:R(o.getSeconds()),L:R(Math.floor(C%1e3),3)},B.dateFormats),N(o,function(u,_){for(;f.indexOf("%"+_)!==-1;)f=f.replace("%"+_,typeof u=="function"?u.call(b,C):u)}),v?f.substr(0,1).toUpperCase()+f.substr(1):f}resolveDTLFormat(f){return U(f,!0)?f:(f=w(f),{main:f[0],from:f[1],to:f[2]})}getTimeTicks(f,C,v,b){const o=this,l=[],p={};var h=new o.Date(C);const c=f.unitRange,e=f.count||1;let t;if(b=x(b,1),q(C)){if(o.set("Milliseconds",h,c>=L.second?0:e*Math.floor(o.get("Milliseconds",h)/e)),c>=L.second&&o.set("Seconds",h,c>=L.minute?0:e*Math.floor(o.get("Seconds",h)/e)),c>=L.minute&&o.set("Minutes",h,c>=L.hour?0:e*Math.floor(o.get("Minutes",h)/e)),c>=L.hour&&o.set("Hours",h,c>=L.day?0:e*Math.floor(o.get("Hours",h)/e)),c>=L.day&&o.set("Date",h,c>=L.month?1:Math.max(1,e*Math.floor(o.get("Date",h)/e))),c>=L.month){o.set("Month",h,c>=L.year?0:e*Math.floor(o.get("Month",h)/e));var i=o.get("FullYear",h)}c>=L.year&&o.set("FullYear",h,i-i%e),c===L.week&&(i=o.get("Day",h),o.set("Date",h,o.get("Date",h)-i+b+(i<b?-7:0))),i=o.get("FullYear",h),b=o.get("Month",h);const a=o.get("Date",h),u=o.get("Hours",h);for(C=h.getTime(),!o.variableTimezone&&o.useUTC||!q(v)||(t=v-C>4*L.month||o.getTimezoneOffset(C)!==o.getTimezoneOffset(v)),C=h.getTime(),h=1;C<v;)l.push(C),C=c===L.year?o.makeTime(i+h*e,0):c===L.month?o.makeTime(i,b+h*e):!t||c!==L.day&&c!==L.week?t&&c===L.hour&&1<e?o.makeTime(i,b,a,u+h*e):C+c*e:o.makeTime(i,b,a+h*e*(c===L.day?1:7)),h++;l.push(C),c<=L.hour&&1e4>l.length&&l.forEach(function(_){_%18e5===0&&o.dateFormat("%H%M%S%L",_)==="000000000"&&(p[_]="day")})}return l.info=Y(f,{higherRanks:p,totalRange:c*e}),l}getDateFormat(f,C,v,b){const o=this.dateFormat("%m-%d %H:%M:%S.%L",C),l={millisecond:15,second:12,minute:9,hour:6,day:3};let p,h="millisecond";for(p in L){if(f===L.week&&+this.dateFormat("%w",C)===v&&o.substr(6)==="00:00:00.000"){p="week";break}if(L[p]>f){p=h;break}if(l[p]&&o.substr(l[p])!=="01-01 00:00:00.000".substr(l[p]))break;p!=="week"&&(h=p)}return this.resolveDTLFormat(b[p]).main}}return y}),st(P,"Core/Defaults.js",[P["Core/Chart/ChartDefaults.js"],P["Core/Color/Color.js"],P["Core/Globals.js"],P["Core/Color/Palettes.js"],P["Core/Time.js"],P["Core/Utilities.js"]],function(B,A,F,q,K,Y){const{isTouchDevice:U,svg:O}=F,{merge:N}=Y,R={colors:q.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:B,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:O,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:U?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};R.chart.styledMode=!1;const x=new K(R.time);return B={defaultOptions:R,defaultTime:x,getOptions:function(){return R},setOptions:function(w){return N(!0,R,w),(w.time||w.global)&&(F.time?F.time.update(N(R.global,R.time,w.global,w.time)):F.time=x),R}},B}),st(P,"Core/Animation/Fx.js",[P["Core/Color/Color.js"],P["Core/Globals.js"],P["Core/Utilities.js"]],function(B,A,F){const{parse:q}=B,{win:K}=A,{isNumber:Y,objectEach:U}=F;class O{constructor(R,x,w){this.pos=NaN,this.options=x,this.elem=R,this.prop=w}dSetter(){var R=this.paths;const x=R&&R[0];R=R&&R[1];const w=this.now||0;let L=[];if(w!==1&&x&&R)if(x.length===R.length&&1>w)for(let D=0;D<R.length;D++){const d=x[D],y=R[D],k=[];for(let f=0;f<y.length;f++){const C=d[f],v=y[f];Y(C)&&Y(v)&&(y[0]!=="A"||f!==4&&f!==5)?k[f]=C+w*(v-C):k[f]=v}L.push(k)}else L=R;else L=this.toD||[];this.elem.attr("d",L,void 0,!0)}update(){const R=this.elem,x=this.prop,w=this.now,L=this.options.step;this[x+"Setter"]?this[x+"Setter"]():R.attr?R.element&&R.attr(x,w,null,!0):R.style[x]=w+this.unit,L&&L.call(R,w,this)}run(R,x,w){const L=this,D=L.options,d=function(f){return d.stopped?!1:L.step(f)},y=K.requestAnimationFrame||function(f){setTimeout(f,13)},k=function(){for(let f=0;f<O.timers.length;f++)O.timers[f]()||O.timers.splice(f--,1);O.timers.length&&y(k)};R!==x||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=R,this.end=x,this.unit=w,this.now=this.start,this.pos=0,d.elem=this.elem,d.prop=this.prop,d()&&O.timers.push(d)===1&&y(k)):(delete D.curAnim[this.prop],D.complete&&Object.keys(D.curAnim).length===0&&D.complete.call(this.elem))}step(R){const x=+new Date,w=this.options,L=this.elem,D=w.complete,d=w.duration,y=w.curAnim;let k;return L.attr&&!L.element?R=!1:R||x>=d+this.startTime?(this.now=this.end,this.pos=1,this.update(),k=y[this.prop]=!0,U(y,function(f){f!==!0&&(k=!1)}),k&&D&&D.call(L),R=!1):(this.pos=w.easing((x-this.startTime)/d),this.now=this.start+(this.end-this.start)*this.pos,this.update(),R=!0),R}initPath(R,x,w){function L(o,l){for(;o.length<v;){var p=o[0];const h=l[v-o.length];h&&p[0]==="M"&&(o[0]=h[0]==="C"?["C",p[1],p[2],p[1],p[2],p[1],p[2]]:["L",p[1],p[2]]),o.unshift(p),k&&(p=o.pop(),o.push(o[o.length-1],p))}}function D(o,l){for(;o.length<v;)if(l=o[Math.floor(o.length/f)-1].slice(),l[0]==="C"&&(l[1]=l[5],l[2]=l[6]),k){const p=o[Math.floor(o.length/f)].slice();o.splice(o.length/2,0,l,p)}else o.push(l)}const d=R.startX,y=R.endX;w=w.slice();const k=R.isArea,f=k?2:1;let C,v,b;if(x=x&&x.slice(),!x)return[w,w];if(d&&y&&y.length){for(R=0;R<d.length;R++)if(d[R]===y[0]){C=R;break}else if(d[0]===y[y.length-d.length+R]){C=R,b=!0;break}else if(d[d.length-1]===y[y.length-d.length+R]){C=d.length-R;break}typeof C>"u"&&(x=[])}return x.length&&Y(C)&&(v=w.length+C*f,b?(L(x,w),D(w,x)):(L(w,x),D(x,w))),[x,w]}fillSetter(){O.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,q(this.start).tweenTo(q(this.end),this.pos),void 0,!0)}}return O.timers=[],O}),st(P,"Core/Animation/AnimationUtilities.js",[P["Core/Animation/Fx.js"],P["Core/Utilities.js"]],function(B,A){function F(L){return N(L)?R({duration:500,defer:0},L):{duration:L?500:0,defer:0}}function q(L,D){let d=B.timers.length;for(;d--;)B.timers[d].elem!==L||D&&D!==B.timers[d].prop||(B.timers[d].stopped=!0)}const{defined:K,getStyle:Y,isArray:U,isNumber:O,isObject:N,merge:R,objectEach:x,pick:w}=A;return{animate:function(L,D,d){let y,k="",f,C,v;N(d)||(v=arguments,d={duration:v[2],easing:v[3],complete:v[4]}),O(d.duration)||(d.duration=400),d.easing=typeof d.easing=="function"?d.easing:Math[d.easing]||Math.easeInOutSine,d.curAnim=R(D),x(D,function(b,o){q(L,o),C=new B(L,d,o),f=void 0,o==="d"&&U(D.d)?(C.paths=C.initPath(L,L.pathArray,D.d),C.toD=D.d,y=0,f=1):L.attr?y=L.attr(o):(y=parseFloat(Y(L,o))||0,o!=="opacity"&&(k="px")),f||(f=b),typeof f=="string"&&f.match("px")&&(f=f.replace(/px/g,"")),C.run(y,f,k)})},animObject:F,getDeferredAnimation:function(L,D,d){const y=F(D);let k=0,f=0;return(d?[d]:L.series).forEach(C=>{C=F(C.options.animation),k=D&&K(D.defer)?y.defer:Math.max(k,C.duration+C.defer),f=Math.min(y.duration,C.duration)}),L.renderer.forExport&&(k=0),{defer:Math.max(0,k-f),duration:Math.min(k,f)}},setAnimation:function(L,D){D.renderer.globalAnimation=w(L,D.options.chart.animation,!0)},stop:q}}),st(P,"Core/Renderer/HTML/AST.js",[P["Core/Globals.js"],P["Core/Utilities.js"]],function(B,A){const{SVG_NS:F,win:q}=B,{attr:K,createElement:Y,css:U,error:O,isFunction:N,isString:R,objectEach:x,splat:w}=A;({trustedTypes:A}=q);const L=A&&N(A.createPolicy)&&A.createPolicy("highcharts",{createHTML:k=>k});A=L?L.createHTML(""):"";try{var D=!!new DOMParser().parseFromString(A,"text/html")}catch{D=!1}const d=D;class y{static filterUserAttributes(f){return x(f,(C,v)=>{let b=!0;y.allowedAttributes.indexOf(v)===-1&&(b=!1),["background","dynsrc","href","lowsrc","src"].indexOf(v)!==-1&&(b=R(C)&&y.allowedReferences.some(o=>C.indexOf(o)===0)),b||(O(33,!1,void 0,{"Invalid attribute in config":`${v}`}),delete f[v]),R(C)&&f[v]&&(f[v]=C.replace(/</g,"<"))}),f}static parseStyle(f){return f.split(";").reduce((C,v)=>{v=v.split(":").map(o=>o.trim());const b=v.shift();return b&&v.length&&(C[b.replace(/-([a-z])/g,o=>o[1].toUpperCase())]=v.join(":")),C},{})}static setElementHTML(f,C){f.innerHTML=y.emptyHTML,C&&new y(C).addToDOM(f)}constructor(f){this.nodes=typeof f=="string"?this.parseMarkup(f):f}addToDOM(f){function C(v,b){let o;return w(v).forEach(function(l){var p=l.tagName;const h=l.textContent?B.doc.createTextNode(l.textContent):void 0,c=y.bypassHTMLFiltering;let e;if(p)if(p==="#text")e=h;else if(y.allowedTags.indexOf(p)!==-1||c){p=B.doc.createElementNS(p==="svg"?F:b.namespaceURI||F,p);const t=l.attributes||{};x(l,function(i,a){a!=="tagName"&&a!=="attributes"&&a!=="children"&&a!=="style"&&a!=="textContent"&&(t[a]=i)}),K(p,c?t:y.filterUserAttributes(t)),l.style&&U(p,l.style),h&&p.appendChild(h),C(l.children||[],p),e=p}else O(33,!1,void 0,{"Invalid tagName in config":p});e&&b.appendChild(e),o=e}),o}return C(this.nodes,f)}parseMarkup(f){const C=[];if(f=f.trim().replace(/ style=(["'])/g," data-style=$1"),d)f=new DOMParser().parseFromString(L?L.createHTML(f):f,"text/html");else{const b=Y("div");b.innerHTML=f,f={body:b}}const v=(b,o)=>{var l=b.nodeName.toLowerCase();const p={tagName:l};if(l==="#text"&&(p.textContent=b.textContent||""),l=b.attributes){const h={};[].forEach.call(l,c=>{c.name==="data-style"?p.style=y.parseStyle(c.value):h[c.name]=c.value}),p.attributes=h}if(b.childNodes.length){const h=[];[].forEach.call(b.childNodes,c=>{v(c,h)}),h.length&&(p.children=h)}o.push(p)};return[].forEach.call(f.body.childNodes,b=>v(b,C)),C}}return y.allowedAttributes="alt aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill flood-color flood-opacity height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),y.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),y.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feDropShadow feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),y.emptyHTML=A,y.bypassHTMLFiltering=!1,y}),st(P,"Core/Templating.js",[P["Core/Defaults.js"],P["Core/Utilities.js"]],function(B,A){function F(d="",y,k){const f=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,C=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,v=[],b=/f$/,o=/\.([0-9])/,l=K.lang,p=k&&k.time||Y,h=k&&k.numberFormatter||q,c=(r="")=>{let S;return r==="true"?!0:r==="false"?!1:(S=Number(r)).toString()===r?S:O(r,y)};let e,t,i=0,a;for(;(e=f.exec(d))!==null;){const r=C.exec(e[1]);r&&(e=r,a=!0),t&&t.isBlock||(t={ctx:y,expression:e[1],find:e[0],isBlock:e[1].charAt(0)==="#",start:e.index,startInner:e.index+e[0].length,length:e[0].length});var u=e[1].split(" ")[0].replace("#","");if(D[u]&&(t.isBlock&&u===t.fn&&i++,t.fn||(t.fn=u)),u=e[1]==="else",t.isBlock&&t.fn&&(e[1]===`/${t.fn}`||u))if(i)u||i--;else{var _=t.startInner;_=d.substr(_,e.index-_),t.body===void 0?(t.body=_,t.startInner=e.index+e[0].length):t.elseBody=_,t.find+=_+e[0],u||(v.push(t),t=void 0)}else t.isBlock||v.push(t);if(r&&(t==null||!t.isBlock))break}return v.forEach(r=>{const{body:S,elseBody:G,expression:Z,fn:rt}=r;var j;if(rt){var s=[r],T=Z.split(" ");for(j=D[rt].length;j--;)s.unshift(c(T[j+1]));j=D[rt].apply(y,s),r.isBlock&&typeof j=="boolean"&&(j=F(j?S:G,y))}else s=Z.split(":"),j=c(s.shift()||""),s.length&&typeof j=="number"&&(s=s.join(":"),b.test(s)?(T=parseInt((s.match(o)||["","-1"])[1],10),j!==null&&(j=h(j,T,l.decimalPoint,-1<s.indexOf(",")?l.thousandsSep:""))):j=p.dateFormat(s,j));d=d.replace(r.find,w(j,""))}),a?F(d,y,k):d}function q(d,y,k,f){d=+d||0,y=+y;const C=K.lang;var v=(d.toString().split(".")[1]||"").split("e")[0].length;const b=d.toString().split("e"),o=y;if(y===-1)y=Math.min(v,20);else if(!R(y))y=2;else if(y&&b[1]&&0>b[1]){var l=y+ +b[1];0<=l?(b[0]=(+b[0]).toExponential(l).split("e")[0],y=l):(b[0]=b[0].split(".")[0]||0,d=20>y?(b[0]*Math.pow(10,b[1])).toFixed(y):0,b[1]=0)}l=(Math.abs(b[1]?b[0]:d)+Math.pow(10,-Math.max(y,v)-1)).toFixed(y),v=String(L(l));const p=3<v.length?v.length%3:0;return k=w(k,C.decimalPoint),f=w(f,C.thousandsSep),d=(0>d?"-":"")+(p?v.substr(0,p)+f:""),d=0>+b[1]&&!o?"0":d+v.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+f),y&&(d+=k+l.slice(-y)),b[1]&&+d!=0&&(d+="e"+b[1]),d}const{defaultOptions:K,defaultTime:Y}=B,{extend:U,getNestedProperty:O,isArray:N,isNumber:R,isObject:x,pick:w,pInt:L}=A,D={add:(d,y)=>d+y,divide:(d,y)=>y!==0?d/y:"",eq:(d,y)=>d==y,each:function(d){const y=arguments[arguments.length-1];return N(d)?d.map((k,f)=>F(y.body,U(x(k)?k:{"@this":k},{"@index":f,"@first":f===0,"@last":f===d.length-1}))).join(""):!1},ge:(d,y)=>d>=y,gt:(d,y)=>d>y,if:d=>!!d,le:(d,y)=>d<=y,lt:(d,y)=>d<y,multiply:(d,y)=>d*y,ne:(d,y)=>d!=y,subtract:(d,y)=>d-y,unless:d=>!d};return{dateFormat:function(d,y,k){return Y.dateFormat(d,y,k)},format:F,helpers:D,numberFormat:q}}),st(P,"Core/Renderer/RendererUtilities.js",[P["Core/Utilities.js"]],function(B){const{clamp:A,pick:F,stableSort:q}=B;var K;return function(Y){function U(O,N,R){const x=O;var w=x.reducedLen||N,L=(C,v)=>(v.rank||0)-(C.rank||0);const D=(C,v)=>C.target-v.target;let d,y=!0,k=[],f=0;for(d=O.length;d--;)f+=O[d].size;if(f>w){for(q(O,L),f=d=0;f<=w;)f+=O[d].size,d++;k=O.splice(d-1,O.length)}for(q(O,D),O=O.map(C=>({size:C.size,targets:[C.target],align:F(C.align,.5)}));y;){for(d=O.length;d--;)w=O[d],L=(Math.min.apply(0,w.targets)+Math.max.apply(0,w.targets))/2,w.pos=A(L-w.size*w.align,0,N-w.size);for(d=O.length,y=!1;d--;)0<d&&O[d-1].pos+O[d-1].size>O[d].pos&&(O[d-1].size+=O[d].size,O[d-1].targets=O[d-1].targets.concat(O[d].targets),O[d-1].align=.5,O[d-1].pos+O[d-1].size>N&&(O[d-1].pos=N-O[d-1].size),O.splice(d,1),y=!0)}return x.push.apply(x,k),d=0,O.some(C=>{let v=0;return(C.targets||[]).some(()=>(x[d].pos=C.pos+v,typeof R<"u"&&Math.abs(x[d].pos-x[d].target)>R?(x.slice(0,d+1).forEach(b=>delete b.pos),x.reducedLen=(x.reducedLen||N)-.1*N,x.reducedLen>.1*N&&U(x,N,R),!0):(v+=x[d].size,d++,!1)))}),q(x,D),x}Y.distribute=U}(K||(K={})),K}),st(P,"Core/Renderer/SVG/SVGElement.js",[P["Core/Animation/AnimationUtilities.js"],P["Core/Color/Color.js"],P["Core/Globals.js"],P["Core/Utilities.js"]],function(B,A,F,q){const{animate:K,animObject:Y,stop:U}=B,{deg2rad:O,doc:N,svg:R,SVG_NS:x,win:w}=F,{addEvent:L,attr:D,createElement:d,css:y,defined:k,erase:f,extend:C,fireEvent:v,isArray:b,isFunction:o,isObject:l,isString:p,merge:h,objectEach:c,pick:e,pInt:t,syncTimeout:i,uniqueKey:a}=q;class u{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=x}_defaultGetter(r){return r=e(this[r+"Value"],this[r],this.element?this.element.getAttribute(r):null,0),/^[\-0-9\.]+$/.test(r)&&(r=parseFloat(r)),r}_defaultSetter(r,S,G){G.setAttribute(S,r)}add(r){const S=this.renderer,G=this.element;let Z;return r&&(this.parentGroup=r),typeof this.textStr<"u"&&this.element.nodeName==="text"&&S.buildText(this),this.added=!0,(!r||r.handleZ||this.zIndex)&&(Z=this.zIndexSetter()),Z||(r?r.element:S.box).appendChild(G),this.onAdd&&this.onAdd(),this}addClass(r,S){const G=S?"":this.attr("class")||"";return r=(r||"").split(/ /g).reduce(function(Z,rt){return G.indexOf(rt)===-1&&Z.push(rt),Z},G?[G]:[]).join(" "),r!==G&&this.attr("class",r),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(r,S,G){const Z={};var rt=this.renderer,j=rt.alignedObjects,s;let T,z;r?(this.alignOptions=r,this.alignByTranslate=S,(!G||p(G))&&(this.alignTo=s=G||"renderer",f(j,this),j.push(this),G=void 0)):(r=this.alignOptions,S=this.alignByTranslate,s=this.alignTo),G=e(G,rt[s],s==="scrollablePlotBox"?rt.plotBox:void 0,rt),s=r.align;const I=r.verticalAlign;return rt=(G.x||0)+(r.x||0),j=(G.y||0)+(r.y||0),s==="right"?T=1:s==="center"&&(T=2),T&&(rt+=(G.width-(r.width||0))/T),Z[S?"translateX":"x"]=Math.round(rt),I==="bottom"?z=1:I==="middle"&&(z=2),z&&(j+=(G.height-(r.height||0))/z),Z[S?"translateY":"y"]=Math.round(j),this[this.placed?"animate":"attr"](Z),this.placed=!0,this.alignAttr=Z,this}alignSetter(r){const S={left:"start",center:"middle",right:"end"};S[r]&&(this.alignValue=r,this.element.setAttribute("text-anchor",S[r]))}animate(r,S,G){const Z=Y(e(S,this.renderer.globalAnimation,!0));return S=Z.defer,N.hidden&&(Z.duration=0),Z.duration!==0?(G&&(Z.complete=G),i(()=>{this.element&&K(this,r,Z)},S)):(this.attr(r,void 0,G||Z.complete),c(r,function(rt,j){Z.step&&Z.step.call(this,rt,{prop:j,pos:1,elem:this})},this)),this}applyTextOutline(r){const S=this.element;r.indexOf("contrast")!==-1&&(r=r.replace(/contrast/g,this.renderer.getContrast(S.style.fill)));var G=r.split(" ");if(r=G[G.length-1],(G=G[0])&&G!=="none"&&F.svg){this.fakeTS=!0,G=G.replace(/(^[\d\.]+)(.*?)$/g,function(j,s,T){return 2*Number(s)+T}),this.removeTextOutline();const Z=N.createElementNS(x,"tspan");D(Z,{class:"highcharts-text-outline",fill:r,stroke:r,"stroke-width":G,"stroke-linejoin":"round"}),r=S.querySelector("textPath")||S,[].forEach.call(r.childNodes,j=>{const s=j.cloneNode(!0);s.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(T=>s.removeAttribute(T)),Z.appendChild(s)});let rt=0;[].forEach.call(r.querySelectorAll("text tspan"),j=>{rt+=Number(j.getAttribute("dy"))}),G=N.createElementNS(x,"tspan"),G.textContent="",D(G,{x:Number(S.getAttribute("x")),dy:-rt}),Z.appendChild(G),r.insertBefore(Z,r.firstChild)}}attr(r,S,G,Z){const rt=this.element,j=u.symbolCustomAttribs;let s,T,z=this,I,V;return typeof r=="string"&&typeof S<"u"&&(s=r,r={},r[s]=S),typeof r=="string"?z=(this[r+"Getter"]||this._defaultGetter).call(this,r,rt):(c(r,function(n,g){I=!1,Z||U(this,g),this.symbolName&&j.indexOf(g)!==-1&&(T||(this.symbolAttr(r),T=!0),I=!0),!this.rotation||g!=="x"&&g!=="y"||(this.doTransform=!0),I||(V=this[g+"Setter"]||this._defaultSetter,V.call(this,n,g,rt))},this),this.afterSetters()),G&&G.call(this),z}clip(r){return this.attr("clip-path",r?"url("+this.renderer.url+"#"+r.id+")":"none")}crisp(r,S){S=S||r.strokeWidth||0;const G=Math.round(S)%2/2;return r.x=Math.floor(r.x||this.x||0)+G,r.y=Math.floor(r.y||this.y||0)+G,r.width=Math.floor((r.width||this.width||0)-2*G),r.height=Math.floor((r.height||this.height||0)-2*G),k(r.strokeWidth)&&(r.strokeWidth=S),r}complexColor(r,S,G){const Z=this.renderer;let rt,j,s,T,z,I,V,n,g,m,H=[],W;v(this.renderer,"complexColor",{args:arguments},function(){if(r.radialGradient?j="radialGradient":r.linearGradient&&(j="linearGradient"),j){if(s=r[j],z=Z.gradients,I=r.stops,g=G.radialReference,b(s)&&(r[j]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),j==="radialGradient"&&g&&!k(s.gradientUnits)&&(T=s,s=h(s,Z.getRadialAttr(g,T),{gradientUnits:"userSpaceOnUse"})),c(s,function($,et){et!=="id"&&H.push(et,$)}),c(I,function($){H.push($)}),H=H.join(","),z[H])m=z[H].attr("id");else{s.id=m=a();const $=z[H]=Z.createElement(j).attr(s).add(Z.defs);$.radAttr=T,$.stops=[],I.forEach(function(et){et[1].indexOf("rgba")===0?(rt=A.parse(et[1]),V=rt.get("rgb"),n=rt.get("a")):(V=et[1],n=1),et=Z.createElement("stop").attr({offset:et[0],"stop-color":V,"stop-opacity":n}).add($),$.stops.push(et)})}W="url("+Z.url+"#"+m+")",G.setAttribute(S,W),G.gradient=H,r.toString=function(){return W}}})}css(r){const S=this.styles,G={},Z=this.element;let rt,j=!S;if(S&&c(r,function(s,T){S&&S[T]!==s&&(G[T]=s,j=!0)}),j){S&&(r=C(S,G)),r.width===null||r.width==="auto"?delete this.textWidth:Z.nodeName.toLowerCase()==="text"&&r.width&&(rt=this.textWidth=t(r.width)),this.styles=r,rt&&!R&&this.renderer.forExport&&delete r.width;const s=h(r);Z.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(T=>s&&delete s[T]),s.color&&(s.fill=s.color)),y(Z,s)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),r.textOutline&&this.applyTextOutline(r.textOutline)),this}dashstyleSetter(r){let S=this["stroke-width"];if(S==="inherit"&&(S=1),r=r&&r.toLowerCase()){const G=r.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(r=G.length;r--;)G[r]=""+t(G[r])*e(S,NaN);r=G.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",r)}}destroy(){const r=this;var S=r.element||{};const G=r.renderer;var Z=S.ownerSVGElement;let rt=S.nodeName==="SPAN"&&r.parentGroup||void 0;if(S.onclick=S.onmouseout=S.onmouseover=S.onmousemove=S.point=null,U(r),r.clipPath&&Z){const j=r.clipPath;[].forEach.call(Z.querySelectorAll("[clip-path],[CLIP-PATH]"),function(s){-1<s.getAttribute("clip-path").indexOf(j.element.id)&&s.removeAttribute("clip-path")}),r.clipPath=j.destroy()}if(r.stops){for(Z=0;Z<r.stops.length;Z++)r.stops[Z].destroy();r.stops.length=0,r.stops=void 0}for(r.safeRemoveChild(S);rt&&rt.div&&rt.div.childNodes.length===0;)S=rt.parentGroup,r.safeRemoveChild(rt.div),delete rt.div,rt=S;r.alignTo&&f(G.alignedObjects,r),c(r,function(j,s){r[s]&&r[s].parentGroup===r&&r[s].destroy&&r[s].destroy(),delete r[s]})}dSetter(r,S,G){b(r)&&(typeof r[0]=="string"&&(r=this.renderer.pathToSegments(r)),this.pathArray=r,r=r.reduce((Z,rt,j)=>rt&&rt.join?(j?Z+" ":"")+rt.join(" "):(rt||"").toString(),"")),/(NaN| {2}|^$)/.test(r)&&(r="M 0 0"),this[S]!==r&&(G.setAttribute(S,r),this[S]=r)}fadeOut(r){const S=this;S.animate({opacity:0},{duration:e(r,150),complete:function(){S.hide()}})}fillSetter(r,S,G){typeof r=="string"?G.setAttribute(S,r):r&&this.complexColor(r,S,G)}getBBox(r,S){const{alignValue:G,element:Z,renderer:rt,styles:j,textStr:s}=this,{cache:T,cacheKeys:z}=rt;var I=Z.namespaceURI===this.SVG_NS;S=e(S,this.rotation,0);var V=rt.styledMode?Z&&u.prototype.getStyle.call(Z,"font-size"):j&&j.fontSize;let n,g;if(k(s)&&(g=s.toString(),g.indexOf("<")===-1&&(g=g.replace(/[0-9]/g,"0")),g+=["",rt.rootFontSize,V,S,this.textWidth,G,j&&j.textOverflow,j&&j.fontWeight].join()),g&&!r&&(n=T[g]),!n){if(I||rt.forExport){try{var m=this.fakeTS&&function(nt){const at=Z.querySelector(".highcharts-text-outline");at&&y(at,{display:nt})};o(m)&&m("none"),n=Z.getBBox?C({},Z.getBBox()):{width:Z.offsetWidth,height:Z.offsetHeight,x:0,y:0},o(m)&&m("")}catch{}(!n||0>n.width)&&(n={x:0,y:0,width:0,height:0})}else n=this.htmlGetBBox();if(m=n.width,r=n.height,I&&(n.height=r={"11px,17":14,"13px,20":16}[`${V||""},${Math.round(r)}`]||r),S){I=Number(Z.getAttribute("y")||0)-n.y,V={right:1,center:.5}[G||0]||0;var H=S*O,W=(S-90)*O,$=m*Math.cos(H);S=m*Math.sin(H);var et=Math.cos(W);H=Math.sin(W),m=n.x+V*(m-$)+I*et,W=m+$,et=W-r*et,$=et-$,I=n.y+I-V*S+I*H,V=I+S,r=V-r*H,S=r-S,n.x=Math.min(m,W,et,$),n.y=Math.min(I,V,r,S),n.width=Math.max(m,W,et,$)-n.x,n.height=Math.max(I,V,r,S)-n.y}}if(g&&(s===""||0<n.height)){for(;250<z.length;)delete T[z.shift()];T[g]||z.push(g),T[g]=n}return n}getStyle(r){return w.getComputedStyle(this.element||this,"").getPropertyValue(r)}hasClass(r){return(""+this.attr("class")).split(" ").indexOf(r)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}init(r,S){this.element=S==="span"?d(S):N.createElementNS(this.SVG_NS,S),this.renderer=r,v(this,"afterInit")}on(r,S){const{onEvents:G}=this;return G[r]&&G[r](),G[r]=L(this.element,r,S),this}opacitySetter(r,S,G){this.opacity=r=Number(Number(r).toFixed(3)),G.setAttribute(S,r)}removeClass(r){return this.attr("class",(""+this.attr("class")).replace(p(r)?new RegExp(`(^| )${r}( |$)`):r," ").replace(/ +/g," ").trim())}removeTextOutline(){const r=this.element.querySelector("tspan.highcharts-text-outline");r&&this.safeRemoveChild(r)}safeRemoveChild(r){const S=r.parentNode;S&&S.removeChild(r)}setRadialReference(r){const S=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=r,S&&S.radAttr&&S.animate(this.renderer.getRadialAttr(r,S.radAttr)),this}setTextPath(r,S){S=h(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},S);const G=this.renderer.url,Z=this.text||this,rt=Z.textPath,{attributes:j,enabled:s}=S;return r=r||rt&&rt.path,rt&&rt.undo(),r&&s?(S=L(Z,"afterModifyTree",T=>{if(r&&s){let I=r.attr("id");I||r.attr("id",I=a());var z={x:0,y:0};k(j.dx)&&(z.dx=j.dx,delete j.dx),k(j.dy)&&(z.dy=j.dy,delete j.dy),Z.attr(z),this.attr({transform:""}),this.box&&(this.box=this.box.destroy()),z=T.nodes.slice(0),T.nodes.length=0,T.nodes[0]={tagName:"textPath",attributes:C(j,{"text-anchor":j.textAnchor,href:`${G}#${I}`}),children:z}}}),Z.textPath={path:r,undo:S}):(Z.attr({dx:0,dy:0}),delete Z.textPath),this.added&&(Z.textCache="",this.renderer.buildText(Z)),this}shadow(r){var S;const{renderer:G}=this,Z=h(((S=this.parentGroup)===null||S===void 0?void 0:S.rotation)===90?{offsetX:-1,offsetY:-1}:{},l(r)?r:{});return S=G.shadowDefinition(Z),this.attr({filter:r?`url(${G.url}#${S})`:"none"})}show(r=!0){return this.attr({visibility:r?"inherit":"visible"})}"stroke-widthSetter"(r,S,G){this[S]=r,G.setAttribute(S,r)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const r=this.getStyle("stroke-width");let S=0,G;return r.indexOf("px")===r.length-2?S=t(r):r!==""&&(G=N.createElementNS(x,"rect"),D(G,{width:r,"stroke-width":0}),this.element.parentNode.appendChild(G),S=G.getBBox().width,G.parentNode.removeChild(G)),S}symbolAttr(r){const S=this;u.symbolCustomAttribs.forEach(function(G){S[G]=e(r[G],S[G])}),S.attr({d:S.renderer.symbols[S.symbolName](S.x,S.y,S.width,S.height,S)})}textSetter(r){r!==this.textStr&&(delete this.textPxLength,this.textStr=r,this.added&&this.renderer.buildText(this))}titleSetter(r){const S=this.element,G=S.getElementsByTagName("title")[0]||N.createElementNS(this.SVG_NS,"title");S.insertBefore?S.insertBefore(G,S.firstChild):S.appendChild(G),G.textContent=String(e(r,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")}toFront(){const r=this.element;return r.parentNode.appendChild(r),this}translate(r,S){return this.attr({translateX:r,translateY:S})}updateTransform(){const{element:r,matrix:S,rotation:G=0,scaleX:Z,scaleY:rt,translateX:j=0,translateY:s=0}=this,T=["translate("+j+","+s+")"];k(S)&&T.push("matrix("+S.join(",")+")"),G&&T.push("rotate("+G+" "+e(this.rotationOriginX,r.getAttribute("x"),0)+" "+e(this.rotationOriginY,r.getAttribute("y")||0)+")"),(k(Z)||k(rt))&&T.push("scale("+e(Z,1)+" "+e(rt,1)+")"),T.length&&!(this.text||this).textPath&&r.setAttribute("transform",T.join(" "))}visibilitySetter(r,S,G){r==="inherit"?G.removeAttribute(S):this[S]!==r&&G.setAttribute(S,r),this[S]=r}xGetter(r){return this.element.nodeName==="circle"&&(r==="x"?r="cx":r==="y"&&(r="cy")),this._defaultGetter(r)}zIndexSetter(r,S){var G=this.renderer,Z=this.parentGroup;const rt=(Z||G).element||G.box,j=this.element;G=rt===G.box;let s=!1,T;var z=this.added;let I;if(k(r)?(j.setAttribute("data-z-index",r),r=+r,this[S]===r&&(z=!1)):k(this[S])&&j.removeAttribute("data-z-index"),this[S]=r,z){for((r=this.zIndex)&&Z&&(Z.handleZ=!0),S=rt.childNodes,I=S.length-1;0<=I&&!s;I--)Z=S[I],z=Z.getAttribute("data-z-index"),T=!k(z),Z!==j&&(0>r&&T&&!G&&!I?(rt.insertBefore(j,S[I]),s=!0):(t(z)<=r||T&&(!k(r)||0<=r))&&(rt.insertBefore(j,S[I+1]),s=!0));s||(rt.insertBefore(j,S[G?3:0]),s=!0)}return s}}return u.symbolCustomAttribs="anchorX anchorY clockwise end height innerR r start width x y".split(" "),u.prototype.strokeSetter=u.prototype.fillSetter,u.prototype.yGetter=u.prototype.xGetter,u.prototype.matrixSetter=u.prototype.rotationOriginXSetter=u.prototype.rotationOriginYSetter=u.prototype.rotationSetter=u.prototype.scaleXSetter=u.prototype.scaleYSetter=u.prototype.translateXSetter=u.prototype.translateYSetter=u.prototype.verticalAlignSetter=function(_,r){this[r]=_,this.doTransform=!0},u}),st(P,"Core/Renderer/RendererRegistry.js",[P["Core/Globals.js"]],function(B){var A;return function(F){F.rendererTypes={};let q;F.getRendererType=function(K=q){return F.rendererTypes[K]||F.rendererTypes[q]},F.registerRendererType=function(K,Y,U){F.rendererTypes[K]=Y,(!q||U)&&(q=K,B.Renderer=Y)}}(A||(A={})),A}),st(P,"Core/Renderer/SVG/SVGLabel.js",[P["Core/Renderer/SVG/SVGElement.js"],P["Core/Utilities.js"]],function(B,A){const{defined:F,extend:q,isNumber:K,merge:Y,pick:U,removeEvent:O}=A;class N extends B{constructor(x,w,L,D,d,y,k,f,C,v){super(),this.paddingRightSetter=this.paddingLeftSetter=this.paddingSetter,this.init(x,"g"),this.textStr=w,this.x=L,this.y=D,this.anchorX=y,this.anchorY=k,this.baseline=C,this.className=v,this.addClass(v==="button"?"highcharts-no-tooltip":"highcharts-label"),v&&this.addClass("highcharts-"+v),this.text=x.text(void 0,0,0,f).attr({zIndex:1});let b;typeof d=="string"&&((b=/^url\((.*?)\)$/.test(d))||this.renderer.symbols[d])&&(this.symbolKey=d),this.bBox=N.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=x.styledMode||b,this.deferredAttr={},this.alignFactor=0}alignSetter(x){x={left:0,center:.5,right:1}[x],x!==this.alignFactor&&(this.alignFactor=x,this.bBox&&K(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(x,w){this.anchorX=x,this.boxAttr(w,Math.round(x)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(x,w){this.anchorY=x,this.boxAttr(w,x-this.ySetting)}boxAttr(x,w){this.box?this.box.attr(x,w):this.deferredAttr[x]=w}css(x){if(x){const w={};x=Y(x),N.textProps.forEach(L=>{typeof x[L]<"u"&&(w[L]=x[L],delete x[L])}),this.text.css(w),"fontSize"in w||"fontWeight"in w?this.updateTextPadding():("width"in w||"textOverflow"in w)&&this.updateBoxSize()}return B.prototype.css.call(this,x)}destroy(){O(this.element,"mouseenter"),O(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),B.prototype.destroy.call(this)}fillSetter(x,w){x&&(this.needsBox=!0),this.fill=x,this.boxAttr(w,x)}getBBox(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();const x=this.padding,w=U(this.paddingLeft,x);return{width:this.width,height:this.height,x:this.bBox.x-w,y:this.bBox.y-x}}getCrispAdjust(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(x){this.heightSetting=x}onAdd(){this.text.add(this),this.attr({text:U(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&F(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(x,w){K(x)?x!==this[w]&&(this[w]=x,this.updateTextPadding()):this[w]=void 0}rSetter(x,w){this.boxAttr(w,x)}strokeSetter(x,w){this.stroke=x,this.boxAttr(w,x)}"stroke-widthSetter"(x,w){x&&(this.needsBox=!0),this["stroke-width"]=x,this.boxAttr(w,x)}"text-alignSetter"(x){this.textAlign=x}textSetter(x){typeof x<"u"&&this.text.attr({text:x}),this.updateTextPadding()}updateBoxSize(){var x=this.text;const w={},L=this.padding,D=this.bBox=K(this.widthSetting)&&K(this.heightSetting)&&!this.textAlign||!F(x.textStr)?N.emptyBBox:x.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||D.height||0)+2*L;const d=this.renderer.fontMetrics(x);this.baselineOffset=L+Math.min((this.text.firstLineMetrics||d).b,D.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-d.h)/2),this.needsBox&&!x.textPath&&(this.box||(x=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),x.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),x.add(this)),x=this.getCrispAdjust(),w.x=x,w.y=(this.baseline?-this.baselineOffset:0)+x,w.width=Math.round(this.width),w.height=Math.round(this.height),this.box.attr(q(w,this.deferredAttr)),this.deferredAttr={})}updateTextPadding(){const x=this.text;if(!x.textPath){this.updateBoxSize();const w=this.baseline?0:this.baselineOffset;let L=U(this.paddingLeft,this.padding);F(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(L+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(L!==x.x||w!==x.y)&&(x.attr("x",L),x.hasBoxWidthChanged&&(this.bBox=x.getBBox(!0)),typeof w<"u"&&x.attr("y",w)),x.x=L,x.y=w}}widthSetter(x){this.widthSetting=K(x)?x:void 0}getPaddedWidth(){var x=this.padding;const w=U(this.paddingLeft,x);return x=U(this.paddingRight,x),(this.widthSetting||this.bBox.width||0)+w+x}xSetter(x){this.x=x,this.alignFactor&&(x-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(x),this.attr("translateX",this.xSetting)}ySetter(x){this.ySetting=this.y=Math.round(x),this.attr("translateY",this.ySetting)}}return N.emptyBBox={width:0,height:0,x:0,y:0},N.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow whiteSpace width".split(" "),N}),st(P,"Core/Renderer/SVG/Symbols.js",[P["Core/Utilities.js"]],function(B){function A(O,N,R,x,w){const L=[];if(w){const D=w.start||0,d=U(w.r,R);R=U(w.r,x||R),x=(w.end||0)-.001;const y=w.innerR,k=U(w.open,.001>Math.abs((w.end||0)-D-2*Math.PI)),f=Math.cos(D),C=Math.sin(D),v=Math.cos(x),b=Math.sin(x),o=U(w.longArc,.001>x-D-Math.PI?0:1);let l=["A",d,R,0,o,U(w.clockwise,1),O+d*v,N+R*b];l.params={start:D,end:x,cx:O,cy:N},L.push(["M",O+d*f,N+R*C],l),K(y)&&(l=["A",y,y,0,o,K(w.clockwise)?1-w.clockwise:0,O+y*f,N+y*C],l.params={start:x,end:D,cx:O,cy:N},L.push(k?["M",O+y*v,N+y*b]:["L",O+y*v,N+y*b],l)),k||L.push(["Z"])}return L}function F(O,N,R,x,w){return w&&w.r?q(O,N,R,x,w):[["M",O,N],["L",O+R,N],["L",O+R,N+x],["L",O,N+x],["Z"]]}function q(O,N,R,x,w){return w=(w==null?void 0:w.r)||0,[["M",O+w,N],["L",O+R-w,N],["A",w,w,0,0,1,O+R,N+w],["L",O+R,N+x-w],["A",w,w,0,0,1,O+R-w,N+x],["L",O+w,N+x],["A",w,w,0,0,1,O,N+x-w],["L",O,N+w],["A",w,w,0,0,1,O+w,N],["Z"]]}const{defined:K,isNumber:Y,pick:U}=B;return{arc:A,callout:function(O,N,R,x,w){const L=Math.min(w&&w.r||0,R,x),D=L+6,d=w&&w.anchorX;w=w&&w.anchorY||0;const y=q(O,N,R,x,{r:L});return Y(d)&&(O+d>=R?w>N+D&&w<N+x-D?y.splice(3,1,["L",O+R,w-6],["L",O+R+6,w],["L",O+R,w+6],["L",O+R,N+x-L]):y.splice(3,1,["L",O+R,x/2],["L",d,w],["L",O+R,x/2],["L",O+R,N+x-L]):0>=O+d?w>N+D&&w<N+x-D?y.splice(7,1,["L",O,w+6],["L",O-6,w],["L",O,w-6],["L",O,N+L]):y.splice(7,1,["L",O,x/2],["L",d,w],["L",O,x/2],["L",O,N+L]):w&&w>x&&d>O+D&&d<O+R-D?y.splice(5,1,["L",d+6,N+x],["L",d,N+x+6],["L",d-6,N+x],["L",O+L,N+x]):w&&0>w&&d>O+D&&d<O+R-D&&y.splice(1,1,["L",d-6,N],["L",d,N-6],["L",d+6,N],["L",R-L,N])),y},circle:function(O,N,R,x){return A(O+R/2,N+x/2,R/2,x/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(O,N,R,x){return[["M",O+R/2,N],["L",O+R,N+x/2],["L",O+R/2,N+x],["L",O,N+x/2],["Z"]]},rect:F,roundedRect:q,square:F,triangle:function(O,N,R,x){return[["M",O+R/2,N],["L",O+R,N+x],["L",O,N+x],["Z"]]},"triangle-down":function(O,N,R,x){return[["M",O,N],["L",O+R,N],["L",O+R/2,N+x],["Z"]]}}}),st(P,"Core/Renderer/SVG/TextBuilder.js",[P["Core/Renderer/HTML/AST.js"],P["Core/Globals.js"],P["Core/Utilities.js"]],function(B,A,F){const{doc:q,SVG_NS:K,win:Y}=A,{attr:U,extend:O,fireEvent:N,isString:R,objectEach:x,pick:w}=F;class L{constructor(d){const y=d.styles;this.renderer=d.renderer,this.svgElement=d,this.width=d.textWidth,this.textLineHeight=y&&y.lineHeight,this.textOutline=y&&y.textOutline,this.ellipsis=!(!y||y.textOverflow!=="ellipsis"),this.noWrap=!(!y||y.whiteSpace!=="nowrap")}buildSVG(){const d=this.svgElement,y=d.element;var k=d.renderer,f=w(d.textStr,"").toString();const C=f.indexOf("<")!==-1,v=y.childNodes;k=!d.added&&k.box;const b=/<br.*?>/g;var o=[f,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,d.getStyle("font-size"),this.width].join();if(o!==d.textCache){for(d.textCache=o,delete d.actualWidth,o=v.length;o--;)y.removeChild(v[o]);C||this.ellipsis||this.width||d.textPath||f.indexOf(" ")!==-1&&(!this.noWrap||b.test(f))?f!==""&&(k&&k.appendChild(y),f=new B(f),this.modifyTree(f.nodes),f.addToDOM(y),this.modifyDOM(),this.ellipsis&&(y.textContent||"").indexOf("…")!==-1&&d.attr("title",this.unescapeEntities(d.textStr||"",["<",">"])),k&&k.removeChild(y)):y.appendChild(q.createTextNode(this.unescapeEntities(f))),R(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}}modifyDOM(){const d=this.svgElement,y=U(d.element,"x");d.firstLineMetrics=void 0;let k;for(;(k=d.element.firstChild)&&/^[\s\u200B]*$/.test(k.textContent||" ");)d.element.removeChild(k);[].forEach.call(d.element.querySelectorAll("tspan.highcharts-br"),(b,o)=>{b.nextSibling&&b.previousSibling&&(o===0&&b.previousSibling.nodeType===1&&(d.firstLineMetrics=d.renderer.fontMetrics(b.previousSibling)),U(b,{dy:this.getLineHeight(b.nextSibling),x:y}))});const f=this.width||0;if(f){var C=(b,o)=>{var l=b.textContent||"";const p=l.replace(/([^\^])-/g,"$1- ").split(" ");var h=!this.noWrap&&(1<p.length||1<d.element.childNodes.length);const c=this.getLineHeight(o);let e=0,t=d.actualWidth;if(this.ellipsis)l&&this.truncate(b,l,void 0,0,Math.max(0,f-.8*c),(i,a)=>i.substring(0,a)+"…");else if(h){for(l=[],h=[];o.firstChild&&o.firstChild!==b;)h.push(o.firstChild),o.removeChild(o.firstChild);for(;p.length;)p.length&&!this.noWrap&&0<e&&(l.push(b.textContent||""),b.textContent=p.join(" ").replace(/- /g,"-")),this.truncate(b,void 0,p,e===0&&t||0,f,(i,a)=>p.slice(0,a).join(" ").replace(/- /g,"-")),t=d.actualWidth,e++;h.forEach(i=>{o.insertBefore(i,b)}),l.forEach(i=>{o.insertBefore(q.createTextNode(i),b),i=q.createElementNS(K,"tspan"),i.textContent="",U(i,{dy:c,x:y}),o.insertBefore(i,b)})}},v=b=>{[].slice.call(b.childNodes).forEach(o=>{o.nodeType===Y.Node.TEXT_NODE?C(o,b):(o.className.baseVal.indexOf("highcharts-br")!==-1&&(d.actualWidth=0),v(o))})};v(d.element)}}getLineHeight(d){return d=d.nodeType===Y.Node.TEXT_NODE?d.parentElement:d,this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(d||this.svgElement.element).h}modifyTree(d){const y=(k,f)=>{const{attributes:C={},children:v,style:b={},tagName:o}=k,l=this.renderer.styledMode;o==="b"||o==="strong"?l?C.class="highcharts-strong":b.fontWeight="bold":(o==="i"||o==="em")&&(l?C.class="highcharts-emphasized":b.fontStyle="italic"),b&&b.color&&(b.fill=b.color),o==="br"?(C.class="highcharts-br",k.textContent="",(f=d[f+1])&&f.textContent&&(f.textContent=f.textContent.replace(/^ +/gm,""))):o==="a"&&v&&v.some(p=>p.tagName==="#text")&&(k.children=[{children:v,tagName:"tspan"}]),o!=="#text"&&o!=="a"&&(k.tagName="tspan"),O(k,{attributes:C,style:b}),v&&v.filter(p=>p.tagName!=="#text").forEach(y)};d.forEach(y),N(this.svgElement,"afterModifyTree",{nodes:d})}truncate(d,y,k,f,C,v){const b=this.svgElement,{rotation:o}=b,l=[];let p=k?1:0,h=(y||k||"").length,c=h,e,t;const i=function(a,u){if(a=u||a,(u=d.parentNode)&&typeof l[a]>"u"&&u.getSubStringLength)try{l[a]=f+u.getSubStringLength(0,k?a+1:a)}catch{}return l[a]};if(b.rotation=0,t=i(d.textContent.length),f+t>C){for(;p<=h;)c=Math.ceil((p+h)/2),k&&(e=v(k,c)),t=i(c,e&&e.length-1),p===h?p=h+1:t>C?h=c-1:p=c;h===0?d.textContent="":y&&h===y.length-1||(d.textContent=e||v(y||k,c))}k&&k.splice(0,c),b.actualWidth=t,b.rotation=o}unescapeEntities(d,y){return x(this.renderer.escapes,function(k,f){y&&y.indexOf(k)!==-1||(d=d.toString().replace(new RegExp(k,"g"),f))}),d}}return L}),st(P,"Core/Renderer/SVG/SVGRenderer.js",[P["Core/Renderer/HTML/AST.js"],P["Core/Color/Color.js"],P["Core/Globals.js"],P["Core/Renderer/RendererRegistry.js"],P["Core/Renderer/SVG/SVGElement.js"],P["Core/Renderer/SVG/SVGLabel.js"],P["Core/Renderer/SVG/Symbols.js"],P["Core/Renderer/SVG/TextBuilder.js"],P["Core/Utilities.js"]],function(B,A,F,q,K,Y,U,O,N){const{charts:R,deg2rad:x,doc:w,isFirefox:L,isMS:D,isWebKit:d,noop:y,SVG_NS:k,symbolSizes:f,win:C}=F,{addEvent:v,attr:b,createElement:o,css:l,defined:p,destroyObjectProperties:h,extend:c,isArray:e,isNumber:t,isObject:i,isString:a,merge:u,pick:_,pInt:r,uniqueKey:S}=N;let G;class Z{constructor(j,s,T,z,I,V,n){this.width=this.url=this.style=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(j,s,T,z,I,V,n)}init(j,s,T,z,I,V,n){const g=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),m=g.element;n||g.css(this.getStyle(z)),j.appendChild(m),b(j,"dir","ltr"),j.innerHTML.indexOf("xmlns")===-1&&b(m,"xmlns",this.SVG_NS),this.box=m,this.boxWrapper=g,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(w.createTextNode("Created with Highcharts 11.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=V,this.forExport=I,this.styledMode=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=g.getStyle("font-size"),this.setSize(s,T,!1);let H;L&&j.getBoundingClientRect&&(s=function(){l(j,{left:0,top:0}),H=j.getBoundingClientRect(),l(j,{left:Math.ceil(H.left)-H.left+"px",top:Math.ceil(H.top)-H.top+"px"})},s(),this.unSubPixelFix=v(C,"resize",s))}definition(j){return new B([j]).addToDOM(this.defs.element)}getReferenceURL(){if((L||d)&&w.getElementsByTagName("base").length){if(!p(G)){var j=S();j=new B([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:j},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${j})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(w.body),l(j,{position:"fixed",top:0,left:0,zIndex:9e5});const s=w.elementFromPoint(6,6);G=(s&&s.id)==="hitme",w.body.removeChild(j)}if(G)return C.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(j){return this.style=c({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},j)}setStyle(j){this.boxWrapper.css(this.getStyle(j))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){const j=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),h(this.gradients||{}),this.gradients=null,this.defs=j.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null}createElement(j){const s=new this.Element;return s.init(this,j),s}getRadialAttr(j,s){return{cx:j[0]-j[2]/2+(s.cx||0)*j[2],cy:j[1]-j[2]/2+(s.cy||0)*j[2],r:(s.r||0)*j[2]}}shadowDefinition(j){const s=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(j).map(z=>j[z])].join("-").replace(/[^a-z0-9\-]/g,""),T=u({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},j);return this.defs.element.querySelector(`#${s}`)||this.definition({tagName:"filter",attributes:{id:s},children:[{tagName:"feDropShadow",attributes:{dx:T.offsetX,dy:T.offsetY,"flood-color":T.color,"flood-opacity":Math.min(5*T.opacity,1),stdDeviation:T.width/2}}]}),s}buildText(j){new O(j).buildSVG()}getContrast(j){return j=A.parse(j).rgba.map(s=>(s/=255,.03928>=s?s/12.92:Math.pow((s+.055)/1.055,2.4))),j=.2126*j[0]+.7152*j[1]+.0722*j[2],1.05/(j+.05)>(j+.05)/.05?"#FFFFFF":"#000000"}button(j,s,T,z,I={},V,n,g,m,H){const W=this.label(j,s,T,m,void 0,void 0,H,void 0,"button"),$=this.styledMode;j=I.states||{};let et=0;I=u(I),delete I.states;const nt=u({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},I.style);delete I.style;let at=B.filterUserAttributes(I);W.attr(u({padding:8,r:2},at));let ht,pt,E;return $||(at=u({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},at),V=u(at,{fill:"#e6e6e6"},B.filterUserAttributes(V||j.hover||{})),ht=V.style,delete V.style,n=u(at,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},B.filterUserAttributes(n||j.select||{})),pt=n.style,delete n.style,g=u(at,{style:{color:"#cccccc"}},B.filterUserAttributes(g||j.disabled||{})),E=g.style,delete g.style),v(W.element,D?"mouseover":"mouseenter",function(){et!==3&&W.setState(1)}),v(W.element,D?"mouseout":"mouseleave",function(){et!==3&&W.setState(et)}),W.setState=function(M){M!==1&&(W.state=et=M),W.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][M||0]),$||(W.attr([at,V,n,g][M||0]),M=[nt,ht,pt,E][M||0],i(M)&&W.css(M))},$||(W.attr(at).css(c({cursor:"default"},nt)),H&&W.text.css({pointerEvents:"none"})),W.on("touchstart",M=>M.stopPropagation()).on("click",function(M){et!==3&&z.call(W,M)})}crispLine(j,s,T="round"){const z=j[0],I=j[1];return p(z[1])&&z[1]===I[1]&&(z[1]=I[1]=Math[T](z[1])-s%2/2),p(z[2])&&z[2]===I[2]&&(z[2]=I[2]=Math[T](z[2])+s%2/2),j}path(j){const s=this.styledMode?{}:{fill:"none"};return e(j)?s.d=j:i(j)&&c(s,j),this.createElement("path").attr(s)}circle(j,s,T){return j=i(j)?j:typeof j>"u"?{}:{x:j,y:s,r:T},s=this.createElement("circle"),s.xSetter=s.ySetter=function(z,I,V){V.setAttribute("c"+I,z)},s.attr(j)}arc(j,s,T,z,I,V){return i(j)?(z=j,s=z.y,T=z.r,j=z.x):z={innerR:z,start:I,end:V},j=this.symbol("arc",j,s,T,T,z),j.r=T,j}rect(j,s,T,z,I,V){j=i(j)?j:typeof j>"u"?{}:{x:j,y:s,r:I,width:Math.max(T||0,0),height:Math.max(z||0,0)};const n=this.createElement("rect");return this.styledMode||(typeof V<"u"&&(j["stroke-width"]=V,c(j,n.crisp(j))),j.fill="none"),n.rSetter=function(g,m,H){n.r=g,b(H,{rx:g,ry:g})},n.rGetter=function(){return n.r||0},n.attr(j)}roundedRect(j){return this.symbol("roundedRect").attr(j)}setSize(j,s,T){this.width=j,this.height=s,this.boxWrapper.animate({width:j,height:s},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:_(T,!0)?void 0:0}),this.alignElements()}g(j){const s=this.createElement("g");return j?s.attr({class:"highcharts-"+j}):s}image(j,s,T,z,I,V){const n={preserveAspectRatio:"none"};t(s)&&(n.x=s),t(T)&&(n.y=T),t(z)&&(n.width=z),t(I)&&(n.height=I);const g=this.createElement("image").attr(n);return s=function(m){g.attr({href:j}),V.call(g,m)},V?(g.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),T=new C.Image,v(T,"load",s),T.src=j,T.complete&&s({})):g.attr({href:j}),g}symbol(j,s,T,z,I,V){const n=this,g=/^url\((.*?)\)$/,m=g.test(j),H=!m&&(this.symbols[j]?j:"circle"),W=H&&this.symbols[H];let $,et,nt,at;if(W)typeof s=="number"&&(et=W.call(this.symbols,Math.round(s||0),Math.round(T||0),z||0,I||0,V)),$=this.path(et),n.styledMode||$.attr("fill","none"),c($,{symbolName:H||void 0,x:s,y:T,width:z,height:I}),V&&c($,V);else if(m){nt=j.match(g)[1];const ht=$=this.image(nt);ht.imgwidth=_(V&&V.width,f[nt]&&f[nt].width),ht.imgheight=_(V&&V.height,f[nt]&&f[nt].height),at=pt=>pt.attr({width:pt.width,height:pt.height}),["width","height"].forEach(function(pt){ht[pt+"Setter"]=function(E,M){this[M]=E;const{alignByTranslate:J,element:X,width:tt,height:dt,imgwidth:ct,imgheight:xt}=this;if(E=this["img"+M],p(E)){let vt=1;V&&V.backgroundSize==="within"&&tt&&dt?(vt=Math.min(tt/ct,dt/xt),b(X,{width:Math.round(ct*vt),height:Math.round(xt*vt)})):X&&X.setAttribute(M,E),J||this.translate(((tt||0)-ct*vt)/2,((dt||0)-xt*vt)/2)}}}),p(s)&&ht.attr({x:s,y:T}),ht.isImg=!0,p(ht.imgwidth)&&p(ht.imgheight)?at(ht):(ht.attr({width:0,height:0}),o("img",{onload:function(){const pt=R[n.chartIndex];this.width===0&&(l(this,{position:"absolute",top:"-999em"}),w.body.appendChild(this)),f[nt]={width:this.width,height:this.height},ht.imgwidth=this.width,ht.imgheight=this.height,ht.element&&at(ht),this.parentNode&&this.parentNode.removeChild(this),n.imgCount--,!n.imgCount&&pt&&!pt.hasLoaded&&pt.onload()},src:nt}),this.imgCount++)}return $}clipRect(j,s,T,z){const I=S()+"-",V=this.createElement("clipPath").attr({id:I}).add(this.defs);return j=this.rect(j,s,T,z,0).add(V),j.id=I,j.clipPath=V,j.count=0,j}text(j,s,T,z){const I={};return z&&(this.allowHTML||!this.forExport)?this.html(j,s,T):(I.x=Math.round(s||0),T&&(I.y=Math.round(T)),p(j)&&(I.text=j),j=this.createElement("text").attr(I),(!z||this.forExport&&!this.allowHTML)&&(j.xSetter=function(V,n,g){const m=g.getElementsByTagName("tspan"),H=g.getAttribute(n);for(let W=0,$;W<m.length;W++)$=m[W],$.getAttribute(n)===H&&$.setAttribute(n,V);g.setAttribute(n,V)}),j)}fontMetrics(j){j=r(K.prototype.getStyle.call(j,"font-size")||0);const s=24>j?j+3:Math.round(1.2*j);return{h:s,b:Math.round(.8*s),f:j}}rotCorr(j,s,T){let z=j;return s&&T&&(z=Math.max(z*Math.cos(s*x),4)),{x:-j/3*Math.sin(s*x),y:z}}pathToSegments(j){const s=[],T=[],z={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let I=0;I<j.length;I++)a(T[0])&&t(j[I])&&T.length===z[T[0].toUpperCase()]&&j.splice(I,0,T[0].replace("M","L").replace("m","l")),typeof j[I]=="string"&&(T.length&&s.push(T.slice(0)),T.length=0),T.push(j[I]);return s.push(T.slice(0)),s}label(j,s,T,z,I,V,n,g,m){return new Y(this,j,s,T,z,I,V,n,g,m)}alignElements(){this.alignedObjects.forEach(j=>j.align())}}return c(Z.prototype,{Element:K,SVG_NS:k,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:U,draw:y}),q.registerRendererType("svg",Z,!0),Z}),st(P,"Core/Renderer/HTML/HTMLElement.js",[P["Core/Globals.js"],P["Core/Renderer/SVG/SVGElement.js"],P["Core/Utilities.js"]],function(B,A,F){const{isFirefox:q,isMS:K,isWebKit:Y,win:U}=B,{css:O,defined:N,extend:R,pick:x,pInt:w}=F,L=[];class D extends A{static compose(y){if(F.pushUnique(L,y)){const k=D.prototype,f=y.prototype;f.getSpanCorrection=k.getSpanCorrection,f.htmlCss=k.htmlCss,f.htmlGetBBox=k.htmlGetBBox,f.htmlUpdateTransform=k.htmlUpdateTransform,f.setSpanRotation=k.setSpanRotation}return y}getSpanCorrection(y,k,f){this.xCorr=-y*f,this.yCorr=-k}htmlCss(y){const k=this.element.tagName==="SPAN"&&y&&"width"in y,f=x(k&&y.width,void 0);let C;return k&&(delete y.width,this.textWidth=f,C=!0),y&&y.textOverflow==="ellipsis"&&(y.whiteSpace="nowrap",y.overflow="hidden"),this.styles=R(this.styles,y),O(this.element,y),C&&this.htmlUpdateTransform(),this}htmlGetBBox(){const y=this.element;return{x:y.offsetLeft,y:y.offsetTop,width:y.offsetWidth,height:y.offsetHeight}}htmlUpdateTransform(){if(this.added){var y=this.renderer,k=this.element,f=this.x||0,C=this.y||0,v=this.textAlign||"left",b={left:0,center:.5,right:1}[v],o=this.styles,l=o&&o.whiteSpace;if(O(k,{marginLeft:this.translateX||0,marginTop:this.translateY||0}),k.tagName==="SPAN"){o=this.rotation;const h=this.textWidth&&w(this.textWidth),c=[o,v,k.innerHTML,this.textWidth,this.textAlign].join();let e=!1;if(h!==this.oldTextWidth){if(this.textPxLength)var p=this.textPxLength;else O(k,{width:"",whiteSpace:l||"nowrap"}),p=k.offsetWidth;(h>this.oldTextWidth||p>h)&&(/[ \-]/.test(k.textContent||k.innerText)||k.style.textOverflow==="ellipsis")&&(O(k,{width:p>h||o?h+"px":"auto",display:"block",whiteSpace:l||"normal"}),this.oldTextWidth=h,e=!0)}this.hasBoxWidthChanged=e,c!==this.cTT&&(y=y.fontMetrics(k).b,!N(o)||o===(this.oldRotation||0)&&v===this.oldAlign||this.setSpanRotation(o,b,y),this.getSpanCorrection(!N(o)&&this.textPxLength||k.offsetWidth,y,b,o,v)),O(k,{left:f+(this.xCorr||0)+"px",top:C+(this.yCorr||0)+"px"}),this.cTT=c,this.oldRotation=o,this.oldAlign=v}}else this.alignOnAdd=!0}setSpanRotation(y,k,f){const C={},v=K&&!/Edge/.test(U.navigator.userAgent)?"-ms-transform":Y?"-webkit-transform":q?"MozTransform":U.opera?"-o-transform":void 0;v&&(C[v]=C.transform="rotate("+y+"deg)",C[v+(q?"Origin":"-origin")]=C.transformOrigin=100*k+"% "+f+"px",O(this.element,C))}}return D}),st(P,"Core/Renderer/HTML/HTMLRenderer.js",[P["Core/Renderer/HTML/AST.js"],P["Core/Renderer/SVG/SVGElement.js"],P["Core/Renderer/SVG/SVGRenderer.js"],P["Core/Utilities.js"]],function(B,A,F,q){const{attr:K,createElement:Y,extend:U,pick:O}=q,N=[];class R extends F{static compose(w){return q.pushUnique(N,w)&&(w.prototype.html=R.prototype.html),w}html(w,L,D){const d=this.createElement("span"),y=d.element,k=d.renderer,f=function(C,v){["opacity","visibility"].forEach(function(b){C[b+"Setter"]=function(o,l,p){const h=C.div?C.div.style:v;A.prototype[b+"Setter"].call(this,o,l,p),h&&(h[l]=o)}}),C.addedSetters=!0};return d.textSetter=function(C){C!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,B.setElementHTML(this.element,O(C,"")),this.textStr=C,d.doTransform=!0)},f(d,d.element.style),d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=function(C,v){v==="align"?d.alignValue=d.textAlign=C:d[v]=C,d.doTransform=!0},d.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},d.attr({text:w,x:Math.round(L),y:Math.round(D)}).css({position:"absolute"}),k.styledMode||d.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),y.style.whiteSpace="nowrap",d.css=d.htmlCss,d.add=function(C){const v=k.box.parentNode,b=[];let o;if(this.parentGroup=C){if(o=C.div,!o){for(;C;)b.push(C),C=C.parentGroup;b.reverse().forEach(function(l){function p(t,i){l[i]=t,i==="translateX"?e.left=t+"px":e.top=t+"px",l.doTransform=!0}const h=K(l.element,"class"),c=l.styles||{};o=l.div=l.div||Y("div",h?{className:h}:void 0,{position:"absolute",left:(l.translateX||0)+"px",top:(l.translateY||0)+"px",display:l.display,opacity:l.opacity,visibility:l.visibility},o||v);const e=o.style;U(l,{classSetter:function(t){return function(i){this.element.setAttribute("class",i),t.className=i}}(o),css:function(t){return d.css.call(l,t),["cursor","pointerEvents"].forEach(i=>{t[i]&&(e[i]=t[i])}),l},on:function(){return b[0].div&&d.on.apply({element:b[0].div,onEvents:l.onEvents},arguments),l},translateXSetter:p,translateYSetter:p}),l.addedSetters||f(l),l.css(c)})}}else o=v;return o.appendChild(y),d.added=!0,d.alignOnAdd&&d.htmlUpdateTransform(),d},d}}return R}),st(P,"Core/Axis/AxisDefaults.js",[],function(){var B;return function(A){A.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},A.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){const{numberFormatter:F}=this.axis.chart;return F(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},A.defaultLeftAxisOptions={title:{rotation:270}},A.defaultRightAxisOptions={title:{rotation:90}},A.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},A.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}}}(B||(B={})),B}),st(P,"Core/Foundation.js",[P["Core/Utilities.js"]],function(B){const{addEvent:A,isFunction:F,objectEach:q,removeEvent:K}=B;var Y;return function(U){U.registerEventOptions=function(O,N){O.eventOptions=O.eventOptions||{},q(N.events,function(R,x){O.eventOptions[x]!==R&&(O.eventOptions[x]&&(K(O,x,O.eventOptions[x]),delete O.eventOptions[x]),F(R)&&(O.eventOptions[x]=R,A(O,x,R,{order:0})))})}}(Y||(Y={})),Y}),st(P,"Core/Axis/Tick.js",[P["Core/Templating.js"],P["Core/Globals.js"],P["Core/Utilities.js"]],function(B,A,F){const{deg2rad:q}=A,{clamp:K,correctFloat:Y,defined:U,destroyObjectProperties:O,extend:N,fireEvent:R,isNumber:x,merge:w,objectEach:L,pick:D}=F;class d{constructor(k,f,C,v,b){this.isNewLabel=this.isNew=!0,this.axis=k,this.pos=f,this.type=C||"",this.parameters=b||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,R(this,"init"),C||v||this.addLabel()}addLabel(){const k=this,f=k.axis;var C=f.options;const v=f.chart;var b=f.categories;const o=f.logarithmic,l=f.names,p=k.pos,h=D(k.options&&k.options.labels,C.labels);var c=f.tickPositions;const e=p===c[0],t=p===c[c.length-1],i=(!h.step||h.step===1)&&f.tickInterval===1;c=c.info;let a=k.label,u,_,r;b=this.parameters.category||(b?D(b[p],l[p],p):p),o&&x(b)&&(b=Y(o.lin2log(b))),f.dateTime&&(c?(_=v.time.resolveDTLFormat(C.dateTimeLabelFormats[!C.grid&&c.higherRanks[p]||c.unitName]),u=_.main):x(b)&&(u=f.dateTime.getXDateFormat(b,C.dateTimeLabelFormats||{}))),k.isFirst=e,k.isLast=t;const S={axis:f,chart:v,dateTimeLabelFormat:u,isFirst:e,isLast:t,pos:p,tick:k,tickPositionInfo:c,value:b};R(this,"labelFormat",S);const G=rt=>h.formatter?h.formatter.call(rt,rt):h.format?(rt.text=f.defaultLabelFormatter.call(rt,rt),B.format(h.format,rt,v)):f.defaultLabelFormatter.call(rt,rt);C=G.call(S,S);const Z=_&&_.list;k.shortenLabel=Z?function(){for(r=0;r<Z.length;r++)if(N(S,{dateTimeLabelFormat:Z[r]}),a.attr({text:G.call(S,S)}),a.getBBox().width<f.getSlotWidth(k)-2*h.padding)return;a.attr({text:""})}:void 0,i&&f._addedPlotLB&&k.moveLabel(C,h),U(a)||k.movedLabel?a&&a.textStr!==C&&!i&&(!a.textWidth||h.style.width||a.styles.width||a.css({width:null}),a.attr({text:C}),a.textPxLength=a.getBBox().width):(k.label=a=k.createLabel({x:0,y:0},C,h),k.rotation=0)}createLabel(k,f,C){const v=this.axis,b=v.chart;return(k=U(f)&&C.enabled?b.renderer.text(f,k.x,k.y,C.useHTML).add(v.labelGroup):null)&&(b.styledMode||k.css(w(C.style)),k.textPxLength=k.getBBox().width),k}destroy(){O(this,this.axis)}getPosition(k,f,C,v){const b=this.axis,o=b.chart,l=v&&o.oldChartHeight||o.chartHeight;return k={x:k?Y(b.translate(f+C,void 0,void 0,v)+b.transB):b.left+b.offset+(b.opposite?(v&&o.oldChartWidth||o.chartWidth)-b.right-b.left:0),y:k?l-b.bottom+b.offset-(b.opposite?b.height:0):Y(l-b.translate(f+C,void 0,void 0,v)-b.transB)},k.y=K(k.y,-1e5,1e5),R(this,"afterGetPosition",{pos:k}),k}getLabelPosition(k,f,C,v,b,o,l,p){const h=this.axis,c=h.transA,e=h.isLinked&&h.linkedParent?h.linkedParent.reversed:h.reversed,t=h.staggerLines,i=h.tickRotCorr||{x:0,y:0},a=v||h.reserveSpaceDefault?0:-h.labelOffset*(h.labelAlign==="center"?.5:1),u=b.distance,_={};return C=h.side===0?C.rotation?-u:-C.getBBox().height:h.side===2?i.y+u:Math.cos(C.rotation*q)*(i.y-C.getBBox(!1,0).height/2),U(b.y)&&(C=h.side===0&&h.horiz?b.y+C:b.y),k=k+D(b.x,[0,1,0,-1][h.side]*u)+a+i.x-(o&&v?o*c*(e?-1:1):0),f=f+C-(o&&!v?o*c*(e?1:-1):0),t&&(v=l/(p||1)%t,h.opposite&&(v=t-v-1),f+=h.labelOffset/t*v),_.x=k,_.y=Math.round(f),R(this,"afterGetLabelPosition",{pos:_,tickmarkOffset:o,index:l}),_}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(k,f,C,v,b,o){return o.crispLine([["M",k,f],["L",k+(b?0:-C),f+(b?C:0)]],v)}handleOverflow(k){const f=this.axis,C=f.options.labels,v=k.x;var b=f.chart.chartWidth,o=f.chart.spacing;const l=D(f.labelLeft,Math.min(f.pos,o[3]));o=D(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,b-o[1]));const p=this.label,h=this.rotation,c={left:0,center:.5,right:1}[f.labelAlign||p.attr("align")],e=p.getBBox().width,t=f.getSlotWidth(this),i={};let a=t,u=1,_;h||C.overflow!=="justify"?0>h&&v-c*e<l?_=Math.round(v/Math.cos(h*q)-l):0<h&&v+c*e>o&&(_=Math.round((b-v)/Math.cos(h*q))):(b=v+(1-c)*e,v-c*e<l?a=k.x+a*(1-c)-l:b>o&&(a=o-k.x+a*c,u=-1),a=Math.min(t,a),a<t&&f.labelAlign==="center"&&(k.x+=u*(t-a-c*(t-Math.min(e,a)))),(e>a||f.autoRotation&&(p.styles||{}).width)&&(_=a)),_&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(_)+"px",(C.style||{}).textOverflow||(i.textOverflow="ellipsis"),p.css(i)))}moveLabel(k,f){const C=this;var v=C.label;const b=C.axis;let o=!1;v&&v.textStr===k?(C.movedLabel=v,o=!0,delete C.label):L(b.ticks,function(l){o||l.isNew||l===C||!l.label||l.label.textStr!==k||(C.movedLabel=l.label,o=!0,l.labelPos=C.movedLabel.xy,delete l.label)}),o||!C.labelPos&&!v||(v=C.labelPos||v.xy,C.movedLabel=C.createLabel(v,k,f),C.movedLabel&&C.movedLabel.attr({opacity:0}))}render(k,f,C){var v=this.axis,b=v.horiz,o=this.pos,l=D(this.tickmarkOffset,v.tickmarkOffset);o=this.getPosition(b,o,l,f),l=o.x;const p=o.y;v=b&&l===v.pos+v.len||!b&&p===v.pos?-1:1,b=D(C,this.label&&this.label.newOpacity,1),C=D(C,1),this.isActive=!0,this.renderGridLine(f,C,v),this.renderMark(o,C,v),this.renderLabel(o,f,b,k),this.isNew=!1,R(this,"afterRender")}renderGridLine(k,f,C){const v=this.axis,b=v.options,o={},l=this.pos,p=this.type,h=D(this.tickmarkOffset,v.tickmarkOffset),c=v.chart.renderer;let e=this.gridLine,t=b.gridLineWidth,i=b.gridLineColor,a=b.gridLineDashStyle;this.type==="minor"&&(t=b.minorGridLineWidth,i=b.minorGridLineColor,a=b.minorGridLineDashStyle),e||(v.chart.styledMode||(o.stroke=i,o["stroke-width"]=t||0,o.dashstyle=a),p||(o.zIndex=1),k&&(f=0),this.gridLine=e=c.path().attr(o).addClass("highcharts-"+(p?p+"-":"")+"grid-line").add(v.gridGroup)),e&&(C=v.getPlotLinePath({value:l+h,lineWidth:e.strokeWidth()*C,force:"pass",old:k,acrossPanes:!1}))&&e[k||this.isNew?"attr":"animate"]({d:C,opacity:f})}renderMark(k,f,C){const v=this.axis;var b=v.options;const o=v.chart.renderer,l=this.type,p=v.tickSize(l?l+"Tick":"tick"),h=k.x;k=k.y;const c=D(b[l!=="minor"?"tickWidth":"minorTickWidth"],!l&&v.isXAxis?1:0);b=b[l!=="minor"?"tickColor":"minorTickColor"];let e=this.mark;const t=!e;p&&(v.opposite&&(p[0]=-p[0]),e||(this.mark=e=o.path().addClass("highcharts-"+(l?l+"-":"")+"tick").add(v.axisGroup),v.chart.styledMode||e.attr({stroke:b,"stroke-width":c})),e[t?"attr":"animate"]({d:this.getMarkPath(h,k,p[0],e.strokeWidth()*C,v.horiz,o),opacity:f}))}renderLabel(k,f,C,v){var b=this.axis;const o=b.horiz,l=b.options,p=this.label,h=l.labels,c=h.step;b=D(this.tickmarkOffset,b.tickmarkOffset);const e=k.x;k=k.y;let t=!0;p&&x(e)&&(p.xy=k=this.getLabelPosition(e,k,p,o,h,b,v,c),this.isFirst&&!this.isLast&&!l.showFirstLabel||this.isLast&&!this.isFirst&&!l.showLastLabel?t=!1:!o||h.step||h.rotation||f||C===0||this.handleOverflow(k),c&&v%c&&(t=!1),t&&x(k.y)?(k.opacity=C,p[this.isNewLabel?"attr":"animate"](k).show(!0),this.isNewLabel=!1):(p.hide(),this.isNewLabel=!0))}replaceMovedLabel(){const k=this.label,f=this.axis;k&&!this.isNew&&(k.animate({opacity:0},void 0,k.destroy),delete this.label),f.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}return d}),st(P,"Core/Axis/Axis.js",[P["Core/Animation/AnimationUtilities.js"],P["Core/Axis/AxisDefaults.js"],P["Core/Color/Color.js"],P["Core/Defaults.js"],P["Core/Foundation.js"],P["Core/Globals.js"],P["Core/Axis/Tick.js"],P["Core/Utilities.js"]],function(B,A,F,q,K,Y,U,O){const{animObject:N}=B,{defaultOptions:R}=q,{registerEventOptions:x}=K,{deg2rad:w}=Y,{arrayMax:L,arrayMin:D,clamp:d,correctFloat:y,defined:k,destroyObjectProperties:f,erase:C,error:v,extend:b,fireEvent:o,getClosestDistance:l,insertItem:p,isArray:h,isNumber:c,isString:e,merge:t,normalizeTickInterval:i,objectEach:a,pick:u,relativeLength:_,removeEvent:r,splat:S,syncTimeout:G}=O,Z=(j,s)=>i(s,void 0,void 0,u(j.options.allowDecimals,.5>s||j.tickAmount!==void 0),!!j.tickAmount);class rt{constructor(s,T,z){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.index=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(s,T,z)}init(s,T,z=this.coll){const I=z==="xAxis";this.chart=s,this.horiz=this.isZAxis||(s.inverted?!I:I),this.isXAxis=I,this.coll=z,o(this,"init",{userOptions:T}),this.opposite=u(T.opposite,this.opposite),this.side=u(T.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(T),z=this.options;const V=z.labels,n=z.type;this.userOptions=T,this.minPixelPadding=0,this.reversed=u(z.reversed,this.reversed),this.visible=z.visible,this.zoomEnabled=z.zoomEnabled,this.hasNames=n==="category"||z.categories===!0,this.categories=z.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=k(z.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=z.minRange||z.maxZoom,this.range=z.range,this.offset=z.offset||0,this.min=this.max=null,T=u(z.crosshair,S(s.options.tooltip.crosshairs)[I?0:1]),this.crosshair=T===!0?{}:T,s.axes.indexOf(this)===-1&&(I?s.axes.splice(s.xAxis.length,0,this):s.axes.push(this),p(this,s[this.coll])),s.orderItems(this.coll),this.series=this.series||[],s.inverted&&!this.isZAxis&&I&&typeof this.reversed>"u"&&(this.reversed=!0),this.labelRotation=c(V.rotation)?V.rotation:void 0,x(this,z),o(this,"afterInit")}setOptions(s){this.options=t(A.defaultXAxisOptions,this.coll==="yAxis"&&A.defaultYAxisOptions,[A.defaultTopAxisOptions,A.defaultRightAxisOptions,A.defaultBottomAxisOptions,A.defaultLeftAxisOptions][this.side],t(R[this.coll],s)),o(this,"afterSetOptions",{userOptions:s})}defaultLabelFormatter(s){var T=this.axis;({numberFormatter:s}=this.chart);const z=c(this.value)?this.value:NaN,I=T.chart.time,V=this.dateTimeLabelFormat;var n=R.lang;const g=n.numericSymbols;n=n.numericSymbolMagnitude||1e3;const m=T.logarithmic?Math.abs(z):T.tickInterval;let H=g&&g.length,W;if(T.categories)W=`${this.value}`;else if(V)W=I.dateFormat(V,z);else if(H&&1e3<=m)for(;H--&&typeof W>"u";)T=Math.pow(n,H+1),m>=T&&10*z%T===0&&g[H]!==null&&z!==0&&(W=s(z/T,-1)+g[H]);return typeof W>"u"&&(W=1e4<=Math.abs(z)?s(z,-1):s(z,-1,void 0,"")),W}getSeriesExtremes(){const s=this,T=s.chart;let z;o(this,"getSeriesExtremes",null,function(){s.hasVisibleSeries=!1,s.dataMin=s.dataMax=s.threshold=null,s.softThreshold=!s.isXAxis,s.series.forEach(function(I){if(I.visible||!T.options.chart.ignoreHiddenSeries){var V=I.options;let n=V.threshold,g,m;s.hasVisibleSeries=!0,s.positiveValuesOnly&&0>=n&&(n=null),s.isXAxis?(V=I.xData)&&V.length&&(V=s.logarithmic?V.filter(H=>0<H):V,z=I.getXExtremes(V),g=z.min,m=z.max,c(g)||g instanceof Date||(V=V.filter(c),z=I.getXExtremes(V),g=z.min,m=z.max),V.length&&(s.dataMin=Math.min(u(s.dataMin,g),g),s.dataMax=Math.max(u(s.dataMax,m),m))):(I=I.applyExtremes(),c(I.dataMin)&&(g=I.dataMin,s.dataMin=Math.min(u(s.dataMin,g),g)),c(I.dataMax)&&(m=I.dataMax,s.dataMax=Math.max(u(s.dataMax,m),m)),k(n)&&(s.threshold=n),(!V.softThreshold||s.positiveValuesOnly)&&(s.softThreshold=!1))}})}),o(this,"afterGetSeriesExtremes")}translate(s,T,z,I,V,n){const g=this.linkedParent||this,m=I&&g.old?g.old.min:g.min;if(!c(m))return NaN;const H=g.minPixelPadding;V=(g.isOrdinal||g.brokenAxis&&g.brokenAxis.hasBreaks||g.logarithmic&&V)&&g.lin2val;let W=1,$=0;return I=I&&g.old?g.old.transA:g.transA,I||(I=g.transA),z&&(W*=-1,$=g.len),g.reversed&&(W*=-1,$-=W*(g.sector||g.len)),T?(n=(s*W+$-H)/I+m,V&&(n=g.lin2val(n))):(V&&(s=g.val2lin(s)),s=W*(s-m)*I,n=(g.isRadial?s:y(s))+$+W*H+(c(n)?I*n:0)),n}toPixels(s,T){return this.translate(s,!1,!this.horiz,void 0,!0)+(T?0:this.pos)}toValue(s,T){return this.translate(s-(T?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(s){function T(X,tt,dt){return at!=="pass"&&(X<tt||X>dt)&&(at?X=d(X,tt,dt):J=!0),X}const z=this,I=z.chart,V=z.left,n=z.top,g=s.old,m=s.value,H=s.lineWidth,W=g&&I.oldChartHeight||I.chartHeight,$=g&&I.oldChartWidth||I.chartWidth,et=z.transB;let nt=s.translatedValue,at=s.force,ht,pt,E,M,J;return s={value:m,lineWidth:H,old:g,force:at,acrossPanes:s.acrossPanes,translatedValue:nt},o(this,"getPlotLinePath",s,function(X){nt=u(nt,z.translate(m,void 0,void 0,g)),nt=d(nt,-1e5,1e5),ht=E=Math.round(nt+et),pt=M=Math.round(W-nt-et),c(nt)?z.horiz?(pt=n,M=W-z.bottom,ht=E=T(ht,V,V+z.width)):(ht=V,E=$-z.right,pt=M=T(pt,n,n+z.height)):(J=!0,at=!1),X.path=J&&!at?null:I.renderer.crispLine([["M",ht,pt],["L",E,M]],H||1)}),s.path}getLinearTickPositions(s,T,z){const I=y(Math.floor(T/s)*s);z=y(Math.ceil(z/s)*s);const V=[];let n,g;if(y(I+s)===I&&(g=20),this.single)return[T];for(T=I;T<=z&&(V.push(T),T=y(T+s,g),T!==n);)n=T;return V}getMinorTickInterval(){const s=this.options;return s.minorTicks===!0?u(s.minorTickInterval,"auto"):s.minorTicks===!1?null:s.minorTickInterval}getMinorTickPositions(){var s=this.options;const T=this.tickPositions,z=this.minorTickInterval;var I=this.pointRangePadding||0;const V=this.min-I;I=this.max+I;const n=I-V;let g=[];if(n&&n/z<this.len/3){const m=this.logarithmic;if(m)this.paddedTicks.forEach(function(H,W,$){W&&g.push.apply(g,m.getLogTickPositions(z,$[W-1],$[W],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")g=g.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(z),V,I,s.startOfWeek));else for(s=V+(T[0]-V)%z;s<=I&&s!==g[0];s+=z)g.push(s)}return g.length!==0&&this.trimTicks(g),g}adjustForMinRange(){const s=this.options,T=this.logarithmic;let z=this.min;var I=this.max;let V,n;if(this.isXAxis&&typeof this.minRange>"u"&&!T)if(k(s.min)||k(s.max)||k(s.floor)||k(s.ceiling))this.minRange=null;else{var g=l(this.series.map(m=>{var H;return(m.xIncrement?(H=m.xData)===null||H===void 0?void 0:H.slice(0,2):m.xData)||[]}))||0;this.minRange=Math.min(5*g,this.dataMax-this.dataMin)}I-z<this.minRange&&(g=this.dataMax-this.dataMin>=this.minRange,n=this.minRange,I=(n-I+z)/2,V=[z-I,u(s.min,z-I)],g&&(V[2]=T?T.log2lin(this.dataMin):this.dataMin),z=L(V),I=[z+n,u(s.max,z+n)],g&&(I[2]=T?T.log2lin(this.dataMax):this.dataMax),I=D(I),I-z<n&&(V[0]=I-n,V[1]=u(s.min,I-n),z=L(V))),this.min=z,this.max=I}getClosest(){let s,T;if(this.categories)T=1;else{const z=[];this.series.forEach(function(I){var V;const n=I.closestPointRange,g=I.visible||!I.chart.options.chart.ignoreHiddenSeries;((V=I.xData)===null||V===void 0?void 0:V.length)===1?z.push(I.xData[0]):!I.noSharedTooltip&&k(n)&&g&&(T=k(T)?Math.min(T,n):n)}),z.length&&(z.sort((I,V)=>I-V),s=l([z]))}return s&&T?Math.min(s,T):s||T}nameToX(s){const T=h(this.options.categories),z=T?this.categories:this.names;let I=s.options.x,V;return s.series.requireSorting=!1,k(I)||(I=this.options.uniqueNames&&z?T?z.indexOf(s.name):u(z.keys[s.name],-1):s.series.autoIncrement()),I===-1?!T&&z&&(V=z.length):V=I,typeof V<"u"?(this.names[V]=s.name,this.names.keys[s.name]=V):s.x&&(V=s.x),V}updateNames(){const s=this,T=this.names;0<T.length&&(Object.keys(T.keys).forEach(function(z){delete T.keys[z]}),T.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(z){z.xIncrement=null,(!z.points||z.isDirtyData)&&(s.max=Math.max(s.max,z.xData.length-1),z.processData(),z.generatePoints()),z.data.forEach(function(I,V){let n;I&&I.options&&typeof I.name<"u"&&(n=s.nameToX(I),typeof n<"u"&&n!==I.x&&(I.x=n,z.xData[V]=n))})}))}setAxisTranslation(){const s=this,T=s.max-s.min;var z=s.linkedParent;const I=!!s.categories,V=s.isXAxis;let n=s.axisPointRange||0,g,m=0,H=0,W=s.transA;(V||I||n)&&(g=s.getClosest(),z?(m=z.minPointOffset,H=z.pointRangePadding):s.series.forEach(function($){const et=I?1:V?u($.options.pointRange,g,0):s.axisPointRange||0,nt=$.options.pointPlacement;n=Math.max(n,et),(!s.single||I)&&($=$.is("xrange")?!V:V,m=Math.max(m,$&&e(nt)?0:et/2),H=Math.max(H,$&&nt==="on"?0:et))}),z=s.ordinal&&s.ordinal.slope&&g?s.ordinal.slope/g:1,s.minPointOffset=m*=z,s.pointRangePadding=H*=z,s.pointRange=Math.min(n,s.single&&I?1:T),V&&g&&(s.closestPointRange=g)),s.translationSlope=s.transA=W=s.staticScale||s.len/(T+H||1),s.transB=s.horiz?s.left:s.bottom,s.minPixelPadding=W*m,o(this,"afterSetAxisTranslation")}minFromRange(){return this.max-this.range}setTickInterval(s){var T=this.chart;const z=this.logarithmic,I=this.options,V=this.isXAxis,n=this.isLinked,g=I.tickPixelInterval,m=this.categories,H=this.softThreshold;let W=I.maxPadding,$=I.minPadding,et=c(I.tickInterval)&&0<=I.tickInterval?I.tickInterval:void 0,nt=c(this.threshold)?this.threshold:null,at,ht,pt;if(this.dateTime||m||n||this.getTickAmount(),ht=u(this.userMin,I.min),pt=u(this.userMax,I.max),n){this.linkedParent=T[this.coll][I.linkedTo];var E=this.linkedParent.getExtremes();this.min=u(E.min,E.dataMin),this.max=u(E.max,E.dataMax),I.type!==this.linkedParent.options.type&&v(11,1,T)}else H&&k(nt)&&(this.dataMin>=nt?(E=nt,$=0):this.dataMax<=nt&&(at=nt,W=0)),this.min=u(ht,E,this.dataMin),this.max=u(pt,at,this.dataMax);if(z&&(this.positiveValuesOnly&&!s&&0>=Math.min(this.min,u(this.dataMin,this.min))&&v(10,1,T),this.min=y(z.log2lin(this.min),16),this.max=y(z.log2lin(this.max),16)),this.range&&k(this.max)&&(this.userMin=this.min=ht=Math.max(this.dataMin,this.minFromRange()),this.userMax=pt=this.max,this.range=null),o(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!c(this.userMin)&&c(I.softMin)&&I.softMin<this.min&&(this.min=ht=I.softMin),!c(this.userMax)&&c(I.softMax)&&I.softMax>this.max&&(this.max=pt=I.softMax),!(m||this.axisPointRange||this.stacking&&this.stacking.usePercentage||n)&&k(this.min)&&k(this.max)&&(T=this.max-this.min)&&(!k(ht)&&$&&(this.min-=T*$),!k(pt)&&W&&(this.max+=T*W)),!c(this.userMin)&&c(I.floor)&&(this.min=Math.max(this.min,I.floor)),!c(this.userMax)&&c(I.ceiling)&&(this.max=Math.min(this.max,I.ceiling)),H&&k(this.dataMin)&&(nt=nt||0,!k(ht)&&this.min<nt&&this.dataMin>=nt?this.min=this.options.minRange?Math.min(nt,this.max-this.minRange):nt:!k(pt)&&this.max>nt&&this.dataMax<=nt&&(this.max=this.options.minRange?Math.max(nt,this.min+this.minRange):nt)),c(this.min)&&c(this.max)&&!this.chart.polar&&this.min>this.max&&(k(this.options.min)?this.max=this.min:k(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||typeof this.min>"u"||typeof this.max>"u"?1:n&&this.linkedParent&&!et&&g===this.linkedParent.options.tickPixelInterval?et=this.linkedParent.tickInterval:u(et,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,m?1:(this.max-this.min)*g/Math.max(this.len,g)),V&&!s){const M=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(J){J.forceCrop=J.forceCropping&&J.forceCropping(),J.processData(M)}),o(this,"postProcessData",{hasExtremesChanged:M})}this.setAxisTranslation(),o(this,"initialAxisTranslation"),this.pointRange&&!et&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),s=u(I.minTickInterval,this.dateTime&&!this.series.some(M=>M.noSharedTooltip)?this.closestPointRange:0),!et&&this.tickInterval<s&&(this.tickInterval=s),this.dateTime||this.logarithmic||et||(this.tickInterval=Z(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var s=this.options;const T=s.tickPositions,z=s.tickPositioner;var I=this.getMinorTickInterval(),V=this.hasVerticalPanning(),n=this.coll==="colorAxis";const g=(n||!V)&&s.startOnTick;V=(n||!V)&&s.endOnTick,n=[];let m;if(this.tickmarkOffset=this.categories&&s.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=I==="auto"&&this.tickInterval?this.tickInterval/s.minorTicksPerMajor:I,this.single=this.min===this.max&&k(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||s.allowDecimals!==!1),T)n=T.slice();else if(c(this.min)&&c(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)n=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,s.units),this.min,this.max,s.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)n=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(I=s=this.tickInterval;I<=2*s&&(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount);)this.tickInterval=Z(this,I*=1.1);else n=[this.min,this.max],v(19,!1,this.chart);n.length>this.len&&(n=[n[0],n[n.length-1]],n[0]===n[1]&&(n.length=1)),z&&(this.tickPositions=n,(m=z.apply(this,[this.min,this.max]))&&(n=m))}this.tickPositions=n,this.paddedTicks=n.slice(0),this.trimTicks(n,g,V),!this.isLinked&&c(this.min)&&c(this.max)&&(this.single&&2>n.length&&!this.categories&&!this.series.some(H=>H.is("heatmap")&&H.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),T||m||this.adjustTickAmount()),o(this,"afterSetTickPositions")}trimTicks(s,T,z){const I=s[0],V=s[s.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(o(this,"trimTicks"),!this.isLinked){if(T&&I!==-1/0)this.min=I;else for(;this.min-n>s[0];)s.shift();if(z)this.max=V;else for(;this.max+n<s[s.length-1];)s.pop();s.length===0&&k(I)&&!this.options.tickPositions&&s.push((V+I)/2)}}alignToOthers(){const s=this,T=[this],z=s.options,I=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,V=[];let n;if(s.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&z.alignTicks||I)&&z.startOnTick!==!1&&z.endOnTick!==!1&&!s.logarithmic){const g=H=>{const{horiz:W,options:$}=H;return[W?$.left:$.top,$.width,$.height,$.pane].join()},m=g(this);this.chart[this.coll].forEach(function(H){const{series:W}=H;W.length&&W.some($=>$.visible)&&H!==s&&g(H)===m&&(n=!0,T.push(H))})}if(n&&I){T.forEach(m=>{m=m.getThresholdAlignment(s),c(m)&&V.push(m)});const g=1<V.length?V.reduce((m,H)=>m+H,0)/V.length:void 0;T.forEach(m=>{m.thresholdAlignment=g})}return n}getThresholdAlignment(s){if((!c(this.dataMin)||this!==s&&this.series.some(T=>T.isDirty||T.isDirtyData))&&this.getSeriesExtremes(),c(this.threshold))return s=d((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(s=1-s),s}getTickAmount(){const s=this.options,T=s.tickPixelInterval;let z=s.tickAmount;!k(s.tickInterval)&&!z&&this.len<T&&!this.isRadial&&!this.logarithmic&&s.startOnTick&&s.endOnTick&&(z=2),!z&&this.alignToOthers()&&(z=Math.ceil(this.len/T)+1),4>z&&(this.finalTickAmt=z,z=5),this.tickAmount=z}adjustTickAmount(){const s=this,{finalTickAmt:T,max:z,min:I,options:V,tickPositions:n,tickAmount:g,thresholdAlignment:m}=s,H=n&&n.length;var W=u(s.threshold,s.softThreshold?0:null),$=s.tickInterval;let et;if(c(m)&&(et=.5>m?Math.ceil(m*(g-1)):Math.floor(m*(g-1)),V.reversed&&(et=g-1-et)),s.hasData()&&c(I)&&c(z)){const nt=()=>{s.transA*=(H-1)/(g-1),s.min=V.startOnTick?n[0]:Math.min(I,n[0]),s.max=V.endOnTick?n[n.length-1]:Math.max(z,n[n.length-1])};if(c(et)&&c(s.threshold)){for(;n[et]!==W||n.length!==g||n[0]>I||n[n.length-1]<z;){for(n.length=0,n.push(s.threshold);n.length<g;)n[et]===void 0||n[et]>s.threshold?n.unshift(y(n[0]-$)):n.push(y(n[n.length-1]+$));if($>8*s.tickInterval)break;$*=2}nt()}else if(H<g){for(;n.length<g;)n.length%2||I===W?n.push(y(n[n.length-1]+$)):n.unshift(y(n[0]-$));nt()}if(k(T)){for($=W=n.length;$--;)(T===3&&$%2===1||2>=T&&0<$&&$<W-1)&&n.splice($,1);s.finalTickAmt=void 0}}}setScale(){let s=!1,T=!1;this.series.forEach(function(I){s=s||I.isDirtyData||I.isDirty,T=T||I.xAxis&&I.xAxis.isDirty||!1}),this.setAxisSize();const z=this.len!==(this.old&&this.old.len);z||s||T||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=z||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),s&&this.panningState&&(this.panningState.isDirty=!0),o(this,"afterSetScale")}setExtremes(s,T,z,I,V){const n=this,g=n.chart;z=u(z,!0),n.series.forEach(function(m){delete m.kdTree}),V=b(V,{min:s,max:T}),o(n,"setExtremes",V,function(){n.userMin=s,n.userMax=T,n.eventArgs=V,z&&g.redraw(I)})}zoom(s,T){const z=this,I=this.dataMin,V=this.dataMax,n=this.options,g=Math.min(I,u(n.min,I)),m=Math.max(V,u(n.max,V));return s={newMin:s,newMax:T},o(this,"zoom",s,function(H){let W=H.newMin,$=H.newMax;(W!==z.min||$!==z.max)&&(z.allowZoomOutside||(k(I)&&(W<g&&(W=g),W>m&&(W=m)),k(V)&&($<g&&($=g),$>m&&($=m))),z.displayBtn=typeof W<"u"||typeof $<"u",z.setExtremes(W,$,!1,void 0,{trigger:"zoom"})),H.zoomed=!0}),s.zoomed}setAxisSize(){const s=this.chart;var T=this.options;const z=T.offsets||[0,0,0,0],I=this.horiz,V=this.width=Math.round(_(u(T.width,s.plotWidth-z[3]+z[1]),s.plotWidth)),n=this.height=Math.round(_(u(T.height,s.plotHeight-z[0]+z[2]),s.plotHeight)),g=this.top=Math.round(_(u(T.top,s.plotTop+z[0]),s.plotHeight,s.plotTop));T=this.left=Math.round(_(u(T.left,s.plotLeft+z[3]),s.plotWidth,s.plotLeft)),this.bottom=s.chartHeight-n-g,this.right=s.chartWidth-V-T,this.len=Math.max(I?V:n,0),this.pos=I?T:g}getExtremes(){const s=this.logarithmic;return{min:s?y(s.lin2log(this.min)):this.min,max:s?y(s.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(s){var T=this.logarithmic;const z=T?T.lin2log(this.min):this.min;return T=T?T.lin2log(this.max):this.max,s===null||s===-1/0?s=z:s===1/0?s=T:z>s?s=z:T<s&&(s=T),this.translate(s,0,1,0,1)}autoLabelAlign(s){const T=(u(s,0)-90*this.side+720)%360;return s={align:"center"},o(this,"autoLabelAlign",s,function(z){15<T&&165>T?z.align="right":195<T&&345>T&&(z.align="left")}),s.align}tickSize(s){const T=this.options,z=u(T[s==="tick"?"tickWidth":"minorTickWidth"],s==="tick"&&this.isXAxis&&!this.categories?1:0);let I=T[s==="tick"?"tickLength":"minorTickLength"],V;return z&&I&&(T[s+"Position"]==="inside"&&(I=-I),V=[I,z]),s={tickSize:V},o(this,"afterTickSize",s),s.tickSize}labelMetrics(){const s=this.chart.renderer;var T=this.ticks;return T=T[Object.keys(T)[0]]||{},this.chart.renderer.fontMetrics(T.label||T.movedLabel||s.box)}unsquish(){const s=this.options.labels;var T=this.horiz;const z=this.tickInterval,I=this.len/(((this.categories?1:0)+this.max-this.min)/z),V=s.rotation,n=.75*this.labelMetrics().h,g=Math.max(this.max-this.min,0),m=function(nt){let at=nt/(I||1);return at=1<at?Math.ceil(at):1,at*z>g&&nt!==1/0&&I!==1/0&&g&&(at=Math.ceil(g/z)),y(at*z)};let H=z,W,$=Number.MAX_VALUE,et;if(T){if(s.staggerLines||(c(V)?et=[V]:I<s.autoRotationLimit&&(et=s.autoRotation)),et){let nt;for(const at of et)(at===V||at&&-90<=at&&90>=at)&&(T=m(Math.abs(n/Math.sin(w*at))),nt=T+Math.abs(at/360),nt<$&&($=nt,W=at,H=T))}}else H=m(n);return this.autoRotation=et,this.labelRotation=u(W,c(V)?V:0),s.step?z:H}getSlotWidth(s){const T=this.chart,z=this.horiz,I=this.options.labels,V=Math.max(this.tickPositions.length-(this.categories?0:1),1),n=T.margin[3];if(s&&c(s.slotWidth))return s.slotWidth;if(z&&2>I.step)return I.rotation?0:(this.staggerLines||1)*this.len/V;if(!z){if(s=I.style.width,s!==void 0)return parseInt(String(s),10);if(n)return n-T.spacing[3]}return .33*T.chartWidth}renderUnsquish(){const s=this.chart,T=s.renderer,z=this.tickPositions,I=this.ticks,V=this.options.labels,n=V.style,g=this.horiz,m=this.getSlotWidth();var H=Math.max(1,Math.round(m-2*V.padding));const W={},$=this.labelMetrics(),et=n.textOverflow;let nt,at,ht=0;if(e(V.rotation)||(W.rotation=V.rotation||0),z.forEach(function(E){E=I[E],E.movedLabel&&E.replaceMovedLabel(),E&&E.label&&E.label.textPxLength>ht&&(ht=E.label.textPxLength)}),this.maxLabelLength=ht,this.autoRotation)ht>H&&ht>$.h?W.rotation=this.labelRotation:this.labelRotation=0;else if(m&&(nt=H,!et))for(at="clip",H=z.length;!g&&H--;){var pt=z[H];(pt=I[pt].label)&&(pt.styles&&pt.styles.textOverflow==="ellipsis"?pt.css({textOverflow:"clip"}):pt.textPxLength>m&&pt.css({width:m+"px"}),pt.getBBox().height>this.len/z.length-($.h-$.f)&&(pt.specificTextOverflow="ellipsis"))}W.rotation&&(nt=ht>.5*s.chartHeight?.33*s.chartHeight:ht,et||(at="ellipsis")),(this.labelAlign=V.align||this.autoLabelAlign(this.labelRotation))&&(W.align=this.labelAlign),z.forEach(function(E){const M=(E=I[E])&&E.label,J=n.width,X={};M&&(M.attr(W),E.shortenLabel?E.shortenLabel():nt&&!J&&n.whiteSpace!=="nowrap"&&(nt<M.textPxLength||M.element.tagName==="SPAN")?(X.width=nt+"px",et||(X.textOverflow=M.specificTextOverflow||at),M.css(X)):M.styles&&M.styles.width&&!X.width&&!J&&M.css({width:null}),delete M.specificTextOverflow,E.rotation=W.rotation)},this),this.tickRotCorr=T.rotCorr($.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(s){return s.hasData()})||this.options.showEmpty&&k(this.min)&&k(this.max)}addTitle(s){const T=this.chart.renderer,z=this.horiz,I=this.opposite,V=this.options.title,n=this.chart.styledMode;let g;this.axisTitle||((g=V.textAlign)||(g=(z?{low:"left",middle:"center",high:"right"}:{low:I?"right":"left",middle:"center",high:I?"left":"right"})[V.align]),this.axisTitle=T.text(V.text||"",0,0,V.useHTML).attr({zIndex:7,rotation:V.rotation,align:g}).addClass("highcharts-axis-title"),n||this.axisTitle.css(t(V.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),n||V.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[s?"show":"hide"](s)}generateTick(s){const T=this.ticks;T[s]?T[s].addLabel():T[s]=new U(this,s)}getOffset(){const s=this,{chart:T,horiz:z,options:I,side:V,ticks:n,tickPositions:g,coll:m,axisParent:H}=s,W=T.renderer,$=T.inverted&&!s.isZAxis?[1,0,3,2][V]:V;var et=s.hasData();const nt=I.title;var at=I.labels;const ht=c(I.crossing);var pt=T.axisOffset;const E=T.clipOffset,M=[-1,1,1,-1][V],J=I.className;let X,tt=0,dt;var ct=0;let xt=0;if(s.showAxis=X=et||I.showEmpty,s.staggerLines=s.horiz&&at.staggerLines||void 0,!s.axisGroup){const vt=(gt,mt,Ct)=>W.g(gt).attr({zIndex:Ct}).addClass(`highcharts-${m.toLowerCase()}${mt} `+(this.isRadial?`highcharts-radial-axis${mt} `:"")+(J||"")).add(H);s.gridGroup=vt("grid","-grid",I.gridZIndex),s.axisGroup=vt("axis","",I.zIndex),s.labelGroup=vt("axis-labels","-labels",at.zIndex)}et||s.isLinked?(g.forEach(function(vt){s.generateTick(vt)}),s.renderUnsquish(),s.reserveSpaceDefault=V===0||V===2||{1:"left",3:"right"}[V]===s.labelAlign,u(at.reserveSpace,ht?!1:null,s.labelAlign==="center"?!0:null,s.reserveSpaceDefault)&&g.forEach(function(vt){xt=Math.max(n[vt].getLabelSize(),xt)}),s.staggerLines&&(xt*=s.staggerLines),s.labelOffset=xt*(s.opposite?-1:1)):a(n,function(vt,gt){vt.destroy(),delete n[gt]}),nt&&nt.text&&nt.enabled!==!1&&(s.addTitle(X),X&&!ht&&nt.reserveSpace!==!1&&(s.titleOffset=tt=s.axisTitle.getBBox()[z?"height":"width"],dt=nt.offset,ct=k(dt)?0:u(nt.margin,z?5:10))),s.renderLine(),s.offset=M*u(I.offset,pt[V]?pt[V]+(I.margin||0):0),s.tickRotCorr=s.tickRotCorr||{x:0,y:0},et=V===0?-s.labelMetrics().h:V===2?s.tickRotCorr.y:0,ct=Math.abs(xt)+ct,xt&&(ct=ct-et+M*(z?u(at.y,s.tickRotCorr.y+M*at.distance):u(at.x,M*at.distance))),s.axisTitleMargin=u(dt,ct),s.getMaxLabelDimensions&&(s.maxLabelDimensions=s.getMaxLabelDimensions(n,g)),m!=="colorAxis"&&(at=this.tickSize("tick"),pt[V]=Math.max(pt[V],(s.axisTitleMargin||0)+tt+M*s.offset,ct,g&&g.length&&at?at[0]+M*s.offset:0),pt=!s.axisLine||I.offset?0:2*Math.floor(s.axisLine.strokeWidth()/2),E[$]=Math.max(E[$],pt)),o(this,"afterGetOffset")}getLinePath(s){const T=this.chart,z=this.opposite;var I=this.offset;const V=this.horiz,n=this.left+(z?this.width:0)+I;return I=T.chartHeight-this.bottom-(z?this.height:0)+I,z&&(s*=-1),T.renderer.crispLine([["M",V?this.left:n,V?I:this.top],["L",V?T.chartWidth-this.right:n,V?I:T.chartHeight-this.bottom]],s)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(s){var T=this.horiz,z=this.left;const I=this.top;var V=this.len;const n=this.options.title,g=T?z:I,m=this.opposite,H=this.offset,W=n.x,$=n.y,et=this.chart.renderer.fontMetrics(s);return s=s?Math.max(s.getBBox(!1,0).height-et.h-1,0):0,V={low:g+(T?0:V),middle:g+V/2,high:g+(T?V:0)}[n.align],z=(T?I+this.height:z)+(T?1:-1)*(m?-1:1)*(this.axisTitleMargin||0)+[-s,s,et.f,-s][this.side],T={x:T?V+W:z+(m?this.width:0)+H+W,y:T?z+$-(m?this.height:0)+H:V+$},o(this,"afterGetTitlePosition",{titlePosition:T}),T}renderMinorTick(s,T){const z=this.minorTicks;z[s]||(z[s]=new U(this,s,"minor")),T&&z[s].isNew&&z[s].render(null,!0),z[s].render(null,!1,1)}renderTick(s,T,z){const I=this.ticks;(!this.isLinked||s>=this.min&&s<=this.max||this.grid&&this.grid.isColumn)&&(I[s]||(I[s]=new U(this,s)),z&&I[s].isNew&&I[s].render(T,!0,-1),I[s].render(T))}render(){const s=this,T=s.chart,z=s.logarithmic,I=s.options,V=s.isLinked,n=s.tickPositions,g=s.axisTitle,m=s.ticks,H=s.minorTicks,W=s.alternateBands,$=I.stackLabels,et=I.alternateGridColor;var nt=I.crossing;const at=s.tickmarkOffset,ht=s.axisLine,pt=s.showAxis,E=N(T.renderer.globalAnimation);let M,J;if(s.labelEdge.length=0,s.overlap=!1,[m,H,W].forEach(function(X){a(X,function(tt){tt.isActive=!1})}),c(nt)){const X=this.isXAxis?T.yAxis[0]:T.xAxis[0],tt=[1,-1,-1,1][this.side];X&&(nt=X.toPixels(nt,!0),s.horiz&&(nt=X.len-nt),s.offset=tt*nt)}if(s.hasData()||V){const X=s.chart.hasRendered&&s.old&&c(s.old.min);s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(tt){s.renderMinorTick(tt,X)}),n.length&&(n.forEach(function(tt,dt){s.renderTick(tt,dt,X)}),at&&(s.min===0||s.single)&&(m[-1]||(m[-1]=new U(s,-1,null,!0)),m[-1].render(-1))),et&&n.forEach(function(tt,dt){J=typeof n[dt+1]<"u"?n[dt+1]+at:s.max-at,dt%2===0&&tt<s.max&&J<=s.max+(T.polar?-at:at)&&(W[tt]||(W[tt]=new Y.PlotLineOrBand(s)),M=tt+at,W[tt].options={from:z?z.lin2log(M):M,to:z?z.lin2log(J):J,color:et,className:"highcharts-alternate-grid"},W[tt].render(),W[tt].isActive=!0)}),s._addedPlotLB||(s._addedPlotLB=!0,(I.plotLines||[]).concat(I.plotBands||[]).forEach(function(tt){s.addPlotBandOrLine(tt)}))}[m,H,W].forEach(function(X){const tt=[],dt=E.duration;a(X,function(ct,xt){ct.isActive||(ct.render(xt,!1,0),ct.isActive=!1,tt.push(xt))}),G(function(){let ct=tt.length;for(;ct--;)X[tt[ct]]&&!X[tt[ct]].isActive&&(X[tt[ct]].destroy(),delete X[tt[ct]])},X!==W&&T.hasRendered&&dt?dt:0)}),ht&&(ht[ht.isPlaced?"animate":"attr"]({d:this.getLinePath(ht.strokeWidth())}),ht.isPlaced=!0,ht[pt?"show":"hide"](pt)),g&&pt&&(g[g.isNew?"attr":"animate"](s.getTitlePosition(g)),g.isNew=!1),$&&$.enabled&&s.stacking&&s.stacking.renderStackTotals(),s.old={len:s.len,max:s.max,min:s.min,transA:s.transA,userMax:s.userMax,userMin:s.userMin},s.isDirty=!1,o(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(s){s.render()})),this.series.forEach(function(s){s.isDirty=!0})}getKeepProps(){return this.keepProps||rt.keepProps}destroy(s){const T=this,z=T.plotLinesAndBands,I=this.eventOptions;if(o(this,"destroy",{keepEvents:s}),s||r(T),[T.ticks,T.minorTicks,T.alternateBands].forEach(function(V){f(V)}),z)for(s=z.length;s--;)z[s].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(V){T[V]&&(T[V]=T[V].destroy())});for(const V in T.plotLinesAndBandsGroups)T.plotLinesAndBandsGroups[V]=T.plotLinesAndBandsGroups[V].destroy();a(T,function(V,n){T.getKeepProps().indexOf(n)===-1&&delete T[n]}),this.eventOptions=I}drawCrosshair(s,T){const z=this.crosshair;var I=u(z&&z.snap,!0);const V=this.chart;let n,g=this.cross;if(o(this,"drawCrosshair",{e:s,point:T}),s||(s=this.cross&&this.cross.e),z&&(k(T)||!I)!==!1){if(I?k(T)&&(n=u(this.coll!=="colorAxis"?T.crosshairPos:null,this.isXAxis?T.plotX:this.len-T.plotY)):n=s&&(this.horiz?s.chartX-this.pos:this.len-s.chartY+this.pos),k(n)){var m={value:T&&(this.isXAxis?T.x:u(T.stackY,T.y)),translatedValue:n};V.polar&&b(m,{isCrosshair:!0,chartX:s&&s.chartX,chartY:s&&s.chartY,point:T}),m=this.getPlotLinePath(m)||null}if(!k(m)){this.hideCrosshair();return}I=this.categories&&!this.isRadial,g||(this.cross=g=V.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(I?"category ":"thin ")+(z.className||"")).attr({zIndex:u(z.zIndex,2)}).add(),V.styledMode||(g.attr({stroke:z.color||(I?F.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":u(z.width,1)}).css({"pointer-events":"none"}),z.dashStyle&&g.attr({dashstyle:z.dashStyle}))),g.show().attr({d:m}),I&&!z.width&&g.attr({"stroke-width":this.transA}),this.cross.e=s}else this.hideCrosshair();o(this,"afterDrawCrosshair",{e:s,point:T})}hideCrosshair(){this.cross&&this.cross.hide(),o(this,"afterHideCrosshair")}hasVerticalPanning(){const s=this.chart.options.chart.panning;return!!(s&&s.enabled&&/y/.test(s.type))}update(s,T){const z=this.chart;s=t(this.userOptions,s),this.destroy(!0),this.init(z,s),z.isDirtyBox=!0,u(T,!0)&&z.redraw()}remove(s){const T=this.chart,z=this.coll,I=this.series;let V=I.length;for(;V--;)I[V]&&I[V].remove(!1);C(T.axes,this),C(T[z]||[],this),T.orderItems(z),this.destroy(),T.isDirtyBox=!0,u(s,!0)&&T.redraw()}setTitle(s,T){this.update({title:s},T)}setCategories(s,T){this.update({categories:s},T)}}return rt.defaultOptions=A.defaultXAxisOptions,rt.keepProps="coll extKey hcEvents names series userMax userMin".split(" "),rt}),st(P,"Core/Axis/DateTimeAxis.js",[P["Core/Utilities.js"]],function(B){const{addEvent:A,getMagnitude:F,normalizeTickInterval:q,timeUnits:K}=B;var Y;return function(U){function O(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function N(w){w.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new x(this))}const R=[];U.compose=function(w){return B.pushUnique(R,w)&&(w.keepProps.push("dateTime"),w.prototype.getTimeTicks=O,A(w,"init",N)),w};class x{constructor(L){this.axis=L}normalizeTimeTickInterval(L,D){const d=D||[["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]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];D=d[d.length-1];let y=K[D[0]],k=D[1],f;for(f=0;f<d.length&&(D=d[f],y=K[D[0]],k=D[1],!(d[f+1]&&L<=(y*k[k.length-1]+K[d[f+1][0]])/2));f++);return y===K.year&&L<5*y&&(k=[1,2,5]),L=q(L/y,k,D[0]==="year"?Math.max(F(L/y),1):1),{unitRange:y,count:L,unitName:D[0]}}getXDateFormat(L,D){const{axis:d}=this,y=d.chart.time;return d.closestPointRange?y.getDateFormat(d.closestPointRange,L,d.options.startOfWeek,D)||y.resolveDTLFormat(D.year).main:y.resolveDTLFormat(D.day).main}}U.Additions=x}(Y||(Y={})),Y}),st(P,"Core/Axis/LogarithmicAxis.js",[P["Core/Utilities.js"]],function(B){const{addEvent:A,normalizeTickInterval:F,pick:q}=B;var K;return function(Y){function U(x){let w=this.logarithmic;x.userOptions.type!=="logarithmic"?this.logarithmic=void 0:w||(this.logarithmic=new R(this))}function O(){const x=this.logarithmic;x&&(this.lin2val=function(w){return x.lin2log(w)},this.val2lin=function(w){return x.log2lin(w)})}const N=[];Y.compose=function(x){return B.pushUnique(N,x)&&(x.keepProps.push("logarithmic"),A(x,"init",U),A(x,"afterInit",O)),x};class R{constructor(w){this.axis=w}getLogTickPositions(w,L,D,d){const y=this.axis;var k=y.len,f=y.options;let C=[];if(d||(this.minorAutoInterval=void 0),.5<=w)w=Math.round(w),C=y.getLinearTickPositions(w,L,D);else if(.08<=w){f=Math.floor(L);let v,b,o,l,p;for(k=.3<w?[1,2,4]:.15<w?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<D+1&&!p;f++)for(b=k.length,v=0;v<b&&!p;v++)o=this.log2lin(this.lin2log(f)*k[v]),o>L&&(!d||l<=D)&&typeof l<"u"&&C.push(l),l>D&&(p=!0),l=o}else L=this.lin2log(L),D=this.lin2log(D),w=d?y.getMinorTickInterval():f.tickInterval,w=q(w==="auto"?null:w,this.minorAutoInterval,f.tickPixelInterval/(d?5:1)*(D-L)/((d?k/y.tickPositions.length:k)||1)),w=F(w),C=y.getLinearTickPositions(w,L,D).map(this.log2lin),d||(this.minorAutoInterval=w/5);return d||(y.tickInterval=w),C}lin2log(w){return Math.pow(10,w)}log2lin(w){return Math.log(w)/Math.LN10}}Y.Additions=R}(K||(K={})),K}),st(P,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[P["Core/Utilities.js"]],function(B){const{erase:A,extend:F,isNumber:q}=B;var K;return function(Y){function U(y){return this.addPlotBandOrLine(y,"plotBands")}function O(y,k){const f=this.userOptions;let C=new d(this,y);if(this.visible&&(C=C.render()),C){if(this._addedPlotLB||(this._addedPlotLB=!0,(f.plotLines||[]).concat(f.plotBands||[]).forEach(v=>{this.addPlotBandOrLine(v)})),k){const v=f[k]||[];v.push(y),f[k]=v}this.plotLinesAndBands.push(C)}return C}function N(y){return this.addPlotBandOrLine(y,"plotLines")}function R(y,k,f=this.options){const C=this.getPlotLinePath({value:k,force:!0,acrossPanes:f.acrossPanes}),v=[],b=this.horiz;k=!q(this.min)||!q(this.max)||y<this.min&&k<this.min||y>this.max&&k>this.max,y=this.getPlotLinePath({value:y,force:!0,acrossPanes:f.acrossPanes}),f=1;let o;if(y&&C)for(k&&(o=y.toString()===C.toString(),f=0),k=0;k<y.length;k+=2){const l=y[k],p=y[k+1],h=C[k],c=C[k+1];l[0]!=="M"&&l[0]!=="L"||p[0]!=="M"&&p[0]!=="L"||h[0]!=="M"&&h[0]!=="L"||c[0]!=="M"&&c[0]!=="L"||(b&&h[1]===l[1]?(h[1]+=f,c[1]+=f):b||h[2]!==l[2]||(h[2]+=f,c[2]+=f),v.push(["M",l[1],l[2]],["L",p[1],p[2]],["L",c[1],c[2]],["L",h[1],h[2]],["Z"])),v.isFlat=o}return v}function x(y){this.removePlotBandOrLine(y)}function w(y){const k=this.plotLinesAndBands,f=this.options,C=this.userOptions;if(k){let v=k.length;for(;v--;)k[v].id===y&&k[v].destroy();[f.plotLines||[],C.plotLines||[],f.plotBands||[],C.plotBands||[]].forEach(function(b){for(v=b.length;v--;)(b[v]||{}).id===y&&A(b,b[v])})}}function L(y){this.removePlotBandOrLine(y)}const D=[];let d;Y.compose=function(y,k){return d||(d=y),B.pushUnique(D,k)&&F(k.prototype,{addPlotBand:U,addPlotLine:N,addPlotBandOrLine:O,getPlotBandPath:R,removePlotBand:x,removePlotLine:L,removePlotBandOrLine:w}),k}}(K||(K={})),K}),st(P,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[P["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],P["Core/Utilities.js"]],function(B,A){const{arrayMax:F,arrayMin:q,defined:K,destroyObjectProperties:Y,erase:U,fireEvent:O,merge:N,objectEach:R,pick:x}=A;class w{static compose(D){return B.compose(w,D)}constructor(D,d){this.axis=D,d&&(this.options=d,this.id=d.id)}render(){O(this,"render");const D=this,d=D.axis,y=d.horiz;var k=d.logarithmic;const f=D.options,C=f.color,v=x(f.zIndex,0),b=f.events,o={},l=d.chart.renderer;let p=f.label,h=D.label,c=f.to,e=f.from,t=f.value,i=D.svgElem;var a=[];const u=K(e)&&K(c);a=K(t);const _=!i,r={class:"highcharts-plot-"+(u?"band ":"line ")+(f.className||"")};let S=u?"bands":"lines";if(k&&(e=k.log2lin(e),c=k.log2lin(c),t=k.log2lin(t)),d.chart.styledMode||(a?(r.stroke=C||"#999999",r["stroke-width"]=x(f.width,1),f.dashStyle&&(r.dashstyle=f.dashStyle)):u&&(r.fill=C||"#e6e9ff",f.borderWidth&&(r.stroke=f.borderColor,r["stroke-width"]=f.borderWidth))),o.zIndex=v,S+="-"+v,(k=d.plotLinesAndBandsGroups[S])||(d.plotLinesAndBandsGroups[S]=k=l.g("plot-"+S).attr(o).add()),_&&(D.svgElem=i=l.path().attr(r).add(k)),a)a=d.getPlotLinePath({value:t,lineWidth:i.strokeWidth(),acrossPanes:f.acrossPanes});else if(u)a=d.getPlotBandPath(e,c,f);else return;return!D.eventsAdded&&b&&(R(b,function(G,Z){i.on(Z,function(rt){b[Z].apply(D,[rt])})}),D.eventsAdded=!0),(_||!i.d)&&a&&a.length?i.attr({d:a}):i&&(a?(i.show(),i.animate({d:a})):i.d&&(i.hide(),h&&(D.label=h=h.destroy()))),p&&(K(p.text)||K(p.formatter))&&a&&a.length&&0<d.width&&0<d.height&&!a.isFlat?(p=N({align:y&&u&&"center",x:y?!u&&4:10,verticalAlign:!y&&u&&"middle",y:y?u?16:10:u?6:-4,rotation:y&&!u&&90},p),this.renderLabel(p,a,u,v)):h&&h.hide(),D}renderLabel(D,d,y,k){const f=this.axis;var C=f.chart.renderer;let v=this.label;v||(this.label=v=C.text(this.getLabelText(D),0,0,D.useHTML).attr({align:D.textAlign||D.align,rotation:D.rotation,class:"highcharts-plot-"+(y?"band":"line")+"-label "+(D.className||""),zIndex:k}).add(),f.chart.styledMode||v.css(N({fontSize:"0.8em",textOverflow:"ellipsis"},D.style))),k=d.xBounds||[d[0][1],d[1][1],y?d[2][1]:d[0][1]],d=d.yBounds||[d[0][2],d[1][2],y?d[2][2]:d[0][2]],y=q(k),C=q(d),v.align(D,!1,{x:y,y:C,width:F(k)-y,height:F(d)-C}),v.alignValue&&v.alignValue!=="left"||(D=D.clip?f.width:f.chart.chartWidth,v.css({width:(v.rotation===90?f.height-(v.alignAttr.y-f.top):D-(v.alignAttr.x-f.left))+"px"})),v.show(!0)}getLabelText(D){return K(D.formatter)?D.formatter.call(this):D.text}destroy(){U(this.axis.plotLinesAndBands,this),delete this.axis,Y(this)}}return w}),st(P,"Core/Tooltip.js",[P["Core/Templating.js"],P["Core/Globals.js"],P["Core/Renderer/RendererUtilities.js"],P["Core/Renderer/RendererRegistry.js"],P["Core/Utilities.js"]],function(B,A,F,q,K){const{format:Y}=B,{doc:U,isSafari:O}=A,{distribute:N}=F,{addEvent:R,clamp:x,css:w,discardElement:L,extend:D,fireEvent:d,isArray:y,isNumber:k,isString:f,merge:C,pick:v,splat:b,syncTimeout:o}=K;class l{constructor(h,c){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=h,this.init(h,c)}bodyFormatter(h){return h.map(function(c){const e=c.series.tooltipOptions;return(e[(c.point.formatPrefix||"point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,e[(c.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(h){this.chart.series.forEach(function(c){const e=c&&c.tt;e&&(!e.isActive||h?c.tt=e.destroy():e.isActive=!1)})}defaultFormatter(h){const c=this.points||b(this);let e;return e=[h.tooltipFooterHeaderFormatter(c[0])],e=e.concat(h.bodyFormatter(c)),e.push(h.tooltipFooterHeaderFormatter(c[0],!0)),e}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),L(this.container)),K.clearTimeout(this.hideTimer),K.clearTimeout(this.tooltipTimeout)}getAnchor(h,c){var e=this.chart;const t=e.pointer,i=e.inverted,a=e.plotTop;if(e=e.plotLeft,h=b(h),h[0].series&&h[0].series.yAxis&&!h[0].series.yAxis.options.reversedStacks&&(h=h.slice().reverse()),this.followPointer&&c)typeof c.chartX>"u"&&(c=t.normalize(c)),h=[c.chartX-e,c.chartY-a];else if(h[0].tooltipPos)h=h[0].tooltipPos;else{let u=0,_=0;h.forEach(function(r){(r=r.pos(!0))&&(u+=r[0],_+=r[1])}),u/=h.length,_/=h.length,this.shared&&1<h.length&&c&&(i?u=c.chartX:_=c.chartY),h=[u-e,_-a]}return h.map(Math.round)}getClassName(h,c,e){const t=h.series,i=t.options;return[this.options.className,"highcharts-label",e&&"highcharts-tooltip-header",c?"highcharts-tooltip-box":"highcharts-tooltip",!e&&"highcharts-color-"+v(h.colorIndex,t.colorIndex),i&&i.className].filter(f).join(" ")}getLabel(){const h=this,c=this.chart.styledMode,e=this.options,t=this.split&&this.allowShared,i=e.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none");let a,u=this.chart.renderer;if(this.label){var _=!this.label.hasClass("highcharts-label");(!t&&_||t&&!_)&&this.destroy()}if(!this.label){if(this.outside){_=this.chart.options.chart.style;const r=q.getRendererType();this.container=a=A.doc.createElement("div"),a.className="highcharts-tooltip-container",w(a,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(_&&_.zIndex||0)+3)}),A.doc.body.appendChild(a),this.renderer=u=new r(a,0,0,_,void 0,void 0,u.styledMode)}if(t?this.label=u.g("tooltip"):(this.label=u.label("",0,0,e.shape,void 0,void 0,e.useHTML,void 0,"tooltip").attr({padding:e.padding,r:e.borderRadius}),c||this.label.attr({fill:e.backgroundColor,"stroke-width":e.borderWidth||0}).css(e.style).css({pointerEvents:i})),h.outside){const r=this.label,{xSetter:S,ySetter:G}=r;r.xSetter=function(Z){S.call(r,h.distance),a.style.left=Z+"px"},r.ySetter=function(Z){G.call(r,h.distance),a.style.top=Z+"px"}}this.label.attr({zIndex:8}).shadow(e.shadow).add()}return this.label}getPlayingField(){const{body:h,documentElement:c}=U,{chart:e,distance:t,outside:i}=this;return{width:i?Math.max(h.scrollWidth,c.scrollWidth,h.offsetWidth,c.offsetWidth,c.clientWidth)-2*t:e.chartWidth,height:i?Math.max(h.scrollHeight,c.scrollHeight,h.offsetHeight,c.offsetHeight,c.clientHeight):e.chartHeight}}getPosition(h,c,e){const t=this.chart,i=this.distance,a={},u=t.inverted&&e.h||0,_=this.outside;var r=this.getPlayingField();const S=r.width,G=r.height,Z=t.pointer.getChartPosition();r=g=>{const m=g==="x";return[g,m?S:G,m?h:c].concat(_?[m?h*Z.scaleX:c*Z.scaleY,m?Z.left-i+(e.plotX+t.plotLeft)*Z.scaleX:Z.top-i+(e.plotY+t.plotTop)*Z.scaleY,0,m?S:G]:[m?h:c,m?e.plotX+t.plotLeft:e.plotY+t.plotTop,m?t.plotLeft:t.plotTop,m?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])};let rt=r("y"),j=r("x"),s;r=!!e.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(r=!r);const T=!this.followPointer&&v(e.ttBelow,!t.inverted===r),z=function(g,m,H,W,$,et,nt){const at=_?g==="y"?i*Z.scaleY:i*Z.scaleX:i,ht=(H-W)/2,pt=W<$-i,E=$+i+W<m,M=$-at-H+ht;if($=$+at-ht,T&&E)a[g]=$;else if(!T&&pt)a[g]=M;else if(pt)a[g]=Math.min(nt-W,0>M-u?M:M-u);else if(E)a[g]=Math.max(et,$+u+H>m?$:$+u);else return!1},I=function(g,m,H,W,$){let et;return $<i||$>m-i?et=!1:a[g]=$<H/2?1:$>m-W/2?m-W-2:$-H/2,et},V=function(g){const m=rt;rt=j,j=m,s=g},n=function(){z.apply(0,rt)!==!1?I.apply(0,j)!==!1||s||(V(!0),n()):s?a.x=a.y=0:(V(!0),n())};return(t.inverted||1<this.len)&&V(),n(),a}hide(h){const c=this;K.clearTimeout(this.hideTimer),h=v(h,this.options.hideDelay),this.isHidden||(this.hideTimer=o(function(){c.getLabel().fadeOut(h&&void 0),c.isHidden=!0},h))}init(h,c){this.chart=h,this.options=c,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=c.split&&!h.inverted&&!h.polar,this.shared=c.shared||this.split,this.outside=v(c.outside,!(!h.scrollablePixelsX&&!h.scrollablePixelsY))}shouldStickOnContact(h){return!(this.followPointer||!this.options.stickOnContact||h&&!this.chart.pointer.inClass(h.target,"highcharts-tooltip"))}move(h,c,e,t){const i=this,a=i.now,u=i.options.animation!==!1&&!i.isHidden&&(1<Math.abs(h-a.x)||1<Math.abs(c-a.y)),_=i.followPointer||1<i.len;D(a,{x:u?(2*a.x+h)/3:h,y:u?(a.y+c)/2:c,anchorX:_?void 0:u?(2*a.anchorX+e)/3:e,anchorY:_?void 0:u?(a.anchorY+t)/2:t}),i.getLabel().attr(a),i.drawTracker(),u&&(K.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){i&&i.move(h,c,e,t)},32))}refresh(h,c){const e=this.chart,t=this.options,i=e.pointer,a=b(h),u=a[0],_=[];var r=t.format,S=t.formatter||this.defaultFormatter;const G=this.shared,Z=e.styledMode;let rt={};if(t.enabled&&u.series){K.clearTimeout(this.hideTimer),this.allowShared=!(!y(h)&&h.series&&h.series.noSharedTooltip),this.followPointer=!this.split&&u.series.tooltipOptions.followPointer,h=this.getAnchor(h,c);var j=h[0],s=h[1];if(G&&this.allowShared?(i.applyInactiveState(a),a.forEach(function(T){T.setState("hover"),_.push(T.getLabelConfig())}),rt=u.getLabelConfig(),rt.points=_):rt=u.getLabelConfig(),this.len=_.length,r=f(r)?Y(r,rt,e):S.call(rt,this),S=u.series,this.distance=v(S.tooltipOptions.distance,16),r===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(r,a);else{let T=j,z=s;if(c&&i.isDirectTouch&&(T=c.chartX-e.plotLeft,z=c.chartY-e.plotTop),e.polar||S.options.clip===!1||a.some(I=>i.isDirectTouch||I.series.shouldShowTooltip(T,z)))c=this.getLabel(),t.style.width&&!Z||c.css({width:(this.outside?this.getPlayingField():e.spacingBox).width+"px"}),c.attr({text:r&&r.join?r.join(""):r}),c.addClass(this.getClassName(u),!0),Z||c.attr({stroke:t.borderColor||u.color||S.color||"#666666"}),this.updatePosition({plotX:j,plotY:s,negative:u.negative,ttBelow:u.ttBelow,h:h[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}d(this,"refresh")}}renderSplit(h,c){function e(X,tt,dt,ct,xt=!0){return dt?(tt=H?0:at,X=x(X-ct/2,n.left,n.right-ct-(t.outside?W:0))):(tt-=et,X=xt?X-ct-z:X+z,X=x(X,xt?X:n.left,n.right)),{x:X,y:tt}}const t=this,{chart:i,chart:{chartWidth:a,chartHeight:u,plotHeight:_,plotLeft:r,plotTop:S,pointer:G,scrollablePixelsY:Z=0,scrollablePixelsX:rt,scrollingContainer:{scrollLeft:j,scrollTop:s}={scrollLeft:0,scrollTop:0},styledMode:T},distance:z,options:I,options:{positioner:V}}=t,n=t.outside&&typeof rt!="number"?U.documentElement.getBoundingClientRect():{left:j,right:j+a,top:s,bottom:s+u},g=t.getLabel(),m=this.renderer||i.renderer,H=!(!i.xAxis[0]||!i.xAxis[0].opposite),{left:W,top:$}=G.getChartPosition();let et=S+s,nt=0,at=_-Z;f(h)&&(h=[!1,h]),h=h.slice(0,c.length+1).reduce(function(X,tt,dt){if(tt!==!1&&tt!==""){dt=c[dt-1]||{isHeader:!0,plotX:c[0].plotX,plotY:_,series:{}};const Ct=dt.isHeader;var ct=Ct?t:dt.series,xt;{var vt=dt;tt=tt.toString();var gt=ct.tt;const{isHeader:Mt,series:Lt}=vt;gt||(gt={padding:I.padding,r:I.borderRadius},T||(gt.fill=I.backgroundColor,gt["stroke-width"]=(xt=I.borderWidth)!==null&&xt!==void 0?xt:1),gt=m.label("",0,0,I[Mt?"headerShape":"shape"],void 0,void 0,I.useHTML).addClass(t.getClassName(vt,!0,Mt)).attr(gt).add(g)),gt.isActive=!0,gt.attr({text:tt}),T||gt.css(I.style).attr({stroke:I.borderColor||vt.color||Lt.color||"#333333"}),xt=gt}xt=ct.tt=xt,vt=xt.getBBox(),ct=vt.width+xt.strokeWidth(),Ct&&(nt=vt.height,at+=nt,H&&(et-=nt));{const{isHeader:Mt,plotX:Lt=0,plotY:_t=0,series:zt}=dt;if(Mt){tt=r+Lt;var mt=S+_/2}else{const{xAxis:Ht,yAxis:Ot}=zt;tt=Ht.pos+x(Lt,-z,Ht.len+z),zt.shouldShowTooltip(0,Ot.pos-S+_t,{ignoreX:!0})&&(mt=Ot.pos+_t)}tt=x(tt,n.left-z,n.right+z),mt={anchorX:tt,anchorY:mt}}const{anchorX:bt,anchorY:wt}=mt;typeof wt=="number"?(mt=vt.height+1,vt=V?V.call(t,ct,mt,dt):e(bt,wt,Ct,ct),X.push({align:V?0:void 0,anchorX:bt,anchorY:wt,boxWidth:ct,point:dt,rank:v(vt.rank,Ct?1:0),size:mt,target:vt.y,tt:xt,x:vt.x})):xt.isActive=!1}return X},[]),!V&&h.some(X=>{var{outside:tt}=t;return tt=(tt?W:0)+X.anchorX,tt<n.left&&tt+X.boxWidth<n.right?!0:tt<W-n.left+X.boxWidth&&n.right-tt>tt})&&(h=h.map(X=>{const{x:tt,y:dt}=e(X.anchorX,X.anchorY,X.point.isHeader,X.boxWidth,!1);return D(X,{target:dt,x:tt})})),t.cleanSplit(),N(h,at);var ht=W,pt=W;h.forEach(function(X){const{x:tt,boxWidth:dt,isHeader:ct}=X;ct||(t.outside&&W+tt<ht&&(ht=W+tt),!ct&&t.outside&&ht+dt>pt&&(pt=W+tt))}),h.forEach(function(X){const{x:tt,anchorX:dt,anchorY:ct,pos:xt,point:{isHeader:vt}}=X,gt={visibility:typeof xt>"u"?"hidden":"inherit",x:tt,y:(xt||0)+et,anchorX:dt,anchorY:ct};if(t.outside&&tt<dt){const mt=W-ht;0<mt&&(vt||(gt.x=tt+mt,gt.anchorX=dt+mt),vt&&(gt.x=(pt-ht)/2,gt.anchorX=dt+mt))}X.tt.attr(gt)});const{container:E,outside:M,renderer:J}=t;if(M&&E&&J){const{width:X,height:tt,x:dt,y:ct}=g.getBBox();J.setSize(X+dt,tt+ct,!1),E.style.left=ht+"px",E.style.top=$+"px"}O&&g.attr({opacity:g.opacity===1?.999:1})}drawTracker(){if(this.shouldStickOnContact()){var h=this.chart,c=this.label,e=this.shared?h.hoverPoints:h.hoverPoint;if(c&&e){var t={x:0,y:0,width:0,height:0};e=this.getAnchor(e);var i=c.getBBox();e[0]+=h.plotLeft-c.translateX,e[1]+=h.plotTop-c.translateY,t.x=Math.min(0,e[0]),t.y=Math.min(0,e[1]),t.width=0>e[0]?Math.max(Math.abs(e[0]),i.width-e[0]):Math.max(Math.abs(e[0]),i.width),t.height=0>e[1]?Math.max(Math.abs(e[1]),i.height-Math.abs(e[1])):Math.max(Math.abs(e[1]),i.height),this.tracker?this.tracker.attr(t):(this.tracker=c.renderer.rect(t).addClass("highcharts-tracker").add(c),h.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&(this.tracker=this.tracker.destroy())}styledModeFormat(h){return h.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(h,c){const e=h.series,t=e.tooltipOptions;var i=e.xAxis;const a=i&&i.dateTime;i={isFooter:c,labelConfig:h};let u=t.xDateFormat,_=t[c?"footerFormat":"headerFormat"];return d(this,"headerFormatter",i,function(r){a&&!u&&k(h.key)&&(u=a.getXDateFormat(h.key,t.dateTimeLabelFormats)),a&&u&&(h.point&&h.point.tooltipDateKeys||["key"]).forEach(function(S){_=_.replace("{point."+S+"}","{point."+S+":"+u+"}")}),e.chart.styledMode&&(_=this.styledModeFormat(_)),r.text=Y(_,{point:h,series:e},this.chart)}),i.text}update(h){this.destroy(),this.init(this.chart,C(!0,this.options,h))}updatePosition(h){const{chart:c,distance:e,options:t}=this;var i=c.pointer;const a=this.getLabel(),{left:u,top:_,scaleX:r,scaleY:S}=i.getChartPosition();i=(t.positioner||this.getPosition).call(this,a.width,a.height,h);let G=(h.plotX||0)+c.plotLeft;h=(h.plotY||0)+c.plotTop;let Z;this.outside&&(t.positioner&&(i.x+=u-e,i.y+=_-e),Z=(t.borderWidth||0)+2*e,this.renderer.setSize(a.width+Z,a.height+Z,!1),(r!==1||S!==1)&&(w(this.container,{transform:`scale(${r}, ${S})`}),G*=r,h*=S),G+=u-i.x,h+=_-i.y),this.move(Math.round(i.x),Math.round(i.y||0),G,h)}}return function(p){const h=[];p.compose=function(c){K.pushUnique(h,c)&&R(c,"afterInit",function(){const e=this.chart;e.options.tooltip&&(e.tooltip=new p(e,e.options.tooltip))})}}(l||(l={})),l}),st(P,"Core/Series/Point.js",[P["Core/Renderer/HTML/AST.js"],P["Core/Animation/AnimationUtilities.js"],P["Core/Defaults.js"],P["Core/Templating.js"],P["Core/Utilities.js"]],function(B,A,F,q,K){const{animObject:Y}=A,{defaultOptions:U}=F,{format:O}=q,{addEvent:N,defined:R,erase:x,extend:w,fireEvent:L,getNestedProperty:D,isArray:d,isFunction:y,isNumber:k,isObject:f,merge:C,objectEach:v,pick:b,syncTimeout:o,removeEvent:l,uniqueKey:p}=K;class h{constructor(){this.category=void 0,this.destroyed=!1,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}animateBeforeDestroy(){const e=this,t={x:e.startXPos,opacity:0},i=e.getGraphicalProps();i.singular.forEach(function(a){e[a]=e[a].animate(a==="dataLabel"?{x:e[a].startXPos,y:e[a].startYPos,opacity:0}:t)}),i.plural.forEach(function(a){e[a].forEach(function(u){u.element&&u.animate(w({x:e.startXPos},u.startYPos?{x:u.startXPos,y:u.startYPos}:{}))})})}applyOptions(e,t){const i=this.series,a=i.options.pointValKey||i.pointValKey;return e=h.prototype.optionsToObject.call(this,e),w(this,e),this.options=this.options?w(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,a&&(this.y=h.prototype.getNestedProperty.call(this,a)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&typeof t>"u"&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),typeof this.x>"u"&&i?this.x=typeof t>"u"?i.autoIncrement():t:k(e.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(e.x)),this}destroy(){if(!this.destroyed){const t=this;var e=t.series;const i=e.chart;e=e.options.dataSorting;const a=i.hoverPoints,u=Y(t.series.chart.renderer.globalAnimation),_=()=>{(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(l(t),t.destroyElements());for(const r in t)delete t[r]};t.legendItem&&i.legend.destroyItem(t),a&&(t.setState(),x(a,t),a.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),e&&e.enabled?(this.animateBeforeDestroy(),o(_,u.duration)):_(),i.pointCount--}this.destroyed=!0}destroyElements(e){const t=this;e=t.getGraphicalProps(e),e.singular.forEach(function(i){t[i]=t[i].destroy()}),e.plural.forEach(function(i){t[i].forEach(function(a){a&&a.element&&a.destroy()}),delete t[i]})}firePointEvent(e,t,i){const a=this,u=this.series.options;(u.point.events[e]||a.options&&a.options.events&&a.options.events[e])&&a.importEvents(),e==="click"&&u.allowPointSelect&&(i=function(_){a.select&&a.select(null,_.ctrlKey||_.metaKey||_.shiftKey)}),L(a,e,t,i)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(typeof this.colorIndex<"u"?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(e){const t=this,i=[],a={singular:[],plural:[]};let u,_;for(e=e||{graphic:1,dataLabel:1},e.graphic&&i.push("graphic"),e.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),_=i.length;_--;)u=i[_],t[u]&&a.singular.push(u);return["graphic","dataLabel","connector"].forEach(function(r){const S=r+"s";e[r]&&t[S]&&a.plural.push(S)}),a}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(e){if(e)return e.indexOf("custom.")===0?D(e,this.options):this[e]}getZone(){var e=this.series;const t=e.zones;e=e.zoneAxis||"y";let i,a=0;for(i=t[a];this[e]>=i.value;)i=t[++a];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}init(e,t,i){return this.series=e,this.applyOptions(t,i),this.id=R(this.id)?this.id:p(),this.resolveColor(),e.chart.pointCount++,L(this,"afterInit"),this}isValid(){return this.x!==null&&k(this.y)}optionsToObject(e){var t=this.series;const i=t.options.keys,a=i||t.pointArrayMap||["y"],u=a.length;let _={},r=0,S=0;if(k(e)||e===null)_[a[0]]=e;else if(d(e))for(!i&&e.length>u&&(t=typeof e[0],t==="string"?_.name=e[0]:t==="number"&&(_.x=e[0]),r++);S<u;)i&&typeof e[r]>"u"||(0<a[S].indexOf(".")?h.prototype.setNestedProperty(_,e[r],a[S]):_[a[S]]=e[r]),r++,S++;else typeof e=="object"&&(_=e,e.dataLabels&&(t._hasPointLabels=!0),e.marker&&(t._hasPointMarkers=!0));return _}pos(e,t=this.plotY){if(!this.destroyed){const{plotX:i,series:a}=this,{chart:u,xAxis:_,yAxis:r}=a;let S=0,G=0;if(k(i)&&k(t))return e&&(S=_?_.pos:u.plotLeft,G=r?r.pos:u.plotTop),u.inverted&&_&&r?[r.len-t+G,_.len-i+S]:[i+S,t+G]}}resolveColor(){const e=this.series;var t=e.chart.styledMode;let i;var a=e.chart.options.chart.colorCount;delete this.nonZonedColor,e.options.colorByPoint?(t||(a=e.options.colors||e.chart.options.colors,i=a[e.colorCounter],a=a.length),t=e.colorCounter,e.colorCounter++,e.colorCounter===a&&(e.colorCounter=0)):(t||(i=e.color),t=e.colorIndex),this.colorIndex=b(this.options.colorIndex,t),this.color=b(this.options.color,i)}setNestedProperty(e,t,i){return i.split(".").reduce(function(a,u,_,r){return a[u]=r.length-1===_?t:f(a[u],!0)?a[u]:{},a[u]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){const t=this.series,i=t.tooltipOptions,a=b(i.valueDecimals,""),u=i.valuePrefix||"",_=i.valueSuffix||"";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||["y"]).forEach(function(r){r="{point."+r,(u||_)&&(e=e.replace(RegExp(r+"}","g"),u+r+"}"+_)),e=e.replace(RegExp(r+"}","g"),r+":,."+a+"f}")}),O(e,{point:this,series:this.series},t.chart)}update(e,t,i,a){function u(){_.applyOptions(e);var j=S&&_.hasMockGraphic;j=_.y===null?!j:j,S&&j&&(_.graphic=S.destroy(),delete _.hasMockGraphic),f(e,!0)&&(S&&S.element&&e&&e.marker&&typeof e.marker.symbol<"u"&&(_.graphic=S.destroy()),e&&e.dataLabels&&_.dataLabel&&(_.dataLabel=_.dataLabel.destroy()),_.connector&&(_.connector=_.connector.destroy())),rt=_.index,r.updateParallelArrays(_,rt),Z.data[rt]=f(Z.data[rt],!0)||f(e,!0)?_.options:b(e,Z.data[rt]),r.isDirty=r.isDirtyData=!0,!r.fixedBox&&r.hasCartesianSeries&&(G.isDirtyBox=!0),Z.legendType==="point"&&(G.isDirtyLegend=!0),t&&G.redraw(i)}const _=this,r=_.series,S=_.graphic,G=r.chart,Z=r.options;let rt;t=b(t,!0),a===!1?u():_.firePointEvent("update",{options:e},u)}remove(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}select(e,t){const i=this,a=i.series,u=a.chart;this.selectedStaging=e=b(e,!i.selected),i.firePointEvent(e?"select":"unselect",{accumulate:t},function(){i.selected=i.options.selected=e,a.options.data[a.data.indexOf(i)]=i.options,i.setState(e&&"select"),t||u.getSelectedPoints().forEach(function(_){const r=_.series;_.selected&&_!==i&&(_.selected=_.options.selected=!1,r.options.data[r.data.indexOf(_)]=_.options,_.setState(u.hoverPoints&&r.options.inactiveOtherPoints?"inactive":""),_.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(e){const t=this.series.chart,i=t.pointer;e=e?i.normalize(e):i.getChartCoordinatesFromPoint(this,t.inverted),i.runPointActions(e,this)}onMouseOut(){const e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(t){t.setState()}),e.hoverPoints=e.hoverPoint=null}importEvents(){if(!this.hasImportedEvents){const e=this,t=C(e.series.options.point,e.options).events;e.events=t,v(t,function(i,a){y(i)&&N(e,a,i)}),this.hasImportedEvents=!0}}setState(e,t){const i=this.series;var a=this.state,u=i.options.states[e||"normal"]||{},_=U.plotOptions[i.type].marker&&i.options.marker;const r=_&&_.enabled===!1,S=_&&_.states&&_.states[e||"normal"]||{},G=S.enabled===!1,Z=this.marker||{},rt=i.chart,j=_&&i.markerAttribs;let s=i.halo;var T;let z;var I=i.stateMarkerGraphic;if(e=e||"",!(e===this.state&&!t||this.selected&&e!=="select"||u.enabled===!1||e&&(G||r&&S.enabled===!1)||e&&Z.states&&Z.states[e]&&Z.states[e].enabled===!1)){if(this.state=e,j&&(T=i.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(a&&this.graphic.removeClass("highcharts-point-"+a),e&&this.graphic.addClass("highcharts-point-"+e),!rt.styledMode){a=i.pointAttribs(this,e),z=b(rt.options.chart.animation,u.animation);const V=a.opacity;i.options.inactiveOtherPoints&&k(V)&&((this.dataLabels||[]).forEach(function(n){n&&!n.hasClass("highcharts-data-label-hidden")&&n.animate({opacity:V},z)}),this.connector&&this.connector.animate({opacity:V},z)),this.graphic.animate(a,z)}T&&this.graphic.animate(T,b(rt.options.chart.animation,S.animation,_.animation)),I&&I.hide()}else e&&S&&(_=Z.symbol||i.symbol,I&&I.currentSymbol!==_&&(I=I.destroy()),T&&(I?I[t?"animate":"attr"]({x:T.x,y:T.y}):_&&(i.stateMarkerGraphic=I=rt.renderer.symbol(_,T.x,T.y,T.width,T.height).add(i.markerGroup),I.currentSymbol=_)),!rt.styledMode&&I&&this.state!=="inactive"&&I.attr(i.pointAttribs(this,e))),I&&(I[e&&this.isInside?"show":"hide"](),I.element.point=this,I.addClass(this.getClassName(),!0));u=u.halo,T=(I=this.graphic||I)&&I.visibility||"inherit",u&&u.size&&I&&T!=="hidden"&&!this.isCluster?(s||(i.halo=s=rt.renderer.path().add(I.parentGroup)),s.show()[t?"animate":"attr"]({d:this.haloPath(u.size)}),s.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:T,zIndex:-1}),s.point=this,rt.styledMode||s.attr(w({fill:this.color||i.color,"fill-opacity":u.opacity},B.filterUserAttributes(u.attributes||{})))):s&&s.point&&s.point.haloPath&&s.animate({d:s.point.haloPath(0)},null,s.hide),L(this,"afterSetState",{state:e})}}haloPath(e){const t=this.pos();return t?this.series.chart.renderer.symbols.circle(Math.floor(t[0])-e,t[1]-e,2*e,2*e):[]}}return h}),st(P,"Core/Pointer.js",[P["Core/Color/Color.js"],P["Core/Globals.js"],P["Core/Utilities.js"]],function(B,A,F){const{parse:q}=B,{charts:K,noop:Y}=A,{addEvent:U,attr:O,css:N,defined:R,extend:x,find:w,fireEvent:L,isNumber:D,isObject:d,objectEach:y,offset:k,pick:f,splat:C}=F;class v{constructor(o,l){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=o,this.hasDragged=!1,this.options=l,this.init(o,l)}applyInactiveState(o){let l=[],p;(o||[]).forEach(function(h){p=h.series,l.push(p),p.linkedParent&&l.push(p.linkedParent),p.linkedSeries&&(l=l.concat(p.linkedSeries)),p.navigatorSeries&&l.push(p.navigatorSeries)}),this.chart.series.forEach(function(h){l.indexOf(h)===-1?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})}destroy(){const o=this;this.eventsToUnbind.forEach(l=>l()),this.eventsToUnbind=[],A.chartCount||(v.unbindDocumentMouseUp&&(v.unbindDocumentMouseUp=v.unbindDocumentMouseUp()),v.unbindDocumentTouchEnd&&(v.unbindDocumentTouchEnd=v.unbindDocumentTouchEnd())),clearInterval(o.tooltipTimeout),y(o,function(l,p){o[p]=void 0})}getSelectionMarkerAttrs(o,l){const p={args:{chartX:o,chartY:l},attrs:{},shapeType:"rect"};return L(this,"getSelectionMarkerAttrs",p,h=>{const{chart:c,mouseDownX:e=0,mouseDownY:t=0,zoomHor:i,zoomVert:a}=this;h=h.attrs;let u;h.x=c.plotLeft,h.y=c.plotTop,h.width=i?1:c.plotWidth,h.height=a?1:c.plotHeight,i&&(u=o-e,h.width=Math.abs(u),h.x=(0<u?0:u)+e),a&&(u=l-t,h.height=Math.abs(u),h.y=(0<u?0:u)+t)}),p}drag(o){const l=this.chart,p=l.options.chart;var h=l.plotLeft;const c=l.plotTop,e=l.plotWidth,t=l.plotHeight,i=this.mouseDownX||0,a=this.mouseDownY||0,u=d(p.panning)?p.panning&&p.panning.enabled:p.panning,_=p.panKey&&o[p.panKey+"Key"];let r=o.chartX,S=o.chartY,G=this.selectionMarker;if((!G||!G.touch)&&(r<h?r=h:r>h+e&&(r=h+e),S<c?S=c:S>c+t&&(S=c+t),this.hasDragged=Math.sqrt(Math.pow(i-r,2)+Math.pow(a-S,2)),10<this.hasDragged)){h=l.isInsidePlot(i-h,a-c,{visiblePlotOnly:!0});const{shapeType:Z,attrs:rt}=this.getSelectionMarkerAttrs(r,S);!l.hasCartesianSeries&&!l.mapView||!this.zoomX&&!this.zoomY||!h||_||G||(this.selectionMarker=G=l.renderer[Z](),G.attr({class:"highcharts-selection-marker",zIndex:7}).add(),l.styledMode||G.attr({fill:p.selectionMarkerFill||q("#334eff").setOpacity(.25).get()})),G&&G.attr(rt),h&&!G&&u&&l.pan(o,p.panning)}}dragStart(o){const l=this.chart;l.mouseIsDown=o.type,l.cancelClick=!1,l.mouseDownX=this.mouseDownX=o.chartX,l.mouseDownY=this.mouseDownY=o.chartY}getSelectionBox(o){const l={args:{marker:o},result:{}};return L(this,"getSelectionBox",l,p=>{p.result={x:o.attr?+o.attr("x"):o.x,y:o.attr?+o.attr("y"):o.y,width:o.attr?o.attr("width"):o.width,height:o.attr?o.attr("height"):o.height}}),l.result}drop(o){const l=this,p=this.chart,h=this.hasPinched;if(this.selectionMarker){const{x:c,y:e,width:t,height:i}=this.getSelectionBox(this.selectionMarker),a={originalEvent:o,xAxis:[],yAxis:[],x:c,y:e,width:t,height:i};let u=!!p.mapView;(this.hasDragged||h)&&(p.axes.forEach(function(_){if(_.zoomEnabled&&R(_.min)&&(h||l[{xAxis:"zoomX",yAxis:"zoomY"}[_.coll]])&&D(c)&&D(e)&&D(t)&&D(i)){var r=_.horiz;const S=o.type==="touchend"?_.minPixelPadding:0,G=_.toValue((r?c:e)+S);r=_.toValue((r?c+t:e+i)-S),a[_.coll].push({axis:_,min:Math.min(G,r),max:Math.max(G,r)}),u=!0}}),u&&L(p,"selection",a,function(_){p.zoom(x(_,h?{animation:!1}:null))})),D(p.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}p&&D(p.index)&&(N(p.container,{cursor:p._cursor}),p.cancelClick=10<this.hasDragged,p.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(o,l,p){let h;return o.forEach(function(c){var e=!(c.noSharedTooltip&&l)&&0>c.options.findNearestPointBy.indexOf("y");if(c=c.searchPoint(p,e),(e=d(c,!0)&&c.series)&&!(e=!d(h,!0))){{e=h.distX-c.distX;const t=h.dist-c.dist,i=(c.series.group&&c.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);e=e!==0&&l?e:t!==0?t:i!==0?i:h.series.index>c.series.index?-1:1}e=0<e}e&&(h=c)}),h}getChartCoordinatesFromPoint(o,l){var p=o.series;const h=p.xAxis;p=p.yAxis;const c=o.shapeArgs;if(h&&p){let e=f(o.clientX,o.plotX),t=o.plotY||0;return o.isNode&&c&&D(c.x)&&D(c.y)&&(e=c.x,t=c.y),l?{chartX:p.len+p.pos-t,chartY:h.len+h.pos-e}:{chartX:e+h.pos,chartY:t+p.pos}}if(c&&c.x&&c.y)return{chartX:c.x,chartY:c.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;var{container:o}=this.chart;const l=k(o);this.chartPosition={left:l.left,top:l.top,scaleX:1,scaleY:1};const p=o.offsetWidth;return o=o.offsetHeight,2<p&&2<o&&(this.chartPosition.scaleX=l.width/p,this.chartPosition.scaleY=l.height/o),this.chartPosition}getCoordinates(o){const l={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(p){l[p.isXAxis?"xAxis":"yAxis"].push({axis:p,value:p.toValue(o[p.horiz?"chartX":"chartY"])})}),l}getHoverData(o,l,p,h,c,e){const t=[];h=!(!h||!o);const i=function(r){return r.visible&&!(!c&&r.directTouch)&&f(r.options.enableMouseTracking,!0)};let a,u={chartX:e?e.chartX:void 0,chartY:e?e.chartY:void 0,shared:c};L(this,"beforeGetHoverData",u),a=l&&!l.stickyTracking?[l]:p.filter(r=>r.stickyTracking&&(u.filter||i)(r));const _=h||!e?o:this.findNearestKDPoint(a,c,e);return l=_&&_.series,_&&(c&&!l.noSharedTooltip?(a=p.filter(function(r){return u.filter?u.filter(r):i(r)&&!r.noSharedTooltip}),a.forEach(function(r){let S=w(r.points,function(G){return G.x===_.x&&!G.isNull});d(S)&&(r.boosted&&r.boost&&(S=r.boost.getPoint(S)),t.push(S))})):t.push(_)),u={hoverPoint:_},L(this,"afterGetHoverData",u),{hoverPoint:u.hoverPoint,hoverSeries:l,hoverPoints:t}}getPointFromEvent(o){o=o.target;let l;for(;o&&!l;)l=o.point,o=o.parentNode;return l}onTrackerMouseOut(o){o=o.relatedTarget;const l=this.chart.hoverSeries;this.isDirectTouch=!1,!l||!o||l.stickyTracking||this.inClass(o,"highcharts-tooltip")||this.inClass(o,"highcharts-series-"+l.index)&&this.inClass(o,"highcharts-tracker")||l.onMouseOut()}inClass(o,l){let p;for(;o;){if(p=O(o,"class")){if(p.indexOf(l)!==-1)return!0;if(p.indexOf("highcharts-container")!==-1)return!1}o=o.parentElement}}init(o,l){this.options=l,this.chart=o,this.runChartClick=!(!l.chart.events||!l.chart.events.click),this.pinchDown=[],this.lastValidTouch={},this.setDOMEvents(),L(this,"afterInit")}normalize(o,l){var p=o.touches,h=p?p.length?p.item(0):f(p.changedTouches,o.changedTouches)[0]:o;return l||(l=this.getChartPosition()),p=h.pageX-l.left,h=h.pageY-l.top,p/=l.scaleX,h/=l.scaleY,x(o,{chartX:Math.round(p),chartY:Math.round(h)})}onContainerClick(o){const l=this.chart,p=l.hoverPoint;o=this.normalize(o);const h=l.plotLeft,c=l.plotTop;l.cancelClick||(p&&this.inClass(o.target,"highcharts-tracker")?(L(p.series,"click",x(o,{point:p})),l.hoverPoint&&p.firePointEvent("click",o)):(x(o,this.getCoordinates(o)),l.isInsidePlot(o.chartX-h,o.chartY-c,{visiblePlotOnly:!0})&&L(l,"click",o)))}onContainerMouseDown(o){const l=((o.buttons||o.button)&1)===1;o=this.normalize(o),A.isFirefox&&o.button!==0&&this.onContainerMouseMove(o),(typeof o.button>"u"||l)&&(this.zoomOption(o),l&&o.preventDefault&&o.preventDefault(),this.dragStart(o))}onContainerMouseLeave(o){const l=K[f(v.hoverChartIndex,-1)];o=this.normalize(o),l&&o.relatedTarget&&!this.inClass(o.relatedTarget,"highcharts-tooltip")&&(l.pointer.reset(),l.pointer.chartPosition=void 0)}onContainerMouseEnter(o){delete this.chartPosition}onContainerMouseMove(o){const l=this.chart,p=l.tooltip;o=this.normalize(o),this.setHoverChartIndex(),(l.mouseIsDown==="mousedown"||this.touchSelect(o))&&this.drag(o),l.openMenu||!this.inClass(o.target,"highcharts-tracker")&&!l.isInsidePlot(o.chartX-l.plotLeft,o.chartY-l.plotTop,{visiblePlotOnly:!0})||p&&p.shouldStickOnContact(o)||(this.inClass(o.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(o))}onDocumentTouchEnd(o){const l=K[f(v.hoverChartIndex,-1)];l&&l.pointer.drop(o)}onContainerTouchMove(o){this.touchSelect(o)?this.onContainerMouseMove(o):this.touch(o)}onContainerTouchStart(o){this.touchSelect(o)?this.onContainerMouseDown(o):(this.zoomOption(o),this.touch(o,!0))}onDocumentMouseMove(o){const l=this.chart,p=l.tooltip,h=this.chartPosition;o=this.normalize(o,h),!h||l.isInsidePlot(o.chartX-l.plotLeft,o.chartY-l.plotTop,{visiblePlotOnly:!0})||p&&p.shouldStickOnContact(o)||this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(o){const l=K[f(v.hoverChartIndex,-1)];l&&l.pointer.drop(o)}pinch(o){const l=this,p=l.chart,h=l.pinchDown,c=o.touches||[],e=c.length,t=l.lastValidTouch,i=l.hasZoom,a={},u=e===1&&(l.inClass(o.target,"highcharts-tracker")&&p.runTrackerClick||l.runChartClick),_={};var r=l.chart.tooltip;r=e===1&&f(r&&r.options.followTouchMove,!0);let S=l.selectionMarker;1<e?l.initiated=!0:r&&(l.initiated=!1),i&&l.initiated&&!u&&o.cancelable!==!1&&o.preventDefault(),[].map.call(c,function(G){return l.normalize(G)}),o.type==="touchstart"?([].forEach.call(c,function(G,Z){h[Z]={chartX:G.chartX,chartY:G.chartY}}),t.x=[h[0].chartX,h[1]&&h[1].chartX],t.y=[h[0].chartY,h[1]&&h[1].chartY],p.axes.forEach(function(G){if(G.zoomEnabled){const Z=p.bounds[G.horiz?"h":"v"],rt=G.minPixelPadding,j=G.toPixels(Math.min(f(G.options.min,G.dataMin),G.dataMin)),s=G.toPixels(Math.max(f(G.options.max,G.dataMax),G.dataMax)),T=Math.max(j,s);Z.min=Math.min(G.pos,Math.min(j,s)-rt),Z.max=Math.max(G.pos+G.len,T+rt)}}),l.res=!0):r?this.runPointActions(l.normalize(o)):h.length&&(L(p,"touchpan",{originalEvent:o},()=>{S||(l.selectionMarker=S=x({destroy:Y,touch:!0},p.plotBox)),l.pinchTranslate(h,c,a,S,_,t),l.hasPinched=i,l.scaleGroups(a,_)}),l.res&&(l.res=!1,this.reset(!1,0)))}pinchTranslate(o,l,p,h,c,e){this.zoomHor&&this.pinchTranslateDirection(!0,o,l,p,h,c,e),this.zoomVert&&this.pinchTranslateDirection(!1,o,l,p,h,c,e)}pinchTranslateDirection(o,l,p,h,c,e,t,i){const a=this.chart,u=o?"x":"y",_=o?"X":"Y",r="chart"+_,S=o?"width":"height",G=a["plot"+(o?"Left":"Top")],Z=a.inverted,rt=a.bounds[o?"h":"v"],j=l.length===1,s=l[0][r],T=!j&&l[1][r];l=function(){typeof g=="number"&&20<Math.abs(s-T)&&(V=i||Math.abs(n-g)/Math.abs(s-T)),I=(G-n)/V+s,z=a["plot"+(o?"Width":"Height")]/V};let z,I,V=i||1,n=p[0][r],g=!j&&p[1][r],m;l(),p=I,p<rt.min?(p=rt.min,m=!0):p+z>rt.max&&(p=rt.max-z,m=!0),m?(n-=.8*(n-t[u][0]),typeof g=="number"&&(g-=.8*(g-t[u][1])),l()):t[u]=[n,g],Z||(e[u]=I-G,e[S]=z),e=Z?1/V:V,c[S]=z,c[u]=p,h[Z?o?"scaleY":"scaleX":"scale"+_]=V,h["translate"+_]=e*G+(n-e*s)}reset(o,l){const p=this.chart,h=p.hoverSeries,c=p.hoverPoint,e=p.hoverPoints,t=p.tooltip,i=t&&t.shared?e:c;o&&i&&C(i).forEach(function(a){a.series.isCartesian&&typeof a.plotX>"u"&&(o=!1)}),o?t&&i&&C(i).length&&(t.refresh(i),t.shared&&e?e.forEach(function(a){a.setState(a.state,!0),a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):c&&(c.setState(c.state,!0),p.axes.forEach(function(a){a.crosshair&&c.series[a.coll]===a&&a.drawCrosshair(null,c)}))):(c&&c.onMouseOut(),e&&e.forEach(function(a){a.setState()}),h&&h.onMouseOut(),t&&t.hide(l),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),p.axes.forEach(function(a){a.hideCrosshair()}),this.hoverX=p.hoverPoints=p.hoverPoint=null)}runPointActions(o,l,p){const h=this.chart,c=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,e=c?c.shared:!1;let t=l||h.hoverPoint,i=t&&t.series||h.hoverSeries;l=this.getHoverData(t,i,h.series,(!o||o.type!=="touchmove")&&(!!l||i&&i.directTouch&&this.isDirectTouch),e,o),t=l.hoverPoint,i=l.hoverSeries;const a=l.hoverPoints;l=i&&i.tooltipOptions.followPointer&&!i.tooltipOptions.split;const u=e&&i&&!i.noSharedTooltip;if(t&&(p||t!==h.hoverPoint||c&&c.isHidden)){if((h.hoverPoints||[]).forEach(function(_){a.indexOf(_)===-1&&_.setState()}),h.hoverSeries!==i&&i.onMouseOver(),this.applyInactiveState(a),(a||[]).forEach(function(_){_.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!t.series)return;h.hoverPoints=a,h.hoverPoint=t,t.firePointEvent("mouseOver",void 0,()=>{c&&t&&c.refresh(u?a:t,o)})}else l&&c&&!c.isHidden&&(p=c.getAnchor([{}],o),h.isInsidePlot(p[0],p[1],{visiblePlotOnly:!0})&&c.updatePosition({plotX:p[0],plotY:p[1]}));this.unDocMouseMove||(this.unDocMouseMove=U(h.container.ownerDocument,"mousemove",function(_){const r=K[v.hoverChartIndex];r&&r.pointer.onDocumentMouseMove(_)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(_){const r=f((_.crosshair||{}).snap,!0);let S;r&&((S=h.hoverPoint)&&S.series[_.coll]===_||(S=w(a,G=>G.series&&G.series[_.coll]===_))),S||!r?_.drawCrosshair(o,S):_.hideCrosshair()})}scaleGroups(o,l){const p=this.chart;p.series.forEach(function(h){const c=o||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||p.mapView)&&(h.group.attr(c),h.markerGroup&&(h.markerGroup.attr(c),h.markerGroup.clip(l?p.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(c))}),p.clipRect.attr(l||p.clipBox)}setDOMEvents(){const o=this.chart.container,l=o.ownerDocument;o.onmousedown=this.onContainerMouseDown.bind(this),o.onmousemove=this.onContainerMouseMove.bind(this),o.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(U(o,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(U(o,"mouseleave",this.onContainerMouseLeave.bind(this))),v.unbindDocumentMouseUp||(v.unbindDocumentMouseUp=U(l,"mouseup",this.onDocumentMouseUp.bind(this)));let p=this.chart.renderTo.parentElement;for(;p&&p.tagName!=="BODY";)this.eventsToUnbind.push(U(p,"scroll",()=>{delete this.chartPosition})),p=p.parentElement;A.hasTouch&&(this.eventsToUnbind.push(U(o,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(U(o,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),v.unbindDocumentTouchEnd||(v.unbindDocumentTouchEnd=U(l,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(){const o=this.chart,l=A.charts[f(v.hoverChartIndex,-1)];l&&l!==o&&l.pointer.onContainerMouseLeave({relatedTarget:o.container}),l&&l.mouseIsDown||(v.hoverChartIndex=o.index)}touch(o,l){const p=this.chart;let h;this.setHoverChartIndex(),o.touches.length===1?(o=this.normalize(o),p.isInsidePlot(o.chartX-p.plotLeft,o.chartY-p.plotTop,{visiblePlotOnly:!0})&&!p.openMenu?(l&&this.runPointActions(o),o.type==="touchmove"&&(l=this.pinchDown,h=l[0]?4<=Math.sqrt(Math.pow(l[0].chartX-o.chartX,2)+Math.pow(l[0].chartY-o.chartY,2)):!1),f(h,!0)&&this.pinch(o)):l&&this.reset()):o.touches.length===2&&this.pinch(o)}touchSelect(o){return!(!this.chart.zooming.singleTouch||!o.touches||o.touches.length!==1)}zoomOption(o){const l=this.chart,p=l.inverted;var h=l.zooming.type||"";/touch/.test(o.type)&&(h=f(l.zooming.pinchType,h)),this.zoomX=o=/x/.test(h),this.zoomY=h=/y/.test(h),this.zoomHor=o&&!p||h&&p,this.zoomVert=h&&!p||o&&p,this.hasZoom=o||h}}return function(b){const o=[],l=[];b.compose=function(p){F.pushUnique(l,p)&&U(p,"beforeRender",function(){this.pointer=new b(this,this.options)})},b.dissolve=function(){for(let p=0,h=o.length;p<h;++p)o[p]();o.length=0}}(v||(v={})),v}),st(P,"Core/Legend/Legend.js",[P["Core/Animation/AnimationUtilities.js"],P["Core/Templating.js"],P["Core/Globals.js"],P["Core/Series/Point.js"],P["Core/Renderer/RendererUtilities.js"],P["Core/Utilities.js"]],function(B,A,F,q,K,Y){const{animObject:U,setAnimation:O}=B,{format:N}=A,{marginNames:R}=F,{distribute:x}=K,{addEvent:w,createElement:L,css:D,defined:d,discardElement:y,find:k,fireEvent:f,isNumber:C,merge:v,pick:b,relativeLength:o,stableSort:l,syncTimeout:p}=Y;class h{constructor(e,t){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=e,this.init(e,t)}init(e,t){this.chart=e,this.setOptions(t),t.enabled&&(this.render(),w(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),w(this.chart,"render",()=>{this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(e){const t=b(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=v(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=b(e.symbolWidth,16),this.pages=[],this.proximate=e.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(e,t){const i=this.chart;this.setOptions(v(!0,this.options,e)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,b(t,!0)&&i.redraw(),f(this,"afterUpdate")}colorizeItem(e,t){const{group:i,label:a,line:u,symbol:_}=e.legendItem||{};if(i&&i[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:r}=this,S=r.color,G=t&&e.color||S,Z=e.options&&e.options.marker;let rt={fill:G};a==null||a.css(v(t?this.itemStyle:r)),u==null||u.attr({stroke:G}),_&&(Z&&_.isMarker&&(rt=e.pointAttribs(),t||(rt.stroke=rt.fill=S)),_.attr(rt))}f(this,"afterColorizeItem",{item:e,visible:t})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){const{group:t,x:i=0,y:a=0}=e.legendItem||{};var u=this.options,_=u.symbolPadding;const r=!u.rtl;u=e.checkbox,t&&t.element&&(_={translateX:r?i:this.legendWidth-i-2*_-4,translateY:a},t[d(t.translateY)?"animate":"attr"](_,void 0,()=>{f(this,"afterPositionItem",{item:e})})),u&&(u.x=i,u.y=a)}destroyItem(e){const t=e.checkbox,i=e.legendItem||{};for(const a of["group","label","line","symbol"])i[a]&&(i[a]=i[a].destroy());t&&y(t),e.legendItem=void 0}destroy(){for(const e of this.getAllItems())this.destroyItem(e);for(const e of"clipRect up down pager nav box title group".split(" "))this[e]&&(this[e]=this[e].destroy());this.display=null}positionCheckboxes(){const e=this.group&&this.group.alignAttr,t=this.clipHeight||this.legendHeight,i=this.titleHeight;let a;e&&(a=e.translateY,this.allItems.forEach(function(u){const _=u.checkbox;let r;_&&(r=a+i+_.y+(this.scrollOffset||0)+3,D(_,{left:e.translateX+u.checkboxOffset+_.x-20+"px",top:r+"px",display:this.proximate||r>a-6&&r<a+t-6?"":"none"}))},this))}renderTitle(){var e=this.options;const t=this.padding,i=e.title;let a=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,t-3,t-4,void 0,void 0,void 0,e.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),e=this.title.getBBox(),a=e.height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:a})),this.titleHeight=a}setText(e){const t=this.options;e.legendItem.label.attr({text:t.labelFormat?N(t.labelFormat,e,this.chart):t.labelFormatter.call(e)})}renderItem(e){const t=e.legendItem=e.legendItem||{};var i=this.chart,a=i.renderer;const u=this.options,_=this.symbolWidth,r=u.symbolPadding||0,S=this.itemStyle,G=this.itemHiddenStyle,Z=u.layout==="horizontal"?b(u.itemDistance,20):0,rt=!u.rtl,j=!e.series,s=!j&&e.series.drawLegendSymbol?e.series:e;var T=s.options;const z=this.createCheckboxForItem&&T&&T.showCheckbox,I=u.useHTML,V=e.options.className;let n=t.label;T=_+r+Z+(z?20:0),n||(t.group=a.g("legend-item").addClass("highcharts-"+s.type+"-series highcharts-color-"+e.colorIndex+(V?" "+V:"")+(j?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.label=n=a.text("",rt?_+r:-r,this.baseline||0,I),i.styledMode||n.css(v(e.visible?S:G)),n.attr({align:rt?"left":"right",zIndex:2}).add(t.group),this.baseline||(this.fontMetrics=a.fontMetrics(n),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,n.attr("y",this.baseline),this.symbolHeight=b(u.symbolHeight,this.fontMetrics.f),u.squareSymbol&&(this.symbolWidth=b(u.symbolWidth,Math.max(this.symbolHeight,16)),T=this.symbolWidth+r+Z+(z?20:0),rt&&n.attr("x",this.symbolWidth+r))),s.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,n,I)),z&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),!i.styledMode&&S.width||n.css({width:(u.itemWidth||this.widthOption||i.spacingBox.width)-T+"px"}),this.setText(e),i=n.getBBox(),a=this.fontMetrics&&this.fontMetrics.h||0,e.itemWidth=e.checkboxOffset=u.itemWidth||t.labelWidth||i.width+T,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(t.labelHeight||(i.height>1.5*a?i.height:a))}layoutItem(e){var t=this.options;const i=this.padding,a=t.layout==="horizontal",u=e.itemHeight,_=this.itemMarginBottom,r=this.itemMarginTop,S=a?b(t.itemDistance,20):0,G=this.maxLegendWidth;t=t.alignColumns&&this.totalItemWidth>G?this.maxItemWidth:e.itemWidth;const Z=e.legendItem||{};a&&this.itemX-i+t>G&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=r+this.lastLineHeight+_),this.lastLineHeight=0),this.lastItemY=r+this.itemY+_,this.lastLineHeight=Math.max(u,this.lastLineHeight),Z.x=this.itemX,Z.y=this.itemY,a?this.itemX+=t:(this.itemY+=r+u+_,this.lastLineHeight=u),this.offsetWidth=this.widthOption||Math.max((a?this.itemX-i-(e.checkbox?0:S):t)+i,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){const i=t&&t.options;t&&b(i.showInLegend,d(i.linkedTo)?!1:void 0,!0)&&(e=e.concat((t.legendItem||{}).labels||(i.legendType==="point"?t.data:t)))}),f(this,"afterGetAllItems",{allItems:e}),e}getAlignment(){const e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,t){const i=this.chart,a=this.options,u=this.getAlignment();u&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(_,r){_.test(u)&&!d(e[r])&&(i[R[r]]=Math.max(i[R[r]],i.legend[(r+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][r]*a[r%2?"x":"y"]+b(a.margin,12)+t[r]+(i.titleOffset[r]||0)))})}proximatePositions(){const e=this.chart,t=[],i=this.options.align==="left";this.allItems.forEach(function(u){var _,r=i;let S;u.yAxis&&(u.xAxis.options.reversed&&(r=!r),u.points&&(_=k(r?u.points:u.points.slice(0).reverse(),function(G){return C(G.plotY)})),r=this.itemMarginTop+u.legendItem.label.getBBox().height+this.itemMarginBottom,S=u.yAxis.top-e.plotTop,u.visible?(_=_?_.plotY:u.yAxis.height,_+=S-.3*r):_=S+u.yAxis.height,t.push({target:_,size:r,item:u}))},this);let a;for(const u of x(t,e.plotHeight))a=u.item.legendItem||{},C(u.pos)&&(a.y=e.plotTop-e.spacing[0]+u.pos)}render(){const e=this.chart,t=e.renderer,i=this.options,a=this.padding;var u=this.getAllItems();let _,r=this.group,S=this.box;this.itemX=a,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=o(i.width,e.spacingBox.width-a);var G=e.spacingBox.width-2*a-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(G/=2),this.maxLegendWidth=this.widthOption||G,r||(this.group=r=t.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=t.g().attr({zIndex:1}).add(r),this.scrollGroup=t.g().add(this.contentGroup)),this.renderTitle(),l(u,(Z,rt)=>(Z.options&&Z.options.legendIndex||0)-(rt.options&&rt.options.legendIndex||0)),i.reversed&&u.reverse(),this.allItems=u,this.display=G=!!u.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,u.forEach(this.renderItem,this),u.forEach(this.layoutItem,this),u=(this.widthOption||this.offsetWidth)+a,_=this.lastItemY+this.lastLineHeight+this.titleHeight,_=this.handleOverflow(_),_+=a,S||(this.box=S=t.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(r)),e.styledMode||S.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<u&&0<_&&S[S.placed?"animate":"attr"](S.crisp.call({},{x:0,y:0,width:u,height:_},S.strokeWidth())),r[G?"show":"hide"](),e.styledMode&&r.getStyle("display")==="none"&&(u=_=0),this.legendWidth=u,this.legendHeight=_,G&&this.align(),this.proximate||this.positionItems(),f(this,"afterRender")}align(e=this.chart.spacingBox){const t=this.chart,i=this.options;let a=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<t.titleOffset[0]?a+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<t.titleOffset[2]&&(a-=t.titleOffset[2]),a!==e.y&&(e=v(e,{y:a})),t.hasRendered||(this.group.placed=!1),this.group.align(v(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,e)}handleOverflow(e){const t=this,i=this.chart,a=i.renderer,u=this.options;var _=u.y;const r=u.verticalAlign==="top",S=this.padding,G=u.maxHeight,Z=u.navigation,rt=b(Z.animation,!0),j=Z.arrowSize||12,s=this.pages,T=this.allItems,z=function(W){typeof W=="number"?H.attr({height:W}):H&&(t.clipRect=H.destroy(),t.contentGroup.clip()),t.contentGroup.div&&(t.contentGroup.div.style.clip=W?"rect("+S+"px,9999px,"+(S+W)+"px,0)":"auto")},I=function(W){return t[W]=a.circle(0,0,1.3*j).translate(j/2,j/2).add(m),i.styledMode||t[W].attr("fill","rgba(0,0,0,0.0001)"),t[W]};let V,n,g;_=i.spacingBox.height+(r?-_:_)-S;let m=this.nav,H=this.clipRect;return u.layout!=="horizontal"||u.verticalAlign==="middle"||u.floating||(_/=2),G&&(_=Math.min(_,G)),s.length=0,e&&0<_&&e>_&&Z.enabled!==!1?(this.clipHeight=V=Math.max(_-20-this.titleHeight-S,0),this.currentPage=b(this.currentPage,1),this.fullHeight=e,T.forEach((W,$)=>{g=W.legendItem||{},W=g.y||0;const et=Math.round(g.label.getBBox().height);let nt=s.length;(!nt||W-s[nt-1]>V&&(n||W)!==s[nt-1])&&(s.push(n||W),nt++),g.pageIx=nt-1,n&&((T[$-1].legendItem||{}).pageIx=nt-1),$===T.length-1&&W+et-s[nt-1]>V&&W>s[nt-1]&&(s.push(W),g.pageIx=nt),W!==n&&(n=W)}),H||(H=t.clipRect=a.clipRect(0,S-2,9999,0),t.contentGroup.clip(H)),z(V),m||(this.nav=m=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,j,j).add(m),I("upTracker").on("click",function(){t.scroll(-1,rt)}),this.pager=a.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&Z.style&&this.pager.css(Z.style),this.pager.add(m),this.down=a.symbol("triangle-down",0,0,j,j).add(m),I("downTracker").on("click",function(){t.scroll(1,rt)})),t.scroll(0),e=_):m&&(z(),this.nav=m.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,t){const i=this.chart,a=this.pages,u=a.length,_=this.clipHeight,r=this.options.navigation,S=this.pager,G=this.padding;let Z=this.currentPage+e;Z>u&&(Z=u),0<Z&&(typeof t<"u"&&O(t,i),this.nav.attr({translateX:G,translateY:_+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(rt){rt.attr({class:Z===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),S.attr({text:Z+"/"+u}),[this.down,this.downTracker].forEach(function(rt){rt.attr({x:18+this.pager.getBBox().width,class:Z===u?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:Z===1?r.inactiveColor:r.activeColor}),this.upTracker.css({cursor:Z===1?"default":"pointer"}),this.down.attr({fill:Z===u?r.inactiveColor:r.activeColor}),this.downTracker.css({cursor:Z===u?"default":"pointer"})),this.scrollOffset=-a[Z-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=Z,this.positionCheckboxes(),e=U(b(t,i.renderer.globalAnimation,!0)),p(()=>{f(this,"afterScroll",{currentPage:Z})},e.duration))}setItemEvents(e,t,i){const a=this,u=e.legendItem||{},_=a.chart.renderer.boxWrapper,r=e instanceof q,S="highcharts-legend-"+(r?"point":"series")+"-active",G=a.chart.styledMode;i=i?[t,u.symbol]:[u.group];const Z=rt=>{a.allItems.forEach(j=>{e!==j&&[j].concat(j.linkedSeries||[]).forEach(s=>{s.setState(rt,!r)})})};for(const rt of i)rt&&rt.on("mouseover",function(){e.visible&&Z("inactive"),e.setState("hover"),e.visible&&_.addClass(S),G||t.css(a.options.itemHoverStyle)}).on("mouseout",function(){a.chart.styledMode||t.css(v(e.visible?a.itemStyle:a.itemHiddenStyle)),Z(""),_.removeClass(S),e.setState()}).on("click",function(j){const s=function(){e.setVisible&&e.setVisible(),Z(e.visible?"inactive":"")};_.removeClass(S),j={browserEvent:j},e.firePointEvent?e.firePointEvent("legendItemClick",j,s):f(e,"legendItemClick",j,s)})}createCheckboxForItem(e){e.checkbox=L("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),w(e.checkbox,"click",function(t){f(e.series||e,"checkboxClick",{checked:t.target.checked,item:e},function(){e.select()})})}}return function(c){const e=[];c.compose=function(t){Y.pushUnique(e,t)&&w(t,"beforeMargins",function(){this.legend=new c(this,this.options.legend)})}}(h||(h={})),h}),st(P,"Core/Legend/LegendSymbol.js",[P["Core/Utilities.js"]],function(B){const{extend:A,merge:F,pick:q}=B;var K;return function(Y){Y.lineMarker=function(U,O){O=this.legendItem=this.legendItem||{};var N=this.options;const R=U.symbolWidth,x=U.symbolHeight,w=x/2,L=this.chart.renderer,D=O.group;U=U.baseline-Math.round(.3*U.fontMetrics.b);let d={},y=N.marker,k=0;this.chart.styledMode||(d={"stroke-width":Math.min(N.lineWidth||0,24)},N.dashStyle?d.dashstyle=N.dashStyle:N.linecap!=="square"&&(d["stroke-linecap"]="round")),O.line=L.path().addClass("highcharts-graph").attr(d).add(D),d["stroke-linecap"]&&(k=Math.min(O.line.strokeWidth(),R)/2),R&&O.line.attr({d:[["M",k,U],["L",R-k,U]]}),y&&y.enabled!==!1&&R&&(N=Math.min(q(y.radius,w),w),this.symbol.indexOf("url")===0&&(y=F(y,{width:x,height:x}),N=0),O.symbol=O=L.symbol(this.symbol,R/2-N,U-N,2*N,2*N,A({context:"legend"},y)).addClass("highcharts-point").add(D),O.isMarker=!0)},Y.rectangle=function(U,O){O=O.legendItem||{};const N=U.symbolHeight,R=U.options.squareSymbol;O.symbol=this.chart.renderer.rect(R?(U.symbolWidth-N)/2:0,U.baseline-N+1,R?N:U.symbolWidth,N,q(U.options.symbolRadius,N/2)).addClass("highcharts-point").attr({zIndex:3}).add(O.group)}}(K||(K={})),K}),st(P,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:1,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){const{numberFormatter:B}=this.series.chart;return typeof this.y!="number"?"":B(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),st(P,"Core/Series/SeriesRegistry.js",[P["Core/Globals.js"],P["Core/Defaults.js"],P["Core/Series/Point.js"],P["Core/Utilities.js"]],function(B,A,F,q){const{defaultOptions:K}=A,{extendClass:Y,merge:U}=q;var O;return function(N){function R(x,w){const L=K.plotOptions||{},D=w.defaultOptions,d=w.prototype;d.type=x,d.pointClass||(d.pointClass=F),D&&(L[x]=D),N.seriesTypes[x]=w}N.seriesTypes=B.seriesTypes,N.registerSeriesType=R,N.seriesType=function(x,w,L,D,d){const y=K.plotOptions||{};return w=w||"",y[x]=U(y[w],L),R(x,Y(N.seriesTypes[w]||function(){},D)),N.seriesTypes[x].prototype.type=x,d&&(N.seriesTypes[x].prototype.pointClass=Y(F,d)),N.seriesTypes[x]}}(O||(O={})),O}),st(P,"Core/Series/Series.js",[P["Core/Animation/AnimationUtilities.js"],P["Core/Defaults.js"],P["Core/Foundation.js"],P["Core/Globals.js"],P["Core/Legend/LegendSymbol.js"],P["Core/Series/Point.js"],P["Core/Series/SeriesDefaults.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Renderer/SVG/SVGElement.js"],P["Core/Utilities.js"]],function(B,A,F,q,K,Y,U,O,N,R){const{animObject:x,setAnimation:w}=B,{defaultOptions:L}=A,{registerEventOptions:D}=F,{hasTouch:d,svg:y,win:k}=q,{seriesTypes:f}=O,{arrayMax:C,arrayMin:v,clamp:b,correctFloat:o,defined:l,diffObjects:p,erase:h,error:c,extend:e,find:t,fireEvent:i,getClosestDistance:a,getNestedProperty:u,insertItem:_,isArray:r,isNumber:S,isString:G,merge:Z,objectEach:rt,pick:j,removeEvent:s,splat:T,syncTimeout:z}=R;class I{constructor(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}init(n,g){i(this,"init",{options:g});const m=this,H=n.series;this.eventsToUnbind=[],m.chart=n,m.options=m.setOptions(g),g=m.options,m.linkedSeries=[],m.bindAxes(),e(m,{name:g.name,state:"",visible:g.visible!==!1,selected:g.selected===!0}),D(this,g);const W=g.events;(W&&W.click||g.point&&g.point.events&&g.point.events.click||g.allowPointSelect)&&(n.runTrackerClick=!0),m.getColor(),m.getSymbol(),m.parallelArrays.forEach(function(et){m[et+"Data"]||(m[et+"Data"]=[])}),m.isCartesian&&(n.hasCartesianSeries=!0);let $;H.length&&($=H[H.length-1]),m._i=j($&&$._i,-1)+1,m.opacity=m.options.opacity,n.orderItems("series",_(this,H)),g.dataSorting&&g.dataSorting.enabled?m.setDataSortingOptions():m.points||m.data||m.setData(g.data,!1),i(this,"afterInit")}is(n){return f[n]&&this instanceof f[n]}bindAxes(){const n=this,g=n.options,m=n.chart;let H;i(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(W){m[W].forEach(function($){H=$.options,(j(g[W],0)===$.index||typeof g[W]<"u"&&g[W]===H.id)&&(_(n,$.series),n[W]=$,$.isDirty=!0)}),n[W]||n.optionalAxis===W||c(18,!0,m)})}),i(this,"afterBindAxes")}updateParallelArrays(n,g,m){const H=n.series,W=S(g)?function($){const et=$==="y"&&H.toYData?H.toYData(n):n[$];H[$+"Data"][g]=et}:function($){Array.prototype[g].apply(H[$+"Data"],m)};H.parallelArrays.forEach(W)}hasData(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0<this.yData.length}autoIncrement(n){var g=this.options;const m=g.pointIntervalUnit,H=g.relativeXValue,W=this.chart.time;let $=this.xIncrement,et;return $=j($,g.pointStart,0),this.pointInterval=et=j(this.pointInterval,g.pointInterval,1),H&&S(n)&&(et*=n),m&&(g=new W.Date($),m==="day"?W.set("Date",g,W.get("Date",g)+et):m==="month"?W.set("Month",g,W.get("Month",g)+et):m==="year"&&W.set("FullYear",g,W.get("FullYear",g)+et),et=g.getTime()-$),H&&S(n)?$+et:(this.xIncrement=$+et,$)}setDataSortingOptions(){const n=this.options;e(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),l(n.pointRange)||(n.pointRange=1)}setOptions(n){var g,m;const H=this.chart;var W=H.options.plotOptions,$=H.userOptions||{};const et=Z(n);n=H.styledMode;const nt={plotOptions:W,userOptions:et};i(this,"setOptions",nt);const at=nt.plotOptions[this.type];$=$.plotOptions||{};const ht=$.series||{},pt=L.plotOptions[this.type]||{},E=$[this.type]||{};return this.userOptions=nt.userOptions,W=Z(at,W.series,E,et),this.tooltipOptions=Z(L.tooltip,(g=L.plotOptions.series)===null||g===void 0?void 0:g.tooltip,pt==null?void 0:pt.tooltip,H.userOptions.tooltip,(m=$.series)===null||m===void 0?void 0:m.tooltip,E.tooltip,et.tooltip),this.stickyTracking=j(et.stickyTracking,E.stickyTracking,ht.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:W.stickyTracking),at.marker===null&&delete W.marker,this.zoneAxis=W.zoneAxis,m=this.zones=(W.zones||[]).slice(),!W.negativeColor&&!W.negativeFillColor||W.zones||(g={value:W[this.zoneAxis+"Threshold"]||W.threshold||0,className:"highcharts-negative"},n||(g.color=W.negativeColor,g.fillColor=W.negativeFillColor),m.push(g)),m.length&&l(m[m.length-1].value)&&m.push(n?{}:{color:this.color,fillColor:this.fillColor}),i(this,"afterSetOptions",{options:W}),W}getName(){return j(this.options.name,"Series "+(this.index+1))}getCyclic(n,g,m){const H=this.chart,W=`${n}Index`,$=`${n}Counter`,et=(m==null?void 0:m.length)||H.options.chart.colorCount;if(!g){var nt=j(n==="color"?this.options.colorIndex:void 0,this[W]);l(nt)||(H.series.length||(H[$]=0),nt=H[$]%et,H[$]+=1),m&&(g=m[nt])}typeof nt<"u"&&(this[W]=nt),this[n]=g}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||L.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)}findPointIndex(n,g){const m=n.id,H=n.x,W=this.points;var $=this.options.dataSorting,et;let nt,at;if(m)$=this.chart.get(m),$ instanceof Y&&(et=$);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(et=ht=>!ht.touched&&ht.index===n.index,$&&$.matchByName?et=ht=>!ht.touched&&ht.name===n.name:this.options.relativeXValue&&(et=ht=>!ht.touched&&ht.options.x===n.x),et=t(W,et),!et))return;return et&&(at=et&&et.index,typeof at<"u"&&(nt=!0)),typeof at>"u"&&S(H)&&(at=this.xData.indexOf(H,g)),at!==-1&&typeof at<"u"&&this.cropped&&(at=at>=this.cropStart?at-this.cropStart:at),!nt&&S(at)&&W[at]&&W[at].touched&&(at=void 0),at}updateData(n,g){const m=this.options,H=m.dataSorting,W=this.points,$=[],et=this.requireSorting,nt=n.length===W.length;let at,ht,pt,E=!0;if(this.xIncrement=null,n.forEach(function(M,J){var X=l(M)&&this.pointClass.prototype.optionsToObject.call({series:this},M)||{};const tt=X.x;X.id||S(tt)?(X=this.findPointIndex(X,pt),X===-1||typeof X>"u"?$.push(M):W[X]&&M!==m.data[X]?(W[X].update(M,!1,null,!1),W[X].touched=!0,et&&(pt=X+1)):W[X]&&(W[X].touched=!0),(!nt||J!==X||H&&H.enabled||this.hasDerivedData)&&(at=!0)):$.push(M)},this),at)for(n=W.length;n--;)(ht=W[n])&&!ht.touched&&ht.remove&&ht.remove(!1,g);else!nt||H&&H.enabled?E=!1:(n.forEach(function(M,J){M===W[J].y||W[J].destroyed||W[J].update(M,!1,null,!1)}),$.length=0);return W.forEach(function(M){M&&(M.touched=!1)}),E?($.forEach(function(M){this.addPoint(M,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=C(this.xData),this.autoIncrement()),!0):!1}setData(n,g=!0,m,H){var W;const $=this,et=$.points,nt=et&&et.length||0,at=$.options,ht=$.chart,pt=at.dataSorting,E=$.xAxis,M=at.turboThreshold,J=this.xData,X=this.yData;var tt=$.pointArrayMap;tt=tt&&tt.length;const dt=at.keys;let ct,xt=0,vt=1,gt=null;if(!ht.options.chart.allowMutatingData){at.data&&delete $.options.data,$.userOptions.data&&delete $.userOptions.data;var mt=Z(!0,n)}if(n=mt||n||[],mt=n.length,pt&&pt.enabled&&(n=this.sortData(n)),ht.options.chart.allowMutatingData&&H!==!1&&mt&&nt&&!$.cropped&&!$.hasGroupedData&&$.visible&&!$.boosted&&(ct=this.updateData(n,m)),!ct){if($.xIncrement=null,$.colorCounter=0,this.parallelArrays.forEach(function(Ct){$[Ct+"Data"].length=0}),M&&mt>M)if(gt=$.getFirstValidPoint(n),S(gt))for(m=0;m<mt;m++)J[m]=this.autoIncrement(),X[m]=n[m];else if(r(gt))if(tt)if(gt.length===tt)for(m=0;m<mt;m++)J[m]=this.autoIncrement(),X[m]=n[m];else for(m=0;m<mt;m++)H=n[m],J[m]=H[0],X[m]=H.slice(1,tt+1);else if(dt&&(xt=dt.indexOf("x"),vt=dt.indexOf("y"),xt=0<=xt?xt:0,vt=0<=vt?vt:1),gt.length===1&&(vt=0),xt===vt)for(m=0;m<mt;m++)J[m]=this.autoIncrement(),X[m]=n[m][vt];else for(m=0;m<mt;m++)H=n[m],J[m]=H[xt],X[m]=H[vt];else c(12,!1,ht);else for(m=0;m<mt;m++)H={series:$},$.pointClass.prototype.applyOptions.apply(H,[n[m]]),$.updateParallelArrays(H,m);for(X&&G(X[0])&&c(14,!0,ht),$.data=[],$.options.data=$.userOptions.data=n,m=nt;m--;)(W=et[m])===null||W===void 0||W.destroy();E&&(E.minRange=E.userMinRange),$.isDirty=ht.isDirtyBox=!0,$.isDirtyData=!!et,m=!1}at.legendType==="point"&&(this.processData(),this.generatePoints()),g&&ht.redraw(m)}sortData(n){const g=this,m=g.options.dataSorting.sortKey||"y",H=function(W,$){return l($)&&W.pointClass.prototype.optionsToObject.call({series:W},$)||{}};return n.forEach(function(W,$){n[$]=H(g,W),n[$].index=$},this),n.concat().sort((W,$)=>(W=u(m,W),$=u(m,$),$<W?-1:$>W?1:0)).forEach(function(W,$){W.x=$},this),g.linkedSeries&&g.linkedSeries.forEach(function(W){const $=W.options,et=$.data;$.dataSorting&&$.dataSorting.enabled||!et||(et.forEach(function(nt,at){et[at]=H(W,nt),n[at]&&(et[at].x=n[at].x,et[at].index=at)}),W.setData(et,!1))}),n}getProcessedData(n){const g=this;var m=g.xAxis,H=g.options;const W=H.cropThreshold,$=n||g.getExtremesFromAll||H.getExtremesFromAll,et=m==null?void 0:m.logarithmic,nt=g.isCartesian;let at=0,ht;n=g.xData,H=g.yData;let pt=!1;const E=n.length;if(m){var M=m.getExtremes();ht=M.min,M=M.max,pt=!(!m.categories||m.names.length)}if(nt&&g.sorted&&!$&&(!W||E>W||g.forceCrop)){if(n[E-1]<ht||n[0]>M)n=[],H=[];else if(g.yData&&(n[0]<ht||n[E-1]>M)){var J=this.cropData(g.xData,g.yData,ht,M);n=J.xData,H=J.yData,at=J.start,J=!0}}return m=a([et?n.map(et.log2lin):n],()=>g.requireSorting&&!pt&&c(15,!1,g.chart)),{xData:n,yData:H,cropped:J,cropStart:at,closestPointRange:m}}processData(n){const g=this.xAxis;if(this.isCartesian&&!this.isDirty&&!g.isDirty&&!this.yAxis.isDirty&&!n)return!1;n=this.getProcessedData(),this.cropped=n.cropped,this.cropStart=n.cropStart,this.processedXData=n.xData,this.processedYData=n.yData,this.closestPointRange=this.basePointRange=n.closestPointRange,i(this,"afterProcessData")}cropData(n,g,m,H,W){const $=n.length;let et,nt=0,at=$;for(W=j(W,this.cropShoulder),et=0;et<$;et++)if(n[et]>=m){nt=Math.max(0,et-W);break}for(m=et;m<$;m++)if(n[m]>H){at=m+W;break}return{xData:n.slice(nt,at),yData:g.slice(nt,at),start:nt,end:at}}generatePoints(){var n=this.options;const g=this.processedData||n.data,m=this.processedXData,H=this.processedYData,W=this.pointClass,$=m.length,et=this.cropStart||0,nt=this.hasGroupedData,at=n.keys,ht=[];n=n.dataGrouping&&n.dataGrouping.groupAll?et:0;let pt,E,M,J=this.data;if(!J&&!nt){var X=[];X.length=g.length,J=this.data=X}for(at&&nt&&(this.options.keys=!1),M=0;M<$;M++)X=et+M,nt?(E=new W().init(this,[m[M]].concat(T(H[M]))),E.dataGroup=this.groupMap[n+M],E.dataGroup.options&&(E.options=E.dataGroup.options,e(E,E.dataGroup.options),delete E.dataLabels)):(E=J[X])||typeof g[X]>"u"||(J[X]=E=new W().init(this,g[X],m[M])),E&&(E.index=nt?n+M:X,ht[M]=E);if(this.options.keys=at,J&&($!==(pt=J.length)||nt))for(M=0;M<pt;M++)M!==et||nt||(M+=$),J[M]&&(J[M].destroyElements(),J[M].plotX=void 0);this.data=J,this.points=ht,i(this,"afterGeneratePoints")}getXExtremes(n){return{min:v(n),max:C(n)}}getExtremes(n,g){const m=this.xAxis;var H=this.yAxis;const W=this.processedXData||this.xData,$=[],et=this.requireSorting?this.cropShoulder:0;H=H?H.positiveValuesOnly:!1;let nt,at=0,ht=0,pt=0;n=n||this.stackedYData||this.processedYData||[];const E=n.length;if(m){var M=m.getExtremes();at=M.min,ht=M.max}for(nt=0;nt<E;nt++){var J=W[nt];M=n[nt];var X=(S(M)||r(M))&&(M.length||0<M||!H);if(J=g||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!m||(W[nt+et]||J)>=at&&(W[nt-et]||J)<=ht,X&&J)if(X=M.length)for(;X--;)S(M[X])&&($[pt++]=M[X]);else $[pt++]=M}return n={activeYData:$,dataMin:v($),dataMax:C($)},i(this,"afterGetExtremes",{dataExtremes:n}),n}applyExtremes(){const n=this.getExtremes();return this.dataMin=n.dataMin,this.dataMax=n.dataMax,n}getFirstValidPoint(n){const g=n.length;let m=0,H=null;for(;H===null&&m<g;)H=n[m],m++;return H}translate(){var n;this.processedXData||this.processData(),this.generatePoints();var g=this.options;const m=g.stacking,H=this.xAxis,W=H.categories,$=this.enabledDataSorting,et=this.yAxis,nt=this.points,at=nt.length,ht=this.pointPlacementToXValue(),pt=!!ht,E=g.threshold;g=g.startFromThreshold?E:0;let M,J,X,tt,dt=Number.MAX_VALUE;for(M=0;M<at;M++){const ct=nt[M],xt=ct.x;let vt,gt,mt=ct.y,Ct=ct.low;const bt=m&&((n=et.stacking)===null||n===void 0?void 0:n.stacks[(this.negStacks&&mt<(g?0:E)?"-":"")+this.stackKey]);J=H.translate(xt,!1,!1,!1,!0,ht),ct.plotX=S(J)?o(b(J,-1e5,1e5)):void 0,m&&this.visible&&bt&&bt[xt]&&(tt=this.getStackIndicator(tt,xt,this.index),!ct.isNull&&tt.key&&(vt=bt[xt],gt=vt.points[tt.key]),vt&&r(gt)&&(Ct=gt[0],mt=gt[1],Ct===g&&tt.key===bt[xt].base&&(Ct=j(S(E)?E:et.min)),et.positiveValuesOnly&&l(Ct)&&0>=Ct&&(Ct=void 0),ct.total=ct.stackTotal=j(vt.total),ct.percentage=l(ct.y)&&vt.total?ct.y/vt.total*100:void 0,ct.stackY=mt,this.irregularWidths||vt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),ct.yBottom=l(Ct)?b(et.translate(Ct,!1,!0,!1,!0),-1e5,1e5):void 0,this.dataModify&&(mt=this.dataModify.modifyValue(mt,M));let wt;S(mt)&&ct.plotX!==void 0&&(wt=et.translate(mt,!1,!0,!1,!0),wt=S(wt)?b(wt,-1e5,1e5):void 0),ct.plotY=wt,ct.isInside=this.isPointInside(ct),ct.clientX=pt?o(H.translate(xt,!1,!1,!1,!0,ht)):J,ct.negative=(ct.y||0)<(E||0),ct.category=j(W&&W[ct.x],ct.x),ct.isNull||ct.visible===!1||(typeof X<"u"&&(dt=Math.min(dt,Math.abs(J-X))),X=J),ct.zone=this.zones.length?ct.getZone():void 0,!ct.graphic&&this.group&&$&&(ct.isNew=!0)}this.closestPointRangePx=dt,i(this,"afterTranslate")}getValidPoints(n,g,m){const H=this.chart;return(n||this.points||[]).filter(function(W){const{plotX:$,plotY:et}=W;return!m&&(W.isNull||!S(et))||g&&!H.isInsidePlot($,et,{inverted:H.inverted})?!1:W.visible!==!1})}getClipBox(){const{chart:n,xAxis:g,yAxis:m}=this,H=Z(n.clipBox);return g&&g.len!==n.plotSizeX&&(H.width=g.len),m&&m.len!==n.plotSizeY&&(H.height=m.len),H}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)}setClip(){const{chart:n,group:g,markerGroup:m}=this,H=n.sharedClips,W=n.renderer,$=this.getClipBox(),et=this.getSharedClipKey();let nt=H[et];nt?nt.animate($):H[et]=nt=W.clipRect($),g&&g.clip(this.options.clip===!1?void 0:nt),m&&m.clip()}animate(n){const{chart:g,group:m,markerGroup:H}=this,W=g.inverted;var $=x(this.options.animation),et=[this.getSharedClipKey(),$.duration,$.easing,$.defer].join();let nt=g.sharedClips[et],at=g.sharedClips[et+"m"];if(n&&m)$=this.getClipBox(),nt?nt.attr("height",$.height):($.width=0,W&&($.x=g.plotHeight),nt=g.renderer.clipRect($),g.sharedClips[et]=nt,at=g.renderer.clipRect({x:-99,y:-99,width:W?g.plotWidth+199:99,height:W?99:g.plotHeight+199}),g.sharedClips[et+"m"]=at),m.clip(nt),H&&H.clip(at);else if(nt&&!nt.hasClass("highcharts-animating")){et=this.getClipBox();const ht=$.step;H&&H.element.childNodes.length&&($.step=function(pt,E){ht&&ht.apply(E,arguments),E.prop==="width"&&at&&at.element&&at.attr(W?"height":"width",pt+99)}),nt.addClass("highcharts-animating").animate(et,$)}}afterAnimate(){this.setClip(),rt(this.chart.sharedClips,(n,g,m)=>{n&&!this.chart.container.querySelector(`[clip-path="url(#${n.id})"]`)&&(n.destroy(),delete m[g])}),this.finishedAnimating=!0,i(this,"afterAnimate")}drawPoints(n=this.points){const g=this.chart,m=g.styledMode,{colorAxis:H,options:W}=this,$=W.marker,et=this[this.specialGroup||"markerGroup"],nt=this.xAxis,at=j($.enabled,!nt||nt.isRadial?!0:null,this.closestPointRangePx>=$.enabledThreshold*$.radius);let ht,pt,E,M,J,X;if($.enabled!==!1||this._hasPointMarkers)for(ht=0;ht<n.length;ht++){pt=n[ht],M=(E=pt.graphic)?"animate":"attr";var tt=pt.marker||{};if(J=!!pt.marker,(at&&typeof tt.enabled>"u"||tt.enabled)&&!pt.isNull&&pt.visible!==!1){const dt=j(tt.symbol,this.symbol,"rect");X=this.markerAttribs(pt,pt.selected&&"select"),this.enabledDataSorting&&(pt.startXPos=nt.reversed?-(X.width||0):nt.width);const ct=pt.isInside!==!1;!E&&ct&&(0<(X.width||0)||pt.hasImage)&&(pt.graphic=E=g.renderer.symbol(dt,X.x,X.y,X.width,X.height,J?tt:$).add(et),this.enabledDataSorting&&g.hasRendered&&(E.attr({x:pt.startXPos}),M="animate")),E&&M==="animate"&&E[ct?"show":"hide"](ct).animate(X),E&&(tt=this.pointAttribs(pt,m||!pt.selected?void 0:"select"),m?H&&E.css({fill:tt.fill}):E[M](tt)),E&&E.addClass(pt.getClassName(),!0)}else E&&(pt.graphic=E.destroy())}}markerAttribs(n,g){const m=this.options;var H=m.marker;const W=n.marker||{},$=W.symbol||H.symbol,et={};let nt=j(W.radius,H&&H.radius);return g&&(H=H.states[g],g=W.states&&W.states[g],nt=j(g&&g.radius,H&&H.radius,nt&&nt+(H&&H.radiusPlus||0))),n.hasImage=$&&$.indexOf("url")===0,n.hasImage&&(nt=0),n=n.pos(),S(nt)&&n&&(et.x=n[0]-nt,et.y=n[1]-nt,m.crisp&&(et.x=Math.floor(et.x))),nt&&(et.width=et.height=2*nt),et}pointAttribs(n,g){var m=this.options.marker,H=n&&n.options;const W=H&&H.marker||{};var $=H&&H.color,et=n&&n.color;const nt=n&&n.zone&&n.zone.color;let at=this.color;return n=j(W.lineWidth,m.lineWidth),H=1,at=$||nt||et||at,$=W.fillColor||m.fillColor||at,et=W.lineColor||m.lineColor||at,g=g||"normal",m=m.states[g]||{},g=W.states&&W.states[g]||{},n=j(g.lineWidth,m.lineWidth,n+j(g.lineWidthPlus,m.lineWidthPlus,0)),$=g.fillColor||m.fillColor||$,et=g.lineColor||m.lineColor||et,H=j(g.opacity,m.opacity,H),{stroke:et,"stroke-width":n,fill:$,opacity:H}}destroy(n){const g=this,m=g.chart,H=/AppleWebKit\/533/.test(k.navigator.userAgent),W=g.data||[];let $,et,nt,at;for(i(g,"destroy",{keepEventsForUpdate:n}),this.removeEvents(n),(g.axisTypes||[]).forEach(function(ht){(at=g[ht])&&at.series&&(h(at.series,g),at.isDirty=at.forceRedraw=!0)}),g.legendItem&&g.chart.legend.destroyItem(g),et=W.length;et--;)(nt=W[et])&&nt.destroy&&nt.destroy();g.clips&&g.clips.forEach(ht=>ht.destroy()),R.clearTimeout(g.animationTimeout),rt(g,function(ht,pt){ht instanceof N&&!ht.survive&&($=H&&pt==="group"?"hide":"destroy",ht[$]())}),m.hoverSeries===g&&(m.hoverSeries=void 0),h(m.series,g),m.orderItems("series"),rt(g,function(ht,pt){n&&pt==="hcEvents"||delete g[pt]})}applyZones(){const n=this,g=this.chart,m=g.renderer,H=this.zones,W=this.clips||[],$=this.graph,et=this.area,nt=Math.max(g.plotWidth,g.plotHeight),at=this[(this.zoneAxis||"y")+"Axis"],ht=g.inverted;let pt,E,M,J,X,tt,dt,ct,xt,vt,gt,mt=!1;H.length&&($||et)&&at&&typeof at.min<"u"?(X=at.reversed,tt=at.horiz,$&&!this.showLine&&$.hide(),et&&et.hide(),J=at.getExtremes(),H.forEach(function(Ct,bt){pt=X?tt?g.plotWidth:0:tt?0:at.toPixels(J.min)||0,pt=b(j(E,pt),0,nt),E=b(Math.round(at.toPixels(j(Ct.value,J.max),!0)||0),0,nt),mt&&(pt=E=at.toPixels(J.max)),dt=Math.abs(pt-E),ct=Math.min(pt,E),xt=Math.max(pt,E),at.isXAxis?(M={x:ht?xt:ct,y:0,width:dt,height:nt},tt||(M.x=g.plotHeight-M.x)):(M={x:0,y:ht?xt:ct,width:nt,height:dt},tt&&(M.y=g.plotWidth-M.y)),W[bt]?W[bt].animate(M):W[bt]=m.clipRect(M),vt=n["zone-area-"+bt],gt=n["zone-graph-"+bt],$&>&>.clip(W[bt]),et&&vt&&vt.clip(W[bt]),mt=Ct.value>J.max,n.resetZones&&E===0&&(E=void 0)}),this.clips=W):n.visible&&($&&$.show(),et&&et.show())}plotGroup(n,g,m,H,W){let $=this[n];const et=!$;return m={visibility:m,zIndex:H||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(m.opacity=this.opacity),et&&(this[n]=$=this.chart.renderer.g().add(W)),$.addClass("highcharts-"+g+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(l(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+($.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),$.attr(m)[et?"attr":"animate"](this.getPlotBox(g)),$}getPlotBox(n){let g=this.xAxis,m=this.yAxis;const H=this.chart;return n=H.inverted&&!H.polar&&g&&this.invertible!==!1&&n==="series",H.inverted&&(g=m,m=this.xAxis),{translateX:g?g.left:H.plotLeft,translateY:m?m.top:H.plotTop,rotation:n?90:0,rotationOriginX:n?(g.len-m.len)/2:0,rotationOriginY:n?(g.len+m.len)/2:0,scaleX:n?-1:1,scaleY:1}}removeEvents(n){n||s(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(g){g()}),this.eventsToUnbind.length=0)}render(){const n=this;var g=n.chart;const m=n.options,H=x(m.animation),W=n.visible?"inherit":"hidden",$=m.zIndex,et=n.hasRendered;g=g.seriesGroup;let nt=n.finishedAnimating?0:H.duration;i(this,"render"),n.plotGroup("group","series",W,$,g),n.markerGroup=n.plotGroup("markerGroup","markers",W,$,g),m.clip!==!1&&n.setClip(),n.animate&&nt&&n.animate(!0),n.drawGraph&&(n.drawGraph(),n.applyZones()),n.visible&&n.drawPoints(),n.drawDataLabels&&n.drawDataLabels(),n.redrawPoints&&n.redrawPoints(),n.drawTracker&&m.enableMouseTracking&&n.drawTracker(),n.animate&&nt&&n.animate(),et||(nt&&H.defer&&(nt+=H.defer),n.animationTimeout=z(function(){n.afterAnimate()},nt||0)),n.isDirty=!1,n.hasRendered=!0,i(n,"afterRender")}redraw(){const n=this.isDirty||this.isDirtyData;this.translate(),this.render(),n&&delete this.kdTree}searchPoint(n,g){const m=this.xAxis,H=this.yAxis,W=this.chart.inverted;return this.searchKDTree({clientX:W?m.len-n.chartY+m.pos:n.chartX-m.pos,plotY:W?H.len-n.chartX+H.pos:n.chartY-H.pos},g,n)}buildKDTree(n){function g(W,$,et){var nt=W&&W.length;let at;if(nt)return at=m.kdAxisArray[$%et],W.sort(function(ht,pt){return ht[at]-pt[at]}),nt=Math.floor(nt/2),{point:W[nt],left:g(W.slice(0,nt),$+1,et),right:g(W.slice(nt+1),$+1,et)}}this.buildingKdTree=!0;const m=this,H=-1<m.options.findNearestPointBy.indexOf("y")?2:1;delete m.kdTree,z(function(){m.kdTree=g(m.getValidPoints(null,!m.directTouch),H,H),m.buildingKdTree=!1},m.options.kdNow||n&&n.type==="touchstart"?0:1)}searchKDTree(n,g,m){function H(at,ht,pt,E){const M=ht.point;var J=W.kdAxisArray[pt%E];let X=M;var tt=l(at[$])&&l(M[$])?Math.pow(at[$]-M[$],2):null,dt=l(at[et])&&l(M[et])?Math.pow(at[et]-M[et],2):null;return dt=(tt||0)+(dt||0),M.dist=l(dt)?Math.sqrt(dt):Number.MAX_VALUE,M.distX=l(tt)?Math.sqrt(tt):Number.MAX_VALUE,J=at[J]-M[J],dt=0>J?"left":"right",tt=0>J?"right":"left",ht[dt]&&(dt=H(at,ht[dt],pt+1,E),X=dt[nt]<X[nt]?dt:M),ht[tt]&&Math.sqrt(J*J)<X[nt]&&(at=H(at,ht[tt],pt+1,E),X=at[nt]<X[nt]?at:X),X}const W=this,$=this.kdAxisArray[0],et=this.kdAxisArray[1],nt=g?"distX":"dist";if(g=-1<W.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(m),this.kdTree)return H(n,this.kdTree,g,g)}pointPlacementToXValue(){const{options:{pointPlacement:n,pointRange:g},xAxis:m}=this;let H=n;return H==="between"&&(H=m.reversed?-.5:.5),S(H)?H*(g||m.pointRange):0}isPointInside(n){const{chart:g,xAxis:m,yAxis:H}=this;return typeof n.plotY<"u"&&typeof n.plotX<"u"&&0<=n.plotY&&n.plotY<=(H?H.len:g.plotHeight)&&0<=n.plotX&&n.plotX<=(m?m.len:g.plotWidth)}drawTracker(){const n=this,g=n.options,m=g.trackByArea,H=[].concat(m?n.areaPath:n.graphPath),W=n.chart,$=W.pointer,et=W.renderer,nt=W.options.tooltip.snap,at=n.tracker,ht=function(E){g.enableMouseTracking&&W.hoverSeries!==n&&n.onMouseOver()},pt="rgba(192,192,192,"+(y?1e-4:.002)+")";at?at.attr({d:H}):n.graph&&(n.tracker=et.path(H).attr({visibility:n.visible?"inherit":"hidden",zIndex:2}).addClass(m?"highcharts-tracker-area":"highcharts-tracker-line").add(n.group),W.styledMode||n.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:pt,fill:m?pt:"none","stroke-width":n.graph.strokeWidth()+(m?0:2*nt)}),[n.tracker,n.markerGroup,n.dataLabelsGroup].forEach(function(E){E&&(E.addClass("highcharts-tracker").on("mouseover",ht).on("mouseout",function(M){$.onTrackerMouseOut(M)}),g.cursor&&!W.styledMode&&E.css({cursor:g.cursor}),d)&&E.on("touchstart",ht)})),i(this,"afterDrawTracker")}addPoint(n,g,m,H,W){const $=this.options,et=this.data,nt=this.chart;var at=this.xAxis;at=at&&at.hasNames&&at.names;const ht=$.data,pt=this.xData;let E,M;g=j(g,!0);const J={series:this};this.pointClass.prototype.applyOptions.apply(J,[n]);const X=J.x;if(M=pt.length,this.requireSorting&&X<pt[M-1])for(E=!0;M&&pt[M-1]>X;)M--;this.updateParallelArrays(J,"splice",[M,0,0]),this.updateParallelArrays(J,M),at&&J.name&&(at[X]=J.name),ht.splice(M,0,n),(E||this.processedData)&&(this.data.splice(M,0,null),this.processData()),$.legendType==="point"&&this.generatePoints(),m&&(et[0]&&et[0].remove?et[0].remove(!1):(et.shift(),this.updateParallelArrays(J,"shift"),ht.shift())),W!==!1&&i(this,"addPoint",{point:J}),this.isDirtyData=this.isDirty=!0,g&&nt.redraw(H)}removePoint(n,g,m){const H=this,W=H.data,$=W[n],et=H.points,nt=H.chart,at=function(){et&&et.length===W.length&&et.splice(n,1),W.splice(n,1),H.options.data.splice(n,1),H.updateParallelArrays($||{series:H},"splice",[n,1]),$&&$.destroy(),H.isDirty=!0,H.isDirtyData=!0,g&&nt.redraw()};w(m,nt),g=j(g,!0),$?$.firePointEvent("remove",null,at):at()}remove(n,g,m,H){function W(){$.destroy(H),et.isDirtyLegend=et.isDirtyBox=!0,et.linkSeries(H),j(n,!0)&&et.redraw(g)}const $=this,et=$.chart;m!==!1?i($,"remove",null,W):W()}update(n,g){n=p(n,this.userOptions),i(this,"update",{options:n});const m=this,H=m.chart;var W=m.userOptions;const $=m.initialType||m.type;var et=H.options.plotOptions;const nt=f[$].prototype;var at=m.finishedAnimating&&{animation:!1};const ht={};let pt,E=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],M=n.type||W.type||H.options.chart.type;const J=!(this.hasDerivedData||M&&M!==this.type||typeof n.pointStart<"u"||typeof n.pointInterval<"u"||typeof n.relativeXValue<"u"||n.joinBy||n.mapData||m.hasOptionChanged("dataGrouping")||m.hasOptionChanged("pointStart")||m.hasOptionChanged("pointInterval")||m.hasOptionChanged("pointIntervalUnit")||m.hasOptionChanged("keys"));if(M=M||$,J&&(E.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),n.visible!==!1&&E.push("area","graph"),m.parallelArrays.forEach(function(X){E.push(X+"Data")}),n.data&&(n.dataSorting&&e(m.options.dataSorting,n.dataSorting),this.setData(n.data,!1))),n=Z(W,at,{index:typeof W.index>"u"?m.index:W.index,pointStart:j(et&&et.series&&et.series.pointStart,W.pointStart,m.xData[0])},!J&&{data:m.options.data},n),J&&n.data&&(n.data=m.options.data),E=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(E),E.forEach(function(X){E[X]=m[X],delete m[X]}),et=!1,f[M]){if(et=M!==m.type,m.remove(!1,!1,!1,!0),et)if(Object.setPrototypeOf)Object.setPrototypeOf(m,f[M].prototype);else{at=Object.hasOwnProperty.call(m,"hcEvents")&&m.hcEvents;for(pt in nt)m[pt]=void 0;e(m,f[M].prototype),at?m.hcEvents=at:delete m.hcEvents}}else c(17,!0,H,{missingModuleFor:M});if(E.forEach(function(X){m[X]=E[X]}),m.init(H,n),J&&this.points){if(n=m.options,n.visible===!1)ht.graphic=1,ht.dataLabel=1;else if(!m._hasPointLabels){const{marker:X,dataLabels:tt}=n;W=W.marker||{},!X||X.enabled!==!1&&W.symbol===X.symbol&&W.height===X.height&&W.width===X.width||(ht.graphic=1),tt&&tt.enabled===!1&&(ht.dataLabel=1)}for(const X of this.points)X&&X.series&&(X.resolveColor(),Object.keys(ht).length&&X.destroyElements(ht),n.showInLegend===!1&&X.legendItem&&H.legend.destroyItem(X))}m.initialType=$,H.linkSeries(),et&&m.linkedSeries.length&&(m.isDirtyData=!0),i(this,"afterUpdate"),j(g,!0)&&H.redraw(J?void 0:!1)}setName(n){this.name=this.options.name=this.userOptions.name=n,this.chart.isDirtyLegend=!0}hasOptionChanged(n){const g=this.options[n],m=this.chart.options.plotOptions,H=this.userOptions[n];return H?g!==H:g!==j(m&&m[this.type]&&m[this.type][n],m&&m.series&&m.series[n],g)}onMouseOver(){const n=this.chart,g=n.hoverSeries;n.pointer.setHoverChartIndex(),g&&g!==this&&g.onMouseOut(),this.options.events.mouseOver&&i(this,"mouseOver"),this.setState("hover"),n.hoverSeries=this}onMouseOut(){const n=this.options,g=this.chart,m=g.tooltip,H=g.hoverPoint;g.hoverSeries=null,H&&H.onMouseOut(),this&&n.events.mouseOut&&i(this,"mouseOut"),!m||this.stickyTracking||m.shared&&!this.noSharedTooltip||m.hide(),g.series.forEach(function(W){W.setState("",!0)})}setState(n,g){const m=this;var H=m.options;const W=m.graph,$=H.inactiveOtherPoints,et=H.states,nt=j(et[n||"normal"]&&et[n||"normal"].animation,m.chart.options.chart.animation);let at=H.lineWidth,ht=0,pt=H.opacity;if(n=n||"",m.state!==n&&([m.group,m.markerGroup,m.dataLabelsGroup].forEach(function(E){E&&(m.state&&E.removeClass("highcharts-series-"+m.state),n&&E.addClass("highcharts-series-"+n))}),m.state=n,!m.chart.styledMode)){if(et[n]&&et[n].enabled===!1)return;if(n&&(at=et[n].lineWidth||at+(et[n].lineWidthPlus||0),pt=j(et[n].opacity,pt)),W&&!W.dashstyle&&S(at))for(H={"stroke-width":at},W.animate(H,nt);m["zone-graph-"+ht];)m["zone-graph-"+ht].animate(H,nt),ht+=1;$||[m.group,m.markerGroup,m.dataLabelsGroup,m.labelBySeries].forEach(function(E){E&&E.animate({opacity:pt},nt)})}g&&$&&m.points&&m.setAllPointsToState(n||void 0)}setAllPointsToState(n){this.points.forEach(function(g){g.setState&&g.setState(n)})}setVisible(n,g){const m=this,H=m.chart,W=H.options.chart.ignoreHiddenSeries,$=m.visible,et=(m.visible=n=m.options.visible=m.userOptions.visible=typeof n>"u"?!$:n)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(nt){m[nt]&&m[nt][et]()}),(H.hoverSeries===m||(H.hoverPoint&&H.hoverPoint.series)===m)&&m.onMouseOut(),m.legendItem&&H.legend.colorizeItem(m,n),m.isDirty=!0,m.options.stacking&&H.series.forEach(function(nt){nt.options.stacking&&nt.visible&&(nt.isDirty=!0)}),m.linkedSeries.forEach(function(nt){nt.setVisible(n,!1)}),W&&(H.isDirtyBox=!0),i(m,et),g!==!1&&H.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(n){this.selected=n=this.options.selected=typeof n>"u"?!this.selected:n,this.checkbox&&(this.checkbox.checked=n),i(this,n?"select":"unselect")}shouldShowTooltip(n,g,m={}){return m.series=this,m.visiblePlotOnly=!0,this.chart.isInsidePlot(n,g,m)}drawLegendSymbol(n,g){var m;(m=K[this.options.legendSymbol||"rectangle"])===null||m===void 0||m.call(this,n,g)}}return I.defaultOptions=U,I.types=O.seriesTypes,I.registerType=O.registerSeriesType,e(I.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Y,requireSorting:!0,sorted:!0}),O.series=I,I}),st(P,"Core/Chart/Chart.js",[P["Core/Animation/AnimationUtilities.js"],P["Core/Axis/Axis.js"],P["Core/Defaults.js"],P["Core/Templating.js"],P["Core/Foundation.js"],P["Core/Globals.js"],P["Core/Renderer/RendererRegistry.js"],P["Core/Series/Series.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Renderer/SVG/SVGRenderer.js"],P["Core/Time.js"],P["Core/Utilities.js"],P["Core/Renderer/HTML/AST.js"]],function(B,A,F,q,K,Y,U,O,N,R,x,w,L){const{animate:D,animObject:d,setAnimation:y}=B,{defaultOptions:k,defaultTime:f}=F,{numberFormat:C}=q,{registerEventOptions:v}=K,{charts:b,doc:o,marginNames:l,svg:p,win:h}=Y,{seriesTypes:c}=N,{addEvent:e,attr:t,createElement:i,css:a,defined:u,diffObjects:_,discardElement:r,erase:S,error:G,extend:Z,find:rt,fireEvent:j,getStyle:s,isArray:T,isNumber:z,isObject:I,isString:V,merge:n,objectEach:g,pick:m,pInt:H,relativeLength:W,removeEvent:$,splat:et,syncTimeout:nt,uniqueKey:at}=w;class ht{static chart(E,M,J){return new ht(E,M,J)}constructor(E,M,J){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.zooming=this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(E,M,J)}getArgs(E,M,J){V(E)||E.nodeName?(this.renderTo=E,this.init(M,J)):this.init(E,M)}setZoomOptions(){const E=this.options.chart,M=E.zooming;this.zooming=Object.assign(Object.assign({},M),{type:m(E.zoomType,M.type),key:m(E.zoomKey,M.key),pinchType:m(E.pinchType,M.pinchType),singleTouch:m(E.zoomBySingleTouch,M.singleTouch,!1),resetButton:n(M.resetButton,E.resetZoomButton)})}init(E,M){j(this,"init",{args:arguments},function(){const J=n(k,E),X=J.chart;this.userOptions=Z({},E),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=M,this.isResizing=0,this.options=J,this.axes=[],this.series=[],this.time=E.time&&Object.keys(E.time).length?new x(E.time):Y.time,this.numberFormatter=X.numberFormatter||C,this.styledMode=X.styledMode,this.hasCartesianSeries=X.showAxes,this.index=b.length,b.push(this),Y.chartCount++,v(this,X),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),j(this,"afterInit"),this.firstRender()})}initSeries(E){var M=this.options.chart;M=E.type||M.type;const J=c[M];return J||G(17,!0,this,{missingModuleFor:M}),M=new J,typeof M.init=="function"&&M.init(this,E),M}setSeriesData(){this.getSeriesOrderByLinks().forEach(function(E){E.points||E.data||!E.enabledDataSorting||E.setData(E.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(E,M){return E.linkedSeries.length||M.linkedSeries.length?M.linkedSeries.length-E.linkedSeries.length:0})}orderItems(E,M=0){const J=this[E],X=this.options[E]=et(this.options[E]).slice();if(E=this.userOptions[E]=this.userOptions[E]?et(this.userOptions[E]).slice():[],this.hasRendered&&(X.splice(M),E.splice(M)),J)for(let tt=M,dt=J.length;tt<dt;++tt)(M=J[tt])&&(M.index=tt,M instanceof O&&(M.name=M.getName()),M.options.isInternal||(X[tt]=M.options,E[tt]=M.userOptions))}isInsidePlot(E,M,J={}){const{inverted:X,plotBox:tt,plotLeft:dt,plotTop:ct,scrollablePlotBox:xt}=this;var vt=0;let gt=0;J.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:vt,scrollTop:gt}=this.scrollingContainer);const mt=J.series,Ct=J.visiblePlotOnly&&xt||tt;var bt=J.inverted?M:E;if(M=J.inverted?E:M,E={x:bt,y:M,isInsidePlot:!0,options:J},!J.ignoreX){const wt=mt&&(X&&!this.polar?mt.yAxis:mt.xAxis)||{pos:dt,len:1/0};bt=J.paneCoordinates?wt.pos+bt:dt+bt,bt>=Math.max(vt+dt,wt.pos)&&bt<=Math.min(vt+dt+Ct.width,wt.pos+wt.len)||(E.isInsidePlot=!1)}return!J.ignoreY&&E.isInsidePlot&&(vt=!X&&J.axis&&!J.axis.isXAxis&&J.axis||mt&&(X?mt.xAxis:mt.yAxis)||{pos:ct,len:1/0},J=J.paneCoordinates?vt.pos+M:ct+M,J>=Math.max(gt+ct,vt.pos)&&J<=Math.min(gt+ct+Ct.height,vt.pos+vt.len)||(E.isInsidePlot=!1)),j(this,"afterIsInsidePlot",E),E.isInsidePlot}redraw(E){j(this,"beforeRedraw");const M=this.hasCartesianSeries?this.axes:this.colorAxis||[],J=this.series,X=this.pointer,tt=this.legend,dt=this.userOptions.legend,ct=this.renderer,xt=ct.isHidden(),vt=[];let gt,mt,Ct=this.isDirtyBox,bt=this.isDirtyLegend,wt;for(ct.rootFontSize=ct.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),y(this.hasRendered?E:!1,this),xt&&this.temporaryDisplay(),this.layOutTitles(!1),E=J.length;E--;)if(wt=J[E],(wt.options.stacking||wt.options.centerInCategory)&&(mt=!0,wt.isDirty)){gt=!0;break}if(gt)for(E=J.length;E--;)wt=J[E],wt.options.stacking&&(wt.isDirty=!0);J.forEach(function(Mt){Mt.isDirty&&(Mt.options.legendType==="point"?(typeof Mt.updateTotals=="function"&&Mt.updateTotals(),bt=!0):dt&&(dt.labelFormatter||dt.labelFormat)&&(bt=!0)),Mt.isDirtyData&&j(Mt,"updatedData")}),bt&&tt&&tt.options.enabled&&(tt.render(),this.isDirtyLegend=!1),mt&&this.getStacks(),M.forEach(function(Mt){Mt.updateNames(),Mt.setScale()}),this.getMargins(),M.forEach(function(Mt){Mt.isDirty&&(Ct=!0)}),M.forEach(function(Mt){const Lt=Mt.min+","+Mt.max;Mt.extKey!==Lt&&(Mt.extKey=Lt,vt.push(function(){j(Mt,"afterSetExtremes",Z(Mt.eventArgs,Mt.getExtremes())),delete Mt.eventArgs})),(Ct||mt)&&Mt.redraw()}),Ct&&this.drawChartBox(),j(this,"predraw"),J.forEach(function(Mt){(Ct||Mt.isDirty)&&Mt.visible&&Mt.redraw(),Mt.isDirtyData=!1}),X&&X.reset(!0),ct.draw(),j(this,"redraw"),j(this,"render"),xt&&this.temporaryDisplay(!0),vt.forEach(function(Mt){Mt.call()})}get(E){function M(tt){return tt.id===E||tt.options&&tt.options.id===E}const J=this.series;let X=rt(this.axes,M)||rt(this.series,M);for(let tt=0;!X&&tt<J.length;tt++)X=rt(J[tt].points||[],M);return X}getAxes(){const E=this.options;j(this,"getAxes");for(const M of["xAxis","yAxis"]){const J=E[M]=et(E[M]||{});for(const X of J)new A(this,X,M)}j(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((E,M)=>(M.getPointsCollection().forEach(J=>{m(J.selectedStaging,J.selected)&&E.push(J)}),E),[])}getSelectedSeries(){return this.series.filter(function(E){return E.selected})}setTitle(E,M,J){this.applyDescription("title",E),this.applyDescription("subtitle",M),this.applyDescription("caption",void 0),this.layOutTitles(J)}applyDescription(E,M){const J=this,X=this.options[E]=n(this.options[E],M);let tt=this[E];tt&&M&&(this[E]=tt=tt.destroy()),X&&!tt&&(tt=this.renderer.text(X.text,0,0,X.useHTML).attr({align:X.align,class:"highcharts-"+E,zIndex:X.zIndex||4}).add(),tt.update=function(dt,ct){J.applyDescription(E,dt),J.layOutTitles(ct)},this.styledMode||tt.css(Z(E==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},X.style)),this[E]=tt)}layOutTitles(E=!0){const M=[0,0,0],J=this.renderer,X=this.spacingBox;["title","subtitle","caption"].forEach(function(dt){const ct=this[dt],xt=this.options[dt],vt=xt.verticalAlign||"top";if(dt=dt==="title"?vt==="top"?-3:0:vt==="top"?M[0]+2:0,ct){ct.css({width:(xt.width||X.width+(xt.widthAdjust||0))+"px"});const gt=J.fontMetrics(ct).b,mt=Math.round(ct.getBBox(xt.useHTML).height);ct.align(Z({y:vt==="bottom"?gt:dt+gt,height:mt},xt),!1,"spacingBox"),xt.floating||(vt==="top"?M[0]=Math.ceil(M[0]+mt):vt==="bottom"&&(M[2]=Math.ceil(M[2]+mt)))}},this),M[0]&&(this.options.title.verticalAlign||"top")==="top"&&(M[0]+=this.options.title.margin),M[2]&&this.options.caption.verticalAlign==="bottom"&&(M[2]+=this.options.caption.margin);const tt=!this.titleOffset||this.titleOffset.join(",")!==M.join(",");this.titleOffset=M,j(this,"afterLayOutTitles"),!this.isDirtyBox&&tt&&(this.isDirtyBox=this.isDirtyLegend=tt,this.hasRendered&&E&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:s(this.renderTo,"width",!0)||0,height:s(this.renderTo,"height",!0)||0}}getChartSize(){var E=this.options.chart;const M=E.width;E=E.height;const J=this.getContainerBox();this.chartWidth=Math.max(0,M||J.width||600),this.chartHeight=Math.max(0,W(E,this.chartWidth)||(1<J.height?J.height:400)),this.containerBox=J}temporaryDisplay(E){let M=this.renderTo;if(E)for(;M&&M.style;)M.hcOrigStyle&&(a(M,M.hcOrigStyle),delete M.hcOrigStyle),M.hcOrigDetached&&(o.body.removeChild(M),M.hcOrigDetached=!1),M=M.parentNode;else for(;M&&M.style&&(o.body.contains(M)||M.parentNode||(M.hcOrigDetached=!0,o.body.appendChild(M)),(s(M,"display",!1)==="none"||M.hcOricDetached)&&(M.hcOrigStyle={display:M.style.display,height:M.style.height,overflow:M.style.overflow},E={display:"block",overflow:"hidden"},M!==this.renderTo&&(E.height=0),a(M,E),M.offsetWidth||M.style.setProperty("display","block","important")),M=M.parentNode,M!==o.body););}setClassName(E){this.container.className="highcharts-container "+(E||"")}getContainer(){const E=this.options,M=E.chart;var J=at();let X,tt=this.renderTo;tt||(this.renderTo=tt=M.renderTo),V(tt)&&(this.renderTo=tt=o.getElementById(tt)),tt||G(13,!0,this);var dt=H(t(tt,"data-highcharts-chart"));z(dt)&&b[dt]&&b[dt].hasRendered&&b[dt].destroy(),t(tt,"data-highcharts-chart",this.index),tt.innerHTML=L.emptyHTML,M.skipClone||tt.offsetWidth||this.temporaryDisplay(),this.getChartSize(),dt=this.chartWidth;const ct=this.chartHeight;if(a(tt,{overflow:"hidden"}),this.styledMode||(X=Z({position:"relative",overflow:"hidden",width:dt+"px",height:ct+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},M.style||{})),this.container=J=i("div",{id:J},X,tt),this._cursor=J.style.cursor,this.renderer=new(M.renderer||!p?U.getRendererType(M.renderer):R)(J,dt,ct,void 0,M.forExport,E.exporting&&E.exporting.allowHTML,this.styledMode),this.containerBox=this.getContainerBox(),y(void 0,this),this.setClassName(M.className),this.styledMode)for(const xt in E.defs)this.renderer.definition(E.defs[xt]);else this.renderer.setStyle(M.style);this.renderer.chartIndex=this.index,j(this,"afterGetContainer")}getMargins(E){const{spacing:M,margin:J,titleOffset:X}=this;this.resetMargins(),X[0]&&!u(J[0])&&(this.plotTop=Math.max(this.plotTop,X[0]+M[0])),X[2]&&!u(J[2])&&(this.marginBottom=Math.max(this.marginBottom,X[2]+M[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(J,M),j(this,"getMargins"),E||this.getAxisMargins()}getAxisMargins(){const E=this,M=E.axisOffset=[0,0,0,0],J=E.colorAxis,X=E.margin,tt=function(dt){dt.forEach(function(ct){ct.visible&&ct.getOffset()})};E.hasCartesianSeries?tt(E.axes):J&&J.length&&tt(J),l.forEach(function(dt,ct){u(X[ct])||(E[dt]+=M[ct])}),E.setChartSize()}getOptions(){return _(this.userOptions,k)}reflow(E){const M=this;var J=M.options.chart;J=u(J.width)&&u(J.height);const X=M.containerBox,tt=M.getContainerBox();delete M.pointer.chartPosition,!J&&!M.isPrinting&&X&&tt.width&&((tt.width!==X.width||tt.height!==X.height)&&(w.clearTimeout(M.reflowTimeout),M.reflowTimeout=nt(function(){M.container&&M.setSize(void 0,void 0,!1)},E?100:0)),M.containerBox=tt)}setReflow(){const E=this;var M=J=>{var X;!((X=E.options)===null||X===void 0)&&X.chart.reflow&&E.hasLoaded&&E.reflow(J)};typeof ResizeObserver=="function"?new ResizeObserver(M).observe(E.renderTo):(M=e(h,"resize",M),e(this,"destroy",M))}setSize(E,M,J){const X=this,tt=X.renderer;X.isResizing+=1,y(J,X),J=tt.globalAnimation,X.oldChartHeight=X.chartHeight,X.oldChartWidth=X.chartWidth,typeof E<"u"&&(X.options.chart.width=E),typeof M<"u"&&(X.options.chart.height=M),X.getChartSize(),X.styledMode||(J?D:a)(X.container,{width:X.chartWidth+"px",height:X.chartHeight+"px"},J),X.setChartSize(!0),tt.setSize(X.chartWidth,X.chartHeight,J),X.axes.forEach(function(dt){dt.isDirty=!0,dt.setScale()}),X.isDirtyLegend=!0,X.isDirtyBox=!0,X.layOutTitles(),X.getMargins(),X.redraw(J),X.oldChartHeight=null,j(X,"resize"),nt(function(){X&&j(X,"endResize",null,function(){--X.isResizing})},d(J).duration)}setChartSize(E){var M=this.inverted;const J=this.renderer;var X=this.chartWidth,tt=this.chartHeight;const dt=this.options.chart,ct=this.spacing,xt=this.clipOffset;let vt,gt,mt,Ct;this.plotLeft=vt=Math.round(this.plotLeft),this.plotTop=gt=Math.round(this.plotTop),this.plotWidth=mt=Math.max(0,Math.round(X-vt-this.marginRight)),this.plotHeight=Ct=Math.max(0,Math.round(tt-gt-this.marginBottom)),this.plotSizeX=M?Ct:mt,this.plotSizeY=M?mt:Ct,this.plotBorderWidth=dt.plotBorderWidth||0,this.spacingBox=J.spacingBox={x:ct[3],y:ct[0],width:X-ct[3]-ct[1],height:tt-ct[0]-ct[2]},this.plotBox=J.plotBox={x:vt,y:gt,width:mt,height:Ct},M=2*Math.floor(this.plotBorderWidth/2),X=Math.ceil(Math.max(M,xt[3])/2),tt=Math.ceil(Math.max(M,xt[0])/2),this.clipBox={x:X,y:tt,width:Math.floor(this.plotSizeX-Math.max(M,xt[1])/2-X),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(M,xt[2])/2-tt))},E||(this.axes.forEach(function(bt){bt.setAxisSize(),bt.setAxisTranslation()}),J.alignElements()),j(this,"afterSetChartSize",{skipAxes:E})}resetMargins(){j(this,"resetMargins");const E=this,M=E.options.chart;["margin","spacing"].forEach(function(J){const X=M[J],tt=I(X)?X:[X,X,X,X];["Top","Right","Bottom","Left"].forEach(function(dt,ct){E[J][ct]=m(M[J+dt],tt[ct])})}),l.forEach(function(J,X){E[J]=m(E.margin[X],E.spacing[X])}),E.axisOffset=[0,0,0,0],E.clipOffset=[0,0,0,0]}drawChartBox(){const E=this.options.chart,M=this.renderer,J=this.chartWidth,X=this.chartHeight,tt=this.styledMode,dt=this.plotBGImage;var ct=E.backgroundColor;const xt=E.plotBackgroundColor,vt=E.plotBackgroundImage,gt=this.plotLeft,mt=this.plotTop,Ct=this.plotWidth,bt=this.plotHeight,wt=this.plotBox,Mt=this.clipRect,Lt=this.clipBox;let _t=this.chartBackground,zt=this.plotBackground,Ht=this.plotBorder,Ot,Gt,Rt="animate";_t||(this.chartBackground=_t=M.rect().addClass("highcharts-background").add(),Rt="attr"),tt?Ot=Gt=_t.strokeWidth():(Ot=E.borderWidth||0,Gt=Ot+(E.shadow?8:0),ct={fill:ct||"none"},(Ot||_t["stroke-width"])&&(ct.stroke=E.borderColor,ct["stroke-width"]=Ot),_t.attr(ct).shadow(E.shadow)),_t[Rt]({x:Gt/2,y:Gt/2,width:J-Gt-Ot%2,height:X-Gt-Ot%2,r:E.borderRadius}),Rt="animate",zt||(Rt="attr",this.plotBackground=zt=M.rect().addClass("highcharts-plot-background").add()),zt[Rt](wt),tt||(zt.attr({fill:xt||"none"}).shadow(E.plotShadow),vt&&(dt?(vt!==dt.attr("href")&&dt.attr("href",vt),dt.animate(wt)):this.plotBGImage=M.image(vt,gt,mt,Ct,bt).add())),Mt?Mt.animate({width:Lt.width,height:Lt.height}):this.clipRect=M.clipRect(Lt),Rt="animate",Ht||(Rt="attr",this.plotBorder=Ht=M.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),tt||Ht.attr({stroke:E.plotBorderColor,"stroke-width":E.plotBorderWidth||0,fill:"none"}),Ht[Rt](Ht.crisp({x:gt,y:mt,width:Ct,height:bt},-Ht.strokeWidth())),this.isDirtyBox=!1,j(this,"afterDrawChartBox")}propFromSeries(){const E=this,M=E.options.chart,J=E.options.series;let X,tt,dt;["inverted","angular","polar"].forEach(function(ct){for(tt=c[M.type],dt=M[ct]||tt&&tt.prototype[ct],X=J&&J.length;!dt&&X--;)(tt=c[J[X].type])&&tt.prototype[ct]&&(dt=!0);E[ct]=dt})}linkSeries(E){const M=this,J=M.series;J.forEach(function(X){X.linkedSeries.length=0}),J.forEach(function(X){let tt=X.options.linkedTo;V(tt)&&(tt=tt===":previous"?M.series[X.index-1]:M.get(tt))&&tt.linkedParent!==X&&(tt.linkedSeries.push(X),X.linkedParent=tt,tt.enabledDataSorting&&X.setDataSortingOptions(),X.visible=m(X.options.visible,tt.options.visible,X.visible))}),j(this,"afterLinkSeries",{isUpdating:E})}renderSeries(){this.series.forEach(function(E){E.translate(),E.render()})}render(){const E=this.axes,M=this.colorAxis,J=this.renderer,X=function(gt){gt.forEach(function(mt){mt.visible&&mt.render()})};let tt=0;this.setTitle(),j(this,"beforeMargins"),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize();const dt=this.plotWidth;E.some(function(gt){if(gt.horiz&>.visible&>.options.labels.enabled&>.series.length)return tt=21,!0});const ct=this.plotHeight=Math.max(this.plotHeight-tt,0);E.forEach(function(gt){gt.setScale()}),this.getAxisMargins();const xt=1.1<dt/this.plotWidth,vt=1.05<ct/this.plotHeight;(xt||vt)&&(E.forEach(function(gt){(gt.horiz&&xt||!gt.horiz&&vt)&>.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?X(E):M&&M.length&&X(M),this.seriesGroup||(this.seriesGroup=J.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(E){const M=this,J=n(!0,this.options.credits,E);J.enabled&&!this.credits&&(this.credits=this.renderer.text(J.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){J.href&&(h.location.href=J.href)}).attr({align:J.position.align,zIndex:8}),M.styledMode||this.credits.css(J.style),this.credits.add().align(J.position),this.credits.update=function(X){M.credits=M.credits.destroy(),M.addCredits(X)})}destroy(){const E=this,M=E.axes,J=E.series,X=E.container,tt=X&&X.parentNode;let dt;for(j(E,"destroy"),E.renderer.forExport?S(b,E):b[E.index]=void 0,Y.chartCount--,E.renderTo.removeAttribute("data-highcharts-chart"),$(E),dt=M.length;dt--;)M[dt]=M[dt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),dt=J.length;dt--;)J[dt]=J[dt].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(ct){const xt=E[ct];xt&&xt.destroy&&(E[ct]=xt.destroy())}),X&&(X.innerHTML=L.emptyHTML,$(X),tt&&r(X)),g(E,function(ct,xt){delete E[xt]})}firstRender(){const E=this,M=E.options;E.getContainer(),E.resetMargins(),E.setChartSize(),E.propFromSeries(),E.getAxes();const J=T(M.series)?M.series:[];M.series=[],J.forEach(function(X){E.initSeries(X)}),E.linkSeries(),E.setSeriesData(),j(E,"beforeRender"),E.render(),E.pointer.getChartPosition(),!E.renderer.imgCount&&!E.hasLoaded&&E.onload(),E.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(E){E&&typeof this.index<"u"&&E.apply(this,[this])},this),j(this,"load"),j(this,"render"),u(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){const{options:E,title:M}=this;E&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(M&&M.element.textContent||"").replace(/</g,"<")}),E.accessibility&&E.accessibility.enabled===!1||G('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}addSeries(E,M,J){const X=this;let tt;return E&&(M=m(M,!0),j(X,"addSeries",{options:E},function(){tt=X.initSeries(E),X.isDirtyLegend=!0,X.linkSeries(),tt.enabledDataSorting&&tt.setData(E.data,!1),j(X,"afterAddSeries",{series:tt}),M&&X.redraw(J)})),tt}addAxis(E,M,J,X){return this.createAxis(M?"xAxis":"yAxis",{axis:E,redraw:J,animation:X})}addColorAxis(E,M,J){return this.createAxis("colorAxis",{axis:E,redraw:M,animation:J})}createAxis(E,M){return E=new A(this,M.axis,E),m(M.redraw,!0)&&this.redraw(M.animation),E}showLoading(E){const M=this,J=M.options,X=J.loading,tt=function(){dt&&a(dt,{left:M.plotLeft+"px",top:M.plotTop+"px",width:M.plotWidth+"px",height:M.plotHeight+"px"})};let dt=M.loadingDiv,ct=M.loadingSpan;dt||(M.loadingDiv=dt=i("div",{className:"highcharts-loading highcharts-loading-hidden"},null,M.container)),ct||(M.loadingSpan=ct=i("span",{className:"highcharts-loading-inner"},null,dt),e(M,"redraw",tt)),dt.className="highcharts-loading",L.setElementHTML(ct,m(E,J.lang.loading,"")),M.styledMode||(a(dt,Z(X.style,{zIndex:10})),a(ct,X.labelStyle),M.loadingShown||(a(dt,{opacity:0,display:""}),D(dt,{opacity:X.style.opacity||.5},{duration:X.showDuration||0}))),M.loadingShown=!0,tt()}hideLoading(){const E=this.options,M=this.loadingDiv;M&&(M.className="highcharts-loading highcharts-loading-hidden",this.styledMode||D(M,{opacity:0},{duration:E.loading.hideDuration||100,complete:function(){a(M,{display:"none"})}})),this.loadingShown=!1}update(E,M,J,X){const tt=this,dt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ct=E.isResponsiveOptions,xt=[];let vt,gt;j(tt,"update",{options:E}),ct||tt.setResponsive(!1,!0),E=_(E,tt.options),tt.userOptions=n(tt.userOptions,E);var mt=E.chart;if(mt){if(n(!0,tt.options.chart,mt),this.setZoomOptions(),"className"in mt&&tt.setClassName(mt.className),"inverted"in mt||"polar"in mt||"type"in mt){tt.propFromSeries();var Ct=!0}"alignTicks"in mt&&(Ct=!0),"events"in mt&&v(this,mt),g(mt,function(bt,wt){tt.propsRequireUpdateSeries.indexOf("chart."+wt)!==-1&&(vt=!0),tt.propsRequireDirtyBox.indexOf(wt)!==-1&&(tt.isDirtyBox=!0),tt.propsRequireReflow.indexOf(wt)!==-1&&(ct?tt.isDirtyBox=!0:gt=!0)}),!tt.styledMode&&mt.style&&tt.renderer.setStyle(tt.options.chart.style||{})}!tt.styledMode&&E.colors&&(this.options.colors=E.colors),E.time&&(this.time===f&&(this.time=new x(E.time)),n(!0,tt.options.time,E.time)),g(E,function(bt,wt){tt[wt]&&typeof tt[wt].update=="function"?tt[wt].update(bt,!1):typeof tt[dt[wt]]=="function"?tt[dt[wt]](bt):wt!=="colors"&&tt.collectionsWithUpdate.indexOf(wt)===-1&&n(!0,tt.options[wt],E[wt]),wt!=="chart"&&tt.propsRequireUpdateSeries.indexOf(wt)!==-1&&(vt=!0)}),this.collectionsWithUpdate.forEach(function(bt){E[bt]&&(et(E[bt]).forEach(function(wt,Mt){const Lt=u(wt.id);let _t;Lt&&(_t=tt.get(wt.id)),!_t&&tt[bt]&&(_t=tt[bt][m(wt.index,Mt)])&&(Lt&&u(_t.options.id)||_t.options.isInternal)&&(_t=void 0),_t&&_t.coll===bt&&(_t.update(wt,!1),J&&(_t.touched=!0)),!_t&&J&&tt.collectionsWithInit[bt]&&(tt.collectionsWithInit[bt][0].apply(tt,[wt].concat(tt.collectionsWithInit[bt][1]||[]).concat([!1])).touched=!0)}),J&&tt[bt].forEach(function(wt){wt.touched||wt.options.isInternal?delete wt.touched:xt.push(wt)}))}),xt.forEach(function(bt){bt.chart&&bt.remove&&bt.remove(!1)}),Ct&&tt.axes.forEach(function(bt){bt.update({},!1)}),vt&&tt.getSeriesOrderByLinks().forEach(function(bt){bt.chart&&bt.update({},!1)},this),Ct=mt&&mt.width,mt=mt&&(V(mt.height)?W(mt.height,Ct||tt.chartWidth):mt.height),gt||z(Ct)&&Ct!==tt.chartWidth||z(mt)&&mt!==tt.chartHeight?tt.setSize(Ct,mt,X):m(M,!0)&&tt.redraw(X),j(tt,"afterUpdate",{options:E,redraw:M,animation:X})}setSubtitle(E,M){this.applyDescription("subtitle",E),this.layOutTitles(M)}setCaption(E,M){this.applyDescription("caption",E),this.layOutTitles(M)}showResetZoom(){function E(){M.zoomOut()}const M=this,J=k.lang,X=M.zooming.resetButton,tt=X.theme,dt=X.relativeTo==="chart"||X.relativeTo==="spacingBox"?null:"scrollablePlotBox";j(this,"beforeShowResetZoom",null,function(){M.resetZoomButton=M.renderer.button(J.resetZoom,null,null,E,tt).attr({align:X.position.align,title:J.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(X.position,!1,dt)}),j(this,"afterShowResetZoom")}zoomOut(){j(this,"selection",{resetSelection:!0},this.zoom)}zoom(E){const M=this,J=M.pointer;let X=!1,tt;!E||E.resetSelection?(M.axes.forEach(function(ct){tt=ct.zoom()}),J.initiated=!1):E.xAxis.concat(E.yAxis).forEach(function(ct){const xt=ct.axis;(J[xt.isXAxis?"zoomX":"zoomY"]&&u(J.mouseDownX)&&u(J.mouseDownY)&&M.isInsidePlot(J.mouseDownX-M.plotLeft,J.mouseDownY-M.plotTop,{axis:xt})||!u(M.inverted?J.mouseDownX:J.mouseDownY))&&(tt=xt.zoom(ct.min,ct.max),xt.displayBtn&&(X=!0))});const dt=M.resetZoomButton;X&&!dt?M.showResetZoom():!X&&I(dt)&&(M.resetZoomButton=dt.destroy()),tt&&M.redraw(m(M.options.chart.animation,E&&E.animation,100>M.pointCount))}pan(E,M){const J=this,X=J.hoverPoints;M=typeof M=="object"?M:{enabled:M,type:"x"};const tt=J.options.chart;tt&&tt.panning&&(tt.panning=M);const dt=M.type;let ct;j(this,"pan",{originalEvent:E},function(){X&&X.forEach(function(gt){gt.setState()});let xt=J.xAxis;dt==="xy"?xt=xt.concat(J.yAxis):dt==="y"&&(xt=J.yAxis);const vt={};xt.forEach(function(gt){if(gt.options.panningEnabled&&!gt.options.isInternal){var mt=gt.horiz,Ct=E[mt?"chartX":"chartY"];mt=mt?"mouseDownX":"mouseDownY";var bt=J[mt],wt=gt.minPointOffset||0,Mt=gt.reversed&&!J.inverted||!gt.reversed&&J.inverted?-1:1,Lt=gt.getExtremes(),_t=gt.toValue(bt-Ct,!0)+wt*Mt,zt=gt.toValue(bt+gt.len-Ct,!0)-(wt*Mt||gt.isXAxis&>.pointRangePadding||0),Ht=zt<_t;Mt=gt.hasVerticalPanning(),bt=Ht?zt:_t,_t=Ht?_t:zt;var Ot=gt.panningState;!Mt||gt.isXAxis||Ot&&!Ot.isDirty||gt.series.forEach(function(Gt){var Rt=Gt.getProcessedData(!0);Rt=Gt.getExtremes(Rt.yData,!0),Ot||(Ot={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),z(Rt.dataMin)&&z(Rt.dataMax)&&(Ot.startMin=Math.min(m(Gt.options.threshold,1/0),Rt.dataMin,Ot.startMin),Ot.startMax=Math.max(m(Gt.options.threshold,-1/0),Rt.dataMax,Ot.startMax))}),Mt=Math.min(m(Ot&&Ot.startMin,Lt.dataMin),wt?Lt.min:gt.toValue(gt.toPixels(Lt.min)-gt.minPixelPadding)),zt=Math.max(m(Ot&&Ot.startMax,Lt.dataMax),wt?Lt.max:gt.toValue(gt.toPixels(Lt.max)+gt.minPixelPadding)),gt.panningState=Ot,gt.isOrdinal||(wt=Mt-bt,0<wt&&(_t+=wt,bt=Mt),wt=_t-zt,0<wt&&(_t=zt,bt-=wt),gt.series.length&&bt!==Lt.min&&_t!==Lt.max&&bt>=Mt&&_t<=zt&&(gt.setExtremes(bt,_t,!1,!1,{trigger:"pan"}),!J.resetZoomButton&&bt!==Mt&&_t!==zt&&dt.match("y")&&(J.showResetZoom(),gt.displayBtn=!1),ct=!0),vt[mt]=Ct)}}),g(vt,(gt,mt)=>{J[mt]=gt}),ct&&J.redraw(!1),a(J.container,{cursor:"move"})})}}return Z(ht.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ht.prototype.addAxis,[!0]],yAxis:[ht.prototype.addAxis,[!1]],series:[ht.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),ht}),st(P,"Extensions/ScrollablePlotArea.js",[P["Core/Animation/AnimationUtilities.js"],P["Core/Axis/Axis.js"],P["Core/Chart/Chart.js"],P["Core/Series/Series.js"],P["Core/Renderer/RendererRegistry.js"],P["Core/Utilities.js"]],function(B,A,F,q,K,Y){const{stop:U}=B,{addEvent:O,createElement:N,defined:R,merge:x,pick:w}=Y;O(F,"afterSetChartSize",function(L){var D=this.options.chart.scrollablePlotArea,d=D&&D.minWidth;D=D&&D.minHeight;let y;this.renderer.forExport||(d?(this.scrollablePixelsX=d=Math.max(0,d-this.chartWidth))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=x(this.plotBox),this.plotBox.width=this.plotWidth+=d,this.inverted?this.clipBox.height+=d:this.clipBox.width+=d,y={1:{name:"right",value:d}}):D&&(this.scrollablePixelsY=d=Math.max(0,D-this.chartHeight),R(d)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=x(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,y={2:{name:"bottom",value:d}})),y&&!L.skipAxes&&this.axes.forEach(function(k){y[k.side]?k.getPlotLinePath=function(){let f=y[k.side].name,C=this[f],v;return this[f]=C-y[k.side].value,v=A.prototype.getPlotLinePath.apply(this,arguments),this[f]=C,v}:(k.setAxisSize(),k.setAxisTranslation())}))}),O(F,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),F.prototype.setUpScrolling=function(){const L={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(L.overflowX="auto"),this.scrollablePixelsY&&(L.overflowY="auto"),this.scrollingParent=N("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=N("div",{className:"highcharts-scrolling"},L,this.scrollingParent);let D;O(this.scrollingContainer,"scroll",()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(D=this.hoverPoint),this.pointer.runPointActions(void 0,D,!0))}),this.innerContainer=N("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},F.prototype.moveFixedElements=function(){let L=this.container,D=this.fixedRenderer,d=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),y;this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&d.push(`${y}:not(.highcharts-radial-axis)`,`${y}-labels:not(.highcharts-radial-axis-labels)`),d.forEach(function(k){[].forEach.call(L.querySelectorAll(k),function(f){(f.namespaceURI===D.SVG_NS?D.box:D.box.parentNode).appendChild(f),f.style.pointerEvents="auto"})})},F.prototype.applyFixed=function(){var L=!this.fixedDiv,D=this.options.chart,d=D.scrollablePlotArea,y=K.getRendererType();L?(this.fixedDiv=N("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(D.style&&D.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=D=new y(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=D.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":w(d.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),O(this,"afterShowResetZoom",this.moveFixedElements),O(this,"afterApplyDrilldown",this.moveFixedElements),O(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||L)&&(this.scrollableDirty=!1,this.moveFixedElements()),D=this.chartWidth+(this.scrollablePixelsX||0),y=this.chartHeight+(this.scrollablePixelsY||0),U(this.container),this.container.style.width=D+"px",this.container.style.height=y+"px",this.renderer.boxWrapper.attr({width:D,height:y,viewBox:[0,0,D,y].join(" ")}),this.chartBackground.attr({width:D,height:y}),this.scrollingContainer.style.height=this.chartHeight+"px",L&&(d.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*d.scrollPositionX),d.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*d.scrollPositionY)),y=this.axisOffset,L=this.plotTop-y[0]-1,d=this.plotLeft-y[3]-1,D=this.plotTop+this.plotHeight+y[2]+1,y=this.plotLeft+this.plotWidth+y[1]+1;let k=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),f=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);L=this.scrollablePixelsX?[["M",0,L],["L",this.plotLeft-1,L],["L",this.plotLeft-1,D],["L",0,D],["Z"],["M",k,L],["L",this.chartWidth,L],["L",this.chartWidth,D],["L",k,D],["Z"]]:this.scrollablePixelsY?[["M",d,0],["L",d,this.plotTop-1],["L",y,this.plotTop-1],["L",y,0],["Z"],["M",d,f],["L",d,this.chartHeight],["L",y,this.chartHeight],["L",y,f],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:L})},O(A,"afterInit",function(){this.chart.scrollableDirty=!0}),O(q,"show",function(){this.chart.scrollableDirty=!0})}),st(P,"Core/Axis/Stacking/StackItem.js",[P["Core/Templating.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Utilities.js"]],function(B,A,F){const{format:q}=B,{series:K}=A,{destroyObjectProperties:Y,fireEvent:U,isNumber:O,pick:N}=F;class R{constructor(w,L,D,d,y){const k=w.chart.inverted,f=w.reversed;this.axis=w,w=this.isNegative=!!D!=!!f,this.options=L=L||{},this.x=d,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=y,this.rightCliff=this.leftCliff=0,this.alignOptions={align:L.align||(k?w?"left":"right":"center"),verticalAlign:L.verticalAlign||(k?"middle":w?"bottom":"top"),y:L.y,x:L.x},this.textAlign=L.textAlign||(k?w?"right":"left":"center")}destroy(){Y(this,this.axis)}render(w){const L=this.axis.chart,D=this.options;var d=D.format;d=d?q(d,this,L):D.formatter.call(this),this.label?this.label.attr({text:d,visibility:"hidden"}):(this.label=L.renderer.label(d,null,void 0,D.shape,void 0,void 0,D.useHTML,!1,"stack-labels"),d={r:D.borderRadius||0,text:d,padding:N(D.padding,5),visibility:"hidden"},L.styledMode||(d.fill=D.backgroundColor,d.stroke=D.borderColor,d["stroke-width"]=D.borderWidth,this.label.css(D.style||{})),this.label.attr(d),this.label.added||this.label.add(w)),this.label.labelrank=L.plotSizeY,U(this,"afterRender")}setOffset(w,L,D,d,y,k){const{alignOptions:f,axis:C,label:v,options:b,textAlign:o}=this,l=C.chart;D=this.getStackBox({xOffset:w,width:L,boxBottom:D,boxTop:d,defaultX:y,xAxis:k});var{verticalAlign:p}=f;if(v&&D){d=v.getBBox(),y=v.padding,k=N(b.overflow,"justify")==="justify",f.x=b.x||0,f.y=b.y||0;const{x:h,y:c}=this.adjustStackPosition({labelBox:d,verticalAlign:p,textAlign:o});D.x-=h,D.y-=c,v.align(f,!1,D),(p=l.isInsidePlot(v.alignAttr.x+f.x+h,v.alignAttr.y+f.y+c))||(k=!1),k&&K.prototype.justifyDataLabel.call(C,v,f,v.alignAttr,d,D),v.attr({x:v.alignAttr.x,y:v.alignAttr.y,rotation:b.rotation,rotationOriginX:d.width/2,rotationOriginY:d.height/2}),N(!k&&b.crop,!0)&&(p=O(v.x)&&O(v.y)&&l.isInsidePlot(v.x-y+v.width,v.y)&&l.isInsidePlot(v.x+y,v.y)),v[p?"show":"hide"]()}U(this,"afterSetOffset",{xOffset:w,width:L})}adjustStackPosition({labelBox:w,verticalAlign:L,textAlign:D}){const d={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:w.width/2+w.width/2*d[D],y:w.height/2*d[L]}}getStackBox(w){var L=this.axis;const D=L.chart,{boxTop:d,defaultX:y,xOffset:k,width:f,boxBottom:C}=w;var v=L.stacking.usePercentage?100:N(d,this.total,0);v=L.toPixels(v),w=w.xAxis||D.xAxis[0];const b=N(y,w.translate(this.x))+k;L=L.toPixels(C||O(L.min)&&L.logarithmic&&L.logarithmic.lin2log(L.min)||0),L=Math.abs(v-L);const o=this.isNegative;return D.inverted?{x:(o?v:v-L)-D.plotLeft,y:w.height-b-f,width:L,height:f}:{x:b+w.transB-D.plotLeft,y:(o?v-L:v)-D.plotTop,width:f,height:L}}}return R}),st(P,"Core/Axis/Stacking/StackingAxis.js",[P["Core/Animation/AnimationUtilities.js"],P["Core/Axis/Axis.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Axis/Stacking/StackItem.js"],P["Core/Utilities.js"]],function(B,A,F,q,K){function Y(){const e=this,t=e.inverted;e.yAxis.forEach(i=>{i.stacking&&i.stacking.stacks&&i.hasVisibleSeries&&(i.stacking.oldStacks=i.stacking.stacks)}),e.series.forEach(i=>{const a=i.xAxis&&i.xAxis.options||{};!i.options.stacking||i.visible!==!0&&e.options.chart.ignoreHiddenSeries!==!1||(i.stackKey=[i.type,p(i.options.stack,""),t?a.top:a.left,t?a.height:a.width].join())})}function U(){const e=this.stacking;if(e){var t=e.stacks;l(t,function(i,a){C(i),t[a]=null}),e&&e.stackTotalGroup&&e.stackTotalGroup.destroy()}}function O(){this.coll!=="yAxis"||this.stacking||(this.stacking=new h(this))}function N(e,t,i,a){return!f(e)||e.x!==t||a&&e.stackKey!==a?e={x:t,index:0,key:a,stackKey:a}:e.index++,e.key=[i,t,e.index].join(),e}function R(){const e=this,t=e.stackKey,i=e.yAxis.stacking.stacks,a=e.processedXData,u=e[e.options.stacking+"Stacker"];let _;u&&[t,"-"+t].forEach(r=>{let S=a.length,G;for(;S--;){var Z=a[S];_=e.getStackIndicator(_,Z,e.index,r),(G=(Z=i[r]&&i[r][Z])&&Z.points[_.key])&&u.call(e,G,Z,S)}})}function x(e,t,i){t=t.total?100/t.total:0,e[0]=k(e[0]*t),e[1]=k(e[1]*t),this.stackedYData[i]=e[1]}function w(){const e=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?d.setStackedPoints.call(this,"group"):e&&l(e.stacks,(t,i)=>{i.slice(-5)==="group"&&(l(t,a=>a.destroy()),delete e.stacks[i])})}function L(e){var t=this.chart;const i=e||this.options.stacking;if(i&&(this.visible===!0||t.options.chart.ignoreHiddenSeries===!1)){var a=this.processedXData,u=this.processedYData,_=[],r=u.length,S=this.options,G=S.threshold,Z=p(S.startFromThreshold&&G,0);S=S.stack,e=e?`${this.type},${i}`:this.stackKey;var rt="-"+e,j=this.negStacks;t=i==="group"?t.yAxis[0]:this.yAxis;var s=t.stacking.stacks,T=t.stacking.oldStacks,z,I;for(t.stacking.stacksTouched+=1,I=0;I<r;I++){var V=a[I],n=u[I],g=this.getStackIndicator(g,V,this.index),m=g.key,H=(z=j&&n<(Z?0:G))?rt:e;s[H]||(s[H]={}),s[H][V]||(T[H]&&T[H][V]?(s[H][V]=T[H][V],s[H][V].total=null):s[H][V]=new q(t,t.options.stackLabels,!!z,V,S)),H=s[H][V],n!==null?(H.points[m]=H.points[this.index]=[p(H.cumulative,Z)],f(H.cumulative)||(H.base=m),H.touched=t.stacking.stacksTouched,0<g.index&&this.singleStacks===!1&&(H.points[m][0]=H.points[this.index+","+V+",0"][0])):H.points[m]=H.points[this.index]=null,i==="percent"?(z=z?e:rt,j&&s[z]&&s[z][V]?(z=s[z][V],H.total=z.total=Math.max(z.total,H.total)+Math.abs(n)||0):H.total=k(H.total+(Math.abs(n)||0))):i==="group"?(b(n)&&(n=n[0]),n!==null&&(H.total=(H.total||0)+1)):H.total=k(H.total+(n||0)),H.cumulative=i==="group"?(H.total||1)-1:k(p(H.cumulative,Z)+(n||0)),n!==null&&(H.points[m].push(H.cumulative),_[I]=H.cumulative,H.hasValidPoints=!0)}i==="percent"&&(t.stacking.usePercentage=!0),i!=="group"&&(this.stackedYData=_),t.stacking.oldStacks={}}}const{getDeferredAnimation:D}=B,{series:{prototype:d}}=F,{addEvent:y,correctFloat:k,defined:f,destroyObjectProperties:C,fireEvent:v,isArray:b,isNumber:o,objectEach:l,pick:p}=K;class h{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){const t=this.axis,i=t.series,a=t.options.reversedStacks,u=i.length;let _,r;for(this.usePercentage=!1,r=u;r--;)_=i[a?r:u-r-1],_.setStackedPoints(),_.setGroupedPoints();for(r=0;r<u;r++)i[r].modifyStacks();v(t,"afterBuildStacks")}cleanStacks(){let t;this.oldStacks&&(t=this.stacks=this.oldStacks),l(t,function(i){l(i,function(a){a.cumulative=a.total})})}resetStacks(){l(this.stacks,t=>{l(t,(i,a)=>{o(i.touched)&&i.touched<this.stacksTouched?(i.destroy(),delete t[a]):(i.total=null,i.cumulative=null)})})}renderStackTotals(){var t=this.axis;const i=t.chart,a=i.renderer,u=this.stacks;t=D(i,t.options.stackLabels&&t.options.stackLabels.animation||!1);const _=this.stackTotalGroup=this.stackTotalGroup||a.g("stack-labels").attr({zIndex:6,opacity:0}).add();_.translate(i.plotLeft,i.plotTop),l(u,function(r){l(r,function(S){S.render(_)})}),_.animate({opacity:1},t)}}var c;return function(e){const t=[];e.compose=function(i,a,u){K.pushUnique(t,i)&&(y(i,"init",O),y(i,"destroy",U)),K.pushUnique(t,a)&&(a.prototype.getStacks=Y),K.pushUnique(t,u)&&(i=u.prototype,i.getStackIndicator=N,i.modifyStacks=R,i.percentStacker=x,i.setGroupedPoints=w,i.setStackedPoints=L)}}(c||(c={})),c}),st(P,"Series/Line/LineSeries.js",[P["Core/Series/Series.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Utilities.js"]],function(B,A,F){const{defined:q,merge:K}=F;class Y extends B{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){const O=this,N=this.options,R=(this.gappedPath||this.getGraphPath).call(this),x=this.chart.styledMode;let w=[["graph","highcharts-graph"]];x||w[0].push(N.lineColor||this.color||"#cccccc",N.dashStyle),w=O.getZonesGraphs(w),w.forEach(function(L,D){var d=L[0];let y=O[d];const k=y?"animate":"attr";y?(y.endX=O.preventGraphAnimation?null:R.xMap,y.animate({d:R})):R.length&&(O[d]=y=O.chart.renderer.path(R).addClass(L[1]).attr({zIndex:1}).add(O.group)),y&&!x&&(d={stroke:L[2],"stroke-width":N.lineWidth||0,fill:O.fillGraph&&O.color||"none"},L[3]?d.dashstyle=L[3]:N.linecap!=="square"&&(d["stroke-linecap"]=d["stroke-linejoin"]="round"),y[k](d).shadow(2>D&&N.shadow)),y&&(y.startX=R.xMap,y.isArea=R.isArea)})}getGraphPath(O,N,R){const x=this,w=x.options,L=[],D=[];let d,y=w.step;O=O||x.points;const k=O.reversed;return k&&O.reverse(),(y={right:1,center:2}[y]||y&&3)&&k&&(y=4-y),O=this.getValidPoints(O,!1,!(w.connectNulls&&!N&&!R)),O.forEach(function(f,C){const v=f.plotX,b=f.plotY,o=O[C-1],l=f.isNull||typeof b!="number";(f.leftCliff||o&&o.rightCliff)&&!R&&(d=!0),l&&!q(N)&&0<C?d=!w.connectNulls:l&&!N?d=!0:(C===0||d?C=[["M",f.plotX,f.plotY]]:x.getPointSpline?C=[x.getPointSpline(O,f,C)]:y?(C=y===1?[["L",o.plotX,b]]:y===2?[["L",(o.plotX+v)/2,o.plotY],["L",(o.plotX+v)/2,b]]:[["L",v,o.plotY]],C.push(["L",v,b])):C=[["L",v,b]],D.push(f.x),y&&(D.push(f.x),y===2&&D.push(f.x)),L.push.apply(L,C),d=!1)}),L.xMap=D,x.graphPath=L}getZonesGraphs(O){return this.zones.forEach(function(N,R){R=["zone-graph-"+R,"highcharts-graph highcharts-zone-graph-"+R+" "+(N.className||"")],this.chart.styledMode||R.push(N.color||this.color,N.dashStyle||this.options.dashStyle),O.push(R)},this),O}}return Y.defaultOptions=K(B.defaultOptions,{legendSymbol:"lineMarker"}),A.registerSeriesType("line",Y),Y}),st(P,"Series/Area/AreaSeries.js",[P["Core/Color/Color.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Utilities.js"]],function(B,A,F){const{seriesTypes:{line:q}}=A,{extend:K,merge:Y,objectEach:U,pick:O}=F;class N extends q{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){this.areaPath=[],super.drawGraph.apply(this);const x=this,w=this.areaPath,L=this.options,D=[["area","highcharts-area",this.color,L.fillColor]];this.zones.forEach(function(d,y){D.push(["zone-area-"+y,"highcharts-area highcharts-zone-area-"+y+" "+d.className,d.color||x.color,d.fillColor||L.fillColor])}),D.forEach(function(d){const y=d[0],k={};let f=x[y];const C=f?"animate":"attr";f?(f.endX=x.preventGraphAnimation?null:w.xMap,f.animate({d:w})):(k.zIndex=0,f=x[y]=x.chart.renderer.path(w).addClass(d[1]).add(x.group),f.isArea=!0),x.chart.styledMode||(d[3]?k.fill=d[3]:(k.fill=d[2],k["fill-opacity"]=O(L.fillOpacity,.75))),f[C](k),f.startX=w.xMap,f.shiftUnit=L.step?2:1})}getGraphPath(x){var w=q.prototype.getGraphPath,L=this.options;const D=L.stacking,d=this.yAxis,y=[],k=[],f=this.index,C=d.stacking.stacks[this.stackKey],v=L.threshold,b=Math.round(d.getThreshold(L.threshold));L=O(L.connectNulls,D==="percent");var o=function(c,e,t){var i=x[c];c=D&&C[i.x].points[f];const a=i[t+"Null"]||0;t=i[t+"Cliff"]||0;let u,_;i=!0,t||a?(u=(a?c[0]:c[1])+t,_=c[0]+t,i=!!a):!D&&x[e]&&x[e].isNull&&(u=_=v),typeof u<"u"&&(k.push({plotX:l,plotY:u===null?b:d.getThreshold(u),isNull:i,isCliff:!0}),y.push({plotX:l,plotY:_===null?b:d.getThreshold(_),doCurve:!1}))};let l;x=x||this.points,D&&(x=this.getStackPoints(x));for(let c=0,e=x.length;c<e;++c){D||(x[c].leftCliff=x[c].rightCliff=x[c].leftNull=x[c].rightNull=void 0);var p=x[c].isNull;l=O(x[c].rectPlotX,x[c].plotX);var h=D?O(x[c].yBottom,b):b;(!p||L)&&(L||o(c,c-1,"left"),p&&!D&&L||(k.push(x[c]),y.push({x:c,plotX:l,plotY:h})),L||o(c,c+1,"right"))}return o=w.call(this,k,!0,!0),y.reversed=!0,p=w.call(this,y,!0,!0),(h=p[0])&&h[0]==="M"&&(p[0]=["L",h[1],h[2]]),p=o.concat(p),p.length&&p.push(["Z"]),w=w.call(this,k,!1,L),p.xMap=o.xMap,this.areaPath=p,w}getStackPoints(x){const w=this,L=[],D=[],d=this.xAxis,y=this.yAxis,k=y.stacking.stacks[this.stackKey],f={},C=y.series,v=C.length,b=y.options.reversedStacks?1:-1,o=C.indexOf(w);if(x=x||this.points,this.options.stacking){for(let p=0;p<x.length;p++)x[p].leftNull=x[p].rightNull=void 0,f[x[p].x]=x[p];U(k,function(p,h){p.total!==null&&D.push(h)}),D.sort(function(p,h){return p-h});const l=C.map(p=>p.visible);D.forEach(function(p,h){let c=0,e,t;if(f[p]&&!f[p].isNull)L.push(f[p]),[-1,1].forEach(function(i){const a=i===1?"rightNull":"leftNull",u=k[D[h+i]];let _=0;if(u){let r=o;for(;0<=r&&r<v;){const S=C[r].index;e=u.points[S],e||(S===w.index?f[p][a]=!0:l[r]&&(t=k[p].points[S])&&(_-=t[1]-t[0])),r+=b}}f[p][i===1?"rightCliff":"leftCliff"]=_});else{let i=o;for(;0<=i&&i<v;){if(e=k[p].points[C[i].index]){c=e[1];break}i+=b}c=O(c,0),c=y.translate(c,0,1,0,1),L.push({isNull:!0,plotX:d.translate(p,0,0,0,1),x:p,plotY:c,yBottom:c})}})}return L}}return N.defaultOptions=Y(q.defaultOptions,{threshold:0,legendSymbol:"rectangle"}),K(N.prototype,{singleStacks:!1}),A.registerSeriesType("area",N),N}),st(P,"Series/Spline/SplineSeries.js",[P["Core/Series/SeriesRegistry.js"],P["Core/Utilities.js"]],function(B,A){const{line:F}=B.seriesTypes,{merge:q,pick:K}=A;class Y extends F{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getPointSpline(O,N,R){const x=N.plotX||0,w=N.plotY||0,L=O[R-1];R=O[R+1];let D,d,y;if(L&&!L.isNull&&L.doCurve!==!1&&!N.isCliff&&R&&!R.isNull&&R.doCurve!==!1&&!N.isCliff){O=L.plotY||0;var k=R.plotX||0;R=R.plotY||0;let f=0;D=(1.5*x+(L.plotX||0))/2.5,d=(1.5*w+O)/2.5,k=(1.5*x+k)/2.5,y=(1.5*w+R)/2.5,k!==D&&(f=(y-d)*(k-x)/(k-D)+w-y),d+=f,y+=f,d>O&&d>w?(d=Math.max(O,w),y=2*w-d):d<O&&d<w&&(d=Math.min(O,w),y=2*w-d),y>R&&y>w?(y=Math.max(R,w),d=2*w-y):y<R&&y<w&&(y=Math.min(R,w),d=2*w-y),N.rightContX=k,N.rightContY=y}return N=["C",K(L.rightContX,L.plotX,0),K(L.rightContY,L.plotY,0),K(D,x,0),K(d,w,0),x,w],L.rightContX=L.rightContY=void 0,N}}return Y.defaultOptions=q(F.defaultOptions),B.registerSeriesType("spline",Y),Y}),st(P,"Series/AreaSpline/AreaSplineSeries.js",[P["Series/Spline/SplineSeries.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Utilities.js"]],function(B,A,F){const{area:q,area:{prototype:K}}=A.seriesTypes,{extend:Y,merge:U}=F;class O extends B{constructor(){super(...arguments),this.options=this.points=this.data=void 0}}return O.defaultOptions=U(B.defaultOptions,q.defaultOptions),Y(O.prototype,{getGraphPath:K.getGraphPath,getStackPoints:K.getStackPoints,drawGraph:K.drawGraph}),A.registerSeriesType("areaspline",O),O}),st(P,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),st(P,"Series/Column/ColumnSeries.js",[P["Core/Animation/AnimationUtilities.js"],P["Core/Color/Color.js"],P["Series/Column/ColumnSeriesDefaults.js"],P["Core/Globals.js"],P["Core/Series/Series.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Utilities.js"]],function(B,A,F,q,K,Y,U){const{animObject:O}=B,{parse:N}=A,{hasTouch:R,noop:x}=q,{clamp:w,defined:L,extend:D,fireEvent:d,isArray:y,isNumber:k,merge:f,pick:C,objectEach:v}=U;class b extends K{constructor(){super(...arguments),this.points=this.options=this.group=this.data=this.borderWidth=void 0}animate(l){const p=this,h=this.yAxis,c=h.pos,e=p.options,t=this.chart.inverted,i={},a=t?"translateX":"translateY";let u;l?(i.scaleY=.001,l=w(h.toPixels(e.threshold),c,c+h.len),t?i.translateX=l-h.len:i.translateY=l,p.clipBox&&p.setClip(),p.group.attr(i)):(u=Number(p.group.attr(a)),p.group.animate({scaleY:1},D(O(p.options.animation),{step:function(_,r){p.group&&(i[a]=u+r.pos*(c-u),p.group.attr(i))}})))}init(l,p){super.init.apply(this,arguments);const h=this;l=h.chart,l.hasRendered&&l.series.forEach(function(c){c.type===h.type&&(c.isDirty=!0)})}getColumnMetrics(){const l=this;var p=l.options;const h=l.xAxis,c=l.yAxis;var e=h.options.reversedStacks;e=h.reversed&&!e||!h.reversed&&e;const t={};let i,a=0;p.grouping===!1?a=1:l.chart.series.forEach(function(S){const G=S.yAxis,Z=S.options;let rt;S.type!==l.type||!S.visible&&l.chart.options.chart.ignoreHiddenSeries||c.len!==G.len||c.pos!==G.pos||(Z.stacking&&Z.stacking!=="group"?(i=S.stackKey,typeof t[i]>"u"&&(t[i]=a++),rt=t[i]):Z.grouping!==!1&&(rt=a++),S.columnIndex=rt)});const u=Math.min(Math.abs(h.transA)*(h.ordinal&&h.ordinal.slope||p.pointRange||h.closestPointRange||h.tickInterval||1),h.len),_=u*p.groupPadding,r=(u-2*_)/(a||1);return p=Math.min(p.maxPointWidth||h.len,C(p.pointWidth,r*(1-2*p.pointPadding))),l.columnMetrics={width:p,offset:(r-p)/2+(_+((l.columnIndex||0)+(e?1:0))*r-u/2)*(e?-1:1),paddedWidth:r,columnCount:a},l.columnMetrics}crispCol(l,p,h,c){var e=this.borderWidth,t=-(e%2?.5:0);return e=e%2?.5:1,this.options.crisp&&(h=Math.round(l+h)+t,l=Math.round(l)+t,h-=l),c=Math.round(p+c)+e,t=.5>=Math.abs(p)&&.5<c,p=Math.round(p)+e,c-=p,t&&c&&(--p,c+=1),{x:l,y:p,width:h,height:c}}adjustForMissingColumns(l,p,h,c){const e=this.options.stacking;if(!h.isNull&&1<c.columnCount){const t=this.yAxis.options.reversedStacks;let i=0,a=t?0:-c.columnCount;v(this.yAxis.stacking&&this.yAxis.stacking.stacks,u=>{if(typeof h.x=="number"){const _=u[h.x.toString()];_&&(u=_.points[this.index],e?(u&&(i=a),_.hasValidPoints&&(t?a++:a--)):y(u)&&(u=Object.keys(_.points).filter(r=>!r.match(",")&&_.points[r]&&1<_.points[r].length).map(parseFloat).sort((r,S)=>S-r),i=u.indexOf(this.index),a=u.length))}}),l=(h.plotX||0)+((a-1)*c.paddedWidth+p)/2-p-i*c.paddedWidth}return l}translate(){const l=this,p=l.chart,h=l.options;var c=l.dense=2>l.closestPointRange*l.xAxis.transA;c=l.borderWidth=C(h.borderWidth,c?0:1);const e=l.xAxis,t=l.yAxis,i=h.threshold,a=C(h.minPointLength,5),u=l.getColumnMetrics(),_=u.width,r=l.pointXOffset=u.offset,S=l.dataMin,G=l.dataMax;let Z=l.barW=Math.max(_,1+2*c),rt=l.translatedThreshold=t.getThreshold(i);p.inverted&&(rt-=.5),h.pointPadding&&(Z=Math.ceil(Z)),K.prototype.translate.apply(l),l.points.forEach(function(j){const s=C(j.yBottom,rt);var T=999+Math.abs(s),z=j.plotX||0;T=w(j.plotY,-T,t.len+T);let I=Math.min(T,s),V=Math.max(T,s)-I,n=_,g=z+r,m=Z;a&&Math.abs(V)<a&&(V=a,z=!t.reversed&&!j.negative||t.reversed&&j.negative,k(i)&&k(G)&&j.y===i&&G<=i&&(t.min||0)<i&&(S!==G||(t.max||0)<=i)&&(z=!z,j.negative=!j.negative),I=Math.abs(I-rt)>a?s-a:rt-(z?a:0)),L(j.options.pointWidth)&&(n=m=Math.ceil(j.options.pointWidth),g-=Math.round((n-_)/2)),h.centerInCategory&&(g=l.adjustForMissingColumns(g,n,j,u)),j.barX=g,j.pointWidth=n,j.tooltipPos=p.inverted?[w(t.len+t.pos-p.plotLeft-T,t.pos-p.plotLeft,t.len+t.pos-p.plotLeft),e.len+e.pos-p.plotTop-g-m/2,V]:[e.left-p.plotLeft+g+m/2,w(T+t.pos-p.plotTop,t.pos-p.plotTop,t.len+t.pos-p.plotTop),V],j.shapeType=l.pointClass.prototype.shapeType||"roundedRect",j.shapeArgs=l.crispCol(g,j.isNull?rt:I,m,j.isNull?0:V)}),d(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(l,p){const h=this.options;var c=this.pointAttrToOptions||{},e=c.stroke||"borderColor";const t=c["stroke-width"]||"borderWidth";let i,a=l&&l.color||this.color,u=l&&l[e]||h[e]||a;c=l&&l.options.dashStyle||h.dashStyle;let _=l&&l[t]||h[t]||this[t]||0,r=C(l&&l.opacity,h.opacity,1);return l&&this.zones.length&&(i=l.getZone(),a=l.options.color||i&&(i.color||l.nonZonedColor)||this.color,i&&(u=i.borderColor||u,c=i.dashStyle||c,_=i.borderWidth||_)),p&&l&&(l=f(h.states[p],l.options.states&&l.options.states[p]||{}),p=l.brightness,a=l.color||typeof p<"u"&&N(a).brighten(l.brightness).get()||a,u=l[e]||u,_=l[t]||_,c=l.dashStyle||c,r=C(l.opacity,r)),e={fill:a,stroke:u,"stroke-width":_,opacity:r},c&&(e.dashstyle=c),e}drawPoints(l=this.points){const p=this,h=this.chart,c=p.options,e=h.renderer,t=c.animationLimit||250;let i;l.forEach(function(a){let u=a.graphic,_=!!u,r=u&&h.pointCount<t?"animate":"attr";k(a.plotY)&&a.y!==null?(i=a.shapeArgs,u&&a.hasNewShapeType()&&(u=u.destroy()),p.enabledDataSorting&&(a.startXPos=p.xAxis.reversed?-(i&&i.width||0):p.xAxis.width),u||(a.graphic=u=e[a.shapeType](i).add(a.group||p.group))&&p.enabledDataSorting&&h.hasRendered&&h.pointCount<t&&(u.attr({x:a.startXPos}),_=!0,r="animate"),u&&_&&u[r](f(i)),h.styledMode||u[r](p.pointAttribs(a,a.selected&&"select")).shadow(a.allowShadow!==!1&&c.shadow),u&&(u.addClass(a.getClassName(),!0),u.attr({visibility:a.visible?"inherit":"hidden"}))):u&&(a.graphic=u.destroy())})}drawTracker(l=this.points){const p=this,h=p.chart,c=h.pointer,e=function(i){const a=c.getPointFromEvent(i);typeof a<"u"&&p.options.enableMouseTracking&&(c.isDirectTouch=!0,a.onMouseOver(i))};let t;l.forEach(function(i){t=y(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[],i.graphic&&(i.graphic.element.point=i),t.forEach(function(a){a.div?a.div.point=i:a.element.point=i})}),p._hasTracking||(p.trackerGroups.forEach(function(i){p[i]&&(p[i].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(a){c.onTrackerMouseOut(a)}),R&&p[i].on("touchstart",e),!h.styledMode&&p.options.cursor&&p[i].css({cursor:p.options.cursor}))}),p._hasTracking=!0),d(this,"afterDrawTracker")}remove(){const l=this,p=l.chart;p.hasRendered&&p.series.forEach(function(h){h.type===l.type&&(h.isDirty=!0)}),K.prototype.remove.apply(l,arguments)}}return b.defaultOptions=f(K.defaultOptions,F),D(b.prototype,{cropShoulder:0,directTouch:!0,getSymbol:x,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),Y.registerSeriesType("column",b),b}),st(P,"Core/Series/DataLabel.js",[P["Core/Animation/AnimationUtilities.js"],P["Core/Templating.js"],P["Core/Utilities.js"]],function(B,A,F){const{getDeferredAnimation:q}=B,{format:K}=A,{defined:Y,extend:U,fireEvent:O,isArray:N,isString:R,merge:x,objectEach:w,pick:L,splat:D}=F;var d;return function(y){function k(c,e,t,i,a){const u=this.chart;var _=this.isCartesian&&u.inverted;const r=this.enabledDataSorting;var S=c.plotX,G=c.plotY;const Z=t.rotation;var rt=t.align;G=Y(S)&&Y(G)&&u.isInsidePlot(S,Math.round(G),{inverted:_,paneCoordinates:!0,series:this});let j=L(t.overflow,r?"none":"justify")==="justify";if(_=this.visible&&c.visible!==!1&&Y(S)&&(c.series.forceDL||r&&!j||G||L(t.inside,!!this.options.stacking)&&i&&u.isInsidePlot(S,_?i.x+1:i.y+i.height-1,{inverted:_,paneCoordinates:!0,series:this})),S=c.pos(),_&&S){Z&&e.attr({align:rt}),rt=e.getBBox(!0);var s=[0,0],T=u.renderer.fontMetrics(e).b;if(i=U({x:S[0],y:Math.round(S[1]),width:0,height:0},i),U(t,{width:rt.width,height:rt.height}),Z?(j=!1,s=u.renderer.rotCorr(T,Z),T={x:i.x+(t.x||0)+i.width/2+s.x,y:i.y+(t.y||0)+{top:0,middle:.5,bottom:1}[t.verticalAlign]*i.height},s=[rt.x-Number(e.attr("x")),rt.y-Number(e.attr("y"))],r&&this.xAxis&&!j&&this.setDataLabelStartPos(c,e,a,G,T),e[a?"attr":"animate"](T)):(r&&this.xAxis&&!j&&this.setDataLabelStartPos(c,e,a,G,i),e.align(t,void 0,i),T=e.alignAttr),j&&0<=i.height)this.justifyDataLabel(e,t,T,rt,i,a);else if(L(t.crop,!0)){let{x:z,y:I}=T;z+=s[0],I+=s[1],_=u.isInsidePlot(z,I,{paneCoordinates:!0,series:this})&&u.isInsidePlot(z+rt.width,I+rt.height,{paneCoordinates:!0,series:this})}t.shape&&!Z&&e[a?"attr":"animate"]({anchorX:S[0],anchorY:S[1]})}a&&r&&(e.placed=!1),_||r&&!j?e.show():(e.hide(),e.placed=!1)}function f(c,e){var t=e.filter;return t?(e=t.operator,c=c[t.property],t=t.value,e===">"&&c>t||e==="<"&&c<t||e===">="&&c>=t||e==="<="&&c<=t||e==="=="&&c==t||e==="==="&&c===t):!0}function C(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function v(c){const e=this.hasRendered||0,t=this.initDataLabelsGroup().attr({opacity:+e});return!e&&t&&(this.visible&&t.show(),this.options.animation?t.animate({opacity:1},c):t.attr({opacity:1})),t}function b(c=this.points){var e,t;const i=this,a=i.chart,u=i.options,_=a.renderer,{backgroundColor:r,plotBackgroundColor:S}=a.options.chart,G=a.options.plotOptions,Z=_.getContrast(R(S)&&S||R(r)&&r||"#000000");let rt=u.dataLabels,j,s;var T=D(rt)[0];const z=T.animation;T=T.defer?q(a,z,i):{defer:0,duration:0},rt=l(l((e=G==null?void 0:G.series)===null||e===void 0?void 0:e.dataLabels,(t=G==null?void 0:G[i.type])===null||t===void 0?void 0:t.dataLabels),rt),O(this,"drawDataLabels"),(N(rt)||rt.enabled||i._hasPointLabels)&&(s=this.initDataLabels(T),c.forEach(I=>{var V;const n=I.dataLabels||[];for(j=D(l(rt,I.dlOptions||((V=I.options)===null||V===void 0?void 0:V.dataLabels))),j.forEach((g,m)=>{var H,W=g.enabled&&(!I.isNull||I.dataLabelOnNull)&&f(I,g);const $=I.connectors?I.connectors[m]:I.connector,et=g.style||{};let nt={},at=n[m],ht=!at;const pt=L(g.distance,I.labelDistance);if(W){var E=L(g[I.formatPrefix+"Format"],g.format),M=I.getLabelConfig();if(M=Y(E)?K(E,M,a):(g[I.formatPrefix+"Formatter"]||g.formatter).call(M,g),E=g.rotation,a.styledMode||(et.color=L(g.color,et.color,R(i.color)?i.color:void 0,"#000000"),et.color==="contrast"?(I.contrastColor=_.getContrast(I.color||i.color),et.color=!Y(pt)&&g.inside||0>(pt||0)||u.stacking?I.contrastColor:Z):delete I.contrastColor,u.cursor&&(et.cursor=u.cursor)),nt={r:g.borderRadius||0,rotation:E,padding:g.padding,zIndex:1},!a.styledMode){const{backgroundColor:J,borderColor:X}=g;nt.fill=J==="auto"?I.color:J,nt.stroke=X==="auto"?I.color:X,nt["stroke-width"]=g.borderWidth}w(nt,(J,X)=>{typeof J>"u"&&delete nt[X]})}!at||W&&Y(M)&&!!at.div==!!g.useHTML&&(at.rotation&&g.rotation||at.rotation===g.rotation)||(at=void 0,ht=!0,$&&I.connector&&(I.connector=I.connector.destroy(),I.connectors&&(I.connectors.length===1?delete I.connectors:delete I.connectors[m]))),W&&Y(M)&&(at?nt.text=M:(at=E?_.text(M,0,0,g.useHTML).addClass("highcharts-data-label"):_.label(M,0,0,g.shape,void 0,void 0,g.useHTML,void 0,"data-label"))&&at.addClass(" highcharts-data-label-color-"+I.colorIndex+" "+(g.className||"")+(g.useHTML?" highcharts-tracker":"")),at&&(at.options=g,at.attr(nt),a.styledMode||at.css(et).shadow(g.shadow),(W=g[I.formatPrefix+"TextPath"]||g.textPath)&&!g.useHTML&&(at.setTextPath(((H=I.getDataLabelPath)===null||H===void 0?void 0:H.call(I,at))||I.graphic,W),I.dataLabelPath&&!W.enabled&&(I.dataLabelPath=I.dataLabelPath.destroy())),at.added||at.add(s),i.alignDataLabel(I,at,g,void 0,ht),at.isActive=!0,n[m]&&n[m]!==at&&n[m].destroy(),n[m]=at))}),V=n.length;V--;)n[V].isActive?n[V].isActive=!1:(n[V].destroy(),n.splice(V,1));I.dataLabel=n[0],I.dataLabels=n})),O(this,"afterDrawDataLabels")}function o(c,e,t,i,a,u){const _=this.chart,r=e.align,S=e.verticalAlign,G=c.box?0:c.padding||0;let{x:Z=0,y:rt=0}=e,j,s;return j=(t.x||0)+G,0>j&&(r==="right"&&0<=Z?(e.align="left",e.inside=!0):Z-=j,s=!0),j=(t.x||0)+i.width-G,j>_.plotWidth&&(r==="left"&&0>=Z?(e.align="right",e.inside=!0):Z+=_.plotWidth-j,s=!0),j=t.y+G,0>j&&(S==="bottom"&&0<=rt?(e.verticalAlign="top",e.inside=!0):rt-=j,s=!0),j=(t.y||0)+i.height-G,j>_.plotHeight&&(S==="top"&&0>=rt?(e.verticalAlign="bottom",e.inside=!0):rt+=_.plotHeight-j,s=!0),s&&(e.x=Z,e.y=rt,c.placed=!u,c.align(e,void 0,a)),s}function l(c,e){let t=[],i;if(N(c)&&!N(e))t=c.map(function(a){return x(a,e)});else if(N(e)&&!N(c))t=e.map(function(a){return x(c,a)});else if(!N(c)&&!N(e))t=x(c,e);else if(N(c)&&N(e))for(i=Math.max(c.length,e.length);i--;)t[i]=x(c[i],e[i]);return t}function p(c,e,t,i,a){const u=this.chart,_=u.inverted,r=this.xAxis,S=r.reversed,G=_?e.height/2:e.width/2;c=(c=c.pointWidth)?c/2:0,e.startXPos=_?a.x:S?-G-c:r.width-G+c,e.startYPos=_?S?this.yAxis.height-G+c:-G-c:a.y,i?e.visibility==="hidden"&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),u.hasRendered&&(t&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}const h=[];y.compose=function(c){F.pushUnique(h,c)&&(c=c.prototype,c.initDataLabelsGroup=C,c.initDataLabels=v,c.alignDataLabel=k,c.drawDataLabels=b,c.justifyDataLabel=o,c.setDataLabelStartPos=p)}}(d||(d={})),d}),st(P,"Series/Column/ColumnDataLabel.js",[P["Core/Series/DataLabel.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Utilities.js"]],function(B,A,F){const{series:q}=A,{merge:K,pick:Y}=F;var U;return function(O){function N(x,w,L,D,d){let y=this.chart.inverted;var k=x.series;let f=(k.xAxis?k.xAxis.len:this.chart.plotSizeX)||0;k=(k.yAxis?k.yAxis.len:this.chart.plotSizeY)||0;var C=x.dlBox||x.shapeArgs;let v=Y(x.below,x.plotY>Y(this.translatedThreshold,k)),b=Y(L.inside,!!this.options.stacking);C&&(D=K(C),0>D.y&&(D.height+=D.y,D.y=0),C=D.y+D.height-k,0<C&&C<D.height&&(D.height-=C),y&&(D={x:k-D.y-D.height,y:f-D.x-D.width,width:D.height,height:D.width}),b||(y?(D.x+=v?0:D.width,D.width=0):(D.y+=v?D.height:0,D.height=0))),L.align=Y(L.align,!y||b?"center":v?"right":"left"),L.verticalAlign=Y(L.verticalAlign,y||b?"middle":v?"top":"bottom"),q.prototype.alignDataLabel.call(this,x,w,L,D,d),L.inside&&x.contrastColor&&w.css({color:x.contrastColor})}const R=[];O.compose=function(x){B.compose(q),F.pushUnique(R,x)&&(x.prototype.alignDataLabel=N)}}(U||(U={})),U}),st(P,"Series/Bar/BarSeries.js",[P["Series/Column/ColumnSeries.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Utilities.js"]],function(B,A,F){const{extend:q,merge:K}=F;class Y extends B{constructor(){super(...arguments),this.points=this.options=this.data=void 0}}return Y.defaultOptions=K(B.defaultOptions,{}),q(Y.prototype,{inverted:!0}),A.registerSeriesType("bar",Y),Y}),st(P,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),st(P,"Series/Scatter/ScatterSeries.js",[P["Series/Scatter/ScatterSeriesDefaults.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Utilities.js"]],function(B,A,F){const{column:q,line:K}=A.seriesTypes,{addEvent:Y,extend:U,merge:O}=F;class N extends K{constructor(){super(...arguments),this.points=this.options=this.data=void 0}applyJitter(){const x=this,w=this.options.jitter,L=this.points.length;w&&this.points.forEach(function(D,d){["x","y"].forEach(function(y,k){let f="plot"+y.toUpperCase(),C,v;if(w[y]&&!D.isNull){var b=x[y+"Axis"];v=w[y]*b.transA,b&&!b.isLog&&(C=Math.max(0,D[f]-v),b=Math.min(b.len,D[f]+v),k=1e4*Math.sin(d+k*L),k-=Math.floor(k),D[f]=C+(b-C)*k,y==="x"&&(D.clientX=D.plotX))}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return N.defaultOptions=O(K.defaultOptions,B),U(N.prototype,{drawTracker:q.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),Y(N,"afterTranslate",function(){this.applyJitter()}),A.registerSeriesType("scatter",N),N}),st(P,"Series/CenteredUtilities.js",[P["Core/Globals.js"],P["Core/Series/Series.js"],P["Core/Utilities.js"]],function(B,A,F){const{deg2rad:q}=B,{fireEvent:K,isNumber:Y,pick:U,relativeLength:O}=F;var N;return function(R){R.getCenter=function(){var x=this.options,w=this.chart;const L=2*(x.slicedOffset||0),D=w.plotWidth-2*L,d=w.plotHeight-2*L;var y=x.center;const k=Math.min(D,d),f=x.thickness;var C=x.size;let v=x.innerSize||0;for(typeof C=="string"&&(C=parseFloat(C)),typeof v=="string"&&(v=parseFloat(v)),x=[U(y[0],"50%"),U(y[1],"50%"),U(C&&0>C?void 0:x.size,"100%"),U(v&&0>v?void 0:x.innerSize||0,"0%")],!w.angular||this instanceof A||(x[3]=0),y=0;4>y;++y)C=x[y],w=2>y||y===2&&/%$/.test(C),x[y]=O(C,[D,d,k,x[2]][y])+(w?L:0);return x[3]>x[2]&&(x[3]=x[2]),Y(f)&&2*f<x[2]&&0<f&&(x[3]=x[2]-2*f),K(this,"afterGetCenter",{positions:x}),x},R.getStartAndEndRadians=function(x,w){return x=Y(x)?x:0,w=Y(w)&&w>x&&360>w-x?w:x+360,{start:q*(x+-90),end:q*(w+-90)}}}(N||(N={})),N}),st(P,"Series/Pie/PiePoint.js",[P["Core/Animation/AnimationUtilities.js"],P["Core/Series/Point.js"],P["Core/Utilities.js"]],function(B,A,F){const{setAnimation:q}=B,{addEvent:K,defined:Y,extend:U,isNumber:O,pick:N,relativeLength:R}=F;class x extends A{constructor(){super(...arguments),this.series=this.options=this.labelDistance=void 0}getConnectorPath(){const L=this.labelPosition,D=this.series.options.dataLabels,d=this.connectorShapes;let y=D.connectorShape;return d[y]&&(y=d[y]),y.call(this,{x:L.computed.x,y:L.computed.y,alignment:L.alignment},L.connectorPosition,D)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(L){const D=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(D.x,D.y,D.r+L,D.r+L,{innerR:D.r-1,start:D.start,end:D.end,borderRadius:D.borderRadius})}init(){super.init.apply(this,arguments),this.name=N(this.name,"Slice");const L=D=>{this.slice(D.type==="select")};return K(this,"select",L),K(this,"unselect",L),this}isValid(){return O(this.y)&&0<=this.y}setVisible(L,D){const d=this.series,y=d.chart,k=d.options.ignoreHiddenPoint;D=N(D,k),L!==this.visible&&(this.visible=this.options.visible=L=typeof L>"u"?!this.visible:L,d.options.data[d.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach(f=>{this[f]&&this[f][L?"show":"hide"](L)}),this.legendItem&&y.legend.colorizeItem(this,L),L||this.state!=="hover"||this.setState(""),k&&(d.isDirty=!0),D&&y.redraw())}slice(L,D,d){const y=this.series;q(d,y.chart),N(D,!0),this.sliced=this.options.sliced=Y(L)?L:!this.sliced,y.options.data[y.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return U(x.prototype,{connectorShapes:{fixedOffset:function(w,L,D){const d=L.breakAt;return L=L.touchingSliceAt,[["M",w.x,w.y],D.softConnector?["C",w.x+(w.alignment==="left"?-5:5),w.y,2*d.x-L.x,2*d.y-L.y,d.x,d.y]:["L",d.x,d.y],["L",L.x,L.y]]},straight:function(w,L){return L=L.touchingSliceAt,[["M",w.x,w.y],["L",L.x,L.y]]},crookedLine:function(w,L,D){const{breakAt:d,touchingSliceAt:y}=L;({series:L}=this);const[k,f,C]=L.center,v=C/2,b=L.chart.plotWidth,o=L.chart.plotLeft;L=w.alignment==="left";const{x:l,y:p}=w;return D.crookDistance?(w=R(D.crookDistance,1),w=L?k+v+(b+o-k-v)*(1-w):o+(k-v)*w):w=k+(f-p)*Math.tan((this.angle||0)-Math.PI/2),D=[["M",l,p]],(L?w<=l&&w>=d.x:w>=l&&w<=d.x)&&D.push(["L",w,p]),D.push(["L",d.x,d.y],["L",y.x,y.y]),D}}}),x}),st(P,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),st(P,"Series/Pie/PieSeries.js",[P["Series/CenteredUtilities.js"],P["Series/Column/ColumnSeries.js"],P["Core/Globals.js"],P["Series/Pie/PiePoint.js"],P["Series/Pie/PieSeriesDefaults.js"],P["Core/Series/Series.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Renderer/SVG/Symbols.js"],P["Core/Utilities.js"]],function(B,A,F,q,K,Y,U,O,N){const{getStartAndEndRadians:R}=B;({noop:F}=F);const{clamp:x,extend:w,fireEvent:L,merge:D,pick:d,relativeLength:y}=N;class k extends Y{constructor(){super(...arguments),this.points=this.options=this.maxLabelDistance=this.data=this.center=void 0}animate(C){const v=this,b=v.points,o=v.startAngleRad;C||b.forEach(function(l){const p=l.graphic,h=l.shapeArgs;p&&h&&(p.attr({r:d(l.startR,v.center&&v.center[3]/2),start:o,end:o}),p.animate({r:h.r,start:h.start,end:h.end},v.options.animation))})}drawEmpty(){const C=this.startAngleRad,v=this.endAngleRad,b=this.options;let o,l;this.total===0&&this.center?(o=this.center[0],l=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(o,l,this.center[1]/2,0,C,v).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:O.arc(o,l,this.center[2]/2,0,{start:C,end:v,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":b.borderWidth,fill:b.fillColor||"none",stroke:b.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const C=this.chart.renderer;this.points.forEach(function(v){v.graphic&&v.hasNewShapeType()&&(v.graphic=v.graphic.destroy()),v.graphic||(v.graphic=C[v.shapeType](v.shapeArgs).add(v.series.group),v.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(C,v,b){const o=this.center,l=this.radii?this.radii[b.index]||0:o[2]/2;return C=Math.asin(x((C-o[1])/(l+b.labelDistance),-1,1)),o[0]+(v?-1:1)*Math.cos(C)*(l+b.labelDistance)+(0<b.labelDistance?(v?-1:1)*this.options.dataLabels.padding:0)}hasData(){return!!this.processedXData.length}redrawPoints(){const C=this,v=C.chart;let b,o,l,p;this.drawEmpty(),C.group&&!v.styledMode&&C.group.shadow(C.options.shadow),C.points.forEach(function(h){const c={};o=h.graphic,!h.isNull&&o?(p=h.shapeArgs,b=h.getTranslate(),v.styledMode||(l=C.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(o.setRadialReference(C.center).attr(p).attr(b),v.styledMode||o.attr(l).attr({"stroke-linejoin":"round"}),h.delayedRendering=!1):(o.setRadialReference(C.center),v.styledMode||D(!0,c,l),D(!0,c,p,b),o.animate(c)),o.attr({visibility:h.visible?"inherit":"hidden"}),o.addClass(h.getClassName(),!0)):o&&(h.graphic=o.destroy())})}sortByAngle(C,v){C.sort(function(b,o){return typeof b.angle<"u"&&(o.angle-b.angle)*v})}translate(C){L(this,"translate"),this.generatePoints();var v=this.options;const b=v.slicedOffset,o=b+(v.borderWidth||0);var l=R(v.startAngle,v.endAngle);const p=this.startAngleRad=l.start;l=(this.endAngleRad=l.end)-p;const h=this.points,c=v.dataLabels.distance;v=v.ignoreHiddenPoint;const e=h.length;let t,i,a,u=0;for(C||(this.center=C=this.getCenter()),i=0;i<e;i++){a=h[i];var _=p+u*l;!a.isValid()||v&&!a.visible||(u+=a.percentage/100);var r=p+u*l,S={x:C[0],y:C[1],r:C[2]/2,innerR:C[3]/2,start:Math.round(1e3*_)/1e3,end:Math.round(1e3*r)/1e3};a.shapeType="arc",a.shapeArgs=S,a.labelDistance=d(a.options.dataLabels&&a.options.dataLabels.distance,c),a.labelDistance=y(a.labelDistance,S.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,a.labelDistance),r=(r+_)/2,r>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(r)*b),translateY:Math.round(Math.sin(r)*b)},S=Math.cos(r)*C[2]/2,t=Math.sin(r)*C[2]/2,a.tooltipPos=[C[0]+.7*S,C[1]+.7*t],a.half=r<-Math.PI/2||r>Math.PI/2?1:0,a.angle=r,_=Math.min(o,a.labelDistance/5),a.labelPosition={natural:{x:C[0]+S+Math.cos(r)*a.labelDistance,y:C[1]+t+Math.sin(r)*a.labelDistance},computed:{},alignment:0>a.labelDistance?"center":a.half?"right":"left",connectorPosition:{breakAt:{x:C[0]+S+Math.cos(r)*_,y:C[1]+t+Math.sin(r)*_},touchingSliceAt:{x:C[0]+S,y:C[1]+t}}}}L(this,"afterTranslate")}updateTotals(){const C=this.points,v=C.length,b=this.options.ignoreHiddenPoint;let o,l,p=0;for(o=0;o<v;o++)l=C[o],!l.isValid()||b&&!l.visible||(p+=l.y);for(this.total=p,o=0;o<v;o++)l=C[o],l.percentage=0<p&&(l.visible||!b)?l.y/p*100:0,l.total=p}}return k.defaultOptions=D(Y.defaultOptions,K),w(k.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:A.prototype.drawTracker,getCenter:B.getCenter,getSymbol:F,isCartesian:!1,noSharedTooltip:!0,pointAttribs:A.prototype.pointAttribs,pointClass:q,requireSorting:!1,searchPoint:F,trackerGroups:["group","dataLabelsGroup"]}),U.registerSeriesType("pie",k),k}),st(P,"Series/Pie/PieDataLabel.js",[P["Core/Series/DataLabel.js"],P["Core/Globals.js"],P["Core/Renderer/RendererUtilities.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Utilities.js"]],function(B,A,F,q,K){const{noop:Y}=A,{distribute:U}=F,{series:O}=q,{arrayMax:N,clamp:R,defined:x,merge:w,pick:L,relativeLength:D}=K;var d;return function(y){function k(){const o=this,l=o.data,p=o.chart,h=o.options.dataLabels||{},c=h.connectorPadding,e=p.plotWidth,t=p.plotHeight,i=p.plotLeft,a=Math.round(p.chartWidth/3),u=o.center,_=u[2]/2,r=u[1],S=[[],[]],G=[0,0,0,0],Z=o.dataLabelPositioners;let rt,j,s,T,z,I,V,n,g,m,H,W;o.visible&&(h.enabled||o._hasPointLabels)&&(l.forEach(function($){$.dataLabel&&$.visible&&$.dataLabel.shortened&&($.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),$.dataLabel.shortened=!1)}),O.prototype.drawDataLabels.apply(o),l.forEach(function($){$.dataLabel&&($.visible?(S[$.half].push($),$.dataLabel._pos=null,!x(h.style.width)&&!x($.options.dataLabels&&$.options.dataLabels.style&&$.options.dataLabels.style.width)&&$.dataLabel.getBBox().width>a&&($.dataLabel.css({width:Math.round(.7*a)+"px"}),$.dataLabel.shortened=!0)):($.dataLabel=$.dataLabel.destroy(),$.dataLabels&&$.dataLabels.length===1&&delete $.dataLabels))}),S.forEach(($,et)=>{const nt=$.length,at=[];let ht,pt=0;if(nt){if(o.sortByAngle($,et-.5),0<o.maxLabelDistance){var E=Math.max(0,r-_-o.maxLabelDistance);ht=Math.min(r+_+o.maxLabelDistance,p.plotHeight),$.forEach(function(M){0<M.labelDistance&&M.dataLabel&&(M.top=Math.max(0,r-_-M.labelDistance),M.bottom=Math.min(r+_+M.labelDistance,p.plotHeight),pt=M.dataLabel.getBBox().height||21,M.distributeBox={target:M.labelPosition.natural.y-M.top+pt/2,size:pt,rank:M.y},at.push(M.distributeBox))}),E=ht+pt-E,U(at,E,E/5)}for(H=0;H<nt;H++){if(rt=$[H],I=rt.labelPosition,T=rt.dataLabel,m=rt.visible===!1?"hidden":"inherit",g=E=I.natural.y,at&&x(rt.distributeBox)&&(typeof rt.distributeBox.pos>"u"?m="hidden":(V=rt.distributeBox.size,g=Z.radialDistributionY(rt))),delete rt.positionIndex,h.justify)n=Z.justify(rt,_,u);else switch(h.alignTo){case"connectors":n=Z.alignToConnectors($,et,e,i);break;case"plotEdges":n=Z.alignToPlotEdges(T,et,e,i);break;default:n=Z.radialDistributionX(o,rt,g,E)}T._attr={visibility:m,align:I.alignment},W=rt.options.dataLabels||{},T._pos={x:n+L(W.x,h.x)+({left:c,right:-c}[I.alignment]||0),y:g+L(W.y,h.y)-T.getBBox().height/2},I&&(I.computed.x=n,I.computed.y=g),L(h.crop,!0)&&(z=T.getBBox().width,E=null,n-z<c&&et===1?(E=Math.round(z-n+c),G[3]=Math.max(E,G[3])):n+z>e-c&&et===0&&(E=Math.round(n+z-e+c),G[1]=Math.max(E,G[1])),0>g-V/2?G[0]=Math.max(Math.round(-g+V/2),G[0]):g+V/2>t&&(G[2]=Math.max(Math.round(g+V/2-t),G[2])),T.sideOverflow=E)}}}),N(G)===0||this.verifyDataLabelOverflow(G))&&(this.placeDataLabels(),this.points.forEach(function($){if(W=w(h,$.options.dataLabels),j=L(W.connectorWidth,1)){let et;s=$.connector,(T=$.dataLabel)&&T._pos&&$.visible&&0<$.labelDistance?(m=T._attr.visibility,(et=!s)&&($.connector=s=p.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+$.colorIndex+($.className?" "+$.className:"")).add(o.dataLabelsGroup),p.styledMode||s.attr({"stroke-width":j,stroke:W.connectorColor||$.color||"#666666"})),s[et?"attr":"animate"]({d:$.getConnectorPath()}),s.attr("visibility",m)):s&&($.connector=s.destroy())}}))}function f(){this.points.forEach(function(o){let l=o.dataLabel,p;l&&o.visible&&((p=l._pos)?(l.sideOverflow&&(l._attr.width=Math.max(l.getBBox().width-l.sideOverflow,0),l.css({width:l._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),l.shortened=!0),l.attr(l._attr),l[l.moved?"animate":"attr"](p),l.moved=!0):l&&l.attr({y:-9999})),delete o.distributeBox},this)}function C(o){let l=this.center,p=this.options,h=p.center,c=p.minSize||80,e,t=p.size!==null;return t||(h[0]!==null?e=Math.max(l[2]-Math.max(o[1],o[3]),c):(e=Math.max(l[2]-o[1]-o[3],c),l[0]+=(o[3]-o[1])/2),h[1]!==null?e=R(e,c,l[2]-Math.max(o[0],o[2])):(e=R(e,c,l[2]-o[0]-o[2]),l[1]+=(o[0]-o[2])/2),e<l[2]?(l[2]=e,l[3]=Math.min(p.thickness?Math.max(0,e-2*p.thickness):Math.max(0,D(p.innerSize||0,e)),e),this.translate(l),this.drawDataLabels&&this.drawDataLabels()):t=!0),t}const v=[],b={radialDistributionY:function(o){return o.top+o.distributeBox.pos},radialDistributionX:function(o,l,p,h){return o.getX(p<l.top+2||p>l.bottom-2?h:p,l.half,l)},justify:function(o,l,p){return p[0]+(o.half?-1:1)*(l+o.labelDistance)},alignToPlotEdges:function(o,l,p,h){return o=o.getBBox().width,l?o+h:p-o-h},alignToConnectors:function(o,l,p,h){let c=0,e;return o.forEach(function(t){e=t.dataLabel.getBBox().width,e>c&&(c=e)}),l?c+h:p-c-h}};y.compose=function(o){B.compose(O),K.pushUnique(v,o)&&(o=o.prototype,o.dataLabelPositioners=b,o.alignDataLabel=Y,o.drawDataLabels=k,o.placeDataLabels=f,o.verifyDataLabelOverflow=C)}}(d||(d={})),d}),st(P,"Extensions/OverlappingDataLabels.js",[P["Core/Chart/Chart.js"],P["Core/Utilities.js"]],function(B,A){function F(R,x){let w,L=!1;return R&&(w=R.newOpacity,R.oldOpacity!==w&&(R.alignAttr&&R.placed?(R[w?"removeClass":"addClass"]("highcharts-data-label-hidden"),L=!0,R.alignAttr.opacity=w,R[R.isOld?"animate":"attr"](R.alignAttr,null,function(){x.styledMode||R.css({pointerEvents:w?"auto":"none"})}),K(x,"afterHideOverlappingLabel")):R.attr({opacity:w})),R.isOld=!0),L}const{addEvent:q,fireEvent:K,isArray:Y,isNumber:U,objectEach:O,pick:N}=A;q(B,"render",function(){let R=this,x=[];(this.labelCollectors||[]).forEach(function(w){x=x.concat(w())}),(this.yAxis||[]).forEach(function(w){w.stacking&&w.options.stackLabels&&!w.options.stackLabels.allowOverlap&&O(w.stacking.stacks,function(L){O(L,function(D){D.label&&x.push(D.label)})})}),(this.series||[]).forEach(function(w){var L=w.options.dataLabels;w.visible&&(L.enabled!==!1||w._hasPointLabels)&&(L=D=>D.forEach(d=>{d.visible&&(Y(d.dataLabels)?d.dataLabels:d.dataLabel?[d.dataLabel]:[]).forEach(function(y){const k=y.options;y.labelrank=N(k.labelrank,d.labelrank,d.shapeArgs&&d.shapeArgs.height),k.allowOverlap?(y.oldOpacity=y.opacity,y.newOpacity=1,F(y,R)):x.push(y)})}),L(w.nodes||[]),L(w.points))}),this.hideOverlappingLabels(x)}),B.prototype.hideOverlappingLabels=function(R){let x=this,w=R.length,L=x.renderer;var D;let d,y,k,f,C=!1;var v=function(b){let o,l;var p;let h=b.box?0:b.padding||0,c=p=0,e,t;if(b&&(!b.alignAttr||b.placed))return o=b.alignAttr||{x:b.attr("x"),y:b.attr("y")},l=b.parentGroup,b.width||(p=b.getBBox(),b.width=p.width,b.height=p.height,p=L.fontMetrics(b.element).h),e=b.width-2*h,(t={left:"0",center:"0.5",right:"1"}[b.alignValue])?c=+t*e:U(b.x)&&Math.round(b.x)!==b.translateX&&(c=b.x-b.translateX),{x:o.x+(l.translateX||0)+h-(c||0),y:o.y+(l.translateY||0)+h-p,width:b.width-2*h,height:b.height-2*h}};for(d=0;d<w;d++)(D=R[d])&&(D.oldOpacity=D.opacity,D.newOpacity=1,D.absoluteBox=v(D));for(R.sort(function(b,o){return(o.labelrank||0)-(b.labelrank||0)}),d=0;d<w;d++)for(k=(v=R[d])&&v.absoluteBox,D=d+1;D<w;++D)f=(y=R[D])&&y.absoluteBox,!k||!f||v===y||v.newOpacity===0||y.newOpacity===0||v.visibility==="hidden"||y.visibility==="hidden"||f.x>=k.x+k.width||f.x+f.width<=k.x||f.y>=k.y+k.height||f.y+f.height<=k.y||((v.labelrank<y.labelrank?v:y).newOpacity=0);R.forEach(function(b){F(b,x)&&(C=!0)}),C&&K(x,"afterHideAllOverlappingLabels")}}),st(P,"Extensions/BorderRadius.js",[P["Core/Defaults.js"],P["Core/Series/Series.js"],P["Core/Series/SeriesRegistry.js"],P["Core/Renderer/SVG/SVGElement.js"],P["Core/Renderer/SVG/SVGRenderer.js"],P["Core/Utilities.js"]],function(B,A,F,q,K,Y){const{defaultOptions:U}=B;({seriesTypes:B}=F);const{addEvent:O,extend:N,isObject:R,merge:x,relativeLength:w}=Y,L={radius:0,scope:"stack",where:void 0},D=(d,y)=>(R(d)||(d={radius:d||0}),x(L,y,d));if(q.symbolCustomAttribs.indexOf("borderRadius")===-1){q.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY");const d=K.prototype.symbols.arc;K.prototype.symbols.arc=function(k,f,C,v,b={}){k=d(k,f,C,v,b);const{innerR:o=0,r:l=C,start:p=0,end:h=0}=b;if(b.open||!b.borderRadius)return k;for(C=h-p,f=Math.sin(C/2),b=Math.max(Math.min(w(b.borderRadius||0,l-o),(l-o)/2,l*f/(1+f)),0),C=Math.min(b,C/Math.PI*2*o),f=k.length-1;f--;){let _,r,S;v=k;var c=f,e=1<f?C:b,t=v[c],i=v[c+1];if(i[0]==="Z"&&(i=v[0]),t[0]!=="M"&&t[0]!=="L"||i[0]!=="A"?t[0]!=="A"||i[0]!=="M"&&i[0]!=="L"||(S=i,r=t):(S=t,r=i,_=!0),S&&r&&r.params){t=r[1];var a=r[5];i=r.params;const{start:G,end:Z,cx:rt,cy:j}=i;var u=a?t-e:t+e;const s=u?Math.asin(e/u):0;a=a?s:-s,u*=Math.cos(s),_?(i.start=G+a,S[1]=rt+u*Math.cos(G),S[2]=j+u*Math.sin(G),v.splice(c+1,0,["A",e,e,0,0,1,rt+t*Math.cos(i.start),j+t*Math.sin(i.start)])):(i.end=Z-a,r[6]=rt+t*Math.cos(i.end),r[7]=j+t*Math.sin(i.end),v.splice(c+1,0,["A",e,e,0,0,1,rt+u*Math.cos(Z),j+u*Math.sin(Z)])),r[4]=Math.abs(i.end-i.start)<Math.PI?0:1}}return k};const y=K.prototype.symbols.roundedRect;K.prototype.symbols.roundedRect=function(k,f,C,v,b={}){const o=y(k,f,C,v,b),{r:l=0,brBoxHeight:p=v,brBoxY:h=f}=b;var c=f-h,e=h+p-(f+v);b=-.1<c-l?0:l;const t=-.1<e-l?0:l;var i=Math.max(b&&c,0);const a=Math.max(t&&e,0);e=[k+b,f],c=[k+C-b,f];const u=[k+C,f+b],_=[k+C,f+v-t],r=[k+C-t,f+v],S=[k+t,f+v],G=[k,f+v-t],Z=[k,f+b];if(i){const rt=Math.sqrt(Math.pow(b,2)-Math.pow(b-i,2));e[0]-=rt,c[0]+=rt,u[1]=Z[1]=f+b-i}return v<b-i&&(i=Math.sqrt(Math.pow(b,2)-Math.pow(b-i-v,2)),u[0]=_[0]=k+C-b+i,r[0]=Math.min(u[0],r[0]),S[0]=Math.max(_[0],S[0]),G[0]=Z[0]=k+b-i,u[1]=Z[1]=f+v),a&&(i=Math.sqrt(Math.pow(t,2)-Math.pow(t-a,2)),r[0]+=i,S[0]-=i,_[1]=G[1]=f+v-t+a),v<t-a&&(v=Math.sqrt(Math.pow(t,2)-Math.pow(t-a-v,2)),u[0]=_[0]=k+C-t+v,c[0]=Math.min(u[0],c[0]),e[0]=Math.max(_[0],e[0]),G[0]=Z[0]=k+t-v,_[1]=G[1]=f),o.length=0,o.push(["M",...e],["L",...c],["A",b,b,0,0,1,...u],["L",..._],["A",t,t,0,0,1,...r],["L",...S],["A",t,t,0,0,1,...G],["L",...Z],["A",b,b,0,0,1,...e],["Z"]),o},O(B.pie,"afterTranslate",function(){const k=D(this.options.borderRadius);for(const f of this.points){const C=f.shapeArgs;C&&(C.borderRadius=w(k.radius,(C.r||0)-(C.innerR||0)))}}),O(A,"afterColumnTranslate",function(){var k,f;if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){const{options:o,yAxis:l}=this,p=o.stacking==="percent";var C=(f=(k=U.plotOptions)===null||k===void 0?void 0:k[this.type])===null||f===void 0?void 0:f.borderRadius;k=D(o.borderRadius,R(C)?C:{}),f=l.options.reversed;for(const h of this.points)if({shapeArgs:C}=h,h.shapeType==="roundedRect"&&C){const{width:c=0,height:e=0,y:t=0}=C;var v=t,b=e;k.scope==="stack"&&h.stackTotal&&(v=l.translate(p?100:h.stackTotal,!1,!0,!1,!0),b=l.translate(o.threshold||0,!1,!0,!1,!0),b=this.crispCol(0,Math.min(v,b),0,Math.abs(v-b)),v=b.y,b=b.height);const i=(h.negative?-1:1)*(f?-1:1)===-1;let a=k.where;!a&&this.is("waterfall")&&Math.abs((h.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(a="all"),a||(a="end");const u=Math.min(w(k.radius,c),c/2,a==="all"?e/2:1/0)||0;a==="end"&&(i&&(v-=u),b+=u),N(C,{brBoxHeight:b,brBoxY:v,r:u})}}},{order:9})}return A={optionsToObject:D},A}),st(P,"Core/Responsive.js",[P["Core/Utilities.js"]],function(B){const{diffObjects:A,extend:F,find:q,merge:K,pick:Y,uniqueKey:U}=B;var O;return function(N){function R(L,D){const d=L.condition;(d.callback||function(){return this.chartWidth<=Y(d.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=Y(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=Y(d.minWidth,0)&&this.chartHeight>=Y(d.minHeight,0)}).call(this)&&D.push(L._id)}function x(L,D){const d=this.options.responsive;var y=this.currentResponsive;let k=[];!D&&d&&d.rules&&d.rules.forEach(f=>{typeof f._id>"u"&&(f._id=U()),this.matchResponsiveRule(f,k)},this),D=K(...k.map(f=>q((d||{}).rules||[],C=>C._id===f)).map(f=>f&&f.chartOptions)),D.isResponsiveOptions=!0,k=k.toString()||void 0,k!==(y&&y.ruleIds)&&(y&&this.update(y.undoOptions,L,!0),k?(y=A(D,this.options,!0,this.collectionsWithUpdate),y.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:D,undoOptions:y},this.update(D,L,!0)):this.currentResponsive=void 0)}const w=[];N.compose=function(L){return B.pushUnique(w,L)&&F(L.prototype,{matchResponsiveRule:R,setResponsive:x}),L}}(O||(O={})),O}),st(P,"masters/highcharts.src.js",[P["Core/Globals.js"],P["Core/Utilities.js"],P["Core/Defaults.js"],P["Core/Animation/Fx.js"],P["Core/Animation/AnimationUtilities.js"],P["Core/Renderer/HTML/AST.js"],P["Core/Templating.js"],P["Core/Renderer/RendererUtilities.js"],P["Core/Renderer/SVG/SVGElement.js"],P["Core/Renderer/SVG/SVGRenderer.js"],P["Core/Renderer/HTML/HTMLElement.js"],P["Core/Renderer/HTML/HTMLRenderer.js"],P["Core/Axis/Axis.js"],P["Core/Axis/DateTimeAxis.js"],P["Core/Axis/LogarithmicAxis.js"],P["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],P["Core/Axis/Tick.js"],P["Core/Tooltip.js"],P["Core/Series/Point.js"],P["Core/Pointer.js"],P["Core/Legend/Legend.js"],P["Core/Chart/Chart.js"],P["Core/Axis/Stacking/StackingAxis.js"],P["Core/Axis/Stacking/StackItem.js"],P["Core/Series/Series.js"],P["Core/Series/SeriesRegistry.js"],P["Series/Column/ColumnSeries.js"],P["Series/Column/ColumnDataLabel.js"],P["Series/Pie/PieSeries.js"],P["Series/Pie/PieDataLabel.js"],P["Core/Series/DataLabel.js"],P["Core/Responsive.js"],P["Core/Color/Color.js"],P["Core/Time.js"]],function(B,A,F,q,K,Y,U,O,N,R,x,w,L,D,d,y,k,f,C,v,b,o,l,p,h,c,e,t,i,a,u,_,r,S){return B.animate=K.animate,B.animObject=K.animObject,B.getDeferredAnimation=K.getDeferredAnimation,B.setAnimation=K.setAnimation,B.stop=K.stop,B.timers=q.timers,B.AST=Y,B.Axis=L,B.Chart=o,B.chart=o.chart,B.Fx=q,B.Legend=b,B.PlotLineOrBand=y,B.Point=C,B.Pointer=v,B.Series=h,B.StackItem=p,B.SVGElement=N,B.SVGRenderer=R,B.Templating=U,B.Tick=k,B.Time=S,B.Tooltip=f,B.Color=r,B.color=r.parse,w.compose(R),x.compose(N),v.compose(o),b.compose(o),B.defaultOptions=F.defaultOptions,B.getOptions=F.getOptions,B.time=F.defaultTime,B.setOptions=F.setOptions,B.dateFormat=U.dateFormat,B.format=U.format,B.numberFormat=U.numberFormat,B.addEvent=A.addEvent,B.arrayMax=A.arrayMax,B.arrayMin=A.arrayMin,B.attr=A.attr,B.clearTimeout=A.clearTimeout,B.correctFloat=A.correctFloat,B.createElement=A.createElement,B.css=A.css,B.defined=A.defined,B.destroyObjectProperties=A.destroyObjectProperties,B.discardElement=A.discardElement,B.distribute=O.distribute,B.erase=A.erase,B.error=A.error,B.extend=A.extend,B.extendClass=A.extendClass,B.find=A.find,B.fireEvent=A.fireEvent,B.getMagnitude=A.getMagnitude,B.getStyle=A.getStyle,B.inArray=A.inArray,B.isArray=A.isArray,B.isClass=A.isClass,B.isDOMElement=A.isDOMElement,B.isFunction=A.isFunction,B.isNumber=A.isNumber,B.isObject=A.isObject,B.isString=A.isString,B.keys=A.keys,B.merge=A.merge,B.normalizeTickInterval=A.normalizeTickInterval,B.objectEach=A.objectEach,B.offset=A.offset,B.pad=A.pad,B.pick=A.pick,B.pInt=A.pInt,B.relativeLength=A.relativeLength,B.removeEvent=A.removeEvent,B.seriesType=c.seriesType,B.splat=A.splat,B.stableSort=A.stableSort,B.syncTimeout=A.syncTimeout,B.timeUnits=A.timeUnits,B.uniqueKey=A.uniqueKey,B.useSerialIds=A.useSerialIds,B.wrap=A.wrap,t.compose(e),u.compose(h),D.compose(L),d.compose(L),a.compose(i),y.compose(L),_.compose(o),l.compose(L,o,h),f.compose(v),B}),P["masters/highcharts.src.js"]._modules=P,P["masters/highcharts.src.js"]})}(he)),he.exports}(function(lt,ot){(function(st,P){lt.exports=P(_s(),Ke)})(window,function(st,P){return A=[function(q,K){q.exports=st},function(q,K){q.exports=P},function(q,U,Y){Y.r(U),Y.d(U,"Chart",function(){return f}),Y.d(U,"default",function(){return C});var U=Y(0),O=Y.n(U);function N(v,b){return function o(l,p,h){function c(e,t){!O.a.isObject(e,!h)||O.a.isClass(e)||O.a.isDOMElement(e)?l[t]=p[t]:l[t]=o(l[t]||O.a.isArray(e)?[]:{},e,h)}return O.a.isArray(p)?p.forEach(c):O.a.objectEach(p,c),l}({},v,b)}var R=Y(1);function x(v){return(x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(v)}function w(v){return function(b){if(Array.isArray(b))return L(b)}(v)||function(b){if(typeof Symbol<"u"&&b[Symbol.iterator]!=null||b["@@iterator"]!=null)return Array.from(b)}(v)||function(b,o){var l;if(b)return typeof b=="string"?L(b,o):(l=(l=Object.prototype.toString.call(b).slice(8,-1))==="Object"&&b.constructor?b.constructor.name:l)==="Map"||l==="Set"?Array.from(b):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?L(b,o):void 0}(v)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function L(v,b){(b==null||b>v.length)&&(b=v.length);for(var o=0,l=new Array(b);o<b;o++)l[o]=v[o];return l}function D(v,b){var o,l=Object.keys(v);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(v),b&&(o=o.filter(function(p){return Object.getOwnPropertyDescriptor(v,p).enumerable})),l.push.apply(l,o)),l}function d(v){for(var b=1;b<arguments.length;b++){var o=arguments[b]!=null?arguments[b]:{};b%2?D(Object(o),!0).forEach(function(l){var p,h;p=v,h=o[l=l],(l=function(c){return c=function(e,t){if(x(e)!=="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i===void 0)return(t==="string"?String:Number)(e);if(i=i.call(e,t||"default"),x(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(c,"string"),x(c)==="symbol"?c:String(c)}(l))in p?Object.defineProperty(p,l,{value:h,enumerable:!0,configurable:!0,writable:!0}):p[l]=h}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(o)):D(Object(o)).forEach(function(l){Object.defineProperty(v,l,Object.getOwnPropertyDescriptor(o,l))})}return v}var y={template:'<div ref="chart"></div>',props:{constructorType:{type:String,default:"chart"},options:{type:Object,required:!0},callback:Function,updateArgs:{type:Array,default:function(){return[!0,!0]}},highcharts:{type:Object},deepCopyOnUpdate:{type:Boolean,default:!0}}},k=function(v,b){return b.split(".")[0]<3?d(d({},y),{},{render:function(o){return o("div",{ref:"chart"})},beforeDestroy:function(){this.chart&&this.chart.destroy()},watch:{options:{handler:function(o){var l;(l=this.chart).update.apply(l,[N(o,this.deepCopyOnUpdate)].concat(w(this.updateArgs)))},deep:!0}},mounted:function(){var o=this.highcharts||v;this.options&&o[this.constructorType]?this.chart=o[this.constructorType](this.$refs.chart,N(this.options,!0),this.callback||null):this.options?console.warn("'".concat(this.constructorType,"' constructor-type is incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported.")):console.warn('The "options" parameter was not passed.')}}):d(d({},y),{},{render:function(){return Object(R.h)("div",{ref:"chartContainer"})},setup:function(o){var l=Object(R.ref)(null),p=Object(R.shallowRef)({});return Object(R.onMounted)(function(){var h=o.highcharts||v;o.options&&h[o.constructorType]?p.value=h[o.constructorType](l.value,N(o.options,!0),o.callback||null):o.options?console.warn("'".concat(o.constructorType,"' constructor-type is incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported.")):console.warn('The "options" parameter was not passed.')}),Object(R.watch)(function(){return o.options},function(h,c){var e;(e=p.value).update.apply(e,[N(h,o.deepCopyOnUpdate)].concat(w(o.updateArgs)))},{deep:!0}),Object(R.onBeforeUnmount)(function(){p.value&&p.value.destroy()}),{chart:p,chartContainer:l,props:o}}})},f=k(O.a,R.version||Y.n(R).a.version);function C(v){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};v.component(b.tagName||"highcharts",k(b.highcharts||O.a,v.version))}}],F={},B.m=A,B.c=F,B.d=function(q,K,Y){B.o(q,K)||Object.defineProperty(q,K,{enumerable:!0,get:Y})},B.r=function(q){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(q,"__esModule",{value:!0})},B.t=function(q,K){if(1&K&&(q=B(q)),8&K||4&K&&typeof q=="object"&&q&&q.__esModule)return q;var Y=Object.create(null);if(B.r(Y),Object.defineProperty(Y,"default",{enumerable:!0,value:q}),2&K&&typeof q!="string")for(var U in q)B.d(Y,U,(function(O){return q[O]}).bind(null,U));return Y},B.n=function(q){var K=q&&q.__esModule?function(){return q.default}:function(){return q};return B.d(K,"a",K),K},B.o=function(q,K){return Object.prototype.hasOwnProperty.call(q,K)},B.p="",B(B.s=2);function B(q){var K;return(F[q]||(K=F[q]={i:q,l:!1,exports:{}},A[q].call(K.exports,K,K.exports,B),K.l=!0,K)).exports}var A,F})})(ze);var ne=ze.exports;const Os={class:"w-88vw flex flex-col md:w-92vw"},Ls={class:"mx-auto max-w-screen-xl px-4 py-4 lg:px-6 lg:py-6"},Es={class:"lg:grid lg:grid-cols-3 sm:gap-6 xl:gap-10 space-y-8 lg:space-y-0"},Ds={class:"mx-auto max-w-[16rem] flex flex-col border border-gray-100 rounded-lg bg-white p-6 text-center text-gray-900 shadow dark:border-gray-600 dark:bg-gray-800 xl:p-8 dark:text-white"},Is={class:"mb-4 text-2xl font-semibold"},js={class:"my-8 flex items-baseline justify-center"},Bs={class:"mr-2 text-5xl font-extrabold"},zs={class:"mt-8 flex flex-col gap-8"},Rs=Dt({__name:"Statistics",props:{rank:null},setup(lt){const ot=lt,{t:st}=Vt(),P=kt(()=>ot.rank);function B(){const A=[];return A.push({title:"standings.statistics.head_data.problems",data:P.value.contest.problems.length}),A.push({title:"standings.statistics.head_data.teams",data:P.value.teams.length}),A.push({title:"standings.statistics.head_data.submissions",data:P.value.getSubmissions().length}),A}return(A,F)=>(ut(),ft("div",Os,[it("section",null,[it("div",Ls,[it("div",Es,[(ut(!0),ft(Et,null,It(B(),q=>(ut(),ft("div",{key:q.title},[it("div",Ds,[it("h3",Is,yt(Q(st)(q.title)),1),it("div",js,[it("span",Bs,yt(q.data),1)])])]))),128))])])]),it("div",zs,[it("div",null,[At(Q(ne.Chart),{options:("getSubmitChart"in A?A.getSubmitChart:Q(As))(Q(P))},null,8,["options"])]),it("div",null,[At(Q(ne.Chart),{options:("getProblemChart"in A?A.getProblemChart:Q(Ms))(Q(P))},null,8,["options"])]),it("div",null,[At(Q(ne.Chart),{options:("getTeamChart"in A?A.getTeamChart:Q(Ts))(Q(P))},null,8,["options"])])])]))}}),Ns={class:"flex flex-col items-start justify-between p-4 md:flex-row md:items-center space-y-3 md:space-y-0","aria-label":"Table navigation"},Hs={class:"text-sm font-normal text-gray-500 dark:text-gray-400"},$s={class:"font-semibold text-gray-900 dark:text-white"},Ws={class:"font-semibold text-gray-900 dark:text-white"},Fs={class:"inline-flex items-stretch font-mono -space-x-px"},Gs=it("span",{class:"sr-only"},"Previous",-1),Xs=it("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[it("path",{"fill-rule":"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z","clip-rule":"evenodd"})],-1),Ys=[Gs,Xs],Us={key:0},Vs=["onClick"],qs={"aria-current":"page",class:"z-10 flex items-center justify-center border border-primary-300 bg-primary-50 px-3 py-2 text-sm leading-tight text-primary-600 dark:border-gray-700 dark:bg-gray-700 hover:bg-primary-100 dark:text-white hover:text-primary-700",hover:"cursor-pointer"},Ks=["onClick"],Zs={key:1},Js=it("span",{class:"sr-only"},"Next",-1),Qs=it("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[it("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"})],-1),to=[Js,Qs],se="flex items-center justify-center px-3 py-2 text-sm text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white leading-tight",eo=Dt({__name:"TablePagination",props:{pagination:null},emits:["update:pagination"],setup(lt,{emit:ot}){const st=lt,P=kt({get(){return st.pagination},set(B){ot("update:pagination",B)}});return(B,A)=>(ut(),ft("nav",Ns,[it("span",Hs,[Yt(" Showing "),it("span",$s,yt(Q(P).currentLeft)+"-"+yt(Math.max(0,Q(P).currentRight-1)),1),Yt(" of "),it("span",Ws,yt(Q(P).totalSize),1)]),it("ul",Fs,[it("li",null,[it("a",{class:"ml-0 h-full flex items-center justify-center border border-gray-300 rounded-l-lg bg-white px-3 py-1.5 text-gray-500 dark:border-gray-700 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white",hover:"cursor-pointer",onClick:A[0]||(A[0]=F=>Q(P).onPageChange({diff:-1}))},Ys)]),Q(P).currentPage!==0?(ut(),ft("li",Us,[it("a",{class:Pt(se),hover:"cursor-pointer",onClick:A[1]||(A[1]=F=>Q(P).onPageChange({to:0}))}," 1 ")])):St("",!0),(ut(!0),ft(Et,null,It(Q(P).leftDecrPage,F=>(ut(),ft("li",{key:F},[it("a",{class:Pt(se),hover:"cursor-pointer",onClick:q=>Q(P).onPageChange({to:F})},yt(F+1),9,Vs)]))),128)),it("li",null,[it("a",qs,yt(Q(P).currentPage+1),1)]),(ut(!0),ft(Et,null,It(Q(P).rightIncrPage,F=>(ut(),ft("li",{key:F},[it("a",{hover:"cursor-pointer",class:Pt(se),onClick:q=>Q(P).onPageChange({to:F})},yt(F+1),9,Ks)]))),128)),Q(P).currentPage!==Q(P).totalPage-1&&Q(P).totalPage>1?(ut(),ft("li",Zs,[it("a",{hover:"cursor-pointer",class:Pt(se),onClick:A[2]||(A[2]=F=>Q(P).onPageChange({to:Q(P).totalPage-1}))},yt(Q(P).totalPage),1)])):St("",!0),it("li",null,[it("a",{class:"h-full flex items-center justify-center border border-gray-300 rounded-r-lg bg-white px-3 py-1.5 leading-tight text-gray-500 dark:border-gray-700 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white",hover:"cursor-pointer",onClick:A[3]||(A[3]=F=>Q(P).onPageChange({diff:1}))},to)])])]))}});class io{constructor(){ie(this,"totalSize");ie(this,"currentPage");ie(this,"pageSize");this.totalSize=0,this.currentPage=0,this.pageSize=16}get totalPage(){return Math.floor((this.totalSize+this.pageSize-1)/this.pageSize)}get currentLeft(){return this.currentPage*this.pageSize}get currentRight(){return Math.min(this.totalSize,(this.currentPage+1)*this.pageSize)}get leftDecrPage(){const ot=[];let st=1,P=this.currentPage-st;for(;P>0;)ot.push(P),st=st<<1,P-=st;return ot.reverse()}get rightIncrPage(){const ot=[];let st=1,P=this.currentPage+st;for(;P+1<this.totalPage;)ot.push(P),st=st<<1,P+=st;return ot}onPageChange(ot){const st=this.totalPage;let P=this.currentPage;if((ot==null?void 0:ot.to)!==void 0&&(P=ot.to),(ot==null?void 0:ot.diff)!==void 0){const B=ot.diff;P=P+B}P<0||P>=st||(this.currentPage=P)}}const ee=lt=>(Qt("data-v-f9153f57"),lt=lt(),te(),lt),so={"mx-auto":"","w-full":"","px-4":""},oo={"space-y-3":"",flex:"","flex-col":"","px-4":"","py-3":"","lg:flex-row":"","lg:items-center":"","lg:justify-between":"","lg:space-x-4":"","lg:space-y-0":""},no={flex:"","flex-shrink-0":"","flex-col":"","md:flex-row":"","md:items-center":"","lg:justify-end":"","space-y-3":"","md:space-x-3":"","md:space-y-0":""},ro={key:0,"w-48":""},ao={key:1,"w-48":""},lo={key:2,"w-64":""},ho={key:3,"w-48":""},co={key:4},po=ee(()=>it("div",{"i-material-symbols-search":"","mr-1":"","h-5":"","w-5":""},null,-1)),uo={class:"overflow-x-auto"},fo={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400","font-medium":"","font-mono":""},go={class:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"},mo=ee(()=>it("th",{scope:"col",class:"px-4 py-3"}," Problem ",-1)),xo={key:0,scope:"col",class:"px-4 py-3"},yo=ee(()=>it("th",{scope:"col",class:"px-4 py-3"}," Team ",-1)),vo=ee(()=>it("th",{scope:"col",class:"px-4 py-3"}," Status ",-1)),ko={key:1,scope:"col",class:"px-4 py-3"},bo={key:2,scope:"col",class:"px-4 py-3"},wo={key:3,scope:"col",class:"px-4 py-3"},So=ee(()=>it("th",{scope:"col",class:"px-4 py-3"}," Submit Time ",-1)),Co={"px-4":"","py-2":""},Mo={key:0,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},To={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Ao={key:1,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Po={flex:"","items-center":""},_o={key:2,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Oo={key:3,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Lo={flex:"","items-center":""},Eo={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},Do={flex:"","items-center":""},Io=Dt({__name:"SubmissionsTable",props:{rank:null,submissions:null,pageSize:null,removeBorder:{type:Boolean},enableFilter:null},setup(lt){const ot=lt,st=kt(()=>ot.rank),P=kt(()=>ot.enableFilter),B=kt(()=>{if(!P.value)return!1;for(const[e,t]of Object.entries(P.value))if(t===!0)return!0;return!1}),A=Tt({orgNames:[],teamIds:[],languages:[],statuses:[]}),F=kt(()=>st.value.organizations.map(t=>({value:t,text:t}))),q=Tt([]),K=Tt({});function Y(e,t){q.value=e,K.value=t}const U=kt(()=>st.value.originTeams.map(t=>({value:t.id,text:t.organization?`${t.name} - ${t.organization}`:t.name}))),O=Tt([]),N=Tt({});function R(e,t){O.value=e,N.value=t}const x=kt(()=>st.value.languages.map(i=>({value:i,text:i}))),w=Tt([]),L=Tt({});function D(e,t){w.value=e,L.value=t}const d=kt(()=>st.value.statuses.map(i=>({value:i,text:ge[i]}))),y=Tt([]),k=Tt({});function f(e,t){y.value=e,k.value=t}function C(e){return e.value.toString()}const v=kt(()=>ot.submissions.filter(t=>{const i=A.value;if(i.orgNames.length===0&&i.teamIds.length===0&&i.languages.length===0&&i.statuses.length===0)return!0;if(i.teamIds.length>0){for(const a of i.teamIds)if(a===t.teamId)return!0}if(i.orgNames.length>0){const a=st.value.teamsMap.get(t.teamId);for(const u of i.orgNames)if(u===(a==null?void 0:a.organization))return!0}if(i.languages.length>0){for(const a of i.languages)if(a===t.language)return!0}if(i.statuses.length>0){for(const a of i.statuses)if(a===t.status)return!0}return!1}).sort(Pe.compare).reverse());function b(){const e={orgNames:[],teamIds:[],languages:[],statuses:[]};e.orgNames=q.value.map(t=>t.value),e.teamIds=O.value.map(t=>t.value),e.languages=w.value.map(t=>t.value),e.statuses=y.value.map(t=>t.value),A.value=e}const o=Tt(new io);o.value.currentPage=0,o.value.pageSize=ot.pageSize??16,o.value.totalSize=v.value.length,re(v,()=>{o.value.totalSize=v.value.length,o.value.currentPage>=o.value.totalPage&&(o.value.currentPage=o.value.totalPage-1)});const l=kt(()=>v.value.slice(o.value.currentLeft,o.value.currentRight)),p=Tt(!1);function h(e){const t="bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-300",i=e.problemId,a=st.value.contest.problemsMap.get(i);if(a==null||!a.balloonColor)return t}function c(e){const t=e.problemId,i=st.value.contest.problemsMap.get(t);if(i==null||!i.balloonColor)return;const a=i.balloonColor;return{backgroundColor:a.background_color,color:a.color}}return(e,t)=>{var u,_,r,S;const i=ce,a=eo;return ut(),ft("section",null,[it("div",so,[it("div",{relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":"",class:Pt({"shadow-md":ot.removeBorder!==!0,"sm:rounded-sm":ot.removeBorder!==!0})},[it("div",oo,[it("div",no,[Q(st).contest.organization&&((u=Q(P))!=null&&u.organization)?(ut(),ft("div",ro,[At(Q(Zt),{options:Q(F),"selected-options":Q(q),placeholder:Q(st).contest.organization,onSelect:Y},null,8,["options","selected-options","placeholder"])])):St("",!0),(_=Q(P))!=null&&_.team?(ut(),ft("div",ao,[At(Q(Zt),{options:Q(U),"selected-options":Q(O),placeholder:"Team",onSelect:R},null,8,["options","selected-options"])])):St("",!0),(r=Q(P))!=null&&r.status?(ut(),ft("div",lo,[At(Q(Zt),{options:Q(d),"selected-options":Q(y),placeholder:"Status","custom-attr":C,onSelect:f},null,8,["options","selected-options"])])):St("",!0),(S=Q(P))!=null&&S.language&&Q(x).length>0?(ut(),ft("div",ho,[At(Q(Zt),{options:Q(x),"selected-options":Q(w),placeholder:"Language",onSelect:D},null,8,["options","selected-options"])])):St("",!0),Q(B)?(ut(),ft("div",co,[it("button",{type:"button",class:"flex flex-shrink-0 items-center justify-center border border-gray-200 rounded-lg bg-white px-3 py-2 text-sm font-medium text-gray-900 focus:z-10 dark:border-gray-600 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-primary-700 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700",onClick:b},[po,Yt(" Filter ")])])):St("",!0)])]),it("div",uo,[it("table",fo,[it("thead",go,[it("tr",null,[mo,Q(st).contest.organization?(ut(),ft("th",xo,yt(Q(st).contest.organization),1)):St("",!0),yo,vo,Q(st).contest.options.submissionHasTimeField?(ut(),ft("th",ko," Time ")):St("",!0),Q(p)?(ut(),ft("th",bo," Memory ")):St("",!0),Q(st).contest.options.submissionHasLanguageField?(ut(),ft("th",wo," Answer ")):St("",!0),So])]),it("tbody",null,[(ut(!0),ft(Et,null,It(Q(l),G=>{var Z,rt,j;return ut(),ft("tr",{key:G.id,class:"border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"},[it("td",Co,[it("span",{class:Pt(["rounded px-2 py-0.5 text-sm",[h(G)]]),style:Ut(c(G))},yt((Z=Q(st).contest.problemsMap.get(G.problemId))==null?void 0:Z.label),7)]),Q(st).contest.organization?(ut(),ft("td",Mo,yt((rt=Q(st).teamsMap.get(G.teamId))==null?void 0:rt.organization),1)):St("",!0),it("td",To,yt((j=Q(st).teamsMap.get(G.teamId))==null?void 0:j.name),1),it("td",{scope:"row",class:Pt([G.status.toString()]),"whitespace-nowrap":"","px-4":"","py-2":"",flex:"","items-center":"","font-bold":""},yt(Q(ge)[G.status]),3),Q(st).contest.options.submissionHasTimeField?(ut(),ft("td",Ao,[it("div",Po,yt(`${G.time??0} ms`),1)])):St("",!0),Q(p)?(ut(),ft("td",_o," 0.47 ")):St("",!0),Q(st).contest.options.submissionHasLanguageField?(ut(),ft("td",Oo,[it("div",Lo,yt(G.language),1)])):St("",!0),it("td",Eo,[it("div",Do,[At(i,null,{popper:Wt(()=>[Yt(yt(G.timestampDisplayFormatWithMilliSecond),1)]),default:Wt(()=>[Yt(yt(G.timestampDisplayFormatWithSecond)+" ",1)]),_:2},1024)])])])}),128))])])]),At(a,{pagination:Q(o),"onUpdate:pagination":t[0]||(t[0]=G=>Bt(o)?o.value=G:null)},null,8,["pagination"])],2)])])}}});const le=Ft(Io,[["__scopeId","data-v-f9153f57"]]),pe=lt=>(Qt("data-v-cd615748"),lt=lt(),te(),lt),jo={class:"statistics-0"},Bo=["colspan"],zo={class:"stnd"},Ro={class:"statistics-1"},No=["colspan"],Ho={class:"stnd"},$o=pe(()=>it("br",null,null,-1)),Wo={class:"statistics-0"},Fo=["colspan"],Go={class:"stnd"},Xo=pe(()=>it("br",null,null,-1)),Yo={class:"statistics-1"},Uo=["colspan"],Vo={class:"stnd"},qo=pe(()=>it("br",null,null,-1)),Ko={class:"statistics-0"},Zo=["colspan"],Jo={class:"stnd"},Qo={class:"statistics-1"},tn=["colspan"],en={class:"stnd"},sn=Dt({__name:"BottomStatistics",props:{rank:null},setup(lt){const ot=lt,{t:st}=Vt(),P=kt(()=>ot.rank);function B(){let U=3;return P.value.contest.organization&&U++,P.value.contest.badge&&U++,U}function A(U){return U.submittedNum===0?"NaN":`${Math.floor(U.attemptedNum*100/U.submittedNum)}%`}function F(U){return U.submittedNum===0?"NaN":`${Math.floor(U.acceptedNum*100/U.submittedNum)}%`}function q(U){return U.attemptedNum===0?"NaN":`${U.dirt}%`}function K(U){return U.firstSolveSubmissions.length===0?"Null":`${U.firstSolveSubmissions[0].timestampToMinute}`}function Y(U){return U.lastSolveSubmissions.length===0?"Null":`${U.lastSolveSubmissions[0].timestampToMinute}`}return(U,O)=>(ut(),ft(Et,null,[it("tr",jo,[it("td",{class:"empty",colspan:B()},null,8,Bo),it("td",zo,[it("b",null,yt(Q(st)("standings.statistics.submitted")),1)]),(ut(!0),ft(Et,null,It(Q(P).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[it("b",null,yt(N.statistics.submittedNum),1)]))),128))]),it("tr",Ro,[it("td",{class:"empty",colspan:B()},null,8,No),it("td",Ho,[it("b",null,yt(Q(st)("standings.statistics.attempted")),1)]),(ut(!0),ft(Et,null,It(Q(P).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[it("b",null,yt(N.statistics.attemptedNum),1),$o,it("b",null," ("+yt(A(N.statistics))+") ",1)]))),128))]),it("tr",Wo,[it("td",{class:"empty",colspan:B()},null,8,Fo),it("td",Go,[it("b",null,yt(Q(st)("standings.statistics.accepted")),1)]),(ut(!0),ft(Et,null,It(Q(P).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[it("b",null,yt(N.statistics.acceptedNum),1),Xo,it("b",null," ("+yt(F(N.statistics))+") ",1)]))),128))]),it("tr",Yo,[it("td",{class:"empty",colspan:B()},null,8,Uo),it("td",Vo,[it("b",null,yt(Q(st)("standings.statistics.dirt")),1)]),(ut(!0),ft(Et,null,It(Q(P).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[it("b",null,yt(N.statistics.attemptedNum-N.statistics.acceptedNum),1),qo,it("b",null," ("+yt(q(N.statistics))+") ",1)]))),128))]),it("tr",Ko,[it("td",{class:"empty",colspan:B()},null,8,Zo),it("td",Jo,[it("b",null,yt(Q(st)("standings.statistics.first_solved")),1)]),(ut(!0),ft(Et,null,It(Q(P).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[it("b",null,yt(K(N.statistics)),1)]))),128))]),it("tr",Qo,[it("td",{class:"empty",colspan:B()},null,8,tn),it("td",en,[it("b",null,yt(Q(st)("standings.statistics.last_solved")),1)]),(ut(!0),ft(Et,null,It(Q(P).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[it("b",null,yt(Y(N.statistics)),1)]))),128))])],64))}});const on=Ft(sn,[["__scopeId","data-v-cd615748"]]),nn={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":"",class:"mt-[-12px]"},rn=Dt({__name:"SubmissionsTableModal",props:{isHidden:{type:Boolean},rank:null,team:null,p:null},emits:["update:isHidden"],setup(lt,{emit:ot}){const st=lt,P=kt({get(){return st.isHidden},set(K){ot("update:isHidden",K)}}),B=kt(()=>st.rank),A=kt(()=>st.team),F=kt(()=>st.p),q=kt(()=>`${A.value.name} - ${F.value.problem.label}`);return(K,Y)=>{const U=le,O=ae;return ut(),Nt(O,{isHidden:Q(P),"onUpdate:isHidden":Y[0]||(Y[0]=N=>Bt(P)?P.value=N:null),title:Q(q)},{default:Wt(()=>[it("div",nn,[At(U,{"w-full":"",rank:Q(B),submissions:Q(F).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])]),_:1},8,["isHidden","title"])}}}),an=lt=>(Qt("data-v-dbdd6e30"),lt=lt(),te(),lt),ln=an(()=>it("br",null,null,-1)),hn=Dt({__name:"TeamProblemBlock",props:{rank:null,team:null,p:null},setup(lt){const ot=lt,st=Tt(!0);function P(){st.value=!1}const B=kt(()=>ot.rank),A=kt(()=>ot.team),F=kt(()=>ot.p);function q(U){return U.isSolved?"+":U.isWrongAnswer?"-":U.isPending?`? ${U.pendingCount}`:""}function K(U){let O="";return U.isUnSubmitted||(O+=`${U.failedCount+Number(U.isSolved)}`),(U.isSolved&&B.value.contest.statusTimeDisplay.correct||U.isPending&&B.value.contest.statusTimeDisplay.pending||U.isWrongAnswer&&B.value.contest.statusTimeDisplay.incorrect)&&(O+=`/${Math.floor(U.lastSubmitTimestamp/60)}`),O}function Y(U){return U.isFirstSolved?"first-solve":U.isSolved?"correct":U.isWrongAnswer?"incorrect":U.isPending?"pending":"unattempted"}return(U,O)=>{const N=rn;return ut(),ft("td",{class:Pt(["stnd",[Y(Q(F))]])},[it("div",{"cursor-pointer":"",onClick:P},[Yt(yt(q(Q(F)))+" ",1),ln,Yt(" "+yt(K(Q(F))),1)]),it("div",null,[Q(st)?St("",!0):(ut(),Nt(N,{key:0,isHidden:Q(st),"onUpdate:isHidden":O[0]||(O[0]=R=>Bt(st)?st.value=R:null),rank:Q(B),team:Q(A),p:Q(F)},null,8,["isHidden","rank","team","p"]))])],2)}}});const cn=Ft(hn,[["__scopeId","data-v-dbdd6e30"]]),dn={"text-gray-900":"","dark:text-white":"","text-xl":"","font-mono":"","font-semibold":"",italic:"",flex:"","flex-col":"","gap-2":"","justify-center":"","items-center":""},pn={flex:"","flex-col":"","items-start":"","gap-y-2":""},un={key:0},fn={key:1},gn={key:2,flex:"","flex-col":"","gap-2":""},mn={key:3},xn=Dt({__name:"TeamAwards",props:{team:null,rank:null},setup(lt){const ot=lt,st=kt(()=>ot.team),P=kt(()=>ot.rank),B=kt(()=>ot.team.problemStatistics.filter(q=>!!q.isFirstSolved).map(q=>q.problem.label).join(",")),A=kt(()=>{const q=ot.team.awards;return q.includes(qt.GOLD)?{text:"Gold"}:q.includes(qt.SILVER)?{text:"Silver"}:q.includes(qt.BRONZE)?{text:"Bronze"}:q.includes(qt.HONORABLE)?{text:"Honorable"}:null}),F=kt(()=>{let q=st.value.rank;return P.value.contest.organization&&(q=st.value.organizationRank),q===1?"1st Place":q===2?"2nd Place":q===3?"3rd Place":""});return(q,K)=>(ut(),ft("div",dn,[it("div",pn,[Q(A)?(ut(),ft("div",un,yt(Q(A).text)+" Medalist ",1)):St("",!0),Q(F).length>0?(ut(),ft("div",fn,yt(Q(F)),1)):St("",!0),Q(B).length?(ut(),ft("div",gn,[it("div",null," First Solved Problem "+yt(Q(B)),1)])):St("",!0),Q(st).solvedProblemNum>0?(ut(),ft("div",mn," Solved "+yt(Q(st).solvedProblemNum)+" "+yt(Q(st).solvedProblemNum>1?"Problems":"Problem"),1)):St("",!0)])]))}}),yn={role:"group","inline-flex":"","flex-col":"","w-full":"","md:w-auto":"","md:flex-row":"","rounded-md":"","shadow-sm":""},vn=["onClick"],Re=Dt({__name:"ModalMenu",props:{currentType:null,types:null},emits:["update:currentType"],setup(lt,{emit:ot}){const st=lt,{t:P}=Vt(),B=kt({get(){return st.currentType},set(q){ot("update:currentType",q)}});function A(q){B.value=q}const F=kt(()=>st.types.length);return(q,K)=>(ut(),ft("div",yn,[(ut(!0),ft(Et,null,It(st.types,(Y,U)=>(ut(),ft("button",{key:Y,type:"button","px-4":"","py-2":"","my-2":"","text-sm":"","font-medium":"","text-gray-900":"","bg-white":"","dark:bg-gray-700":"","dark:text-white":"","border-gray-200":"","dark:border-gray-600":"","hover:bg-gray-100":"","dark:hover:bg-gray-600":"","hover:text-primary-700":"","dark:hover:text-white":"","focus:z-10":"","focus:ring-2":"","focus:ring-primary-700":"","focus:text-primary-700":"","dark:focus:ring-primary-500":"","dark:focus:text-white":"",class:Pt({"rounded-t-lg md:rounded-tr-none md:rounded-l-lg":U===0,"rounded-b-lg md:rounded-bl-none md:rounded-r-lg mr-2":U+1===Q(F),border:U===0||U+1===Q(F),"border-t border-x md:border-x-0 md:border-b":U>0&&U+1<Q(F),"md:border-r-0":U===0,"md:border-l":U>0,"z-10 ring-2 ring-primary-700 text-primary-700 dark:ring-primary-600 dark:text-white":Q(B)===Y}),onClick:O=>A(Y)},yt(Q(P)(`type_menu.${Y}`)),11,vn))),128))]))}}),kn=["src"],Ne=Dt({__name:"Badge",props:{image:null,widthClass:null},setup(lt){const ot=lt,st=kt(()=>ot.image),P=kt(()=>ot.widthClass?ot.widthClass:"h-8 w-8");return(B,A)=>Q(st).base64?(ut(),ft("img",{key:0,src:Q(Ze)(Q(st)),alt:"badge",class:Pt([Q(P)])},null,10,kn)):St("",!0)}}),bn={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},wn={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},Sn={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},Cn={flex:"","flex-row":"","space-x-3":""},Mn={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},Tn={flex:"","flex-col":"","justify-start":"","items-start":""},An={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},Pn={key:0,"w-full":"",class:"mt-[-12px]"},_n={key:1,"w-full":""},On={key:2,"w-full":""},ve="submissions",ke="statistics",be="awards",Ln=Dt({__name:"TeamInfoModal",props:{isHidden:{type:Boolean},rank:null,team:null},emits:["update:isHidden"],setup(lt,{emit:ot}){const st=lt,P=kt({get(){return st.isHidden},set(Y){ot("update:isHidden",Y)}}),B=Tt("submissions"),A=kt(()=>st.rank),F=kt(()=>st.team),q=kt(()=>{let Y="";return A.value.contest.organization&&F.value.organization.length>0&&(Y+=`${F.value.organization} - `),Y+=`${F.value.name}`,F.value.members&&(Y+=` - ${F.value.members}`),F.value.coach&&(Y+=` - ${F.value.coach}(coach)`),Y}),K=[ve,ke,be];return(Y,U)=>{const O=Ne,N=ce,R=Re,x=le,w=xn,L=ae;return ut(),Nt(L,{isHidden:Q(P),"onUpdate:isHidden":U[1]||(U[1]=D=>Bt(P)?P.value=D:null)},{header:Wt(()=>[it("div",bn,[it("div",wn,[it("div",Sn,[it("div",Cn,[Q(F).badge?(ut(),Nt(O,{key:0,image:Q(F).badge,"width-class":"h-8 w-8"},null,8,["image"])):St("",!0),At(N,null,{popper:Wt(()=>[it("div",Tn,[it("div",null," TeamID: "+yt(Q(F).id),1)])]),default:Wt(()=>[it("h3",Mn,yt(Q(q)),1)]),_:1})]),At(R,{"current-type":Q(B),"onUpdate:currentType":U[0]||(U[0]=D=>Bt(B)?B.value=D:null),types:K},null,8,["current-type"])])])])]),default:Wt(()=>[it("div",An,[Q(B)===ve?(ut(),ft("div",Pn,[At(x,{"w-full":"",rank:Q(A),submissions:Q(F).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])):St("",!0),Q(B)===ke?(ut(),ft("div",_n,[At(Q(ne.Chart),{options:("getTeamPlaceChart"in Y?Y.getTeamPlaceChart:Q(Ps))(Q(A),Q(F))},null,8,["options"])])):St("",!0),Q(B)===be?(ut(),ft("div",On,[At(w,{team:Q(F),rank:Q(A)},null,8,["team","rank"])])):St("",!0)])]),_:1},8,["isHidden"])}}}),En={},Dn={class:"color-gray-700 dark:color-gray-200"},In=it("svg",{t:"1685666543416",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3736",width:"16",height:"16"},[it("path",{d:"M661.333333 662.613333c0.213333 82.133333 28.8 169.386667 64 169.386667v170.666667H298.666667v-170.666667c35.2 0 63.786667-87.253333 64-169.386667a176.256 176.256 0 0 1 21.333333-1.28h21.333333c0 35.413333 47.786667 64 106.666667 64s106.666667-28.586667 106.666667-64h21.333333a176.256 176.256 0 0 1 21.333333 1.28z",fill:"#F3596B","p-id":"3737"}),it("path",{d:"M810.666667 832v170.666667h-85.333334v-170.666667c-35.2 0-63.786667-87.253333-64-169.386667A170.666667 170.666667 0 0 1 810.666667 832zM362.666667 662.613333c-0.213333 82.133333-28.8 169.386667-64 169.386667v170.666667h-85.333334v-170.666667a170.666667 170.666667 0 0 1 149.333334-169.386667z",fill:"#FFD0AA","p-id":"3738"}),it("path",{d:"M704 320v-85.333333c0-94.293333-97.706667-170.666667-192-170.666667a42.794667 42.794667 0 0 1 42.666667-42.666667h128a128 128 0 0 1 128 128v234.666667s0 85.333333 85.333333 85.333333c0 0-93.226667 134.613333-228.48 6.186667a166.229333 166.229333 0 0 0 13.866667-49.066667L682.666667 426.666667h21.333333a42.666667 42.666667 0 0 0 0-85.333334h-21.333333v-21.333333z",fill:"#FFCA6B","p-id":"3739"}),it("path",{d:"M704 234.666667H320c0-94.293333 97.706667-170.666667 192-170.666667s192 76.373333 192 170.666667z",fill:"#FFCA6B","p-id":"3740"}),it("path",{d:"M704 234.666667v85.333333H320v-85.333333h384z",fill:"#F3596B","p-id":"3741"}),it("path",{d:"M746.666667 384a42.794667 42.794667 0 0 1-42.666667 42.666667h-21.333333l-1.28-0.213334A172.8 172.8 0 0 0 682.666667 405.333333v-64h21.333333a42.794667 42.794667 0 0 1 42.666667 42.666667zM341.333333 405.333333a172.8 172.8 0 0 0 1.28 21.12L341.333333 426.666667h-21.333333a42.666667 42.666667 0 0 1 0-85.333334h21.333333zM618.666667 661.333333c0 35.413333-47.786667 64-106.666667 64s-106.666667-28.586667-106.666667-64a42.794667 42.794667 0 0 0 42.666667-42.666666v-55.04a171.712 171.712 0 0 0 128 0V618.666667a42.794667 42.794667 0 0 0 42.666667 42.666666z",fill:"#FFD0AA","p-id":"3742"}),it("path",{d:"M682.666667 341.333333v64a172.8 172.8 0 0 1-1.28 21.12 166.229333 166.229333 0 0 1-13.866667 49.066667A170.474667 170.474667 0 0 1 576 563.626667 170.538667 170.538667 0 0 1 341.333333 405.333333v-85.333333h341.333334z",fill:"#FFD0AA","p-id":"3743"}),it("path",{d:"M810.666667 1024H213.333333a21.333333 21.333333 0 0 1-21.333333-21.333333v-170.666667a192.213333 192.213333 0 0 1 192-192h21.333333a21.333333 21.333333 0 0 0 21.333334-21.333333v-64h42.666666v64a64 64 0 0 1-64 64h-21.333333a149.504 149.504 0 0 0-149.333333 149.333333v149.333333h554.666666v-149.333333a149.504 149.504 0 0 0-149.333333-149.333333h-21.333333a64 64 0 0 1-64-64v-64h42.666666v64a21.333333 21.333333 0 0 0 21.333334 21.333333h21.333333a192.213333 192.213333 0 0 1 192 192v170.666667a21.333333 21.333333 0 0 1-21.333333 21.333333z",fill:"#2A3244","p-id":"3744"}),it("path",{d:"M512 597.333333a192.234667 192.234667 0 0 1-192-192v-85.333333a21.333333 21.333333 0 0 1 21.333333-21.333333h341.333334a21.333333 21.333333 0 0 1 21.333333 21.333333v85.333333a192.234667 192.234667 0 0 1-192 192z m-149.333333-256v64a149.333333 149.333333 0 0 0 298.666666 0v-64z",fill:"#2A3244","p-id":"3745"}),it("path",{d:"M704 448h-21.333333v-42.666667h21.333333a21.333333 21.333333 0 0 0 0-42.666666h-21.333333v-42.666667h21.333333a64 64 0 0 1 0 128zM341.333333 448h-21.333333a64 64 0 0 1 0-128h21.333333v42.666667h-21.333333a21.333333 21.333333 0 0 0 0 42.666666h21.333333z",fill:"#2A3244","p-id":"3746"}),it("path",{d:"M704 341.333333H320a21.333333 21.333333 0 0 1-21.333333-21.333333v-85.333333a21.333333 21.333333 0 0 1 21.333333-21.333334h384a21.333333 21.333333 0 0 1 21.333333 21.333334v85.333333a21.333333 21.333333 0 0 1-21.333333 21.333333z m-362.666667-42.666666h341.333334v-42.666667H341.333333z",fill:"#2A3244","p-id":"3747"}),it("path",{d:"M725.333333 234.666667h-42.666666c0-84.096-91.733333-149.333333-170.666667-149.333334s-170.666667 65.237333-170.666667 149.333334h-42.666666c0-109.888 112.618667-192 213.333333-192s213.333333 82.112 213.333333 192z",fill:"#2A3244","p-id":"3748"}),it("path",{d:"M783.616 552.32c-46.122667 0-92.266667-22.805333-137.365333-67.904l30.165333-30.165333c39.701333 39.701333 78.613333 58.389333 115.648 55.018666a114.282667 114.282667 0 0 0 60.8-26.026666A105.92 105.92 0 0 1 789.333333 384V149.333333a106.794667 106.794667 0 0 0-106.666666-106.666666h-128a21.333333 21.333333 0 0 0-21.333334 21.333333h-42.666666a64 64 0 0 1 64-64h128a149.504 149.504 0 0 1 149.333333 149.333333v234.666667a60.842667 60.842667 0 0 0 64 64 21.333333 21.333333 0 0 1 17.536 33.472 174.72 174.72 0 0 1-117.333333 70.250667 130.133333 130.133333 0 0 1-12.586667 0.597333zM512 746.666667c-71.765333 0-128-37.482667-128-85.333334h42.666667c0 20.138667 36.48 42.666667 85.333333 42.666667s85.333333-22.528 85.333333-42.666667h42.666667c0 47.850667-56.234667 85.333333-128 85.333334zM746.666667 1002.666667h-42.666667v-154.709334c-43.968-23.274667-64-117.333333-64-186.624h42.666667c0 85.333333 29.866667 148.842667 42.666666 149.333334a22.08 22.08 0 0 1 21.333334 21.333333zM320 1002.666667h-42.666667v-170.666667a21.333333 21.333333 0 0 1 21.333334-21.333333c12.8-0.490667 42.666667-64 42.666666-149.333334h42.666667c0 69.354667-20.032 163.349333-64 186.624z",fill:"#2A3244","p-id":"3749"})],-1),jn=[In];function Bn(lt,ot){return ut(),ft("div",Dn,jn)}const zn=Ft(En,[["render",Bn]]),Rn={},Nn={class:"color-gray-700 dark:color-gray-200"},Hn=it("svg",{t:"1685845881484",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4847",width:"16",height:"16"},[it("path",{d:"M785.352203 933.397493c-4.074805 0-8.151657-0.970094-11.833513-3.007497l-261.311471-142.488225L250.942821 930.388972c-8.343015 4.559852-18.527982 3.8814-26.28669-1.599428-7.760754-5.5279-11.640108-14.987343-10.088776-24.347524l47.578622-285.365306L72.563154 429.470355c-6.594185-6.547113-8.971325-16.295128-6.110161-25.122167 2.814092-8.850575 10.379395-15.397688 19.546172-16.949021l285.512662-47.577598 118.529557-236.989529c4.172019-8.391111 12.803607-13.701047 22.165836-13.701047 9.359158 0 17.992793 5.309936 22.163789 13.701047l118.529557 236.989529 285.511639 47.577598c9.217942 1.551332 16.73208 8.051373 19.593244 16.949021 2.813069 8.875135 0.48607 18.575054-6.109138 25.122167L762.264369 619.077737l47.577598 285.365306c1.50119 9.360182-2.37714 18.819624-10.087753 24.347524C795.487028 931.797042 790.394033 933.397493 785.352203 933.397493zM512.206196 734.747153c4.073782 0 8.196683 0.968048 11.880585 3.006474l228.379431 124.545574-41.268916-247.634983c-1.308809-7.90504 1.257643-16.005532 6.932899-21.63167l164.55787-164.555823-250.398934-41.709961c-7.855922-1.308809-14.549368-6.304589-18.140149-13.408381l-101.942787-203.915249","p-id":"4848"})],-1),$n=[Hn];function Wn(lt,ot){return ut(),ft("div",Nn,$n)}const Fn=Ft(Rn,[["render",Wn]]),Gn=lt=>(Qt("data-v-30762cf0"),lt=lt(),te(),lt),Xn={key:1,class:"empty flex items-center justify-center"},Yn={flex:""},Un={class:"float-left pl-2 font-serif"},Vn={key:0},qn={class:"flex-1"},Kn=Gn(()=>it("div",{class:"float-right"},null,-1)),Zn=Dt({__name:"TeamUI",props:{ix:null,rank:null,team:null,isFilter:{type:Boolean}},setup(lt){const ot=lt,st=Tt(null),P=Je(st),B=Tt(!0);function A(){B.value=!1}const F=kt(()=>ot.rank),q=kt(()=>ot.team);function K(U,O=!1){if(ot.isFilter)return"filter-team";if(O){if(U.awards.includes(qt.GOLD))return"gold";if(U.awards.includes(qt.SILVER))return"silver";if(U.awards.includes(qt.BRONZE))return"bronze";if(U.awards.includes(qt.HONORABLE))return"honorable"}const N=(F.value.rankStatistics.getTeamSolvedNumIndex(U.solvedProblemNum)-1)%2,R=(U.rank-1)%2;return`stand${N}${R}`}function Y(){return P.value||ot.ix<32}return(U,O)=>{const N=Ne,R=Fn,x=zn,w=Ln,L=cn;return ut(),ft("tr",{ref_key:"el",ref:st,class:Pt(["h-10",[ot.isFilter?"filter-team":""]])},[Y()?(ut(),ft("td",{key:0,class:Pt(["stnd",[K(Q(q),!0)]])},yt(Q(q).rank),3)):St("",!0),Q(F).contest.badge&&Q(q).badge&&Y()?(ut(),ft("td",Xn,[At(N,{image:Q(q).badge,"width-class":"h-8 w-8"},null,8,["image"])])):St("",!0),Q(F).contest.organization&&Y()?(ut(),ft("td",{key:2,class:Pt(["stnd",[K(Q(q))]])},[it("div",Yn,[it("div",Un,[Q(q).organizationRank>-1?(ut(),ft("div",Vn,yt(Q(q).organizationRank),1)):St("",!0)]),it("div",qn,yt(Q(q).organization),1),Kn])],2)):St("",!0),Y()?(ut(),ft("td",{key:3,class:Pt(["stnd",[K(Q(q))]])},[it("div",{"cursor-pointer":"",onClick:A},[it("span",null,yt(Q(q).name),1),Q(q).group.includes("unofficial")?(ut(),Nt(R,{key:0,"inline-block":""})):St("",!0),Q(q).group.includes("girl")?(ut(),Nt(x,{key:1,"inline-block":""})):St("",!0)]),it("div",null,[Q(B)?St("",!0):(ut(),Nt(w,{key:0,isHidden:Q(B),"onUpdate:isHidden":O[0]||(O[0]=D=>Bt(B)?B.value=D:null),rank:Q(F),team:Q(q)},null,8,["isHidden","rank","team"]))])],2)):St("",!0),Y()?(ut(),ft("td",{key:4,class:Pt(["stnd",[K(Q(q))]])},yt(Q(q).solvedProblemNum),3)):St("",!0),Y()?(ut(),ft("td",{key:5,class:Pt(["stnd",[K(Q(q))]])},yt(Q(q).penaltyToMinute),3)):St("",!0),(ut(!0),ft(Et,null,It(Q(q).problemStatistics,D=>(ut(),ft(Et,{key:D.problem.id},[Y()?(ut(),Nt(L,{key:0,rank:Q(F),team:Q(q),p:D},null,8,["rank","team","p"])):St("",!0)],64))),128)),Y()?(ut(),ft("td",{key:6,class:Pt(["stnd",[K(Q(q))]])},yt(`${Q(q).dirt}%`),3)):St("",!0)],2)}}});const Jn=Ft(Zn,[["__scopeId","data-v-30762cf0"]]),Qn={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},tr={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},er={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},ir={flex:"","flex-row":"","space-x-3":""},sr={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},or={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},nr={key:0,"w-full":"",class:"mt-[-12px]"},rr={key:1,"w-full":""},ar={key:2,"w-full":""},we="submissions",Se="statistics",Ce="awards",lr=Dt({__name:"ProblemInfoModal",props:{isHidden:{type:Boolean},rank:null,problem:null},emits:["update:isHidden"],setup(lt,{emit:ot}){const st=lt,P=kt({get(){return st.isHidden},set(U){ot("update:isHidden",U)}}),B=Tt("submissions"),A=kt(()=>st.rank),F=kt(()=>st.problem),q=kt(()=>`Problem ${F.value.label}`),K=kt(()=>A.value.getSubmissions().filter(U=>U.problemId===F.value.id)),Y=[we,Se,Ce];return(U,O)=>{const N=Re,R=le,x=ae;return ut(),Nt(x,{isHidden:Q(P),"onUpdate:isHidden":O[1]||(O[1]=w=>Bt(P)?P.value=w:null)},{header:Wt(()=>[it("div",Qn,[it("div",tr,[it("div",er,[it("div",ir,[it("h3",sr,yt(Q(q)),1)]),At(N,{"current-type":Q(B),"onUpdate:currentType":O[0]||(O[0]=w=>Bt(B)?B.value=w:null),types:Y},null,8,["current-type"])])])])]),default:Wt(()=>[it("div",or,[Q(B)===we?(ut(),ft("div",nr,[At(R,{"w-full":"",rank:Q(A),submissions:Q(K),"page-size":8,"remove-border":!0,"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):St("",!0),Q(B)===Se?(ut(),ft("div",rr)):St("",!0),Q(B)===Ce?(ut(),ft("div",ar)):St("",!0)])]),_:1},8,["isHidden"])}}}),hr=Dt({__name:"ProblemBlock",props:{rank:null,problem:null},setup(lt){const ot=lt,st=Tt(!0);function P(){st.value=!1}const B=kt(()=>ot.rank),A=kt(()=>ot.problem);return(F,q)=>{var Y,U;const K=lr;return ut(),ft("th",{key:Q(A).id,class:"success","text-center":"",style:Ut([{width:"3rem"},{"background-color":(Y=Q(A).balloonColor)==null?void 0:Y.background_color,color:(U=Q(A).balloonColor)==null?void 0:U.color}])},[it("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:P},[it("div",null,yt(Q(A).label),1),it("div",null,yt(Q(A).statistics.acceptedNum),1)]),it("div",null,[Q(st)?St("",!0):(ut(),Nt(K,{key:0,"is-hidden":Q(st),"onUpdate:isHidden":q[0]||(q[0]=O=>Bt(st)?st.value=O:null),rank:Q(B),problem:Q(A)},null,8,["is-hidden","rank","problem"]))])],4)}}});const cr=Ft(hr,[["__scopeId","data-v-5d478db8"]]),dr={class:"standings","font-mono":"","dark:text-gray-700":""},pr={class:"sticky top-0 z-99"},ur={class:"title",style:{width:"3rem"}},fr={key:0,class:"title",style:{width:"2rem"}},gr={class:"title",style:{width:"3rem"}},mr={class:"title",style:{width:"4rem"}},xr={class:"title",style:{width:"2.5rem"}},yr=Dt({__name:"Standings",props:{rank:{}},setup(lt){const ot=lt,{t:st}=Vt(),P=kt(()=>ot.rank),B=kt(()=>ot.rank.teams),A=kt(()=>ot.rank.teams.filter(Y=>!!(ot.rank.organizations&&ot.rank.options.filterOrganizationMap.has(Y.organization)||ot.rank.options.filterTeamMap.has(Y.id)))),F=kt(()=>{let K=0;return P.value.teams.forEach(Y=>{K=Math.max(K,Y.organization.length)}),K}),q=kt(()=>{let K=0;return P.value.teams.forEach(Y=>{K=Math.max(K,Y.name.length)}),K});return(K,Y)=>{const U=cr,O=Jn,N=on;return ut(),ft("div",null,[it("div",null,[it("table",dr,[it("thead",pr,[it("tr",null,[it("th",ur,yt(Q(st)("standings.place")),1),Q(P).contest.badge?(ut(),ft("th",fr,yt(Q(P).contest.badge),1)):St("",!0),Q(P).contest.organization?(ut(),ft("th",{key:1,class:"title",style:Ut({width:`${Math.min(32,Math.ceil(Q(F)*1.1))}rem`})},yt(Q(P).contest.organization),5)):St("",!0),it("th",{class:"title",style:Ut({width:`${Math.min(32,Math.ceil(Q(q)*1))}rem`})},yt(Q(st)("standings.team")),5),it("th",gr,yt(Q(st)("standings.solved")),1),it("th",mr,yt(Q(st)("standings.penalty")),1),(ut(!0),ft(Et,null,It(Q(P).contest.problems,R=>(ut(),Nt(U,{key:`problem-block-${R.id}`,rank:Q(P),problem:R},null,8,["rank","problem"]))),128)),it("th",xr,yt(Q(st)("standings.dirt")),1)])]),it("tbody",null,[(ut(!0),ft(Et,null,It(Q(A),(R,x)=>(ut(),Nt(O,{key:`filter-${R.id}`,ix:x,rank:Q(P),team:R,"is-filter":!0},null,8,["ix","rank","team"]))),128)),(ut(!0),ft(Et,null,It(Q(B),(R,x)=>(ut(),Nt(O,{key:R.id,ix:x,rank:Q(P),team:R},null,8,["ix","rank","team"]))),128)),At(N,{rank:Q(P)},null,8,["rank"])])])])])}}});const vr=Ft(yr,[["__scopeId","data-v-49b9fc34"]]),kr={"font-mono":"",flex:""},br=["onClick"],wr=["href"],Sr={key:1},Cr=Dt({__name:"SecondLevelMenu",props:{items:null,currentItem:null,queryParamName:null,reverseOrder:{type:Boolean},onChange:{type:Function}},emits:["update:currentItem"],setup(lt,{emit:ot}){const st=lt,P=kt(()=>{var O;for(const N of st.items)if(N.isDefault)return N.keyword;return(O=st.items)==null?void 0:O[0].keyword}),B=Ee(st.queryParamName,P.value,{transform:String}),A=kt({get(){return st.currentItem},set(O){ot("update:currentItem",O)}}),{t:F,locale:q}=Vt();function K(O){return O.title?F(O.title):O.titles?O.titles.get(q.value)??O.titles.get(O.defaultLang):""}function Y(O){return A.value===O.keyword}function U(O){st.onChange&&st.onChange(O.keyword),!(O.link||O.isModal)&&(A.value=O.keyword,B.value=O.keyword)}return De(()=>{(()=>{var O;((O=B.value)==null?void 0:O.length)>0&&((()=>{for(const N of st.items)if(N.titles){for(const[R,x]of N.titles)if(B.value===x){B.value=N.keyword;return}}})(),A.value=B.value,st.onChange&&st.onChange(B.value))})()}),(O,N)=>(ut(),ft("div",kr,[it("div",{class:Pt(["mr-[-4px]",{"flex-row-reverse":st.reverseOrder}]),flex:""},[(ut(!0),ft(Et,null,It(st.items,R=>(ut(),ft("div",{key:R.keyword,class:Pt(["second-level-menu-item",[Y(R)?"second-level-menu-item-current":""]]),onClick:x=>U(R)},[it("div",null,[R.link?(ut(),ft("a",{key:0,href:R.link,target:"_blank",title:"Resolver"},yt(K(R)),9,wr)):St("",!0),R.link?St("",!0):(ut(),ft("div",Sr,yt(K(R)),1))])],10,br))),128))],2)]))}});const Mr=Ft(Cr,[["__scopeId","data-v-714a998b"]]);const Tr={},Ar={class:"flex items-center justify-center dark:text-black"},Pr=Qe('<table data-v-54297ce8><tbody data-v-54297ce8><tr data-v-54297ce8><td class="gold" data-v-54297ce8> Gold </td><td class="silver" data-v-54297ce8> Silver </td><td class="bronze" data-v-54297ce8> Bronze </td><td class="honorable" data-v-54297ce8> Honorable </td><td class="first-solve" data-v-54297ce8> First to solve problem </td><td class="correct" data-v-54297ce8> Solved problem </td><td class="incorrect" data-v-54297ce8> Attempted problem </td><td class="pending" data-v-54297ce8> Pending judgement </td></tr></tbody></table>',1),_r=[Pr];function Or(lt,ot){return ut(),ft("div",Ar,_r)}const Lr=Ft(Tr,[["render",Or],["__scopeId","data-v-54297ce8"]]),Er={flex:""},Dr=it("div",null,[it("div",{"i-material-symbols-info-outline":"","text-lg":""})],-1),Ir={flex:""},jr=it("div",{class:"border-l-[1px] border-r-[1px]","mx-2":"","h-6":"","border-color-black":"","dark:border-color-white":""},null,-1),Br={flex:""},zr=Dt({__name:"BoardTab",props:{rank:{}},setup(lt){const ot=lt,st=kt(()=>ot.rank),{t:P}=Vt(),B=_e.useToast(),{copy:A,isSupported:F}=Oe();let q=null;const K=Tt(null),Y=Tt(null);function U(){return window?F.value?!0:(B.warning("clipboard is not supported"),q==null||q.hide(),!1):!1}function O(){B.success("copy success"),q==null||q.hide()}function N(){U()&&(A(window.location.href),O())}function R(){if(!U())return;const x=`<iframe src="${window.location.href}" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width: 100%; height: 720px"></iframe>`;A(x),O()}return De(()=>{if(K.value&&Y.value){const x={placement:"right",triggerType:"click",offsetSkidding:32,offsetDistance:5,delay:300};q=new ti(K.value,Y.value,x)}}),(x,w)=>{const L=ce;return ut(),ft("div",Er,[it("div",null,[At(L,{"w-inherit":""},{popper:Wt(()=>{var D;return[it("div",Ir,[it("div",null,yt(Q(P)("standings.options.calculation_of_penalty"))+": "+yt(Q(P)(`standings.options.${(D=Q(st).contest.options)==null?void 0:D.calculationOfPenalty}`)),1)])]}),default:Wt(()=>[Dr]),_:1})]),jr,it("div",Br,[it("div",{ref_key:"dropdownTriggerEl",ref:Y,"i-material-symbols-share":"","text-lg":"","cursor-pointer":""},null,512),it("div",{ref_key:"dropdownTargetEl",ref:K,class:"z-9999 hidden divide-y divide-gray-100 rounded shadow w-36","bg-white":"","dark:bg-gray-700":""},[it("ul",{class:"py-2 text-sm text-gray-700 dark:text-gray-200"},[it("li",null,[it("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:N}," Copy Page Link ")]),it("li",null,[it("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:R}," Copy Page Code ")])])],512)])])}}}),Rr=lt=>(Qt("data-v-40b5e9ec"),lt=lt(),te(),lt),Nr={key:0},Hr={key:0},$r={key:0},Wr={class:"max-w-[92%]"},Fr=["src"],Gr={class:"max-w-[92%]"},Xr={"mt-2":""},Yr={class:"w-[92%]"},Ur={class:"flex font-bold font-mono"},Vr={class:"float-left"},qr={class:"pl-0.5"},Kr={class:"flex-1"},Zr={class:"float-right"},Jr={class:"pl-0.5"},Qr={class:"mt-2"},ta={class:"mt-2 flex font-bold font-mono"},ea={class:"float-left"},ia={class:"flex-1"},sa={class:"float-right"},oa={class:"mt-4 flex"},na={class:"float-left"},ra=Rr(()=>it("div",{class:"flex-1"},null,-1)),aa={class:"float-right"},la={class:"max-w-[92%]"},ha={key:0},ca={key:1,class:"w-[88vw]"},da={key:2},pa={key:3},ua={key:4},fa={key:1},Me="sm:w-[1280px] xl:w-screen",oe="sm:w-[1260px] xl:w-screen",ga=Dt({__name:"Board",props:{dataSourceUrl:null},setup(lt){const ot=lt,st=Jt(),P=ei(me),{t:B}=Vt(),A=Tt(!1),F=Tt({}),q=Tt([]),K=Tt([]),Y=Tt({}),U=Tt(new Date),O=Tt(new ii),N=Tt(!1);(()=>{const r=zi(),S=Ri();r.value.length>0&&O.value.setFilterOrganizations(r.value),S.value.length>0&&O.value.setFilterTeams(S.value)})();const R=Tt("all");function x(r){r!==O.value.group&&O.value.setGroup(r)}(()=>{const r=Ee("group","all",{transform:String});R.value=r.value,O.value.setGroup(r.value)})();function w(r={force:!1}){if(N.value&&r.force===!1)return;const S=new hi(F.value,q.value,K.value);S.options=xe.cloneDeep(O.value),S.buildRank(),Y.value=S}const{data:L,isError:D,error:d}=pi(ot.dataSourceUrl??st.path,U);re(L,async()=>{var r,S,G;L.value===null||L.value===void 0||(F.value=si((r=L.value)==null?void 0:r.contest),P.value=`${F.value.name} | ${me}`,q.value=oi((S=L.value)==null?void 0:S.teams),K.value=ni((G=L.value)==null?void 0:G.submissions),!O.value.enableFilterSubmissionsByTimestamp&&(w(),A.value=!0))});const y=Tt(!1);re(O.value,()=>{if(A.value!==!1){if(!Y.value.options.isNeedReBuildRank(O.value)){Y.value.options=xe.cloneDeep(O.value);return}y.value!==!0&&(y.value=!0,w(),y.value=!1)}});const k=Tt([{title:"type_menu.rank",keyword:"rank",isDefault:!0},{title:"type_menu.submissions",keyword:"submissions"},{title:"type_menu.statistics",keyword:"statistics"},{title:"type_menu.export",keyword:"export"},{title:"type_menu.utility",keyword:"utility"},{title:"type_menu.options",keyword:"options",isModal:!0}]),f=kt(()=>Y.value.contest.group),C=kt(()=>{const r=Array();for(const[S,G]of f.value){const Z={titles:G.names,defaultLang:G.defaultLang,keyword:S,isDefault:G.isDefault};r.push(Z)}return r}),v=Tt("rank"),b=Tt(!0);function o(r){r==="options"&&(b.value=!1)}function l(){const r=document.documentElement.scrollHeight||document.body.scrollHeight,S=document.documentElement.scrollTop||document.body.scrollTop,G=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return r-S===G}let p=null;function h(){p!==null&&clearInterval(p)}ri("S",r=>{if(N.value=!N.value,N.value===!0){let G=0,Z="DOWN";p=setInterval(()=>{if(Z==="DOWN"){if(l()){Z="UP",w({force:!0});return}G+=2}else{if(G===0){Z="DOWN",w({force:!0});return}G-=2}window.scrollTo({top:G,behavior:"smooth"})},64)}else h()},{dedupe:!1});const c=kt(()=>{const r=Y.value.contest.startTime.format("YYYY-MM-DD HH:mm:ss");return`${B("standings.start_time")}${B("common.colon")}${r}`}),e=kt(()=>{const r=Y.value.contest.endTime.format("YYYY-MM-DD HH:mm:ss");return`${B("standings.end_time")}${B("common.colon")}${r}`}),t=kt(()=>{const r=Y.value.contest.getContestElapsedTime(U.value);return`${B("standings.elapsed")}${B("common.colon")}${r}`}),i=kt(()=>{const r=Y.value.contest.getContestRemainingTime(U.value);return`${B("standings.remaining")}${B("common.colon")}${r}`}),a=kt(()=>Y.value.options.enableFilterSubmissionsByTimestamp?ai.PAUSED:Y.value.contest.getContestState()),u=kt(()=>Le(Y.value.options.timestamp)),_=setInterval(()=>{U.value=new Date},1e3);return li(()=>{clearInterval(_),h()}),(r,S)=>{var H;const G=zr,Z=ci,rt=di,j=Lr,s=Mr,T=vr,z=le,I=Rs,V=Cs,n=cs,g=ns,m=Ji;return ut(),ft("div",null,[Q(A)?St("",!0):(ut(),ft("div",Nr,[it("div",{class:Pt([Me]),flex:"","flex-col":"","gap-4":"","justify-center":"","items-center":""},[it("div",null,yt(Q(B)("common.loading"))+"... ",1),Q(D)?(ut(),ft("div",Hr,yt(Q(d)),1)):St("",!0)],2)])),Q(A)?(ut(),ft("div",{key:1,class:Pt([Me]),flex:"","flex-col":"","justify-center":"","items-center":""},[Q(Y).contest.banner?(ut(),ft("div",$r,[it("div",{class:Pt([oe]),"mb-4":"",flex:"","justify-center":"","items-center":""},[it("div",Wr,[it("img",{src:["data:image/png;base64,",(H=Q(Y).contest.banner)==null?void 0:H.base64].join(""),alt:"banner"},null,8,Fr)])],2)])):St("",!0),it("div",{class:Pt(["title",[oe]]),flex:"","justify-center":"","text-center":"","text-3xl":"","font-normal":"","font-serif":""},[it("div",Gr,yt(Q(Y).contest.name),1)],2),it("div",Xr,[At(G,{rank:Q(Y)},null,8,["rank"])]),it("div",{class:Pt([oe]),"mt-2":"",flex:"","flex-row":"","justify-center":""},[it("div",Yr,[it("div",Ur,[it("div",Vr,[Yt(yt(Q(c)),1),it("sup",qr,yt(Q(Y).contest.startTime.format("z")),1)]),it("div",Kr,[At(Z,{state:Q(a),"pending-time":Q(Y).contest.getContestPendingTime(Q(U)),"paused-time":Q(u)},null,8,["state","pending-time","paused-time"])]),it("div",Zr,[Yt(yt(Q(e)),1),it("sup",Jr,yt(Q(Y).contest.endTime.format("z")),1)])]),it("div",Qr,[At(rt,{"rank-options":Q(O),"onUpdate:rankOptions":S[0]||(S[0]=W=>Bt(O)?O.value=W:null),width:Q(Y).contest.getContestProgressRatio(Q(U)),state:Q(Y).contest.getContestState(Q(U)),"need-scroll":!0,rank:Q(Y),"elapsed-time":Q(Y).contest.getContestElapsedTime(Q(U))},null,8,["rank-options","width","state","rank","elapsed-time"])]),it("div",ta,[it("div",ea,yt(Q(t)),1),it("div",ia,[At(j)]),it("div",sa,yt(Q(i)),1)]),it("div",oa,[it("div",na,[At(s,{"current-item":Q(R),"onUpdate:currentItem":S[1]||(S[1]=W=>Bt(R)?R.value=W:null),items:Q(C),"query-param-name":"group","on-change":x},null,8,["current-item","items"])]),ra,it("div",aa,[At(s,{"current-item":Q(v),"onUpdate:currentItem":S[2]||(S[2]=W=>Bt(v)?v.value=W:null),items:Q(k),"reverse-order":!0,"query-param-name":"type","on-change":o},null,8,["current-item","items"])])])])],2),it("div",{"mt-4":"",class:Pt([oe]),flex:"","justify-center":""},[it("div",la,[Q(v)==="rank"?(ut(),ft("div",ha,[At(T,{rank:Q(Y)},null,8,["rank"])])):St("",!0),Q(v)==="submissions"?(ut(),ft("div",ca,[At(z,{"w-full":"",rank:Q(Y),submissions:Q(Y).getSubmissions(),"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):St("",!0),Q(v)==="statistics"?(ut(),ft("div",da,[At(I,{rank:Q(Y)},null,8,["rank"])])):St("",!0),Q(v)==="export"?(ut(),ft("div",pa,[At(V,{rank:Q(Y)},null,8,["rank"])])):St("",!0),Q(v)==="utility"?(ut(),ft("div",ua,[At(n,{rank:Q(Y)},null,8,["rank"])])):St("",!0)])],2),Q(O).enableDynamicSubmissions?(ut(),ft("div",fa,[At(g,{rank:Q(Y)},null,8,["rank"])])):St("",!0),Q(b)?St("",!0):(ut(),Nt(m,{key:2,"is-hidden":Q(b),"onUpdate:isHidden":S[3]||(S[3]=W=>Bt(b)?b.value=W:null),"rank-options":Q(O),"onUpdate:rankOptions":S[4]||(S[4]=W=>Bt(O)?O.value=W:null),rank:Q(Y)},null,8,["is-hidden","rank-options","rank"]))],2)):St("",!0)])}}});const va=Ft(ga,[["__scopeId","data-v-40b5e9ec"]]);export{va as _};
|