@xcpcio/board-app 0.42.1 → 0.43.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.
Files changed (36) hide show
  1. package/dist/404.html +1 -1
  2. package/dist/assets/Board-5ab7c967.js +3 -0
  3. package/dist/assets/{Board-a97da662.css → Board-78c68c35.css} +1 -1
  4. package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-5fef6eb5.js → DataSourceInput.vue_vue_type_script_setup_true_lang-ae8a0f7c.js} +1 -1
  5. package/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-9cd306c7.js +1 -0
  6. package/dist/assets/_...all_-b536c4f8.js +1 -0
  7. package/dist/assets/_name_-73ea91e2.js +1 -0
  8. package/dist/assets/{about-d2a0bbf5.js → about-8408eddf.js} +1 -1
  9. package/dist/assets/{board-4a7523cf.js → board-d5243ade.js} +1 -1
  10. package/dist/assets/{board-layout-63b169c0.js → board-layout-db1006f7.js} +1 -1
  11. package/dist/assets/{headless-62373911.js → headless-4685ba2c.js} +1 -1
  12. package/dist/assets/{home-2a1feeb6.js → home-649aa1f3.js} +1 -1
  13. package/dist/assets/{index-6e725f83.css → index-06792736.css} +1 -1
  14. package/dist/assets/{index-9e02c4dd.js → index-41b501c0.js} +1 -1
  15. package/dist/assets/{index-736d7bff.js → index-4339f7e3.js} +1 -1
  16. package/dist/assets/{index-899b891a.js → index-a4eda403.js} +43 -43
  17. package/dist/assets/{index-layout-c5de32dd.js → index-layout-f67288b7.js} +1 -1
  18. package/dist/assets/{test-eafc8541.js → test-838ba8f2.js} +1 -1
  19. package/dist/assets/{useQueryBoardData-32e95c39.js → useQueryBoardData-93b68e58.js} +1 -1
  20. package/dist/assets/{user-1450ac23.js → user-f204821f.js} +1 -1
  21. package/dist/assets/{virtual_pwa-register-749ff62f.js → virtual_pwa-register-53ed75bd.js} +1 -1
  22. package/dist/index.html +1 -1
  23. package/dist/sw.js +1 -1
  24. package/package.json +3 -3
  25. package/src/components/TheCheckbox.vue +21 -0
  26. package/src/components/TheInput.vue +8 -3
  27. package/src/components/battle-of-giants/GiantsOptions.vue +138 -0
  28. package/src/components/battle-of-giants/GiantsScoreBoard.vue +79 -0
  29. package/src/components/board/OptionsModal.vue +162 -71
  30. package/src/components/board/Standings.vue +115 -0
  31. package/src/components/board/TeamUI.vue +15 -2
  32. package/src/components.d.ts +3 -0
  33. package/dist/assets/Board-e8123300.js +0 -3
  34. package/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-16068874.js +0 -1
  35. package/dist/assets/_...all_-2c6aed90.js +0 -1
  36. package/dist/assets/_name_-61215807.js +0 -1
@@ -0,0 +1,3 @@
1
+ var Ye=Object.defineProperty;var Ve=(rt,et,it)=>et in rt?Ye(rt,et,{enumerable:!0,configurable:!0,writable:!0,value:it}):rt[et]=it;var re=(rt,et,it)=>(Ve(rt,typeof et!="symbol"?et+"":et,it),it);import{g as Lt,s as kt,P as qe,w as te,o as ut,c as ft,d as Z,x as Xt,Q as pe,t as mt,n as At,S as Vt,I as Gt,F as Ot,D as It,m as bt,O as Ht,T as Le,U as Ke,i as _t,V as qt,l as U,b as Ct,N as jt,W as ie,X as Ze,Y as Je,H as zt,K as Qt,Z as Ee,$ as fe,u as Kt,E as Nt,a0 as Ft,a1 as Qe,a2 as De,a3 as ye,a as Ut,G as ti,a4 as Jt,a5 as ei,a6 as Ie,a7 as je,a8 as ii,a9 as ve,aa as si,ab as oi,ac as Be,ad as ni,ae as ke,af as se,ag as oe,ah as ze,v as ri,ai,J as me,aj as Re,M as li,ak as hi,h as ci,al as be,am as di,an as ui,j as pi,y as fi,z as mi,ao as gi,ap as xi,p as yi,k as vi,aq as ki,R as bi,ar as Si,as as wi}from"./index-a4eda403.js";import{_ as Ne}from"./TheInput.vue_vue_type_script_setup_true_lang-9cd306c7.js";import{u as Ci}from"./useQueryBoardData-93b68e58.js";const Mi={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":""},Ti={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},_i={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},Ai={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},Pi=Z("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[Z("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),Oi=Z("span",{"sr-only":""}," Close modal ",-1),Li=[Pi,Oi],ce=Lt({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null},emits:["update:isHidden"],setup(rt,{emit:et}){const it=rt,C=kt({get(){return it.isHidden},set(W){et("update:isHidden",W)}});function j(){C.value=!0}const{Escape:O}=qe();return te(O,W=>{W&&j()}),(W,q)=>(ut(),ft("div",Mi,[Z("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-9998":"",style:Xt({backgroundColor:"rgba(0, 0, 0, 0.5)"}),onClick:j},null,4),Z("div",{class:At(["relative p-4",[it.width??"w-[78%]"]]),"z-9999":""},[Z("div",Ti,[Z("div",_i,[pe(W.$slots,"header",{},()=>[Z("h3",Ai,mt(it.title),1)]),Z("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:j},Li)]),pe(W.$slots,"default")])],2)]))}}),Bt={openOptions(rt){rt.$refs.input.focus(),rt.showMenu=!0,rt.mousedownState=!1},blurInput(rt){rt.mousedownState||(rt.searchText="",rt.closeOptions()),rt.$emit("blur")},closeOptions(rt){rt.$refs.input.blur(),rt.showMenu=!1},prevItem(rt){const et=rt.pointer-1,it=rt.$el.offsetHeight*et;et>=0&&(rt.pointer=et),rt.$refs.menu.scrollTop=it},nextItem(rt){const et=rt.pointer+1,it=rt.$el.offsetHeight*et;et<=rt.filteredOptions.length-1&&(rt.pointer=et);const C=rt.$refs.menu.offsetHeight,j=Math.ceil((rt.$refs.menu.scrollTop+rt.$el.offsetHeight)/C),O=Math.ceil(it/C);j!==O&&(rt.$refs.menu.scrollTop=(O-1)*rt.$refs.menu.offsetHeight)},enterItem(rt){const et=rt.filteredOptions[rt.pointer],it=et.disabled;et&&!it&&rt.selectItem(et)},pointerSet(rt,et){rt.pointer=et},pointerAdjust(rt){rt.pointer>=rt.filteredOptions.length-1&&(rt.pointer=rt.filteredOptions.length?rt.filteredOptions.length-1:0)},mousedownItem(rt){rt.mousedownState=!0}};function Ei(rt){return new RegExp(rt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const $e={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:(rt,et)=>rt.match(Ei(et))}}},He=(rt,et)=>{const it=rt.__vccOpts||rt;for(const[C,j]of et)it[C]=j;return it},Di={name:"ModelSelect",mixins:[$e],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(rt){this.pointer=this.filteredOptions.findIndex(et=>et.value===this.optionValue(rt))},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 rt=this.placeholder;return this.selectedOption&&(rt=this.selectedOption.text),rt}},customAttrs(){try{if(Array.isArray(this.options))return this.options.map(rt=>this.customAttr(rt))}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(rt=>{try{return this.filterPredicate(rt.text,this.searchText)}catch{return!0}}):this.options},selectedOption(){return this.options.find(rt=>rt.value===this.optionValue(this.modelValue))}},methods:{deleteTextOrItem(){!this.searchText&&this.modelValue&&(this.selectItem({}),this.openOptions())},openOptions(){Bt.openOptions(this)},blurInput(){Bt.blurInput(this)},closeOptions(){Bt.closeOptions(this)},prevItem(){Bt.prevItem(this)},nextItem(){Bt.nextItem(this)},enterItem(){Bt.enterItem(this)},pointerSet(rt){Bt.pointerSet(this,rt)},pointerAdjust(){Bt.pointerAdjust(this)},mousedownItem(){Bt.mousedownItem(this)},selectItem(rt){this.searchText="",this.closeOptions(),typeof this.modelValue=="object"&&this.modelValue?this.$emit("update:modelValue",rt):(this.$emit("update:modelValue",rt.value),rt.value!==void 0&&rt.value===rt.text&&(this.searchText=rt.value))},optionValue(rt){return typeof rt=="object"&&rt!==null?rt.value:rt}}},Ii=Z("i",{class:"dropdown icon"},null,-1),ji=["disabled","tabindex","id","name","value"],Bi=["data-vss-custom-attr"],zi=["data-vss-custom-attr","onClick","onMouseenter"];function Ri(rt,et,it,C,j,O){return ut(),ft("div",{class:At(["ui fluid search selection dropdown",{"active visible":j.showMenu,error:rt.isError,disabled:rt.isDisabled}]),onClick:et[11]||(et[11]=(...W)=>O.openOptions&&O.openOptions(...W)),onFocus:et[12]||(et[12]=(...W)=>O.openOptions&&O.openOptions(...W))},[Ii,Z("input",{class:"search",autocomplete:"off",disabled:rt.isDisabled,tabindex:rt.isDisabled?-1:0,id:rt.id,name:rt.name,value:j.searchText,onInput:et[0]||(et[0]=W=>j.searchText=W.target.value),ref:"input",onFocus:et[1]||(et[1]=Vt((...W)=>O.openOptions&&O.openOptions(...W),["prevent"])),onKeyup:[et[2]||(et[2]=Gt((...W)=>O.closeOptions&&O.closeOptions(...W),["esc"])),et[7]||(et[7]=Gt(Vt((...W)=>O.enterItem&&O.enterItem(...W),["prevent"]),["enter"]))],onBlur:et[3]||(et[3]=(...W)=>O.blurInput&&O.blurInput(...W)),onKeydown:[et[4]||(et[4]=Gt((...W)=>O.prevItem&&O.prevItem(...W),["up"])),et[5]||(et[5]=Gt((...W)=>O.nextItem&&O.nextItem(...W),["down"])),et[6]||(et[6]=Gt(Vt(()=>{},["prevent"]),["enter"])),et[8]||(et[8]=Gt((...W)=>O.deleteTextOrItem&&O.deleteTextOrItem(...W),["delete"]))]},null,40,ji),Z("div",{class:At(["text",O.textClass]),"data-vss-custom-attr":O.searchTextCustomAttr},mt(O.inputText),11,Bi),Z("div",{class:At(["menu",O.menuClass]),ref:"menu",onMousedown:et[10]||(et[10]=Vt(()=>{},["prevent"])),style:Xt(O.menuStyle),tabindex:"-1"},[(ut(!0),ft(Ot,null,It(O.filteredOptions,(W,q)=>(ut(),ft("div",{key:q,class:At(["item",{selected:W.selected||j.pointer===q,disabled:W.disabled}]),"data-vss-custom-attr":O.customAttrs[q]?O.customAttrs[q]:"",onClick:Vt(Q=>O.selectItem(W),["stop"]),onMousedown:et[9]||(et[9]=(...Q)=>O.mousedownItem&&O.mousedownItem(...Q)),onMouseenter:Q=>O.pointerSet(q)},mt(W.text),43,zi))),128))],38)],34)}const Ni=He(Di,[["render",Ri]]),$i={name:"MultiSelect",mixins:[$e],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(rt=>this.selectedOptions.findIndex(et=>et.value===rt.value)===-1)},filteredOptions(){return this.searchText?this.nonSelectOptions.filter(rt=>{try{return this.cleanSearch?this.filterPredicate(this.accentsTidy(rt.text),this.searchText):this.filterPredicate(rt.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(){Bt.openOptions(this)},blurInput(){Bt.blurInput(this)},closeOptions(){Bt.closeOptions(this)},prevItem(){Bt.prevItem(this),this.openOptions()},nextItem(){Bt.nextItem(this),this.openOptions()},enterItem(){Bt.enterItem(this)},pointerSet(rt){Bt.pointerSet(this,rt)},pointerAdjust(){Bt.pointerAdjust(this)},mousedownItem(){Bt.mousedownItem(this)},selectItem(rt){const et=this.selectedOptions.concat(rt),it=et.filter((C,j)=>et.indexOf(C)===j);this.closeOptions(),this.searchText="",this.$emit("select",it,rt,"insert")},deleteItem(rt){const et=this.selectedOptions.filter(it=>it.value!==rt.value);this.$emit("select",et,rt,"delete")},accentsTidy(rt){let et=rt.toString().toLowerCase();return et=et.replace(new RegExp("[àáâãäå]","g"),"a"),et=et.replace(new RegExp("æ","g"),"ae"),et=et.replace(new RegExp("ç","g"),"c"),et=et.replace(new RegExp("[èéêë]","g"),"e"),et=et.replace(new RegExp("[ìíîï]","g"),"i"),et=et.replace(new RegExp("ñ","g"),"n"),et=et.replace(new RegExp("[òóôõö]","g"),"o"),et=et.replace(new RegExp("œ","g"),"oe"),et=et.replace(new RegExp("[ùúûü]","g"),"u"),et=et.replace(new RegExp("[ýÿ]","g"),"y"),et}}},Hi=Z("i",{class:"dropdown icon"},null,-1),Gi=["data-vss-custom-attr"],Wi=["onClick"],Fi=["disabled","tabindex","id","name"],Xi=["data-vss-custom-attr","onClick","onMouseenter"];function Ui(rt,et,it,C,j,O){return ut(),ft("div",{class:At(["ui fluid search dropdown selection multiple",{"active visible":j.showMenu,error:rt.isError,disabled:rt.isDisabled}]),onClick:et[11]||(et[11]=(...W)=>O.openOptions&&O.openOptions(...W)),onFocus:et[12]||(et[12]=(...W)=>O.openOptions&&O.openOptions(...W))},[Hi,it.hideSelectedOptions?bt("",!0):(ut(!0),ft(Ot,{key:0},It(it.selectedOptions,(W,q)=>(ut(),ft("a",{key:q,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":it.customAttr(W)},[Ht(mt(W.text),1),Z("i",{class:"delete icon",onClick:Q=>O.deleteItem(W)},null,8,Wi)],8,Gi))),128)),Le(Z("input",{class:"search",autocomplete:"off",disabled:rt.isDisabled,tabindex:rt.isDisabled?-1:0,id:rt.id,name:rt.name,"onUpdate:modelValue":et[0]||(et[0]=W=>j.searchText=W),ref:"input",style:Xt(O.inputWidth),onFocus:et[1]||(et[1]=Vt((...W)=>O.openOptions&&O.openOptions(...W),["prevent"])),onKeyup:[et[2]||(et[2]=Gt((...W)=>O.closeOptions&&O.closeOptions(...W),["esc"])),et[7]||(et[7]=Gt(Vt((...W)=>O.enterItem&&O.enterItem(...W),["prevent"]),["enter"]))],onBlur:et[3]||(et[3]=(...W)=>O.blurInput&&O.blurInput(...W)),onKeydown:[et[4]||(et[4]=Gt((...W)=>O.prevItem&&O.prevItem(...W),["up"])),et[5]||(et[5]=Gt((...W)=>O.nextItem&&O.nextItem(...W),["down"])),et[6]||(et[6]=Gt(Vt(()=>{},["prevent"]),["enter"])),et[8]||(et[8]=Gt((...W)=>O.deleteTextOrLastItem&&O.deleteTextOrLastItem(...W),["delete"]))]},null,44,Fi),[[Ke,j.searchText]]),Z("div",{class:At(["text",O.textClass])},mt(O.inputText),3),Z("div",{class:At(["menu",O.menuClass]),ref:"menu",onMousedown:et[10]||(et[10]=Vt(()=>{},["prevent"])),style:Xt(O.menuStyle),tabindex:"-1"},[(ut(!0),ft(Ot,null,It(O.filteredOptions,(W,q)=>(ut(),ft("div",{key:q,class:At(["item",{selected:W.selected||j.pointer===q,disabled:W.disabled}]),"data-vss-custom-attr":it.customAttr(W),onClick:Vt(Q=>O.selectItem(W),["stop"]),onMousedown:et[9]||(et[9]=(...Q)=>O.mousedownItem&&O.mousedownItem(...Q)),onMouseenter:Q=>O.pointerSet(q)},mt(W.text),43,Xi))),128))],38)],34)}const Zt=He($i,[["render",Ui]]),Yi={"ml-4":"","mt-2":""},Vi={"ml-4":"","mt-2":"",grid:"","grid-cols-6":"","gap-y-4":""},qi=Z("div",{flex:"","items-center":"","text-sm":""}," Name: ",-1),Ki={flex:"","items-center":"","w-full":"","col-span-5":""},Zi=Z("div",null," Refresh Name ",-1),Ji={key:0,flex:"","items-center":"","text-sm":""},Qi={key:1,flex:"","items-center":"","w-full":"","col-span-5":""},ts=Z("div",{"text-sm":"",flex:"","items-center":""}," Team: ",-1),es={flex:"","items-center":"","w-full":"","col-span-5":""},is=Lt({__name:"GiantsOptions",props:{rank:null,orgOptions:null,teamsOptions:null,giants:null},emits:["update:giants"],setup(rt,{emit:et}){const it=rt,C=kt({get(){return it.giants},set(X){et("update:giants",X)}}),j=_t(C.value.filterOrganizations);function O(X,M){j.value=X,C.value.setFilterOrganizations(X)}const W=_t(C.value.filterTeams);function q(X,M){W.value=X,C.value.setFilterTeams(X)}const Q=kt(()=>`${C.value.type===qt.BLUE?"Blue":"Red"} Team`),Y=kt(()=>C.value.type===qt.BLUE?"#0000FF":"#FF0000");return(X,M)=>{const R=Ne,N=ie;return ut(),ft("div",Yi,[Z("div",{flex:"","text-sm":"",style:Xt({color:U(Y)})},mt(U(Q)),5),Z("div",Vi,[qi,Z("div",Ki,[Ct(R,{modelValue:U(C).name,"onUpdate:modelValue":M[0]||(M[0]=x=>U(C).name=x),"text-align":"left"},null,8,["modelValue"]),Ct(N,null,{popper:jt(()=>[Zi]),default:jt(()=>[Z("div",{"i-material-symbols-refresh":"","cursor-pointer":"",btn:"","text-3xl":"","ml-2":"",onClick:M[1]||(M[1]=x=>U(C).refreshName())})]),_:1})]),rt.rank.contest.organization?(ut(),ft("div",Ji,mt(rt.rank.contest.organization)+": ",1)):bt("",!0),rt.rank.contest.organization?(ut(),ft("div",Qi,[Ct(U(Zt),{options:rt.orgOptions,"selected-options":U(j),onSelect:O},null,8,["options","selected-options"])])):bt("",!0),ts,Z("div",es,[Ct(U(Zt),{options:rt.teamsOptions,"selected-options":U(W),onSelect:q},null,8,["options","selected-options"])])])])}}}),ss={relative:"","inline-flex":"","items-center":"","cursor-pointer":""},os=Z("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),ns=Lt({__name:"TheCheckbox",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(rt){const{modelValue:et}=Ze("modelValue");return(it,C)=>(ut(),ft("label",ss,[Le(Z("input",{"onUpdate:modelValue":C[0]||(C[0]=j=>zt(et)?et.value=j:null),type:"checkbox",class:"sr-only peer"},null,512),[[Je,U(et)]]),os,pe(it.$slots,"default")]))}});function rs(){return`filter-organizations-${Qt().path}`}function as(){return`filter-teams-${Qt().path}`}function ls(){const et=`filter-organizations-${Qt().path}`;return Ee(et,[])}function hs(){const et=`filter-teams-${Qt().path}`;return Ee(et,[])}const cs={"w-full":"","font-bold":"","font-mono":"","text-base":"",flex:"","flex-col":"","gap-4":"","items-center":"","justify-center":""},ds={flex:"","flex-col":"","w-full":""},us=Z("div",{flex:""}," Filter ",-1),ps={"ml-8":"","mt-2":"",grid:"","grid-cols-6":"","gap-y-4":""},fs={key:0,flex:"","items-center":"","text-sm":""},ms={key:1,flex:"","items-center":"","w-full":"","col-span-5":""},gs=Z("div",{"text-sm":"",flex:"","items-center":""}," Team: ",-1),xs={flex:"","items-center":"","w-full":"","col-span-5":""},ys={flex:"","flex-col":"","w-full":""},vs=Z("div",{flex:""}," Battle of Giants ",-1),ks={"ml-4":"","mt-2":""},bs={grid:"","grid-cols-8":"","items-center":""},Ss=Z("span",{"text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," Enable ",-1),ws=Z("span",{"text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," Equal Teams ",-1),Cs=Z("span",{"text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," TopX ",-1),Ms={flex:"","flex-col":"","w-full":""},Ts=Z("div",{flex:""}," Feature ",-1),_s={"ml-4":"","mt-2":""},As={flex:"","flex-row":""},Ps=Z("span",{"ml-3":"","text-sm":"","font-medium":"","text-gray-900":"","dark:text-gray-300":""}," Submission Queue ",-1),Os={"w-full":"",flex:"","flex-row-reverse":"","items-center":"","gap-x-4":""},Ls=Lt({__name:"OptionsModal",props:{isHidden:{type:Boolean},rank:null,rankOptions:null},emits:["update:isHidden","update:rankOptions"],setup(rt,{emit:et}){const it=rt,C=fe.cloneDeep(it.rankOptions),{t:j}=Kt(),O=kt({get(){return it.isHidden},set(y){et("update:isHidden",y)}}),W=kt({get(){return it.rankOptions},set(y){et("update:rankOptions",y)}}),q=kt(()=>it.rank),Q=kt(()=>j("type_menu.options")),Y=_t(!1);function X(){Y.value=!0}function M(){Y.value=!1}function R(y){Y.value&&y.stopPropagation()}const N=kt(()=>q.value.organizations.map(k=>({value:k,text:k}))),x=_t(W.value.filterOrganizations);function b(y,k){x.value=y,W.value.setFilterOrganizations(y)}const _=kt(()=>q.value.originTeams.map(k=>({value:k.id,text:k.organization?`${k.name} - ${k.organization}`:k.name}))),A=_t(W.value.filterTeams);function c(y,k){A.value=y,W.value.setFilterTeams(y)}function v(){W.value.setSelf(C),O.value=!0}const S=rs(),g=as();function L(){localStorage.setItem(S,JSON.stringify(x.value)),localStorage.setItem(g,JSON.stringify(A.value)),O.value=!0}return(y,k)=>{const o=ns,l=Ne,u=is,h=ce;return ut(),Nt(h,{isHidden:U(O),"onUpdate:isHidden":k[4]||(k[4]=d=>zt(O)?O.value=d:null),title:U(Q),width:"w-200"},{default:jt(()=>[Z("div",cs,[Z("div",ds,[us,Z("div",ps,[U(q).contest.organization?(ut(),ft("div",fs,mt(U(q).contest.organization)+": ",1)):bt("",!0),U(q).contest.organization?(ut(),ft("div",ms,[Ct(U(Zt),{options:U(N),"selected-options":U(x),onSelect:b,onCompositionstart:X,onCompositionend:M,onKeydownCapture:Gt(R,["delete"])},null,8,["options","selected-options","onKeydownCapture"])])):bt("",!0),gs,Z("div",xs,[Ct(U(Zt),{options:U(_),"selected-options":U(A),onSelect:c},null,8,["options","selected-options"])])])]),Z("div",ys,[vs,Z("div",ks,[Z("div",bs,[Ss,Ct(o,{modelValue:U(W).battleOfGiants.enable,"onUpdate:modelValue":k[0]||(k[0]=d=>U(W).battleOfGiants.enable=d)},null,8,["modelValue"]),ws,Ct(o,{modelValue:U(W).battleOfGiants.equalTeams,"onUpdate:modelValue":k[1]||(k[1]=d=>U(W).battleOfGiants.equalTeams=d)},null,8,["modelValue"]),Cs,Ct(l,{modelValue:U(W).battleOfGiants.topX,"onUpdate:modelValue":k[2]||(k[2]=d=>U(W).battleOfGiants.topX=d),"text-align":"left","text-type":"number"},null,8,["modelValue"])])]),Ct(u,{rank:U(q),"org-options":U(N),"teams-options":U(_),giants:U(W).battleOfGiants.blueTeam},null,8,["rank","org-options","teams-options","giants"]),Ct(u,{rank:U(q),"org-options":U(N),"teams-options":U(_),giants:U(W).battleOfGiants.redTeam},null,8,["rank","org-options","teams-options","giants"])]),Z("div",Ms,[Ts,Z("div",_s,[Z("div",As,[Ct(o,{modelValue:U(W).enableAnimatedSubmissions,"onUpdate:modelValue":k[3]||(k[3]=d=>U(W).enableAnimatedSubmissions=d)},{default:jt(()=>[Ps]),_:1},8,["modelValue"])])])]),Z("div",Os,[Z("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:L},mt(U(j)("button.confirm")),1),Z("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:v},mt(U(j)("button.cancel")),1)])])]),_:1},8,["isHidden","title"])}}});function Es(rt){const et={backgroundColor:"#fff",color:"#000"};if(rt.awards.includes(Ft.GOLD))return et.backgroundColor="#fff566",et;if(rt.awards.includes(Ft.SILVER))return et.backgroundColor="#ffadd2",et;if(rt.awards.includes(Ft.BRONZE))return et.backgroundColor="#f0c0a0",et;if(rt.awards.includes(Ft.HONORABLE))return et.backgroundColor="#e6f7ff",et}function Ds(rt){return rt.isFirstSolved?"#3db03d":rt.isAccepted()?"#e1ffb5":rt.isPending()?"#c8d6fa":"#ffd0d0"}var ee=(rt=>(rt[rt.SUBMISSION_STATUS=0]="SUBMISSION_STATUS",rt[rt.SUBMIT_TIMESTAMP=1]="SUBMIT_TIMESTAMP",rt))(ee||{});const Is={"h-7":"","w-124":"","text-gray-200":"","font-mono":"",flex:"","flex-row":"","justify-center":"","items-center":"",class:"bg-resolver-bg-zero"},js={"h-full":"","w-92":"","pl-1":"",truncate:""},Bs={"h-full":"","w-4":""},zs=Lt({__name:"AnimatedSubmissionBlock",props:{item:null,lastBlockDisplayType:null},setup(rt){const et=rt,it=kt(()=>et.item);function C(){const j=it.value.submission;if(et.lastBlockDisplayType===ee.SUBMISSION_STATUS)return Qe[j.status];if(et.lastBlockDisplayType===ee.SUBMIT_TIMESTAMP)return j.timestampToMinute}return(j,O)=>(ut(),ft("div",Is,[Z("div",{"h-full":"","w-10":"",style:Xt(U(Es)(U(it).team)),flex:"","justify-center":"","items-center":""},[Z("div",null,mt(U(it).team.rank),1)],4),Z("div",js,mt(U(it).displayName),1),Z("div",Bs,mt(U(it).team.solvedProblemNum),1),Z("div",{"h-full":"","w-6":"","border-b-3":"",flex:"","justify-center":"",style:Xt({borderColor:U(it).problem.balloonColor.background_color})},mt(U(it).problem.label),5),Z("div",{"h-full":"","w-12":"",flex:"","justify-center":"","font-sans":"","font-medium":"","text-zinc-800":"",style:Xt({backgroundColor:("getStandingsStatusColor"in j?j.getStandingsStatusColor:U(Ds))(U(it).submission)})},mt(C()),5)]))}}),Rs={absolute:"",fixed:"","z-99":"","bottom-4":"","left-4":"","opacity-80":""},Ns={flex:"","flex-col":""},$s={flex:"","flex-col":"","mt-6":""},Hs=Lt({__name:"AnimatedSubmissionsModal",props:{rank:{}},setup(rt){const et=rt,it=kt(()=>et.rank),C=kt(()=>{const W=it.value.getSubmissions().sort(De.compare).reverse();let q=0;const Q=10,Y=[];let X=0;const M=6,R=[];for(let N=0;N<W.length&&(X<M||q<Q);N++){const x=W[N],b=x.teamId,_=x.problemId,A=it.value.teamsMap.get(b);if(!A||it.value.filterTeamByOrg(A))continue;const c=it.value.contest.problemsMap.get(_);if(!c)continue;let v=A.name;A.organization&&(v=`${A.organization} - ${v}`);const S={submission:x,team:A,problem:c,displayName:v};q<Q&&(Y.push(S),++q),x.isSolved&&X<M&&(R.push(S),++X)}return R.reverse(),Y.reverse(),{acceptedRes:R,allRes:Y}}),j=kt(()=>C.value.acceptedRes),O=kt(()=>C.value.allRes);return(W,q)=>{const Q=zs;return ut(),ft("div",Rs,[Z("div",Ns,[Z("div",null,[Ct(ye,{name:"list",tag:"ul"},{default:jt(()=>[(ut(!0),ft(Ot,null,It(U(j),Y=>(ut(),ft("div",{key:Y.submission.id},[Ct(Q,{item:Y,"last-block-display-type":U(ee).SUBMIT_TIMESTAMP},null,8,["item","last-block-display-type"])]))),128))]),_:1})])]),Z("div",$s,[Z("div",null,[Ct(ye,{name:"list",tag:"ul"},{default:jt(()=>[(ut(!0),ft(Ot,null,It(U(O),Y=>(ut(),ft("div",{key:Y.submission.id},[Z("div",null,[Ct(Q,{item:Y,"last-block-display-type":U(ee).SUBMISSION_STATUS},null,8,["item","last-block-display-type"])])]))),128))]),_:1})])])])}}});const Gs=Ut(Hs,[["__scopeId","data-v-c5c85310"]]),Ws={"w-full":"",flex:"","mt-4":"","gap-4":""},Fs={btn:"",title:"Submissions",disabled:"true"},Xs={"w-full":"",flex:"","mt-4":"","gap-4":""},Us=["href"],Ys=Lt({__name:"Utility",setup(rt){const{t:et}=Kt(),it=Qt(),C=ti(),j=kt(()=>`https://resolver.xcpcio.com/resolver?xcpcio-data-source=${it.path}`);function O(){C.push(`/balloon/?data-source=${it.path}`)}function W(){C.push(`/countdown/?data-source=${it.path}`)}return(q,Q)=>(ut(),ft(Ot,null,[Z("div",Ws,[Z("button",{btn:"",title:"Balloon",onClick:O},mt(U(et)("type_menu.balloon")),1),Z("button",Fs,mt(U(et)("type_menu.submissions")),1)]),Z("div",Xs,[Z("a",{btn:"",href:U(j),target:"_blank",title:"Resolver"},mt(U(et)("type_menu.resolver")),9,Us),Z("button",{btn:"",title:"Countdown",onClick:W},mt(U(et)("type_menu.countdown")),1)])],64))}});var Ge={exports:{}};(function(rt,et){(function(it,C){C()})(Jt,function(){function it(Y,X){return typeof X>"u"?X={autoBom:!1}:typeof X!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),X={autoBom:!X}),X.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 C(Y,X,M){var R=new XMLHttpRequest;R.open("GET",Y),R.responseType="blob",R.onload=function(){Q(R.response,X,M)},R.onerror=function(){console.error("could not download file")},R.send()}function j(Y){var X=new XMLHttpRequest;X.open("HEAD",Y,!1);try{X.send()}catch{}return 200<=X.status&&299>=X.status}function O(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch{var X=document.createEvent("MouseEvents");X.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent(X)}}var W=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Jt=="object"&&Jt.global===Jt?Jt:void 0,q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),Q=W.saveAs||(typeof window!="object"||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!q?function(Y,X,M){var R=W.URL||W.webkitURL,N=document.createElement("a");X=X||Y.name||"download",N.download=X,N.rel="noopener",typeof Y=="string"?(N.href=Y,N.origin===location.origin?O(N):j(N.href)?C(Y,X,M):O(N,N.target="_blank")):(N.href=R.createObjectURL(Y),setTimeout(function(){R.revokeObjectURL(N.href)},4e4),setTimeout(function(){O(N)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,X,M){if(X=X||Y.name||"download",typeof Y!="string")navigator.msSaveOrOpenBlob(it(Y,M),X);else if(j(Y))C(Y,X,M);else{var R=document.createElement("a");R.href=Y,R.target="_blank",setTimeout(function(){O(R)})}}:function(Y,X,M,R){if(R=R||open("","_blank"),R&&(R.document.title=R.document.body.innerText="downloading..."),typeof Y=="string")return C(Y,X,M);var N=Y.type==="application/octet-stream",x=/constructor/i.test(W.HTMLElement)||W.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||N&&x||q)&&typeof FileReader<"u"){var _=new FileReader;_.onloadend=function(){var v=_.result;v=b?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),R?R.location.href=v:location=v,R=null},_.readAsDataURL(Y)}else{var A=W.URL||W.webkitURL,c=A.createObjectURL(Y);R?R.location=c:location.href=c,R=null,setTimeout(function(){A.revokeObjectURL(c)},4e4)}});W.saveAs=Q.saveAs=Q,rt.exports=Q})})(Ge);var Vs=Ge.exports;const Se=ei(Vs);var qs=setTimeout;function Ks(rt,et){var it=et.useCachedSetTimeout?qs:setTimeout;return new Promise(function(C){it(C,rt)})}function Zs(rt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},it=et.useCachedSetTimeout,C=Ks(rt,{useCachedSetTimeout:it});function j(O){return C.then(function(){return O})}return j.then=function(){return C.then.apply(C,arguments)},j.catch=Promise.resolve().catch,j}const Js={flex:"","flex-col":""},Qs={"w-160":"","font-bold":""},to={"mt-8":""},eo={key:0,flex:"","flex-row":"","justify-center":"","gap-4":""},io=["disabled"],so=["disabled"],oo={key:1,flex:"","justify-center":""},no=["disabled"],ro={key:2,flex:"","justify-center":""},ao=["disabled"],lo=Lt({__name:"Export",props:{rank:null},setup(rt){const et=rt,it=Ie.useToast(),{copy:C,isSupported:j}=je(),O=kt(()=>et.rank),W=_t({value:"cf-dat",text:"Codeforces Gym Ghost(dat)"}),q=_t([{value:"cf-dat",text:"Codeforces Gym Ghost(dat)"},{value:"general-xlsx",text:"Excel Table(xlsx)"},{value:"icpc-standings-csv",text:"ICPC Standings(csv)"}]),Q=_t({CfDatDownload:!1,CfDatCopy:!1,GeneralXLSXDownload:!1,ICPCStandingsCsvDownload:!1});async function Y(){await ii(),await Zs(16)}async function X(){Q.value.CfDatDownload=!0,await Y();const b=new ve().convert(O.value),_=new Blob([b],{type:"text/plain;charset=utf-8"});Se.saveAs(_,"contest.dat"),Q.value.CfDatDownload=!1}async function M(){if(!j.value){it.warning("clipboard is not supported");return}Q.value.CfDatCopy=!0,await Y();const b=new ve().convert(O.value);C(b),Q.value.CfDatCopy=!1,it.success("Copy Success")}async function R(){Q.value.GeneralXLSXDownload=!0,await Y(),new si().convertAndWrite(O.value,`${O.value.contest.name}.xlsx`),Q.value.GeneralXLSXDownload=!1}async function N(){Q.value.ICPCStandingsCsvDownload=!0,await Y();const b=new oi().convert(O.value),_=new Blob([b],{type:"text/csv;charset=utf-8"});Se.saveAs(_,"standings.csv"),Q.value.ICPCStandingsCsvDownload=!1}return(x,b)=>(ut(),ft("div",Js,[Z("div",Qs,[Ct(U(Ni),{modelValue:U(W),"onUpdate:modelValue":b[0]||(b[0]=_=>zt(W)?W.value=_:null),options:U(q),placeholder:"Export Type"},null,8,["modelValue","options"])]),Z("div",to,[U(W).value==="cf-dat"?(ut(),ft("div",eo,[Z("button",{disabled:U(Q).CfDatDownload,btn:"",onClick:X}," Download ",8,io),Z("button",{disabled:U(Q).CfDatCopy,btn:"",onClick:M}," Copy to Clipboard ",8,so)])):bt("",!0),U(W).value==="general-xlsx"?(ut(),ft("div",oo,[Z("button",{disabled:U(Q).GeneralXLSXDownload,btn:"",onClick:R}," Download ",8,no)])):bt("",!0),U(W).value==="icpc-standings-csv"?(ut(),ft("div",ro,[Z("button",{disabled:U(Q).ICPCStandingsCsvDownload,btn:"",onClick:N}," Download ",8,ao)])):bt("",!0)])]))}});function ge(rt,et,it,C,j,O){return{colors:O,chart:window.innerWidth<992?{type:"bar",backgroundColor:"transparent"}:{type:"column",backgroundColor:"transparent",height:"420px"},title:{text:rt},xAxis:{categories:C,labels:{style:{fontSize:"16px"}},title:{text:et,style:{fontSize:"16px"}}},yAxis:{min:0,title:{text:it,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:j}}function ho(rt){const et=[];rt.contest.problems.forEach((O,W)=>{et.push({problem_id:O.label,index:W,solved:O.statistics.acceptedNum})}),et.sort((O,W)=>O.solved>W.solved?-1:O.solved<W.solved?1:O.index<W.index?-1:O.index>W.index?1:0);const{cat:it,series:C,colors:j}=(()=>{const O=[],W=[];return et.forEach(Y=>{O.push(Y.problem_id),W.push(Y.solved)}),{cat:O,series:[{name:"队伍数",showInLegend:!1,data:W}],colors:["rgb(124, 181, 236)"]}})();return ge("题目通过数","题目编号","通过数",it,C,j)}function co(rt){const et=rt.rankStatistics.teamSolvedNum.map((O,W)=>({index:W,cnt:O})),{cat:it,series:C,colors:j}=(()=>{const O=[],W=[];return et.forEach(Y=>{O.push(Y.index),W.push(Y.cnt)}),{cat:O,series:[{name:"队伍数",showInLegend:!1,data:W}],colors:["rgb(124, 181, 236)"]}})();return ge("队伍过题数","过题数","队伍数",it,C,j)}function uo(rt){const{cat:et,series:it,colors:C}=(()=>{const j=[],O=[],W=[],q=[];return rt.contest.problems.forEach(X=>{O.push(X.statistics.acceptedNum),W.push(X.statistics.rejectedNum),q.push(X.statistics.pendingNum),j.push(X.label)}),{cat:j,series:[{name:"Accepted",showInLegend:!1,data:O},{name:"Rejected",showInLegend:!1,data:W},{name:"Pending",showInLegend:!1,data:q}],colors:["#E1FFB5","#FFD0D0","#C8D6FA"]}})();return ge("提交分类","题目编号","提交数",et,it,C)}function po(rt,et){const it=et.placeChartPoints.map(j=>{var O,W;return{x:j.timePoint,y:j.rank,showX:Be(j.timePoint),lastSolved:(O=j.lastSolvedProblem)!=null&&O.label?`Last Solved Problem ${(W=j.lastSolvedProblem)==null?void 0:W.label}`:""}});return{chart:{type:"spline"},title:{text:"排名变化趋势图"},series:[{showInLegend:!1,allowPointSelect:!1,name:"rank",type:"spline",data:it,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 We={exports:{}},ue={exports:{}},we;function fo(){return we||(we=1,function(rt){(function(et,it){rt.exports?(it.default=it,rt.exports=et.document?it(et):it):(et.Highcharts&&et.Highcharts.error(16,!0),et.Highcharts=it(et))})(typeof window<"u"?window:Jt,function(et){function it(j,O,W,q){j.hasOwnProperty(O)||(j[O]=q.apply(null,W),typeof CustomEvent=="function"&&et.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:O,module:j[O]}})))}var C={};return it(C,"Core/Globals.js",[],function(){var j;return function(O){O.SVG_NS="http://www.w3.org/2000/svg",O.product="Highcharts",O.version="11.1.0",O.win=typeof et<"u"?et:{},O.doc=O.win.document,O.svg=O.doc&&O.doc.createElementNS&&!!O.doc.createElementNS(O.SVG_NS,"svg").createSVGRect,O.userAgent=O.win.navigator&&O.win.navigator.userAgent||"",O.isChrome=O.userAgent.indexOf("Chrome")!==-1,O.isFirefox=O.userAgent.indexOf("Firefox")!==-1,O.isMS=/(edge|msie|trident)/i.test(O.userAgent)&&!O.win.opera,O.isSafari=!O.isChrome&&O.userAgent.indexOf("Safari")!==-1,O.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(O.userAgent),O.isWebKit=O.userAgent.indexOf("AppleWebKit")!==-1,O.deg2rad=2*Math.PI/360,O.hasBidiBug=O.isFirefox&&4>parseInt(O.userAgent.split("Firefox/")[1],10),O.hasTouch=!!O.win.TouchEvent,O.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],O.noop=function(){},O.supportsPassiveEvents=function(){let W=!1;if(!O.isMS){const q=Object.defineProperty({},"passive",{get:function(){W=!0}});O.win.addEventListener&&O.win.removeEventListener&&(O.win.addEventListener("testPassive",O.noop,q),O.win.removeEventListener("testPassive",O.noop,q))}return W}(),O.charts=[],O.dateFormats={},O.seriesTypes={},O.symbolSizes={},O.chartCount=0}(j||(j={})),j}),it(C,"Core/Utilities.js",[C["Core/Globals.js"]],function(j){function O(t,i,a,p){const E=i?"Highcharts error":"Highcharts warning";t===32&&(t=`${E}: Deprecated member`);const r=R(t);let w=r?`${E} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(typeof p<"u"){let $="";r&&(w+="?"),L(p,function(J,at){$+=`
2
+ - ${at}: ${J}`,r&&(w+=encodeURI(at)+"="+encodeURI(J))}),w+=$}k(j,"displayError",{chart:a,code:t,message:w,params:p},function(){if(i)throw Error(w);u.console&&O.messages.indexOf(w)===-1&&console.warn(w)}),O.messages.push(w)}function W(t,i){return parseInt(t,i||10)}function q(t){return typeof t=="string"}function Q(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||!Q(t))}function X(t){return Y(t)&&typeof t.nodeType=="number"}function M(t){const i=t&&t.constructor;return!(!Y(t,!0)||X(t)||!i||!i.name||i.name==="Object")}function R(t){return typeof t=="number"&&!isNaN(t)&&1/0>t&&-1/0<t}function N(t){return typeof t<"u"&&t!==null}function x(t,i,a){const p=q(i)&&!N(a);let E;const r=(w,$)=>{N(w)?t.setAttribute($,w):p?(E=t.getAttribute($))||$!=="class"||(E=t.getAttribute($+"Name")):t.removeAttribute($)};return q(i)?r(a,i):L(i,r),E}function b(t){return Q(t)?t:[t]}function _(t,i){let a;t||(t={});for(a in i)t[a]=i[a];return t}function A(){const t=arguments,i=t.length;for(let a=0;a<i;a++){const p=t[a];if(typeof p<"u"&&p!==null)return p}}function c(t,i){j.isMS&&!j.svg&&i&&N(i.opacity)&&(i.filter=`alpha(opacity=${100*i.opacity})`),_(t.style,i)}function v(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function S(t,i){return 1e14<t?t:parseFloat(t.toPrecision(i||14))}function g(t,i,a){let p;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-(g(t,"padding-left",!0)||0)-(g(t,"padding-right",!0)||0))):i==="height"?Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(g(t,"padding-top",!0)||0)-(g(t,"padding-bottom",!0)||0)):((t=u.getComputedStyle(t,void 0))&&(p=t.getPropertyValue(i),A(a,i!=="opacity")&&(p=W(p))),p)}function L(t,i,a){for(const p in t)Object.hasOwnProperty.call(t,p)&&i.call(a||t[p],t[p],p,t)}function y(t,i,a){function p(w,$){const J=t.removeEventListener;J&&J.call(t,w,$,!1)}function E(w){let $,J;t.nodeName&&(i?($={},$[i]=!0):$=w,L($,function(at,B){if(w[B])for(J=w[B].length;J--;)p(B,w[B][J].fn)}))}var r=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){const w=r.hcEvents;i?(r=w[i]||[],a?(w[i]=r.filter(function($){return a!==$.fn}),p(i,a)):(E(w),w[i]=[])):(E(w),delete r.hcEvents)}}function k(t,i,a,p){if(a=a||{},l.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==j)){var E=l.createEvent("Events");E.initEvent(i,!0,!0),a=_(E,a),t.dispatchEvent?t.dispatchEvent(a):t.fireEvent(i,a)}else if(t.hcEvents){a.target||_(a,{preventDefault:function(){a.defaultPrevented=!0},target:t,type:i}),E=[];let r=t,w=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[i]&&(E.length&&(w=!0),E.unshift.apply(E,r.hcEvents[i])),r=Object.getPrototypeOf(r);w&&E.sort(($,J)=>$.order-J.order),E.forEach($=>{$.fn.call(t,a)===!1&&a.preventDefault()})}p&&!a.defaultPrevented&&p.call(t,a)}const{charts:o,doc:l,win:u}=j;(O||(O={})).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 p=t.length;for(a=0;a<p;a++)if(i(t[a],a))return t[a]};L({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){j[i]=function(a){return O(32,!1,void 0,{[`Highcharts.${i}`]:`use Array.${t}`}),Array.prototype[t].apply(a,[].slice.call(arguments,1))}});let d;const e=function(){const t=Math.random().toString(36).substring(2,9)+"-";let i=0;return function(){return"highcharts-"+(d?"":t)+i++}}();return u.jQuery&&(u.jQuery.fn.highcharts=function(){const t=[].slice.call(arguments);if(this[0])return t[0]?(new j[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,p={}){var E=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(E,"hcEvents")||(E.hcEvents={}),E=E.hcEvents,j.Point&&t instanceof j.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);const r=t.addEventListener;return r&&r.call(t,i,a,j.supportsPassiveEvents?{passive:p.passive===void 0?i.indexOf("touch")!==-1:p.passive,capture:!1}:!1),E[i]||(E[i]=[]),E[i].push({fn:a,order:typeof p.order=="number"?p.order:1/0}),E[i].sort((w,$)=>w.order-$.order),function(){y(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){N(t)&&clearTimeout(t)},correctFloat:S,createElement:function(t,i,a,p,E){return t=l.createElement(t),i&&_(t,i),E&&c(t,{padding:"0",border:"none",margin:"0"}),a&&c(t,a),p&&p.appendChild(t),t},css:c,defined:N,destroyObjectProperties:function(t,i){L(t,function(a,p){a&&a!==i&&a.destroy&&a.destroy(),delete t[p]})},diffObjects:function(t,i,a,p){function E(w,$,J,at){const B=a?$:w;L(w,function(s,P){if(!at&&p&&-1<p.indexOf(P)&&$[P]){s=b(s),J[P]=[];for(let z=0;z<Math.max(s.length,$[P].length);z++)$[P][z]&&(s[z]===void 0?J[P][z]=$[P][z]:(J[P][z]={},E(s[z],$[P][z],J[P][z],at+1)))}else Y(s,!0)&&!s.nodeType?(J[P]=Q(s)?[]:{},E(s,$[P]||{},J[P],at+1),Object.keys(J[P]).length!==0||P==="colorAxis"&&at===0||delete J[P]):(w[P]!==$[P]||P in w&&!(P in $))&&(J[P]=B[P])})}const r={};return E(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:O,extend:_,extendClass:function(t,i){const a=function(){};return a.prototype=new t,_(a.prototype,i),a},find:h,fireEvent:k,getClosestDistance:function(t,i){const a=!i;let p,E,r;return t.forEach(w=>{if(1<w.length)for(r=w.length-1;0<r;r--)E=w[r]-w[r-1],0>E&&!a?(i==null||i(),i=void 0):E&&(typeof p>"u"||E<p)&&(p=E)}),p},getMagnitude:v,getNestedProperty:function(t,i){for(t=t.split(".");t.length&&N(i);){const a=t.shift();if(typeof a>"u"||a==="__proto__")return;if(a==="this"){let p;return Y(i)&&(p=i["@this"]),p??i}if(i=i[a],!N(i)||typeof i=="function"||typeof i.nodeType=="number"||i===u)return}return i},getStyle:g,inArray:function(t,i,a){return O(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,a)},insertItem:function(t,i){const a=t.options.index,p=i.length;let E;for(E=t.options.isInternal?p:0;E<p+1;E++)if(!i[E]||R(a)&&a<A(i[E].options.index,i[E]._i)||i[E].options.isInternal){i.splice(E,0,t);break}return E},isArray:Q,isClass:M,isDOMElement:X,isFunction:function(t){return typeof t=="function"},isNumber:R,isObject:Y,isString:q,keys:function(t){return O(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){let t,i=arguments,a={};const p=function(r,w){return typeof r!="object"&&(r={}),L(w,function($,J){J!=="__proto__"&&J!=="constructor"&&(!Y($,!0)||M($)||X($)?r[J]=w[J]:r[J]=p(r[J]||{},$))}),r};i[0]===!0&&(a=i[1],i=Array.prototype.slice.call(i,2));const E=i.length;for(t=0;t<E;t++)a=p(a,i[t]);return a},normalizeTickInterval:function(t,i,a,p,E){let r=t;a=A(a,v(t));const w=t/a;for(i||(i=E?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],p===!1&&(a===1?i=i.filter(function($){return $%1===0}):.1>=a&&(i=[1/a]))),p=0;p<i.length&&(r=i[p],!(E&&r*a>=t||!E&&w<=(i[p]+(i[p+1]||i[p]))/2));p++);return r=S(r*a,-Math.round(Math.log(.001)/Math.LN10))},objectEach:L,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+(u.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(u.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:A,pInt:W,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:y,splat:b,stableSort:function(t,i){const a=t.length;let p,E;for(E=0;E<a;E++)t[E].safeI=E;for(t.sort(function(r,w){return p=i(r,w),p===0?r.safeI-w.safeI:p}),E=0;E<a;E++)delete t[E].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 d=A(t,d)},wrap:function(t,i,a){const p=t[i];t[i]=function(){const E=arguments,r=this;return a.apply(this,[function(){return p.apply(r,arguments.length?arguments:E)}].concat([].slice.call(arguments)))}}},h}),it(C,"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"}}),it(C,"Core/Color/Color.js",[C["Core/Globals.js"],C["Core/Utilities.js"]],function(j,O){const{isNumber:W,merge:q,pInt:Q}=O;class Y{static parse(M){return M?new Y(M):Y.None}constructor(M){this.rgba=[NaN,NaN,NaN,NaN],this.input=M;const R=j.Color;if(R&&R!==Y)return new R(M);this.init(M)}init(M){let R,N;if(typeof M=="object"&&typeof M.stops<"u")this.stops=M.stops.map(_=>new Y(_[1]));else if(typeof M=="string"){if(this.input=M=Y.names[M.toLowerCase()]||M,M.charAt(0)==="#"){var x=M.length,b=parseInt(M.substr(1),16);x===7?R=[(b&16711680)>>16,(b&65280)>>8,b&255,1]:x===4&&(R=[(b&3840)>>4|(b&3840)>>8,(b&240)>>4|b&240,(b&15)<<4|b&15,1])}if(!R)for(b=Y.parsers.length;b--&&!R;)N=Y.parsers[b],(x=N.regex.exec(M))&&(R=N.parse(x))}R&&(this.rgba=R)}get(M){const R=this.input,N=this.rgba;if(typeof R=="object"&&typeof this.stops<"u"){const x=q(R);return x.stops=[].slice.call(x.stops),this.stops.forEach((b,_)=>{x.stops[_]=[x.stops[_][0],b.get(M)]}),x}return N&&W(N[0])?M==="rgb"||!M&&N[3]===1?"rgb("+N[0]+","+N[1]+","+N[2]+")":M==="a"?`${N[3]}`:"rgba("+N.join(",")+")":R}brighten(M){const R=this.rgba;if(this.stops)this.stops.forEach(function(N){N.brighten(M)});else if(W(M)&&M!==0)for(let N=0;3>N;N++)R[N]+=Q(255*M),0>R[N]&&(R[N]=0),255<R[N]&&(R[N]=255);return this}setOpacity(M){return this.rgba[3]=M,this}tweenTo(M,R){const N=this.rgba,x=M.rgba;return!W(N[0])||!W(x[0])?M.input||"none":(M=x[3]!==1||N[3]!==1,(M?"rgba(":"rgb(")+Math.round(x[0]+(N[0]-x[0])*(1-R))+","+Math.round(x[1]+(N[1]-x[1])*(1-R))+","+Math.round(x[2]+(N[2]-x[2])*(1-R))+(M?","+(x[3]+(N[3]-x[3])*(1-R)):"")+")")}}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(X){return[Q(X[1]),Q(X[2]),Q(X[3]),parseFloat(X[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(X){return[Q(X[1]),Q(X[2]),Q(X[3]),1]}}],Y.None=new Y(""),Y}),it(C,"Core/Color/Palettes.js",[],function(){return{colors:"#2caffe #544fc5 #00e272 #fe6a35 #6b8abc #d568fb #2ee0ca #fa4b42 #feb56a #91e8e1".split(" ")}}),it(C,"Core/Time.js",[C["Core/Globals.js"],C["Core/Utilities.js"]],function(j,O){const{win:W}=j,{defined:q,error:Q,extend:Y,isObject:X,merge:M,objectEach:R,pad:N,pick:x,splat:b,timeUnits:_}=O,A=j.isSafari&&W.Intl&&W.Intl.DateTimeFormat.prototype.formatRange,c=j.isSafari&&W.Intl&&!W.Intl.DateTimeFormat.prototype.formatRange;class v{constructor(g){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=W.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(g)}get(g,L){if(this.variableTimezone||this.timezoneOffset){const y=L.getTime(),k=y-this.getTimezoneOffset(L);return L.setTime(k),g=L["getUTC"+g](),L.setTime(y),g}return this.useUTC?L["getUTC"+g]():L["get"+g]()}set(g,L,y){if(this.variableTimezone||this.timezoneOffset){if(g==="Milliseconds"||g==="Seconds"||g==="Minutes"&&this.getTimezoneOffset(L)%36e5===0)return L["setUTC"+g](y);var k=this.getTimezoneOffset(L);return k=L.getTime()-k,L.setTime(k),L["setUTC"+g](y),g=this.getTimezoneOffset(L),k=L.getTime()+g,L.setTime(k)}return this.useUTC||A&&g==="FullYear"?L["setUTC"+g](y):L["set"+g](y)}update(g={}){const L=x(g.useUTC,!0);this.options=g=M(!0,this.options,g),this.Date=g.Date||W.Date||Date,this.timezoneOffset=(this.useUTC=L)&&g.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=L&&!(!g.getTimezoneOffset&&!g.timezone)}makeTime(g,L,y,k,o,l){let u,h,d;return this.useUTC?(u=this.Date.UTC.apply(0,arguments),h=this.getTimezoneOffset(u),u+=h,d=this.getTimezoneOffset(u),h!==d?u+=d-h:h-36e5!==this.getTimezoneOffset(u-36e5)||c||(u-=36e5)):u=new this.Date(g,L,x(y,1),x(k,0),x(o,0),x(l,0)).getTime(),u}timezoneOffsetFunction(){const g=this,L=this.options,y=L.getTimezoneOffset,k=L.moment||W.moment;if(!this.useUTC)return function(o){return 6e4*new Date(o.toString()).getTimezoneOffset()};if(L.timezone){if(k)return function(o){return 6e4*-k.tz(o,L.timezone).utcOffset()};Q(25)}return this.useUTC&&y?function(o){return 6e4*y(o.valueOf())}:function(){return 6e4*(g.timezoneOffset||0)}}dateFormat(g,L,y){if(!q(L)||isNaN(L))return j.defaultOptions.lang&&j.defaultOptions.lang.invalidDate||"";g=x(g,"%Y-%m-%d %H:%M:%S");const k=this;var o=new this.Date(L);const l=this.get("Hours",o),u=this.get("Day",o),h=this.get("Date",o),d=this.get("Month",o),e=this.get("FullYear",o),t=j.defaultOptions.lang,i=t&&t.weekdays,a=t&&t.shortWeekdays;return o=Y({a:a?a[u]:i[u].substr(0,3),A:i[u],d:N(h),e:N(h,2," "),w:u,b:t.shortMonths[d],B:t.months[d],m:N(d+1),o:d+1,y:e.toString().substr(2,2),Y:e,H:N(l),k:l,I:N(l%12||12),l:l%12||12,M:N(this.get("Minutes",o)),p:12>l?"AM":"PM",P:12>l?"am":"pm",S:N(o.getSeconds()),L:N(Math.floor(L%1e3),3)},j.dateFormats),R(o,function(p,E){for(;g.indexOf("%"+E)!==-1;)g=g.replace("%"+E,typeof p=="function"?p.call(k,L):p)}),y?g.substr(0,1).toUpperCase()+g.substr(1):g}resolveDTLFormat(g){return X(g,!0)?g:(g=b(g),{main:g[0],from:g[1],to:g[2]})}getTimeTicks(g,L,y,k){const o=this,l=[],u={};var h=new o.Date(L);const d=g.unitRange,e=g.count||1;let t;if(k=x(k,1),q(L)){if(o.set("Milliseconds",h,d>=_.second?0:e*Math.floor(o.get("Milliseconds",h)/e)),d>=_.second&&o.set("Seconds",h,d>=_.minute?0:e*Math.floor(o.get("Seconds",h)/e)),d>=_.minute&&o.set("Minutes",h,d>=_.hour?0:e*Math.floor(o.get("Minutes",h)/e)),d>=_.hour&&o.set("Hours",h,d>=_.day?0:e*Math.floor(o.get("Hours",h)/e)),d>=_.day&&o.set("Date",h,d>=_.month?1:Math.max(1,e*Math.floor(o.get("Date",h)/e))),d>=_.month){o.set("Month",h,d>=_.year?0:e*Math.floor(o.get("Month",h)/e));var i=o.get("FullYear",h)}d>=_.year&&o.set("FullYear",h,i-i%e),d===_.week&&(i=o.get("Day",h),o.set("Date",h,o.get("Date",h)-i+k+(i<k?-7:0))),i=o.get("FullYear",h),k=o.get("Month",h);const a=o.get("Date",h),p=o.get("Hours",h);for(L=h.getTime(),!o.variableTimezone&&o.useUTC||!q(y)||(t=y-L>4*_.month||o.getTimezoneOffset(L)!==o.getTimezoneOffset(y)),L=h.getTime(),h=1;L<y;)l.push(L),L=d===_.year?o.makeTime(i+h*e,0):d===_.month?o.makeTime(i,k+h*e):!t||d!==_.day&&d!==_.week?t&&d===_.hour&&1<e?o.makeTime(i,k,a,p+h*e):L+d*e:o.makeTime(i,k,a+h*e*(d===_.day?1:7)),h++;l.push(L),d<=_.hour&&1e4>l.length&&l.forEach(function(E){E%18e5===0&&o.dateFormat("%H%M%S%L",E)==="000000000"&&(u[E]="day")})}return l.info=Y(g,{higherRanks:u,totalRange:d*e}),l}getDateFormat(g,L,y,k){const o=this.dateFormat("%m-%d %H:%M:%S.%L",L),l={millisecond:15,second:12,minute:9,hour:6,day:3};let u,h="millisecond";for(u in _){if(g===_.week&&+this.dateFormat("%w",L)===y&&o.substr(6)==="00:00:00.000"){u="week";break}if(_[u]>g){u=h;break}if(l[u]&&o.substr(l[u])!=="01-01 00:00:00.000".substr(l[u]))break;u!=="week"&&(h=u)}return this.resolveDTLFormat(k[u]).main}}return v}),it(C,"Core/Defaults.js",[C["Core/Chart/ChartDefaults.js"],C["Core/Color/Color.js"],C["Core/Globals.js"],C["Core/Color/Palettes.js"],C["Core/Time.js"],C["Core/Utilities.js"]],function(j,O,W,q,Q,Y){const{isTouchDevice:X,svg:M}=W,{merge:R}=Y,N={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:j,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:M,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:X?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"}};N.chart.styledMode=!1;const x=new Q(N.time);return j={defaultOptions:N,defaultTime:x,getOptions:function(){return N},setOptions:function(b){return R(!0,N,b),(b.time||b.global)&&(W.time?W.time.update(R(N.global,N.time,b.global,b.time)):W.time=x),N}},j}),it(C,"Core/Animation/Fx.js",[C["Core/Color/Color.js"],C["Core/Globals.js"],C["Core/Utilities.js"]],function(j,O,W){const{parse:q}=j,{win:Q}=O,{isNumber:Y,objectEach:X}=W;class M{constructor(N,x,b){this.pos=NaN,this.options=x,this.elem=N,this.prop=b}dSetter(){var N=this.paths;const x=N&&N[0];N=N&&N[1];const b=this.now||0;let _=[];if(b!==1&&x&&N)if(x.length===N.length&&1>b)for(let A=0;A<N.length;A++){const c=x[A],v=N[A],S=[];for(let g=0;g<v.length;g++){const L=c[g],y=v[g];Y(L)&&Y(y)&&(v[0]!=="A"||g!==4&&g!==5)?S[g]=L+b*(y-L):S[g]=y}_.push(S)}else _=N;else _=this.toD||[];this.elem.attr("d",_,void 0,!0)}update(){const N=this.elem,x=this.prop,b=this.now,_=this.options.step;this[x+"Setter"]?this[x+"Setter"]():N.attr?N.element&&N.attr(x,b,null,!0):N.style[x]=b+this.unit,_&&_.call(N,b,this)}run(N,x,b){const _=this,A=_.options,c=function(g){return c.stopped?!1:_.step(g)},v=Q.requestAnimationFrame||function(g){setTimeout(g,13)},S=function(){for(let g=0;g<M.timers.length;g++)M.timers[g]()||M.timers.splice(g--,1);M.timers.length&&v(S)};N!==x||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=N,this.end=x,this.unit=b,this.now=this.start,this.pos=0,c.elem=this.elem,c.prop=this.prop,c()&&M.timers.push(c)===1&&v(S)):(delete A.curAnim[this.prop],A.complete&&Object.keys(A.curAnim).length===0&&A.complete.call(this.elem))}step(N){const x=+new Date,b=this.options,_=this.elem,A=b.complete,c=b.duration,v=b.curAnim;let S;return _.attr&&!_.element?N=!1:N||x>=c+this.startTime?(this.now=this.end,this.pos=1,this.update(),S=v[this.prop]=!0,X(v,function(g){g!==!0&&(S=!1)}),S&&A&&A.call(_),N=!1):(this.pos=b.easing((x-this.startTime)/c),this.now=this.start+(this.end-this.start)*this.pos,this.update(),N=!0),N}initPath(N,x,b){function _(o,l){for(;o.length<y;){var u=o[0];const h=l[y-o.length];h&&u[0]==="M"&&(o[0]=h[0]==="C"?["C",u[1],u[2],u[1],u[2],u[1],u[2]]:["L",u[1],u[2]]),o.unshift(u),S&&(u=o.pop(),o.push(o[o.length-1],u))}}function A(o,l){for(;o.length<y;)if(l=o[Math.floor(o.length/g)-1].slice(),l[0]==="C"&&(l[1]=l[5],l[2]=l[6]),S){const u=o[Math.floor(o.length/g)].slice();o.splice(o.length/2,0,l,u)}else o.push(l)}const c=N.startX,v=N.endX;b=b.slice();const S=N.isArea,g=S?2:1;let L,y,k;if(x=x&&x.slice(),!x)return[b,b];if(c&&v&&v.length){for(N=0;N<c.length;N++)if(c[N]===v[0]){L=N;break}else if(c[0]===v[v.length-c.length+N]){L=N,k=!0;break}else if(c[c.length-1]===v[v.length-c.length+N]){L=c.length-N;break}typeof L>"u"&&(x=[])}return x.length&&Y(L)&&(y=b.length+L*g,k?(_(x,b),A(b,x)):(_(b,x),A(x,b))),[x,b]}fillSetter(){M.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,q(this.start).tweenTo(q(this.end),this.pos),void 0,!0)}}return M.timers=[],M}),it(C,"Core/Animation/AnimationUtilities.js",[C["Core/Animation/Fx.js"],C["Core/Utilities.js"]],function(j,O){function W(_){return R(_)?N({duration:500,defer:0},_):{duration:_?500:0,defer:0}}function q(_,A){let c=j.timers.length;for(;c--;)j.timers[c].elem!==_||A&&A!==j.timers[c].prop||(j.timers[c].stopped=!0)}const{defined:Q,getStyle:Y,isArray:X,isNumber:M,isObject:R,merge:N,objectEach:x,pick:b}=O;return{animate:function(_,A,c){let v,S="",g,L,y;R(c)||(y=arguments,c={duration:y[2],easing:y[3],complete:y[4]}),M(c.duration)||(c.duration=400),c.easing=typeof c.easing=="function"?c.easing:Math[c.easing]||Math.easeInOutSine,c.curAnim=N(A),x(A,function(k,o){q(_,o),L=new j(_,c,o),g=void 0,o==="d"&&X(A.d)?(L.paths=L.initPath(_,_.pathArray,A.d),L.toD=A.d,v=0,g=1):_.attr?v=_.attr(o):(v=parseFloat(Y(_,o))||0,o!=="opacity"&&(S="px")),g||(g=k),typeof g=="string"&&g.match("px")&&(g=g.replace(/px/g,"")),L.run(v,g,S)})},animObject:W,getDeferredAnimation:function(_,A,c){const v=W(A);let S=0,g=0;return(c?[c]:_.series).forEach(L=>{L=W(L.options.animation),S=A&&Q(A.defer)?v.defer:Math.max(S,L.duration+L.defer),g=Math.min(v.duration,L.duration)}),_.renderer.forExport&&(S=0),{defer:Math.max(0,S-g),duration:Math.min(S,g)}},setAnimation:function(_,A){A.renderer.globalAnimation=b(_,A.options.chart.animation,!0)},stop:q}}),it(C,"Core/Renderer/HTML/AST.js",[C["Core/Globals.js"],C["Core/Utilities.js"]],function(j,O){const{SVG_NS:W,win:q}=j,{attr:Q,createElement:Y,css:X,error:M,isFunction:R,isString:N,objectEach:x,splat:b}=O;({trustedTypes:O}=q);const _=O&&R(O.createPolicy)&&O.createPolicy("highcharts",{createHTML:S=>S});O=_?_.createHTML(""):"";try{var A=!!new DOMParser().parseFromString(O,"text/html")}catch{A=!1}const c=A;class v{static filterUserAttributes(g){return x(g,(L,y)=>{let k=!0;v.allowedAttributes.indexOf(y)===-1&&(k=!1),["background","dynsrc","href","lowsrc","src"].indexOf(y)!==-1&&(k=N(L)&&v.allowedReferences.some(o=>L.indexOf(o)===0)),k||(M(33,!1,void 0,{"Invalid attribute in config":`${y}`}),delete g[y]),N(L)&&g[y]&&(g[y]=L.replace(/</g,"&lt;"))}),g}static parseStyle(g){return g.split(";").reduce((L,y)=>{y=y.split(":").map(o=>o.trim());const k=y.shift();return k&&y.length&&(L[k.replace(/-([a-z])/g,o=>o[1].toUpperCase())]=y.join(":")),L},{})}static setElementHTML(g,L){g.innerHTML=v.emptyHTML,L&&new v(L).addToDOM(g)}constructor(g){this.nodes=typeof g=="string"?this.parseMarkup(g):g}addToDOM(g){function L(y,k){let o;return b(y).forEach(function(l){var u=l.tagName;const h=l.textContent?j.doc.createTextNode(l.textContent):void 0,d=v.bypassHTMLFiltering;let e;if(u)if(u==="#text")e=h;else if(v.allowedTags.indexOf(u)!==-1||d){u=j.doc.createElementNS(u==="svg"?W:k.namespaceURI||W,u);const t=l.attributes||{};x(l,function(i,a){a!=="tagName"&&a!=="attributes"&&a!=="children"&&a!=="style"&&a!=="textContent"&&(t[a]=i)}),Q(u,d?t:v.filterUserAttributes(t)),l.style&&X(u,l.style),h&&u.appendChild(h),L(l.children||[],u),e=u}else M(33,!1,void 0,{"Invalid tagName in config":u});e&&k.appendChild(e),o=e}),o}return L(this.nodes,g)}parseMarkup(g){const L=[];if(g=g.trim().replace(/ style=(["'])/g," data-style=$1"),c)g=new DOMParser().parseFromString(_?_.createHTML(g):g,"text/html");else{const k=Y("div");k.innerHTML=g,g={body:k}}const y=(k,o)=>{var l=k.nodeName.toLowerCase();const u={tagName:l};if(l==="#text"&&(u.textContent=k.textContent||""),l=k.attributes){const h={};[].forEach.call(l,d=>{d.name==="data-style"?u.style=v.parseStyle(d.value):h[d.name]=d.value}),u.attributes=h}if(k.childNodes.length){const h=[];[].forEach.call(k.childNodes,d=>{y(d,h)}),h.length&&(u.children=h)}o.push(u)};return[].forEach.call(g.body.childNodes,k=>y(k,L)),L}}return v.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(" "),v.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),v.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(" "),v.emptyHTML=O,v.bypassHTMLFiltering=!1,v}),it(C,"Core/Templating.js",[C["Core/Defaults.js"],C["Core/Utilities.js"]],function(j,O){function W(c="",v,S){const g=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,L=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,y=[],k=/f$/,o=/\.([0-9])/,l=Q.lang,u=S&&S.time||Y,h=S&&S.numberFormatter||q,d=(r="")=>{let w;return r==="true"?!0:r==="false"?!1:(w=Number(r)).toString()===r?w:M(r,v)};let e,t,i=0,a;for(;(e=g.exec(c))!==null;){const r=L.exec(e[1]);r&&(e=r,a=!0),t&&t.isBlock||(t={ctx:v,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 p=e[1].split(" ")[0].replace("#","");if(A[p]&&(t.isBlock&&p===t.fn&&i++,t.fn||(t.fn=p)),p=e[1]==="else",t.isBlock&&t.fn&&(e[1]===`/${t.fn}`||p))if(i)p||i--;else{var E=t.startInner;E=c.substr(E,e.index-E),t.body===void 0?(t.body=E,t.startInner=e.index+e[0].length):t.elseBody=E,t.find+=E+e[0],p||(y.push(t),t=void 0)}else t.isBlock||y.push(t);if(r&&(t==null||!t.isBlock))break}return y.forEach(r=>{const{body:w,elseBody:$,expression:J,fn:at}=r;var B;if(at){var s=[r],P=J.split(" ");for(B=A[at].length;B--;)s.unshift(d(P[B+1]));B=A[at].apply(v,s),r.isBlock&&typeof B=="boolean"&&(B=W(B?w:$,v))}else s=J.split(":"),B=d(s.shift()||""),s.length&&typeof B=="number"&&(s=s.join(":"),k.test(s)?(P=parseInt((s.match(o)||["","-1"])[1],10),B!==null&&(B=h(B,P,l.decimalPoint,-1<s.indexOf(",")?l.thousandsSep:""))):B=u.dateFormat(s,B));c=c.replace(r.find,b(B,""))}),a?W(c,v,S):c}function q(c,v,S,g){c=+c||0,v=+v;const L=Q.lang;var y=(c.toString().split(".")[1]||"").split("e")[0].length;const k=c.toString().split("e"),o=v;if(v===-1)v=Math.min(y,20);else if(!N(v))v=2;else if(v&&k[1]&&0>k[1]){var l=v+ +k[1];0<=l?(k[0]=(+k[0]).toExponential(l).split("e")[0],v=l):(k[0]=k[0].split(".")[0]||0,c=20>v?(k[0]*Math.pow(10,k[1])).toFixed(v):0,k[1]=0)}l=(Math.abs(k[1]?k[0]:c)+Math.pow(10,-Math.max(v,y)-1)).toFixed(v),y=String(_(l));const u=3<y.length?y.length%3:0;return S=b(S,L.decimalPoint),g=b(g,L.thousandsSep),c=(0>c?"-":"")+(u?y.substr(0,u)+g:""),c=0>+k[1]&&!o?"0":c+y.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+g),v&&(c+=S+l.slice(-v)),k[1]&&+c!=0&&(c+="e"+k[1]),c}const{defaultOptions:Q,defaultTime:Y}=j,{extend:X,getNestedProperty:M,isArray:R,isNumber:N,isObject:x,pick:b,pInt:_}=O,A={add:(c,v)=>c+v,divide:(c,v)=>v!==0?c/v:"",eq:(c,v)=>c==v,each:function(c){const v=arguments[arguments.length-1];return R(c)?c.map((S,g)=>W(v.body,X(x(S)?S:{"@this":S},{"@index":g,"@first":g===0,"@last":g===c.length-1}))).join(""):!1},ge:(c,v)=>c>=v,gt:(c,v)=>c>v,if:c=>!!c,le:(c,v)=>c<=v,lt:(c,v)=>c<v,multiply:(c,v)=>c*v,ne:(c,v)=>c!=v,subtract:(c,v)=>c-v,unless:c=>!c};return{dateFormat:function(c,v,S){return Y.dateFormat(c,v,S)},format:W,helpers:A,numberFormat:q}}),it(C,"Core/Renderer/RendererUtilities.js",[C["Core/Utilities.js"]],function(j){const{clamp:O,pick:W,stableSort:q}=j;var Q;return function(Y){function X(M,R,N){const x=M;var b=x.reducedLen||R,_=(L,y)=>(y.rank||0)-(L.rank||0);const A=(L,y)=>L.target-y.target;let c,v=!0,S=[],g=0;for(c=M.length;c--;)g+=M[c].size;if(g>b){for(q(M,_),g=c=0;g<=b;)g+=M[c].size,c++;S=M.splice(c-1,M.length)}for(q(M,A),M=M.map(L=>({size:L.size,targets:[L.target],align:W(L.align,.5)}));v;){for(c=M.length;c--;)b=M[c],_=(Math.min.apply(0,b.targets)+Math.max.apply(0,b.targets))/2,b.pos=O(_-b.size*b.align,0,R-b.size);for(c=M.length,v=!1;c--;)0<c&&M[c-1].pos+M[c-1].size>M[c].pos&&(M[c-1].size+=M[c].size,M[c-1].targets=M[c-1].targets.concat(M[c].targets),M[c-1].align=.5,M[c-1].pos+M[c-1].size>R&&(M[c-1].pos=R-M[c-1].size),M.splice(c,1),v=!0)}return x.push.apply(x,S),c=0,M.some(L=>{let y=0;return(L.targets||[]).some(()=>(x[c].pos=L.pos+y,typeof N<"u"&&Math.abs(x[c].pos-x[c].target)>N?(x.slice(0,c+1).forEach(k=>delete k.pos),x.reducedLen=(x.reducedLen||R)-.1*R,x.reducedLen>.1*R&&X(x,R,N),!0):(y+=x[c].size,c++,!1)))}),q(x,A),x}Y.distribute=X}(Q||(Q={})),Q}),it(C,"Core/Renderer/SVG/SVGElement.js",[C["Core/Animation/AnimationUtilities.js"],C["Core/Color/Color.js"],C["Core/Globals.js"],C["Core/Utilities.js"]],function(j,O,W,q){const{animate:Q,animObject:Y,stop:X}=j,{deg2rad:M,doc:R,svg:N,SVG_NS:x,win:b}=W,{addEvent:_,attr:A,createElement:c,css:v,defined:S,erase:g,extend:L,fireEvent:y,isArray:k,isFunction:o,isObject:l,isString:u,merge:h,objectEach:d,pick:e,pInt:t,syncTimeout:i,uniqueKey:a}=q;class p{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,w,$){$.setAttribute(w,r)}add(r){const w=this.renderer,$=this.element;let J;return r&&(this.parentGroup=r),typeof this.textStr<"u"&&this.element.nodeName==="text"&&w.buildText(this),this.added=!0,(!r||r.handleZ||this.zIndex)&&(J=this.zIndexSetter()),J||(r?r.element:w.box).appendChild($),this.onAdd&&this.onAdd(),this}addClass(r,w){const $=w?"":this.attr("class")||"";return r=(r||"").split(/ /g).reduce(function(J,at){return $.indexOf(at)===-1&&J.push(at),J},$?[$]:[]).join(" "),r!==$&&this.attr("class",r),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(r,w,$){const J={};var at=this.renderer,B=at.alignedObjects,s;let P,z;r?(this.alignOptions=r,this.alignByTranslate=w,(!$||u($))&&(this.alignTo=s=$||"renderer",g(B,this),B.push(this),$=void 0)):(r=this.alignOptions,w=this.alignByTranslate,s=this.alignTo),$=e($,at[s],s==="scrollablePlotBox"?at.plotBox:void 0,at),s=r.align;const I=r.verticalAlign;return at=($.x||0)+(r.x||0),B=($.y||0)+(r.y||0),s==="right"?P=1:s==="center"&&(P=2),P&&(at+=($.width-(r.width||0))/P),J[w?"translateX":"x"]=Math.round(at),I==="bottom"?z=1:I==="middle"&&(z=2),z&&(B+=($.height-(r.height||0))/z),J[w?"translateY":"y"]=Math.round(B),this[this.placed?"animate":"attr"](J),this.placed=!0,this.alignAttr=J,this}alignSetter(r){const w={left:"start",center:"middle",right:"end"};w[r]&&(this.alignValue=r,this.element.setAttribute("text-anchor",w[r]))}animate(r,w,$){const J=Y(e(w,this.renderer.globalAnimation,!0));return w=J.defer,R.hidden&&(J.duration=0),J.duration!==0?($&&(J.complete=$),i(()=>{this.element&&Q(this,r,J)},w)):(this.attr(r,void 0,$||J.complete),d(r,function(at,B){J.step&&J.step.call(this,at,{prop:B,pos:1,elem:this})},this)),this}applyTextOutline(r){const w=this.element;r.indexOf("contrast")!==-1&&(r=r.replace(/contrast/g,this.renderer.getContrast(w.style.fill)));var $=r.split(" ");if(r=$[$.length-1],($=$[0])&&$!=="none"&&W.svg){this.fakeTS=!0,$=$.replace(/(^[\d\.]+)(.*?)$/g,function(B,s,P){return 2*Number(s)+P}),this.removeTextOutline();const J=R.createElementNS(x,"tspan");A(J,{class:"highcharts-text-outline",fill:r,stroke:r,"stroke-width":$,"stroke-linejoin":"round"}),r=w.querySelector("textPath")||w,[].forEach.call(r.childNodes,B=>{const s=B.cloneNode(!0);s.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(P=>s.removeAttribute(P)),J.appendChild(s)});let at=0;[].forEach.call(r.querySelectorAll("text tspan"),B=>{at+=Number(B.getAttribute("dy"))}),$=R.createElementNS(x,"tspan"),$.textContent="​",A($,{x:Number(w.getAttribute("x")),dy:-at}),J.appendChild($),r.insertBefore(J,r.firstChild)}}attr(r,w,$,J){const at=this.element,B=p.symbolCustomAttribs;let s,P,z=this,I,K;return typeof r=="string"&&typeof w<"u"&&(s=r,r={},r[s]=w),typeof r=="string"?z=(this[r+"Getter"]||this._defaultGetter).call(this,r,at):(d(r,function(n,f){I=!1,J||X(this,f),this.symbolName&&B.indexOf(f)!==-1&&(P||(this.symbolAttr(r),P=!0),I=!0),!this.rotation||f!=="x"&&f!=="y"||(this.doTransform=!0),I||(K=this[f+"Setter"]||this._defaultSetter,K.call(this,n,f,at))},this),this.afterSetters()),$&&$.call(this),z}clip(r){return this.attr("clip-path",r?"url("+this.renderer.url+"#"+r.id+")":"none")}crisp(r,w){w=w||r.strokeWidth||0;const $=Math.round(w)%2/2;return r.x=Math.floor(r.x||this.x||0)+$,r.y=Math.floor(r.y||this.y||0)+$,r.width=Math.floor((r.width||this.width||0)-2*$),r.height=Math.floor((r.height||this.height||0)-2*$),S(r.strokeWidth)&&(r.strokeWidth=w),r}complexColor(r,w,$){const J=this.renderer;let at,B,s,P,z,I,K,n,f,m,H=[],F;y(this.renderer,"complexColor",{args:arguments},function(){if(r.radialGradient?B="radialGradient":r.linearGradient&&(B="linearGradient"),B){if(s=r[B],z=J.gradients,I=r.stops,f=$.radialReference,k(s)&&(r[B]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),B==="radialGradient"&&f&&!S(s.gradientUnits)&&(P=s,s=h(s,J.getRadialAttr(f,P),{gradientUnits:"userSpaceOnUse"})),d(s,function(G,ot){ot!=="id"&&H.push(ot,G)}),d(I,function(G){H.push(G)}),H=H.join(","),z[H])m=z[H].attr("id");else{s.id=m=a();const G=z[H]=J.createElement(B).attr(s).add(J.defs);G.radAttr=P,G.stops=[],I.forEach(function(ot){ot[1].indexOf("rgba")===0?(at=O.parse(ot[1]),K=at.get("rgb"),n=at.get("a")):(K=ot[1],n=1),ot=J.createElement("stop").attr({offset:ot[0],"stop-color":K,"stop-opacity":n}).add(G),G.stops.push(ot)})}F="url("+J.url+"#"+m+")",$.setAttribute(w,F),$.gradient=H,r.toString=function(){return F}}})}css(r){const w=this.styles,$={},J=this.element;let at,B=!w;if(w&&d(r,function(s,P){w&&w[P]!==s&&($[P]=s,B=!0)}),B){w&&(r=L(w,$)),r.width===null||r.width==="auto"?delete this.textWidth:J.nodeName.toLowerCase()==="text"&&r.width&&(at=this.textWidth=t(r.width)),this.styles=r,at&&!N&&this.renderer.forExport&&delete r.width;const s=h(r);J.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(P=>s&&delete s[P]),s.color&&(s.fill=s.color)),v(J,s)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),r.textOutline&&this.applyTextOutline(r.textOutline)),this}dashstyleSetter(r){let w=this["stroke-width"];if(w==="inherit"&&(w=1),r=r&&r.toLowerCase()){const $=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=$.length;r--;)$[r]=""+t($[r])*e(w,NaN);r=$.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",r)}}destroy(){const r=this;var w=r.element||{};const $=r.renderer;var J=w.ownerSVGElement;let at=w.nodeName==="SPAN"&&r.parentGroup||void 0;if(w.onclick=w.onmouseout=w.onmouseover=w.onmousemove=w.point=null,X(r),r.clipPath&&J){const B=r.clipPath;[].forEach.call(J.querySelectorAll("[clip-path],[CLIP-PATH]"),function(s){-1<s.getAttribute("clip-path").indexOf(B.element.id)&&s.removeAttribute("clip-path")}),r.clipPath=B.destroy()}if(r.stops){for(J=0;J<r.stops.length;J++)r.stops[J].destroy();r.stops.length=0,r.stops=void 0}for(r.safeRemoveChild(w);at&&at.div&&at.div.childNodes.length===0;)w=at.parentGroup,r.safeRemoveChild(at.div),delete at.div,at=w;r.alignTo&&g($.alignedObjects,r),d(r,function(B,s){r[s]&&r[s].parentGroup===r&&r[s].destroy&&r[s].destroy(),delete r[s]})}dSetter(r,w,$){k(r)&&(typeof r[0]=="string"&&(r=this.renderer.pathToSegments(r)),this.pathArray=r,r=r.reduce((J,at,B)=>at&&at.join?(B?J+" ":"")+at.join(" "):(at||"").toString(),"")),/(NaN| {2}|^$)/.test(r)&&(r="M 0 0"),this[w]!==r&&($.setAttribute(w,r),this[w]=r)}fadeOut(r){const w=this;w.animate({opacity:0},{duration:e(r,150),complete:function(){w.hide()}})}fillSetter(r,w,$){typeof r=="string"?$.setAttribute(w,r):r&&this.complexColor(r,w,$)}getBBox(r,w){const{alignValue:$,element:J,renderer:at,styles:B,textStr:s}=this,{cache:P,cacheKeys:z}=at;var I=J.namespaceURI===this.SVG_NS;w=e(w,this.rotation,0);var K=at.styledMode?J&&p.prototype.getStyle.call(J,"font-size"):B&&B.fontSize;let n,f;if(S(s)&&(f=s.toString(),f.indexOf("<")===-1&&(f=f.replace(/[0-9]/g,"0")),f+=["",at.rootFontSize,K,w,this.textWidth,$,B&&B.textOverflow,B&&B.fontWeight].join()),f&&!r&&(n=P[f]),!n){if(I||at.forExport){try{var m=this.fakeTS&&function(nt){const lt=J.querySelector(".highcharts-text-outline");lt&&v(lt,{display:nt})};o(m)&&m("none"),n=J.getBBox?L({},J.getBBox()):{width:J.offsetWidth,height:J.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}[`${K||""},${Math.round(r)}`]||r),w){I=Number(J.getAttribute("y")||0)-n.y,K={right:1,center:.5}[$||0]||0;var H=w*M,F=(w-90)*M,G=m*Math.cos(H);w=m*Math.sin(H);var ot=Math.cos(F);H=Math.sin(F),m=n.x+K*(m-G)+I*ot,F=m+G,ot=F-r*ot,G=ot-G,I=n.y+I-K*w+I*H,K=I+w,r=K-r*H,w=r-w,n.x=Math.min(m,F,ot,G),n.y=Math.min(I,K,r,w),n.width=Math.max(m,F,ot,G)-n.x,n.height=Math.max(I,K,r,w)-n.y}}if(f&&(s===""||0<n.height)){for(;250<z.length;)delete P[z.shift()];P[f]||z.push(f),P[f]=n}return n}getStyle(r){return b.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,w){this.element=w==="span"?c(w):R.createElementNS(this.SVG_NS,w),this.renderer=r,y(this,"afterInit")}on(r,w){const{onEvents:$}=this;return $[r]&&$[r](),$[r]=_(this.element,r,w),this}opacitySetter(r,w,$){this.opacity=r=Number(Number(r).toFixed(3)),$.setAttribute(w,r)}removeClass(r){return this.attr("class",(""+this.attr("class")).replace(u(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 w=r.parentNode;w&&w.removeChild(r)}setRadialReference(r){const w=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=r,w&&w.radAttr&&w.animate(this.renderer.getRadialAttr(r,w.radAttr)),this}setTextPath(r,w){w=h(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},w);const $=this.renderer.url,J=this.text||this,at=J.textPath,{attributes:B,enabled:s}=w;return r=r||at&&at.path,at&&at.undo(),r&&s?(w=_(J,"afterModifyTree",P=>{if(r&&s){let I=r.attr("id");I||r.attr("id",I=a());var z={x:0,y:0};S(B.dx)&&(z.dx=B.dx,delete B.dx),S(B.dy)&&(z.dy=B.dy,delete B.dy),J.attr(z),this.attr({transform:""}),this.box&&(this.box=this.box.destroy()),z=P.nodes.slice(0),P.nodes.length=0,P.nodes[0]={tagName:"textPath",attributes:L(B,{"text-anchor":B.textAnchor,href:`${$}#${I}`}),children:z}}}),J.textPath={path:r,undo:w}):(J.attr({dx:0,dy:0}),delete J.textPath),this.added&&(J.textCache="",this.renderer.buildText(J)),this}shadow(r){var w;const{renderer:$}=this,J=h(((w=this.parentGroup)===null||w===void 0?void 0:w.rotation)===90?{offsetX:-1,offsetY:-1}:{},l(r)?r:{});return w=$.shadowDefinition(J),this.attr({filter:r?`url(${$.url}#${w})`:"none"})}show(r=!0){return this.attr({visibility:r?"inherit":"visible"})}"stroke-widthSetter"(r,w,$){this[w]=r,$.setAttribute(w,r)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const r=this.getStyle("stroke-width");let w=0,$;return r.indexOf("px")===r.length-2?w=t(r):r!==""&&($=R.createElementNS(x,"rect"),A($,{width:r,"stroke-width":0}),this.element.parentNode.appendChild($),w=$.getBBox().width,$.parentNode.removeChild($)),w}symbolAttr(r){const w=this;p.symbolCustomAttribs.forEach(function($){w[$]=e(r[$],w[$])}),w.attr({d:w.renderer.symbols[w.symbolName](w.x,w.y,w.width,w.height,w)})}textSetter(r){r!==this.textStr&&(delete this.textPxLength,this.textStr=r,this.added&&this.renderer.buildText(this))}titleSetter(r){const w=this.element,$=w.getElementsByTagName("title")[0]||R.createElementNS(this.SVG_NS,"title");w.insertBefore?w.insertBefore($,w.firstChild):w.appendChild($),$.textContent=String(e(r,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){const r=this.element;return r.parentNode.appendChild(r),this}translate(r,w){return this.attr({translateX:r,translateY:w})}updateTransform(){const{element:r,matrix:w,rotation:$=0,scaleX:J,scaleY:at,translateX:B=0,translateY:s=0}=this,P=["translate("+B+","+s+")"];S(w)&&P.push("matrix("+w.join(",")+")"),$&&P.push("rotate("+$+" "+e(this.rotationOriginX,r.getAttribute("x"),0)+" "+e(this.rotationOriginY,r.getAttribute("y")||0)+")"),(S(J)||S(at))&&P.push("scale("+e(J,1)+" "+e(at,1)+")"),P.length&&!(this.text||this).textPath&&r.setAttribute("transform",P.join(" "))}visibilitySetter(r,w,$){r==="inherit"?$.removeAttribute(w):this[w]!==r&&$.setAttribute(w,r),this[w]=r}xGetter(r){return this.element.nodeName==="circle"&&(r==="x"?r="cx":r==="y"&&(r="cy")),this._defaultGetter(r)}zIndexSetter(r,w){var $=this.renderer,J=this.parentGroup;const at=(J||$).element||$.box,B=this.element;$=at===$.box;let s=!1,P;var z=this.added;let I;if(S(r)?(B.setAttribute("data-z-index",r),r=+r,this[w]===r&&(z=!1)):S(this[w])&&B.removeAttribute("data-z-index"),this[w]=r,z){for((r=this.zIndex)&&J&&(J.handleZ=!0),w=at.childNodes,I=w.length-1;0<=I&&!s;I--)J=w[I],z=J.getAttribute("data-z-index"),P=!S(z),J!==B&&(0>r&&P&&!$&&!I?(at.insertBefore(B,w[I]),s=!0):(t(z)<=r||P&&(!S(r)||0<=r))&&(at.insertBefore(B,w[I+1]),s=!0));s||(at.insertBefore(B,w[$?3:0]),s=!0)}return s}}return p.symbolCustomAttribs="anchorX anchorY clockwise end height innerR r start width x y".split(" "),p.prototype.strokeSetter=p.prototype.fillSetter,p.prototype.yGetter=p.prototype.xGetter,p.prototype.matrixSetter=p.prototype.rotationOriginXSetter=p.prototype.rotationOriginYSetter=p.prototype.rotationSetter=p.prototype.scaleXSetter=p.prototype.scaleYSetter=p.prototype.translateXSetter=p.prototype.translateYSetter=p.prototype.verticalAlignSetter=function(E,r){this[r]=E,this.doTransform=!0},p}),it(C,"Core/Renderer/RendererRegistry.js",[C["Core/Globals.js"]],function(j){var O;return function(W){W.rendererTypes={};let q;W.getRendererType=function(Q=q){return W.rendererTypes[Q]||W.rendererTypes[q]},W.registerRendererType=function(Q,Y,X){W.rendererTypes[Q]=Y,(!q||X)&&(q=Q,j.Renderer=Y)}}(O||(O={})),O}),it(C,"Core/Renderer/SVG/SVGLabel.js",[C["Core/Renderer/SVG/SVGElement.js"],C["Core/Utilities.js"]],function(j,O){const{defined:W,extend:q,isNumber:Q,merge:Y,pick:X,removeEvent:M}=O;class R extends j{constructor(x,b,_,A,c,v,S,g,L,y){super(),this.paddingRightSetter=this.paddingLeftSetter=this.paddingSetter,this.init(x,"g"),this.textStr=b,this.x=_,this.y=A,this.anchorX=v,this.anchorY=S,this.baseline=L,this.className=y,this.addClass(y==="button"?"highcharts-no-tooltip":"highcharts-label"),y&&this.addClass("highcharts-"+y),this.text=x.text(void 0,0,0,g).attr({zIndex:1});let k;typeof c=="string"&&((k=/^url\((.*?)\)$/.test(c))||this.renderer.symbols[c])&&(this.symbolKey=c),this.bBox=R.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=x.styledMode||k,this.deferredAttr={},this.alignFactor=0}alignSetter(x){x={left:0,center:.5,right:1}[x],x!==this.alignFactor&&(this.alignFactor=x,this.bBox&&Q(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(x,b){this.anchorX=x,this.boxAttr(b,Math.round(x)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(x,b){this.anchorY=x,this.boxAttr(b,x-this.ySetting)}boxAttr(x,b){this.box?this.box.attr(x,b):this.deferredAttr[x]=b}css(x){if(x){const b={};x=Y(x),R.textProps.forEach(_=>{typeof x[_]<"u"&&(b[_]=x[_],delete x[_])}),this.text.css(b),"fontSize"in b||"fontWeight"in b?this.updateTextPadding():("width"in b||"textOverflow"in b)&&this.updateBoxSize()}return j.prototype.css.call(this,x)}destroy(){M(this.element,"mouseenter"),M(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),j.prototype.destroy.call(this)}fillSetter(x,b){x&&(this.needsBox=!0),this.fill=x,this.boxAttr(b,x)}getBBox(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();const x=this.padding,b=X(this.paddingLeft,x);return{width:this.width,height:this.height,x:this.bBox.x-b,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:X(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&W(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(x,b){Q(x)?x!==this[b]&&(this[b]=x,this.updateTextPadding()):this[b]=void 0}rSetter(x,b){this.boxAttr(b,x)}strokeSetter(x,b){this.stroke=x,this.boxAttr(b,x)}"stroke-widthSetter"(x,b){x&&(this.needsBox=!0),this["stroke-width"]=x,this.boxAttr(b,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 b={},_=this.padding,A=this.bBox=Q(this.widthSetting)&&Q(this.heightSetting)&&!this.textAlign||!W(x.textStr)?R.emptyBBox:x.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||A.height||0)+2*_;const c=this.renderer.fontMetrics(x);this.baselineOffset=_+Math.min((this.text.firstLineMetrics||c).b,A.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-c.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(),b.x=x,b.y=(this.baseline?-this.baselineOffset:0)+x,b.width=Math.round(this.width),b.height=Math.round(this.height),this.box.attr(q(b,this.deferredAttr)),this.deferredAttr={})}updateTextPadding(){const x=this.text;if(!x.textPath){this.updateBoxSize();const b=this.baseline?0:this.baselineOffset;let _=X(this.paddingLeft,this.padding);W(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(_+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(_!==x.x||b!==x.y)&&(x.attr("x",_),x.hasBoxWidthChanged&&(this.bBox=x.getBBox(!0)),typeof b<"u"&&x.attr("y",b)),x.x=_,x.y=b}}widthSetter(x){this.widthSetting=Q(x)?x:void 0}getPaddedWidth(){var x=this.padding;const b=X(this.paddingLeft,x);return x=X(this.paddingRight,x),(this.widthSetting||this.bBox.width||0)+b+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 R.emptyBBox={width:0,height:0,x:0,y:0},R.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow whiteSpace width".split(" "),R}),it(C,"Core/Renderer/SVG/Symbols.js",[C["Core/Utilities.js"]],function(j){function O(M,R,N,x,b){const _=[];if(b){const A=b.start||0,c=X(b.r,N);N=X(b.r,x||N),x=(b.end||0)-.001;const v=b.innerR,S=X(b.open,.001>Math.abs((b.end||0)-A-2*Math.PI)),g=Math.cos(A),L=Math.sin(A),y=Math.cos(x),k=Math.sin(x),o=X(b.longArc,.001>x-A-Math.PI?0:1);let l=["A",c,N,0,o,X(b.clockwise,1),M+c*y,R+N*k];l.params={start:A,end:x,cx:M,cy:R},_.push(["M",M+c*g,R+N*L],l),Q(v)&&(l=["A",v,v,0,o,Q(b.clockwise)?1-b.clockwise:0,M+v*g,R+v*L],l.params={start:x,end:A,cx:M,cy:R},_.push(S?["M",M+v*y,R+v*k]:["L",M+v*y,R+v*k],l)),S||_.push(["Z"])}return _}function W(M,R,N,x,b){return b&&b.r?q(M,R,N,x,b):[["M",M,R],["L",M+N,R],["L",M+N,R+x],["L",M,R+x],["Z"]]}function q(M,R,N,x,b){return b=(b==null?void 0:b.r)||0,[["M",M+b,R],["L",M+N-b,R],["A",b,b,0,0,1,M+N,R+b],["L",M+N,R+x-b],["A",b,b,0,0,1,M+N-b,R+x],["L",M+b,R+x],["A",b,b,0,0,1,M,R+x-b],["L",M,R+b],["A",b,b,0,0,1,M+b,R],["Z"]]}const{defined:Q,isNumber:Y,pick:X}=j;return{arc:O,callout:function(M,R,N,x,b){const _=Math.min(b&&b.r||0,N,x),A=_+6,c=b&&b.anchorX;b=b&&b.anchorY||0;const v=q(M,R,N,x,{r:_});return Y(c)&&(M+c>=N?b>R+A&&b<R+x-A?v.splice(3,1,["L",M+N,b-6],["L",M+N+6,b],["L",M+N,b+6],["L",M+N,R+x-_]):v.splice(3,1,["L",M+N,x/2],["L",c,b],["L",M+N,x/2],["L",M+N,R+x-_]):0>=M+c?b>R+A&&b<R+x-A?v.splice(7,1,["L",M,b+6],["L",M-6,b],["L",M,b-6],["L",M,R+_]):v.splice(7,1,["L",M,x/2],["L",c,b],["L",M,x/2],["L",M,R+_]):b&&b>x&&c>M+A&&c<M+N-A?v.splice(5,1,["L",c+6,R+x],["L",c,R+x+6],["L",c-6,R+x],["L",M+_,R+x]):b&&0>b&&c>M+A&&c<M+N-A&&v.splice(1,1,["L",c-6,R],["L",c,R-6],["L",c+6,R],["L",N-_,R])),v},circle:function(M,R,N,x){return O(M+N/2,R+x/2,N/2,x/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(M,R,N,x){return[["M",M+N/2,R],["L",M+N,R+x/2],["L",M+N/2,R+x],["L",M,R+x/2],["Z"]]},rect:W,roundedRect:q,square:W,triangle:function(M,R,N,x){return[["M",M+N/2,R],["L",M+N,R+x],["L",M,R+x],["Z"]]},"triangle-down":function(M,R,N,x){return[["M",M,R],["L",M+N,R],["L",M+N/2,R+x],["Z"]]}}}),it(C,"Core/Renderer/SVG/TextBuilder.js",[C["Core/Renderer/HTML/AST.js"],C["Core/Globals.js"],C["Core/Utilities.js"]],function(j,O,W){const{doc:q,SVG_NS:Q,win:Y}=O,{attr:X,extend:M,fireEvent:R,isString:N,objectEach:x,pick:b}=W;class _{constructor(c){const v=c.styles;this.renderer=c.renderer,this.svgElement=c,this.width=c.textWidth,this.textLineHeight=v&&v.lineHeight,this.textOutline=v&&v.textOutline,this.ellipsis=!(!v||v.textOverflow!=="ellipsis"),this.noWrap=!(!v||v.whiteSpace!=="nowrap")}buildSVG(){const c=this.svgElement,v=c.element;var S=c.renderer,g=b(c.textStr,"").toString();const L=g.indexOf("<")!==-1,y=v.childNodes;S=!c.added&&S.box;const k=/<br.*?>/g;var o=[g,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,c.getStyle("font-size"),this.width].join();if(o!==c.textCache){for(c.textCache=o,delete c.actualWidth,o=y.length;o--;)v.removeChild(y[o]);L||this.ellipsis||this.width||c.textPath||g.indexOf(" ")!==-1&&(!this.noWrap||k.test(g))?g!==""&&(S&&S.appendChild(v),g=new j(g),this.modifyTree(g.nodes),g.addToDOM(v),this.modifyDOM(),this.ellipsis&&(v.textContent||"").indexOf("…")!==-1&&c.attr("title",this.unescapeEntities(c.textStr||"",["&lt;","&gt;"])),S&&S.removeChild(v)):v.appendChild(q.createTextNode(this.unescapeEntities(g))),N(this.textOutline)&&c.applyTextOutline&&c.applyTextOutline(this.textOutline)}}modifyDOM(){const c=this.svgElement,v=X(c.element,"x");c.firstLineMetrics=void 0;let S;for(;(S=c.element.firstChild)&&/^[\s\u200B]*$/.test(S.textContent||" ");)c.element.removeChild(S);[].forEach.call(c.element.querySelectorAll("tspan.highcharts-br"),(k,o)=>{k.nextSibling&&k.previousSibling&&(o===0&&k.previousSibling.nodeType===1&&(c.firstLineMetrics=c.renderer.fontMetrics(k.previousSibling)),X(k,{dy:this.getLineHeight(k.nextSibling),x:v}))});const g=this.width||0;if(g){var L=(k,o)=>{var l=k.textContent||"";const u=l.replace(/([^\^])-/g,"$1- ").split(" ");var h=!this.noWrap&&(1<u.length||1<c.element.childNodes.length);const d=this.getLineHeight(o);let e=0,t=c.actualWidth;if(this.ellipsis)l&&this.truncate(k,l,void 0,0,Math.max(0,g-.8*d),(i,a)=>i.substring(0,a)+"…");else if(h){for(l=[],h=[];o.firstChild&&o.firstChild!==k;)h.push(o.firstChild),o.removeChild(o.firstChild);for(;u.length;)u.length&&!this.noWrap&&0<e&&(l.push(k.textContent||""),k.textContent=u.join(" ").replace(/- /g,"-")),this.truncate(k,void 0,u,e===0&&t||0,g,(i,a)=>u.slice(0,a).join(" ").replace(/- /g,"-")),t=c.actualWidth,e++;h.forEach(i=>{o.insertBefore(i,k)}),l.forEach(i=>{o.insertBefore(q.createTextNode(i),k),i=q.createElementNS(Q,"tspan"),i.textContent="​",X(i,{dy:d,x:v}),o.insertBefore(i,k)})}},y=k=>{[].slice.call(k.childNodes).forEach(o=>{o.nodeType===Y.Node.TEXT_NODE?L(o,k):(o.className.baseVal.indexOf("highcharts-br")!==-1&&(c.actualWidth=0),y(o))})};y(c.element)}}getLineHeight(c){return c=c.nodeType===Y.Node.TEXT_NODE?c.parentElement:c,this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(c||this.svgElement.element).h}modifyTree(c){const v=(S,g)=>{const{attributes:L={},children:y,style:k={},tagName:o}=S,l=this.renderer.styledMode;o==="b"||o==="strong"?l?L.class="highcharts-strong":k.fontWeight="bold":(o==="i"||o==="em")&&(l?L.class="highcharts-emphasized":k.fontStyle="italic"),k&&k.color&&(k.fill=k.color),o==="br"?(L.class="highcharts-br",S.textContent="​",(g=c[g+1])&&g.textContent&&(g.textContent=g.textContent.replace(/^ +/gm,""))):o==="a"&&y&&y.some(u=>u.tagName==="#text")&&(S.children=[{children:y,tagName:"tspan"}]),o!=="#text"&&o!=="a"&&(S.tagName="tspan"),M(S,{attributes:L,style:k}),y&&y.filter(u=>u.tagName!=="#text").forEach(v)};c.forEach(v),R(this.svgElement,"afterModifyTree",{nodes:c})}truncate(c,v,S,g,L,y){const k=this.svgElement,{rotation:o}=k,l=[];let u=S?1:0,h=(v||S||"").length,d=h,e,t;const i=function(a,p){if(a=p||a,(p=c.parentNode)&&typeof l[a]>"u"&&p.getSubStringLength)try{l[a]=g+p.getSubStringLength(0,S?a+1:a)}catch{}return l[a]};if(k.rotation=0,t=i(c.textContent.length),g+t>L){for(;u<=h;)d=Math.ceil((u+h)/2),S&&(e=y(S,d)),t=i(d,e&&e.length-1),u===h?u=h+1:t>L?h=d-1:u=d;h===0?c.textContent="":v&&h===v.length-1||(c.textContent=e||y(v||S,d))}S&&S.splice(0,d),k.actualWidth=t,k.rotation=o}unescapeEntities(c,v){return x(this.renderer.escapes,function(S,g){v&&v.indexOf(S)!==-1||(c=c.toString().replace(new RegExp(S,"g"),g))}),c}}return _}),it(C,"Core/Renderer/SVG/SVGRenderer.js",[C["Core/Renderer/HTML/AST.js"],C["Core/Color/Color.js"],C["Core/Globals.js"],C["Core/Renderer/RendererRegistry.js"],C["Core/Renderer/SVG/SVGElement.js"],C["Core/Renderer/SVG/SVGLabel.js"],C["Core/Renderer/SVG/Symbols.js"],C["Core/Renderer/SVG/TextBuilder.js"],C["Core/Utilities.js"]],function(j,O,W,q,Q,Y,X,M,R){const{charts:N,deg2rad:x,doc:b,isFirefox:_,isMS:A,isWebKit:c,noop:v,SVG_NS:S,symbolSizes:g,win:L}=W,{addEvent:y,attr:k,createElement:o,css:l,defined:u,destroyObjectProperties:h,extend:d,isArray:e,isNumber:t,isObject:i,isString:a,merge:p,pick:E,pInt:r,uniqueKey:w}=R;let $;class J{constructor(B,s,P,z,I,K,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(B,s,P,z,I,K,n)}init(B,s,P,z,I,K,n){const f=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),m=f.element;n||f.css(this.getStyle(z)),B.appendChild(m),k(B,"dir","ltr"),B.innerHTML.indexOf("xmlns")===-1&&k(m,"xmlns",this.SVG_NS),this.box=m,this.boxWrapper=f,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(b.createTextNode("Created with Highcharts 11.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=K,this.forExport=I,this.styledMode=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=f.getStyle("font-size"),this.setSize(s,P,!1);let H;_&&B.getBoundingClientRect&&(s=function(){l(B,{left:0,top:0}),H=B.getBoundingClientRect(),l(B,{left:Math.ceil(H.left)-H.left+"px",top:Math.ceil(H.top)-H.top+"px"})},s(),this.unSubPixelFix=y(L,"resize",s))}definition(B){return new j([B]).addToDOM(this.defs.element)}getReferenceURL(){if((_||c)&&b.getElementsByTagName("base").length){if(!u($)){var B=w();B=new j([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:B},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${B})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(b.body),l(B,{position:"fixed",top:0,left:0,zIndex:9e5});const s=b.elementFromPoint(6,6);$=(s&&s.id)==="hitme",b.body.removeChild(B)}if($)return L.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(B){return this.style=d({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},B)}setStyle(B){this.boxWrapper.css(this.getStyle(B))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){const B=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),h(this.gradients||{}),this.gradients=null,this.defs=B.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null}createElement(B){const s=new this.Element;return s.init(this,B),s}getRadialAttr(B,s){return{cx:B[0]-B[2]/2+(s.cx||0)*B[2],cy:B[1]-B[2]/2+(s.cy||0)*B[2],r:(s.r||0)*B[2]}}shadowDefinition(B){const s=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(B).map(z=>B[z])].join("-").replace(/[^a-z0-9\-]/g,""),P=p({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},B);return this.defs.element.querySelector(`#${s}`)||this.definition({tagName:"filter",attributes:{id:s},children:[{tagName:"feDropShadow",attributes:{dx:P.offsetX,dy:P.offsetY,"flood-color":P.color,"flood-opacity":Math.min(5*P.opacity,1),stdDeviation:P.width/2}}]}),s}buildText(B){new M(B).buildSVG()}getContrast(B){return B=O.parse(B).rgba.map(s=>(s/=255,.03928>=s?s/12.92:Math.pow((s+.055)/1.055,2.4))),B=.2126*B[0]+.7152*B[1]+.0722*B[2],1.05/(B+.05)>(B+.05)/.05?"#FFFFFF":"#000000"}button(B,s,P,z,I={},K,n,f,m,H){const F=this.label(B,s,P,m,void 0,void 0,H,void 0,"button"),G=this.styledMode;B=I.states||{};let ot=0;I=p(I),delete I.states;const nt=p({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},I.style);delete I.style;let lt=j.filterUserAttributes(I);F.attr(p({padding:8,r:2},lt));let ht,pt,D;return G||(lt=p({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},lt),K=p(lt,{fill:"#e6e6e6"},j.filterUserAttributes(K||B.hover||{})),ht=K.style,delete K.style,n=p(lt,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},j.filterUserAttributes(n||B.select||{})),pt=n.style,delete n.style,f=p(lt,{style:{color:"#cccccc"}},j.filterUserAttributes(f||B.disabled||{})),D=f.style,delete f.style),y(F.element,A?"mouseover":"mouseenter",function(){ot!==3&&F.setState(1)}),y(F.element,A?"mouseout":"mouseleave",function(){ot!==3&&F.setState(ot)}),F.setState=function(T){T!==1&&(F.state=ot=T),F.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][T||0]),G||(F.attr([lt,K,n,f][T||0]),T=[nt,ht,pt,D][T||0],i(T)&&F.css(T))},G||(F.attr(lt).css(d({cursor:"default"},nt)),H&&F.text.css({pointerEvents:"none"})),F.on("touchstart",T=>T.stopPropagation()).on("click",function(T){ot!==3&&z.call(F,T)})}crispLine(B,s,P="round"){const z=B[0],I=B[1];return u(z[1])&&z[1]===I[1]&&(z[1]=I[1]=Math[P](z[1])-s%2/2),u(z[2])&&z[2]===I[2]&&(z[2]=I[2]=Math[P](z[2])+s%2/2),B}path(B){const s=this.styledMode?{}:{fill:"none"};return e(B)?s.d=B:i(B)&&d(s,B),this.createElement("path").attr(s)}circle(B,s,P){return B=i(B)?B:typeof B>"u"?{}:{x:B,y:s,r:P},s=this.createElement("circle"),s.xSetter=s.ySetter=function(z,I,K){K.setAttribute("c"+I,z)},s.attr(B)}arc(B,s,P,z,I,K){return i(B)?(z=B,s=z.y,P=z.r,B=z.x):z={innerR:z,start:I,end:K},B=this.symbol("arc",B,s,P,P,z),B.r=P,B}rect(B,s,P,z,I,K){B=i(B)?B:typeof B>"u"?{}:{x:B,y:s,r:I,width:Math.max(P||0,0),height:Math.max(z||0,0)};const n=this.createElement("rect");return this.styledMode||(typeof K<"u"&&(B["stroke-width"]=K,d(B,n.crisp(B))),B.fill="none"),n.rSetter=function(f,m,H){n.r=f,k(H,{rx:f,ry:f})},n.rGetter=function(){return n.r||0},n.attr(B)}roundedRect(B){return this.symbol("roundedRect").attr(B)}setSize(B,s,P){this.width=B,this.height=s,this.boxWrapper.animate({width:B,height:s},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:E(P,!0)?void 0:0}),this.alignElements()}g(B){const s=this.createElement("g");return B?s.attr({class:"highcharts-"+B}):s}image(B,s,P,z,I,K){const n={preserveAspectRatio:"none"};t(s)&&(n.x=s),t(P)&&(n.y=P),t(z)&&(n.width=z),t(I)&&(n.height=I);const f=this.createElement("image").attr(n);return s=function(m){f.attr({href:B}),K.call(f,m)},K?(f.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),P=new L.Image,y(P,"load",s),P.src=B,P.complete&&s({})):f.attr({href:B}),f}symbol(B,s,P,z,I,K){const n=this,f=/^url\((.*?)\)$/,m=f.test(B),H=!m&&(this.symbols[B]?B:"circle"),F=H&&this.symbols[H];let G,ot,nt,lt;if(F)typeof s=="number"&&(ot=F.call(this.symbols,Math.round(s||0),Math.round(P||0),z||0,I||0,K)),G=this.path(ot),n.styledMode||G.attr("fill","none"),d(G,{symbolName:H||void 0,x:s,y:P,width:z,height:I}),K&&d(G,K);else if(m){nt=B.match(f)[1];const ht=G=this.image(nt);ht.imgwidth=E(K&&K.width,g[nt]&&g[nt].width),ht.imgheight=E(K&&K.height,g[nt]&&g[nt].height),lt=pt=>pt.attr({width:pt.width,height:pt.height}),["width","height"].forEach(function(pt){ht[pt+"Setter"]=function(D,T){this[T]=D;const{alignByTranslate:tt,element:V,width:st,height:dt,imgwidth:ct,imgheight:yt}=this;if(D=this["img"+T],u(D)){let vt=1;K&&K.backgroundSize==="within"&&st&&dt?(vt=Math.min(st/ct,dt/yt),k(V,{width:Math.round(ct*vt),height:Math.round(yt*vt)})):V&&V.setAttribute(T,D),tt||this.translate(((st||0)-ct*vt)/2,((dt||0)-yt*vt)/2)}}}),u(s)&&ht.attr({x:s,y:P}),ht.isImg=!0,u(ht.imgwidth)&&u(ht.imgheight)?lt(ht):(ht.attr({width:0,height:0}),o("img",{onload:function(){const pt=N[n.chartIndex];this.width===0&&(l(this,{position:"absolute",top:"-999em"}),b.body.appendChild(this)),g[nt]={width:this.width,height:this.height},ht.imgwidth=this.width,ht.imgheight=this.height,ht.element&&lt(ht),this.parentNode&&this.parentNode.removeChild(this),n.imgCount--,!n.imgCount&&pt&&!pt.hasLoaded&&pt.onload()},src:nt}),this.imgCount++)}return G}clipRect(B,s,P,z){const I=w()+"-",K=this.createElement("clipPath").attr({id:I}).add(this.defs);return B=this.rect(B,s,P,z,0).add(K),B.id=I,B.clipPath=K,B.count=0,B}text(B,s,P,z){const I={};return z&&(this.allowHTML||!this.forExport)?this.html(B,s,P):(I.x=Math.round(s||0),P&&(I.y=Math.round(P)),u(B)&&(I.text=B),B=this.createElement("text").attr(I),(!z||this.forExport&&!this.allowHTML)&&(B.xSetter=function(K,n,f){const m=f.getElementsByTagName("tspan"),H=f.getAttribute(n);for(let F=0,G;F<m.length;F++)G=m[F],G.getAttribute(n)===H&&G.setAttribute(n,K);f.setAttribute(n,K)}),B)}fontMetrics(B){B=r(Q.prototype.getStyle.call(B,"font-size")||0);const s=24>B?B+3:Math.round(1.2*B);return{h:s,b:Math.round(.8*s),f:B}}rotCorr(B,s,P){let z=B;return s&&P&&(z=Math.max(z*Math.cos(s*x),4)),{x:-B/3*Math.sin(s*x),y:z}}pathToSegments(B){const s=[],P=[],z={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let I=0;I<B.length;I++)a(P[0])&&t(B[I])&&P.length===z[P[0].toUpperCase()]&&B.splice(I,0,P[0].replace("M","L").replace("m","l")),typeof B[I]=="string"&&(P.length&&s.push(P.slice(0)),P.length=0),P.push(B[I]);return s.push(P.slice(0)),s}label(B,s,P,z,I,K,n,f,m){return new Y(this,B,s,P,z,I,K,n,f,m)}alignElements(){this.alignedObjects.forEach(B=>B.align())}}return d(J.prototype,{Element:Q,SVG_NS:S,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:X,draw:v}),q.registerRendererType("svg",J,!0),J}),it(C,"Core/Renderer/HTML/HTMLElement.js",[C["Core/Globals.js"],C["Core/Renderer/SVG/SVGElement.js"],C["Core/Utilities.js"]],function(j,O,W){const{isFirefox:q,isMS:Q,isWebKit:Y,win:X}=j,{css:M,defined:R,extend:N,pick:x,pInt:b}=W,_=[];class A extends O{static compose(v){if(W.pushUnique(_,v)){const S=A.prototype,g=v.prototype;g.getSpanCorrection=S.getSpanCorrection,g.htmlCss=S.htmlCss,g.htmlGetBBox=S.htmlGetBBox,g.htmlUpdateTransform=S.htmlUpdateTransform,g.setSpanRotation=S.setSpanRotation}return v}getSpanCorrection(v,S,g){this.xCorr=-v*g,this.yCorr=-S}htmlCss(v){const S=this.element.tagName==="SPAN"&&v&&"width"in v,g=x(S&&v.width,void 0);let L;return S&&(delete v.width,this.textWidth=g,L=!0),v&&v.textOverflow==="ellipsis"&&(v.whiteSpace="nowrap",v.overflow="hidden"),this.styles=N(this.styles,v),M(this.element,v),L&&this.htmlUpdateTransform(),this}htmlGetBBox(){const v=this.element;return{x:v.offsetLeft,y:v.offsetTop,width:v.offsetWidth,height:v.offsetHeight}}htmlUpdateTransform(){if(this.added){var v=this.renderer,S=this.element,g=this.x||0,L=this.y||0,y=this.textAlign||"left",k={left:0,center:.5,right:1}[y],o=this.styles,l=o&&o.whiteSpace;if(M(S,{marginLeft:this.translateX||0,marginTop:this.translateY||0}),S.tagName==="SPAN"){o=this.rotation;const h=this.textWidth&&b(this.textWidth),d=[o,y,S.innerHTML,this.textWidth,this.textAlign].join();let e=!1;if(h!==this.oldTextWidth){if(this.textPxLength)var u=this.textPxLength;else M(S,{width:"",whiteSpace:l||"nowrap"}),u=S.offsetWidth;(h>this.oldTextWidth||u>h)&&(/[ \-]/.test(S.textContent||S.innerText)||S.style.textOverflow==="ellipsis")&&(M(S,{width:u>h||o?h+"px":"auto",display:"block",whiteSpace:l||"normal"}),this.oldTextWidth=h,e=!0)}this.hasBoxWidthChanged=e,d!==this.cTT&&(v=v.fontMetrics(S).b,!R(o)||o===(this.oldRotation||0)&&y===this.oldAlign||this.setSpanRotation(o,k,v),this.getSpanCorrection(!R(o)&&this.textPxLength||S.offsetWidth,v,k,o,y)),M(S,{left:g+(this.xCorr||0)+"px",top:L+(this.yCorr||0)+"px"}),this.cTT=d,this.oldRotation=o,this.oldAlign=y}}else this.alignOnAdd=!0}setSpanRotation(v,S,g){const L={},y=Q&&!/Edge/.test(X.navigator.userAgent)?"-ms-transform":Y?"-webkit-transform":q?"MozTransform":X.opera?"-o-transform":void 0;y&&(L[y]=L.transform="rotate("+v+"deg)",L[y+(q?"Origin":"-origin")]=L.transformOrigin=100*S+"% "+g+"px",M(this.element,L))}}return A}),it(C,"Core/Renderer/HTML/HTMLRenderer.js",[C["Core/Renderer/HTML/AST.js"],C["Core/Renderer/SVG/SVGElement.js"],C["Core/Renderer/SVG/SVGRenderer.js"],C["Core/Utilities.js"]],function(j,O,W,q){const{attr:Q,createElement:Y,extend:X,pick:M}=q,R=[];class N extends W{static compose(b){return q.pushUnique(R,b)&&(b.prototype.html=N.prototype.html),b}html(b,_,A){const c=this.createElement("span"),v=c.element,S=c.renderer,g=function(L,y){["opacity","visibility"].forEach(function(k){L[k+"Setter"]=function(o,l,u){const h=L.div?L.div.style:y;O.prototype[k+"Setter"].call(this,o,l,u),h&&(h[l]=o)}}),L.addedSetters=!0};return c.textSetter=function(L){L!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,j.setElementHTML(this.element,M(L,"")),this.textStr=L,c.doTransform=!0)},g(c,c.element.style),c.xSetter=c.ySetter=c.alignSetter=c.rotationSetter=function(L,y){y==="align"?c.alignValue=c.textAlign=L:c[y]=L,c.doTransform=!0},c.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},c.attr({text:b,x:Math.round(_),y:Math.round(A)}).css({position:"absolute"}),S.styledMode||c.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),v.style.whiteSpace="nowrap",c.css=c.htmlCss,c.add=function(L){const y=S.box.parentNode,k=[];let o;if(this.parentGroup=L){if(o=L.div,!o){for(;L;)k.push(L),L=L.parentGroup;k.reverse().forEach(function(l){function u(t,i){l[i]=t,i==="translateX"?e.left=t+"px":e.top=t+"px",l.doTransform=!0}const h=Q(l.element,"class"),d=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||y);const e=o.style;X(l,{classSetter:function(t){return function(i){this.element.setAttribute("class",i),t.className=i}}(o),css:function(t){return c.css.call(l,t),["cursor","pointerEvents"].forEach(i=>{t[i]&&(e[i]=t[i])}),l},on:function(){return k[0].div&&c.on.apply({element:k[0].div,onEvents:l.onEvents},arguments),l},translateXSetter:u,translateYSetter:u}),l.addedSetters||g(l),l.css(d)})}}else o=y;return o.appendChild(v),c.added=!0,c.alignOnAdd&&c.htmlUpdateTransform(),c},c}}return N}),it(C,"Core/Axis/AxisDefaults.js",[],function(){var j;return function(O){O.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"},O.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:W}=this.axis.chart;return W(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},O.defaultLeftAxisOptions={title:{rotation:270}},O.defaultRightAxisOptions={title:{rotation:90}},O.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},O.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}}}(j||(j={})),j}),it(C,"Core/Foundation.js",[C["Core/Utilities.js"]],function(j){const{addEvent:O,isFunction:W,objectEach:q,removeEvent:Q}=j;var Y;return function(X){X.registerEventOptions=function(M,R){M.eventOptions=M.eventOptions||{},q(R.events,function(N,x){M.eventOptions[x]!==N&&(M.eventOptions[x]&&(Q(M,x,M.eventOptions[x]),delete M.eventOptions[x]),W(N)&&(M.eventOptions[x]=N,O(M,x,N,{order:0})))})}}(Y||(Y={})),Y}),it(C,"Core/Axis/Tick.js",[C["Core/Templating.js"],C["Core/Globals.js"],C["Core/Utilities.js"]],function(j,O,W){const{deg2rad:q}=O,{clamp:Q,correctFloat:Y,defined:X,destroyObjectProperties:M,extend:R,fireEvent:N,isNumber:x,merge:b,objectEach:_,pick:A}=W;class c{constructor(S,g,L,y,k){this.isNewLabel=this.isNew=!0,this.axis=S,this.pos=g,this.type=L||"",this.parameters=k||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,N(this,"init"),L||y||this.addLabel()}addLabel(){const S=this,g=S.axis;var L=g.options;const y=g.chart;var k=g.categories;const o=g.logarithmic,l=g.names,u=S.pos,h=A(S.options&&S.options.labels,L.labels);var d=g.tickPositions;const e=u===d[0],t=u===d[d.length-1],i=(!h.step||h.step===1)&&g.tickInterval===1;d=d.info;let a=S.label,p,E,r;k=this.parameters.category||(k?A(k[u],l[u],u):u),o&&x(k)&&(k=Y(o.lin2log(k))),g.dateTime&&(d?(E=y.time.resolveDTLFormat(L.dateTimeLabelFormats[!L.grid&&d.higherRanks[u]||d.unitName]),p=E.main):x(k)&&(p=g.dateTime.getXDateFormat(k,L.dateTimeLabelFormats||{}))),S.isFirst=e,S.isLast=t;const w={axis:g,chart:y,dateTimeLabelFormat:p,isFirst:e,isLast:t,pos:u,tick:S,tickPositionInfo:d,value:k};N(this,"labelFormat",w);const $=at=>h.formatter?h.formatter.call(at,at):h.format?(at.text=g.defaultLabelFormatter.call(at,at),j.format(h.format,at,y)):g.defaultLabelFormatter.call(at,at);L=$.call(w,w);const J=E&&E.list;S.shortenLabel=J?function(){for(r=0;r<J.length;r++)if(R(w,{dateTimeLabelFormat:J[r]}),a.attr({text:$.call(w,w)}),a.getBBox().width<g.getSlotWidth(S)-2*h.padding)return;a.attr({text:""})}:void 0,i&&g._addedPlotLB&&S.moveLabel(L,h),X(a)||S.movedLabel?a&&a.textStr!==L&&!i&&(!a.textWidth||h.style.width||a.styles.width||a.css({width:null}),a.attr({text:L}),a.textPxLength=a.getBBox().width):(S.label=a=S.createLabel({x:0,y:0},L,h),S.rotation=0)}createLabel(S,g,L){const y=this.axis,k=y.chart;return(S=X(g)&&L.enabled?k.renderer.text(g,S.x,S.y,L.useHTML).add(y.labelGroup):null)&&(k.styledMode||S.css(b(L.style)),S.textPxLength=S.getBBox().width),S}destroy(){M(this,this.axis)}getPosition(S,g,L,y){const k=this.axis,o=k.chart,l=y&&o.oldChartHeight||o.chartHeight;return S={x:S?Y(k.translate(g+L,void 0,void 0,y)+k.transB):k.left+k.offset+(k.opposite?(y&&o.oldChartWidth||o.chartWidth)-k.right-k.left:0),y:S?l-k.bottom+k.offset-(k.opposite?k.height:0):Y(l-k.translate(g+L,void 0,void 0,y)-k.transB)},S.y=Q(S.y,-1e5,1e5),N(this,"afterGetPosition",{pos:S}),S}getLabelPosition(S,g,L,y,k,o,l,u){const h=this.axis,d=h.transA,e=h.isLinked&&h.linkedParent?h.linkedParent.reversed:h.reversed,t=h.staggerLines,i=h.tickRotCorr||{x:0,y:0},a=y||h.reserveSpaceDefault?0:-h.labelOffset*(h.labelAlign==="center"?.5:1),p=k.distance,E={};return L=h.side===0?L.rotation?-p:-L.getBBox().height:h.side===2?i.y+p:Math.cos(L.rotation*q)*(i.y-L.getBBox(!1,0).height/2),X(k.y)&&(L=h.side===0&&h.horiz?k.y+L:k.y),S=S+A(k.x,[0,1,0,-1][h.side]*p)+a+i.x-(o&&y?o*d*(e?-1:1):0),g=g+L-(o&&!y?o*d*(e?1:-1):0),t&&(y=l/(u||1)%t,h.opposite&&(y=t-y-1),g+=h.labelOffset/t*y),E.x=S,E.y=Math.round(g),N(this,"afterGetLabelPosition",{pos:E,tickmarkOffset:o,index:l}),E}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(S,g,L,y,k,o){return o.crispLine([["M",S,g],["L",S+(k?0:-L),g+(k?L:0)]],y)}handleOverflow(S){const g=this.axis,L=g.options.labels,y=S.x;var k=g.chart.chartWidth,o=g.chart.spacing;const l=A(g.labelLeft,Math.min(g.pos,o[3]));o=A(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,k-o[1]));const u=this.label,h=this.rotation,d={left:0,center:.5,right:1}[g.labelAlign||u.attr("align")],e=u.getBBox().width,t=g.getSlotWidth(this),i={};let a=t,p=1,E;h||L.overflow!=="justify"?0>h&&y-d*e<l?E=Math.round(y/Math.cos(h*q)-l):0<h&&y+d*e>o&&(E=Math.round((k-y)/Math.cos(h*q))):(k=y+(1-d)*e,y-d*e<l?a=S.x+a*(1-d)-l:k>o&&(a=o-S.x+a*d,p=-1),a=Math.min(t,a),a<t&&g.labelAlign==="center"&&(S.x+=p*(t-a-d*(t-Math.min(e,a)))),(e>a||g.autoRotation&&(u.styles||{}).width)&&(E=a)),E&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(E)+"px",(L.style||{}).textOverflow||(i.textOverflow="ellipsis"),u.css(i)))}moveLabel(S,g){const L=this;var y=L.label;const k=L.axis;let o=!1;y&&y.textStr===S?(L.movedLabel=y,o=!0,delete L.label):_(k.ticks,function(l){o||l.isNew||l===L||!l.label||l.label.textStr!==S||(L.movedLabel=l.label,o=!0,l.labelPos=L.movedLabel.xy,delete l.label)}),o||!L.labelPos&&!y||(y=L.labelPos||y.xy,L.movedLabel=L.createLabel(y,S,g),L.movedLabel&&L.movedLabel.attr({opacity:0}))}render(S,g,L){var y=this.axis,k=y.horiz,o=this.pos,l=A(this.tickmarkOffset,y.tickmarkOffset);o=this.getPosition(k,o,l,g),l=o.x;const u=o.y;y=k&&l===y.pos+y.len||!k&&u===y.pos?-1:1,k=A(L,this.label&&this.label.newOpacity,1),L=A(L,1),this.isActive=!0,this.renderGridLine(g,L,y),this.renderMark(o,L,y),this.renderLabel(o,g,k,S),this.isNew=!1,N(this,"afterRender")}renderGridLine(S,g,L){const y=this.axis,k=y.options,o={},l=this.pos,u=this.type,h=A(this.tickmarkOffset,y.tickmarkOffset),d=y.chart.renderer;let e=this.gridLine,t=k.gridLineWidth,i=k.gridLineColor,a=k.gridLineDashStyle;this.type==="minor"&&(t=k.minorGridLineWidth,i=k.minorGridLineColor,a=k.minorGridLineDashStyle),e||(y.chart.styledMode||(o.stroke=i,o["stroke-width"]=t||0,o.dashstyle=a),u||(o.zIndex=1),S&&(g=0),this.gridLine=e=d.path().attr(o).addClass("highcharts-"+(u?u+"-":"")+"grid-line").add(y.gridGroup)),e&&(L=y.getPlotLinePath({value:l+h,lineWidth:e.strokeWidth()*L,force:"pass",old:S,acrossPanes:!1}))&&e[S||this.isNew?"attr":"animate"]({d:L,opacity:g})}renderMark(S,g,L){const y=this.axis;var k=y.options;const o=y.chart.renderer,l=this.type,u=y.tickSize(l?l+"Tick":"tick"),h=S.x;S=S.y;const d=A(k[l!=="minor"?"tickWidth":"minorTickWidth"],!l&&y.isXAxis?1:0);k=k[l!=="minor"?"tickColor":"minorTickColor"];let e=this.mark;const t=!e;u&&(y.opposite&&(u[0]=-u[0]),e||(this.mark=e=o.path().addClass("highcharts-"+(l?l+"-":"")+"tick").add(y.axisGroup),y.chart.styledMode||e.attr({stroke:k,"stroke-width":d})),e[t?"attr":"animate"]({d:this.getMarkPath(h,S,u[0],e.strokeWidth()*L,y.horiz,o),opacity:g}))}renderLabel(S,g,L,y){var k=this.axis;const o=k.horiz,l=k.options,u=this.label,h=l.labels,d=h.step;k=A(this.tickmarkOffset,k.tickmarkOffset);const e=S.x;S=S.y;let t=!0;u&&x(e)&&(u.xy=S=this.getLabelPosition(e,S,u,o,h,k,y,d),this.isFirst&&!this.isLast&&!l.showFirstLabel||this.isLast&&!this.isFirst&&!l.showLastLabel?t=!1:!o||h.step||h.rotation||g||L===0||this.handleOverflow(S),d&&y%d&&(t=!1),t&&x(S.y)?(S.opacity=L,u[this.isNewLabel?"attr":"animate"](S).show(!0),this.isNewLabel=!1):(u.hide(),this.isNewLabel=!0))}replaceMovedLabel(){const S=this.label,g=this.axis;S&&!this.isNew&&(S.animate({opacity:0},void 0,S.destroy),delete this.label),g.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}return c}),it(C,"Core/Axis/Axis.js",[C["Core/Animation/AnimationUtilities.js"],C["Core/Axis/AxisDefaults.js"],C["Core/Color/Color.js"],C["Core/Defaults.js"],C["Core/Foundation.js"],C["Core/Globals.js"],C["Core/Axis/Tick.js"],C["Core/Utilities.js"]],function(j,O,W,q,Q,Y,X,M){const{animObject:R}=j,{defaultOptions:N}=q,{registerEventOptions:x}=Q,{deg2rad:b}=Y,{arrayMax:_,arrayMin:A,clamp:c,correctFloat:v,defined:S,destroyObjectProperties:g,erase:L,error:y,extend:k,fireEvent:o,getClosestDistance:l,insertItem:u,isArray:h,isNumber:d,isString:e,merge:t,normalizeTickInterval:i,objectEach:a,pick:p,relativeLength:E,removeEvent:r,splat:w,syncTimeout:$}=M,J=(B,s)=>i(s,void 0,void 0,p(B.options.allowDecimals,.5>s||B.tickAmount!==void 0),!!B.tickAmount);class at{constructor(s,P,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,P,z)}init(s,P,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:P}),this.opposite=p(P.opposite,this.opposite),this.side=p(P.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(P),z=this.options;const K=z.labels,n=z.type;this.userOptions=P,this.minPixelPadding=0,this.reversed=p(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=S(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,P=p(z.crosshair,w(s.options.tooltip.crosshairs)[I?0:1]),this.crosshair=P===!0?{}:P,s.axes.indexOf(this)===-1&&(I?s.axes.splice(s.xAxis.length,0,this):s.axes.push(this),u(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=d(K.rotation)?K.rotation:void 0,x(this,z),o(this,"afterInit")}setOptions(s){this.options=t(O.defaultXAxisOptions,this.coll==="yAxis"&&O.defaultYAxisOptions,[O.defaultTopAxisOptions,O.defaultRightAxisOptions,O.defaultBottomAxisOptions,O.defaultLeftAxisOptions][this.side],t(N[this.coll],s)),o(this,"afterSetOptions",{userOptions:s})}defaultLabelFormatter(s){var P=this.axis;({numberFormatter:s}=this.chart);const z=d(this.value)?this.value:NaN,I=P.chart.time,K=this.dateTimeLabelFormat;var n=N.lang;const f=n.numericSymbols;n=n.numericSymbolMagnitude||1e3;const m=P.logarithmic?Math.abs(z):P.tickInterval;let H=f&&f.length,F;if(P.categories)F=`${this.value}`;else if(K)F=I.dateFormat(K,z);else if(H&&1e3<=m)for(;H--&&typeof F>"u";)P=Math.pow(n,H+1),m>=P&&10*z%P===0&&f[H]!==null&&z!==0&&(F=s(z/P,-1)+f[H]);return typeof F>"u"&&(F=1e4<=Math.abs(z)?s(z,-1):s(z,-1,void 0,"")),F}getSeriesExtremes(){const s=this,P=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||!P.options.chart.ignoreHiddenSeries){var K=I.options;let n=K.threshold,f,m;s.hasVisibleSeries=!0,s.positiveValuesOnly&&0>=n&&(n=null),s.isXAxis?(K=I.xData)&&K.length&&(K=s.logarithmic?K.filter(H=>0<H):K,z=I.getXExtremes(K),f=z.min,m=z.max,d(f)||f instanceof Date||(K=K.filter(d),z=I.getXExtremes(K),f=z.min,m=z.max),K.length&&(s.dataMin=Math.min(p(s.dataMin,f),f),s.dataMax=Math.max(p(s.dataMax,m),m))):(I=I.applyExtremes(),d(I.dataMin)&&(f=I.dataMin,s.dataMin=Math.min(p(s.dataMin,f),f)),d(I.dataMax)&&(m=I.dataMax,s.dataMax=Math.max(p(s.dataMax,m),m)),S(n)&&(s.threshold=n),(!K.softThreshold||s.positiveValuesOnly)&&(s.softThreshold=!1))}})}),o(this,"afterGetSeriesExtremes")}translate(s,P,z,I,K,n){const f=this.linkedParent||this,m=I&&f.old?f.old.min:f.min;if(!d(m))return NaN;const H=f.minPixelPadding;K=(f.isOrdinal||f.brokenAxis&&f.brokenAxis.hasBreaks||f.logarithmic&&K)&&f.lin2val;let F=1,G=0;return I=I&&f.old?f.old.transA:f.transA,I||(I=f.transA),z&&(F*=-1,G=f.len),f.reversed&&(F*=-1,G-=F*(f.sector||f.len)),P?(n=(s*F+G-H)/I+m,K&&(n=f.lin2val(n))):(K&&(s=f.val2lin(s)),s=F*(s-m)*I,n=(f.isRadial?s:v(s))+G+F*H+(d(n)?I*n:0)),n}toPixels(s,P){return this.translate(s,!1,!this.horiz,void 0,!0)+(P?0:this.pos)}toValue(s,P){return this.translate(s-(P?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(s){function P(V,st,dt){return lt!=="pass"&&(V<st||V>dt)&&(lt?V=c(V,st,dt):tt=!0),V}const z=this,I=z.chart,K=z.left,n=z.top,f=s.old,m=s.value,H=s.lineWidth,F=f&&I.oldChartHeight||I.chartHeight,G=f&&I.oldChartWidth||I.chartWidth,ot=z.transB;let nt=s.translatedValue,lt=s.force,ht,pt,D,T,tt;return s={value:m,lineWidth:H,old:f,force:lt,acrossPanes:s.acrossPanes,translatedValue:nt},o(this,"getPlotLinePath",s,function(V){nt=p(nt,z.translate(m,void 0,void 0,f)),nt=c(nt,-1e5,1e5),ht=D=Math.round(nt+ot),pt=T=Math.round(F-nt-ot),d(nt)?z.horiz?(pt=n,T=F-z.bottom,ht=D=P(ht,K,K+z.width)):(ht=K,D=G-z.right,pt=T=P(pt,n,n+z.height)):(tt=!0,lt=!1),V.path=tt&&!lt?null:I.renderer.crispLine([["M",ht,pt],["L",D,T]],H||1)}),s.path}getLinearTickPositions(s,P,z){const I=v(Math.floor(P/s)*s);z=v(Math.ceil(z/s)*s);const K=[];let n,f;if(v(I+s)===I&&(f=20),this.single)return[P];for(P=I;P<=z&&(K.push(P),P=v(P+s,f),P!==n);)n=P;return K}getMinorTickInterval(){const s=this.options;return s.minorTicks===!0?p(s.minorTickInterval,"auto"):s.minorTicks===!1?null:s.minorTickInterval}getMinorTickPositions(){var s=this.options;const P=this.tickPositions,z=this.minorTickInterval;var I=this.pointRangePadding||0;const K=this.min-I;I=this.max+I;const n=I-K;let f=[];if(n&&n/z<this.len/3){const m=this.logarithmic;if(m)this.paddedTicks.forEach(function(H,F,G){F&&f.push.apply(f,m.getLogTickPositions(z,G[F-1],G[F],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")f=f.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(z),K,I,s.startOfWeek));else for(s=K+(P[0]-K)%z;s<=I&&s!==f[0];s+=z)f.push(s)}return f.length!==0&&this.trimTicks(f),f}adjustForMinRange(){const s=this.options,P=this.logarithmic;let z=this.min;var I=this.max;let K,n;if(this.isXAxis&&typeof this.minRange>"u"&&!P)if(S(s.min)||S(s.max)||S(s.floor)||S(s.ceiling))this.minRange=null;else{var f=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*f,this.dataMax-this.dataMin)}I-z<this.minRange&&(f=this.dataMax-this.dataMin>=this.minRange,n=this.minRange,I=(n-I+z)/2,K=[z-I,p(s.min,z-I)],f&&(K[2]=P?P.log2lin(this.dataMin):this.dataMin),z=_(K),I=[z+n,p(s.max,z+n)],f&&(I[2]=P?P.log2lin(this.dataMax):this.dataMax),I=A(I),I-z<n&&(K[0]=I-n,K[1]=p(s.min,I-n),z=_(K))),this.min=z,this.max=I}getClosest(){let s,P;if(this.categories)P=1;else{const z=[];this.series.forEach(function(I){var K;const n=I.closestPointRange,f=I.visible||!I.chart.options.chart.ignoreHiddenSeries;((K=I.xData)===null||K===void 0?void 0:K.length)===1?z.push(I.xData[0]):!I.noSharedTooltip&&S(n)&&f&&(P=S(P)?Math.min(P,n):n)}),z.length&&(z.sort((I,K)=>I-K),s=l([z]))}return s&&P?Math.min(s,P):s||P}nameToX(s){const P=h(this.options.categories),z=P?this.categories:this.names;let I=s.options.x,K;return s.series.requireSorting=!1,S(I)||(I=this.options.uniqueNames&&z?P?z.indexOf(s.name):p(z.keys[s.name],-1):s.series.autoIncrement()),I===-1?!P&&z&&(K=z.length):K=I,typeof K<"u"?(this.names[K]=s.name,this.names.keys[s.name]=K):s.x&&(K=s.x),K}updateNames(){const s=this,P=this.names;0<P.length&&(Object.keys(P.keys).forEach(function(z){delete P.keys[z]}),P.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,K){let n;I&&I.options&&typeof I.name<"u"&&(n=s.nameToX(I),typeof n<"u"&&n!==I.x&&(I.x=n,z.xData[K]=n))})}))}setAxisTranslation(){const s=this,P=s.max-s.min;var z=s.linkedParent;const I=!!s.categories,K=s.isXAxis;let n=s.axisPointRange||0,f,m=0,H=0,F=s.transA;(K||I||n)&&(f=s.getClosest(),z?(m=z.minPointOffset,H=z.pointRangePadding):s.series.forEach(function(G){const ot=I?1:K?p(G.options.pointRange,f,0):s.axisPointRange||0,nt=G.options.pointPlacement;n=Math.max(n,ot),(!s.single||I)&&(G=G.is("xrange")?!K:K,m=Math.max(m,G&&e(nt)?0:ot/2),H=Math.max(H,G&&nt==="on"?0:ot))}),z=s.ordinal&&s.ordinal.slope&&f?s.ordinal.slope/f:1,s.minPointOffset=m*=z,s.pointRangePadding=H*=z,s.pointRange=Math.min(n,s.single&&I?1:P),K&&f&&(s.closestPointRange=f)),s.translationSlope=s.transA=F=s.staticScale||s.len/(P+H||1),s.transB=s.horiz?s.left:s.bottom,s.minPixelPadding=F*m,o(this,"afterSetAxisTranslation")}minFromRange(){return this.max-this.range}setTickInterval(s){var P=this.chart;const z=this.logarithmic,I=this.options,K=this.isXAxis,n=this.isLinked,f=I.tickPixelInterval,m=this.categories,H=this.softThreshold;let F=I.maxPadding,G=I.minPadding,ot=d(I.tickInterval)&&0<=I.tickInterval?I.tickInterval:void 0,nt=d(this.threshold)?this.threshold:null,lt,ht,pt;if(this.dateTime||m||n||this.getTickAmount(),ht=p(this.userMin,I.min),pt=p(this.userMax,I.max),n){this.linkedParent=P[this.coll][I.linkedTo];var D=this.linkedParent.getExtremes();this.min=p(D.min,D.dataMin),this.max=p(D.max,D.dataMax),I.type!==this.linkedParent.options.type&&y(11,1,P)}else H&&S(nt)&&(this.dataMin>=nt?(D=nt,G=0):this.dataMax<=nt&&(lt=nt,F=0)),this.min=p(ht,D,this.dataMin),this.max=p(pt,lt,this.dataMax);if(z&&(this.positiveValuesOnly&&!s&&0>=Math.min(this.min,p(this.dataMin,this.min))&&y(10,1,P),this.min=v(z.log2lin(this.min),16),this.max=v(z.log2lin(this.max),16)),this.range&&S(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(),!d(this.userMin)&&d(I.softMin)&&I.softMin<this.min&&(this.min=ht=I.softMin),!d(this.userMax)&&d(I.softMax)&&I.softMax>this.max&&(this.max=pt=I.softMax),!(m||this.axisPointRange||this.stacking&&this.stacking.usePercentage||n)&&S(this.min)&&S(this.max)&&(P=this.max-this.min)&&(!S(ht)&&G&&(this.min-=P*G),!S(pt)&&F&&(this.max+=P*F)),!d(this.userMin)&&d(I.floor)&&(this.min=Math.max(this.min,I.floor)),!d(this.userMax)&&d(I.ceiling)&&(this.max=Math.min(this.max,I.ceiling)),H&&S(this.dataMin)&&(nt=nt||0,!S(ht)&&this.min<nt&&this.dataMin>=nt?this.min=this.options.minRange?Math.min(nt,this.max-this.minRange):nt:!S(pt)&&this.max>nt&&this.dataMax<=nt&&(this.max=this.options.minRange?Math.max(nt,this.min+this.minRange):nt)),d(this.min)&&d(this.max)&&!this.chart.polar&&this.min>this.max&&(S(this.options.min)?this.max=this.min:S(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&&!ot&&f===this.linkedParent.options.tickPixelInterval?ot=this.linkedParent.tickInterval:p(ot,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,m?1:(this.max-this.min)*f/Math.max(this.len,f)),K&&!s){const T=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(tt){tt.forceCrop=tt.forceCropping&&tt.forceCropping(),tt.processData(T)}),o(this,"postProcessData",{hasExtremesChanged:T})}this.setAxisTranslation(),o(this,"initialAxisTranslation"),this.pointRange&&!ot&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),s=p(I.minTickInterval,this.dateTime&&!this.series.some(T=>T.noSharedTooltip)?this.closestPointRange:0),!ot&&this.tickInterval<s&&(this.tickInterval=s),this.dateTime||this.logarithmic||ot||(this.tickInterval=J(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var s=this.options;const P=s.tickPositions,z=s.tickPositioner;var I=this.getMinorTickInterval(),K=this.hasVerticalPanning(),n=this.coll==="colorAxis";const f=(n||!K)&&s.startOnTick;K=(n||!K)&&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&&S(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||s.allowDecimals!==!1),P)n=P.slice();else if(d(this.min)&&d(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=J(this,I*=1.1);else n=[this.min,this.max],y(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,f,K),!this.isLinked&&d(this.min)&&d(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),P||m||this.adjustTickAmount()),o(this,"afterSetTickPositions")}trimTicks(s,P,z){const I=s[0],K=s[s.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(o(this,"trimTicks"),!this.isLinked){if(P&&I!==-1/0)this.min=I;else for(;this.min-n>s[0];)s.shift();if(z)this.max=K;else for(;this.max+n<s[s.length-1];)s.pop();s.length===0&&S(I)&&!this.options.tickPositions&&s.push((K+I)/2)}}alignToOthers(){const s=this,P=[this],z=s.options,I=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,K=[];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 f=H=>{const{horiz:F,options:G}=H;return[F?G.left:G.top,G.width,G.height,G.pane].join()},m=f(this);this.chart[this.coll].forEach(function(H){const{series:F}=H;F.length&&F.some(G=>G.visible)&&H!==s&&f(H)===m&&(n=!0,P.push(H))})}if(n&&I){P.forEach(m=>{m=m.getThresholdAlignment(s),d(m)&&K.push(m)});const f=1<K.length?K.reduce((m,H)=>m+H,0)/K.length:void 0;P.forEach(m=>{m.thresholdAlignment=f})}return n}getThresholdAlignment(s){if((!d(this.dataMin)||this!==s&&this.series.some(P=>P.isDirty||P.isDirtyData))&&this.getSeriesExtremes(),d(this.threshold))return s=c((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,P=s.tickPixelInterval;let z=s.tickAmount;!S(s.tickInterval)&&!z&&this.len<P&&!this.isRadial&&!this.logarithmic&&s.startOnTick&&s.endOnTick&&(z=2),!z&&this.alignToOthers()&&(z=Math.ceil(this.len/P)+1),4>z&&(this.finalTickAmt=z,z=5),this.tickAmount=z}adjustTickAmount(){const s=this,{finalTickAmt:P,max:z,min:I,options:K,tickPositions:n,tickAmount:f,thresholdAlignment:m}=s,H=n&&n.length;var F=p(s.threshold,s.softThreshold?0:null),G=s.tickInterval;let ot;if(d(m)&&(ot=.5>m?Math.ceil(m*(f-1)):Math.floor(m*(f-1)),K.reversed&&(ot=f-1-ot)),s.hasData()&&d(I)&&d(z)){const nt=()=>{s.transA*=(H-1)/(f-1),s.min=K.startOnTick?n[0]:Math.min(I,n[0]),s.max=K.endOnTick?n[n.length-1]:Math.max(z,n[n.length-1])};if(d(ot)&&d(s.threshold)){for(;n[ot]!==F||n.length!==f||n[0]>I||n[n.length-1]<z;){for(n.length=0,n.push(s.threshold);n.length<f;)n[ot]===void 0||n[ot]>s.threshold?n.unshift(v(n[0]-G)):n.push(v(n[n.length-1]+G));if(G>8*s.tickInterval)break;G*=2}nt()}else if(H<f){for(;n.length<f;)n.length%2||I===F?n.push(v(n[n.length-1]+G)):n.unshift(v(n[0]-G));nt()}if(S(P)){for(G=F=n.length;G--;)(P===3&&G%2===1||2>=P&&0<G&&G<F-1)&&n.splice(G,1);s.finalTickAmt=void 0}}}setScale(){let s=!1,P=!1;this.series.forEach(function(I){s=s||I.isDirtyData||I.isDirty,P=P||I.xAxis&&I.xAxis.isDirty||!1}),this.setAxisSize();const z=this.len!==(this.old&&this.old.len);z||s||P||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,P,z,I,K){const n=this,f=n.chart;z=p(z,!0),n.series.forEach(function(m){delete m.kdTree}),K=k(K,{min:s,max:P}),o(n,"setExtremes",K,function(){n.userMin=s,n.userMax=P,n.eventArgs=K,z&&f.redraw(I)})}zoom(s,P){const z=this,I=this.dataMin,K=this.dataMax,n=this.options,f=Math.min(I,p(n.min,I)),m=Math.max(K,p(n.max,K));return s={newMin:s,newMax:P},o(this,"zoom",s,function(H){let F=H.newMin,G=H.newMax;(F!==z.min||G!==z.max)&&(z.allowZoomOutside||(S(I)&&(F<f&&(F=f),F>m&&(F=m)),S(K)&&(G<f&&(G=f),G>m&&(G=m))),z.displayBtn=typeof F<"u"||typeof G<"u",z.setExtremes(F,G,!1,void 0,{trigger:"zoom"})),H.zoomed=!0}),s.zoomed}setAxisSize(){const s=this.chart;var P=this.options;const z=P.offsets||[0,0,0,0],I=this.horiz,K=this.width=Math.round(E(p(P.width,s.plotWidth-z[3]+z[1]),s.plotWidth)),n=this.height=Math.round(E(p(P.height,s.plotHeight-z[0]+z[2]),s.plotHeight)),f=this.top=Math.round(E(p(P.top,s.plotTop+z[0]),s.plotHeight,s.plotTop));P=this.left=Math.round(E(p(P.left,s.plotLeft+z[3]),s.plotWidth,s.plotLeft)),this.bottom=s.chartHeight-n-f,this.right=s.chartWidth-K-P,this.len=Math.max(I?K:n,0),this.pos=I?P:f}getExtremes(){const s=this.logarithmic;return{min:s?v(s.lin2log(this.min)):this.min,max:s?v(s.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(s){var P=this.logarithmic;const z=P?P.lin2log(this.min):this.min;return P=P?P.lin2log(this.max):this.max,s===null||s===-1/0?s=z:s===1/0?s=P:z>s?s=z:P<s&&(s=P),this.translate(s,0,1,0,1)}autoLabelAlign(s){const P=(p(s,0)-90*this.side+720)%360;return s={align:"center"},o(this,"autoLabelAlign",s,function(z){15<P&&165>P?z.align="right":195<P&&345>P&&(z.align="left")}),s.align}tickSize(s){const P=this.options,z=p(P[s==="tick"?"tickWidth":"minorTickWidth"],s==="tick"&&this.isXAxis&&!this.categories?1:0);let I=P[s==="tick"?"tickLength":"minorTickLength"],K;return z&&I&&(P[s+"Position"]==="inside"&&(I=-I),K=[I,z]),s={tickSize:K},o(this,"afterTickSize",s),s.tickSize}labelMetrics(){const s=this.chart.renderer;var P=this.ticks;return P=P[Object.keys(P)[0]]||{},this.chart.renderer.fontMetrics(P.label||P.movedLabel||s.box)}unsquish(){const s=this.options.labels;var P=this.horiz;const z=this.tickInterval,I=this.len/(((this.categories?1:0)+this.max-this.min)/z),K=s.rotation,n=.75*this.labelMetrics().h,f=Math.max(this.max-this.min,0),m=function(nt){let lt=nt/(I||1);return lt=1<lt?Math.ceil(lt):1,lt*z>f&&nt!==1/0&&I!==1/0&&f&&(lt=Math.ceil(f/z)),v(lt*z)};let H=z,F,G=Number.MAX_VALUE,ot;if(P){if(s.staggerLines||(d(K)?ot=[K]:I<s.autoRotationLimit&&(ot=s.autoRotation)),ot){let nt;for(const lt of ot)(lt===K||lt&&-90<=lt&&90>=lt)&&(P=m(Math.abs(n/Math.sin(b*lt))),nt=P+Math.abs(lt/360),nt<G&&(G=nt,F=lt,H=P))}}else H=m(n);return this.autoRotation=ot,this.labelRotation=p(F,d(K)?K:0),s.step?z:H}getSlotWidth(s){const P=this.chart,z=this.horiz,I=this.options.labels,K=Math.max(this.tickPositions.length-(this.categories?0:1),1),n=P.margin[3];if(s&&d(s.slotWidth))return s.slotWidth;if(z&&2>I.step)return I.rotation?0:(this.staggerLines||1)*this.len/K;if(!z){if(s=I.style.width,s!==void 0)return parseInt(String(s),10);if(n)return n-P.spacing[3]}return .33*P.chartWidth}renderUnsquish(){const s=this.chart,P=s.renderer,z=this.tickPositions,I=this.ticks,K=this.options.labels,n=K.style,f=this.horiz,m=this.getSlotWidth();var H=Math.max(1,Math.round(m-2*K.padding));const F={},G=this.labelMetrics(),ot=n.textOverflow;let nt,lt,ht=0;if(e(K.rotation)||(F.rotation=K.rotation||0),z.forEach(function(D){D=I[D],D.movedLabel&&D.replaceMovedLabel(),D&&D.label&&D.label.textPxLength>ht&&(ht=D.label.textPxLength)}),this.maxLabelLength=ht,this.autoRotation)ht>H&&ht>G.h?F.rotation=this.labelRotation:this.labelRotation=0;else if(m&&(nt=H,!ot))for(lt="clip",H=z.length;!f&&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-(G.h-G.f)&&(pt.specificTextOverflow="ellipsis"))}F.rotation&&(nt=ht>.5*s.chartHeight?.33*s.chartHeight:ht,ot||(lt="ellipsis")),(this.labelAlign=K.align||this.autoLabelAlign(this.labelRotation))&&(F.align=this.labelAlign),z.forEach(function(D){const T=(D=I[D])&&D.label,tt=n.width,V={};T&&(T.attr(F),D.shortenLabel?D.shortenLabel():nt&&!tt&&n.whiteSpace!=="nowrap"&&(nt<T.textPxLength||T.element.tagName==="SPAN")?(V.width=nt+"px",ot||(V.textOverflow=T.specificTextOverflow||lt),T.css(V)):T.styles&&T.styles.width&&!V.width&&!tt&&T.css({width:null}),delete T.specificTextOverflow,D.rotation=F.rotation)},this),this.tickRotCorr=P.rotCorr(G.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(s){return s.hasData()})||this.options.showEmpty&&S(this.min)&&S(this.max)}addTitle(s){const P=this.chart.renderer,z=this.horiz,I=this.opposite,K=this.options.title,n=this.chart.styledMode;let f;this.axisTitle||((f=K.textAlign)||(f=(z?{low:"left",middle:"center",high:"right"}:{low:I?"right":"left",middle:"center",high:I?"left":"right"})[K.align]),this.axisTitle=P.text(K.text||"",0,0,K.useHTML).attr({zIndex:7,rotation:K.rotation,align:f}).addClass("highcharts-axis-title"),n||this.axisTitle.css(t(K.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),n||K.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[s?"show":"hide"](s)}generateTick(s){const P=this.ticks;P[s]?P[s].addLabel():P[s]=new X(this,s)}getOffset(){const s=this,{chart:P,horiz:z,options:I,side:K,ticks:n,tickPositions:f,coll:m,axisParent:H}=s,F=P.renderer,G=P.inverted&&!s.isZAxis?[1,0,3,2][K]:K;var ot=s.hasData();const nt=I.title;var lt=I.labels;const ht=d(I.crossing);var pt=P.axisOffset;const D=P.clipOffset,T=[-1,1,1,-1][K],tt=I.className;let V,st=0,dt;var ct=0;let yt=0;if(s.showAxis=V=ot||I.showEmpty,s.staggerLines=s.horiz&&lt.staggerLines||void 0,!s.axisGroup){const vt=(gt,xt,Mt)=>F.g(gt).attr({zIndex:Mt}).addClass(`highcharts-${m.toLowerCase()}${xt} `+(this.isRadial?`highcharts-radial-axis${xt} `:"")+(tt||"")).add(H);s.gridGroup=vt("grid","-grid",I.gridZIndex),s.axisGroup=vt("axis","",I.zIndex),s.labelGroup=vt("axis-labels","-labels",lt.zIndex)}ot||s.isLinked?(f.forEach(function(vt){s.generateTick(vt)}),s.renderUnsquish(),s.reserveSpaceDefault=K===0||K===2||{1:"left",3:"right"}[K]===s.labelAlign,p(lt.reserveSpace,ht?!1:null,s.labelAlign==="center"?!0:null,s.reserveSpaceDefault)&&f.forEach(function(vt){yt=Math.max(n[vt].getLabelSize(),yt)}),s.staggerLines&&(yt*=s.staggerLines),s.labelOffset=yt*(s.opposite?-1:1)):a(n,function(vt,gt){vt.destroy(),delete n[gt]}),nt&&nt.text&&nt.enabled!==!1&&(s.addTitle(V),V&&!ht&&nt.reserveSpace!==!1&&(s.titleOffset=st=s.axisTitle.getBBox()[z?"height":"width"],dt=nt.offset,ct=S(dt)?0:p(nt.margin,z?5:10))),s.renderLine(),s.offset=T*p(I.offset,pt[K]?pt[K]+(I.margin||0):0),s.tickRotCorr=s.tickRotCorr||{x:0,y:0},ot=K===0?-s.labelMetrics().h:K===2?s.tickRotCorr.y:0,ct=Math.abs(yt)+ct,yt&&(ct=ct-ot+T*(z?p(lt.y,s.tickRotCorr.y+T*lt.distance):p(lt.x,T*lt.distance))),s.axisTitleMargin=p(dt,ct),s.getMaxLabelDimensions&&(s.maxLabelDimensions=s.getMaxLabelDimensions(n,f)),m!=="colorAxis"&&(lt=this.tickSize("tick"),pt[K]=Math.max(pt[K],(s.axisTitleMargin||0)+st+T*s.offset,ct,f&&f.length&&lt?lt[0]+T*s.offset:0),pt=!s.axisLine||I.offset?0:2*Math.floor(s.axisLine.strokeWidth()/2),D[G]=Math.max(D[G],pt)),o(this,"afterGetOffset")}getLinePath(s){const P=this.chart,z=this.opposite;var I=this.offset;const K=this.horiz,n=this.left+(z?this.width:0)+I;return I=P.chartHeight-this.bottom-(z?this.height:0)+I,z&&(s*=-1),P.renderer.crispLine([["M",K?this.left:n,K?I:this.top],["L",K?P.chartWidth-this.right:n,K?I:P.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 P=this.horiz,z=this.left;const I=this.top;var K=this.len;const n=this.options.title,f=P?z:I,m=this.opposite,H=this.offset,F=n.x,G=n.y,ot=this.chart.renderer.fontMetrics(s);return s=s?Math.max(s.getBBox(!1,0).height-ot.h-1,0):0,K={low:f+(P?0:K),middle:f+K/2,high:f+(P?K:0)}[n.align],z=(P?I+this.height:z)+(P?1:-1)*(m?-1:1)*(this.axisTitleMargin||0)+[-s,s,ot.f,-s][this.side],P={x:P?K+F:z+(m?this.width:0)+H+F,y:P?z+G-(m?this.height:0)+H:K+G},o(this,"afterGetTitlePosition",{titlePosition:P}),P}renderMinorTick(s,P){const z=this.minorTicks;z[s]||(z[s]=new X(this,s,"minor")),P&&z[s].isNew&&z[s].render(null,!0),z[s].render(null,!1,1)}renderTick(s,P,z){const I=this.ticks;(!this.isLinked||s>=this.min&&s<=this.max||this.grid&&this.grid.isColumn)&&(I[s]||(I[s]=new X(this,s)),z&&I[s].isNew&&I[s].render(P,!0,-1),I[s].render(P))}render(){const s=this,P=s.chart,z=s.logarithmic,I=s.options,K=s.isLinked,n=s.tickPositions,f=s.axisTitle,m=s.ticks,H=s.minorTicks,F=s.alternateBands,G=I.stackLabels,ot=I.alternateGridColor;var nt=I.crossing;const lt=s.tickmarkOffset,ht=s.axisLine,pt=s.showAxis,D=R(P.renderer.globalAnimation);let T,tt;if(s.labelEdge.length=0,s.overlap=!1,[m,H,F].forEach(function(V){a(V,function(st){st.isActive=!1})}),d(nt)){const V=this.isXAxis?P.yAxis[0]:P.xAxis[0],st=[1,-1,-1,1][this.side];V&&(nt=V.toPixels(nt,!0),s.horiz&&(nt=V.len-nt),s.offset=st*nt)}if(s.hasData()||K){const V=s.chart.hasRendered&&s.old&&d(s.old.min);s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(st){s.renderMinorTick(st,V)}),n.length&&(n.forEach(function(st,dt){s.renderTick(st,dt,V)}),lt&&(s.min===0||s.single)&&(m[-1]||(m[-1]=new X(s,-1,null,!0)),m[-1].render(-1))),ot&&n.forEach(function(st,dt){tt=typeof n[dt+1]<"u"?n[dt+1]+lt:s.max-lt,dt%2===0&&st<s.max&&tt<=s.max+(P.polar?-lt:lt)&&(F[st]||(F[st]=new Y.PlotLineOrBand(s)),T=st+lt,F[st].options={from:z?z.lin2log(T):T,to:z?z.lin2log(tt):tt,color:ot,className:"highcharts-alternate-grid"},F[st].render(),F[st].isActive=!0)}),s._addedPlotLB||(s._addedPlotLB=!0,(I.plotLines||[]).concat(I.plotBands||[]).forEach(function(st){s.addPlotBandOrLine(st)}))}[m,H,F].forEach(function(V){const st=[],dt=D.duration;a(V,function(ct,yt){ct.isActive||(ct.render(yt,!1,0),ct.isActive=!1,st.push(yt))}),$(function(){let ct=st.length;for(;ct--;)V[st[ct]]&&!V[st[ct]].isActive&&(V[st[ct]].destroy(),delete V[st[ct]])},V!==F&&P.hasRendered&&dt?dt:0)}),ht&&(ht[ht.isPlaced?"animate":"attr"]({d:this.getLinePath(ht.strokeWidth())}),ht.isPlaced=!0,ht[pt?"show":"hide"](pt)),f&&pt&&(f[f.isNew?"attr":"animate"](s.getTitlePosition(f)),f.isNew=!1),G&&G.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||at.keepProps}destroy(s){const P=this,z=P.plotLinesAndBands,I=this.eventOptions;if(o(this,"destroy",{keepEvents:s}),s||r(P),[P.ticks,P.minorTicks,P.alternateBands].forEach(function(K){g(K)}),z)for(s=z.length;s--;)z[s].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(K){P[K]&&(P[K]=P[K].destroy())});for(const K in P.plotLinesAndBandsGroups)P.plotLinesAndBandsGroups[K]=P.plotLinesAndBandsGroups[K].destroy();a(P,function(K,n){P.getKeepProps().indexOf(n)===-1&&delete P[n]}),this.eventOptions=I}drawCrosshair(s,P){const z=this.crosshair;var I=p(z&&z.snap,!0);const K=this.chart;let n,f=this.cross;if(o(this,"drawCrosshair",{e:s,point:P}),s||(s=this.cross&&this.cross.e),z&&(S(P)||!I)!==!1){if(I?S(P)&&(n=p(this.coll!=="colorAxis"?P.crosshairPos:null,this.isXAxis?P.plotX:this.len-P.plotY)):n=s&&(this.horiz?s.chartX-this.pos:this.len-s.chartY+this.pos),S(n)){var m={value:P&&(this.isXAxis?P.x:p(P.stackY,P.y)),translatedValue:n};K.polar&&k(m,{isCrosshair:!0,chartX:s&&s.chartX,chartY:s&&s.chartY,point:P}),m=this.getPlotLinePath(m)||null}if(!S(m)){this.hideCrosshair();return}I=this.categories&&!this.isRadial,f||(this.cross=f=K.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(I?"category ":"thin ")+(z.className||"")).attr({zIndex:p(z.zIndex,2)}).add(),K.styledMode||(f.attr({stroke:z.color||(I?W.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":p(z.width,1)}).css({"pointer-events":"none"}),z.dashStyle&&f.attr({dashstyle:z.dashStyle}))),f.show().attr({d:m}),I&&!z.width&&f.attr({"stroke-width":this.transA}),this.cross.e=s}else this.hideCrosshair();o(this,"afterDrawCrosshair",{e:s,point:P})}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,P){const z=this.chart;s=t(this.userOptions,s),this.destroy(!0),this.init(z,s),z.isDirtyBox=!0,p(P,!0)&&z.redraw()}remove(s){const P=this.chart,z=this.coll,I=this.series;let K=I.length;for(;K--;)I[K]&&I[K].remove(!1);L(P.axes,this),L(P[z]||[],this),P.orderItems(z),this.destroy(),P.isDirtyBox=!0,p(s,!0)&&P.redraw()}setTitle(s,P){this.update({title:s},P)}setCategories(s,P){this.update({categories:s},P)}}return at.defaultOptions=O.defaultXAxisOptions,at.keepProps="coll extKey hcEvents names series userMax userMin".split(" "),at}),it(C,"Core/Axis/DateTimeAxis.js",[C["Core/Utilities.js"]],function(j){const{addEvent:O,getMagnitude:W,normalizeTickInterval:q,timeUnits:Q}=j;var Y;return function(X){function M(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function R(b){b.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new x(this))}const N=[];X.compose=function(b){return j.pushUnique(N,b)&&(b.keepProps.push("dateTime"),b.prototype.getTimeTicks=M,O(b,"init",R)),b};class x{constructor(_){this.axis=_}normalizeTimeTickInterval(_,A){const c=A||[["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]];A=c[c.length-1];let v=Q[A[0]],S=A[1],g;for(g=0;g<c.length&&(A=c[g],v=Q[A[0]],S=A[1],!(c[g+1]&&_<=(v*S[S.length-1]+Q[c[g+1][0]])/2));g++);return v===Q.year&&_<5*v&&(S=[1,2,5]),_=q(_/v,S,A[0]==="year"?Math.max(W(_/v),1):1),{unitRange:v,count:_,unitName:A[0]}}getXDateFormat(_,A){const{axis:c}=this,v=c.chart.time;return c.closestPointRange?v.getDateFormat(c.closestPointRange,_,c.options.startOfWeek,A)||v.resolveDTLFormat(A.year).main:v.resolveDTLFormat(A.day).main}}X.Additions=x}(Y||(Y={})),Y}),it(C,"Core/Axis/LogarithmicAxis.js",[C["Core/Utilities.js"]],function(j){const{addEvent:O,normalizeTickInterval:W,pick:q}=j;var Q;return function(Y){function X(x){let b=this.logarithmic;x.userOptions.type!=="logarithmic"?this.logarithmic=void 0:b||(this.logarithmic=new N(this))}function M(){const x=this.logarithmic;x&&(this.lin2val=function(b){return x.lin2log(b)},this.val2lin=function(b){return x.log2lin(b)})}const R=[];Y.compose=function(x){return j.pushUnique(R,x)&&(x.keepProps.push("logarithmic"),O(x,"init",X),O(x,"afterInit",M)),x};class N{constructor(b){this.axis=b}getLogTickPositions(b,_,A,c){const v=this.axis;var S=v.len,g=v.options;let L=[];if(c||(this.minorAutoInterval=void 0),.5<=b)b=Math.round(b),L=v.getLinearTickPositions(b,_,A);else if(.08<=b){g=Math.floor(_);let y,k,o,l,u;for(S=.3<b?[1,2,4]:.15<b?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];g<A+1&&!u;g++)for(k=S.length,y=0;y<k&&!u;y++)o=this.log2lin(this.lin2log(g)*S[y]),o>_&&(!c||l<=A)&&typeof l<"u"&&L.push(l),l>A&&(u=!0),l=o}else _=this.lin2log(_),A=this.lin2log(A),b=c?v.getMinorTickInterval():g.tickInterval,b=q(b==="auto"?null:b,this.minorAutoInterval,g.tickPixelInterval/(c?5:1)*(A-_)/((c?S/v.tickPositions.length:S)||1)),b=W(b),L=v.getLinearTickPositions(b,_,A).map(this.log2lin),c||(this.minorAutoInterval=b/5);return c||(v.tickInterval=b),L}lin2log(b){return Math.pow(10,b)}log2lin(b){return Math.log(b)/Math.LN10}}Y.Additions=N}(Q||(Q={})),Q}),it(C,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[C["Core/Utilities.js"]],function(j){const{erase:O,extend:W,isNumber:q}=j;var Q;return function(Y){function X(v){return this.addPlotBandOrLine(v,"plotBands")}function M(v,S){const g=this.userOptions;let L=new c(this,v);if(this.visible&&(L=L.render()),L){if(this._addedPlotLB||(this._addedPlotLB=!0,(g.plotLines||[]).concat(g.plotBands||[]).forEach(y=>{this.addPlotBandOrLine(y)})),S){const y=g[S]||[];y.push(v),g[S]=y}this.plotLinesAndBands.push(L)}return L}function R(v){return this.addPlotBandOrLine(v,"plotLines")}function N(v,S,g=this.options){const L=this.getPlotLinePath({value:S,force:!0,acrossPanes:g.acrossPanes}),y=[],k=this.horiz;S=!q(this.min)||!q(this.max)||v<this.min&&S<this.min||v>this.max&&S>this.max,v=this.getPlotLinePath({value:v,force:!0,acrossPanes:g.acrossPanes}),g=1;let o;if(v&&L)for(S&&(o=v.toString()===L.toString(),g=0),S=0;S<v.length;S+=2){const l=v[S],u=v[S+1],h=L[S],d=L[S+1];l[0]!=="M"&&l[0]!=="L"||u[0]!=="M"&&u[0]!=="L"||h[0]!=="M"&&h[0]!=="L"||d[0]!=="M"&&d[0]!=="L"||(k&&h[1]===l[1]?(h[1]+=g,d[1]+=g):k||h[2]!==l[2]||(h[2]+=g,d[2]+=g),y.push(["M",l[1],l[2]],["L",u[1],u[2]],["L",d[1],d[2]],["L",h[1],h[2]],["Z"])),y.isFlat=o}return y}function x(v){this.removePlotBandOrLine(v)}function b(v){const S=this.plotLinesAndBands,g=this.options,L=this.userOptions;if(S){let y=S.length;for(;y--;)S[y].id===v&&S[y].destroy();[g.plotLines||[],L.plotLines||[],g.plotBands||[],L.plotBands||[]].forEach(function(k){for(y=k.length;y--;)(k[y]||{}).id===v&&O(k,k[y])})}}function _(v){this.removePlotBandOrLine(v)}const A=[];let c;Y.compose=function(v,S){return c||(c=v),j.pushUnique(A,S)&&W(S.prototype,{addPlotBand:X,addPlotLine:R,addPlotBandOrLine:M,getPlotBandPath:N,removePlotBand:x,removePlotLine:_,removePlotBandOrLine:b}),S}}(Q||(Q={})),Q}),it(C,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[C["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],C["Core/Utilities.js"]],function(j,O){const{arrayMax:W,arrayMin:q,defined:Q,destroyObjectProperties:Y,erase:X,fireEvent:M,merge:R,objectEach:N,pick:x}=O;class b{static compose(A){return j.compose(b,A)}constructor(A,c){this.axis=A,c&&(this.options=c,this.id=c.id)}render(){M(this,"render");const A=this,c=A.axis,v=c.horiz;var S=c.logarithmic;const g=A.options,L=g.color,y=x(g.zIndex,0),k=g.events,o={},l=c.chart.renderer;let u=g.label,h=A.label,d=g.to,e=g.from,t=g.value,i=A.svgElem;var a=[];const p=Q(e)&&Q(d);a=Q(t);const E=!i,r={class:"highcharts-plot-"+(p?"band ":"line ")+(g.className||"")};let w=p?"bands":"lines";if(S&&(e=S.log2lin(e),d=S.log2lin(d),t=S.log2lin(t)),c.chart.styledMode||(a?(r.stroke=L||"#999999",r["stroke-width"]=x(g.width,1),g.dashStyle&&(r.dashstyle=g.dashStyle)):p&&(r.fill=L||"#e6e9ff",g.borderWidth&&(r.stroke=g.borderColor,r["stroke-width"]=g.borderWidth))),o.zIndex=y,w+="-"+y,(S=c.plotLinesAndBandsGroups[w])||(c.plotLinesAndBandsGroups[w]=S=l.g("plot-"+w).attr(o).add()),E&&(A.svgElem=i=l.path().attr(r).add(S)),a)a=c.getPlotLinePath({value:t,lineWidth:i.strokeWidth(),acrossPanes:g.acrossPanes});else if(p)a=c.getPlotBandPath(e,d,g);else return;return!A.eventsAdded&&k&&(N(k,function($,J){i.on(J,function(at){k[J].apply(A,[at])})}),A.eventsAdded=!0),(E||!i.d)&&a&&a.length?i.attr({d:a}):i&&(a?(i.show(),i.animate({d:a})):i.d&&(i.hide(),h&&(A.label=h=h.destroy()))),u&&(Q(u.text)||Q(u.formatter))&&a&&a.length&&0<c.width&&0<c.height&&!a.isFlat?(u=R({align:v&&p&&"center",x:v?!p&&4:10,verticalAlign:!v&&p&&"middle",y:v?p?16:10:p?6:-4,rotation:v&&!p&&90},u),this.renderLabel(u,a,p,y)):h&&h.hide(),A}renderLabel(A,c,v,S){const g=this.axis;var L=g.chart.renderer;let y=this.label;y||(this.label=y=L.text(this.getLabelText(A),0,0,A.useHTML).attr({align:A.textAlign||A.align,rotation:A.rotation,class:"highcharts-plot-"+(v?"band":"line")+"-label "+(A.className||""),zIndex:S}).add(),g.chart.styledMode||y.css(R({fontSize:"0.8em",textOverflow:"ellipsis"},A.style))),S=c.xBounds||[c[0][1],c[1][1],v?c[2][1]:c[0][1]],c=c.yBounds||[c[0][2],c[1][2],v?c[2][2]:c[0][2]],v=q(S),L=q(c),y.align(A,!1,{x:v,y:L,width:W(S)-v,height:W(c)-L}),y.alignValue&&y.alignValue!=="left"||(A=A.clip?g.width:g.chart.chartWidth,y.css({width:(y.rotation===90?g.height-(y.alignAttr.y-g.top):A-(y.alignAttr.x-g.left))+"px"})),y.show(!0)}getLabelText(A){return Q(A.formatter)?A.formatter.call(this):A.text}destroy(){X(this.axis.plotLinesAndBands,this),delete this.axis,Y(this)}}return b}),it(C,"Core/Tooltip.js",[C["Core/Templating.js"],C["Core/Globals.js"],C["Core/Renderer/RendererUtilities.js"],C["Core/Renderer/RendererRegistry.js"],C["Core/Utilities.js"]],function(j,O,W,q,Q){const{format:Y}=j,{doc:X,isSafari:M}=O,{distribute:R}=W,{addEvent:N,clamp:x,css:b,discardElement:_,extend:A,fireEvent:c,isArray:v,isNumber:S,isString:g,merge:L,pick:y,splat:k,syncTimeout:o}=Q;class l{constructor(h,d){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,d)}bodyFormatter(h){return h.map(function(d){const e=d.series.tooltipOptions;return(e[(d.point.formatPrefix||"point")+"Formatter"]||d.point.tooltipFormatter).call(d.point,e[(d.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(h){this.chart.series.forEach(function(d){const e=d&&d.tt;e&&(!e.isActive||h?d.tt=e.destroy():e.isActive=!1)})}defaultFormatter(h){const d=this.points||k(this);let e;return e=[h.tooltipFooterHeaderFormatter(d[0])],e=e.concat(h.bodyFormatter(d)),e.push(h.tooltipFooterHeaderFormatter(d[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(),_(this.container)),Q.clearTimeout(this.hideTimer),Q.clearTimeout(this.tooltipTimeout)}getAnchor(h,d){var e=this.chart;const t=e.pointer,i=e.inverted,a=e.plotTop;if(e=e.plotLeft,h=k(h),h[0].series&&h[0].series.yAxis&&!h[0].series.yAxis.options.reversedStacks&&(h=h.slice().reverse()),this.followPointer&&d)typeof d.chartX>"u"&&(d=t.normalize(d)),h=[d.chartX-e,d.chartY-a];else if(h[0].tooltipPos)h=h[0].tooltipPos;else{let p=0,E=0;h.forEach(function(r){(r=r.pos(!0))&&(p+=r[0],E+=r[1])}),p/=h.length,E/=h.length,this.shared&&1<h.length&&d&&(i?p=d.chartX:E=d.chartY),h=[p-e,E-a]}return h.map(Math.round)}getClassName(h,d,e){const t=h.series,i=t.options;return[this.options.className,"highcharts-label",e&&"highcharts-tooltip-header",d?"highcharts-tooltip-box":"highcharts-tooltip",!e&&"highcharts-color-"+y(h.colorIndex,t.colorIndex),i&&i.className].filter(g).join(" ")}getLabel(){const h=this,d=this.chart.styledMode,e=this.options,t=this.split&&this.allowShared,i=e.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none");let a,p=this.chart.renderer;if(this.label){var E=!this.label.hasClass("highcharts-label");(!t&&E||t&&!E)&&this.destroy()}if(!this.label){if(this.outside){E=this.chart.options.chart.style;const r=q.getRendererType();this.container=a=O.doc.createElement("div"),a.className="highcharts-tooltip-container",b(a,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(E&&E.zIndex||0)+3)}),O.doc.body.appendChild(a),this.renderer=p=new r(a,0,0,E,void 0,void 0,p.styledMode)}if(t?this.label=p.g("tooltip"):(this.label=p.label("",0,0,e.shape,void 0,void 0,e.useHTML,void 0,"tooltip").attr({padding:e.padding,r:e.borderRadius}),d||this.label.attr({fill:e.backgroundColor,"stroke-width":e.borderWidth||0}).css(e.style).css({pointerEvents:i})),h.outside){const r=this.label,{xSetter:w,ySetter:$}=r;r.xSetter=function(J){w.call(r,h.distance),a.style.left=J+"px"},r.ySetter=function(J){$.call(r,h.distance),a.style.top=J+"px"}}this.label.attr({zIndex:8}).shadow(e.shadow).add()}return this.label}getPlayingField(){const{body:h,documentElement:d}=X,{chart:e,distance:t,outside:i}=this;return{width:i?Math.max(h.scrollWidth,d.scrollWidth,h.offsetWidth,d.offsetWidth,d.clientWidth)-2*t:e.chartWidth,height:i?Math.max(h.scrollHeight,d.scrollHeight,h.offsetHeight,d.offsetHeight,d.clientHeight):e.chartHeight}}getPosition(h,d,e){const t=this.chart,i=this.distance,a={},p=t.inverted&&e.h||0,E=this.outside;var r=this.getPlayingField();const w=r.width,$=r.height,J=t.pointer.getChartPosition();r=f=>{const m=f==="x";return[f,m?w:$,m?h:d].concat(E?[m?h*J.scaleX:d*J.scaleY,m?J.left-i+(e.plotX+t.plotLeft)*J.scaleX:J.top-i+(e.plotY+t.plotTop)*J.scaleY,0,m?w:$]:[m?h:d,m?e.plotX+t.plotLeft:e.plotY+t.plotTop,m?t.plotLeft:t.plotTop,m?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])};let at=r("y"),B=r("x"),s;r=!!e.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(r=!r);const P=!this.followPointer&&y(e.ttBelow,!t.inverted===r),z=function(f,m,H,F,G,ot,nt){const lt=E?f==="y"?i*J.scaleY:i*J.scaleX:i,ht=(H-F)/2,pt=F<G-i,D=G+i+F<m,T=G-lt-H+ht;if(G=G+lt-ht,P&&D)a[f]=G;else if(!P&&pt)a[f]=T;else if(pt)a[f]=Math.min(nt-F,0>T-p?T:T-p);else if(D)a[f]=Math.max(ot,G+p+H>m?G:G+p);else return!1},I=function(f,m,H,F,G){let ot;return G<i||G>m-i?ot=!1:a[f]=G<H/2?1:G>m-F/2?m-F-2:G-H/2,ot},K=function(f){const m=at;at=B,B=m,s=f},n=function(){z.apply(0,at)!==!1?I.apply(0,B)!==!1||s||(K(!0),n()):s?a.x=a.y=0:(K(!0),n())};return(t.inverted||1<this.len)&&K(),n(),a}hide(h){const d=this;Q.clearTimeout(this.hideTimer),h=y(h,this.options.hideDelay),this.isHidden||(this.hideTimer=o(function(){d.getLabel().fadeOut(h&&void 0),d.isHidden=!0},h))}init(h,d){this.chart=h,this.options=d,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=d.split&&!h.inverted&&!h.polar,this.shared=d.shared||this.split,this.outside=y(d.outside,!(!h.scrollablePixelsX&&!h.scrollablePixelsY))}shouldStickOnContact(h){return!(this.followPointer||!this.options.stickOnContact||h&&!this.chart.pointer.inClass(h.target,"highcharts-tooltip"))}move(h,d,e,t){const i=this,a=i.now,p=i.options.animation!==!1&&!i.isHidden&&(1<Math.abs(h-a.x)||1<Math.abs(d-a.y)),E=i.followPointer||1<i.len;A(a,{x:p?(2*a.x+h)/3:h,y:p?(a.y+d)/2:d,anchorX:E?void 0:p?(2*a.anchorX+e)/3:e,anchorY:E?void 0:p?(a.anchorY+t)/2:t}),i.getLabel().attr(a),i.drawTracker(),p&&(Q.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){i&&i.move(h,d,e,t)},32))}refresh(h,d){const e=this.chart,t=this.options,i=e.pointer,a=k(h),p=a[0],E=[];var r=t.format,w=t.formatter||this.defaultFormatter;const $=this.shared,J=e.styledMode;let at={};if(t.enabled&&p.series){Q.clearTimeout(this.hideTimer),this.allowShared=!(!v(h)&&h.series&&h.series.noSharedTooltip),this.followPointer=!this.split&&p.series.tooltipOptions.followPointer,h=this.getAnchor(h,d);var B=h[0],s=h[1];if($&&this.allowShared?(i.applyInactiveState(a),a.forEach(function(P){P.setState("hover"),E.push(P.getLabelConfig())}),at=p.getLabelConfig(),at.points=E):at=p.getLabelConfig(),this.len=E.length,r=g(r)?Y(r,at,e):w.call(at,this),w=p.series,this.distance=y(w.tooltipOptions.distance,16),r===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(r,a);else{let P=B,z=s;if(d&&i.isDirectTouch&&(P=d.chartX-e.plotLeft,z=d.chartY-e.plotTop),e.polar||w.options.clip===!1||a.some(I=>i.isDirectTouch||I.series.shouldShowTooltip(P,z)))d=this.getLabel(),t.style.width&&!J||d.css({width:(this.outside?this.getPlayingField():e.spacingBox).width+"px"}),d.attr({text:r&&r.join?r.join(""):r}),d.addClass(this.getClassName(p),!0),J||d.attr({stroke:t.borderColor||p.color||w.color||"#666666"}),this.updatePosition({plotX:B,plotY:s,negative:p.negative,ttBelow:p.ttBelow,h:h[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}c(this,"refresh")}}renderSplit(h,d){function e(V,st,dt,ct,yt=!0){return dt?(st=H?0:lt,V=x(V-ct/2,n.left,n.right-ct-(t.outside?F:0))):(st-=ot,V=yt?V-ct-z:V+z,V=x(V,yt?V:n.left,n.right)),{x:V,y:st}}const t=this,{chart:i,chart:{chartWidth:a,chartHeight:p,plotHeight:E,plotLeft:r,plotTop:w,pointer:$,scrollablePixelsY:J=0,scrollablePixelsX:at,scrollingContainer:{scrollLeft:B,scrollTop:s}={scrollLeft:0,scrollTop:0},styledMode:P},distance:z,options:I,options:{positioner:K}}=t,n=t.outside&&typeof at!="number"?X.documentElement.getBoundingClientRect():{left:B,right:B+a,top:s,bottom:s+p},f=t.getLabel(),m=this.renderer||i.renderer,H=!(!i.xAxis[0]||!i.xAxis[0].opposite),{left:F,top:G}=$.getChartPosition();let ot=w+s,nt=0,lt=E-J;g(h)&&(h=[!1,h]),h=h.slice(0,d.length+1).reduce(function(V,st,dt){if(st!==!1&&st!==""){dt=d[dt-1]||{isHeader:!0,plotX:d[0].plotX,plotY:E,series:{}};const Mt=dt.isHeader;var ct=Mt?t:dt.series,yt;{var vt=dt;st=st.toString();var gt=ct.tt;const{isHeader:Tt,series:Dt}=vt;gt||(gt={padding:I.padding,r:I.borderRadius},P||(gt.fill=I.backgroundColor,gt["stroke-width"]=(yt=I.borderWidth)!==null&&yt!==void 0?yt:1),gt=m.label("",0,0,I[Tt?"headerShape":"shape"],void 0,void 0,I.useHTML).addClass(t.getClassName(vt,!0,Tt)).attr(gt).add(f)),gt.isActive=!0,gt.attr({text:st}),P||gt.css(I.style).attr({stroke:I.borderColor||vt.color||Dt.color||"#333333"}),yt=gt}yt=ct.tt=yt,vt=yt.getBBox(),ct=vt.width+yt.strokeWidth(),Mt&&(nt=vt.height,lt+=nt,H&&(ot-=nt));{const{isHeader:Tt,plotX:Dt=0,plotY:Pt=0,series:Rt}=dt;if(Tt){st=r+Dt;var xt=w+E/2}else{const{xAxis:Wt,yAxis:Et}=Rt;st=Wt.pos+x(Dt,-z,Wt.len+z),Rt.shouldShowTooltip(0,Et.pos-w+Pt,{ignoreX:!0})&&(xt=Et.pos+Pt)}st=x(st,n.left-z,n.right+z),xt={anchorX:st,anchorY:xt}}const{anchorX:St,anchorY:wt}=xt;typeof wt=="number"?(xt=vt.height+1,vt=K?K.call(t,ct,xt,dt):e(St,wt,Mt,ct),V.push({align:K?0:void 0,anchorX:St,anchorY:wt,boxWidth:ct,point:dt,rank:y(vt.rank,Mt?1:0),size:xt,target:vt.y,tt:yt,x:vt.x})):yt.isActive=!1}return V},[]),!K&&h.some(V=>{var{outside:st}=t;return st=(st?F:0)+V.anchorX,st<n.left&&st+V.boxWidth<n.right?!0:st<F-n.left+V.boxWidth&&n.right-st>st})&&(h=h.map(V=>{const{x:st,y:dt}=e(V.anchorX,V.anchorY,V.point.isHeader,V.boxWidth,!1);return A(V,{target:dt,x:st})})),t.cleanSplit(),R(h,lt);var ht=F,pt=F;h.forEach(function(V){const{x:st,boxWidth:dt,isHeader:ct}=V;ct||(t.outside&&F+st<ht&&(ht=F+st),!ct&&t.outside&&ht+dt>pt&&(pt=F+st))}),h.forEach(function(V){const{x:st,anchorX:dt,anchorY:ct,pos:yt,point:{isHeader:vt}}=V,gt={visibility:typeof yt>"u"?"hidden":"inherit",x:st,y:(yt||0)+ot,anchorX:dt,anchorY:ct};if(t.outside&&st<dt){const xt=F-ht;0<xt&&(vt||(gt.x=st+xt,gt.anchorX=dt+xt),vt&&(gt.x=(pt-ht)/2,gt.anchorX=dt+xt))}V.tt.attr(gt)});const{container:D,outside:T,renderer:tt}=t;if(T&&D&&tt){const{width:V,height:st,x:dt,y:ct}=f.getBBox();tt.setSize(V+dt,st+ct,!1),D.style.left=ht+"px",D.style.top=G+"px"}M&&f.attr({opacity:f.opacity===1?.999:1})}drawTracker(){if(this.shouldStickOnContact()){var h=this.chart,d=this.label,e=this.shared?h.hoverPoints:h.hoverPoint;if(d&&e){var t={x:0,y:0,width:0,height:0};e=this.getAnchor(e);var i=d.getBBox();e[0]+=h.plotLeft-d.translateX,e[1]+=h.plotTop-d.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=d.renderer.rect(t).addClass("highcharts-tracker").add(d),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,d){const e=h.series,t=e.tooltipOptions;var i=e.xAxis;const a=i&&i.dateTime;i={isFooter:d,labelConfig:h};let p=t.xDateFormat,E=t[d?"footerFormat":"headerFormat"];return c(this,"headerFormatter",i,function(r){a&&!p&&S(h.key)&&(p=a.getXDateFormat(h.key,t.dateTimeLabelFormats)),a&&p&&(h.point&&h.point.tooltipDateKeys||["key"]).forEach(function(w){E=E.replace("{point."+w+"}","{point."+w+":"+p+"}")}),e.chart.styledMode&&(E=this.styledModeFormat(E)),r.text=Y(E,{point:h,series:e},this.chart)}),i.text}update(h){this.destroy(),this.init(this.chart,L(!0,this.options,h))}updatePosition(h){const{chart:d,distance:e,options:t}=this;var i=d.pointer;const a=this.getLabel(),{left:p,top:E,scaleX:r,scaleY:w}=i.getChartPosition();i=(t.positioner||this.getPosition).call(this,a.width,a.height,h);let $=(h.plotX||0)+d.plotLeft;h=(h.plotY||0)+d.plotTop;let J;this.outside&&(t.positioner&&(i.x+=p-e,i.y+=E-e),J=(t.borderWidth||0)+2*e,this.renderer.setSize(a.width+J,a.height+J,!1),(r!==1||w!==1)&&(b(this.container,{transform:`scale(${r}, ${w})`}),$*=r,h*=w),$+=p-i.x,h+=E-i.y),this.move(Math.round(i.x),Math.round(i.y||0),$,h)}}return function(u){const h=[];u.compose=function(d){Q.pushUnique(h,d)&&N(d,"afterInit",function(){const e=this.chart;e.options.tooltip&&(e.tooltip=new u(e,e.options.tooltip))})}}(l||(l={})),l}),it(C,"Core/Series/Point.js",[C["Core/Renderer/HTML/AST.js"],C["Core/Animation/AnimationUtilities.js"],C["Core/Defaults.js"],C["Core/Templating.js"],C["Core/Utilities.js"]],function(j,O,W,q,Q){const{animObject:Y}=O,{defaultOptions:X}=W,{format:M}=q,{addEvent:R,defined:N,erase:x,extend:b,fireEvent:_,getNestedProperty:A,isArray:c,isFunction:v,isNumber:S,isObject:g,merge:L,objectEach:y,pick:k,syncTimeout:o,removeEvent:l,uniqueKey:u}=Q;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(p){p.element&&p.animate(b({x:e.startXPos},p.startYPos?{x:p.startXPos,y:p.startYPos}:{}))})})}applyOptions(e,t){const i=this.series,a=i.options.pointValKey||i.pointValKey;return e=h.prototype.optionsToObject.call(this,e),b(this,e),this.options=this.options?b(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:S(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,p=Y(t.series.chart.renderer.globalAnimation),E=()=>{(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(E,p.duration)):E(),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,p=this.series.options;(p.point.events[e]||a.options&&a.options.events&&a.options.events[e])&&a.importEvents(),e==="click"&&p.allowPointSelect&&(i=function(E){a.select&&a.select(null,E.ctrlKey||E.metaKey||E.shiftKey)}),_(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 p,E;for(e=e||{graphic:1,dataLabel:1},e.graphic&&i.push("graphic"),e.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),E=i.length;E--;)p=i[E],t[p]&&a.singular.push(p);return["graphic","dataLabel","connector"].forEach(function(r){const w=r+"s";e[r]&&t[w]&&a.plural.push(w)}),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?A(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=N(this.id)?this.id:u(),this.resolveColor(),e.chart.pointCount++,_(this,"afterInit"),this}isValid(){return this.x!==null&&S(this.y)}optionsToObject(e){var t=this.series;const i=t.options.keys,a=i||t.pointArrayMap||["y"],p=a.length;let E={},r=0,w=0;if(S(e)||e===null)E[a[0]]=e;else if(c(e))for(!i&&e.length>p&&(t=typeof e[0],t==="string"?E.name=e[0]:t==="number"&&(E.x=e[0]),r++);w<p;)i&&typeof e[r]>"u"||(0<a[w].indexOf(".")?h.prototype.setNestedProperty(E,e[r],a[w]):E[a[w]]=e[r]),r++,w++;else typeof e=="object"&&(E=e,e.dataLabels&&(t._hasPointLabels=!0),e.marker&&(t._hasPointMarkers=!0));return E}pos(e,t=this.plotY){if(!this.destroyed){const{plotX:i,series:a}=this,{chart:p,xAxis:E,yAxis:r}=a;let w=0,$=0;if(S(i)&&S(t))return e&&(w=E?E.pos:p.plotLeft,$=r?r.pos:p.plotTop),p.inverted&&E&&r?[r.len-t+$,E.len-i+w]:[i+w,t+$]}}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=k(this.options.colorIndex,t),this.color=k(this.options.color,i)}setNestedProperty(e,t,i){return i.split(".").reduce(function(a,p,E,r){return a[p]=r.length-1===E?t:g(a[p],!0)?a[p]:{},a[p]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){const t=this.series,i=t.tooltipOptions,a=k(i.valueDecimals,""),p=i.valuePrefix||"",E=i.valueSuffix||"";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||["y"]).forEach(function(r){r="{point."+r,(p||E)&&(e=e.replace(RegExp(r+"}","g"),p+r+"}"+E)),e=e.replace(RegExp(r+"}","g"),r+":,."+a+"f}")}),M(e,{point:this,series:this.series},t.chart)}update(e,t,i,a){function p(){E.applyOptions(e);var B=w&&E.hasMockGraphic;B=E.y===null?!B:B,w&&B&&(E.graphic=w.destroy(),delete E.hasMockGraphic),g(e,!0)&&(w&&w.element&&e&&e.marker&&typeof e.marker.symbol<"u"&&(E.graphic=w.destroy()),e&&e.dataLabels&&E.dataLabel&&(E.dataLabel=E.dataLabel.destroy()),E.connector&&(E.connector=E.connector.destroy())),at=E.index,r.updateParallelArrays(E,at),J.data[at]=g(J.data[at],!0)||g(e,!0)?E.options:k(e,J.data[at]),r.isDirty=r.isDirtyData=!0,!r.fixedBox&&r.hasCartesianSeries&&($.isDirtyBox=!0),J.legendType==="point"&&($.isDirtyLegend=!0),t&&$.redraw(i)}const E=this,r=E.series,w=E.graphic,$=r.chart,J=r.options;let at;t=k(t,!0),a===!1?p():E.firePointEvent("update",{options:e},p)}remove(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}select(e,t){const i=this,a=i.series,p=a.chart;this.selectedStaging=e=k(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||p.getSelectedPoints().forEach(function(E){const r=E.series;E.selected&&E!==i&&(E.selected=E.options.selected=!1,r.options.data[r.data.indexOf(E)]=E.options,E.setState(p.hoverPoints&&r.options.inactiveOtherPoints?"inactive":""),E.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=L(e.series.options.point,e.options).events;e.events=t,y(t,function(i,a){v(i)&&R(e,a,i)}),this.hasImportedEvents=!0}}setState(e,t){const i=this.series;var a=this.state,p=i.options.states[e||"normal"]||{},E=X.plotOptions[i.type].marker&&i.options.marker;const r=E&&E.enabled===!1,w=E&&E.states&&E.states[e||"normal"]||{},$=w.enabled===!1,J=this.marker||{},at=i.chart,B=E&&i.markerAttribs;let s=i.halo;var P;let z;var I=i.stateMarkerGraphic;if(e=e||"",!(e===this.state&&!t||this.selected&&e!=="select"||p.enabled===!1||e&&($||r&&w.enabled===!1)||e&&J.states&&J.states[e]&&J.states[e].enabled===!1)){if(this.state=e,B&&(P=i.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(a&&this.graphic.removeClass("highcharts-point-"+a),e&&this.graphic.addClass("highcharts-point-"+e),!at.styledMode){a=i.pointAttribs(this,e),z=k(at.options.chart.animation,p.animation);const K=a.opacity;i.options.inactiveOtherPoints&&S(K)&&((this.dataLabels||[]).forEach(function(n){n&&!n.hasClass("highcharts-data-label-hidden")&&n.animate({opacity:K},z)}),this.connector&&this.connector.animate({opacity:K},z)),this.graphic.animate(a,z)}P&&this.graphic.animate(P,k(at.options.chart.animation,w.animation,E.animation)),I&&I.hide()}else e&&w&&(E=J.symbol||i.symbol,I&&I.currentSymbol!==E&&(I=I.destroy()),P&&(I?I[t?"animate":"attr"]({x:P.x,y:P.y}):E&&(i.stateMarkerGraphic=I=at.renderer.symbol(E,P.x,P.y,P.width,P.height).add(i.markerGroup),I.currentSymbol=E)),!at.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));p=p.halo,P=(I=this.graphic||I)&&I.visibility||"inherit",p&&p.size&&I&&P!=="hidden"&&!this.isCluster?(s||(i.halo=s=at.renderer.path().add(I.parentGroup)),s.show()[t?"animate":"attr"]({d:this.haloPath(p.size)}),s.attr({class:"highcharts-halo highcharts-color-"+k(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:P,zIndex:-1}),s.point=this,at.styledMode||s.attr(b({fill:this.color||i.color,"fill-opacity":p.opacity},j.filterUserAttributes(p.attributes||{})))):s&&s.point&&s.point.haloPath&&s.animate({d:s.point.haloPath(0)},null,s.hide),_(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}),it(C,"Core/Pointer.js",[C["Core/Color/Color.js"],C["Core/Globals.js"],C["Core/Utilities.js"]],function(j,O,W){const{parse:q}=j,{charts:Q,noop:Y}=O,{addEvent:X,attr:M,css:R,defined:N,extend:x,find:b,fireEvent:_,isNumber:A,isObject:c,objectEach:v,offset:S,pick:g,splat:L}=W;class y{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=[],u;(o||[]).forEach(function(h){u=h.series,l.push(u),u.linkedParent&&l.push(u.linkedParent),u.linkedSeries&&(l=l.concat(u.linkedSeries)),u.navigatorSeries&&l.push(u.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=[],O.chartCount||(y.unbindDocumentMouseUp&&(y.unbindDocumentMouseUp=y.unbindDocumentMouseUp()),y.unbindDocumentTouchEnd&&(y.unbindDocumentTouchEnd=y.unbindDocumentTouchEnd())),clearInterval(o.tooltipTimeout),v(o,function(l,u){o[u]=void 0})}getSelectionMarkerAttrs(o,l){const u={args:{chartX:o,chartY:l},attrs:{},shapeType:"rect"};return _(this,"getSelectionMarkerAttrs",u,h=>{const{chart:d,mouseDownX:e=0,mouseDownY:t=0,zoomHor:i,zoomVert:a}=this;h=h.attrs;let p;h.x=d.plotLeft,h.y=d.plotTop,h.width=i?1:d.plotWidth,h.height=a?1:d.plotHeight,i&&(p=o-e,h.width=Math.abs(p),h.x=(0<p?0:p)+e),a&&(p=l-t,h.height=Math.abs(p),h.y=(0<p?0:p)+t)}),u}drag(o){const l=this.chart,u=l.options.chart;var h=l.plotLeft;const d=l.plotTop,e=l.plotWidth,t=l.plotHeight,i=this.mouseDownX||0,a=this.mouseDownY||0,p=c(u.panning)?u.panning&&u.panning.enabled:u.panning,E=u.panKey&&o[u.panKey+"Key"];let r=o.chartX,w=o.chartY,$=this.selectionMarker;if((!$||!$.touch)&&(r<h?r=h:r>h+e&&(r=h+e),w<d?w=d:w>d+t&&(w=d+t),this.hasDragged=Math.sqrt(Math.pow(i-r,2)+Math.pow(a-w,2)),10<this.hasDragged)){h=l.isInsidePlot(i-h,a-d,{visiblePlotOnly:!0});const{shapeType:J,attrs:at}=this.getSelectionMarkerAttrs(r,w);!l.hasCartesianSeries&&!l.mapView||!this.zoomX&&!this.zoomY||!h||E||$||(this.selectionMarker=$=l.renderer[J](),$.attr({class:"highcharts-selection-marker",zIndex:7}).add(),l.styledMode||$.attr({fill:u.selectionMarkerFill||q("#334eff").setOpacity(.25).get()})),$&&$.attr(at),h&&!$&&p&&l.pan(o,u.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 _(this,"getSelectionBox",l,u=>{u.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,u=this.chart,h=this.hasPinched;if(this.selectionMarker){const{x:d,y:e,width:t,height:i}=this.getSelectionBox(this.selectionMarker),a={originalEvent:o,xAxis:[],yAxis:[],x:d,y:e,width:t,height:i};let p=!!u.mapView;(this.hasDragged||h)&&(u.axes.forEach(function(E){if(E.zoomEnabled&&N(E.min)&&(h||l[{xAxis:"zoomX",yAxis:"zoomY"}[E.coll]])&&A(d)&&A(e)&&A(t)&&A(i)){var r=E.horiz;const w=o.type==="touchend"?E.minPixelPadding:0,$=E.toValue((r?d:e)+w);r=E.toValue((r?d+t:e+i)-w),a[E.coll].push({axis:E,min:Math.min($,r),max:Math.max($,r)}),p=!0}}),p&&_(u,"selection",a,function(E){u.zoom(x(E,h?{animation:!1}:null))})),A(u.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}u&&A(u.index)&&(R(u.container,{cursor:u._cursor}),u.cancelClick=10<this.hasDragged,u.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(o,l,u){let h;return o.forEach(function(d){var e=!(d.noSharedTooltip&&l)&&0>d.options.findNearestPointBy.indexOf("y");if(d=d.searchPoint(u,e),(e=c(d,!0)&&d.series)&&!(e=!c(h,!0))){{e=h.distX-d.distX;const t=h.dist-d.dist,i=(d.series.group&&d.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);e=e!==0&&l?e:t!==0?t:i!==0?i:h.series.index>d.series.index?-1:1}e=0<e}e&&(h=d)}),h}getChartCoordinatesFromPoint(o,l){var u=o.series;const h=u.xAxis;u=u.yAxis;const d=o.shapeArgs;if(h&&u){let e=g(o.clientX,o.plotX),t=o.plotY||0;return o.isNode&&d&&A(d.x)&&A(d.y)&&(e=d.x,t=d.y),l?{chartX:u.len+u.pos-t,chartY:h.len+h.pos-e}:{chartX:e+h.pos,chartY:t+u.pos}}if(d&&d.x&&d.y)return{chartX:d.x,chartY:d.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;var{container:o}=this.chart;const l=S(o);this.chartPosition={left:l.left,top:l.top,scaleX:1,scaleY:1};const u=o.offsetWidth;return o=o.offsetHeight,2<u&&2<o&&(this.chartPosition.scaleX=l.width/u,this.chartPosition.scaleY=l.height/o),this.chartPosition}getCoordinates(o){const l={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(u){l[u.isXAxis?"xAxis":"yAxis"].push({axis:u,value:u.toValue(o[u.horiz?"chartX":"chartY"])})}),l}getHoverData(o,l,u,h,d,e){const t=[];h=!(!h||!o);const i=function(r){return r.visible&&!(!d&&r.directTouch)&&g(r.options.enableMouseTracking,!0)};let a,p={chartX:e?e.chartX:void 0,chartY:e?e.chartY:void 0,shared:d};_(this,"beforeGetHoverData",p),a=l&&!l.stickyTracking?[l]:u.filter(r=>r.stickyTracking&&(p.filter||i)(r));const E=h||!e?o:this.findNearestKDPoint(a,d,e);return l=E&&E.series,E&&(d&&!l.noSharedTooltip?(a=u.filter(function(r){return p.filter?p.filter(r):i(r)&&!r.noSharedTooltip}),a.forEach(function(r){let w=b(r.points,function($){return $.x===E.x&&!$.isNull});c(w)&&(r.boosted&&r.boost&&(w=r.boost.getPoint(w)),t.push(w))})):t.push(E)),p={hoverPoint:E},_(this,"afterGetHoverData",p),{hoverPoint:p.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 u;for(;o;){if(u=M(o,"class")){if(u.indexOf(l)!==-1)return!0;if(u.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(),_(this,"afterInit")}normalize(o,l){var u=o.touches,h=u?u.length?u.item(0):g(u.changedTouches,o.changedTouches)[0]:o;return l||(l=this.getChartPosition()),u=h.pageX-l.left,h=h.pageY-l.top,u/=l.scaleX,h/=l.scaleY,x(o,{chartX:Math.round(u),chartY:Math.round(h)})}onContainerClick(o){const l=this.chart,u=l.hoverPoint;o=this.normalize(o);const h=l.plotLeft,d=l.plotTop;l.cancelClick||(u&&this.inClass(o.target,"highcharts-tracker")?(_(u.series,"click",x(o,{point:u})),l.hoverPoint&&u.firePointEvent("click",o)):(x(o,this.getCoordinates(o)),l.isInsidePlot(o.chartX-h,o.chartY-d,{visiblePlotOnly:!0})&&_(l,"click",o)))}onContainerMouseDown(o){const l=((o.buttons||o.button)&1)===1;o=this.normalize(o),O.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=Q[g(y.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,u=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})||u&&u.shouldStickOnContact(o)||(this.inClass(o.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(o))}onDocumentTouchEnd(o){const l=Q[g(y.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,u=l.tooltip,h=this.chartPosition;o=this.normalize(o,h),!h||l.isInsidePlot(o.chartX-l.plotLeft,o.chartY-l.plotTop,{visiblePlotOnly:!0})||u&&u.shouldStickOnContact(o)||this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(o){const l=Q[g(y.hoverChartIndex,-1)];l&&l.pointer.drop(o)}pinch(o){const l=this,u=l.chart,h=l.pinchDown,d=o.touches||[],e=d.length,t=l.lastValidTouch,i=l.hasZoom,a={},p=e===1&&(l.inClass(o.target,"highcharts-tracker")&&u.runTrackerClick||l.runChartClick),E={};var r=l.chart.tooltip;r=e===1&&g(r&&r.options.followTouchMove,!0);let w=l.selectionMarker;1<e?l.initiated=!0:r&&(l.initiated=!1),i&&l.initiated&&!p&&o.cancelable!==!1&&o.preventDefault(),[].map.call(d,function($){return l.normalize($)}),o.type==="touchstart"?([].forEach.call(d,function($,J){h[J]={chartX:$.chartX,chartY:$.chartY}}),t.x=[h[0].chartX,h[1]&&h[1].chartX],t.y=[h[0].chartY,h[1]&&h[1].chartY],u.axes.forEach(function($){if($.zoomEnabled){const J=u.bounds[$.horiz?"h":"v"],at=$.minPixelPadding,B=$.toPixels(Math.min(g($.options.min,$.dataMin),$.dataMin)),s=$.toPixels(Math.max(g($.options.max,$.dataMax),$.dataMax)),P=Math.max(B,s);J.min=Math.min($.pos,Math.min(B,s)-at),J.max=Math.max($.pos+$.len,P+at)}}),l.res=!0):r?this.runPointActions(l.normalize(o)):h.length&&(_(u,"touchpan",{originalEvent:o},()=>{w||(l.selectionMarker=w=x({destroy:Y,touch:!0},u.plotBox)),l.pinchTranslate(h,d,a,w,E,t),l.hasPinched=i,l.scaleGroups(a,E)}),l.res&&(l.res=!1,this.reset(!1,0)))}pinchTranslate(o,l,u,h,d,e){this.zoomHor&&this.pinchTranslateDirection(!0,o,l,u,h,d,e),this.zoomVert&&this.pinchTranslateDirection(!1,o,l,u,h,d,e)}pinchTranslateDirection(o,l,u,h,d,e,t,i){const a=this.chart,p=o?"x":"y",E=o?"X":"Y",r="chart"+E,w=o?"width":"height",$=a["plot"+(o?"Left":"Top")],J=a.inverted,at=a.bounds[o?"h":"v"],B=l.length===1,s=l[0][r],P=!B&&l[1][r];l=function(){typeof f=="number"&&20<Math.abs(s-P)&&(K=i||Math.abs(n-f)/Math.abs(s-P)),I=($-n)/K+s,z=a["plot"+(o?"Width":"Height")]/K};let z,I,K=i||1,n=u[0][r],f=!B&&u[1][r],m;l(),u=I,u<at.min?(u=at.min,m=!0):u+z>at.max&&(u=at.max-z,m=!0),m?(n-=.8*(n-t[p][0]),typeof f=="number"&&(f-=.8*(f-t[p][1])),l()):t[p]=[n,f],J||(e[p]=I-$,e[w]=z),e=J?1/K:K,d[w]=z,d[p]=u,h[J?o?"scaleY":"scaleX":"scale"+E]=K,h["translate"+E]=e*$+(n-e*s)}reset(o,l){const u=this.chart,h=u.hoverSeries,d=u.hoverPoint,e=u.hoverPoints,t=u.tooltip,i=t&&t.shared?e:d;o&&i&&L(i).forEach(function(a){a.series.isCartesian&&typeof a.plotX>"u"&&(o=!1)}),o?t&&i&&L(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))}):d&&(d.setState(d.state,!0),u.axes.forEach(function(a){a.crosshair&&d.series[a.coll]===a&&a.drawCrosshair(null,d)}))):(d&&d.onMouseOut(),e&&e.forEach(function(a){a.setState()}),h&&h.onMouseOut(),t&&t.hide(l),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),u.axes.forEach(function(a){a.hideCrosshair()}),this.hoverX=u.hoverPoints=u.hoverPoint=null)}runPointActions(o,l,u){const h=this.chart,d=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,e=d?d.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 p=e&&i&&!i.noSharedTooltip;if(t&&(u||t!==h.hoverPoint||d&&d.isHidden)){if((h.hoverPoints||[]).forEach(function(E){a.indexOf(E)===-1&&E.setState()}),h.hoverSeries!==i&&i.onMouseOver(),this.applyInactiveState(a),(a||[]).forEach(function(E){E.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!t.series)return;h.hoverPoints=a,h.hoverPoint=t,t.firePointEvent("mouseOver",void 0,()=>{d&&t&&d.refresh(p?a:t,o)})}else l&&d&&!d.isHidden&&(u=d.getAnchor([{}],o),h.isInsidePlot(u[0],u[1],{visiblePlotOnly:!0})&&d.updatePosition({plotX:u[0],plotY:u[1]}));this.unDocMouseMove||(this.unDocMouseMove=X(h.container.ownerDocument,"mousemove",function(E){const r=Q[y.hoverChartIndex];r&&r.pointer.onDocumentMouseMove(E)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(E){const r=g((E.crosshair||{}).snap,!0);let w;r&&((w=h.hoverPoint)&&w.series[E.coll]===E||(w=b(a,$=>$.series&&$.series[E.coll]===E))),w||!r?E.drawCrosshair(o,w):E.hideCrosshair()})}scaleGroups(o,l){const u=this.chart;u.series.forEach(function(h){const d=o||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||u.mapView)&&(h.group.attr(d),h.markerGroup&&(h.markerGroup.attr(d),h.markerGroup.clip(l?u.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(d))}),u.clipRect.attr(l||u.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(X(o,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(X(o,"mouseleave",this.onContainerMouseLeave.bind(this))),y.unbindDocumentMouseUp||(y.unbindDocumentMouseUp=X(l,"mouseup",this.onDocumentMouseUp.bind(this)));let u=this.chart.renderTo.parentElement;for(;u&&u.tagName!=="BODY";)this.eventsToUnbind.push(X(u,"scroll",()=>{delete this.chartPosition})),u=u.parentElement;O.hasTouch&&(this.eventsToUnbind.push(X(o,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(X(o,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),y.unbindDocumentTouchEnd||(y.unbindDocumentTouchEnd=X(l,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(){const o=this.chart,l=O.charts[g(y.hoverChartIndex,-1)];l&&l!==o&&l.pointer.onContainerMouseLeave({relatedTarget:o.container}),l&&l.mouseIsDown||(y.hoverChartIndex=o.index)}touch(o,l){const u=this.chart;let h;this.setHoverChartIndex(),o.touches.length===1?(o=this.normalize(o),u.isInsidePlot(o.chartX-u.plotLeft,o.chartY-u.plotTop,{visiblePlotOnly:!0})&&!u.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),g(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,u=l.inverted;var h=l.zooming.type||"";/touch/.test(o.type)&&(h=g(l.zooming.pinchType,h)),this.zoomX=o=/x/.test(h),this.zoomY=h=/y/.test(h),this.zoomHor=o&&!u||h&&u,this.zoomVert=h&&!u||o&&u,this.hasZoom=o||h}}return function(k){const o=[],l=[];k.compose=function(u){W.pushUnique(l,u)&&X(u,"beforeRender",function(){this.pointer=new k(this,this.options)})},k.dissolve=function(){for(let u=0,h=o.length;u<h;++u)o[u]();o.length=0}}(y||(y={})),y}),it(C,"Core/Legend/Legend.js",[C["Core/Animation/AnimationUtilities.js"],C["Core/Templating.js"],C["Core/Globals.js"],C["Core/Series/Point.js"],C["Core/Renderer/RendererUtilities.js"],C["Core/Utilities.js"]],function(j,O,W,q,Q,Y){const{animObject:X,setAnimation:M}=j,{format:R}=O,{marginNames:N}=W,{distribute:x}=Q,{addEvent:b,createElement:_,css:A,defined:c,discardElement:v,find:S,fireEvent:g,isNumber:L,merge:y,pick:k,relativeLength:o,stableSort:l,syncTimeout:u}=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(),b(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),b(this.chart,"render",()=>{this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(e){const t=k(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=y(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=k(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(y(!0,this.options,e)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,k(t,!0)&&i.redraw(),g(this,"afterUpdate")}colorizeItem(e,t){const{group:i,label:a,line:p,symbol:E}=e.legendItem||{};if(i&&i[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:r}=this,w=r.color,$=t&&e.color||w,J=e.options&&e.options.marker;let at={fill:$};a==null||a.css(y(t?this.itemStyle:r)),p==null||p.attr({stroke:$}),E&&(J&&E.isMarker&&(at=e.pointAttribs(),t||(at.stroke=at.fill=w)),E.attr(at))}g(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 p=this.options,E=p.symbolPadding;const r=!p.rtl;p=e.checkbox,t&&t.element&&(E={translateX:r?i:this.legendWidth-i-2*E-4,translateY:a},t[c(t.translateY)?"animate":"attr"](E,void 0,()=>{g(this,"afterPositionItem",{item:e})})),p&&(p.x=i,p.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&&v(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(p){const E=p.checkbox;let r;E&&(r=a+i+E.y+(this.scrollOffset||0)+3,A(E,{left:e.translateX+p.checkboxOffset+E.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?R(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 p=this.options,E=this.symbolWidth,r=p.symbolPadding||0,w=this.itemStyle,$=this.itemHiddenStyle,J=p.layout==="horizontal"?k(p.itemDistance,20):0,at=!p.rtl,B=!e.series,s=!B&&e.series.drawLegendSymbol?e.series:e;var P=s.options;const z=this.createCheckboxForItem&&P&&P.showCheckbox,I=p.useHTML,K=e.options.className;let n=t.label;P=E+r+J+(z?20:0),n||(t.group=a.g("legend-item").addClass("highcharts-"+s.type+"-series highcharts-color-"+e.colorIndex+(K?" "+K:"")+(B?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.label=n=a.text("",at?E+r:-r,this.baseline||0,I),i.styledMode||n.css(y(e.visible?w:$)),n.attr({align:at?"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=k(p.symbolHeight,this.fontMetrics.f),p.squareSymbol&&(this.symbolWidth=k(p.symbolWidth,Math.max(this.symbolHeight,16)),P=this.symbolWidth+r+J+(z?20:0),at&&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&&w.width||n.css({width:(p.itemWidth||this.widthOption||i.spacingBox.width)-P+"px"}),this.setText(e),i=n.getBBox(),a=this.fontMetrics&&this.fontMetrics.h||0,e.itemWidth=e.checkboxOffset=p.itemWidth||t.labelWidth||i.width+P,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",p=e.itemHeight,E=this.itemMarginBottom,r=this.itemMarginTop,w=a?k(t.itemDistance,20):0,$=this.maxLegendWidth;t=t.alignColumns&&this.totalItemWidth>$?this.maxItemWidth:e.itemWidth;const J=e.legendItem||{};a&&this.itemX-i+t>$&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=r+this.lastLineHeight+E),this.lastLineHeight=0),this.lastItemY=r+this.itemY+E,this.lastLineHeight=Math.max(p,this.lastLineHeight),J.x=this.itemX,J.y=this.itemY,a?this.itemX+=t:(this.itemY+=r+p+E,this.lastLineHeight=p),this.offsetWidth=this.widthOption||Math.max((a?this.itemX-i-(e.checkbox?0:w):t)+i,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){const i=t&&t.options;t&&k(i.showInLegend,c(i.linkedTo)?!1:void 0,!0)&&(e=e.concat((t.legendItem||{}).labels||(i.legendType==="point"?t.data:t)))}),g(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,p=this.getAlignment();p&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(E,r){E.test(p)&&!c(e[r])&&(i[N[r]]=Math.max(i[N[r]],i.legend[(r+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][r]*a[r%2?"x":"y"]+k(a.margin,12)+t[r]+(i.titleOffset[r]||0)))})}proximatePositions(){const e=this.chart,t=[],i=this.options.align==="left";this.allItems.forEach(function(p){var E,r=i;let w;p.yAxis&&(p.xAxis.options.reversed&&(r=!r),p.points&&(E=S(r?p.points:p.points.slice(0).reverse(),function($){return L($.plotY)})),r=this.itemMarginTop+p.legendItem.label.getBBox().height+this.itemMarginBottom,w=p.yAxis.top-e.plotTop,p.visible?(E=E?E.plotY:p.yAxis.height,E+=w-.3*r):E=w+p.yAxis.height,t.push({target:E,size:r,item:p}))},this);let a;for(const p of x(t,e.plotHeight))a=p.item.legendItem||{},L(p.pos)&&(a.y=e.plotTop-e.spacing[0]+p.pos)}render(){const e=this.chart,t=e.renderer,i=this.options,a=this.padding;var p=this.getAllItems();let E,r=this.group,w=this.box;this.itemX=a,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=o(i.width,e.spacingBox.width-a);var $=e.spacingBox.width-2*a-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&($/=2),this.maxLegendWidth=this.widthOption||$,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(p,(J,at)=>(J.options&&J.options.legendIndex||0)-(at.options&&at.options.legendIndex||0)),i.reversed&&p.reverse(),this.allItems=p,this.display=$=!!p.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,p.forEach(this.renderItem,this),p.forEach(this.layoutItem,this),p=(this.widthOption||this.offsetWidth)+a,E=this.lastItemY+this.lastLineHeight+this.titleHeight,E=this.handleOverflow(E),E+=a,w||(this.box=w=t.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(r)),e.styledMode||w.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<p&&0<E&&w[w.placed?"animate":"attr"](w.crisp.call({},{x:0,y:0,width:p,height:E},w.strokeWidth())),r[$?"show":"hide"](),e.styledMode&&r.getStyle("display")==="none"&&(p=E=0),this.legendWidth=p,this.legendHeight=E,$&&this.align(),this.proximate||this.positionItems(),g(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=y(e,{y:a})),t.hasRendered||(this.group.placed=!1),this.group.align(y(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,p=this.options;var E=p.y;const r=p.verticalAlign==="top",w=this.padding,$=p.maxHeight,J=p.navigation,at=k(J.animation,!0),B=J.arrowSize||12,s=this.pages,P=this.allItems,z=function(F){typeof F=="number"?H.attr({height:F}):H&&(t.clipRect=H.destroy(),t.contentGroup.clip()),t.contentGroup.div&&(t.contentGroup.div.style.clip=F?"rect("+w+"px,9999px,"+(w+F)+"px,0)":"auto")},I=function(F){return t[F]=a.circle(0,0,1.3*B).translate(B/2,B/2).add(m),i.styledMode||t[F].attr("fill","rgba(0,0,0,0.0001)"),t[F]};let K,n,f;E=i.spacingBox.height+(r?-E:E)-w;let m=this.nav,H=this.clipRect;return p.layout!=="horizontal"||p.verticalAlign==="middle"||p.floating||(E/=2),$&&(E=Math.min(E,$)),s.length=0,e&&0<E&&e>E&&J.enabled!==!1?(this.clipHeight=K=Math.max(E-20-this.titleHeight-w,0),this.currentPage=k(this.currentPage,1),this.fullHeight=e,P.forEach((F,G)=>{f=F.legendItem||{},F=f.y||0;const ot=Math.round(f.label.getBBox().height);let nt=s.length;(!nt||F-s[nt-1]>K&&(n||F)!==s[nt-1])&&(s.push(n||F),nt++),f.pageIx=nt-1,n&&((P[G-1].legendItem||{}).pageIx=nt-1),G===P.length-1&&F+ot-s[nt-1]>K&&F>s[nt-1]&&(s.push(F),f.pageIx=nt),F!==n&&(n=F)}),H||(H=t.clipRect=a.clipRect(0,w-2,9999,0),t.contentGroup.clip(H)),z(K),m||(this.nav=m=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,B,B).add(m),I("upTracker").on("click",function(){t.scroll(-1,at)}),this.pager=a.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&J.style&&this.pager.css(J.style),this.pager.add(m),this.down=a.symbol("triangle-down",0,0,B,B).add(m),I("downTracker").on("click",function(){t.scroll(1,at)})),t.scroll(0),e=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,p=a.length,E=this.clipHeight,r=this.options.navigation,w=this.pager,$=this.padding;let J=this.currentPage+e;J>p&&(J=p),0<J&&(typeof t<"u"&&M(t,i),this.nav.attr({translateX:$,translateY:E+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(at){at.attr({class:J===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),w.attr({text:J+"/"+p}),[this.down,this.downTracker].forEach(function(at){at.attr({x:18+this.pager.getBBox().width,class:J===p?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:J===1?r.inactiveColor:r.activeColor}),this.upTracker.css({cursor:J===1?"default":"pointer"}),this.down.attr({fill:J===p?r.inactiveColor:r.activeColor}),this.downTracker.css({cursor:J===p?"default":"pointer"})),this.scrollOffset=-a[J-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=J,this.positionCheckboxes(),e=X(k(t,i.renderer.globalAnimation,!0)),u(()=>{g(this,"afterScroll",{currentPage:J})},e.duration))}setItemEvents(e,t,i){const a=this,p=e.legendItem||{},E=a.chart.renderer.boxWrapper,r=e instanceof q,w="highcharts-legend-"+(r?"point":"series")+"-active",$=a.chart.styledMode;i=i?[t,p.symbol]:[p.group];const J=at=>{a.allItems.forEach(B=>{e!==B&&[B].concat(B.linkedSeries||[]).forEach(s=>{s.setState(at,!r)})})};for(const at of i)at&&at.on("mouseover",function(){e.visible&&J("inactive"),e.setState("hover"),e.visible&&E.addClass(w),$||t.css(a.options.itemHoverStyle)}).on("mouseout",function(){a.chart.styledMode||t.css(y(e.visible?a.itemStyle:a.itemHiddenStyle)),J(""),E.removeClass(w),e.setState()}).on("click",function(B){const s=function(){e.setVisible&&e.setVisible(),J(e.visible?"inactive":"")};E.removeClass(w),B={browserEvent:B},e.firePointEvent?e.firePointEvent("legendItemClick",B,s):g(e,"legendItemClick",B,s)})}createCheckboxForItem(e){e.checkbox=_("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),b(e.checkbox,"click",function(t){g(e.series||e,"checkboxClick",{checked:t.target.checked,item:e},function(){e.select()})})}}return function(d){const e=[];d.compose=function(t){Y.pushUnique(e,t)&&b(t,"beforeMargins",function(){this.legend=new d(this,this.options.legend)})}}(h||(h={})),h}),it(C,"Core/Legend/LegendSymbol.js",[C["Core/Utilities.js"]],function(j){const{extend:O,merge:W,pick:q}=j;var Q;return function(Y){Y.lineMarker=function(X,M){M=this.legendItem=this.legendItem||{};var R=this.options;const N=X.symbolWidth,x=X.symbolHeight,b=x/2,_=this.chart.renderer,A=M.group;X=X.baseline-Math.round(.3*X.fontMetrics.b);let c={},v=R.marker,S=0;this.chart.styledMode||(c={"stroke-width":Math.min(R.lineWidth||0,24)},R.dashStyle?c.dashstyle=R.dashStyle:R.linecap!=="square"&&(c["stroke-linecap"]="round")),M.line=_.path().addClass("highcharts-graph").attr(c).add(A),c["stroke-linecap"]&&(S=Math.min(M.line.strokeWidth(),N)/2),N&&M.line.attr({d:[["M",S,X],["L",N-S,X]]}),v&&v.enabled!==!1&&N&&(R=Math.min(q(v.radius,b),b),this.symbol.indexOf("url")===0&&(v=W(v,{width:x,height:x}),R=0),M.symbol=M=_.symbol(this.symbol,N/2-R,X-R,2*R,2*R,O({context:"legend"},v)).addClass("highcharts-point").add(A),M.isMarker=!0)},Y.rectangle=function(X,M){M=M.legendItem||{};const R=X.symbolHeight,N=X.options.squareSymbol;M.symbol=this.chart.renderer.rect(N?(X.symbolWidth-R)/2:0,X.baseline-R+1,N?R:X.symbolWidth,R,q(X.options.symbolRadius,R/2)).addClass("highcharts-point").attr({zIndex:3}).add(M.group)}}(Q||(Q={})),Q}),it(C,"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:j}=this.series.chart;return typeof this.y!="number"?"":j(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"}}),it(C,"Core/Series/SeriesRegistry.js",[C["Core/Globals.js"],C["Core/Defaults.js"],C["Core/Series/Point.js"],C["Core/Utilities.js"]],function(j,O,W,q){const{defaultOptions:Q}=O,{extendClass:Y,merge:X}=q;var M;return function(R){function N(x,b){const _=Q.plotOptions||{},A=b.defaultOptions,c=b.prototype;c.type=x,c.pointClass||(c.pointClass=W),A&&(_[x]=A),R.seriesTypes[x]=b}R.seriesTypes=j.seriesTypes,R.registerSeriesType=N,R.seriesType=function(x,b,_,A,c){const v=Q.plotOptions||{};return b=b||"",v[x]=X(v[b],_),N(x,Y(R.seriesTypes[b]||function(){},A)),R.seriesTypes[x].prototype.type=x,c&&(R.seriesTypes[x].prototype.pointClass=Y(W,c)),R.seriesTypes[x]}}(M||(M={})),M}),it(C,"Core/Series/Series.js",[C["Core/Animation/AnimationUtilities.js"],C["Core/Defaults.js"],C["Core/Foundation.js"],C["Core/Globals.js"],C["Core/Legend/LegendSymbol.js"],C["Core/Series/Point.js"],C["Core/Series/SeriesDefaults.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Renderer/SVG/SVGElement.js"],C["Core/Utilities.js"]],function(j,O,W,q,Q,Y,X,M,R,N){const{animObject:x,setAnimation:b}=j,{defaultOptions:_}=O,{registerEventOptions:A}=W,{hasTouch:c,svg:v,win:S}=q,{seriesTypes:g}=M,{arrayMax:L,arrayMin:y,clamp:k,correctFloat:o,defined:l,diffObjects:u,erase:h,error:d,extend:e,find:t,fireEvent:i,getClosestDistance:a,getNestedProperty:p,insertItem:E,isArray:r,isNumber:w,isString:$,merge:J,objectEach:at,pick:B,removeEvent:s,splat:P,syncTimeout:z}=N;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,f){i(this,"init",{options:f});const m=this,H=n.series;this.eventsToUnbind=[],m.chart=n,m.options=m.setOptions(f),f=m.options,m.linkedSeries=[],m.bindAxes(),e(m,{name:f.name,state:"",visible:f.visible!==!1,selected:f.selected===!0}),A(this,f);const F=f.events;(F&&F.click||f.point&&f.point.events&&f.point.events.click||f.allowPointSelect)&&(n.runTrackerClick=!0),m.getColor(),m.getSymbol(),m.parallelArrays.forEach(function(ot){m[ot+"Data"]||(m[ot+"Data"]=[])}),m.isCartesian&&(n.hasCartesianSeries=!0);let G;H.length&&(G=H[H.length-1]),m._i=B(G&&G._i,-1)+1,m.opacity=m.options.opacity,n.orderItems("series",E(this,H)),f.dataSorting&&f.dataSorting.enabled?m.setDataSortingOptions():m.points||m.data||m.setData(f.data,!1),i(this,"afterInit")}is(n){return g[n]&&this instanceof g[n]}bindAxes(){const n=this,f=n.options,m=n.chart;let H;i(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(F){m[F].forEach(function(G){H=G.options,(B(f[F],0)===G.index||typeof f[F]<"u"&&f[F]===H.id)&&(E(n,G.series),n[F]=G,G.isDirty=!0)}),n[F]||n.optionalAxis===F||d(18,!0,m)})}),i(this,"afterBindAxes")}updateParallelArrays(n,f,m){const H=n.series,F=w(f)?function(G){const ot=G==="y"&&H.toYData?H.toYData(n):n[G];H[G+"Data"][f]=ot}:function(G){Array.prototype[f].apply(H[G+"Data"],m)};H.parallelArrays.forEach(F)}hasData(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0<this.yData.length}autoIncrement(n){var f=this.options;const m=f.pointIntervalUnit,H=f.relativeXValue,F=this.chart.time;let G=this.xIncrement,ot;return G=B(G,f.pointStart,0),this.pointInterval=ot=B(this.pointInterval,f.pointInterval,1),H&&w(n)&&(ot*=n),m&&(f=new F.Date(G),m==="day"?F.set("Date",f,F.get("Date",f)+ot):m==="month"?F.set("Month",f,F.get("Month",f)+ot):m==="year"&&F.set("FullYear",f,F.get("FullYear",f)+ot),ot=f.getTime()-G),H&&w(n)?G+ot:(this.xIncrement=G+ot,G)}setDataSortingOptions(){const n=this.options;e(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),l(n.pointRange)||(n.pointRange=1)}setOptions(n){var f,m;const H=this.chart;var F=H.options.plotOptions,G=H.userOptions||{};const ot=J(n);n=H.styledMode;const nt={plotOptions:F,userOptions:ot};i(this,"setOptions",nt);const lt=nt.plotOptions[this.type];G=G.plotOptions||{};const ht=G.series||{},pt=_.plotOptions[this.type]||{},D=G[this.type]||{};return this.userOptions=nt.userOptions,F=J(lt,F.series,D,ot),this.tooltipOptions=J(_.tooltip,(f=_.plotOptions.series)===null||f===void 0?void 0:f.tooltip,pt==null?void 0:pt.tooltip,H.userOptions.tooltip,(m=G.series)===null||m===void 0?void 0:m.tooltip,D.tooltip,ot.tooltip),this.stickyTracking=B(ot.stickyTracking,D.stickyTracking,ht.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:F.stickyTracking),lt.marker===null&&delete F.marker,this.zoneAxis=F.zoneAxis,m=this.zones=(F.zones||[]).slice(),!F.negativeColor&&!F.negativeFillColor||F.zones||(f={value:F[this.zoneAxis+"Threshold"]||F.threshold||0,className:"highcharts-negative"},n||(f.color=F.negativeColor,f.fillColor=F.negativeFillColor),m.push(f)),m.length&&l(m[m.length-1].value)&&m.push(n?{}:{color:this.color,fillColor:this.fillColor}),i(this,"afterSetOptions",{options:F}),F}getName(){return B(this.options.name,"Series "+(this.index+1))}getCyclic(n,f,m){const H=this.chart,F=`${n}Index`,G=`${n}Counter`,ot=(m==null?void 0:m.length)||H.options.chart.colorCount;if(!f){var nt=B(n==="color"?this.options.colorIndex:void 0,this[F]);l(nt)||(H.series.length||(H[G]=0),nt=H[G]%ot,H[G]+=1),m&&(f=m[nt])}typeof nt<"u"&&(this[F]=nt),this[n]=f}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||_.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,f){const m=n.id,H=n.x,F=this.points;var G=this.options.dataSorting,ot;let nt,lt;if(m)G=this.chart.get(m),G instanceof Y&&(ot=G);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(ot=ht=>!ht.touched&&ht.index===n.index,G&&G.matchByName?ot=ht=>!ht.touched&&ht.name===n.name:this.options.relativeXValue&&(ot=ht=>!ht.touched&&ht.options.x===n.x),ot=t(F,ot),!ot))return;return ot&&(lt=ot&&ot.index,typeof lt<"u"&&(nt=!0)),typeof lt>"u"&&w(H)&&(lt=this.xData.indexOf(H,f)),lt!==-1&&typeof lt<"u"&&this.cropped&&(lt=lt>=this.cropStart?lt-this.cropStart:lt),!nt&&w(lt)&&F[lt]&&F[lt].touched&&(lt=void 0),lt}updateData(n,f){const m=this.options,H=m.dataSorting,F=this.points,G=[],ot=this.requireSorting,nt=n.length===F.length;let lt,ht,pt,D=!0;if(this.xIncrement=null,n.forEach(function(T,tt){var V=l(T)&&this.pointClass.prototype.optionsToObject.call({series:this},T)||{};const st=V.x;V.id||w(st)?(V=this.findPointIndex(V,pt),V===-1||typeof V>"u"?G.push(T):F[V]&&T!==m.data[V]?(F[V].update(T,!1,null,!1),F[V].touched=!0,ot&&(pt=V+1)):F[V]&&(F[V].touched=!0),(!nt||tt!==V||H&&H.enabled||this.hasDerivedData)&&(lt=!0)):G.push(T)},this),lt)for(n=F.length;n--;)(ht=F[n])&&!ht.touched&&ht.remove&&ht.remove(!1,f);else!nt||H&&H.enabled?D=!1:(n.forEach(function(T,tt){T===F[tt].y||F[tt].destroyed||F[tt].update(T,!1,null,!1)}),G.length=0);return F.forEach(function(T){T&&(T.touched=!1)}),D?(G.forEach(function(T){this.addPoint(T,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=L(this.xData),this.autoIncrement()),!0):!1}setData(n,f=!0,m,H){var F;const G=this,ot=G.points,nt=ot&&ot.length||0,lt=G.options,ht=G.chart,pt=lt.dataSorting,D=G.xAxis,T=lt.turboThreshold,tt=this.xData,V=this.yData;var st=G.pointArrayMap;st=st&&st.length;const dt=lt.keys;let ct,yt=0,vt=1,gt=null;if(!ht.options.chart.allowMutatingData){lt.data&&delete G.options.data,G.userOptions.data&&delete G.userOptions.data;var xt=J(!0,n)}if(n=xt||n||[],xt=n.length,pt&&pt.enabled&&(n=this.sortData(n)),ht.options.chart.allowMutatingData&&H!==!1&&xt&&nt&&!G.cropped&&!G.hasGroupedData&&G.visible&&!G.boosted&&(ct=this.updateData(n,m)),!ct){if(G.xIncrement=null,G.colorCounter=0,this.parallelArrays.forEach(function(Mt){G[Mt+"Data"].length=0}),T&&xt>T)if(gt=G.getFirstValidPoint(n),w(gt))for(m=0;m<xt;m++)tt[m]=this.autoIncrement(),V[m]=n[m];else if(r(gt))if(st)if(gt.length===st)for(m=0;m<xt;m++)tt[m]=this.autoIncrement(),V[m]=n[m];else for(m=0;m<xt;m++)H=n[m],tt[m]=H[0],V[m]=H.slice(1,st+1);else if(dt&&(yt=dt.indexOf("x"),vt=dt.indexOf("y"),yt=0<=yt?yt:0,vt=0<=vt?vt:1),gt.length===1&&(vt=0),yt===vt)for(m=0;m<xt;m++)tt[m]=this.autoIncrement(),V[m]=n[m][vt];else for(m=0;m<xt;m++)H=n[m],tt[m]=H[yt],V[m]=H[vt];else d(12,!1,ht);else for(m=0;m<xt;m++)H={series:G},G.pointClass.prototype.applyOptions.apply(H,[n[m]]),G.updateParallelArrays(H,m);for(V&&$(V[0])&&d(14,!0,ht),G.data=[],G.options.data=G.userOptions.data=n,m=nt;m--;)(F=ot[m])===null||F===void 0||F.destroy();D&&(D.minRange=D.userMinRange),G.isDirty=ht.isDirtyBox=!0,G.isDirtyData=!!ot,m=!1}lt.legendType==="point"&&(this.processData(),this.generatePoints()),f&&ht.redraw(m)}sortData(n){const f=this,m=f.options.dataSorting.sortKey||"y",H=function(F,G){return l(G)&&F.pointClass.prototype.optionsToObject.call({series:F},G)||{}};return n.forEach(function(F,G){n[G]=H(f,F),n[G].index=G},this),n.concat().sort((F,G)=>(F=p(m,F),G=p(m,G),G<F?-1:G>F?1:0)).forEach(function(F,G){F.x=G},this),f.linkedSeries&&f.linkedSeries.forEach(function(F){const G=F.options,ot=G.data;G.dataSorting&&G.dataSorting.enabled||!ot||(ot.forEach(function(nt,lt){ot[lt]=H(F,nt),n[lt]&&(ot[lt].x=n[lt].x,ot[lt].index=lt)}),F.setData(ot,!1))}),n}getProcessedData(n){const f=this;var m=f.xAxis,H=f.options;const F=H.cropThreshold,G=n||f.getExtremesFromAll||H.getExtremesFromAll,ot=m==null?void 0:m.logarithmic,nt=f.isCartesian;let lt=0,ht;n=f.xData,H=f.yData;let pt=!1;const D=n.length;if(m){var T=m.getExtremes();ht=T.min,T=T.max,pt=!(!m.categories||m.names.length)}if(nt&&f.sorted&&!G&&(!F||D>F||f.forceCrop)){if(n[D-1]<ht||n[0]>T)n=[],H=[];else if(f.yData&&(n[0]<ht||n[D-1]>T)){var tt=this.cropData(f.xData,f.yData,ht,T);n=tt.xData,H=tt.yData,lt=tt.start,tt=!0}}return m=a([ot?n.map(ot.log2lin):n],()=>f.requireSorting&&!pt&&d(15,!1,f.chart)),{xData:n,yData:H,cropped:tt,cropStart:lt,closestPointRange:m}}processData(n){const f=this.xAxis;if(this.isCartesian&&!this.isDirty&&!f.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,f,m,H,F){const G=n.length;let ot,nt=0,lt=G;for(F=B(F,this.cropShoulder),ot=0;ot<G;ot++)if(n[ot]>=m){nt=Math.max(0,ot-F);break}for(m=ot;m<G;m++)if(n[m]>H){lt=m+F;break}return{xData:n.slice(nt,lt),yData:f.slice(nt,lt),start:nt,end:lt}}generatePoints(){var n=this.options;const f=this.processedData||n.data,m=this.processedXData,H=this.processedYData,F=this.pointClass,G=m.length,ot=this.cropStart||0,nt=this.hasGroupedData,lt=n.keys,ht=[];n=n.dataGrouping&&n.dataGrouping.groupAll?ot:0;let pt,D,T,tt=this.data;if(!tt&&!nt){var V=[];V.length=f.length,tt=this.data=V}for(lt&&nt&&(this.options.keys=!1),T=0;T<G;T++)V=ot+T,nt?(D=new F().init(this,[m[T]].concat(P(H[T]))),D.dataGroup=this.groupMap[n+T],D.dataGroup.options&&(D.options=D.dataGroup.options,e(D,D.dataGroup.options),delete D.dataLabels)):(D=tt[V])||typeof f[V]>"u"||(tt[V]=D=new F().init(this,f[V],m[T])),D&&(D.index=nt?n+T:V,ht[T]=D);if(this.options.keys=lt,tt&&(G!==(pt=tt.length)||nt))for(T=0;T<pt;T++)T!==ot||nt||(T+=G),tt[T]&&(tt[T].destroyElements(),tt[T].plotX=void 0);this.data=tt,this.points=ht,i(this,"afterGeneratePoints")}getXExtremes(n){return{min:y(n),max:L(n)}}getExtremes(n,f){const m=this.xAxis;var H=this.yAxis;const F=this.processedXData||this.xData,G=[],ot=this.requireSorting?this.cropShoulder:0;H=H?H.positiveValuesOnly:!1;let nt,lt=0,ht=0,pt=0;n=n||this.stackedYData||this.processedYData||[];const D=n.length;if(m){var T=m.getExtremes();lt=T.min,ht=T.max}for(nt=0;nt<D;nt++){var tt=F[nt];T=n[nt];var V=(w(T)||r(T))&&(T.length||0<T||!H);if(tt=f||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!m||(F[nt+ot]||tt)>=lt&&(F[nt-ot]||tt)<=ht,V&&tt)if(V=T.length)for(;V--;)w(T[V])&&(G[pt++]=T[V]);else G[pt++]=T}return n={activeYData:G,dataMin:y(G),dataMax:L(G)},i(this,"afterGetExtremes",{dataExtremes:n}),n}applyExtremes(){const n=this.getExtremes();return this.dataMin=n.dataMin,this.dataMax=n.dataMax,n}getFirstValidPoint(n){const f=n.length;let m=0,H=null;for(;H===null&&m<f;)H=n[m],m++;return H}translate(){var n;this.processedXData||this.processData(),this.generatePoints();var f=this.options;const m=f.stacking,H=this.xAxis,F=H.categories,G=this.enabledDataSorting,ot=this.yAxis,nt=this.points,lt=nt.length,ht=this.pointPlacementToXValue(),pt=!!ht,D=f.threshold;f=f.startFromThreshold?D:0;let T,tt,V,st,dt=Number.MAX_VALUE;for(T=0;T<lt;T++){const ct=nt[T],yt=ct.x;let vt,gt,xt=ct.y,Mt=ct.low;const St=m&&((n=ot.stacking)===null||n===void 0?void 0:n.stacks[(this.negStacks&&xt<(f?0:D)?"-":"")+this.stackKey]);tt=H.translate(yt,!1,!1,!1,!0,ht),ct.plotX=w(tt)?o(k(tt,-1e5,1e5)):void 0,m&&this.visible&&St&&St[yt]&&(st=this.getStackIndicator(st,yt,this.index),!ct.isNull&&st.key&&(vt=St[yt],gt=vt.points[st.key]),vt&&r(gt)&&(Mt=gt[0],xt=gt[1],Mt===f&&st.key===St[yt].base&&(Mt=B(w(D)?D:ot.min)),ot.positiveValuesOnly&&l(Mt)&&0>=Mt&&(Mt=void 0),ct.total=ct.stackTotal=B(vt.total),ct.percentage=l(ct.y)&&vt.total?ct.y/vt.total*100:void 0,ct.stackY=xt,this.irregularWidths||vt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),ct.yBottom=l(Mt)?k(ot.translate(Mt,!1,!0,!1,!0),-1e5,1e5):void 0,this.dataModify&&(xt=this.dataModify.modifyValue(xt,T));let wt;w(xt)&&ct.plotX!==void 0&&(wt=ot.translate(xt,!1,!0,!1,!0),wt=w(wt)?k(wt,-1e5,1e5):void 0),ct.plotY=wt,ct.isInside=this.isPointInside(ct),ct.clientX=pt?o(H.translate(yt,!1,!1,!1,!0,ht)):tt,ct.negative=(ct.y||0)<(D||0),ct.category=B(F&&F[ct.x],ct.x),ct.isNull||ct.visible===!1||(typeof V<"u"&&(dt=Math.min(dt,Math.abs(tt-V))),V=tt),ct.zone=this.zones.length?ct.getZone():void 0,!ct.graphic&&this.group&&G&&(ct.isNew=!0)}this.closestPointRangePx=dt,i(this,"afterTranslate")}getValidPoints(n,f,m){const H=this.chart;return(n||this.points||[]).filter(function(F){const{plotX:G,plotY:ot}=F;return!m&&(F.isNull||!w(ot))||f&&!H.isInsidePlot(G,ot,{inverted:H.inverted})?!1:F.visible!==!1})}getClipBox(){const{chart:n,xAxis:f,yAxis:m}=this,H=J(n.clipBox);return f&&f.len!==n.plotSizeX&&(H.width=f.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:f,markerGroup:m}=this,H=n.sharedClips,F=n.renderer,G=this.getClipBox(),ot=this.getSharedClipKey();let nt=H[ot];nt?nt.animate(G):H[ot]=nt=F.clipRect(G),f&&f.clip(this.options.clip===!1?void 0:nt),m&&m.clip()}animate(n){const{chart:f,group:m,markerGroup:H}=this,F=f.inverted;var G=x(this.options.animation),ot=[this.getSharedClipKey(),G.duration,G.easing,G.defer].join();let nt=f.sharedClips[ot],lt=f.sharedClips[ot+"m"];if(n&&m)G=this.getClipBox(),nt?nt.attr("height",G.height):(G.width=0,F&&(G.x=f.plotHeight),nt=f.renderer.clipRect(G),f.sharedClips[ot]=nt,lt=f.renderer.clipRect({x:-99,y:-99,width:F?f.plotWidth+199:99,height:F?99:f.plotHeight+199}),f.sharedClips[ot+"m"]=lt),m.clip(nt),H&&H.clip(lt);else if(nt&&!nt.hasClass("highcharts-animating")){ot=this.getClipBox();const ht=G.step;H&&H.element.childNodes.length&&(G.step=function(pt,D){ht&&ht.apply(D,arguments),D.prop==="width"&&lt&&lt.element&&lt.attr(F?"height":"width",pt+99)}),nt.addClass("highcharts-animating").animate(ot,G)}}afterAnimate(){this.setClip(),at(this.chart.sharedClips,(n,f,m)=>{n&&!this.chart.container.querySelector(`[clip-path="url(#${n.id})"]`)&&(n.destroy(),delete m[f])}),this.finishedAnimating=!0,i(this,"afterAnimate")}drawPoints(n=this.points){const f=this.chart,m=f.styledMode,{colorAxis:H,options:F}=this,G=F.marker,ot=this[this.specialGroup||"markerGroup"],nt=this.xAxis,lt=B(G.enabled,!nt||nt.isRadial?!0:null,this.closestPointRangePx>=G.enabledThreshold*G.radius);let ht,pt,D,T,tt,V;if(G.enabled!==!1||this._hasPointMarkers)for(ht=0;ht<n.length;ht++){pt=n[ht],T=(D=pt.graphic)?"animate":"attr";var st=pt.marker||{};if(tt=!!pt.marker,(lt&&typeof st.enabled>"u"||st.enabled)&&!pt.isNull&&pt.visible!==!1){const dt=B(st.symbol,this.symbol,"rect");V=this.markerAttribs(pt,pt.selected&&"select"),this.enabledDataSorting&&(pt.startXPos=nt.reversed?-(V.width||0):nt.width);const ct=pt.isInside!==!1;!D&&ct&&(0<(V.width||0)||pt.hasImage)&&(pt.graphic=D=f.renderer.symbol(dt,V.x,V.y,V.width,V.height,tt?st:G).add(ot),this.enabledDataSorting&&f.hasRendered&&(D.attr({x:pt.startXPos}),T="animate")),D&&T==="animate"&&D[ct?"show":"hide"](ct).animate(V),D&&(st=this.pointAttribs(pt,m||!pt.selected?void 0:"select"),m?H&&D.css({fill:st.fill}):D[T](st)),D&&D.addClass(pt.getClassName(),!0)}else D&&(pt.graphic=D.destroy())}}markerAttribs(n,f){const m=this.options;var H=m.marker;const F=n.marker||{},G=F.symbol||H.symbol,ot={};let nt=B(F.radius,H&&H.radius);return f&&(H=H.states[f],f=F.states&&F.states[f],nt=B(f&&f.radius,H&&H.radius,nt&&nt+(H&&H.radiusPlus||0))),n.hasImage=G&&G.indexOf("url")===0,n.hasImage&&(nt=0),n=n.pos(),w(nt)&&n&&(ot.x=n[0]-nt,ot.y=n[1]-nt,m.crisp&&(ot.x=Math.floor(ot.x))),nt&&(ot.width=ot.height=2*nt),ot}pointAttribs(n,f){var m=this.options.marker,H=n&&n.options;const F=H&&H.marker||{};var G=H&&H.color,ot=n&&n.color;const nt=n&&n.zone&&n.zone.color;let lt=this.color;return n=B(F.lineWidth,m.lineWidth),H=1,lt=G||nt||ot||lt,G=F.fillColor||m.fillColor||lt,ot=F.lineColor||m.lineColor||lt,f=f||"normal",m=m.states[f]||{},f=F.states&&F.states[f]||{},n=B(f.lineWidth,m.lineWidth,n+B(f.lineWidthPlus,m.lineWidthPlus,0)),G=f.fillColor||m.fillColor||G,ot=f.lineColor||m.lineColor||ot,H=B(f.opacity,m.opacity,H),{stroke:ot,"stroke-width":n,fill:G,opacity:H}}destroy(n){const f=this,m=f.chart,H=/AppleWebKit\/533/.test(S.navigator.userAgent),F=f.data||[];let G,ot,nt,lt;for(i(f,"destroy",{keepEventsForUpdate:n}),this.removeEvents(n),(f.axisTypes||[]).forEach(function(ht){(lt=f[ht])&&lt.series&&(h(lt.series,f),lt.isDirty=lt.forceRedraw=!0)}),f.legendItem&&f.chart.legend.destroyItem(f),ot=F.length;ot--;)(nt=F[ot])&&nt.destroy&&nt.destroy();f.clips&&f.clips.forEach(ht=>ht.destroy()),N.clearTimeout(f.animationTimeout),at(f,function(ht,pt){ht instanceof R&&!ht.survive&&(G=H&&pt==="group"?"hide":"destroy",ht[G]())}),m.hoverSeries===f&&(m.hoverSeries=void 0),h(m.series,f),m.orderItems("series"),at(f,function(ht,pt){n&&pt==="hcEvents"||delete f[pt]})}applyZones(){const n=this,f=this.chart,m=f.renderer,H=this.zones,F=this.clips||[],G=this.graph,ot=this.area,nt=Math.max(f.plotWidth,f.plotHeight),lt=this[(this.zoneAxis||"y")+"Axis"],ht=f.inverted;let pt,D,T,tt,V,st,dt,ct,yt,vt,gt,xt=!1;H.length&&(G||ot)&&lt&&typeof lt.min<"u"?(V=lt.reversed,st=lt.horiz,G&&!this.showLine&&G.hide(),ot&&ot.hide(),tt=lt.getExtremes(),H.forEach(function(Mt,St){pt=V?st?f.plotWidth:0:st?0:lt.toPixels(tt.min)||0,pt=k(B(D,pt),0,nt),D=k(Math.round(lt.toPixels(B(Mt.value,tt.max),!0)||0),0,nt),xt&&(pt=D=lt.toPixels(tt.max)),dt=Math.abs(pt-D),ct=Math.min(pt,D),yt=Math.max(pt,D),lt.isXAxis?(T={x:ht?yt:ct,y:0,width:dt,height:nt},st||(T.x=f.plotHeight-T.x)):(T={x:0,y:ht?yt:ct,width:nt,height:dt},st&&(T.y=f.plotWidth-T.y)),F[St]?F[St].animate(T):F[St]=m.clipRect(T),vt=n["zone-area-"+St],gt=n["zone-graph-"+St],G&&gt&&gt.clip(F[St]),ot&&vt&&vt.clip(F[St]),xt=Mt.value>tt.max,n.resetZones&&D===0&&(D=void 0)}),this.clips=F):n.visible&&(G&&G.show(),ot&&ot.show())}plotGroup(n,f,m,H,F){let G=this[n];const ot=!G;return m={visibility:m,zIndex:H||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(m.opacity=this.opacity),ot&&(this[n]=G=this.chart.renderer.g().add(F)),G.addClass("highcharts-"+f+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(l(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(G.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),G.attr(m)[ot?"attr":"animate"](this.getPlotBox(f)),G}getPlotBox(n){let f=this.xAxis,m=this.yAxis;const H=this.chart;return n=H.inverted&&!H.polar&&f&&this.invertible!==!1&&n==="series",H.inverted&&(f=m,m=this.xAxis),{translateX:f?f.left:H.plotLeft,translateY:m?m.top:H.plotTop,rotation:n?90:0,rotationOriginX:n?(f.len-m.len)/2:0,rotationOriginY:n?(f.len+m.len)/2:0,scaleX:n?-1:1,scaleY:1}}removeEvents(n){n||s(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(f){f()}),this.eventsToUnbind.length=0)}render(){const n=this;var f=n.chart;const m=n.options,H=x(m.animation),F=n.visible?"inherit":"hidden",G=m.zIndex,ot=n.hasRendered;f=f.seriesGroup;let nt=n.finishedAnimating?0:H.duration;i(this,"render"),n.plotGroup("group","series",F,G,f),n.markerGroup=n.plotGroup("markerGroup","markers",F,G,f),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(),ot||(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,f){const m=this.xAxis,H=this.yAxis,F=this.chart.inverted;return this.searchKDTree({clientX:F?m.len-n.chartY+m.pos:n.chartX-m.pos,plotY:F?H.len-n.chartX+H.pos:n.chartY-H.pos},f,n)}buildKDTree(n){function f(F,G,ot){var nt=F&&F.length;let lt;if(nt)return lt=m.kdAxisArray[G%ot],F.sort(function(ht,pt){return ht[lt]-pt[lt]}),nt=Math.floor(nt/2),{point:F[nt],left:f(F.slice(0,nt),G+1,ot),right:f(F.slice(nt+1),G+1,ot)}}this.buildingKdTree=!0;const m=this,H=-1<m.options.findNearestPointBy.indexOf("y")?2:1;delete m.kdTree,z(function(){m.kdTree=f(m.getValidPoints(null,!m.directTouch),H,H),m.buildingKdTree=!1},m.options.kdNow||n&&n.type==="touchstart"?0:1)}searchKDTree(n,f,m){function H(lt,ht,pt,D){const T=ht.point;var tt=F.kdAxisArray[pt%D];let V=T;var st=l(lt[G])&&l(T[G])?Math.pow(lt[G]-T[G],2):null,dt=l(lt[ot])&&l(T[ot])?Math.pow(lt[ot]-T[ot],2):null;return dt=(st||0)+(dt||0),T.dist=l(dt)?Math.sqrt(dt):Number.MAX_VALUE,T.distX=l(st)?Math.sqrt(st):Number.MAX_VALUE,tt=lt[tt]-T[tt],dt=0>tt?"left":"right",st=0>tt?"right":"left",ht[dt]&&(dt=H(lt,ht[dt],pt+1,D),V=dt[nt]<V[nt]?dt:T),ht[st]&&Math.sqrt(tt*tt)<V[nt]&&(lt=H(lt,ht[st],pt+1,D),V=lt[nt]<V[nt]?lt:V),V}const F=this,G=this.kdAxisArray[0],ot=this.kdAxisArray[1],nt=f?"distX":"dist";if(f=-1<F.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(m),this.kdTree)return H(n,this.kdTree,f,f)}pointPlacementToXValue(){const{options:{pointPlacement:n,pointRange:f},xAxis:m}=this;let H=n;return H==="between"&&(H=m.reversed?-.5:.5),w(H)?H*(f||m.pointRange):0}isPointInside(n){const{chart:f,xAxis:m,yAxis:H}=this;return typeof n.plotY<"u"&&typeof n.plotX<"u"&&0<=n.plotY&&n.plotY<=(H?H.len:f.plotHeight)&&0<=n.plotX&&n.plotX<=(m?m.len:f.plotWidth)}drawTracker(){const n=this,f=n.options,m=f.trackByArea,H=[].concat(m?n.areaPath:n.graphPath),F=n.chart,G=F.pointer,ot=F.renderer,nt=F.options.tooltip.snap,lt=n.tracker,ht=function(D){f.enableMouseTracking&&F.hoverSeries!==n&&n.onMouseOver()},pt="rgba(192,192,192,"+(v?1e-4:.002)+")";lt?lt.attr({d:H}):n.graph&&(n.tracker=ot.path(H).attr({visibility:n.visible?"inherit":"hidden",zIndex:2}).addClass(m?"highcharts-tracker-area":"highcharts-tracker-line").add(n.group),F.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(D){D&&(D.addClass("highcharts-tracker").on("mouseover",ht).on("mouseout",function(T){G.onTrackerMouseOut(T)}),f.cursor&&!F.styledMode&&D.css({cursor:f.cursor}),c)&&D.on("touchstart",ht)})),i(this,"afterDrawTracker")}addPoint(n,f,m,H,F){const G=this.options,ot=this.data,nt=this.chart;var lt=this.xAxis;lt=lt&&lt.hasNames&&lt.names;const ht=G.data,pt=this.xData;let D,T;f=B(f,!0);const tt={series:this};this.pointClass.prototype.applyOptions.apply(tt,[n]);const V=tt.x;if(T=pt.length,this.requireSorting&&V<pt[T-1])for(D=!0;T&&pt[T-1]>V;)T--;this.updateParallelArrays(tt,"splice",[T,0,0]),this.updateParallelArrays(tt,T),lt&&tt.name&&(lt[V]=tt.name),ht.splice(T,0,n),(D||this.processedData)&&(this.data.splice(T,0,null),this.processData()),G.legendType==="point"&&this.generatePoints(),m&&(ot[0]&&ot[0].remove?ot[0].remove(!1):(ot.shift(),this.updateParallelArrays(tt,"shift"),ht.shift())),F!==!1&&i(this,"addPoint",{point:tt}),this.isDirtyData=this.isDirty=!0,f&&nt.redraw(H)}removePoint(n,f,m){const H=this,F=H.data,G=F[n],ot=H.points,nt=H.chart,lt=function(){ot&&ot.length===F.length&&ot.splice(n,1),F.splice(n,1),H.options.data.splice(n,1),H.updateParallelArrays(G||{series:H},"splice",[n,1]),G&&G.destroy(),H.isDirty=!0,H.isDirtyData=!0,f&&nt.redraw()};b(m,nt),f=B(f,!0),G?G.firePointEvent("remove",null,lt):lt()}remove(n,f,m,H){function F(){G.destroy(H),ot.isDirtyLegend=ot.isDirtyBox=!0,ot.linkSeries(H),B(n,!0)&&ot.redraw(f)}const G=this,ot=G.chart;m!==!1?i(G,"remove",null,F):F()}update(n,f){n=u(n,this.userOptions),i(this,"update",{options:n});const m=this,H=m.chart;var F=m.userOptions;const G=m.initialType||m.type;var ot=H.options.plotOptions;const nt=g[G].prototype;var lt=m.finishedAnimating&&{animation:!1};const ht={};let pt,D=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],T=n.type||F.type||H.options.chart.type;const tt=!(this.hasDerivedData||T&&T!==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(T=T||G,tt&&(D.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),n.visible!==!1&&D.push("area","graph"),m.parallelArrays.forEach(function(V){D.push(V+"Data")}),n.data&&(n.dataSorting&&e(m.options.dataSorting,n.dataSorting),this.setData(n.data,!1))),n=J(F,lt,{index:typeof F.index>"u"?m.index:F.index,pointStart:B(ot&&ot.series&&ot.series.pointStart,F.pointStart,m.xData[0])},!tt&&{data:m.options.data},n),tt&&n.data&&(n.data=m.options.data),D=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(D),D.forEach(function(V){D[V]=m[V],delete m[V]}),ot=!1,g[T]){if(ot=T!==m.type,m.remove(!1,!1,!1,!0),ot)if(Object.setPrototypeOf)Object.setPrototypeOf(m,g[T].prototype);else{lt=Object.hasOwnProperty.call(m,"hcEvents")&&m.hcEvents;for(pt in nt)m[pt]=void 0;e(m,g[T].prototype),lt?m.hcEvents=lt:delete m.hcEvents}}else d(17,!0,H,{missingModuleFor:T});if(D.forEach(function(V){m[V]=D[V]}),m.init(H,n),tt&&this.points){if(n=m.options,n.visible===!1)ht.graphic=1,ht.dataLabel=1;else if(!m._hasPointLabels){const{marker:V,dataLabels:st}=n;F=F.marker||{},!V||V.enabled!==!1&&F.symbol===V.symbol&&F.height===V.height&&F.width===V.width||(ht.graphic=1),st&&st.enabled===!1&&(ht.dataLabel=1)}for(const V of this.points)V&&V.series&&(V.resolveColor(),Object.keys(ht).length&&V.destroyElements(ht),n.showInLegend===!1&&V.legendItem&&H.legend.destroyItem(V))}m.initialType=G,H.linkSeries(),ot&&m.linkedSeries.length&&(m.isDirtyData=!0),i(this,"afterUpdate"),B(f,!0)&&H.redraw(tt?void 0:!1)}setName(n){this.name=this.options.name=this.userOptions.name=n,this.chart.isDirtyLegend=!0}hasOptionChanged(n){const f=this.options[n],m=this.chart.options.plotOptions,H=this.userOptions[n];return H?f!==H:f!==B(m&&m[this.type]&&m[this.type][n],m&&m.series&&m.series[n],f)}onMouseOver(){const n=this.chart,f=n.hoverSeries;n.pointer.setHoverChartIndex(),f&&f!==this&&f.onMouseOut(),this.options.events.mouseOver&&i(this,"mouseOver"),this.setState("hover"),n.hoverSeries=this}onMouseOut(){const n=this.options,f=this.chart,m=f.tooltip,H=f.hoverPoint;f.hoverSeries=null,H&&H.onMouseOut(),this&&n.events.mouseOut&&i(this,"mouseOut"),!m||this.stickyTracking||m.shared&&!this.noSharedTooltip||m.hide(),f.series.forEach(function(F){F.setState("",!0)})}setState(n,f){const m=this;var H=m.options;const F=m.graph,G=H.inactiveOtherPoints,ot=H.states,nt=B(ot[n||"normal"]&&ot[n||"normal"].animation,m.chart.options.chart.animation);let lt=H.lineWidth,ht=0,pt=H.opacity;if(n=n||"",m.state!==n&&([m.group,m.markerGroup,m.dataLabelsGroup].forEach(function(D){D&&(m.state&&D.removeClass("highcharts-series-"+m.state),n&&D.addClass("highcharts-series-"+n))}),m.state=n,!m.chart.styledMode)){if(ot[n]&&ot[n].enabled===!1)return;if(n&&(lt=ot[n].lineWidth||lt+(ot[n].lineWidthPlus||0),pt=B(ot[n].opacity,pt)),F&&!F.dashstyle&&w(lt))for(H={"stroke-width":lt},F.animate(H,nt);m["zone-graph-"+ht];)m["zone-graph-"+ht].animate(H,nt),ht+=1;G||[m.group,m.markerGroup,m.dataLabelsGroup,m.labelBySeries].forEach(function(D){D&&D.animate({opacity:pt},nt)})}f&&G&&m.points&&m.setAllPointsToState(n||void 0)}setAllPointsToState(n){this.points.forEach(function(f){f.setState&&f.setState(n)})}setVisible(n,f){const m=this,H=m.chart,F=H.options.chart.ignoreHiddenSeries,G=m.visible,ot=(m.visible=n=m.options.visible=m.userOptions.visible=typeof n>"u"?!G:n)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(nt){m[nt]&&m[nt][ot]()}),(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)}),F&&(H.isDirtyBox=!0),i(m,ot),f!==!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,f,m={}){return m.series=this,m.visiblePlotOnly=!0,this.chart.isInsidePlot(n,f,m)}drawLegendSymbol(n,f){var m;(m=Q[this.options.legendSymbol||"rectangle"])===null||m===void 0||m.call(this,n,f)}}return I.defaultOptions=X,I.types=M.seriesTypes,I.registerType=M.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}),M.series=I,I}),it(C,"Core/Chart/Chart.js",[C["Core/Animation/AnimationUtilities.js"],C["Core/Axis/Axis.js"],C["Core/Defaults.js"],C["Core/Templating.js"],C["Core/Foundation.js"],C["Core/Globals.js"],C["Core/Renderer/RendererRegistry.js"],C["Core/Series/Series.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Renderer/SVG/SVGRenderer.js"],C["Core/Time.js"],C["Core/Utilities.js"],C["Core/Renderer/HTML/AST.js"]],function(j,O,W,q,Q,Y,X,M,R,N,x,b,_){const{animate:A,animObject:c,setAnimation:v}=j,{defaultOptions:S,defaultTime:g}=W,{numberFormat:L}=q,{registerEventOptions:y}=Q,{charts:k,doc:o,marginNames:l,svg:u,win:h}=Y,{seriesTypes:d}=R,{addEvent:e,attr:t,createElement:i,css:a,defined:p,diffObjects:E,discardElement:r,erase:w,error:$,extend:J,find:at,fireEvent:B,getStyle:s,isArray:P,isNumber:z,isObject:I,isString:K,merge:n,objectEach:f,pick:m,pInt:H,relativeLength:F,removeEvent:G,splat:ot,syncTimeout:nt,uniqueKey:lt}=b;class ht{static chart(D,T,tt){return new ht(D,T,tt)}constructor(D,T,tt){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(D,T,tt)}getArgs(D,T,tt){K(D)||D.nodeName?(this.renderTo=D,this.init(T,tt)):this.init(D,T)}setZoomOptions(){const D=this.options.chart,T=D.zooming;this.zooming=Object.assign(Object.assign({},T),{type:m(D.zoomType,T.type),key:m(D.zoomKey,T.key),pinchType:m(D.pinchType,T.pinchType),singleTouch:m(D.zoomBySingleTouch,T.singleTouch,!1),resetButton:n(T.resetButton,D.resetZoomButton)})}init(D,T){B(this,"init",{args:arguments},function(){const tt=n(S,D),V=tt.chart;this.userOptions=J({},D),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=T,this.isResizing=0,this.options=tt,this.axes=[],this.series=[],this.time=D.time&&Object.keys(D.time).length?new x(D.time):Y.time,this.numberFormatter=V.numberFormatter||L,this.styledMode=V.styledMode,this.hasCartesianSeries=V.showAxes,this.index=k.length,k.push(this),Y.chartCount++,y(this,V),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),B(this,"afterInit"),this.firstRender()})}initSeries(D){var T=this.options.chart;T=D.type||T.type;const tt=d[T];return tt||$(17,!0,this,{missingModuleFor:T}),T=new tt,typeof T.init=="function"&&T.init(this,D),T}setSeriesData(){this.getSeriesOrderByLinks().forEach(function(D){D.points||D.data||!D.enabledDataSorting||D.setData(D.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(D,T){return D.linkedSeries.length||T.linkedSeries.length?T.linkedSeries.length-D.linkedSeries.length:0})}orderItems(D,T=0){const tt=this[D],V=this.options[D]=ot(this.options[D]).slice();if(D=this.userOptions[D]=this.userOptions[D]?ot(this.userOptions[D]).slice():[],this.hasRendered&&(V.splice(T),D.splice(T)),tt)for(let st=T,dt=tt.length;st<dt;++st)(T=tt[st])&&(T.index=st,T instanceof M&&(T.name=T.getName()),T.options.isInternal||(V[st]=T.options,D[st]=T.userOptions))}isInsidePlot(D,T,tt={}){const{inverted:V,plotBox:st,plotLeft:dt,plotTop:ct,scrollablePlotBox:yt}=this;var vt=0;let gt=0;tt.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:vt,scrollTop:gt}=this.scrollingContainer);const xt=tt.series,Mt=tt.visiblePlotOnly&&yt||st;var St=tt.inverted?T:D;if(T=tt.inverted?D:T,D={x:St,y:T,isInsidePlot:!0,options:tt},!tt.ignoreX){const wt=xt&&(V&&!this.polar?xt.yAxis:xt.xAxis)||{pos:dt,len:1/0};St=tt.paneCoordinates?wt.pos+St:dt+St,St>=Math.max(vt+dt,wt.pos)&&St<=Math.min(vt+dt+Mt.width,wt.pos+wt.len)||(D.isInsidePlot=!1)}return!tt.ignoreY&&D.isInsidePlot&&(vt=!V&&tt.axis&&!tt.axis.isXAxis&&tt.axis||xt&&(V?xt.xAxis:xt.yAxis)||{pos:ct,len:1/0},tt=tt.paneCoordinates?vt.pos+T:ct+T,tt>=Math.max(gt+ct,vt.pos)&&tt<=Math.min(gt+ct+Mt.height,vt.pos+vt.len)||(D.isInsidePlot=!1)),B(this,"afterIsInsidePlot",D),D.isInsidePlot}redraw(D){B(this,"beforeRedraw");const T=this.hasCartesianSeries?this.axes:this.colorAxis||[],tt=this.series,V=this.pointer,st=this.legend,dt=this.userOptions.legend,ct=this.renderer,yt=ct.isHidden(),vt=[];let gt,xt,Mt=this.isDirtyBox,St=this.isDirtyLegend,wt;for(ct.rootFontSize=ct.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),v(this.hasRendered?D:!1,this),yt&&this.temporaryDisplay(),this.layOutTitles(!1),D=tt.length;D--;)if(wt=tt[D],(wt.options.stacking||wt.options.centerInCategory)&&(xt=!0,wt.isDirty)){gt=!0;break}if(gt)for(D=tt.length;D--;)wt=tt[D],wt.options.stacking&&(wt.isDirty=!0);tt.forEach(function(Tt){Tt.isDirty&&(Tt.options.legendType==="point"?(typeof Tt.updateTotals=="function"&&Tt.updateTotals(),St=!0):dt&&(dt.labelFormatter||dt.labelFormat)&&(St=!0)),Tt.isDirtyData&&B(Tt,"updatedData")}),St&&st&&st.options.enabled&&(st.render(),this.isDirtyLegend=!1),xt&&this.getStacks(),T.forEach(function(Tt){Tt.updateNames(),Tt.setScale()}),this.getMargins(),T.forEach(function(Tt){Tt.isDirty&&(Mt=!0)}),T.forEach(function(Tt){const Dt=Tt.min+","+Tt.max;Tt.extKey!==Dt&&(Tt.extKey=Dt,vt.push(function(){B(Tt,"afterSetExtremes",J(Tt.eventArgs,Tt.getExtremes())),delete Tt.eventArgs})),(Mt||xt)&&Tt.redraw()}),Mt&&this.drawChartBox(),B(this,"predraw"),tt.forEach(function(Tt){(Mt||Tt.isDirty)&&Tt.visible&&Tt.redraw(),Tt.isDirtyData=!1}),V&&V.reset(!0),ct.draw(),B(this,"redraw"),B(this,"render"),yt&&this.temporaryDisplay(!0),vt.forEach(function(Tt){Tt.call()})}get(D){function T(st){return st.id===D||st.options&&st.options.id===D}const tt=this.series;let V=at(this.axes,T)||at(this.series,T);for(let st=0;!V&&st<tt.length;st++)V=at(tt[st].points||[],T);return V}getAxes(){const D=this.options;B(this,"getAxes");for(const T of["xAxis","yAxis"]){const tt=D[T]=ot(D[T]||{});for(const V of tt)new O(this,V,T)}B(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((D,T)=>(T.getPointsCollection().forEach(tt=>{m(tt.selectedStaging,tt.selected)&&D.push(tt)}),D),[])}getSelectedSeries(){return this.series.filter(function(D){return D.selected})}setTitle(D,T,tt){this.applyDescription("title",D),this.applyDescription("subtitle",T),this.applyDescription("caption",void 0),this.layOutTitles(tt)}applyDescription(D,T){const tt=this,V=this.options[D]=n(this.options[D],T);let st=this[D];st&&T&&(this[D]=st=st.destroy()),V&&!st&&(st=this.renderer.text(V.text,0,0,V.useHTML).attr({align:V.align,class:"highcharts-"+D,zIndex:V.zIndex||4}).add(),st.update=function(dt,ct){tt.applyDescription(D,dt),tt.layOutTitles(ct)},this.styledMode||st.css(J(D==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},V.style)),this[D]=st)}layOutTitles(D=!0){const T=[0,0,0],tt=this.renderer,V=this.spacingBox;["title","subtitle","caption"].forEach(function(dt){const ct=this[dt],yt=this.options[dt],vt=yt.verticalAlign||"top";if(dt=dt==="title"?vt==="top"?-3:0:vt==="top"?T[0]+2:0,ct){ct.css({width:(yt.width||V.width+(yt.widthAdjust||0))+"px"});const gt=tt.fontMetrics(ct).b,xt=Math.round(ct.getBBox(yt.useHTML).height);ct.align(J({y:vt==="bottom"?gt:dt+gt,height:xt},yt),!1,"spacingBox"),yt.floating||(vt==="top"?T[0]=Math.ceil(T[0]+xt):vt==="bottom"&&(T[2]=Math.ceil(T[2]+xt)))}},this),T[0]&&(this.options.title.verticalAlign||"top")==="top"&&(T[0]+=this.options.title.margin),T[2]&&this.options.caption.verticalAlign==="bottom"&&(T[2]+=this.options.caption.margin);const st=!this.titleOffset||this.titleOffset.join(",")!==T.join(",");this.titleOffset=T,B(this,"afterLayOutTitles"),!this.isDirtyBox&&st&&(this.isDirtyBox=this.isDirtyLegend=st,this.hasRendered&&D&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:s(this.renderTo,"width",!0)||0,height:s(this.renderTo,"height",!0)||0}}getChartSize(){var D=this.options.chart;const T=D.width;D=D.height;const tt=this.getContainerBox();this.chartWidth=Math.max(0,T||tt.width||600),this.chartHeight=Math.max(0,F(D,this.chartWidth)||(1<tt.height?tt.height:400)),this.containerBox=tt}temporaryDisplay(D){let T=this.renderTo;if(D)for(;T&&T.style;)T.hcOrigStyle&&(a(T,T.hcOrigStyle),delete T.hcOrigStyle),T.hcOrigDetached&&(o.body.removeChild(T),T.hcOrigDetached=!1),T=T.parentNode;else for(;T&&T.style&&(o.body.contains(T)||T.parentNode||(T.hcOrigDetached=!0,o.body.appendChild(T)),(s(T,"display",!1)==="none"||T.hcOricDetached)&&(T.hcOrigStyle={display:T.style.display,height:T.style.height,overflow:T.style.overflow},D={display:"block",overflow:"hidden"},T!==this.renderTo&&(D.height=0),a(T,D),T.offsetWidth||T.style.setProperty("display","block","important")),T=T.parentNode,T!==o.body););}setClassName(D){this.container.className="highcharts-container "+(D||"")}getContainer(){const D=this.options,T=D.chart;var tt=lt();let V,st=this.renderTo;st||(this.renderTo=st=T.renderTo),K(st)&&(this.renderTo=st=o.getElementById(st)),st||$(13,!0,this);var dt=H(t(st,"data-highcharts-chart"));z(dt)&&k[dt]&&k[dt].hasRendered&&k[dt].destroy(),t(st,"data-highcharts-chart",this.index),st.innerHTML=_.emptyHTML,T.skipClone||st.offsetWidth||this.temporaryDisplay(),this.getChartSize(),dt=this.chartWidth;const ct=this.chartHeight;if(a(st,{overflow:"hidden"}),this.styledMode||(V=J({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"},T.style||{})),this.container=tt=i("div",{id:tt},V,st),this._cursor=tt.style.cursor,this.renderer=new(T.renderer||!u?X.getRendererType(T.renderer):N)(tt,dt,ct,void 0,T.forExport,D.exporting&&D.exporting.allowHTML,this.styledMode),this.containerBox=this.getContainerBox(),v(void 0,this),this.setClassName(T.className),this.styledMode)for(const yt in D.defs)this.renderer.definition(D.defs[yt]);else this.renderer.setStyle(T.style);this.renderer.chartIndex=this.index,B(this,"afterGetContainer")}getMargins(D){const{spacing:T,margin:tt,titleOffset:V}=this;this.resetMargins(),V[0]&&!p(tt[0])&&(this.plotTop=Math.max(this.plotTop,V[0]+T[0])),V[2]&&!p(tt[2])&&(this.marginBottom=Math.max(this.marginBottom,V[2]+T[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(tt,T),B(this,"getMargins"),D||this.getAxisMargins()}getAxisMargins(){const D=this,T=D.axisOffset=[0,0,0,0],tt=D.colorAxis,V=D.margin,st=function(dt){dt.forEach(function(ct){ct.visible&&ct.getOffset()})};D.hasCartesianSeries?st(D.axes):tt&&tt.length&&st(tt),l.forEach(function(dt,ct){p(V[ct])||(D[dt]+=T[ct])}),D.setChartSize()}getOptions(){return E(this.userOptions,S)}reflow(D){const T=this;var tt=T.options.chart;tt=p(tt.width)&&p(tt.height);const V=T.containerBox,st=T.getContainerBox();delete T.pointer.chartPosition,!tt&&!T.isPrinting&&V&&st.width&&((st.width!==V.width||st.height!==V.height)&&(b.clearTimeout(T.reflowTimeout),T.reflowTimeout=nt(function(){T.container&&T.setSize(void 0,void 0,!1)},D?100:0)),T.containerBox=st)}setReflow(){const D=this;var T=tt=>{var V;!((V=D.options)===null||V===void 0)&&V.chart.reflow&&D.hasLoaded&&D.reflow(tt)};typeof ResizeObserver=="function"?new ResizeObserver(T).observe(D.renderTo):(T=e(h,"resize",T),e(this,"destroy",T))}setSize(D,T,tt){const V=this,st=V.renderer;V.isResizing+=1,v(tt,V),tt=st.globalAnimation,V.oldChartHeight=V.chartHeight,V.oldChartWidth=V.chartWidth,typeof D<"u"&&(V.options.chart.width=D),typeof T<"u"&&(V.options.chart.height=T),V.getChartSize(),V.styledMode||(tt?A:a)(V.container,{width:V.chartWidth+"px",height:V.chartHeight+"px"},tt),V.setChartSize(!0),st.setSize(V.chartWidth,V.chartHeight,tt),V.axes.forEach(function(dt){dt.isDirty=!0,dt.setScale()}),V.isDirtyLegend=!0,V.isDirtyBox=!0,V.layOutTitles(),V.getMargins(),V.redraw(tt),V.oldChartHeight=null,B(V,"resize"),nt(function(){V&&B(V,"endResize",null,function(){--V.isResizing})},c(tt).duration)}setChartSize(D){var T=this.inverted;const tt=this.renderer;var V=this.chartWidth,st=this.chartHeight;const dt=this.options.chart,ct=this.spacing,yt=this.clipOffset;let vt,gt,xt,Mt;this.plotLeft=vt=Math.round(this.plotLeft),this.plotTop=gt=Math.round(this.plotTop),this.plotWidth=xt=Math.max(0,Math.round(V-vt-this.marginRight)),this.plotHeight=Mt=Math.max(0,Math.round(st-gt-this.marginBottom)),this.plotSizeX=T?Mt:xt,this.plotSizeY=T?xt:Mt,this.plotBorderWidth=dt.plotBorderWidth||0,this.spacingBox=tt.spacingBox={x:ct[3],y:ct[0],width:V-ct[3]-ct[1],height:st-ct[0]-ct[2]},this.plotBox=tt.plotBox={x:vt,y:gt,width:xt,height:Mt},T=2*Math.floor(this.plotBorderWidth/2),V=Math.ceil(Math.max(T,yt[3])/2),st=Math.ceil(Math.max(T,yt[0])/2),this.clipBox={x:V,y:st,width:Math.floor(this.plotSizeX-Math.max(T,yt[1])/2-V),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(T,yt[2])/2-st))},D||(this.axes.forEach(function(St){St.setAxisSize(),St.setAxisTranslation()}),tt.alignElements()),B(this,"afterSetChartSize",{skipAxes:D})}resetMargins(){B(this,"resetMargins");const D=this,T=D.options.chart;["margin","spacing"].forEach(function(tt){const V=T[tt],st=I(V)?V:[V,V,V,V];["Top","Right","Bottom","Left"].forEach(function(dt,ct){D[tt][ct]=m(T[tt+dt],st[ct])})}),l.forEach(function(tt,V){D[tt]=m(D.margin[V],D.spacing[V])}),D.axisOffset=[0,0,0,0],D.clipOffset=[0,0,0,0]}drawChartBox(){const D=this.options.chart,T=this.renderer,tt=this.chartWidth,V=this.chartHeight,st=this.styledMode,dt=this.plotBGImage;var ct=D.backgroundColor;const yt=D.plotBackgroundColor,vt=D.plotBackgroundImage,gt=this.plotLeft,xt=this.plotTop,Mt=this.plotWidth,St=this.plotHeight,wt=this.plotBox,Tt=this.clipRect,Dt=this.clipBox;let Pt=this.chartBackground,Rt=this.plotBackground,Wt=this.plotBorder,Et,Yt,$t="animate";Pt||(this.chartBackground=Pt=T.rect().addClass("highcharts-background").add(),$t="attr"),st?Et=Yt=Pt.strokeWidth():(Et=D.borderWidth||0,Yt=Et+(D.shadow?8:0),ct={fill:ct||"none"},(Et||Pt["stroke-width"])&&(ct.stroke=D.borderColor,ct["stroke-width"]=Et),Pt.attr(ct).shadow(D.shadow)),Pt[$t]({x:Yt/2,y:Yt/2,width:tt-Yt-Et%2,height:V-Yt-Et%2,r:D.borderRadius}),$t="animate",Rt||($t="attr",this.plotBackground=Rt=T.rect().addClass("highcharts-plot-background").add()),Rt[$t](wt),st||(Rt.attr({fill:yt||"none"}).shadow(D.plotShadow),vt&&(dt?(vt!==dt.attr("href")&&dt.attr("href",vt),dt.animate(wt)):this.plotBGImage=T.image(vt,gt,xt,Mt,St).add())),Tt?Tt.animate({width:Dt.width,height:Dt.height}):this.clipRect=T.clipRect(Dt),$t="animate",Wt||($t="attr",this.plotBorder=Wt=T.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),st||Wt.attr({stroke:D.plotBorderColor,"stroke-width":D.plotBorderWidth||0,fill:"none"}),Wt[$t](Wt.crisp({x:gt,y:xt,width:Mt,height:St},-Wt.strokeWidth())),this.isDirtyBox=!1,B(this,"afterDrawChartBox")}propFromSeries(){const D=this,T=D.options.chart,tt=D.options.series;let V,st,dt;["inverted","angular","polar"].forEach(function(ct){for(st=d[T.type],dt=T[ct]||st&&st.prototype[ct],V=tt&&tt.length;!dt&&V--;)(st=d[tt[V].type])&&st.prototype[ct]&&(dt=!0);D[ct]=dt})}linkSeries(D){const T=this,tt=T.series;tt.forEach(function(V){V.linkedSeries.length=0}),tt.forEach(function(V){let st=V.options.linkedTo;K(st)&&(st=st===":previous"?T.series[V.index-1]:T.get(st))&&st.linkedParent!==V&&(st.linkedSeries.push(V),V.linkedParent=st,st.enabledDataSorting&&V.setDataSortingOptions(),V.visible=m(V.options.visible,st.options.visible,V.visible))}),B(this,"afterLinkSeries",{isUpdating:D})}renderSeries(){this.series.forEach(function(D){D.translate(),D.render()})}render(){const D=this.axes,T=this.colorAxis,tt=this.renderer,V=function(gt){gt.forEach(function(xt){xt.visible&&xt.render()})};let st=0;this.setTitle(),B(this,"beforeMargins"),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize();const dt=this.plotWidth;D.some(function(gt){if(gt.horiz&&gt.visible&&gt.options.labels.enabled&&gt.series.length)return st=21,!0});const ct=this.plotHeight=Math.max(this.plotHeight-st,0);D.forEach(function(gt){gt.setScale()}),this.getAxisMargins();const yt=1.1<dt/this.plotWidth,vt=1.05<ct/this.plotHeight;(yt||vt)&&(D.forEach(function(gt){(gt.horiz&&yt||!gt.horiz&&vt)&&gt.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?V(D):T&&T.length&&V(T),this.seriesGroup||(this.seriesGroup=tt.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(D){const T=this,tt=n(!0,this.options.credits,D);tt.enabled&&!this.credits&&(this.credits=this.renderer.text(tt.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){tt.href&&(h.location.href=tt.href)}).attr({align:tt.position.align,zIndex:8}),T.styledMode||this.credits.css(tt.style),this.credits.add().align(tt.position),this.credits.update=function(V){T.credits=T.credits.destroy(),T.addCredits(V)})}destroy(){const D=this,T=D.axes,tt=D.series,V=D.container,st=V&&V.parentNode;let dt;for(B(D,"destroy"),D.renderer.forExport?w(k,D):k[D.index]=void 0,Y.chartCount--,D.renderTo.removeAttribute("data-highcharts-chart"),G(D),dt=T.length;dt--;)T[dt]=T[dt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),dt=tt.length;dt--;)tt[dt]=tt[dt].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(ct){const yt=D[ct];yt&&yt.destroy&&(D[ct]=yt.destroy())}),V&&(V.innerHTML=_.emptyHTML,G(V),st&&r(V)),f(D,function(ct,yt){delete D[yt]})}firstRender(){const D=this,T=D.options;D.getContainer(),D.resetMargins(),D.setChartSize(),D.propFromSeries(),D.getAxes();const tt=P(T.series)?T.series:[];T.series=[],tt.forEach(function(V){D.initSeries(V)}),D.linkSeries(),D.setSeriesData(),B(D,"beforeRender"),D.render(),D.pointer.getChartPosition(),!D.renderer.imgCount&&!D.hasLoaded&&D.onload(),D.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(D){D&&typeof this.index<"u"&&D.apply(this,[this])},this),B(this,"load"),B(this,"render"),p(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){const{options:D,title:T}=this;D&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(T&&T.element.textContent||"").replace(/</g,"&lt;")}),D.accessibility&&D.accessibility.enabled===!1||$('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(D,T,tt){const V=this;let st;return D&&(T=m(T,!0),B(V,"addSeries",{options:D},function(){st=V.initSeries(D),V.isDirtyLegend=!0,V.linkSeries(),st.enabledDataSorting&&st.setData(D.data,!1),B(V,"afterAddSeries",{series:st}),T&&V.redraw(tt)})),st}addAxis(D,T,tt,V){return this.createAxis(T?"xAxis":"yAxis",{axis:D,redraw:tt,animation:V})}addColorAxis(D,T,tt){return this.createAxis("colorAxis",{axis:D,redraw:T,animation:tt})}createAxis(D,T){return D=new O(this,T.axis,D),m(T.redraw,!0)&&this.redraw(T.animation),D}showLoading(D){const T=this,tt=T.options,V=tt.loading,st=function(){dt&&a(dt,{left:T.plotLeft+"px",top:T.plotTop+"px",width:T.plotWidth+"px",height:T.plotHeight+"px"})};let dt=T.loadingDiv,ct=T.loadingSpan;dt||(T.loadingDiv=dt=i("div",{className:"highcharts-loading highcharts-loading-hidden"},null,T.container)),ct||(T.loadingSpan=ct=i("span",{className:"highcharts-loading-inner"},null,dt),e(T,"redraw",st)),dt.className="highcharts-loading",_.setElementHTML(ct,m(D,tt.lang.loading,"")),T.styledMode||(a(dt,J(V.style,{zIndex:10})),a(ct,V.labelStyle),T.loadingShown||(a(dt,{opacity:0,display:""}),A(dt,{opacity:V.style.opacity||.5},{duration:V.showDuration||0}))),T.loadingShown=!0,st()}hideLoading(){const D=this.options,T=this.loadingDiv;T&&(T.className="highcharts-loading highcharts-loading-hidden",this.styledMode||A(T,{opacity:0},{duration:D.loading.hideDuration||100,complete:function(){a(T,{display:"none"})}})),this.loadingShown=!1}update(D,T,tt,V){const st=this,dt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ct=D.isResponsiveOptions,yt=[];let vt,gt;B(st,"update",{options:D}),ct||st.setResponsive(!1,!0),D=E(D,st.options),st.userOptions=n(st.userOptions,D);var xt=D.chart;if(xt){if(n(!0,st.options.chart,xt),this.setZoomOptions(),"className"in xt&&st.setClassName(xt.className),"inverted"in xt||"polar"in xt||"type"in xt){st.propFromSeries();var Mt=!0}"alignTicks"in xt&&(Mt=!0),"events"in xt&&y(this,xt),f(xt,function(St,wt){st.propsRequireUpdateSeries.indexOf("chart."+wt)!==-1&&(vt=!0),st.propsRequireDirtyBox.indexOf(wt)!==-1&&(st.isDirtyBox=!0),st.propsRequireReflow.indexOf(wt)!==-1&&(ct?st.isDirtyBox=!0:gt=!0)}),!st.styledMode&&xt.style&&st.renderer.setStyle(st.options.chart.style||{})}!st.styledMode&&D.colors&&(this.options.colors=D.colors),D.time&&(this.time===g&&(this.time=new x(D.time)),n(!0,st.options.time,D.time)),f(D,function(St,wt){st[wt]&&typeof st[wt].update=="function"?st[wt].update(St,!1):typeof st[dt[wt]]=="function"?st[dt[wt]](St):wt!=="colors"&&st.collectionsWithUpdate.indexOf(wt)===-1&&n(!0,st.options[wt],D[wt]),wt!=="chart"&&st.propsRequireUpdateSeries.indexOf(wt)!==-1&&(vt=!0)}),this.collectionsWithUpdate.forEach(function(St){D[St]&&(ot(D[St]).forEach(function(wt,Tt){const Dt=p(wt.id);let Pt;Dt&&(Pt=st.get(wt.id)),!Pt&&st[St]&&(Pt=st[St][m(wt.index,Tt)])&&(Dt&&p(Pt.options.id)||Pt.options.isInternal)&&(Pt=void 0),Pt&&Pt.coll===St&&(Pt.update(wt,!1),tt&&(Pt.touched=!0)),!Pt&&tt&&st.collectionsWithInit[St]&&(st.collectionsWithInit[St][0].apply(st,[wt].concat(st.collectionsWithInit[St][1]||[]).concat([!1])).touched=!0)}),tt&&st[St].forEach(function(wt){wt.touched||wt.options.isInternal?delete wt.touched:yt.push(wt)}))}),yt.forEach(function(St){St.chart&&St.remove&&St.remove(!1)}),Mt&&st.axes.forEach(function(St){St.update({},!1)}),vt&&st.getSeriesOrderByLinks().forEach(function(St){St.chart&&St.update({},!1)},this),Mt=xt&&xt.width,xt=xt&&(K(xt.height)?F(xt.height,Mt||st.chartWidth):xt.height),gt||z(Mt)&&Mt!==st.chartWidth||z(xt)&&xt!==st.chartHeight?st.setSize(Mt,xt,V):m(T,!0)&&st.redraw(V),B(st,"afterUpdate",{options:D,redraw:T,animation:V})}setSubtitle(D,T){this.applyDescription("subtitle",D),this.layOutTitles(T)}setCaption(D,T){this.applyDescription("caption",D),this.layOutTitles(T)}showResetZoom(){function D(){T.zoomOut()}const T=this,tt=S.lang,V=T.zooming.resetButton,st=V.theme,dt=V.relativeTo==="chart"||V.relativeTo==="spacingBox"?null:"scrollablePlotBox";B(this,"beforeShowResetZoom",null,function(){T.resetZoomButton=T.renderer.button(tt.resetZoom,null,null,D,st).attr({align:V.position.align,title:tt.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(V.position,!1,dt)}),B(this,"afterShowResetZoom")}zoomOut(){B(this,"selection",{resetSelection:!0},this.zoom)}zoom(D){const T=this,tt=T.pointer;let V=!1,st;!D||D.resetSelection?(T.axes.forEach(function(ct){st=ct.zoom()}),tt.initiated=!1):D.xAxis.concat(D.yAxis).forEach(function(ct){const yt=ct.axis;(tt[yt.isXAxis?"zoomX":"zoomY"]&&p(tt.mouseDownX)&&p(tt.mouseDownY)&&T.isInsidePlot(tt.mouseDownX-T.plotLeft,tt.mouseDownY-T.plotTop,{axis:yt})||!p(T.inverted?tt.mouseDownX:tt.mouseDownY))&&(st=yt.zoom(ct.min,ct.max),yt.displayBtn&&(V=!0))});const dt=T.resetZoomButton;V&&!dt?T.showResetZoom():!V&&I(dt)&&(T.resetZoomButton=dt.destroy()),st&&T.redraw(m(T.options.chart.animation,D&&D.animation,100>T.pointCount))}pan(D,T){const tt=this,V=tt.hoverPoints;T=typeof T=="object"?T:{enabled:T,type:"x"};const st=tt.options.chart;st&&st.panning&&(st.panning=T);const dt=T.type;let ct;B(this,"pan",{originalEvent:D},function(){V&&V.forEach(function(gt){gt.setState()});let yt=tt.xAxis;dt==="xy"?yt=yt.concat(tt.yAxis):dt==="y"&&(yt=tt.yAxis);const vt={};yt.forEach(function(gt){if(gt.options.panningEnabled&&!gt.options.isInternal){var xt=gt.horiz,Mt=D[xt?"chartX":"chartY"];xt=xt?"mouseDownX":"mouseDownY";var St=tt[xt],wt=gt.minPointOffset||0,Tt=gt.reversed&&!tt.inverted||!gt.reversed&&tt.inverted?-1:1,Dt=gt.getExtremes(),Pt=gt.toValue(St-Mt,!0)+wt*Tt,Rt=gt.toValue(St+gt.len-Mt,!0)-(wt*Tt||gt.isXAxis&&gt.pointRangePadding||0),Wt=Rt<Pt;Tt=gt.hasVerticalPanning(),St=Wt?Rt:Pt,Pt=Wt?Pt:Rt;var Et=gt.panningState;!Tt||gt.isXAxis||Et&&!Et.isDirty||gt.series.forEach(function(Yt){var $t=Yt.getProcessedData(!0);$t=Yt.getExtremes($t.yData,!0),Et||(Et={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),z($t.dataMin)&&z($t.dataMax)&&(Et.startMin=Math.min(m(Yt.options.threshold,1/0),$t.dataMin,Et.startMin),Et.startMax=Math.max(m(Yt.options.threshold,-1/0),$t.dataMax,Et.startMax))}),Tt=Math.min(m(Et&&Et.startMin,Dt.dataMin),wt?Dt.min:gt.toValue(gt.toPixels(Dt.min)-gt.minPixelPadding)),Rt=Math.max(m(Et&&Et.startMax,Dt.dataMax),wt?Dt.max:gt.toValue(gt.toPixels(Dt.max)+gt.minPixelPadding)),gt.panningState=Et,gt.isOrdinal||(wt=Tt-St,0<wt&&(Pt+=wt,St=Tt),wt=Pt-Rt,0<wt&&(Pt=Rt,St-=wt),gt.series.length&&St!==Dt.min&&Pt!==Dt.max&&St>=Tt&&Pt<=Rt&&(gt.setExtremes(St,Pt,!1,!1,{trigger:"pan"}),!tt.resetZoomButton&&St!==Tt&&Pt!==Rt&&dt.match("y")&&(tt.showResetZoom(),gt.displayBtn=!1),ct=!0),vt[xt]=Mt)}}),f(vt,(gt,xt)=>{tt[xt]=gt}),ct&&tt.redraw(!1),a(tt.container,{cursor:"move"})})}}return J(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}),it(C,"Extensions/ScrollablePlotArea.js",[C["Core/Animation/AnimationUtilities.js"],C["Core/Axis/Axis.js"],C["Core/Chart/Chart.js"],C["Core/Series/Series.js"],C["Core/Renderer/RendererRegistry.js"],C["Core/Utilities.js"]],function(j,O,W,q,Q,Y){const{stop:X}=j,{addEvent:M,createElement:R,defined:N,merge:x,pick:b}=Y;M(W,"afterSetChartSize",function(_){var A=this.options.chart.scrollablePlotArea,c=A&&A.minWidth;A=A&&A.minHeight;let v;this.renderer.forExport||(c?(this.scrollablePixelsX=c=Math.max(0,c-this.chartWidth))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=x(this.plotBox),this.plotBox.width=this.plotWidth+=c,this.inverted?this.clipBox.height+=c:this.clipBox.width+=c,v={1:{name:"right",value:c}}):A&&(this.scrollablePixelsY=c=Math.max(0,A-this.chartHeight),N(c)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=x(this.plotBox),this.plotBox.height=this.plotHeight+=c,this.inverted?this.clipBox.width+=c:this.clipBox.height+=c,v={2:{name:"bottom",value:c}})),v&&!_.skipAxes&&this.axes.forEach(function(S){v[S.side]?S.getPlotLinePath=function(){let g=v[S.side].name,L=this[g],y;return this[g]=L-v[S.side].value,y=O.prototype.getPlotLinePath.apply(this,arguments),this[g]=L,y}:(S.setAxisSize(),S.setAxisTranslation())}))}),M(W,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),W.prototype.setUpScrolling=function(){const _={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(_.overflowX="auto"),this.scrollablePixelsY&&(_.overflowY="auto"),this.scrollingParent=R("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=R("div",{className:"highcharts-scrolling"},_,this.scrollingParent);let A;M(this.scrollingContainer,"scroll",()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(A=this.hoverPoint),this.pointer.runPointActions(void 0,A,!0))}),this.innerContainer=R("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},W.prototype.moveFixedElements=function(){let _=this.container,A=this.fixedRenderer,c=".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(" "),v;this.scrollablePixelsX&&!this.inverted?v=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?v=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(v=".highcharts-yaxis"),v&&c.push(`${v}:not(.highcharts-radial-axis)`,`${v}-labels:not(.highcharts-radial-axis-labels)`),c.forEach(function(S){[].forEach.call(_.querySelectorAll(S),function(g){(g.namespaceURI===A.SVG_NS?A.box:A.box.parentNode).appendChild(g),g.style.pointerEvents="auto"})})},W.prototype.applyFixed=function(){var _=!this.fixedDiv,A=this.options.chart,c=A.scrollablePlotArea,v=Q.getRendererType();_?(this.fixedDiv=R("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(A.style&&A.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=A=new v(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=A.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":b(c.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),M(this,"afterShowResetZoom",this.moveFixedElements),M(this,"afterApplyDrilldown",this.moveFixedElements),M(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||_)&&(this.scrollableDirty=!1,this.moveFixedElements()),A=this.chartWidth+(this.scrollablePixelsX||0),v=this.chartHeight+(this.scrollablePixelsY||0),X(this.container),this.container.style.width=A+"px",this.container.style.height=v+"px",this.renderer.boxWrapper.attr({width:A,height:v,viewBox:[0,0,A,v].join(" ")}),this.chartBackground.attr({width:A,height:v}),this.scrollingContainer.style.height=this.chartHeight+"px",_&&(c.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*c.scrollPositionX),c.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*c.scrollPositionY)),v=this.axisOffset,_=this.plotTop-v[0]-1,c=this.plotLeft-v[3]-1,A=this.plotTop+this.plotHeight+v[2]+1,v=this.plotLeft+this.plotWidth+v[1]+1;let S=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),g=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);_=this.scrollablePixelsX?[["M",0,_],["L",this.plotLeft-1,_],["L",this.plotLeft-1,A],["L",0,A],["Z"],["M",S,_],["L",this.chartWidth,_],["L",this.chartWidth,A],["L",S,A],["Z"]]:this.scrollablePixelsY?[["M",c,0],["L",c,this.plotTop-1],["L",v,this.plotTop-1],["L",v,0],["Z"],["M",c,g],["L",c,this.chartHeight],["L",v,this.chartHeight],["L",v,g],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:_})},M(O,"afterInit",function(){this.chart.scrollableDirty=!0}),M(q,"show",function(){this.chart.scrollableDirty=!0})}),it(C,"Core/Axis/Stacking/StackItem.js",[C["Core/Templating.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Utilities.js"]],function(j,O,W){const{format:q}=j,{series:Q}=O,{destroyObjectProperties:Y,fireEvent:X,isNumber:M,pick:R}=W;class N{constructor(b,_,A,c,v){const S=b.chart.inverted,g=b.reversed;this.axis=b,b=this.isNegative=!!A!=!!g,this.options=_=_||{},this.x=c,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=v,this.rightCliff=this.leftCliff=0,this.alignOptions={align:_.align||(S?b?"left":"right":"center"),verticalAlign:_.verticalAlign||(S?"middle":b?"bottom":"top"),y:_.y,x:_.x},this.textAlign=_.textAlign||(S?b?"right":"left":"center")}destroy(){Y(this,this.axis)}render(b){const _=this.axis.chart,A=this.options;var c=A.format;c=c?q(c,this,_):A.formatter.call(this),this.label?this.label.attr({text:c,visibility:"hidden"}):(this.label=_.renderer.label(c,null,void 0,A.shape,void 0,void 0,A.useHTML,!1,"stack-labels"),c={r:A.borderRadius||0,text:c,padding:R(A.padding,5),visibility:"hidden"},_.styledMode||(c.fill=A.backgroundColor,c.stroke=A.borderColor,c["stroke-width"]=A.borderWidth,this.label.css(A.style||{})),this.label.attr(c),this.label.added||this.label.add(b)),this.label.labelrank=_.plotSizeY,X(this,"afterRender")}setOffset(b,_,A,c,v,S){const{alignOptions:g,axis:L,label:y,options:k,textAlign:o}=this,l=L.chart;A=this.getStackBox({xOffset:b,width:_,boxBottom:A,boxTop:c,defaultX:v,xAxis:S});var{verticalAlign:u}=g;if(y&&A){c=y.getBBox(),v=y.padding,S=R(k.overflow,"justify")==="justify",g.x=k.x||0,g.y=k.y||0;const{x:h,y:d}=this.adjustStackPosition({labelBox:c,verticalAlign:u,textAlign:o});A.x-=h,A.y-=d,y.align(g,!1,A),(u=l.isInsidePlot(y.alignAttr.x+g.x+h,y.alignAttr.y+g.y+d))||(S=!1),S&&Q.prototype.justifyDataLabel.call(L,y,g,y.alignAttr,c,A),y.attr({x:y.alignAttr.x,y:y.alignAttr.y,rotation:k.rotation,rotationOriginX:c.width/2,rotationOriginY:c.height/2}),R(!S&&k.crop,!0)&&(u=M(y.x)&&M(y.y)&&l.isInsidePlot(y.x-v+y.width,y.y)&&l.isInsidePlot(y.x+v,y.y)),y[u?"show":"hide"]()}X(this,"afterSetOffset",{xOffset:b,width:_})}adjustStackPosition({labelBox:b,verticalAlign:_,textAlign:A}){const c={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:b.width/2+b.width/2*c[A],y:b.height/2*c[_]}}getStackBox(b){var _=this.axis;const A=_.chart,{boxTop:c,defaultX:v,xOffset:S,width:g,boxBottom:L}=b;var y=_.stacking.usePercentage?100:R(c,this.total,0);y=_.toPixels(y),b=b.xAxis||A.xAxis[0];const k=R(v,b.translate(this.x))+S;_=_.toPixels(L||M(_.min)&&_.logarithmic&&_.logarithmic.lin2log(_.min)||0),_=Math.abs(y-_);const o=this.isNegative;return A.inverted?{x:(o?y:y-_)-A.plotLeft,y:b.height-k-g,width:_,height:g}:{x:k+b.transB-A.plotLeft,y:(o?y-_:y)-A.plotTop,width:g,height:_}}}return N}),it(C,"Core/Axis/Stacking/StackingAxis.js",[C["Core/Animation/AnimationUtilities.js"],C["Core/Axis/Axis.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Axis/Stacking/StackItem.js"],C["Core/Utilities.js"]],function(j,O,W,q,Q){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,u(i.options.stack,""),t?a.top:a.left,t?a.height:a.width].join())})}function X(){const e=this.stacking;if(e){var t=e.stacks;l(t,function(i,a){L(i),t[a]=null}),e&&e.stackTotalGroup&&e.stackTotalGroup.destroy()}}function M(){this.coll!=="yAxis"||this.stacking||(this.stacking=new h(this))}function R(e,t,i,a){return!g(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 N(){const e=this,t=e.stackKey,i=e.yAxis.stacking.stacks,a=e.processedXData,p=e[e.options.stacking+"Stacker"];let E;p&&[t,"-"+t].forEach(r=>{let w=a.length,$;for(;w--;){var J=a[w];E=e.getStackIndicator(E,J,e.index,r),($=(J=i[r]&&i[r][J])&&J.points[E.key])&&p.call(e,$,J,w)}})}function x(e,t,i){t=t.total?100/t.total:0,e[0]=S(e[0]*t),e[1]=S(e[1]*t),this.stackedYData[i]=e[1]}function b(){const e=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?c.setStackedPoints.call(this,"group"):e&&l(e.stacks,(t,i)=>{i.slice(-5)==="group"&&(l(t,a=>a.destroy()),delete e.stacks[i])})}function _(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,p=this.processedYData,E=[],r=p.length,w=this.options,$=w.threshold,J=u(w.startFromThreshold&&$,0);w=w.stack,e=e?`${this.type},${i}`:this.stackKey;var at="-"+e,B=this.negStacks;t=i==="group"?t.yAxis[0]:this.yAxis;var s=t.stacking.stacks,P=t.stacking.oldStacks,z,I;for(t.stacking.stacksTouched+=1,I=0;I<r;I++){var K=a[I],n=p[I],f=this.getStackIndicator(f,K,this.index),m=f.key,H=(z=B&&n<(J?0:$))?at:e;s[H]||(s[H]={}),s[H][K]||(P[H]&&P[H][K]?(s[H][K]=P[H][K],s[H][K].total=null):s[H][K]=new q(t,t.options.stackLabels,!!z,K,w)),H=s[H][K],n!==null?(H.points[m]=H.points[this.index]=[u(H.cumulative,J)],g(H.cumulative)||(H.base=m),H.touched=t.stacking.stacksTouched,0<f.index&&this.singleStacks===!1&&(H.points[m][0]=H.points[this.index+","+K+",0"][0])):H.points[m]=H.points[this.index]=null,i==="percent"?(z=z?e:at,B&&s[z]&&s[z][K]?(z=s[z][K],H.total=z.total=Math.max(z.total,H.total)+Math.abs(n)||0):H.total=S(H.total+(Math.abs(n)||0))):i==="group"?(k(n)&&(n=n[0]),n!==null&&(H.total=(H.total||0)+1)):H.total=S(H.total+(n||0)),H.cumulative=i==="group"?(H.total||1)-1:S(u(H.cumulative,J)+(n||0)),n!==null&&(H.points[m].push(H.cumulative),E[I]=H.cumulative,H.hasValidPoints=!0)}i==="percent"&&(t.stacking.usePercentage=!0),i!=="group"&&(this.stackedYData=E),t.stacking.oldStacks={}}}const{getDeferredAnimation:A}=j,{series:{prototype:c}}=W,{addEvent:v,correctFloat:S,defined:g,destroyObjectProperties:L,fireEvent:y,isArray:k,isNumber:o,objectEach:l,pick:u}=Q;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,p=i.length;let E,r;for(this.usePercentage=!1,r=p;r--;)E=i[a?r:p-r-1],E.setStackedPoints(),E.setGroupedPoints();for(r=0;r<p;r++)i[r].modifyStacks();y(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,p=this.stacks;t=A(i,t.options.stackLabels&&t.options.stackLabels.animation||!1);const E=this.stackTotalGroup=this.stackTotalGroup||a.g("stack-labels").attr({zIndex:6,opacity:0}).add();E.translate(i.plotLeft,i.plotTop),l(p,function(r){l(r,function(w){w.render(E)})}),E.animate({opacity:1},t)}}var d;return function(e){const t=[];e.compose=function(i,a,p){Q.pushUnique(t,i)&&(v(i,"init",M),v(i,"destroy",X)),Q.pushUnique(t,a)&&(a.prototype.getStacks=Y),Q.pushUnique(t,p)&&(i=p.prototype,i.getStackIndicator=R,i.modifyStacks=N,i.percentStacker=x,i.setGroupedPoints=b,i.setStackedPoints=_)}}(d||(d={})),d}),it(C,"Series/Line/LineSeries.js",[C["Core/Series/Series.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Utilities.js"]],function(j,O,W){const{defined:q,merge:Q}=W;class Y extends j{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){const M=this,R=this.options,N=(this.gappedPath||this.getGraphPath).call(this),x=this.chart.styledMode;let b=[["graph","highcharts-graph"]];x||b[0].push(R.lineColor||this.color||"#cccccc",R.dashStyle),b=M.getZonesGraphs(b),b.forEach(function(_,A){var c=_[0];let v=M[c];const S=v?"animate":"attr";v?(v.endX=M.preventGraphAnimation?null:N.xMap,v.animate({d:N})):N.length&&(M[c]=v=M.chart.renderer.path(N).addClass(_[1]).attr({zIndex:1}).add(M.group)),v&&!x&&(c={stroke:_[2],"stroke-width":R.lineWidth||0,fill:M.fillGraph&&M.color||"none"},_[3]?c.dashstyle=_[3]:R.linecap!=="square"&&(c["stroke-linecap"]=c["stroke-linejoin"]="round"),v[S](c).shadow(2>A&&R.shadow)),v&&(v.startX=N.xMap,v.isArea=N.isArea)})}getGraphPath(M,R,N){const x=this,b=x.options,_=[],A=[];let c,v=b.step;M=M||x.points;const S=M.reversed;return S&&M.reverse(),(v={right:1,center:2}[v]||v&&3)&&S&&(v=4-v),M=this.getValidPoints(M,!1,!(b.connectNulls&&!R&&!N)),M.forEach(function(g,L){const y=g.plotX,k=g.plotY,o=M[L-1],l=g.isNull||typeof k!="number";(g.leftCliff||o&&o.rightCliff)&&!N&&(c=!0),l&&!q(R)&&0<L?c=!b.connectNulls:l&&!R?c=!0:(L===0||c?L=[["M",g.plotX,g.plotY]]:x.getPointSpline?L=[x.getPointSpline(M,g,L)]:v?(L=v===1?[["L",o.plotX,k]]:v===2?[["L",(o.plotX+y)/2,o.plotY],["L",(o.plotX+y)/2,k]]:[["L",y,o.plotY]],L.push(["L",y,k])):L=[["L",y,k]],A.push(g.x),v&&(A.push(g.x),v===2&&A.push(g.x)),_.push.apply(_,L),c=!1)}),_.xMap=A,x.graphPath=_}getZonesGraphs(M){return this.zones.forEach(function(R,N){N=["zone-graph-"+N,"highcharts-graph highcharts-zone-graph-"+N+" "+(R.className||"")],this.chart.styledMode||N.push(R.color||this.color,R.dashStyle||this.options.dashStyle),M.push(N)},this),M}}return Y.defaultOptions=Q(j.defaultOptions,{legendSymbol:"lineMarker"}),O.registerSeriesType("line",Y),Y}),it(C,"Series/Area/AreaSeries.js",[C["Core/Color/Color.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Utilities.js"]],function(j,O,W){const{seriesTypes:{line:q}}=O,{extend:Q,merge:Y,objectEach:X,pick:M}=W;class R extends q{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){this.areaPath=[],super.drawGraph.apply(this);const x=this,b=this.areaPath,_=this.options,A=[["area","highcharts-area",this.color,_.fillColor]];this.zones.forEach(function(c,v){A.push(["zone-area-"+v,"highcharts-area highcharts-zone-area-"+v+" "+c.className,c.color||x.color,c.fillColor||_.fillColor])}),A.forEach(function(c){const v=c[0],S={};let g=x[v];const L=g?"animate":"attr";g?(g.endX=x.preventGraphAnimation?null:b.xMap,g.animate({d:b})):(S.zIndex=0,g=x[v]=x.chart.renderer.path(b).addClass(c[1]).add(x.group),g.isArea=!0),x.chart.styledMode||(c[3]?S.fill=c[3]:(S.fill=c[2],S["fill-opacity"]=M(_.fillOpacity,.75))),g[L](S),g.startX=b.xMap,g.shiftUnit=_.step?2:1})}getGraphPath(x){var b=q.prototype.getGraphPath,_=this.options;const A=_.stacking,c=this.yAxis,v=[],S=[],g=this.index,L=c.stacking.stacks[this.stackKey],y=_.threshold,k=Math.round(c.getThreshold(_.threshold));_=M(_.connectNulls,A==="percent");var o=function(d,e,t){var i=x[d];d=A&&L[i.x].points[g];const a=i[t+"Null"]||0;t=i[t+"Cliff"]||0;let p,E;i=!0,t||a?(p=(a?d[0]:d[1])+t,E=d[0]+t,i=!!a):!A&&x[e]&&x[e].isNull&&(p=E=y),typeof p<"u"&&(S.push({plotX:l,plotY:p===null?k:c.getThreshold(p),isNull:i,isCliff:!0}),v.push({plotX:l,plotY:E===null?k:c.getThreshold(E),doCurve:!1}))};let l;x=x||this.points,A&&(x=this.getStackPoints(x));for(let d=0,e=x.length;d<e;++d){A||(x[d].leftCliff=x[d].rightCliff=x[d].leftNull=x[d].rightNull=void 0);var u=x[d].isNull;l=M(x[d].rectPlotX,x[d].plotX);var h=A?M(x[d].yBottom,k):k;(!u||_)&&(_||o(d,d-1,"left"),u&&!A&&_||(S.push(x[d]),v.push({x:d,plotX:l,plotY:h})),_||o(d,d+1,"right"))}return o=b.call(this,S,!0,!0),v.reversed=!0,u=b.call(this,v,!0,!0),(h=u[0])&&h[0]==="M"&&(u[0]=["L",h[1],h[2]]),u=o.concat(u),u.length&&u.push(["Z"]),b=b.call(this,S,!1,_),u.xMap=o.xMap,this.areaPath=u,b}getStackPoints(x){const b=this,_=[],A=[],c=this.xAxis,v=this.yAxis,S=v.stacking.stacks[this.stackKey],g={},L=v.series,y=L.length,k=v.options.reversedStacks?1:-1,o=L.indexOf(b);if(x=x||this.points,this.options.stacking){for(let u=0;u<x.length;u++)x[u].leftNull=x[u].rightNull=void 0,g[x[u].x]=x[u];X(S,function(u,h){u.total!==null&&A.push(h)}),A.sort(function(u,h){return u-h});const l=L.map(u=>u.visible);A.forEach(function(u,h){let d=0,e,t;if(g[u]&&!g[u].isNull)_.push(g[u]),[-1,1].forEach(function(i){const a=i===1?"rightNull":"leftNull",p=S[A[h+i]];let E=0;if(p){let r=o;for(;0<=r&&r<y;){const w=L[r].index;e=p.points[w],e||(w===b.index?g[u][a]=!0:l[r]&&(t=S[u].points[w])&&(E-=t[1]-t[0])),r+=k}}g[u][i===1?"rightCliff":"leftCliff"]=E});else{let i=o;for(;0<=i&&i<y;){if(e=S[u].points[L[i].index]){d=e[1];break}i+=k}d=M(d,0),d=v.translate(d,0,1,0,1),_.push({isNull:!0,plotX:c.translate(u,0,0,0,1),x:u,plotY:d,yBottom:d})}})}return _}}return R.defaultOptions=Y(q.defaultOptions,{threshold:0,legendSymbol:"rectangle"}),Q(R.prototype,{singleStacks:!1}),O.registerSeriesType("area",R),R}),it(C,"Series/Spline/SplineSeries.js",[C["Core/Series/SeriesRegistry.js"],C["Core/Utilities.js"]],function(j,O){const{line:W}=j.seriesTypes,{merge:q,pick:Q}=O;class Y extends W{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getPointSpline(M,R,N){const x=R.plotX||0,b=R.plotY||0,_=M[N-1];N=M[N+1];let A,c,v;if(_&&!_.isNull&&_.doCurve!==!1&&!R.isCliff&&N&&!N.isNull&&N.doCurve!==!1&&!R.isCliff){M=_.plotY||0;var S=N.plotX||0;N=N.plotY||0;let g=0;A=(1.5*x+(_.plotX||0))/2.5,c=(1.5*b+M)/2.5,S=(1.5*x+S)/2.5,v=(1.5*b+N)/2.5,S!==A&&(g=(v-c)*(S-x)/(S-A)+b-v),c+=g,v+=g,c>M&&c>b?(c=Math.max(M,b),v=2*b-c):c<M&&c<b&&(c=Math.min(M,b),v=2*b-c),v>N&&v>b?(v=Math.max(N,b),c=2*b-v):v<N&&v<b&&(v=Math.min(N,b),c=2*b-v),R.rightContX=S,R.rightContY=v}return R=["C",Q(_.rightContX,_.plotX,0),Q(_.rightContY,_.plotY,0),Q(A,x,0),Q(c,b,0),x,b],_.rightContX=_.rightContY=void 0,R}}return Y.defaultOptions=q(W.defaultOptions),j.registerSeriesType("spline",Y),Y}),it(C,"Series/AreaSpline/AreaSplineSeries.js",[C["Series/Spline/SplineSeries.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Utilities.js"]],function(j,O,W){const{area:q,area:{prototype:Q}}=O.seriesTypes,{extend:Y,merge:X}=W;class M extends j{constructor(){super(...arguments),this.options=this.points=this.data=void 0}}return M.defaultOptions=X(j.defaultOptions,q.defaultOptions),Y(M.prototype,{getGraphPath:Q.getGraphPath,getStackPoints:Q.getStackPoints,drawGraph:Q.drawGraph}),O.registerSeriesType("areaspline",M),M}),it(C,"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"}}),it(C,"Series/Column/ColumnSeries.js",[C["Core/Animation/AnimationUtilities.js"],C["Core/Color/Color.js"],C["Series/Column/ColumnSeriesDefaults.js"],C["Core/Globals.js"],C["Core/Series/Series.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Utilities.js"]],function(j,O,W,q,Q,Y,X){const{animObject:M}=j,{parse:R}=O,{hasTouch:N,noop:x}=q,{clamp:b,defined:_,extend:A,fireEvent:c,isArray:v,isNumber:S,merge:g,pick:L,objectEach:y}=X;class k extends Q{constructor(){super(...arguments),this.points=this.options=this.group=this.data=this.borderWidth=void 0}animate(l){const u=this,h=this.yAxis,d=h.pos,e=u.options,t=this.chart.inverted,i={},a=t?"translateX":"translateY";let p;l?(i.scaleY=.001,l=b(h.toPixels(e.threshold),d,d+h.len),t?i.translateX=l-h.len:i.translateY=l,u.clipBox&&u.setClip(),u.group.attr(i)):(p=Number(u.group.attr(a)),u.group.animate({scaleY:1},A(M(u.options.animation),{step:function(E,r){u.group&&(i[a]=p+r.pos*(d-p),u.group.attr(i))}})))}init(l,u){super.init.apply(this,arguments);const h=this;l=h.chart,l.hasRendered&&l.series.forEach(function(d){d.type===h.type&&(d.isDirty=!0)})}getColumnMetrics(){const l=this;var u=l.options;const h=l.xAxis,d=l.yAxis;var e=h.options.reversedStacks;e=h.reversed&&!e||!h.reversed&&e;const t={};let i,a=0;u.grouping===!1?a=1:l.chart.series.forEach(function(w){const $=w.yAxis,J=w.options;let at;w.type!==l.type||!w.visible&&l.chart.options.chart.ignoreHiddenSeries||d.len!==$.len||d.pos!==$.pos||(J.stacking&&J.stacking!=="group"?(i=w.stackKey,typeof t[i]>"u"&&(t[i]=a++),at=t[i]):J.grouping!==!1&&(at=a++),w.columnIndex=at)});const p=Math.min(Math.abs(h.transA)*(h.ordinal&&h.ordinal.slope||u.pointRange||h.closestPointRange||h.tickInterval||1),h.len),E=p*u.groupPadding,r=(p-2*E)/(a||1);return u=Math.min(u.maxPointWidth||h.len,L(u.pointWidth,r*(1-2*u.pointPadding))),l.columnMetrics={width:u,offset:(r-u)/2+(E+((l.columnIndex||0)+(e?1:0))*r-p/2)*(e?-1:1),paddedWidth:r,columnCount:a},l.columnMetrics}crispCol(l,u,h,d){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),d=Math.round(u+d)+e,t=.5>=Math.abs(u)&&.5<d,u=Math.round(u)+e,d-=u,t&&d&&(--u,d+=1),{x:l,y:u,width:h,height:d}}adjustForMissingColumns(l,u,h,d){const e=this.options.stacking;if(!h.isNull&&1<d.columnCount){const t=this.yAxis.options.reversedStacks;let i=0,a=t?0:-d.columnCount;y(this.yAxis.stacking&&this.yAxis.stacking.stacks,p=>{if(typeof h.x=="number"){const E=p[h.x.toString()];E&&(p=E.points[this.index],e?(p&&(i=a),E.hasValidPoints&&(t?a++:a--)):v(p)&&(p=Object.keys(E.points).filter(r=>!r.match(",")&&E.points[r]&&1<E.points[r].length).map(parseFloat).sort((r,w)=>w-r),i=p.indexOf(this.index),a=p.length))}}),l=(h.plotX||0)+((a-1)*d.paddedWidth+u)/2-u-i*d.paddedWidth}return l}translate(){const l=this,u=l.chart,h=l.options;var d=l.dense=2>l.closestPointRange*l.xAxis.transA;d=l.borderWidth=L(h.borderWidth,d?0:1);const e=l.xAxis,t=l.yAxis,i=h.threshold,a=L(h.minPointLength,5),p=l.getColumnMetrics(),E=p.width,r=l.pointXOffset=p.offset,w=l.dataMin,$=l.dataMax;let J=l.barW=Math.max(E,1+2*d),at=l.translatedThreshold=t.getThreshold(i);u.inverted&&(at-=.5),h.pointPadding&&(J=Math.ceil(J)),Q.prototype.translate.apply(l),l.points.forEach(function(B){const s=L(B.yBottom,at);var P=999+Math.abs(s),z=B.plotX||0;P=b(B.plotY,-P,t.len+P);let I=Math.min(P,s),K=Math.max(P,s)-I,n=E,f=z+r,m=J;a&&Math.abs(K)<a&&(K=a,z=!t.reversed&&!B.negative||t.reversed&&B.negative,S(i)&&S($)&&B.y===i&&$<=i&&(t.min||0)<i&&(w!==$||(t.max||0)<=i)&&(z=!z,B.negative=!B.negative),I=Math.abs(I-at)>a?s-a:at-(z?a:0)),_(B.options.pointWidth)&&(n=m=Math.ceil(B.options.pointWidth),f-=Math.round((n-E)/2)),h.centerInCategory&&(f=l.adjustForMissingColumns(f,n,B,p)),B.barX=f,B.pointWidth=n,B.tooltipPos=u.inverted?[b(t.len+t.pos-u.plotLeft-P,t.pos-u.plotLeft,t.len+t.pos-u.plotLeft),e.len+e.pos-u.plotTop-f-m/2,K]:[e.left-u.plotLeft+f+m/2,b(P+t.pos-u.plotTop,t.pos-u.plotTop,t.len+t.pos-u.plotTop),K],B.shapeType=l.pointClass.prototype.shapeType||"roundedRect",B.shapeArgs=l.crispCol(f,B.isNull?at:I,m,B.isNull?0:K)}),c(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(l,u){const h=this.options;var d=this.pointAttrToOptions||{},e=d.stroke||"borderColor";const t=d["stroke-width"]||"borderWidth";let i,a=l&&l.color||this.color,p=l&&l[e]||h[e]||a;d=l&&l.options.dashStyle||h.dashStyle;let E=l&&l[t]||h[t]||this[t]||0,r=L(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&&(p=i.borderColor||p,d=i.dashStyle||d,E=i.borderWidth||E)),u&&l&&(l=g(h.states[u],l.options.states&&l.options.states[u]||{}),u=l.brightness,a=l.color||typeof u<"u"&&R(a).brighten(l.brightness).get()||a,p=l[e]||p,E=l[t]||E,d=l.dashStyle||d,r=L(l.opacity,r)),e={fill:a,stroke:p,"stroke-width":E,opacity:r},d&&(e.dashstyle=d),e}drawPoints(l=this.points){const u=this,h=this.chart,d=u.options,e=h.renderer,t=d.animationLimit||250;let i;l.forEach(function(a){let p=a.graphic,E=!!p,r=p&&h.pointCount<t?"animate":"attr";S(a.plotY)&&a.y!==null?(i=a.shapeArgs,p&&a.hasNewShapeType()&&(p=p.destroy()),u.enabledDataSorting&&(a.startXPos=u.xAxis.reversed?-(i&&i.width||0):u.xAxis.width),p||(a.graphic=p=e[a.shapeType](i).add(a.group||u.group))&&u.enabledDataSorting&&h.hasRendered&&h.pointCount<t&&(p.attr({x:a.startXPos}),E=!0,r="animate"),p&&E&&p[r](g(i)),h.styledMode||p[r](u.pointAttribs(a,a.selected&&"select")).shadow(a.allowShadow!==!1&&d.shadow),p&&(p.addClass(a.getClassName(),!0),p.attr({visibility:a.visible?"inherit":"hidden"}))):p&&(a.graphic=p.destroy())})}drawTracker(l=this.points){const u=this,h=u.chart,d=h.pointer,e=function(i){const a=d.getPointFromEvent(i);typeof a<"u"&&u.options.enableMouseTracking&&(d.isDirectTouch=!0,a.onMouseOver(i))};let t;l.forEach(function(i){t=v(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})}),u._hasTracking||(u.trackerGroups.forEach(function(i){u[i]&&(u[i].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(a){d.onTrackerMouseOut(a)}),N&&u[i].on("touchstart",e),!h.styledMode&&u.options.cursor&&u[i].css({cursor:u.options.cursor}))}),u._hasTracking=!0),c(this,"afterDrawTracker")}remove(){const l=this,u=l.chart;u.hasRendered&&u.series.forEach(function(h){h.type===l.type&&(h.isDirty=!0)}),Q.prototype.remove.apply(l,arguments)}}return k.defaultOptions=g(Q.defaultOptions,W),A(k.prototype,{cropShoulder:0,directTouch:!0,getSymbol:x,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),Y.registerSeriesType("column",k),k}),it(C,"Core/Series/DataLabel.js",[C["Core/Animation/AnimationUtilities.js"],C["Core/Templating.js"],C["Core/Utilities.js"]],function(j,O,W){const{getDeferredAnimation:q}=j,{format:Q}=O,{defined:Y,extend:X,fireEvent:M,isArray:R,isString:N,merge:x,objectEach:b,pick:_,splat:A}=W;var c;return function(v){function S(d,e,t,i,a){const p=this.chart;var E=this.isCartesian&&p.inverted;const r=this.enabledDataSorting;var w=d.plotX,$=d.plotY;const J=t.rotation;var at=t.align;$=Y(w)&&Y($)&&p.isInsidePlot(w,Math.round($),{inverted:E,paneCoordinates:!0,series:this});let B=_(t.overflow,r?"none":"justify")==="justify";if(E=this.visible&&d.visible!==!1&&Y(w)&&(d.series.forceDL||r&&!B||$||_(t.inside,!!this.options.stacking)&&i&&p.isInsidePlot(w,E?i.x+1:i.y+i.height-1,{inverted:E,paneCoordinates:!0,series:this})),w=d.pos(),E&&w){J&&e.attr({align:at}),at=e.getBBox(!0);var s=[0,0],P=p.renderer.fontMetrics(e).b;if(i=X({x:w[0],y:Math.round(w[1]),width:0,height:0},i),X(t,{width:at.width,height:at.height}),J?(B=!1,s=p.renderer.rotCorr(P,J),P={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=[at.x-Number(e.attr("x")),at.y-Number(e.attr("y"))],r&&this.xAxis&&!B&&this.setDataLabelStartPos(d,e,a,$,P),e[a?"attr":"animate"](P)):(r&&this.xAxis&&!B&&this.setDataLabelStartPos(d,e,a,$,i),e.align(t,void 0,i),P=e.alignAttr),B&&0<=i.height)this.justifyDataLabel(e,t,P,at,i,a);else if(_(t.crop,!0)){let{x:z,y:I}=P;z+=s[0],I+=s[1],E=p.isInsidePlot(z,I,{paneCoordinates:!0,series:this})&&p.isInsidePlot(z+at.width,I+at.height,{paneCoordinates:!0,series:this})}t.shape&&!J&&e[a?"attr":"animate"]({anchorX:w[0],anchorY:w[1]})}a&&r&&(e.placed=!1),E||r&&!B?e.show():(e.hide(),e.placed=!1)}function g(d,e){var t=e.filter;return t?(e=t.operator,d=d[t.property],t=t.value,e===">"&&d>t||e==="<"&&d<t||e===">="&&d>=t||e==="<="&&d<=t||e==="=="&&d==t||e==="==="&&d===t):!0}function L(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function y(d){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},d):t.attr({opacity:1})),t}function k(d=this.points){var e,t;const i=this,a=i.chart,p=i.options,E=a.renderer,{backgroundColor:r,plotBackgroundColor:w}=a.options.chart,$=a.options.plotOptions,J=E.getContrast(N(w)&&w||N(r)&&r||"#000000");let at=p.dataLabels,B,s;var P=A(at)[0];const z=P.animation;P=P.defer?q(a,z,i):{defer:0,duration:0},at=l(l((e=$==null?void 0:$.series)===null||e===void 0?void 0:e.dataLabels,(t=$==null?void 0:$[i.type])===null||t===void 0?void 0:t.dataLabels),at),M(this,"drawDataLabels"),(R(at)||at.enabled||i._hasPointLabels)&&(s=this.initDataLabels(P),d.forEach(I=>{var K;const n=I.dataLabels||[];for(B=A(l(at,I.dlOptions||((K=I.options)===null||K===void 0?void 0:K.dataLabels))),B.forEach((f,m)=>{var H,F=f.enabled&&(!I.isNull||I.dataLabelOnNull)&&g(I,f);const G=I.connectors?I.connectors[m]:I.connector,ot=f.style||{};let nt={},lt=n[m],ht=!lt;const pt=_(f.distance,I.labelDistance);if(F){var D=_(f[I.formatPrefix+"Format"],f.format),T=I.getLabelConfig();if(T=Y(D)?Q(D,T,a):(f[I.formatPrefix+"Formatter"]||f.formatter).call(T,f),D=f.rotation,a.styledMode||(ot.color=_(f.color,ot.color,N(i.color)?i.color:void 0,"#000000"),ot.color==="contrast"?(I.contrastColor=E.getContrast(I.color||i.color),ot.color=!Y(pt)&&f.inside||0>(pt||0)||p.stacking?I.contrastColor:J):delete I.contrastColor,p.cursor&&(ot.cursor=p.cursor)),nt={r:f.borderRadius||0,rotation:D,padding:f.padding,zIndex:1},!a.styledMode){const{backgroundColor:tt,borderColor:V}=f;nt.fill=tt==="auto"?I.color:tt,nt.stroke=V==="auto"?I.color:V,nt["stroke-width"]=f.borderWidth}b(nt,(tt,V)=>{typeof tt>"u"&&delete nt[V]})}!lt||F&&Y(T)&&!!lt.div==!!f.useHTML&&(lt.rotation&&f.rotation||lt.rotation===f.rotation)||(lt=void 0,ht=!0,G&&I.connector&&(I.connector=I.connector.destroy(),I.connectors&&(I.connectors.length===1?delete I.connectors:delete I.connectors[m]))),F&&Y(T)&&(lt?nt.text=T:(lt=D?E.text(T,0,0,f.useHTML).addClass("highcharts-data-label"):E.label(T,0,0,f.shape,void 0,void 0,f.useHTML,void 0,"data-label"))&&lt.addClass(" highcharts-data-label-color-"+I.colorIndex+" "+(f.className||"")+(f.useHTML?" highcharts-tracker":"")),lt&&(lt.options=f,lt.attr(nt),a.styledMode||lt.css(ot).shadow(f.shadow),(F=f[I.formatPrefix+"TextPath"]||f.textPath)&&!f.useHTML&&(lt.setTextPath(((H=I.getDataLabelPath)===null||H===void 0?void 0:H.call(I,lt))||I.graphic,F),I.dataLabelPath&&!F.enabled&&(I.dataLabelPath=I.dataLabelPath.destroy())),lt.added||lt.add(s),i.alignDataLabel(I,lt,f,void 0,ht),lt.isActive=!0,n[m]&&n[m]!==lt&&n[m].destroy(),n[m]=lt))}),K=n.length;K--;)n[K].isActive?n[K].isActive=!1:(n[K].destroy(),n.splice(K,1));I.dataLabel=n[0],I.dataLabels=n})),M(this,"afterDrawDataLabels")}function o(d,e,t,i,a,p){const E=this.chart,r=e.align,w=e.verticalAlign,$=d.box?0:d.padding||0;let{x:J=0,y:at=0}=e,B,s;return B=(t.x||0)+$,0>B&&(r==="right"&&0<=J?(e.align="left",e.inside=!0):J-=B,s=!0),B=(t.x||0)+i.width-$,B>E.plotWidth&&(r==="left"&&0>=J?(e.align="right",e.inside=!0):J+=E.plotWidth-B,s=!0),B=t.y+$,0>B&&(w==="bottom"&&0<=at?(e.verticalAlign="top",e.inside=!0):at-=B,s=!0),B=(t.y||0)+i.height-$,B>E.plotHeight&&(w==="top"&&0>=at?(e.verticalAlign="bottom",e.inside=!0):at+=E.plotHeight-B,s=!0),s&&(e.x=J,e.y=at,d.placed=!p,d.align(e,void 0,a)),s}function l(d,e){let t=[],i;if(R(d)&&!R(e))t=d.map(function(a){return x(a,e)});else if(R(e)&&!R(d))t=e.map(function(a){return x(d,a)});else if(!R(d)&&!R(e))t=x(d,e);else if(R(d)&&R(e))for(i=Math.max(d.length,e.length);i--;)t[i]=x(d[i],e[i]);return t}function u(d,e,t,i,a){const p=this.chart,E=p.inverted,r=this.xAxis,w=r.reversed,$=E?e.height/2:e.width/2;d=(d=d.pointWidth)?d/2:0,e.startXPos=E?a.x:w?-$-d:r.width-$+d,e.startYPos=E?w?this.yAxis.height-$+d:-$-d: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),p.hasRendered&&(t&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}const h=[];v.compose=function(d){W.pushUnique(h,d)&&(d=d.prototype,d.initDataLabelsGroup=L,d.initDataLabels=y,d.alignDataLabel=S,d.drawDataLabels=k,d.justifyDataLabel=o,d.setDataLabelStartPos=u)}}(c||(c={})),c}),it(C,"Series/Column/ColumnDataLabel.js",[C["Core/Series/DataLabel.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Utilities.js"]],function(j,O,W){const{series:q}=O,{merge:Q,pick:Y}=W;var X;return function(M){function R(x,b,_,A,c){let v=this.chart.inverted;var S=x.series;let g=(S.xAxis?S.xAxis.len:this.chart.plotSizeX)||0;S=(S.yAxis?S.yAxis.len:this.chart.plotSizeY)||0;var L=x.dlBox||x.shapeArgs;let y=Y(x.below,x.plotY>Y(this.translatedThreshold,S)),k=Y(_.inside,!!this.options.stacking);L&&(A=Q(L),0>A.y&&(A.height+=A.y,A.y=0),L=A.y+A.height-S,0<L&&L<A.height&&(A.height-=L),v&&(A={x:S-A.y-A.height,y:g-A.x-A.width,width:A.height,height:A.width}),k||(v?(A.x+=y?0:A.width,A.width=0):(A.y+=y?A.height:0,A.height=0))),_.align=Y(_.align,!v||k?"center":y?"right":"left"),_.verticalAlign=Y(_.verticalAlign,v||k?"middle":y?"top":"bottom"),q.prototype.alignDataLabel.call(this,x,b,_,A,c),_.inside&&x.contrastColor&&b.css({color:x.contrastColor})}const N=[];M.compose=function(x){j.compose(q),W.pushUnique(N,x)&&(x.prototype.alignDataLabel=R)}}(X||(X={})),X}),it(C,"Series/Bar/BarSeries.js",[C["Series/Column/ColumnSeries.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Utilities.js"]],function(j,O,W){const{extend:q,merge:Q}=W;class Y extends j{constructor(){super(...arguments),this.points=this.options=this.data=void 0}}return Y.defaultOptions=Q(j.defaultOptions,{}),q(Y.prototype,{inverted:!0}),O.registerSeriesType("bar",Y),Y}),it(C,"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/>"}}}),it(C,"Series/Scatter/ScatterSeries.js",[C["Series/Scatter/ScatterSeriesDefaults.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Utilities.js"]],function(j,O,W){const{column:q,line:Q}=O.seriesTypes,{addEvent:Y,extend:X,merge:M}=W;class R extends Q{constructor(){super(...arguments),this.points=this.options=this.data=void 0}applyJitter(){const x=this,b=this.options.jitter,_=this.points.length;b&&this.points.forEach(function(A,c){["x","y"].forEach(function(v,S){let g="plot"+v.toUpperCase(),L,y;if(b[v]&&!A.isNull){var k=x[v+"Axis"];y=b[v]*k.transA,k&&!k.isLog&&(L=Math.max(0,A[g]-y),k=Math.min(k.len,A[g]+y),S=1e4*Math.sin(c+S*_),S-=Math.floor(S),A[g]=L+(k-L)*S,v==="x"&&(A.clientX=A.plotX))}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return R.defaultOptions=M(Q.defaultOptions,j),X(R.prototype,{drawTracker:q.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),Y(R,"afterTranslate",function(){this.applyJitter()}),O.registerSeriesType("scatter",R),R}),it(C,"Series/CenteredUtilities.js",[C["Core/Globals.js"],C["Core/Series/Series.js"],C["Core/Utilities.js"]],function(j,O,W){const{deg2rad:q}=j,{fireEvent:Q,isNumber:Y,pick:X,relativeLength:M}=W;var R;return function(N){N.getCenter=function(){var x=this.options,b=this.chart;const _=2*(x.slicedOffset||0),A=b.plotWidth-2*_,c=b.plotHeight-2*_;var v=x.center;const S=Math.min(A,c),g=x.thickness;var L=x.size;let y=x.innerSize||0;for(typeof L=="string"&&(L=parseFloat(L)),typeof y=="string"&&(y=parseFloat(y)),x=[X(v[0],"50%"),X(v[1],"50%"),X(L&&0>L?void 0:x.size,"100%"),X(y&&0>y?void 0:x.innerSize||0,"0%")],!b.angular||this instanceof O||(x[3]=0),v=0;4>v;++v)L=x[v],b=2>v||v===2&&/%$/.test(L),x[v]=M(L,[A,c,S,x[2]][v])+(b?_:0);return x[3]>x[2]&&(x[3]=x[2]),Y(g)&&2*g<x[2]&&0<g&&(x[3]=x[2]-2*g),Q(this,"afterGetCenter",{positions:x}),x},N.getStartAndEndRadians=function(x,b){return x=Y(x)?x:0,b=Y(b)&&b>x&&360>b-x?b:x+360,{start:q*(x+-90),end:q*(b+-90)}}}(R||(R={})),R}),it(C,"Series/Pie/PiePoint.js",[C["Core/Animation/AnimationUtilities.js"],C["Core/Series/Point.js"],C["Core/Utilities.js"]],function(j,O,W){const{setAnimation:q}=j,{addEvent:Q,defined:Y,extend:X,isNumber:M,pick:R,relativeLength:N}=W;class x extends O{constructor(){super(...arguments),this.series=this.options=this.labelDistance=void 0}getConnectorPath(){const _=this.labelPosition,A=this.series.options.dataLabels,c=this.connectorShapes;let v=A.connectorShape;return c[v]&&(v=c[v]),v.call(this,{x:_.computed.x,y:_.computed.y,alignment:_.alignment},_.connectorPosition,A)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(_){const A=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(A.x,A.y,A.r+_,A.r+_,{innerR:A.r-1,start:A.start,end:A.end,borderRadius:A.borderRadius})}init(){super.init.apply(this,arguments),this.name=R(this.name,"Slice");const _=A=>{this.slice(A.type==="select")};return Q(this,"select",_),Q(this,"unselect",_),this}isValid(){return M(this.y)&&0<=this.y}setVisible(_,A){const c=this.series,v=c.chart,S=c.options.ignoreHiddenPoint;A=R(A,S),_!==this.visible&&(this.visible=this.options.visible=_=typeof _>"u"?!this.visible:_,c.options.data[c.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach(g=>{this[g]&&this[g][_?"show":"hide"](_)}),this.legendItem&&v.legend.colorizeItem(this,_),_||this.state!=="hover"||this.setState(""),S&&(c.isDirty=!0),A&&v.redraw())}slice(_,A,c){const v=this.series;q(c,v.chart),R(A,!0),this.sliced=this.options.sliced=Y(_)?_:!this.sliced,v.options.data[v.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return X(x.prototype,{connectorShapes:{fixedOffset:function(b,_,A){const c=_.breakAt;return _=_.touchingSliceAt,[["M",b.x,b.y],A.softConnector?["C",b.x+(b.alignment==="left"?-5:5),b.y,2*c.x-_.x,2*c.y-_.y,c.x,c.y]:["L",c.x,c.y],["L",_.x,_.y]]},straight:function(b,_){return _=_.touchingSliceAt,[["M",b.x,b.y],["L",_.x,_.y]]},crookedLine:function(b,_,A){const{breakAt:c,touchingSliceAt:v}=_;({series:_}=this);const[S,g,L]=_.center,y=L/2,k=_.chart.plotWidth,o=_.chart.plotLeft;_=b.alignment==="left";const{x:l,y:u}=b;return A.crookDistance?(b=N(A.crookDistance,1),b=_?S+y+(k+o-S-y)*(1-b):o+(S-y)*b):b=S+(g-u)*Math.tan((this.angle||0)-Math.PI/2),A=[["M",l,u]],(_?b<=l&&b>=c.x:b>=l&&b<=c.x)&&A.push(["L",b,u]),A.push(["L",c.x,c.y],["L",v.x,v.y]),A}}}),x}),it(C,"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}}}}),it(C,"Series/Pie/PieSeries.js",[C["Series/CenteredUtilities.js"],C["Series/Column/ColumnSeries.js"],C["Core/Globals.js"],C["Series/Pie/PiePoint.js"],C["Series/Pie/PieSeriesDefaults.js"],C["Core/Series/Series.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Renderer/SVG/Symbols.js"],C["Core/Utilities.js"]],function(j,O,W,q,Q,Y,X,M,R){const{getStartAndEndRadians:N}=j;({noop:W}=W);const{clamp:x,extend:b,fireEvent:_,merge:A,pick:c,relativeLength:v}=R;class S extends Y{constructor(){super(...arguments),this.points=this.options=this.maxLabelDistance=this.data=this.center=void 0}animate(L){const y=this,k=y.points,o=y.startAngleRad;L||k.forEach(function(l){const u=l.graphic,h=l.shapeArgs;u&&h&&(u.attr({r:c(l.startR,y.center&&y.center[3]/2),start:o,end:o}),u.animate({r:h.r,start:h.start,end:h.end},y.options.animation))})}drawEmpty(){const L=this.startAngleRad,y=this.endAngleRad,k=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,L,y).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:M.arc(o,l,this.center[2]/2,0,{start:L,end:y,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":k.borderWidth,fill:k.fillColor||"none",stroke:k.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const L=this.chart.renderer;this.points.forEach(function(y){y.graphic&&y.hasNewShapeType()&&(y.graphic=y.graphic.destroy()),y.graphic||(y.graphic=L[y.shapeType](y.shapeArgs).add(y.series.group),y.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(L,y,k){const o=this.center,l=this.radii?this.radii[k.index]||0:o[2]/2;return L=Math.asin(x((L-o[1])/(l+k.labelDistance),-1,1)),o[0]+(y?-1:1)*Math.cos(L)*(l+k.labelDistance)+(0<k.labelDistance?(y?-1:1)*this.options.dataLabels.padding:0)}hasData(){return!!this.processedXData.length}redrawPoints(){const L=this,y=L.chart;let k,o,l,u;this.drawEmpty(),L.group&&!y.styledMode&&L.group.shadow(L.options.shadow),L.points.forEach(function(h){const d={};o=h.graphic,!h.isNull&&o?(u=h.shapeArgs,k=h.getTranslate(),y.styledMode||(l=L.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(o.setRadialReference(L.center).attr(u).attr(k),y.styledMode||o.attr(l).attr({"stroke-linejoin":"round"}),h.delayedRendering=!1):(o.setRadialReference(L.center),y.styledMode||A(!0,d,l),A(!0,d,u,k),o.animate(d)),o.attr({visibility:h.visible?"inherit":"hidden"}),o.addClass(h.getClassName(),!0)):o&&(h.graphic=o.destroy())})}sortByAngle(L,y){L.sort(function(k,o){return typeof k.angle<"u"&&(o.angle-k.angle)*y})}translate(L){_(this,"translate"),this.generatePoints();var y=this.options;const k=y.slicedOffset,o=k+(y.borderWidth||0);var l=N(y.startAngle,y.endAngle);const u=this.startAngleRad=l.start;l=(this.endAngleRad=l.end)-u;const h=this.points,d=y.dataLabels.distance;y=y.ignoreHiddenPoint;const e=h.length;let t,i,a,p=0;for(L||(this.center=L=this.getCenter()),i=0;i<e;i++){a=h[i];var E=u+p*l;!a.isValid()||y&&!a.visible||(p+=a.percentage/100);var r=u+p*l,w={x:L[0],y:L[1],r:L[2]/2,innerR:L[3]/2,start:Math.round(1e3*E)/1e3,end:Math.round(1e3*r)/1e3};a.shapeType="arc",a.shapeArgs=w,a.labelDistance=c(a.options.dataLabels&&a.options.dataLabels.distance,d),a.labelDistance=v(a.labelDistance,w.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,a.labelDistance),r=(r+E)/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)*k),translateY:Math.round(Math.sin(r)*k)},w=Math.cos(r)*L[2]/2,t=Math.sin(r)*L[2]/2,a.tooltipPos=[L[0]+.7*w,L[1]+.7*t],a.half=r<-Math.PI/2||r>Math.PI/2?1:0,a.angle=r,E=Math.min(o,a.labelDistance/5),a.labelPosition={natural:{x:L[0]+w+Math.cos(r)*a.labelDistance,y:L[1]+t+Math.sin(r)*a.labelDistance},computed:{},alignment:0>a.labelDistance?"center":a.half?"right":"left",connectorPosition:{breakAt:{x:L[0]+w+Math.cos(r)*E,y:L[1]+t+Math.sin(r)*E},touchingSliceAt:{x:L[0]+w,y:L[1]+t}}}}_(this,"afterTranslate")}updateTotals(){const L=this.points,y=L.length,k=this.options.ignoreHiddenPoint;let o,l,u=0;for(o=0;o<y;o++)l=L[o],!l.isValid()||k&&!l.visible||(u+=l.y);for(this.total=u,o=0;o<y;o++)l=L[o],l.percentage=0<u&&(l.visible||!k)?l.y/u*100:0,l.total=u}}return S.defaultOptions=A(Y.defaultOptions,Q),b(S.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:O.prototype.drawTracker,getCenter:j.getCenter,getSymbol:W,isCartesian:!1,noSharedTooltip:!0,pointAttribs:O.prototype.pointAttribs,pointClass:q,requireSorting:!1,searchPoint:W,trackerGroups:["group","dataLabelsGroup"]}),X.registerSeriesType("pie",S),S}),it(C,"Series/Pie/PieDataLabel.js",[C["Core/Series/DataLabel.js"],C["Core/Globals.js"],C["Core/Renderer/RendererUtilities.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Utilities.js"]],function(j,O,W,q,Q){const{noop:Y}=O,{distribute:X}=W,{series:M}=q,{arrayMax:R,clamp:N,defined:x,merge:b,pick:_,relativeLength:A}=Q;var c;return function(v){function S(){const o=this,l=o.data,u=o.chart,h=o.options.dataLabels||{},d=h.connectorPadding,e=u.plotWidth,t=u.plotHeight,i=u.plotLeft,a=Math.round(u.chartWidth/3),p=o.center,E=p[2]/2,r=p[1],w=[[],[]],$=[0,0,0,0],J=o.dataLabelPositioners;let at,B,s,P,z,I,K,n,f,m,H,F;o.visible&&(h.enabled||o._hasPointLabels)&&(l.forEach(function(G){G.dataLabel&&G.visible&&G.dataLabel.shortened&&(G.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),G.dataLabel.shortened=!1)}),M.prototype.drawDataLabels.apply(o),l.forEach(function(G){G.dataLabel&&(G.visible?(w[G.half].push(G),G.dataLabel._pos=null,!x(h.style.width)&&!x(G.options.dataLabels&&G.options.dataLabels.style&&G.options.dataLabels.style.width)&&G.dataLabel.getBBox().width>a&&(G.dataLabel.css({width:Math.round(.7*a)+"px"}),G.dataLabel.shortened=!0)):(G.dataLabel=G.dataLabel.destroy(),G.dataLabels&&G.dataLabels.length===1&&delete G.dataLabels))}),w.forEach((G,ot)=>{const nt=G.length,lt=[];let ht,pt=0;if(nt){if(o.sortByAngle(G,ot-.5),0<o.maxLabelDistance){var D=Math.max(0,r-E-o.maxLabelDistance);ht=Math.min(r+E+o.maxLabelDistance,u.plotHeight),G.forEach(function(T){0<T.labelDistance&&T.dataLabel&&(T.top=Math.max(0,r-E-T.labelDistance),T.bottom=Math.min(r+E+T.labelDistance,u.plotHeight),pt=T.dataLabel.getBBox().height||21,T.distributeBox={target:T.labelPosition.natural.y-T.top+pt/2,size:pt,rank:T.y},lt.push(T.distributeBox))}),D=ht+pt-D,X(lt,D,D/5)}for(H=0;H<nt;H++){if(at=G[H],I=at.labelPosition,P=at.dataLabel,m=at.visible===!1?"hidden":"inherit",f=D=I.natural.y,lt&&x(at.distributeBox)&&(typeof at.distributeBox.pos>"u"?m="hidden":(K=at.distributeBox.size,f=J.radialDistributionY(at))),delete at.positionIndex,h.justify)n=J.justify(at,E,p);else switch(h.alignTo){case"connectors":n=J.alignToConnectors(G,ot,e,i);break;case"plotEdges":n=J.alignToPlotEdges(P,ot,e,i);break;default:n=J.radialDistributionX(o,at,f,D)}P._attr={visibility:m,align:I.alignment},F=at.options.dataLabels||{},P._pos={x:n+_(F.x,h.x)+({left:d,right:-d}[I.alignment]||0),y:f+_(F.y,h.y)-P.getBBox().height/2},I&&(I.computed.x=n,I.computed.y=f),_(h.crop,!0)&&(z=P.getBBox().width,D=null,n-z<d&&ot===1?(D=Math.round(z-n+d),$[3]=Math.max(D,$[3])):n+z>e-d&&ot===0&&(D=Math.round(n+z-e+d),$[1]=Math.max(D,$[1])),0>f-K/2?$[0]=Math.max(Math.round(-f+K/2),$[0]):f+K/2>t&&($[2]=Math.max(Math.round(f+K/2-t),$[2])),P.sideOverflow=D)}}}),R($)===0||this.verifyDataLabelOverflow($))&&(this.placeDataLabels(),this.points.forEach(function(G){if(F=b(h,G.options.dataLabels),B=_(F.connectorWidth,1)){let ot;s=G.connector,(P=G.dataLabel)&&P._pos&&G.visible&&0<G.labelDistance?(m=P._attr.visibility,(ot=!s)&&(G.connector=s=u.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+G.colorIndex+(G.className?" "+G.className:"")).add(o.dataLabelsGroup),u.styledMode||s.attr({"stroke-width":B,stroke:F.connectorColor||G.color||"#666666"})),s[ot?"attr":"animate"]({d:G.getConnectorPath()}),s.attr("visibility",m)):s&&(G.connector=s.destroy())}}))}function g(){this.points.forEach(function(o){let l=o.dataLabel,u;l&&o.visible&&((u=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"](u),l.moved=!0):l&&l.attr({y:-9999})),delete o.distributeBox},this)}function L(o){let l=this.center,u=this.options,h=u.center,d=u.minSize||80,e,t=u.size!==null;return t||(h[0]!==null?e=Math.max(l[2]-Math.max(o[1],o[3]),d):(e=Math.max(l[2]-o[1]-o[3],d),l[0]+=(o[3]-o[1])/2),h[1]!==null?e=N(e,d,l[2]-Math.max(o[0],o[2])):(e=N(e,d,l[2]-o[0]-o[2]),l[1]+=(o[0]-o[2])/2),e<l[2]?(l[2]=e,l[3]=Math.min(u.thickness?Math.max(0,e-2*u.thickness):Math.max(0,A(u.innerSize||0,e)),e),this.translate(l),this.drawDataLabels&&this.drawDataLabels()):t=!0),t}const y=[],k={radialDistributionY:function(o){return o.top+o.distributeBox.pos},radialDistributionX:function(o,l,u,h){return o.getX(u<l.top+2||u>l.bottom-2?h:u,l.half,l)},justify:function(o,l,u){return u[0]+(o.half?-1:1)*(l+o.labelDistance)},alignToPlotEdges:function(o,l,u,h){return o=o.getBBox().width,l?o+h:u-o-h},alignToConnectors:function(o,l,u,h){let d=0,e;return o.forEach(function(t){e=t.dataLabel.getBBox().width,e>d&&(d=e)}),l?d+h:u-d-h}};v.compose=function(o){j.compose(M),Q.pushUnique(y,o)&&(o=o.prototype,o.dataLabelPositioners=k,o.alignDataLabel=Y,o.drawDataLabels=S,o.placeDataLabels=g,o.verifyDataLabelOverflow=L)}}(c||(c={})),c}),it(C,"Extensions/OverlappingDataLabels.js",[C["Core/Chart/Chart.js"],C["Core/Utilities.js"]],function(j,O){function W(N,x){let b,_=!1;return N&&(b=N.newOpacity,N.oldOpacity!==b&&(N.alignAttr&&N.placed?(N[b?"removeClass":"addClass"]("highcharts-data-label-hidden"),_=!0,N.alignAttr.opacity=b,N[N.isOld?"animate":"attr"](N.alignAttr,null,function(){x.styledMode||N.css({pointerEvents:b?"auto":"none"})}),Q(x,"afterHideOverlappingLabel")):N.attr({opacity:b})),N.isOld=!0),_}const{addEvent:q,fireEvent:Q,isArray:Y,isNumber:X,objectEach:M,pick:R}=O;q(j,"render",function(){let N=this,x=[];(this.labelCollectors||[]).forEach(function(b){x=x.concat(b())}),(this.yAxis||[]).forEach(function(b){b.stacking&&b.options.stackLabels&&!b.options.stackLabels.allowOverlap&&M(b.stacking.stacks,function(_){M(_,function(A){A.label&&x.push(A.label)})})}),(this.series||[]).forEach(function(b){var _=b.options.dataLabels;b.visible&&(_.enabled!==!1||b._hasPointLabels)&&(_=A=>A.forEach(c=>{c.visible&&(Y(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[]).forEach(function(v){const S=v.options;v.labelrank=R(S.labelrank,c.labelrank,c.shapeArgs&&c.shapeArgs.height),S.allowOverlap?(v.oldOpacity=v.opacity,v.newOpacity=1,W(v,N)):x.push(v)})}),_(b.nodes||[]),_(b.points))}),this.hideOverlappingLabels(x)}),j.prototype.hideOverlappingLabels=function(N){let x=this,b=N.length,_=x.renderer;var A;let c,v,S,g,L=!1;var y=function(k){let o,l;var u;let h=k.box?0:k.padding||0,d=u=0,e,t;if(k&&(!k.alignAttr||k.placed))return o=k.alignAttr||{x:k.attr("x"),y:k.attr("y")},l=k.parentGroup,k.width||(u=k.getBBox(),k.width=u.width,k.height=u.height,u=_.fontMetrics(k.element).h),e=k.width-2*h,(t={left:"0",center:"0.5",right:"1"}[k.alignValue])?d=+t*e:X(k.x)&&Math.round(k.x)!==k.translateX&&(d=k.x-k.translateX),{x:o.x+(l.translateX||0)+h-(d||0),y:o.y+(l.translateY||0)+h-u,width:k.width-2*h,height:k.height-2*h}};for(c=0;c<b;c++)(A=N[c])&&(A.oldOpacity=A.opacity,A.newOpacity=1,A.absoluteBox=y(A));for(N.sort(function(k,o){return(o.labelrank||0)-(k.labelrank||0)}),c=0;c<b;c++)for(S=(y=N[c])&&y.absoluteBox,A=c+1;A<b;++A)g=(v=N[A])&&v.absoluteBox,!S||!g||y===v||y.newOpacity===0||v.newOpacity===0||y.visibility==="hidden"||v.visibility==="hidden"||g.x>=S.x+S.width||g.x+g.width<=S.x||g.y>=S.y+S.height||g.y+g.height<=S.y||((y.labelrank<v.labelrank?y:v).newOpacity=0);N.forEach(function(k){W(k,x)&&(L=!0)}),L&&Q(x,"afterHideAllOverlappingLabels")}}),it(C,"Extensions/BorderRadius.js",[C["Core/Defaults.js"],C["Core/Series/Series.js"],C["Core/Series/SeriesRegistry.js"],C["Core/Renderer/SVG/SVGElement.js"],C["Core/Renderer/SVG/SVGRenderer.js"],C["Core/Utilities.js"]],function(j,O,W,q,Q,Y){const{defaultOptions:X}=j;({seriesTypes:j}=W);const{addEvent:M,extend:R,isObject:N,merge:x,relativeLength:b}=Y,_={radius:0,scope:"stack",where:void 0},A=(c,v)=>(N(c)||(c={radius:c||0}),x(_,v,c));if(q.symbolCustomAttribs.indexOf("borderRadius")===-1){q.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY");const c=Q.prototype.symbols.arc;Q.prototype.symbols.arc=function(S,g,L,y,k={}){S=c(S,g,L,y,k);const{innerR:o=0,r:l=L,start:u=0,end:h=0}=k;if(k.open||!k.borderRadius)return S;for(L=h-u,g=Math.sin(L/2),k=Math.max(Math.min(b(k.borderRadius||0,l-o),(l-o)/2,l*g/(1+g)),0),L=Math.min(k,L/Math.PI*2*o),g=S.length-1;g--;){let E,r,w;y=S;var d=g,e=1<g?L:k,t=y[d],i=y[d+1];if(i[0]==="Z"&&(i=y[0]),t[0]!=="M"&&t[0]!=="L"||i[0]!=="A"?t[0]!=="A"||i[0]!=="M"&&i[0]!=="L"||(w=i,r=t):(w=t,r=i,E=!0),w&&r&&r.params){t=r[1];var a=r[5];i=r.params;const{start:$,end:J,cx:at,cy:B}=i;var p=a?t-e:t+e;const s=p?Math.asin(e/p):0;a=a?s:-s,p*=Math.cos(s),E?(i.start=$+a,w[1]=at+p*Math.cos($),w[2]=B+p*Math.sin($),y.splice(d+1,0,["A",e,e,0,0,1,at+t*Math.cos(i.start),B+t*Math.sin(i.start)])):(i.end=J-a,r[6]=at+t*Math.cos(i.end),r[7]=B+t*Math.sin(i.end),y.splice(d+1,0,["A",e,e,0,0,1,at+p*Math.cos(J),B+p*Math.sin(J)])),r[4]=Math.abs(i.end-i.start)<Math.PI?0:1}}return S};const v=Q.prototype.symbols.roundedRect;Q.prototype.symbols.roundedRect=function(S,g,L,y,k={}){const o=v(S,g,L,y,k),{r:l=0,brBoxHeight:u=y,brBoxY:h=g}=k;var d=g-h,e=h+u-(g+y);k=-.1<d-l?0:l;const t=-.1<e-l?0:l;var i=Math.max(k&&d,0);const a=Math.max(t&&e,0);e=[S+k,g],d=[S+L-k,g];const p=[S+L,g+k],E=[S+L,g+y-t],r=[S+L-t,g+y],w=[S+t,g+y],$=[S,g+y-t],J=[S,g+k];if(i){const at=Math.sqrt(Math.pow(k,2)-Math.pow(k-i,2));e[0]-=at,d[0]+=at,p[1]=J[1]=g+k-i}return y<k-i&&(i=Math.sqrt(Math.pow(k,2)-Math.pow(k-i-y,2)),p[0]=E[0]=S+L-k+i,r[0]=Math.min(p[0],r[0]),w[0]=Math.max(E[0],w[0]),$[0]=J[0]=S+k-i,p[1]=J[1]=g+y),a&&(i=Math.sqrt(Math.pow(t,2)-Math.pow(t-a,2)),r[0]+=i,w[0]-=i,E[1]=$[1]=g+y-t+a),y<t-a&&(y=Math.sqrt(Math.pow(t,2)-Math.pow(t-a-y,2)),p[0]=E[0]=S+L-t+y,d[0]=Math.min(p[0],d[0]),e[0]=Math.max(E[0],e[0]),$[0]=J[0]=S+t-y,E[1]=$[1]=g),o.length=0,o.push(["M",...e],["L",...d],["A",k,k,0,0,1,...p],["L",...E],["A",t,t,0,0,1,...r],["L",...w],["A",t,t,0,0,1,...$],["L",...J],["A",k,k,0,0,1,...e],["Z"]),o},M(j.pie,"afterTranslate",function(){const S=A(this.options.borderRadius);for(const g of this.points){const L=g.shapeArgs;L&&(L.borderRadius=b(S.radius,(L.r||0)-(L.innerR||0)))}}),M(O,"afterColumnTranslate",function(){var S,g;if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){const{options:o,yAxis:l}=this,u=o.stacking==="percent";var L=(g=(S=X.plotOptions)===null||S===void 0?void 0:S[this.type])===null||g===void 0?void 0:g.borderRadius;S=A(o.borderRadius,N(L)?L:{}),g=l.options.reversed;for(const h of this.points)if({shapeArgs:L}=h,h.shapeType==="roundedRect"&&L){const{width:d=0,height:e=0,y:t=0}=L;var y=t,k=e;S.scope==="stack"&&h.stackTotal&&(y=l.translate(u?100:h.stackTotal,!1,!0,!1,!0),k=l.translate(o.threshold||0,!1,!0,!1,!0),k=this.crispCol(0,Math.min(y,k),0,Math.abs(y-k)),y=k.y,k=k.height);const i=(h.negative?-1:1)*(g?-1:1)===-1;let a=S.where;!a&&this.is("waterfall")&&Math.abs((h.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(a="all"),a||(a="end");const p=Math.min(b(S.radius,d),d/2,a==="all"?e/2:1/0)||0;a==="end"&&(i&&(y-=p),k+=p),R(L,{brBoxHeight:k,brBoxY:y,r:p})}}},{order:9})}return O={optionsToObject:A},O}),it(C,"Core/Responsive.js",[C["Core/Utilities.js"]],function(j){const{diffObjects:O,extend:W,find:q,merge:Q,pick:Y,uniqueKey:X}=j;var M;return function(R){function N(_,A){const c=_.condition;(c.callback||function(){return this.chartWidth<=Y(c.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=Y(c.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=Y(c.minWidth,0)&&this.chartHeight>=Y(c.minHeight,0)}).call(this)&&A.push(_._id)}function x(_,A){const c=this.options.responsive;var v=this.currentResponsive;let S=[];!A&&c&&c.rules&&c.rules.forEach(g=>{typeof g._id>"u"&&(g._id=X()),this.matchResponsiveRule(g,S)},this),A=Q(...S.map(g=>q((c||{}).rules||[],L=>L._id===g)).map(g=>g&&g.chartOptions)),A.isResponsiveOptions=!0,S=S.toString()||void 0,S!==(v&&v.ruleIds)&&(v&&this.update(v.undoOptions,_,!0),S?(v=O(A,this.options,!0,this.collectionsWithUpdate),v.isResponsiveOptions=!0,this.currentResponsive={ruleIds:S,mergedOptions:A,undoOptions:v},this.update(A,_,!0)):this.currentResponsive=void 0)}const b=[];R.compose=function(_){return j.pushUnique(b,_)&&W(_.prototype,{matchResponsiveRule:N,setResponsive:x}),_}}(M||(M={})),M}),it(C,"masters/highcharts.src.js",[C["Core/Globals.js"],C["Core/Utilities.js"],C["Core/Defaults.js"],C["Core/Animation/Fx.js"],C["Core/Animation/AnimationUtilities.js"],C["Core/Renderer/HTML/AST.js"],C["Core/Templating.js"],C["Core/Renderer/RendererUtilities.js"],C["Core/Renderer/SVG/SVGElement.js"],C["Core/Renderer/SVG/SVGRenderer.js"],C["Core/Renderer/HTML/HTMLElement.js"],C["Core/Renderer/HTML/HTMLRenderer.js"],C["Core/Axis/Axis.js"],C["Core/Axis/DateTimeAxis.js"],C["Core/Axis/LogarithmicAxis.js"],C["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],C["Core/Axis/Tick.js"],C["Core/Tooltip.js"],C["Core/Series/Point.js"],C["Core/Pointer.js"],C["Core/Legend/Legend.js"],C["Core/Chart/Chart.js"],C["Core/Axis/Stacking/StackingAxis.js"],C["Core/Axis/Stacking/StackItem.js"],C["Core/Series/Series.js"],C["Core/Series/SeriesRegistry.js"],C["Series/Column/ColumnSeries.js"],C["Series/Column/ColumnDataLabel.js"],C["Series/Pie/PieSeries.js"],C["Series/Pie/PieDataLabel.js"],C["Core/Series/DataLabel.js"],C["Core/Responsive.js"],C["Core/Color/Color.js"],C["Core/Time.js"]],function(j,O,W,q,Q,Y,X,M,R,N,x,b,_,A,c,v,S,g,L,y,k,o,l,u,h,d,e,t,i,a,p,E,r,w){return j.animate=Q.animate,j.animObject=Q.animObject,j.getDeferredAnimation=Q.getDeferredAnimation,j.setAnimation=Q.setAnimation,j.stop=Q.stop,j.timers=q.timers,j.AST=Y,j.Axis=_,j.Chart=o,j.chart=o.chart,j.Fx=q,j.Legend=k,j.PlotLineOrBand=v,j.Point=L,j.Pointer=y,j.Series=h,j.StackItem=u,j.SVGElement=R,j.SVGRenderer=N,j.Templating=X,j.Tick=S,j.Time=w,j.Tooltip=g,j.Color=r,j.color=r.parse,b.compose(N),x.compose(R),y.compose(o),k.compose(o),j.defaultOptions=W.defaultOptions,j.getOptions=W.getOptions,j.time=W.defaultTime,j.setOptions=W.setOptions,j.dateFormat=X.dateFormat,j.format=X.format,j.numberFormat=X.numberFormat,j.addEvent=O.addEvent,j.arrayMax=O.arrayMax,j.arrayMin=O.arrayMin,j.attr=O.attr,j.clearTimeout=O.clearTimeout,j.correctFloat=O.correctFloat,j.createElement=O.createElement,j.css=O.css,j.defined=O.defined,j.destroyObjectProperties=O.destroyObjectProperties,j.discardElement=O.discardElement,j.distribute=M.distribute,j.erase=O.erase,j.error=O.error,j.extend=O.extend,j.extendClass=O.extendClass,j.find=O.find,j.fireEvent=O.fireEvent,j.getMagnitude=O.getMagnitude,j.getStyle=O.getStyle,j.inArray=O.inArray,j.isArray=O.isArray,j.isClass=O.isClass,j.isDOMElement=O.isDOMElement,j.isFunction=O.isFunction,j.isNumber=O.isNumber,j.isObject=O.isObject,j.isString=O.isString,j.keys=O.keys,j.merge=O.merge,j.normalizeTickInterval=O.normalizeTickInterval,j.objectEach=O.objectEach,j.offset=O.offset,j.pad=O.pad,j.pick=O.pick,j.pInt=O.pInt,j.relativeLength=O.relativeLength,j.removeEvent=O.removeEvent,j.seriesType=d.seriesType,j.splat=O.splat,j.stableSort=O.stableSort,j.syncTimeout=O.syncTimeout,j.timeUnits=O.timeUnits,j.uniqueKey=O.uniqueKey,j.useSerialIds=O.useSerialIds,j.wrap=O.wrap,t.compose(e),p.compose(h),A.compose(_),c.compose(_),a.compose(i),v.compose(_),E.compose(o),l.compose(_,o,h),g.compose(y),j}),C["masters/highcharts.src.js"]._modules=C,C["masters/highcharts.src.js"]})}(ue)),ue.exports}(function(rt,et){(function(it,C){rt.exports=C(fo(),ni)})(window,function(it,C){return O=[function(q,Q){q.exports=it},function(q,Q){q.exports=C},function(q,X,Y){Y.r(X),Y.d(X,"Chart",function(){return g}),Y.d(X,"default",function(){return L});var X=Y(0),M=Y.n(X);function R(y,k){return function o(l,u,h){function d(e,t){!M.a.isObject(e,!h)||M.a.isClass(e)||M.a.isDOMElement(e)?l[t]=u[t]:l[t]=o(l[t]||M.a.isArray(e)?[]:{},e,h)}return M.a.isArray(u)?u.forEach(d):M.a.objectEach(u,d),l}({},y,k)}var N=Y(1);function x(y){return(x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(y)}function b(y){return function(k){if(Array.isArray(k))return _(k)}(y)||function(k){if(typeof Symbol<"u"&&k[Symbol.iterator]!=null||k["@@iterator"]!=null)return Array.from(k)}(y)||function(k,o){var l;if(k)return typeof k=="string"?_(k,o):(l=(l=Object.prototype.toString.call(k).slice(8,-1))==="Object"&&k.constructor?k.constructor.name:l)==="Map"||l==="Set"?Array.from(k):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?_(k,o):void 0}(y)||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 _(y,k){(k==null||k>y.length)&&(k=y.length);for(var o=0,l=new Array(k);o<k;o++)l[o]=y[o];return l}function A(y,k){var o,l=Object.keys(y);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(y),k&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(y,u).enumerable})),l.push.apply(l,o)),l}function c(y){for(var k=1;k<arguments.length;k++){var o=arguments[k]!=null?arguments[k]:{};k%2?A(Object(o),!0).forEach(function(l){var u,h;u=y,h=o[l=l],(l=function(d){return d=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.")}(d,"string"),x(d)==="symbol"?d:String(d)}(l))in u?Object.defineProperty(u,l,{value:h,enumerable:!0,configurable:!0,writable:!0}):u[l]=h}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(o)):A(Object(o)).forEach(function(l){Object.defineProperty(y,l,Object.getOwnPropertyDescriptor(o,l))})}return y}var v={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}}},S=function(y,k){return k.split(".")[0]<3?c(c({},v),{},{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,[R(o,this.deepCopyOnUpdate)].concat(b(this.updateArgs)))},deep:!0}},mounted:function(){var o=this.highcharts||y;this.options&&o[this.constructorType]?this.chart=o[this.constructorType](this.$refs.chart,R(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.')}}):c(c({},v),{},{render:function(){return Object(N.h)("div",{ref:"chartContainer"})},setup:function(o){var l=Object(N.ref)(null),u=Object(N.shallowRef)({});return Object(N.onMounted)(function(){var h=o.highcharts||y;o.options&&h[o.constructorType]?u.value=h[o.constructorType](l.value,R(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(N.watch)(function(){return o.options},function(h,d){var e;(e=u.value).update.apply(e,[R(h,o.deepCopyOnUpdate)].concat(b(o.updateArgs)))},{deep:!0}),Object(N.onBeforeUnmount)(function(){u.value&&u.value.destroy()}),{chart:u,chartContainer:l,props:o}}})},g=S(M.a,N.version||Y.n(N).a.version);function L(y){var k=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};y.component(k.tagName||"highcharts",S(k.highcharts||M.a,y.version))}}],W={},j.m=O,j.c=W,j.d=function(q,Q,Y){j.o(q,Q)||Object.defineProperty(q,Q,{enumerable:!0,get:Y})},j.r=function(q){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(q,"__esModule",{value:!0})},j.t=function(q,Q){if(1&Q&&(q=j(q)),8&Q||4&Q&&typeof q=="object"&&q&&q.__esModule)return q;var Y=Object.create(null);if(j.r(Y),Object.defineProperty(Y,"default",{enumerable:!0,value:q}),2&Q&&typeof q!="string")for(var X in q)j.d(Y,X,(function(M){return q[M]}).bind(null,X));return Y},j.n=function(q){var Q=q&&q.__esModule?function(){return q.default}:function(){return q};return j.d(Q,"a",Q),Q},j.o=function(q,Q){return Object.prototype.hasOwnProperty.call(q,Q)},j.p="",j(j.s=2);function j(q){var Q;return(W[q]||(Q=W[q]={i:q,l:!1,exports:{}},O[q].call(Q.exports,Q,Q.exports,j),Q.l=!0,Q)).exports}var O,W})})(We);var he=We.exports;const mo={class:"w-full",flex:"","flex-col":""},go={class:"sm:w-full md:w-[92%]","mx-auto":"","px-4":"","py-4":"","lg:px-6":"","lg:py-6":""},xo={grid:"","grid-cols-3":"","gap-10":"","space-y-0":""},yo={class:"mx-auto w-[16rem]","p-6":"","xl:p-8":"",flex:"","flex-col":"",border:"","border-gray-100":"","dark:border-gray-600":"","text-center":"","test-gray-900":"","bg-white":"","dark:bg-gray-800":"","dark:text-white":"",shadow:"","rounded-md":""},vo={"mb-4":"","text-2xl":"","font-semibold":""},ko={class:"my-8 flex items-baseline justify-center"},bo={class:"mr-2 text-5xl font-extrabold"},So={"mt-8":"","gap-8":"",flex:"","flex-col":""},wo=Lt({__name:"Statistics",props:{rank:null},setup(rt){const et=rt,{t:it}=Kt(),C=kt(()=>et.rank);function j(){const O=[];return O.push({title:"standings.statistics.head_data.problems",data:C.value.contest.problems.length}),O.push({title:"standings.statistics.head_data.teams",data:C.value.teams.length}),O.push({title:"standings.statistics.head_data.submissions",data:C.value.getSubmissions().length}),O}return(O,W)=>(ut(),ft("div",mo,[Z("section",null,[Z("div",go,[Z("div",xo,[(ut(!0),ft(Ot,null,It(j(),q=>(ut(),ft("div",{key:q.title},[Z("div",yo,[Z("h3",vo,mt(U(it)(q.title)),1),Z("div",ko,[Z("span",bo,mt(q.data),1)])])]))),128))])])]),Z("div",So,[Z("div",null,[Ct(U(he.Chart),{options:("getSubmitChart"in O?O.getSubmitChart:U(uo))(U(C))},null,8,["options"])]),Z("div",null,[Ct(U(he.Chart),{options:("getProblemChart"in O?O.getProblemChart:U(ho))(U(C))},null,8,["options"])]),Z("div",null,[Ct(U(he.Chart),{options:("getTeamChart"in O?O.getTeamChart:U(co))(U(C))},null,8,["options"])])])]))}}),Co={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"},Mo={class:"text-sm font-normal text-gray-500 dark:text-gray-400"},To={class:"font-semibold text-gray-900 dark:text-white"},_o={class:"font-semibold text-gray-900 dark:text-white"},Ao={class:"inline-flex items-stretch font-mono -space-x-px"},Po=Z("span",{class:"sr-only"},"Previous",-1),Oo=Z("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[Z("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),Lo=[Po,Oo],Eo={key:0},Do=["onClick"],Io={"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"},jo=["onClick"],Bo={key:1},zo=Z("span",{class:"sr-only"},"Next",-1),Ro=Z("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[Z("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),No=[zo,Ro],ae="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",$o=Lt({__name:"TablePagination",props:{pagination:null},emits:["update:pagination"],setup(rt,{emit:et}){const it=rt,C=kt({get(){return it.pagination},set(j){et("update:pagination",j)}});return(j,O)=>(ut(),ft("nav",Co,[Z("span",Mo,[Ht(" Showing "),Z("span",To,mt(U(C).currentLeft)+"-"+mt(Math.max(0,U(C).currentRight-1)),1),Ht(" of "),Z("span",_o,mt(U(C).totalSize),1)]),Z("ul",Ao,[Z("li",null,[Z("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:O[0]||(O[0]=W=>U(C).onPageChange({diff:-1}))},Lo)]),U(C).currentPage!==0?(ut(),ft("li",Eo,[Z("a",{class:At(ae),hover:"cursor-pointer",onClick:O[1]||(O[1]=W=>U(C).onPageChange({to:0}))}," 1 ")])):bt("",!0),(ut(!0),ft(Ot,null,It(U(C).leftDecrPage,W=>(ut(),ft("li",{key:W},[Z("a",{class:At(ae),hover:"cursor-pointer",onClick:q=>U(C).onPageChange({to:W})},mt(W+1),9,Do)]))),128)),Z("li",null,[Z("a",Io,mt(U(C).currentPage+1),1)]),(ut(!0),ft(Ot,null,It(U(C).rightIncrPage,W=>(ut(),ft("li",{key:W},[Z("a",{hover:"cursor-pointer",class:At(ae),onClick:q=>U(C).onPageChange({to:W})},mt(W+1),9,jo)]))),128)),U(C).currentPage!==U(C).totalPage-1&&U(C).totalPage>1?(ut(),ft("li",Bo,[Z("a",{hover:"cursor-pointer",class:At(ae),onClick:O[2]||(O[2]=W=>U(C).onPageChange({to:U(C).totalPage-1}))},mt(U(C).totalPage),1)])):bt("",!0),Z("li",null,[Z("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:O[3]||(O[3]=W=>U(C).onPageChange({diff:1}))},No)])])]))}});class Ho{constructor(){re(this,"totalSize");re(this,"currentPage");re(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 et=[];let it=1,C=this.currentPage-it;for(;C>0;)et.push(C),it=it<<1,C-=it;return et.reverse()}get rightIncrPage(){const et=[];let it=1,C=this.currentPage+it;for(;C+1<this.totalPage;)et.push(C),it=it<<1,C+=it;return et}onPageChange(et){const it=this.totalPage;let C=this.currentPage;if((et==null?void 0:et.to)!==void 0&&(C=et.to),(et==null?void 0:et.diff)!==void 0){const j=et.diff;C=C+j}C<0||C>=it||(this.currentPage=C)}}const ne=rt=>(se("data-v-72257074"),rt=rt(),oe(),rt),Go={"mx-auto":"","w-full":""},Wo={"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":""},Fo={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":""},Xo={key:0,"w-48":""},Uo={key:1,"w-48":""},Yo={key:2,"w-68":""},Vo={key:3,"w-48":""},qo={key:4},Ko=ne(()=>Z("div",{"i-material-symbols-search":"","mr-1":"","h-5":"","w-5":""},null,-1)),Zo={class:"overflow-x-auto"},Jo={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400","font-medium":"","font-mono":""},Qo={class:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"},tn=ne(()=>Z("th",{scope:"col",class:"px-4 py-3"}," Problem ",-1)),en={key:0,scope:"col",class:"px-4 py-3"},sn=ne(()=>Z("th",{scope:"col",class:"px-4 py-3"}," Team ",-1)),on=ne(()=>Z("th",{scope:"col",class:"px-4 py-3"}," Status ",-1)),nn={key:1,scope:"col",class:"px-4 py-3"},rn={key:2,scope:"col",class:"px-4 py-3"},an={key:3,scope:"col",class:"px-4 py-3"},ln=ne(()=>Z("th",{scope:"col",class:"px-4 py-3"}," Submit Time ",-1)),hn={"px-4":"","py-2":""},cn={key:0,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},dn={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},un={key:1,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},pn={flex:"","items-center":""},fn={key:2,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},mn={key:3,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},gn={flex:"","items-center":""},xn={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},yn={flex:"","items-center":""},vn=Lt({__name:"SubmissionsTable",props:{rank:null,submissions:null,pageSize:null,removeBorder:{type:Boolean},enableFilter:null},setup(rt){const et=rt,it=kt(()=>et.rank),C=kt(()=>et.enableFilter),j=kt(()=>{if(!C.value)return!1;for(const[e,t]of Object.entries(C.value))if(t===!0)return!0;return!1}),O=_t({orgNames:[],teamIds:[],languages:[],statuses:[]}),W=kt(()=>it.value.organizations.map(t=>({value:t,text:t}))),q=_t([]),Q=_t({});function Y(e,t){q.value=e,Q.value=t}const X=kt(()=>it.value.originTeams.map(t=>({value:t.id,text:t.organization?`${t.name} - ${t.organization}`:t.name}))),M=_t([]),R=_t({});function N(e,t){M.value=e,R.value=t}const x=kt(()=>it.value.languages.map(i=>({value:i,text:i}))),b=_t([]),_=_t({});function A(e,t){b.value=e,_.value=t}const c=kt(()=>it.value.statuses.map(i=>({value:i,text:ke[i]}))),v=_t([]),S=_t({});function g(e,t){v.value=e,S.value=t}function L(e){return e.value.toString()}const y=kt(()=>et.submissions.filter(t=>{const i=O.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=it.value.teamsMap.get(t.teamId);for(const p of i.orgNames)if(p===(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(De.compare).reverse());function k(){const e={orgNames:[],teamIds:[],languages:[],statuses:[]};e.orgNames=q.value.map(t=>t.value),e.teamIds=M.value.map(t=>t.value),e.languages=b.value.map(t=>t.value),e.statuses=v.value.map(t=>t.value),O.value=e}const o=_t(new Ho);o.value.currentPage=0,o.value.pageSize=et.pageSize??16,o.value.totalSize=y.value.length,te(y,()=>{o.value.totalSize=y.value.length,o.value.currentPage>=o.value.totalPage&&(o.value.currentPage=o.value.totalPage-1)});const l=kt(()=>y.value.slice(o.value.currentLeft,o.value.currentRight)),u=_t(!1);function h(e){const t="bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-300",i=e.problemId,a=it.value.contest.problemsMap.get(i);if(a==null||!a.balloonColor)return t}function d(e){const t=e.problemId,i=it.value.contest.problemsMap.get(t);if(!(i==null||!i.balloonColor))return{backgroundColor:i.balloonColor.background_color,color:i.balloonColor.color}}return(e,t)=>{var p,E,r,w;const i=ie,a=$o;return ut(),ft("section",null,[Z("div",Go,[Z("div",{relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":"",class:At({"shadow-md":et.removeBorder!==!0,"sm:rounded-sm":et.removeBorder!==!0})},[Z("div",Wo,[Z("div",Fo,[U(it).contest.organization&&((p=U(C))!=null&&p.organization)?(ut(),ft("div",Xo,[Ct(U(Zt),{options:U(W),"selected-options":U(q),placeholder:U(it).contest.organization,onSelect:Y},null,8,["options","selected-options","placeholder"])])):bt("",!0),(E=U(C))!=null&&E.team?(ut(),ft("div",Uo,[Ct(U(Zt),{options:U(X),"selected-options":U(M),placeholder:"Team",onSelect:N},null,8,["options","selected-options"])])):bt("",!0),(r=U(C))!=null&&r.status?(ut(),ft("div",Yo,[Ct(U(Zt),{options:U(c),"selected-options":U(v),placeholder:"Status","custom-attr":L,onSelect:g},null,8,["options","selected-options"])])):bt("",!0),(w=U(C))!=null&&w.language&&U(x).length>0?(ut(),ft("div",Vo,[Ct(U(Zt),{options:U(x),"selected-options":U(b),placeholder:"Language",onSelect:A},null,8,["options","selected-options"])])):bt("",!0),U(j)?(ut(),ft("div",qo,[Z("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:k},[Ko,Ht(" Filter ")])])):bt("",!0)])]),Z("div",Zo,[Z("table",Jo,[Z("thead",Qo,[Z("tr",null,[tn,U(it).contest.organization?(ut(),ft("th",en,mt(U(it).contest.organization),1)):bt("",!0),sn,on,U(it).contest.options.submissionHasTimeField?(ut(),ft("th",nn," Time ")):bt("",!0),U(u)?(ut(),ft("th",rn," Memory ")):bt("",!0),U(it).contest.options.submissionHasLanguageField?(ut(),ft("th",an," Answer ")):bt("",!0),ln])]),Z("tbody",null,[(ut(!0),ft(Ot,null,It(U(l),$=>{var J,at,B;return ut(),ft("tr",{key:$.id,class:"border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"},[Z("td",hn,[Z("span",{class:At(["rounded px-2 py-0.5 text-sm",[h($)]]),style:Xt(d($))},mt((J=U(it).contest.problemsMap.get($.problemId))==null?void 0:J.label),7)]),U(it).contest.organization?(ut(),ft("td",cn,mt((at=U(it).teamsMap.get($.teamId))==null?void 0:at.organization),1)):bt("",!0),Z("td",dn,mt((B=U(it).teamsMap.get($.teamId))==null?void 0:B.name),1),Z("td",{scope:"row",class:At([$.status.toString()]),"whitespace-nowrap":"","px-4":"","py-2":"",flex:"","items-center":"","font-bold":""},mt(U(ke)[$.status]),3),U(it).contest.options.submissionHasTimeField?(ut(),ft("td",un,[Z("div",pn,mt(`${$.time??0} ms`),1)])):bt("",!0),U(u)?(ut(),ft("td",fn," 0.47 ")):bt("",!0),U(it).contest.options.submissionHasLanguageField?(ut(),ft("td",mn,[Z("div",gn,mt($.language),1)])):bt("",!0),Z("td",xn,[Z("div",yn,[Ct(i,null,{popper:jt(()=>[Ht(mt($.timestampDisplayFormatWithMilliSecond),1)]),default:jt(()=>[Ht(mt($.timestampDisplayFormatWithSecond)+" ",1)]),_:2},1024)])])])}),128))])])]),Ct(a,{pagination:U(o),"onUpdate:pagination":t[0]||(t[0]=$=>zt(o)?o.value=$:null)},null,8,["pagination"])],2)])])}}});const de=Ut(vn,[["__scopeId","data-v-72257074"]]),xe=rt=>(se("data-v-198c3ef3"),rt=rt(),oe(),rt),kn={class:"statistics-0"},bn=["colspan"],Sn={class:"stnd"},wn={class:"statistics-1"},Cn=["colspan"],Mn={class:"stnd"},Tn=xe(()=>Z("br",null,null,-1)),_n={class:"statistics-0"},An=["colspan"],Pn={class:"stnd"},On=xe(()=>Z("br",null,null,-1)),Ln={class:"statistics-1"},En=["colspan"],Dn={class:"stnd"},In=xe(()=>Z("br",null,null,-1)),jn={class:"statistics-0"},Bn=["colspan"],zn={class:"stnd"},Rn={class:"statistics-1"},Nn=["colspan"],$n={class:"stnd"},Hn={class:"statistics-0"},Gn=["colspan"],Wn={class:"stnd"},Fn=Lt({__name:"BottomStatistics",props:{rank:null},setup(rt){const et=rt,{t:it}=Kt(),C=kt(()=>et.rank);function j(){let X=3;return C.value.contest.organization&&X++,C.value.contest.badge&&X++,X}function O(X){return X.submittedNum===0?"NaN":`${Math.floor(X.attemptedNum*100/X.submittedNum)}%`}function W(X){return X.submittedNum===0?"NaN":`${Math.floor(X.acceptedNum*100/X.submittedNum)}%`}function q(X){return X.attemptedNum===0?"NaN":`${X.dirt}%`}function Q(X){return X.firstSolveSubmissions.length===0?"Null":`${X.firstSolveSubmissions[0].timestampToMinute}`}function Y(X){return X.lastSolveSubmissions.length===0?"Null":`${X.lastSolveSubmissions[0].timestampToMinute}`}return(X,M)=>(ut(),ft(Ot,null,[Z("tr",kn,[Z("td",{class:"empty",colspan:j()},null,8,bn),Z("td",Sn,[Z("b",null,mt(U(it)("standings.statistics.submitted")),1)]),(ut(!0),ft(Ot,null,It(U(C).contest.problems,R=>(ut(),ft("td",{key:R.id,class:"stnd"},[Z("b",null,mt(R.statistics.submittedNum),1)]))),128))]),Z("tr",wn,[Z("td",{class:"empty",colspan:j()},null,8,Cn),Z("td",Mn,[Z("b",null,mt(U(it)("standings.statistics.attempted")),1)]),(ut(!0),ft(Ot,null,It(U(C).contest.problems,R=>(ut(),ft("td",{key:R.id,class:"stnd"},[Z("b",null,mt(R.statistics.attemptedNum),1),Tn,Z("b",null," ("+mt(O(R.statistics))+") ",1)]))),128))]),Z("tr",_n,[Z("td",{class:"empty",colspan:j()},null,8,An),Z("td",Pn,[Z("b",null,mt(U(it)("standings.statistics.accepted")),1)]),(ut(!0),ft(Ot,null,It(U(C).contest.problems,R=>(ut(),ft("td",{key:R.id,class:"stnd"},[Z("b",null,mt(R.statistics.acceptedNum),1),On,Z("b",null," ("+mt(W(R.statistics))+") ",1)]))),128))]),Z("tr",Ln,[Z("td",{class:"empty",colspan:j()},null,8,En),Z("td",Dn,[Z("b",null,mt(U(it)("standings.statistics.dirt")),1)]),(ut(!0),ft(Ot,null,It(U(C).contest.problems,R=>(ut(),ft("td",{key:R.id,class:"stnd"},[Z("b",null,mt(R.statistics.attemptedNum-R.statistics.acceptedNum),1),In,Z("b",null," ("+mt(q(R.statistics))+") ",1)]))),128))]),Z("tr",jn,[Z("td",{class:"empty",colspan:j()},null,8,Bn),Z("td",zn,[Z("b",null,mt(U(it)("standings.statistics.se")),1)]),(ut(!0),ft(Ot,null,It(U(C).contest.problems,R=>(ut(),ft("td",{key:R.id,class:"stnd"},[Z("b",null,mt(R.statistics.se.toFixed(2)),1)]))),128))]),Z("tr",Rn,[Z("td",{class:"empty",colspan:j()},null,8,Nn),Z("td",$n,[Z("b",null,mt(U(it)("standings.statistics.first_solved")),1)]),(ut(!0),ft(Ot,null,It(U(C).contest.problems,R=>(ut(),ft("td",{key:R.id,class:"stnd"},[Z("b",null,mt(Q(R.statistics)),1)]))),128))]),Z("tr",Hn,[Z("td",{class:"empty",colspan:j()},null,8,Gn),Z("td",Wn,[Z("b",null,mt(U(it)("standings.statistics.last_solved")),1)]),(ut(!0),ft(Ot,null,It(U(C).contest.problems,R=>(ut(),ft("td",{key:R.id,class:"stnd"},[Z("b",null,mt(Y(R.statistics)),1)]))),128))])],64))}});const Xn=Ut(Fn,[["__scopeId","data-v-198c3ef3"]]),Un={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":"",class:"mt-[-12px]"},Yn=Lt({__name:"SubmissionsTableModal",props:{isHidden:{type:Boolean},rank:null,team:null,p:null},emits:["update:isHidden"],setup(rt,{emit:et}){const it=rt,C=kt({get(){return it.isHidden},set(Q){et("update:isHidden",Q)}}),j=kt(()=>it.rank),O=kt(()=>it.team),W=kt(()=>it.p),q=kt(()=>`${O.value.name} - ${W.value.problem.label}`);return(Q,Y)=>{const X=de,M=ce;return ut(),Nt(M,{isHidden:U(C),"onUpdate:isHidden":Y[0]||(Y[0]=R=>zt(C)?C.value=R:null),title:U(q)},{default:jt(()=>[Z("div",Un,[Ct(X,{"w-full":"",rank:U(j),submissions:U(W).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])]),_:1},8,["isHidden","title"])}}}),Vn=Lt({__name:"TeamProblemBlock",props:{rank:null,team:null,p:null},setup(rt){const et=rt,it=_t(!0);function C(){it.value=!1}const j=kt(()=>et.rank),O=kt(()=>et.team),W=kt(()=>et.p);function q(X){return X.isSolved?"+":X.isWrongAnswer?"-":X.isPending?`? ${X.pendingCount}`:""}function Q(X){let M="";return X.isUnSubmitted||(M+=`${X.failedCount+Number(X.isSolved)}`),(X.isSolved&&j.value.contest.statusTimeDisplay.correct||X.isPending&&j.value.contest.statusTimeDisplay.pending||X.isWrongAnswer&&j.value.contest.statusTimeDisplay.incorrect)&&(M+=`/${Math.floor(X.lastSubmitTimestamp/60)}`),M}function Y(X){return X.isFirstSolved?"first-solve":X.isSolved?"correct":X.isWrongAnswer?"incorrect":X.isPending?"pending":"unattempted"}return(X,M)=>{const R=Yn;return ut(),ft("td",{class:At(["stnd",[Y(U(W))]])},[Z("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:C},[Z("div",null,mt(q(U(W))),1),Z("div",null,mt(Q(U(W))),1)]),Z("div",null,[U(it)?bt("",!0):(ut(),Nt(R,{key:0,isHidden:U(it),"onUpdate:isHidden":M[0]||(M[0]=N=>zt(it)?it.value=N:null),rank:U(j),team:U(O),p:U(W)},null,8,["isHidden","rank","team","p"]))])],2)}}});const qn=Ut(Vn,[["__scopeId","data-v-61916fae"]]),Kn={"text-gray-900":"","dark:text-white":"","text-xl":"","font-mono":"","font-semibold":"",italic:"",flex:"","flex-col":"","gap-2":"","justify-center":"","items-center":""},Zn={flex:"","flex-col":"","items-start":"","gap-y-2":""},Jn={key:0},Qn={key:1},tr={key:2,flex:"","flex-col":"","gap-2":""},er={key:3},ir=Lt({__name:"TeamAwards",props:{team:null,rank:null},setup(rt){const et=rt,it=kt(()=>et.team),C=kt(()=>et.rank),j=kt(()=>et.team.problemStatistics.filter(q=>!!q.isFirstSolved).map(q=>q.problem.label).join(",")),O=kt(()=>{const q=et.team.awards;return q.includes(Ft.GOLD)?{text:"Gold"}:q.includes(Ft.SILVER)?{text:"Silver"}:q.includes(Ft.BRONZE)?{text:"Bronze"}:q.includes(Ft.HONORABLE)?{text:"Honorable"}:null}),W=kt(()=>{let q=it.value.rank;return C.value.contest.organization&&(q=it.value.organizationRank),q===1?"1st Place":q===2?"2nd Place":q===3?"3rd Place":""});return(q,Q)=>(ut(),ft("div",Kn,[Z("div",Zn,[U(O)?(ut(),ft("div",Jn,mt(U(O).text)+" Medalist ",1)):bt("",!0),U(W).length>0?(ut(),ft("div",Qn,mt(U(W)),1)):bt("",!0),U(j).length?(ut(),ft("div",tr,[Z("div",null," First Solved Problem "+mt(U(j)),1)])):bt("",!0),U(it).solvedProblemNum>0?(ut(),ft("div",er," Solved "+mt(U(it).solvedProblemNum)+" "+mt(U(it).solvedProblemNum>1?"Problems":"Problem"),1)):bt("",!0)])]))}}),sr={role:"group","inline-flex":"","flex-col":"","w-full":"","md:w-auto":"","md:flex-row":"","rounded-md":"","shadow-sm":""},or=["onClick"],Fe=Lt({__name:"ModalMenu",props:{currentType:null,types:null},emits:["update:currentType"],setup(rt,{emit:et}){const it=rt,{t:C}=Kt(),j=kt({get(){return it.currentType},set(q){et("update:currentType",q)}});function O(q){j.value=q}const W=kt(()=>it.types.length);return(q,Q)=>(ut(),ft("div",sr,[(ut(!0),ft(Ot,null,It(it.types,(Y,X)=>(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:At({"rounded-t-lg md:rounded-tr-none md:rounded-l-lg":X===0,"rounded-b-lg md:rounded-bl-none md:rounded-r-lg mr-2":X+1===U(W),border:X===0||X+1===U(W),"border-t border-x md:border-x-0 md:border-b":X>0&&X+1<U(W),"md:border-r-0":X===0,"md:border-l":X>0,"z-10 ring-2 ring-primary-700 text-primary-700 dark:ring-primary-600 dark:text-white":U(j)===Y}),onClick:M=>O(Y)},mt(U(C)(`type_menu.${Y}`)),11,or))),128))]))}}),nr=["src"],Xe=Lt({__name:"Badge",props:{image:null,widthClass:null},setup(rt){const et=rt,it=kt(()=>et.image),C=kt(()=>et.widthClass?et.widthClass:"h-8 w-8");return(j,O)=>U(it).base64?(ut(),ft("img",{key:0,src:U(ze)(U(it)),alt:"badge",class:At([U(C)])},null,10,nr)):bt("",!0)}}),rr={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},ar={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},lr={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},hr={flex:"","flex-row":"","space-x-3":""},cr={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},dr={flex:"","flex-col":"","justify-start":"","items-start":""},ur={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},pr={key:0,"w-full":"",class:"mt-[-12px]"},fr={key:1,"w-full":""},mr={key:2,"w-full":""},Ce="submissions",Me="statistics",Te="awards",gr=Lt({__name:"TeamInfoModal",props:{isHidden:{type:Boolean},rank:null,team:null},emits:["update:isHidden"],setup(rt,{emit:et}){const it=rt,C=kt({get(){return it.isHidden},set(Y){et("update:isHidden",Y)}}),j=_t("submissions"),O=kt(()=>it.rank),W=kt(()=>it.team),q=kt(()=>{let Y="";return O.value.contest.organization&&W.value.organization.length>0&&(Y+=`${W.value.organization} - `),Y+=`${W.value.name}`,W.value.members&&(Y+=` - ${W.value.members}`),W.value.coach&&(Y+=` - ${W.value.coach}(coach)`),Y}),Q=[Ce,Me,Te];return(Y,X)=>{const M=Xe,R=ie,N=Fe,x=de,b=ir,_=ce;return ut(),Nt(_,{isHidden:U(C),"onUpdate:isHidden":X[1]||(X[1]=A=>zt(C)?C.value=A:null)},{header:jt(()=>[Z("div",rr,[Z("div",ar,[Z("div",lr,[Z("div",hr,[U(W).badge?(ut(),Nt(M,{key:0,image:U(W).badge,"width-class":"h-8 w-8"},null,8,["image"])):bt("",!0),Ct(R,null,{popper:jt(()=>[Z("div",dr,[Z("div",null," TeamID: "+mt(U(W).id),1)])]),default:jt(()=>[Z("h3",cr,mt(U(q)),1)]),_:1})]),Ct(N,{"current-type":U(j),"onUpdate:currentType":X[0]||(X[0]=A=>zt(j)?j.value=A:null),types:Q},null,8,["current-type"])])])])]),default:jt(()=>[Z("div",ur,[U(j)===Ce?(ut(),ft("div",pr,[Ct(x,{"w-full":"",rank:U(O),submissions:U(W).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])):bt("",!0),U(j)===Me?(ut(),ft("div",fr,[Ct(U(he.Chart),{options:("getTeamPlaceChart"in Y?Y.getTeamPlaceChart:U(po))(U(O),U(W))},null,8,["options"])])):bt("",!0),U(j)===Te?(ut(),ft("div",mr,[Ct(b,{team:U(W),rank:U(O)},null,8,["team","rank"])])):bt("",!0)])]),_:1},8,["isHidden"])}}}),xr={},yr={class:"color-gray-700 dark:color-gray-200"},vr=Z("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"},[Z("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"}),Z("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"}),Z("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"}),Z("path",{d:"M704 234.666667H320c0-94.293333 97.706667-170.666667 192-170.666667s192 76.373333 192 170.666667z",fill:"#FFCA6B","p-id":"3740"}),Z("path",{d:"M704 234.666667v85.333333H320v-85.333333h384z",fill:"#F3596B","p-id":"3741"}),Z("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"}),Z("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"}),Z("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"}),Z("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"}),Z("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"}),Z("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"}),Z("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"}),Z("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),kr=[vr];function br(rt,et){return ut(),ft("div",yr,kr)}const Sr=Ut(xr,[["render",br]]),wr={},Cr={class:"color-gray-700 dark:color-gray-200"},Mr=Z("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"},[Z("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),Tr=[Mr];function _r(rt,et){return ut(),ft("div",Cr,Tr)}const Ar=Ut(wr,[["render",_r]]),Pr=rt=>(se("data-v-4eb7108c"),rt=rt(),oe(),rt),Or={key:1,class:"empty flex items-center justify-center"},Lr={flex:""},Er={"float-left":"","pl-2":"","font-serif":""},Dr={key:0},Ir={"flex-1":""},jr=Pr(()=>Z("div",{"float-right":""},null,-1)),Br=Lt({__name:"TeamUI",props:{ix:null,rank:null,team:null,isFilter:{type:Boolean},giantsType:null},setup(rt){const et=rt,it=_t(null),C=ri(it),j=_t(!0);function O(){j.value=!1}const W=kt(()=>et.rank),q=kt(()=>et.team);function Q(X,M=!1){if(M){if(X.awards.includes(Ft.GOLD))return"gold";if(X.awards.includes(Ft.SILVER))return"silver";if(X.awards.includes(Ft.BRONZE))return"bronze";if(X.awards.includes(Ft.HONORABLE))return"honorable"}if(et.giantsType!==void 0)switch(et.giantsType){case qt.BLUE:return"bg-blue-400";case qt.RED:return"bg-red-400"}if(et.isFilter)return"filter-team";const R=(W.value.rankStatistics.getTeamSolvedNumIndex(X.solvedProblemNum)-1)%2,N=et.ix%2;return`stand${R}${N}`}function Y(){return C.value||et.ix<32}return(X,M)=>{const R=Xe,N=Ar,x=Sr,b=gr,_=qn;return ut(),ft("tr",{ref_key:"el",ref:it,class:At(["h-10",[et.isFilter?"filter-team":"",et.giantsType!==void 0?Q(et.team):""]])},[Y()?(ut(),ft("td",{key:0,class:At(["stnd",[Q(U(q),!0)]])},mt(U(q).rank),3)):bt("",!0),U(W).contest.badge&&U(q).badge&&Y()?(ut(),ft("td",Or,[Ct(R,{image:U(q).badge,"width-class":"h-8 w-8"},null,8,["image"])])):bt("",!0),U(W).contest.organization&&Y()?(ut(),ft("td",{key:2,class:At(["stnd",[Q(U(q))]])},[Z("div",Lr,[Z("div",Er,[U(q).organizationRank>-1?(ut(),ft("div",Dr,mt(U(q).organizationRank),1)):bt("",!0)]),Z("div",Ir,mt(U(q).organization),1),jr])],2)):bt("",!0),Y()?(ut(),ft("td",{key:3,class:At(["stnd",[Q(U(q))]])},[Z("div",{"cursor-pointer":"",onClick:O},[Z("span",null,mt(U(q).name),1),U(q).group.includes("unofficial")?(ut(),Nt(N,{key:0,"inline-block":""})):bt("",!0),U(q).group.includes("girl")?(ut(),Nt(x,{key:1,"inline-block":""})):bt("",!0)]),Z("div",null,[U(j)?bt("",!0):(ut(),Nt(b,{key:0,isHidden:U(j),"onUpdate:isHidden":M[0]||(M[0]=A=>zt(j)?j.value=A:null),rank:U(W),team:U(q)},null,8,["isHidden","rank","team"]))])],2)):bt("",!0),Y()?(ut(),ft("td",{key:4,class:At(["stnd",[Q(U(q))]])},mt(U(q).solvedProblemNum),3)):bt("",!0),Y()?(ut(),ft("td",{key:5,class:At(["stnd",[Q(U(q))]])},mt(U(q).penaltyToMinute),3)):bt("",!0),(ut(!0),ft(Ot,null,It(U(q).problemStatistics,A=>(ut(),ft(Ot,{key:A.problem.id},[Y()?(ut(),Nt(_,{key:0,rank:U(W),team:U(q),p:A},null,8,["rank","team","p"])):bt("",!0)],64))),128)),Y()?(ut(),ft("td",{key:6,class:At(["stnd",[Q(U(q))]])},mt(`${U(q).dirt}%`),3)):bt("",!0),Y()?(ut(),ft("td",{key:7,class:At(["stnd",[Q(U(q))]])},mt(`${U(q).se.toFixed(2)}`),3)):bt("",!0)],2)}}});const zr=Ut(Br,[["__scopeId","data-v-4eb7108c"]]),Rr={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},Nr={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},$r={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},Hr={flex:"","flex-row":"","space-x-3":""},Gr={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},Wr={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},Fr={key:0,"w-full":"",class:"mt-[-12px]"},Xr={key:1,"w-full":""},Ur={key:2,"w-full":""},_e="submissions",Ae="statistics",Pe="awards",Yr=Lt({__name:"ProblemInfoModal",props:{isHidden:{type:Boolean},rank:null,problem:null},emits:["update:isHidden"],setup(rt,{emit:et}){const it=rt,C=kt({get(){return it.isHidden},set(X){et("update:isHidden",X)}}),j=_t("submissions"),O=kt(()=>it.rank),W=kt(()=>it.problem),q=kt(()=>`Problem ${W.value.label}`),Q=kt(()=>O.value.getSubmissions().filter(X=>X.problemId===W.value.id)),Y=[_e,Ae,Pe];return(X,M)=>{const R=Fe,N=de,x=ce;return ut(),Nt(x,{isHidden:U(C),"onUpdate:isHidden":M[1]||(M[1]=b=>zt(C)?C.value=b:null)},{header:jt(()=>[Z("div",Rr,[Z("div",Nr,[Z("div",$r,[Z("div",Hr,[Z("h3",Gr,mt(U(q)),1)]),Ct(R,{"current-type":U(j),"onUpdate:currentType":M[0]||(M[0]=b=>zt(j)?j.value=b:null),types:Y},null,8,["current-type"])])])])]),default:jt(()=>[Z("div",Wr,[U(j)===_e?(ut(),ft("div",Fr,[Ct(N,{"w-full":"",rank:U(O),submissions:U(Q),"page-size":8,"remove-border":!0,"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):bt("",!0),U(j)===Ae?(ut(),ft("div",Xr)):bt("",!0),U(j)===Pe?(ut(),ft("div",Ur)):bt("",!0)])]),_:1},8,["isHidden"])}}}),Vr=Lt({__name:"ProblemBlock",props:{rank:null,problem:null},setup(rt){const et=rt,it=_t(!0);function C(){it.value=!1}const j=kt(()=>et.rank),O=kt(()=>et.problem),W=kt(()=>O.value.balloonColor);return(q,Q)=>{const Y=Yr;return ut(),ft("th",{key:U(O).id,class:"success","text-center":"",style:Xt([{width:"3rem"},{"background-color":U(W).background_color,color:U(W).color}])},[Z("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:C},[Z("div",null,mt(U(O).label),1),Z("div",null,mt(U(O).statistics.acceptedNum),1)]),Z("div",null,[U(it)?bt("",!0):(ut(),Nt(Y,{key:0,"is-hidden":U(it),"onUpdate:isHidden":Q[0]||(Q[0]=X=>zt(it)?it.value=X:null),rank:U(j),problem:U(O)},null,8,["is-hidden","rank","problem"]))])],4)}}});const qr=Ut(Vr,[["__scopeId","data-v-6d613751"]]),Kr={"text-8xl":"","font-mono":"",flex:"","justify-center":"","items-center":""},Zr={flex:"","justify-end":"","items-center":"","text-blue-400":""},Jr={flex:"","flex-col":"","items-center":"","justify-center":"","ml-4":""},Qr={"text-6xl":""},ta={"text-4xl":""},ea=Z("div",{flex:"","justify-center":"","items-center":"","ml-4":"","mr-4":""}," : ",-1),ia={flex:"","justify-start":"","items-center":"","text-red-400":""},sa={flex:"","flex-col":"","items-center":"","justify-center":"","mr-4":""},oa={"text-6xl":""},na={"text-4xl":""},ra=Lt({__name:"GiantsScoreBoard",props:{battleOfGiants:null},setup(rt){const et=rt,it=kt(()=>et.battleOfGiants);return(C,j)=>(ut(),ft("div",null,[Z("div",Kr,[Z("div",Zr,[Z("div",null,mt(U(it).blueTeam.name),1),Z("div",Jr,[Z("div",Qr,mt(U(it).blueTeam.totalSolvedProblemNum),1),Z("div",ta,mt(U(it).blueTeam.totalPenaltyToString),1)])]),ea,Z("div",ia,[Z("div",sa,[Z("div",oa,mt(U(it).redTeam.totalSolvedProblemNum),1),Z("div",na,mt(U(it).redTeam.totalPenaltyToString),1)]),Z("div",null,mt(U(it).redTeam.name),1)])])]))}}),Ue=rt=>(se("data-v-84f25c40"),rt=rt(),oe(),rt),aa={key:0,"mb-4":""},la={class:"standings","font-mono":"","dark:text-gray-700":""},ha={class:"sticky top-0 z-99"},ca={class:"title",style:{width:"3rem"}},da={key:0,class:"title",style:{width:"2rem"}},ua={class:"title",style:{width:"3rem"}},pa={class:"title",style:{width:"4rem"}},fa={class:"title",style:{width:"2.5rem"}},ma=Ue(()=>Z("div",null,[Ht(" number of submits on the "),Z("br"),Ht(" all solved problems / number "),Z("br"),Ht(" of the solved problems ")],-1)),ga={class:"title",style:{width:"2.5rem"}},xa=Ue(()=>Z("div",null,[Ht(' "average hardness". '),Z("br"),Ht(" Problem, solved by N teams out of M, "),Z("br"),Ht(" have hardness (M-N)/M. ")],-1)),ya=Lt({__name:"Standings",props:{rank:{}},setup(rt){const et=rt,{t:it}=Kt(),C=kt(()=>et.rank),j=kt(()=>et.rank.teams),O=kt(()=>et.rank.options),W=kt(()=>et.rank.teams.filter(M=>!!(et.rank.organizations&&et.rank.options.filterOrganizationMap.has(M.organization)||et.rank.options.filterTeamMap.has(M.id)))),q=kt(()=>{const X=O.value.battleOfGiants,M=X.blueTeam,R=X.redTeam;M.teams=[],R.teams=[];let N=0,x=0;for(const _ of et.rank.teams){const A=(()=>M.filterOrganizationMap.has(_.organization)||M.filterTeamMap.has(_.id)?N>=X.topX?null:(N++,qt.BLUE):R.filterOrganizationMap.has(_.organization)||R.filterTeamMap.has(_.id)?x>=X.topX?null:(x++,qt.RED):null)();if(A!==null&&(A===qt.BLUE?M.teams.push(_):R.teams.push(_),N===X.topX&&x===X.topX))break}if(X.equalTeams){for(;M.teams.length<R.teams.length;)R.teams.pop();for(;R.teams.length<M.teams.length;)M.teams.pop()}const b=[...M.teams.map(_=>({team:_,giantsType:qt.BLUE})),...R.teams.map(_=>({team:_,giantsType:qt.RED}))];return b.sort((_,A)=>ai.compare(_.team,A.team)),b}),Q=kt(()=>{let X=0;return C.value.teams.forEach(M=>{X=Math.max(X,M.organization.length)}),X}),Y=kt(()=>{let X=0;return C.value.teams.forEach(M=>{X=Math.max(X,M.name.length)}),X});return(X,M)=>{const R=ra,N=qr,x=ie,b=zr,_=Xn;return ut(),ft("div",null,[U(O).battleOfGiants.enable?(ut(),ft("div",aa,[Ct(R,{"battle-of-giants":U(O).battleOfGiants},null,8,["battle-of-giants"])])):bt("",!0),Z("div",null,[Z("table",la,[Z("thead",ha,[Z("tr",null,[Z("th",ca,mt(U(it)("standings.place")),1),U(C).contest.badge?(ut(),ft("th",da,mt(U(C).contest.badge),1)):bt("",!0),U(C).contest.organization?(ut(),ft("th",{key:1,class:"title",style:Xt({width:`${Math.min(32,Math.ceil(U(Q)*1.1))}rem`})},mt(U(C).contest.organization),5)):bt("",!0),Z("th",{class:"title",style:Xt({width:`${Math.min(32,Math.ceil(U(Y)*1))}rem`})},mt(U(it)("standings.team")),5),Z("th",ua,mt(U(it)("standings.solved")),1),Z("th",pa,mt(U(it)("standings.penalty")),1),(ut(!0),ft(Ot,null,It(U(C).contest.problems,A=>(ut(),Nt(N,{key:`problem-block-${A.id}`,rank:U(C),problem:A},null,8,["rank","problem"]))),128)),Z("th",fa,[Ct(x,{placement:"top"},{popper:jt(()=>[ma]),default:jt(()=>[Z("div",null,mt(U(it)("standings.dirt")),1)]),_:1})]),Z("th",ga,[Ct(x,{placement:"top"},{popper:jt(()=>[xa]),default:jt(()=>[Z("div",null,mt(U(it)("standings.se")),1)]),_:1})])])]),Z("tbody",null,[U(O).battleOfGiants.enable?(ut(!0),ft(Ot,{key:0},It(U(q),(A,c)=>(ut(),Nt(b,{key:`giant-team-${A.team.id}`,ix:c,rank:U(C),team:A.team,"giants-type":A.giantsType},null,8,["ix","rank","team","giants-type"]))),128)):bt("",!0),(ut(!0),ft(Ot,null,It(U(W),(A,c)=>(ut(),Nt(b,{key:`filter-${A.id}`,ix:c,rank:U(C),team:A,"is-filter":!0},null,8,["ix","rank","team"]))),128)),(ut(!0),ft(Ot,null,It(U(j),(A,c)=>(ut(),Nt(b,{key:A.id,ix:c,rank:U(C),team:A},null,8,["ix","rank","team"]))),128)),Ct(_,{rank:U(C)},null,8,["rank"])])])])])}}});const va=Ut(ya,[["__scopeId","data-v-84f25c40"]]),ka={"font-mono":"",flex:""},ba=["onClick"],Sa=["href"],wa={key:1},Ca=Lt({__name:"SecondLevelMenu",props:{items:null,currentItem:null,queryParamName:null,reverseOrder:{type:Boolean},onChange:{type:Function}},emits:["update:currentItem"],setup(rt,{emit:et}){const it=rt,C=kt(()=>{var M;for(const R of it.items)if(R.isDefault)return R.keyword;return(M=it.items)==null?void 0:M[0].keyword}),j=me(it.queryParamName,C.value,{transform:String}),O=kt({get(){return it.currentItem},set(M){et("update:currentItem",M)}}),{t:W,locale:q}=Kt();function Q(M){return M.title?W(M.title):M.titles?M.titles.get(q.value)??M.titles.get(M.defaultLang):""}function Y(M){return O.value===M.keyword}function X(M){it.onChange&&it.onChange(M.keyword),!(M.link||M.isModal)&&(O.value=M.keyword,j.value=M.keyword)}return Re(()=>{(()=>{var M;((M=j.value)==null?void 0:M.length)>0&&((()=>{for(const R of it.items)if(R.titles){for(const[N,x]of R.titles)if(j.value===x){j.value=R.keyword;return}}})(),O.value=j.value,it.onChange&&it.onChange(j.value))})()}),(M,R)=>(ut(),ft("div",ka,[Z("div",{class:At(["mr-[-4px]",{"flex-row-reverse":it.reverseOrder}]),flex:""},[(ut(!0),ft(Ot,null,It(it.items,N=>(ut(),ft("div",{key:N.keyword,class:At(["second-level-menu-item",[Y(N)?"second-level-menu-item-current":""]]),onClick:x=>X(N)},[Z("div",null,[N.link?(ut(),ft("a",{key:0,href:N.link,target:"_blank",title:"Resolver"},mt(Q(N)),9,Sa)):bt("",!0),N.link?bt("",!0):(ut(),ft("div",wa,mt(Q(N)),1))])],10,ba))),128))],2)]))}});const Ma=Ut(Ca,[["__scopeId","data-v-714a998b"]]);const Ta={},_a={class:"flex items-center justify-center dark:text-black"},Aa=li('<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),Pa=[Aa];function Oa(rt,et){return ut(),ft("div",_a,Pa)}const La=Ut(Ta,[["render",Oa],["__scopeId","data-v-54297ce8"]]),Ea={flex:""},Da=Z("div",null,[Z("div",{"i-material-symbols-info-outline":"","text-lg":""})],-1),Ia={flex:""},ja=Z("div",{class:"border-l-[1px] border-r-[1px]","mx-2":"","h-6":"","border-color-black":"","dark:border-color-white":""},null,-1),Ba={flex:""},za=Lt({__name:"BoardTab",props:{rank:{}},setup(rt){const et=rt,it=kt(()=>et.rank),{t:C}=Kt(),j=Ie.useToast(),{copy:O,isSupported:W}=je();let q=null;const Q=_t(null),Y=_t(null);function X(){return window?W.value?!0:(j.warning("clipboard is not supported"),q==null||q.hide(),!1):!1}function M(){j.success("copy success"),q==null||q.hide()}function R(){X()&&(O(window.location.href),M())}function N(){if(!X())return;const x=`<iframe src="${window.location.href}" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width: 100%; height: 720px"></iframe>`;O(x),M()}return Re(()=>{if(Q.value&&Y.value){const x={placement:"right",triggerType:"click",offsetSkidding:32,offsetDistance:5,delay:300};q=new hi(Q.value,Y.value,x)}}),(x,b)=>{const _=ie;return ut(),ft("div",Ea,[Z("div",null,[Ct(_,{"w-inherit":""},{popper:jt(()=>{var A;return[Z("div",Ia,[Z("div",null,mt(U(C)("standings.options.calculation_of_penalty"))+": "+mt(U(C)(`standings.options.${(A=U(it).contest.options)==null?void 0:A.calculationOfPenalty}`)),1)])]}),default:jt(()=>[Da]),_:1})]),ja,Z("div",Ba,[Z("div",{ref_key:"dropdownTriggerEl",ref:Y,"i-material-symbols-share":"","text-lg":"","cursor-pointer":""},null,512),Z("div",{ref_key:"dropdownTargetEl",ref:Q,class:"z-9999 hidden divide-y divide-gray-100 rounded shadow w-36","bg-white":"","dark:bg-gray-700":""},[Z("ul",{class:"py-2 text-sm text-gray-700 dark:text-gray-200"},[Z("li",null,[Z("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 Link ")]),Z("li",null,[Z("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 Code ")])])],512)])])}}}),Ra=rt=>(se("data-v-9d40d7bb"),rt=rt(),oe(),rt),Na={key:0},$a={key:0},Ha={key:0},Ga={class:"max-w-[92%]"},Wa=["src"],Fa={class:"max-w-[92%]"},Xa={"mt-2":""},Ua={class:"w-[92%]"},Ya={class:"flex font-bold font-mono"},Va={class:"float-left"},qa={class:"pl-0.5"},Ka={class:"flex-1"},Za={class:"float-right"},Ja={class:"pl-0.5"},Qa={class:"mt-2"},tl={class:"mt-2 flex font-bold font-mono"},el={class:"float-left"},il={class:"flex-1"},sl={class:"float-right"},ol={class:"mt-4 flex"},nl={class:"float-left"},rl=Ra(()=>Z("div",{class:"flex-1"},null,-1)),al={class:"float-right"},ll={class:"w-[92%]",flex:"","justify-center":""},hl={key:0},cl={key:1,class:"sm:w-full xl:w-[92%]"},dl={key:2,class:"sm:w-full xl:w-[92%]"},ul={key:3},pl={key:4},fl={key:1},Oe="sm:w-[1280px] xl:w-screen",le="sm:w-[1260px] xl:w-screen",ml=Lt({__name:"Board",props:{dataSourceUrl:null},setup(rt){const et=rt,it=Qt(),C=ci(be),{t:j}=Kt(),O=_t(!1),W=_t({}),q=_t([]),Q=_t([]),Y=_t({}),X=di(),M=_t(new ui),R=_t(!1);(()=>{const w=ls(),$=hs();w.value.length>0&&M.value.setFilterOrganizations(w.value),$.value.length>0&&M.value.setFilterTeams($.value)})();const N=_t("all");function x(w){w!==M.value.group&&M.value.setGroup(w)}(()=>{const w=me("group","all",{transform:String});N.value=w.value,M.value.setGroup(w.value)})();const b=me("replay-start-time",0,{transform:Number}),_=_t(!1);function A(w={force:!1}){if(R.value&&w.force===!1||_.value===!0)return;_.value=!0;const $=new bi(W.value,q.value,Q.value);$.options=fe.cloneDeep(M.value),$.setReplayTime(b.value),$.buildRank(),Y.value=$,_.value=!1}const{data:c,isError:v,error:S}=Ci(et.dataSourceUrl??it.path,X);te(c,async()=>{var w,$,J;c.value===null||c.value===void 0||(W.value=pi((w=c.value)==null?void 0:w.contest),C.value=`${W.value.name} | ${be}`,q.value=fi(($=c.value)==null?void 0:$.teams),Q.value=mi((J=c.value)==null?void 0:J.submissions),!M.value.enableFilterSubmissionsByTimestamp&&(A(),O.value=!0))});function g(){O.value!==!1&&A()}te(M.value,()=>{if(!Y.value.options.isNeedReBuildRank(M.value)){Y.value.options=fe.cloneDeep(M.value);return}g()});{let w=function(){b.value===0?$():(g(),J())};const{pause:$,resume:J}=gi(()=>{g()},1e3);w(),te(b,()=>{w()})}const L=_t([{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}]),y=kt(()=>Y.value.contest.group),k=kt(()=>{const w=Array();for(const[$,J]of y.value){const at={titles:J.names,defaultLang:J.defaultLang,keyword:$,isDefault:J.isDefault};w.push(at)}return w}),o=_t("rank"),l=_t(!0);function u(w){w==="options"&&(l.value=!1)}function h(){const w=document.documentElement.scrollHeight||document.body.scrollHeight,$=document.documentElement.scrollTop||document.body.scrollTop,J=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return w-$===J}let d=null;function e(){d!==null&&clearInterval(d)}xi("S",w=>{if(R.value=!R.value,R.value===!0){let J=0,at="DOWN";d=setInterval(()=>{if(at==="DOWN"){if(h()){at="UP",A({force:!0});return}J+=2}else{if(J===0){at="DOWN",A({force:!0});return}J-=2}window.scrollTo({top:J,behavior:"smooth"})},64)}else e()},{dedupe:!1});const t=kt(()=>{const w=Y.value.contest.getStartTime().format("YYYY-MM-DD HH:mm:ss");return`${j("standings.start_time")}${j("common.colon")}${w}`}),i=kt(()=>{const w=Y.value.contest.getEndTime().format("YYYY-MM-DD HH:mm:ss");return`${j("standings.end_time")}${j("common.colon")}${w}`}),a=kt(()=>{const w=Y.value.contest.getContestElapsedTime(X.value);return`${j("standings.elapsed")}${j("common.colon")}${w}`}),p=kt(()=>{const w=Y.value.contest.getContestRemainingTime(X.value);return`${j("standings.remaining")}${j("common.colon")}${w}`}),E=kt(()=>Y.value.options.enableFilterSubmissionsByTimestamp?yi.PAUSED:Y.value.contest.getContestState()),r=kt(()=>Be(Y.value.options.timestamp));return vi(()=>{e()}),(w,$)=>{const J=za,at=Si,B=wi,s=La,P=Ma,z=va,I=de,K=wo,n=lo,f=Ys,m=Gs,H=Ls;return ut(),ft("div",null,[U(O)?bt("",!0):(ut(),ft("div",Na,[Z("div",{class:At([Oe]),flex:"","flex-col":"","gap-4":"","justify-center":"","items-center":""},[Z("div",null,mt(U(j)("common.loading"))+"... ",1),U(v)?(ut(),ft("div",$a,mt(U(S)),1)):bt("",!0)],2)])),U(O)?(ut(),ft("div",{key:1,class:At([Oe]),flex:"","flex-col":"","justify-center":"","items-center":""},[U(Y).contest.banner?(ut(),ft("div",Ha,[Z("div",{class:At([le]),"mb-4":"",flex:"","justify-center":"","items-center":""},[Z("div",Ga,[Z("img",{src:U(ze)(U(Y).contest.banner,`${"DATA_HOST"in w?w.DATA_HOST:U(ki)}${U(it).path.slice(1)}`),alt:"banner"},null,8,Wa)])],2)])):bt("",!0),Z("div",{class:At(["title",[le]]),flex:"","justify-center":"","text-center":"","text-3xl":"","font-normal":"","font-serif":""},[Z("div",Fa,mt(U(Y).contest.name),1)],2),Z("div",Xa,[Ct(J,{rank:U(Y)},null,8,["rank"])]),Z("div",{class:At([le]),"mt-2":"",flex:"","flex-row":"","justify-center":""},[Z("div",Ua,[Z("div",Ya,[Z("div",Va,[Ht(mt(U(t)),1),Z("sup",qa,mt(U(Y).contest.getStartTime().format("z")),1)]),Z("div",Ka,[Ct(at,{state:U(E),"pending-time":U(Y).contest.getContestPendingTime(U(X)),"paused-time":U(r)},null,8,["state","pending-time","paused-time"])]),Z("div",Za,[Ht(mt(U(i)),1),Z("sup",Ja,mt(U(Y).contest.endTime.format("z")),1)])]),Z("div",Qa,[Ct(B,{"rank-options":U(M),"onUpdate:rankOptions":$[0]||($[0]=F=>zt(M)?M.value=F:null),width:U(Y).contest.getContestProgressRatio(U(X)),state:U(Y).contest.getContestState(U(X)),"need-scroll":!0,rank:U(Y),"elapsed-time":U(Y).contest.getContestElapsedTime(U(X))},null,8,["rank-options","width","state","rank","elapsed-time"])]),Z("div",tl,[Z("div",el,mt(U(a)),1),Z("div",il,[Ct(s)]),Z("div",sl,mt(U(p)),1)]),Z("div",ol,[Z("div",nl,[Ct(P,{"current-item":U(N),"onUpdate:currentItem":$[1]||($[1]=F=>zt(N)?N.value=F:null),items:U(k),"query-param-name":"group","on-change":x},null,8,["current-item","items"])]),rl,Z("div",al,[Ct(P,{"current-item":U(o),"onUpdate:currentItem":$[2]||($[2]=F=>zt(o)?o.value=F:null),items:U(L),"reverse-order":!0,"query-param-name":"type","on-change":u},null,8,["current-item","items"])])])])],2),Z("div",{"mt-4":"",class:At([le]),flex:"","justify-center":""},[Z("div",ll,[U(o)==="rank"?(ut(),ft("div",hl,[Ct(z,{rank:U(Y)},null,8,["rank"])])):bt("",!0),U(o)==="submissions"?(ut(),ft("div",cl,[Ct(I,{"w-full":"",rank:U(Y),submissions:U(Y).getSubmissions(),"enable-filter":{organization:!0,team:!0,language:!0,status:!0}},null,8,["rank","submissions"])])):bt("",!0),U(o)==="statistics"?(ut(),ft("div",dl,[Ct(K,{rank:U(Y)},null,8,["rank"])])):bt("",!0),U(o)==="export"?(ut(),ft("div",ul,[Ct(n,{rank:U(Y)},null,8,["rank"])])):bt("",!0),U(o)==="utility"?(ut(),ft("div",pl,[Ct(f,{rank:U(Y)},null,8,["rank"])])):bt("",!0)])],2),U(M).enableAnimatedSubmissions?(ut(),ft("div",fl,[Ct(m,{rank:U(Y)},null,8,["rank"])])):bt("",!0),U(l)?bt("",!0):(ut(),Nt(H,{key:2,"is-hidden":U(l),"onUpdate:isHidden":$[3]||($[3]=F=>zt(l)?l.value=F:null),"rank-options":U(M),"onUpdate:rankOptions":$[4]||($[4]=F=>zt(M)?M.value=F:null),rank:U(Y)},null,8,["is-hidden","rank-options","rank"]))],2)):bt("",!0)])}}});const kl=Ut(ml,[["__scopeId","data-v-9d40d7bb"]]);export{kl as _};